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.PPC64LE.QuickCode.fst
Vale.PPC64LE.QuickCode.va_Mod_None
val va_Mod_None : Vale.PPC64LE.QuickCode.mod_t
let va_Mod_None = Mod_None
{ "file_name": "vale/code/arch/ppc64le/Vale.PPC64LE.QuickCode.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 45, "end_line": 26, "start_col": 19, "start_line": 26 }
module Vale.PPC64LE.QuickCode open FStar.Mul open Vale.Def.Prop_s open Vale.PPC64LE.Machine_s open Vale.Arch.HeapImpl open Vale.PPC64LE.State open Vale.PPC64LE.Decls irreducible let qmodattr = () type mod_t = | Mod_None : mod_t | Mod_ok: mod_t | Mod_reg: reg -> mod_t | Mod_vec: vec -> mod_t | Mod_cr0: mod_t | Mod_xer...
{ "checked_file": "/", "dependencies": [ "Vale.PPC64LE.State.fsti.checked", "Vale.PPC64LE.Machine_s.fst.checked", "Vale.PPC64LE.Decls.fsti.checked", "Vale.Def.Prop_s.fst.checked", "Vale.Arch.HeapImpl.fsti.checked", "prims.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst....
[ { "abbrev": false, "full_module": "Vale.PPC64LE.Decls", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.State", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.HeapImpl", "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
Vale.PPC64LE.QuickCode.mod_t
Prims.Tot
[ "total" ]
[]
[ "Vale.PPC64LE.QuickCode.Mod_None" ]
[]
false
false
false
true
false
let va_Mod_None =
Mod_None
false
Vale.PPC64LE.QuickCode.fst
Vale.PPC64LE.QuickCode.va_Mod_ok
val va_Mod_ok : Vale.PPC64LE.QuickCode.mod_t
let va_Mod_ok = Mod_ok
{ "file_name": "vale/code/arch/ppc64le/Vale.PPC64LE.QuickCode.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 41, "end_line": 27, "start_col": 19, "start_line": 27 }
module Vale.PPC64LE.QuickCode open FStar.Mul open Vale.Def.Prop_s open Vale.PPC64LE.Machine_s open Vale.Arch.HeapImpl open Vale.PPC64LE.State open Vale.PPC64LE.Decls irreducible let qmodattr = () type mod_t = | Mod_None : mod_t | Mod_ok: mod_t | Mod_reg: reg -> mod_t | Mod_vec: vec -> mod_t | Mod_cr0: mod_t | Mod_xer...
{ "checked_file": "/", "dependencies": [ "Vale.PPC64LE.State.fsti.checked", "Vale.PPC64LE.Machine_s.fst.checked", "Vale.PPC64LE.Decls.fsti.checked", "Vale.Def.Prop_s.fst.checked", "Vale.Arch.HeapImpl.fsti.checked", "prims.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst....
[ { "abbrev": false, "full_module": "Vale.PPC64LE.Decls", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.State", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.HeapImpl", "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
Vale.PPC64LE.QuickCode.mod_t
Prims.Tot
[ "total" ]
[]
[ "Vale.PPC64LE.QuickCode.Mod_ok" ]
[]
false
false
false
true
false
let va_Mod_ok =
Mod_ok
false
Vale.PPC64LE.QuickCode.fst
Vale.PPC64LE.QuickCode.va_Mod_reg
val va_Mod_reg : r: Vale.PPC64LE.Machine_s.reg -> Vale.PPC64LE.QuickCode.mod_t
let va_Mod_reg (r:reg) = Mod_reg r
{ "file_name": "vale/code/arch/ppc64le/Vale.PPC64LE.QuickCode.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 53, "end_line": 28, "start_col": 19, "start_line": 28 }
module Vale.PPC64LE.QuickCode open FStar.Mul open Vale.Def.Prop_s open Vale.PPC64LE.Machine_s open Vale.Arch.HeapImpl open Vale.PPC64LE.State open Vale.PPC64LE.Decls irreducible let qmodattr = () type mod_t = | Mod_None : mod_t | Mod_ok: mod_t | Mod_reg: reg -> mod_t | Mod_vec: vec -> mod_t | Mod_cr0: mod_t | Mod_xer...
{ "checked_file": "/", "dependencies": [ "Vale.PPC64LE.State.fsti.checked", "Vale.PPC64LE.Machine_s.fst.checked", "Vale.PPC64LE.Decls.fsti.checked", "Vale.Def.Prop_s.fst.checked", "Vale.Arch.HeapImpl.fsti.checked", "prims.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst....
[ { "abbrev": false, "full_module": "Vale.PPC64LE.Decls", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.State", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.HeapImpl", "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
r: Vale.PPC64LE.Machine_s.reg -> Vale.PPC64LE.QuickCode.mod_t
Prims.Tot
[ "total" ]
[]
[ "Vale.PPC64LE.Machine_s.reg", "Vale.PPC64LE.QuickCode.Mod_reg", "Vale.PPC64LE.QuickCode.mod_t" ]
[]
false
false
false
true
false
let va_Mod_reg (r: reg) =
Mod_reg r
false
Vale.PPC64LE.QuickCode.fst
Vale.PPC64LE.QuickCode.va_Mod_vec
val va_Mod_vec : v: Vale.PPC64LE.Machine_s.vec -> Vale.PPC64LE.QuickCode.mod_t
let va_Mod_vec (v:vec) = Mod_vec v
{ "file_name": "vale/code/arch/ppc64le/Vale.PPC64LE.QuickCode.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 53, "end_line": 29, "start_col": 19, "start_line": 29 }
module Vale.PPC64LE.QuickCode open FStar.Mul open Vale.Def.Prop_s open Vale.PPC64LE.Machine_s open Vale.Arch.HeapImpl open Vale.PPC64LE.State open Vale.PPC64LE.Decls irreducible let qmodattr = () type mod_t = | Mod_None : mod_t | Mod_ok: mod_t | Mod_reg: reg -> mod_t | Mod_vec: vec -> mod_t | Mod_cr0: mod_t | Mod_xer...
{ "checked_file": "/", "dependencies": [ "Vale.PPC64LE.State.fsti.checked", "Vale.PPC64LE.Machine_s.fst.checked", "Vale.PPC64LE.Decls.fsti.checked", "Vale.Def.Prop_s.fst.checked", "Vale.Arch.HeapImpl.fsti.checked", "prims.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst....
[ { "abbrev": false, "full_module": "Vale.PPC64LE.Decls", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.State", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.HeapImpl", "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
v: Vale.PPC64LE.Machine_s.vec -> Vale.PPC64LE.QuickCode.mod_t
Prims.Tot
[ "total" ]
[]
[ "Vale.PPC64LE.Machine_s.vec", "Vale.PPC64LE.QuickCode.Mod_vec", "Vale.PPC64LE.QuickCode.mod_t" ]
[]
false
false
false
true
false
let va_Mod_vec (v: vec) =
Mod_vec v
false
Vale.PPC64LE.QuickCode.fst
Vale.PPC64LE.QuickCode.va_Mod_mem
val va_Mod_mem : Vale.PPC64LE.QuickCode.mod_t
let va_Mod_mem = Mod_mem
{ "file_name": "vale/code/arch/ppc64le/Vale.PPC64LE.QuickCode.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 43, "end_line": 32, "start_col": 19, "start_line": 32 }
module Vale.PPC64LE.QuickCode open FStar.Mul open Vale.Def.Prop_s open Vale.PPC64LE.Machine_s open Vale.Arch.HeapImpl open Vale.PPC64LE.State open Vale.PPC64LE.Decls irreducible let qmodattr = () type mod_t = | Mod_None : mod_t | Mod_ok: mod_t | Mod_reg: reg -> mod_t | Mod_vec: vec -> mod_t | Mod_cr0: mod_t | Mod_xer...
{ "checked_file": "/", "dependencies": [ "Vale.PPC64LE.State.fsti.checked", "Vale.PPC64LE.Machine_s.fst.checked", "Vale.PPC64LE.Decls.fsti.checked", "Vale.Def.Prop_s.fst.checked", "Vale.Arch.HeapImpl.fsti.checked", "prims.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst....
[ { "abbrev": false, "full_module": "Vale.PPC64LE.Decls", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.State", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.HeapImpl", "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
Vale.PPC64LE.QuickCode.mod_t
Prims.Tot
[ "total" ]
[]
[ "Vale.PPC64LE.QuickCode.Mod_mem" ]
[]
false
false
false
true
false
let va_Mod_mem =
Mod_mem
false
Vale.PPC64LE.QuickCode.fst
Vale.PPC64LE.QuickCode.va_Mod_cr0
val va_Mod_cr0 : Vale.PPC64LE.QuickCode.mod_t
let va_Mod_cr0 = Mod_cr0
{ "file_name": "vale/code/arch/ppc64le/Vale.PPC64LE.QuickCode.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 43, "end_line": 30, "start_col": 19, "start_line": 30 }
module Vale.PPC64LE.QuickCode open FStar.Mul open Vale.Def.Prop_s open Vale.PPC64LE.Machine_s open Vale.Arch.HeapImpl open Vale.PPC64LE.State open Vale.PPC64LE.Decls irreducible let qmodattr = () type mod_t = | Mod_None : mod_t | Mod_ok: mod_t | Mod_reg: reg -> mod_t | Mod_vec: vec -> mod_t | Mod_cr0: mod_t | Mod_xer...
{ "checked_file": "/", "dependencies": [ "Vale.PPC64LE.State.fsti.checked", "Vale.PPC64LE.Machine_s.fst.checked", "Vale.PPC64LE.Decls.fsti.checked", "Vale.Def.Prop_s.fst.checked", "Vale.Arch.HeapImpl.fsti.checked", "prims.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst....
[ { "abbrev": false, "full_module": "Vale.PPC64LE.Decls", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.State", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.HeapImpl", "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
Vale.PPC64LE.QuickCode.mod_t
Prims.Tot
[ "total" ]
[]
[ "Vale.PPC64LE.QuickCode.Mod_cr0" ]
[]
false
false
false
true
false
let va_Mod_cr0 =
Mod_cr0
false
Vale.PPC64LE.QuickCode.fst
Vale.PPC64LE.QuickCode.va_Mod_mem_heaplet
val va_Mod_mem_heaplet : n: Vale.PPC64LE.Decls.heaplet_id -> Vale.PPC64LE.QuickCode.mod_t
let va_Mod_mem_heaplet (n:heaplet_id) = Mod_mem_heaplet n
{ "file_name": "vale/code/arch/ppc64le/Vale.PPC64LE.QuickCode.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 76, "end_line": 34, "start_col": 19, "start_line": 34 }
module Vale.PPC64LE.QuickCode open FStar.Mul open Vale.Def.Prop_s open Vale.PPC64LE.Machine_s open Vale.Arch.HeapImpl open Vale.PPC64LE.State open Vale.PPC64LE.Decls irreducible let qmodattr = () type mod_t = | Mod_None : mod_t | Mod_ok: mod_t | Mod_reg: reg -> mod_t | Mod_vec: vec -> mod_t | Mod_cr0: mod_t | Mod_xer...
{ "checked_file": "/", "dependencies": [ "Vale.PPC64LE.State.fsti.checked", "Vale.PPC64LE.Machine_s.fst.checked", "Vale.PPC64LE.Decls.fsti.checked", "Vale.Def.Prop_s.fst.checked", "Vale.Arch.HeapImpl.fsti.checked", "prims.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst....
[ { "abbrev": false, "full_module": "Vale.PPC64LE.Decls", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.State", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.HeapImpl", "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
n: Vale.PPC64LE.Decls.heaplet_id -> Vale.PPC64LE.QuickCode.mod_t
Prims.Tot
[ "total" ]
[]
[ "Vale.PPC64LE.Decls.heaplet_id", "Vale.PPC64LE.QuickCode.Mod_mem_heaplet", "Vale.PPC64LE.QuickCode.mod_t" ]
[]
false
false
false
true
false
let va_Mod_mem_heaplet (n: heaplet_id) =
Mod_mem_heaplet n
false
Vale.PPC64LE.QuickCode.fst
Vale.PPC64LE.QuickCode.va_Mod_mem_layout
val va_Mod_mem_layout : Vale.PPC64LE.QuickCode.mod_t
let va_Mod_mem_layout = Mod_mem_layout
{ "file_name": "vale/code/arch/ppc64le/Vale.PPC64LE.QuickCode.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 57, "end_line": 33, "start_col": 19, "start_line": 33 }
module Vale.PPC64LE.QuickCode open FStar.Mul open Vale.Def.Prop_s open Vale.PPC64LE.Machine_s open Vale.Arch.HeapImpl open Vale.PPC64LE.State open Vale.PPC64LE.Decls irreducible let qmodattr = () type mod_t = | Mod_None : mod_t | Mod_ok: mod_t | Mod_reg: reg -> mod_t | Mod_vec: vec -> mod_t | Mod_cr0: mod_t | Mod_xer...
{ "checked_file": "/", "dependencies": [ "Vale.PPC64LE.State.fsti.checked", "Vale.PPC64LE.Machine_s.fst.checked", "Vale.PPC64LE.Decls.fsti.checked", "Vale.Def.Prop_s.fst.checked", "Vale.Arch.HeapImpl.fsti.checked", "prims.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst....
[ { "abbrev": false, "full_module": "Vale.PPC64LE.Decls", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.State", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.HeapImpl", "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
Vale.PPC64LE.QuickCode.mod_t
Prims.Tot
[ "total" ]
[]
[ "Vale.PPC64LE.QuickCode.Mod_mem_layout" ]
[]
false
false
false
true
false
let va_Mod_mem_layout =
Mod_mem_layout
false
Vale.PPC64LE.QuickCode.fst
Vale.PPC64LE.QuickCode.va_Mod_stack
val va_Mod_stack : Vale.PPC64LE.QuickCode.mod_t
let va_Mod_stack = Mod_stack
{ "file_name": "vale/code/arch/ppc64le/Vale.PPC64LE.QuickCode.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 47, "end_line": 35, "start_col": 19, "start_line": 35 }
module Vale.PPC64LE.QuickCode open FStar.Mul open Vale.Def.Prop_s open Vale.PPC64LE.Machine_s open Vale.Arch.HeapImpl open Vale.PPC64LE.State open Vale.PPC64LE.Decls irreducible let qmodattr = () type mod_t = | Mod_None : mod_t | Mod_ok: mod_t | Mod_reg: reg -> mod_t | Mod_vec: vec -> mod_t | Mod_cr0: mod_t | Mod_xer...
{ "checked_file": "/", "dependencies": [ "Vale.PPC64LE.State.fsti.checked", "Vale.PPC64LE.Machine_s.fst.checked", "Vale.PPC64LE.Decls.fsti.checked", "Vale.Def.Prop_s.fst.checked", "Vale.Arch.HeapImpl.fsti.checked", "prims.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst....
[ { "abbrev": false, "full_module": "Vale.PPC64LE.Decls", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.State", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.HeapImpl", "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
Vale.PPC64LE.QuickCode.mod_t
Prims.Tot
[ "total" ]
[]
[ "Vale.PPC64LE.QuickCode.Mod_stack" ]
[]
false
false
false
true
false
let va_Mod_stack =
Mod_stack
false
Vale.PPC64LE.QuickCode.fst
Vale.PPC64LE.QuickCode.va_Mod_stackTaint
val va_Mod_stackTaint : Vale.PPC64LE.QuickCode.mod_t
let va_Mod_stackTaint = Mod_stackTaint
{ "file_name": "vale/code/arch/ppc64le/Vale.PPC64LE.QuickCode.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 57, "end_line": 36, "start_col": 19, "start_line": 36 }
module Vale.PPC64LE.QuickCode open FStar.Mul open Vale.Def.Prop_s open Vale.PPC64LE.Machine_s open Vale.Arch.HeapImpl open Vale.PPC64LE.State open Vale.PPC64LE.Decls irreducible let qmodattr = () type mod_t = | Mod_None : mod_t | Mod_ok: mod_t | Mod_reg: reg -> mod_t | Mod_vec: vec -> mod_t | Mod_cr0: mod_t | Mod_xer...
{ "checked_file": "/", "dependencies": [ "Vale.PPC64LE.State.fsti.checked", "Vale.PPC64LE.Machine_s.fst.checked", "Vale.PPC64LE.Decls.fsti.checked", "Vale.Def.Prop_s.fst.checked", "Vale.Arch.HeapImpl.fsti.checked", "prims.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst....
[ { "abbrev": false, "full_module": "Vale.PPC64LE.Decls", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.State", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.HeapImpl", "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
Vale.PPC64LE.QuickCode.mod_t
Prims.Tot
[ "total" ]
[]
[ "Vale.PPC64LE.QuickCode.Mod_stackTaint" ]
[]
false
false
false
true
false
let va_Mod_stackTaint =
Mod_stackTaint
false
Vale.AES.X64.GCMencryptOpt.fst
Vale.AES.X64.GCMencryptOpt.va_wpProof_Gcm_blocks
val va_wpProof_Gcm_blocks : alg:algorithm -> offset:int -> auth_b:buffer128 -> abytes_b:buffer128 -> in128x6_b:buffer128 -> out128x6_b:buffer128 -> in128_b:buffer128 -> out128_b:buffer128 -> inout_b:buffer128 -> iv_b:buffer128 -> scratch_b:buffer128 -> key:(seq nat32) -> round_keys:(seq quad32) -> keys_b:buffer12...
val va_wpProof_Gcm_blocks : alg:algorithm -> offset:int -> auth_b:buffer128 -> abytes_b:buffer128 -> in128x6_b:buffer128 -> out128x6_b:buffer128 -> in128_b:buffer128 -> out128_b:buffer128 -> inout_b:buffer128 -> iv_b:buffer128 -> scratch_b:buffer128 -> key:(seq nat32) -> round_keys:(seq quad32) -> keys_b:buffer12...
let va_wpProof_Gcm_blocks alg offset auth_b abytes_b in128x6_b out128x6_b in128_b out128_b inout_b iv_b scratch_b key round_keys keys_b hkeys_b va_s0 va_k = let (va_sM, va_f0) = va_lemma_Gcm_blocks (va_code_Gcm_blocks alg offset) va_s0 alg offset auth_b abytes_b in128x6_b out128x6_b in128_b out128_b inout_b iv_...
{ "file_name": "obj/Vale.AES.X64.GCMencryptOpt.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 22, "end_line": 3123, "start_col": 0, "start_line": 3095 }
module Vale.AES.X64.GCMencryptOpt open Vale.Def.Prop_s open Vale.Def.Opaque_s open FStar.Seq open Vale.Def.Words_s open Vale.Def.Words.Seq_s open Vale.Def.Types_s open Vale.Arch.Types open Vale.Arch.HeapImpl open Vale.AES.AES_s open Vale.AES.GCTR_s open Vale.AES.GCTR open Vale.AES.GCM open Vale.AES.GHash_s open Vale.AE...
{ "checked_file": "/", "dependencies": [ "Vale.X64.State.fsti.checked", "Vale.X64.Stack_i.fsti.checked", "Vale.X64.Stack.fsti.checked", "Vale.X64.QuickCodes.fsti.checked", "Vale.X64.QuickCode.fst.checked", "Vale.X64.Memory.fsti.checked", "Vale.X64.Machine_s.fst.checked", "Vale.X64.In...
[ { "abbrev": false, "full_module": "Vale.Lib.Basic", "short_module": null }, { "abbrev": false, "full_module": "Vale.AES.OptPublic", "short_module": null }, { "abbrev": false, "full_module": "Vale.Lib.Meta", "short_module": null }, { "abbrev": false, "full_modu...
{ "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
alg: Vale.AES.AES_common_s.algorithm -> offset: Prims.int -> auth_b: Vale.X64.Memory.buffer128 -> abytes_b: Vale.X64.Memory.buffer128 -> in128x6_b: Vale.X64.Memory.buffer128 -> out128x6_b: Vale.X64.Memory.buffer128 -> in128_b: Vale.X64.Memory.buffer128 -> out128_b: Vale.X64.Memory.buffe...
Prims.Ghost
[]
[]
[ "Vale.AES.AES_common_s.algorithm", "Prims.int", "Vale.X64.Memory.buffer128", "FStar.Seq.Base.seq", "Vale.X64.Memory.nat32", "Vale.X64.Decls.quad32", "Vale.X64.Decls.va_state", "Prims.unit", "Vale.X64.Decls.va_fuel", "FStar.Pervasives.Native.Mktuple3", "Vale.X64.QuickCode.va_lemma_norm_mods", "...
[]
false
false
false
false
false
let va_wpProof_Gcm_blocks alg offset auth_b abytes_b in128x6_b out128x6_b in128_b out128_b inout_b iv_b scratch_b key round_keys keys_b hkeys_b va_s0 va_k =
let va_sM, va_f0 = va_lemma_Gcm_blocks (va_code_Gcm_blocks alg offset) va_s0 alg offset auth_b abytes_b in128x6_b out128x6_b in128_b out128_b inout_b iv_b scratch_b key round_keys keys_b hkeys_b in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_flags va_sM (va_update_mem_heaplet 6...
false
Vale.PPC64LE.QuickCode.fst
Vale.PPC64LE.QuickCode.update_state_mods_norm
val update_state_mods_norm (mods: mods_t) (sM sK: state) : state
val update_state_mods_norm (mods: mods_t) (sM sK: state) : state
let update_state_mods_norm (mods:mods_t) (sM sK:state) : state = norm [iota; zeta; delta_attr [`%qmodattr]; delta_only [`%update_state_mods; `%update_state_mod]] (update_state_mods mods sM sK)
{ "file_name": "vale/code/arch/ppc64le/Vale.PPC64LE.QuickCode.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 129, "end_line": 76, "start_col": 7, "start_line": 75 }
module Vale.PPC64LE.QuickCode open FStar.Mul open Vale.Def.Prop_s open Vale.PPC64LE.Machine_s open Vale.Arch.HeapImpl open Vale.PPC64LE.State open Vale.PPC64LE.Decls irreducible let qmodattr = () type mod_t = | Mod_None : mod_t | Mod_ok: mod_t | Mod_reg: reg -> mod_t | Mod_vec: vec -> mod_t | Mod_cr0: mod_t | Mod_xer...
{ "checked_file": "/", "dependencies": [ "Vale.PPC64LE.State.fsti.checked", "Vale.PPC64LE.Machine_s.fst.checked", "Vale.PPC64LE.Decls.fsti.checked", "Vale.Def.Prop_s.fst.checked", "Vale.Arch.HeapImpl.fsti.checked", "prims.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst....
[ { "abbrev": false, "full_module": "Vale.PPC64LE.Decls", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.State", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.HeapImpl", "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
mods: Vale.PPC64LE.QuickCode.mods_t -> sM: Vale.PPC64LE.State.state -> sK: Vale.PPC64LE.State.state -> Vale.PPC64LE.State.state
Prims.Tot
[ "total" ]
[]
[ "Vale.PPC64LE.QuickCode.mods_t", "Vale.PPC64LE.State.state", "FStar.Pervasives.norm", "Prims.Cons", "FStar.Pervasives.norm_step", "FStar.Pervasives.iota", "FStar.Pervasives.zeta", "FStar.Pervasives.delta_attr", "Prims.string", "Prims.Nil", "FStar.Pervasives.delta_only", "Vale.PPC64LE.QuickCode...
[]
false
false
false
true
false
let update_state_mods_norm (mods: mods_t) (sM sK: state) : state =
norm [iota; zeta; delta_attr [`%qmodattr]; delta_only [`%update_state_mods; `%update_state_mod]] (update_state_mods mods sM sK)
false
Vale.PPC64LE.QuickCode.fst
Vale.PPC64LE.QuickCode.va_Mod_xer
val va_Mod_xer : Vale.PPC64LE.QuickCode.mod_t
let va_Mod_xer = Mod_xer
{ "file_name": "vale/code/arch/ppc64le/Vale.PPC64LE.QuickCode.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 43, "end_line": 31, "start_col": 19, "start_line": 31 }
module Vale.PPC64LE.QuickCode open FStar.Mul open Vale.Def.Prop_s open Vale.PPC64LE.Machine_s open Vale.Arch.HeapImpl open Vale.PPC64LE.State open Vale.PPC64LE.Decls irreducible let qmodattr = () type mod_t = | Mod_None : mod_t | Mod_ok: mod_t | Mod_reg: reg -> mod_t | Mod_vec: vec -> mod_t | Mod_cr0: mod_t | Mod_xer...
{ "checked_file": "/", "dependencies": [ "Vale.PPC64LE.State.fsti.checked", "Vale.PPC64LE.Machine_s.fst.checked", "Vale.PPC64LE.Decls.fsti.checked", "Vale.Def.Prop_s.fst.checked", "Vale.Arch.HeapImpl.fsti.checked", "prims.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst....
[ { "abbrev": false, "full_module": "Vale.PPC64LE.Decls", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.State", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.HeapImpl", "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
Vale.PPC64LE.QuickCode.mod_t
Prims.Tot
[ "total" ]
[]
[ "Vale.PPC64LE.QuickCode.Mod_xer" ]
[]
false
false
false
true
false
let va_Mod_xer =
Mod_xer
false
Vale.PPC64LE.QuickCode.fst
Vale.PPC64LE.QuickCode.va_mod_vec_opr
val va_mod_vec_opr (r: vec_opr) : mod_t
val va_mod_vec_opr (r: vec_opr) : mod_t
let va_mod_vec_opr (r:vec_opr) : mod_t = Mod_vec r
{ "file_name": "vale/code/arch/ppc64le/Vale.PPC64LE.QuickCode.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 11, "end_line": 87, "start_col": 0, "start_line": 86 }
module Vale.PPC64LE.QuickCode open FStar.Mul open Vale.Def.Prop_s open Vale.PPC64LE.Machine_s open Vale.Arch.HeapImpl open Vale.PPC64LE.State open Vale.PPC64LE.Decls irreducible let qmodattr = () type mod_t = | Mod_None : mod_t | Mod_ok: mod_t | Mod_reg: reg -> mod_t | Mod_vec: vec -> mod_t | Mod_cr0: mod_t | Mod_xer...
{ "checked_file": "/", "dependencies": [ "Vale.PPC64LE.State.fsti.checked", "Vale.PPC64LE.Machine_s.fst.checked", "Vale.PPC64LE.Decls.fsti.checked", "Vale.Def.Prop_s.fst.checked", "Vale.Arch.HeapImpl.fsti.checked", "prims.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst....
[ { "abbrev": false, "full_module": "Vale.PPC64LE.Decls", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.State", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.HeapImpl", "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
r: Vale.PPC64LE.Decls.vec_opr -> Vale.PPC64LE.QuickCode.mod_t
Prims.Tot
[ "total" ]
[]
[ "Vale.PPC64LE.Decls.vec_opr", "Vale.PPC64LE.QuickCode.Mod_vec", "Vale.PPC64LE.QuickCode.mod_t" ]
[]
false
false
false
true
false
let va_mod_vec_opr (r: vec_opr) : mod_t =
Mod_vec r
false
Vale.PPC64LE.QuickCode.fst
Vale.PPC64LE.QuickCode.va_mod_reg_opr
val va_mod_reg_opr (r: reg_opr) : mod_t
val va_mod_reg_opr (r: reg_opr) : mod_t
let va_mod_reg_opr (r:reg_opr) : mod_t = Mod_reg r
{ "file_name": "vale/code/arch/ppc64le/Vale.PPC64LE.QuickCode.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 11, "end_line": 84, "start_col": 0, "start_line": 83 }
module Vale.PPC64LE.QuickCode open FStar.Mul open Vale.Def.Prop_s open Vale.PPC64LE.Machine_s open Vale.Arch.HeapImpl open Vale.PPC64LE.State open Vale.PPC64LE.Decls irreducible let qmodattr = () type mod_t = | Mod_None : mod_t | Mod_ok: mod_t | Mod_reg: reg -> mod_t | Mod_vec: vec -> mod_t | Mod_cr0: mod_t | Mod_xer...
{ "checked_file": "/", "dependencies": [ "Vale.PPC64LE.State.fsti.checked", "Vale.PPC64LE.Machine_s.fst.checked", "Vale.PPC64LE.Decls.fsti.checked", "Vale.Def.Prop_s.fst.checked", "Vale.Arch.HeapImpl.fsti.checked", "prims.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst....
[ { "abbrev": false, "full_module": "Vale.PPC64LE.Decls", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.State", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.HeapImpl", "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
r: Vale.PPC64LE.Decls.reg_opr -> Vale.PPC64LE.QuickCode.mod_t
Prims.Tot
[ "total" ]
[]
[ "Vale.PPC64LE.Decls.reg_opr", "Vale.PPC64LE.QuickCode.Mod_reg", "Vale.PPC64LE.QuickCode.mod_t" ]
[]
false
false
false
true
false
let va_mod_reg_opr (r: reg_opr) : mod_t =
Mod_reg r
false
Vale.PPC64LE.QuickCode.fst
Vale.PPC64LE.QuickCode.k_true
val k_true : _: Vale.PPC64LE.State.state -> _: a -> Prims.logical
let k_true (#a:Type0) (_:state) (_:a) = True
{ "file_name": "vale/code/arch/ppc64le/Vale.PPC64LE.QuickCode.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 44, "end_line": 95, "start_col": 0, "start_line": 95 }
module Vale.PPC64LE.QuickCode open FStar.Mul open Vale.Def.Prop_s open Vale.PPC64LE.Machine_s open Vale.Arch.HeapImpl open Vale.PPC64LE.State open Vale.PPC64LE.Decls irreducible let qmodattr = () type mod_t = | Mod_None : mod_t | Mod_ok: mod_t | Mod_reg: reg -> mod_t | Mod_vec: vec -> mod_t | Mod_cr0: mod_t | Mod_xer...
{ "checked_file": "/", "dependencies": [ "Vale.PPC64LE.State.fsti.checked", "Vale.PPC64LE.Machine_s.fst.checked", "Vale.PPC64LE.Decls.fsti.checked", "Vale.Def.Prop_s.fst.checked", "Vale.Arch.HeapImpl.fsti.checked", "prims.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst....
[ { "abbrev": false, "full_module": "Vale.PPC64LE.Decls", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.State", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.HeapImpl", "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
_: Vale.PPC64LE.State.state -> _: a -> Prims.logical
Prims.Tot
[ "total" ]
[]
[ "Vale.PPC64LE.State.state", "Prims.l_True", "Prims.logical" ]
[]
false
false
false
true
true
let k_true (#a: Type0) (_: state) (_: a) =
True
false
Vale.PPC64LE.QuickCode.fst
Vale.PPC64LE.QuickCode.quickProc_wp
val quickProc_wp (a: Type0) : Type u#1
val quickProc_wp (a: Type0) : Type u#1
let quickProc_wp (a:Type0) : Type u#1 = (s0:state) -> (wp_continue:state -> a -> Type0) -> Type0
{ "file_name": "vale/code/arch/ppc64le/Vale.PPC64LE.QuickCode.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 96, "end_line": 93, "start_col": 0, "start_line": 93 }
module Vale.PPC64LE.QuickCode open FStar.Mul open Vale.Def.Prop_s open Vale.PPC64LE.Machine_s open Vale.Arch.HeapImpl open Vale.PPC64LE.State open Vale.PPC64LE.Decls irreducible let qmodattr = () type mod_t = | Mod_None : mod_t | Mod_ok: mod_t | Mod_reg: reg -> mod_t | Mod_vec: vec -> mod_t | Mod_cr0: mod_t | Mod_xer...
{ "checked_file": "/", "dependencies": [ "Vale.PPC64LE.State.fsti.checked", "Vale.PPC64LE.Machine_s.fst.checked", "Vale.PPC64LE.Decls.fsti.checked", "Vale.Def.Prop_s.fst.checked", "Vale.Arch.HeapImpl.fsti.checked", "prims.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst....
[ { "abbrev": false, "full_module": "Vale.PPC64LE.Decls", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.State", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.HeapImpl", "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
a: Type0 -> Type
Prims.Tot
[ "total" ]
[]
[ "Vale.PPC64LE.State.state" ]
[]
false
false
false
true
true
let quickProc_wp (a: Type0) : Type u#1 =
s0: state -> (wp_continue: state -> a -> Type0) -> Type0
false
Vale.PPC64LE.QuickCode.fst
Vale.PPC64LE.QuickCode.va_mod_vec
val va_mod_vec (x: vec) : mod_t
val va_mod_vec (x: vec) : mod_t
let va_mod_vec (x:vec) : mod_t = Mod_vec x
{ "file_name": "vale/code/arch/ppc64le/Vale.PPC64LE.QuickCode.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 63, "end_line": 90, "start_col": 21, "start_line": 90 }
module Vale.PPC64LE.QuickCode open FStar.Mul open Vale.Def.Prop_s open Vale.PPC64LE.Machine_s open Vale.Arch.HeapImpl open Vale.PPC64LE.State open Vale.PPC64LE.Decls irreducible let qmodattr = () type mod_t = | Mod_None : mod_t | Mod_ok: mod_t | Mod_reg: reg -> mod_t | Mod_vec: vec -> mod_t | Mod_cr0: mod_t | Mod_xer...
{ "checked_file": "/", "dependencies": [ "Vale.PPC64LE.State.fsti.checked", "Vale.PPC64LE.Machine_s.fst.checked", "Vale.PPC64LE.Decls.fsti.checked", "Vale.Def.Prop_s.fst.checked", "Vale.Arch.HeapImpl.fsti.checked", "prims.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst....
[ { "abbrev": false, "full_module": "Vale.PPC64LE.Decls", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.State", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.HeapImpl", "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
x: Vale.PPC64LE.Machine_s.vec -> Vale.PPC64LE.QuickCode.mod_t
Prims.Tot
[ "total" ]
[]
[ "Vale.PPC64LE.Machine_s.vec", "Vale.PPC64LE.QuickCode.Mod_vec", "Vale.PPC64LE.QuickCode.mod_t" ]
[]
false
false
false
true
false
let va_mod_vec (x: vec) : mod_t =
Mod_vec x
false
Vale.PPC64LE.QuickCode.fst
Vale.PPC64LE.QuickCode.va_mod_heaplet
val va_mod_heaplet (h: heaplet_id) : mod_t
val va_mod_heaplet (h: heaplet_id) : mod_t
let va_mod_heaplet (h:heaplet_id) : mod_t = Mod_mem_heaplet h
{ "file_name": "vale/code/arch/ppc64le/Vale.PPC64LE.QuickCode.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 82, "end_line": 91, "start_col": 21, "start_line": 91 }
module Vale.PPC64LE.QuickCode open FStar.Mul open Vale.Def.Prop_s open Vale.PPC64LE.Machine_s open Vale.Arch.HeapImpl open Vale.PPC64LE.State open Vale.PPC64LE.Decls irreducible let qmodattr = () type mod_t = | Mod_None : mod_t | Mod_ok: mod_t | Mod_reg: reg -> mod_t | Mod_vec: vec -> mod_t | Mod_cr0: mod_t | Mod_xer...
{ "checked_file": "/", "dependencies": [ "Vale.PPC64LE.State.fsti.checked", "Vale.PPC64LE.Machine_s.fst.checked", "Vale.PPC64LE.Decls.fsti.checked", "Vale.Def.Prop_s.fst.checked", "Vale.Arch.HeapImpl.fsti.checked", "prims.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst....
[ { "abbrev": false, "full_module": "Vale.PPC64LE.Decls", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.State", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.HeapImpl", "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.PPC64LE.Decls.heaplet_id -> Vale.PPC64LE.QuickCode.mod_t
Prims.Tot
[ "total" ]
[]
[ "Vale.PPC64LE.Decls.heaplet_id", "Vale.PPC64LE.QuickCode.Mod_mem_heaplet", "Vale.PPC64LE.QuickCode.mod_t" ]
[]
false
false
false
true
false
let va_mod_heaplet (h: heaplet_id) : mod_t =
Mod_mem_heaplet h
false
Vale.PPC64LE.QuickCode.fst
Vale.PPC64LE.QuickCode.va_mod_reg
val va_mod_reg (r: reg) : mod_t
val va_mod_reg (r: reg) : mod_t
let va_mod_reg (r:reg) : mod_t = Mod_reg r
{ "file_name": "vale/code/arch/ppc64le/Vale.PPC64LE.QuickCode.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 63, "end_line": 89, "start_col": 21, "start_line": 89 }
module Vale.PPC64LE.QuickCode open FStar.Mul open Vale.Def.Prop_s open Vale.PPC64LE.Machine_s open Vale.Arch.HeapImpl open Vale.PPC64LE.State open Vale.PPC64LE.Decls irreducible let qmodattr = () type mod_t = | Mod_None : mod_t | Mod_ok: mod_t | Mod_reg: reg -> mod_t | Mod_vec: vec -> mod_t | Mod_cr0: mod_t | Mod_xer...
{ "checked_file": "/", "dependencies": [ "Vale.PPC64LE.State.fsti.checked", "Vale.PPC64LE.Machine_s.fst.checked", "Vale.PPC64LE.Decls.fsti.checked", "Vale.Def.Prop_s.fst.checked", "Vale.Arch.HeapImpl.fsti.checked", "prims.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst....
[ { "abbrev": false, "full_module": "Vale.PPC64LE.Decls", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.State", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.HeapImpl", "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
r: Vale.PPC64LE.Machine_s.reg -> Vale.PPC64LE.QuickCode.mod_t
Prims.Tot
[ "total" ]
[]
[ "Vale.PPC64LE.Machine_s.reg", "Vale.PPC64LE.QuickCode.Mod_reg", "Vale.PPC64LE.QuickCode.mod_t" ]
[]
false
false
false
true
false
let va_mod_reg (r: reg) : mod_t =
Mod_reg r
false
Vale.PPC64LE.QuickCode.fst
Vale.PPC64LE.QuickCode.t_require
val t_require : s0: Vale.PPC64LE.Decls.va_state -> Vale.Def.Prop_s.prop0
let t_require (s0:va_state) = state_inv s0
{ "file_name": "vale/code/arch/ppc64le/Vale.PPC64LE.QuickCode.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 42, "end_line": 107, "start_col": 0, "start_line": 107 }
module Vale.PPC64LE.QuickCode open FStar.Mul open Vale.Def.Prop_s open Vale.PPC64LE.Machine_s open Vale.Arch.HeapImpl open Vale.PPC64LE.State open Vale.PPC64LE.Decls irreducible let qmodattr = () type mod_t = | Mod_None : mod_t | Mod_ok: mod_t | Mod_reg: reg -> mod_t | Mod_vec: vec -> mod_t | Mod_cr0: mod_t | Mod_xer...
{ "checked_file": "/", "dependencies": [ "Vale.PPC64LE.State.fsti.checked", "Vale.PPC64LE.Machine_s.fst.checked", "Vale.PPC64LE.Decls.fsti.checked", "Vale.Def.Prop_s.fst.checked", "Vale.Arch.HeapImpl.fsti.checked", "prims.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst....
[ { "abbrev": false, "full_module": "Vale.PPC64LE.Decls", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.State", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.HeapImpl", "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
s0: Vale.PPC64LE.Decls.va_state -> Vale.Def.Prop_s.prop0
Prims.Tot
[ "total" ]
[]
[ "Vale.PPC64LE.Decls.va_state", "Vale.PPC64LE.Decls.state_inv", "Vale.Def.Prop_s.prop0" ]
[]
false
false
false
true
false
let t_require (s0: va_state) =
state_inv s0
false
Vale.PPC64LE.QuickCode.fst
Vale.PPC64LE.QuickCode.va_t_ensure
val va_t_ensure : c: Vale.PPC64LE.Decls.va_code -> mods: Vale.PPC64LE.QuickCode.mods_t -> s0: Vale.PPC64LE.State.state -> k: (_: Vale.PPC64LE.State.state -> _: a -> Type0) -> _: ((Vale.PPC64LE.State.state * Vale.PPC64LE.Decls.va_fuel) * a) -> Prims.logical
let va_t_ensure (#a:Type0) (c:va_code) (mods:mods_t) (s0:state) (k:(state -> a -> Type0)) = fun (sM, f0, g) -> eval_code c s0 f0 sM /\ update_state_mods mods sM s0 == sM /\ state_inv sM /\ k sM g
{ "file_name": "vale/code/arch/ppc64le/Vale.PPC64LE.QuickCode.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 105, "end_line": 111, "start_col": 0, "start_line": 110 }
module Vale.PPC64LE.QuickCode open FStar.Mul open Vale.Def.Prop_s open Vale.PPC64LE.Machine_s open Vale.Arch.HeapImpl open Vale.PPC64LE.State open Vale.PPC64LE.Decls irreducible let qmodattr = () type mod_t = | Mod_None : mod_t | Mod_ok: mod_t | Mod_reg: reg -> mod_t | Mod_vec: vec -> mod_t | Mod_cr0: mod_t | Mod_xer...
{ "checked_file": "/", "dependencies": [ "Vale.PPC64LE.State.fsti.checked", "Vale.PPC64LE.Machine_s.fst.checked", "Vale.PPC64LE.Decls.fsti.checked", "Vale.Def.Prop_s.fst.checked", "Vale.Arch.HeapImpl.fsti.checked", "prims.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst....
[ { "abbrev": false, "full_module": "Vale.PPC64LE.Decls", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.State", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.HeapImpl", "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
c: Vale.PPC64LE.Decls.va_code -> mods: Vale.PPC64LE.QuickCode.mods_t -> s0: Vale.PPC64LE.State.state -> k: (_: Vale.PPC64LE.State.state -> _: a -> Type0) -> _: ((Vale.PPC64LE.State.state * Vale.PPC64LE.Decls.va_fuel) * a) -> Prims.logical
Prims.Tot
[ "total" ]
[]
[ "Vale.PPC64LE.Decls.va_code", "Vale.PPC64LE.QuickCode.mods_t", "Vale.PPC64LE.State.state", "FStar.Pervasives.Native.tuple3", "Vale.PPC64LE.Decls.va_fuel", "Prims.l_and", "Vale.PPC64LE.Decls.eval_code", "Prims.eq2", "Vale.PPC64LE.QuickCode.update_state_mods", "Vale.PPC64LE.Decls.state_inv", "Prim...
[]
false
false
false
true
true
let va_t_ensure (#a: Type0) (c: va_code) (mods: mods_t) (s0: state) (k: (state -> a -> Type0)) =
fun (sM, f0, g) -> eval_code c s0 f0 sM /\ update_state_mods mods sM s0 == sM /\ state_inv sM /\ k sM g
false
Vale.PPC64LE.QuickCode.fst
Vale.PPC64LE.QuickCode.va_t_require
val va_t_require : s0: Vale.PPC64LE.Decls.va_state -> Vale.Def.Prop_s.prop0
let va_t_require = t_require
{ "file_name": "vale/code/arch/ppc64le/Vale.PPC64LE.QuickCode.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 35, "end_line": 108, "start_col": 7, "start_line": 108 }
module Vale.PPC64LE.QuickCode open FStar.Mul open Vale.Def.Prop_s open Vale.PPC64LE.Machine_s open Vale.Arch.HeapImpl open Vale.PPC64LE.State open Vale.PPC64LE.Decls irreducible let qmodattr = () type mod_t = | Mod_None : mod_t | Mod_ok: mod_t | Mod_reg: reg -> mod_t | Mod_vec: vec -> mod_t | Mod_cr0: mod_t | Mod_xer...
{ "checked_file": "/", "dependencies": [ "Vale.PPC64LE.State.fsti.checked", "Vale.PPC64LE.Machine_s.fst.checked", "Vale.PPC64LE.Decls.fsti.checked", "Vale.Def.Prop_s.fst.checked", "Vale.Arch.HeapImpl.fsti.checked", "prims.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst....
[ { "abbrev": false, "full_module": "Vale.PPC64LE.Decls", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.State", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.HeapImpl", "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
s0: Vale.PPC64LE.Decls.va_state -> Vale.Def.Prop_s.prop0
Prims.Tot
[ "total" ]
[]
[ "Vale.PPC64LE.QuickCode.t_require" ]
[]
false
false
false
true
false
let va_t_require =
t_require
false
Vale.PPC64LE.QuickCode.fst
Vale.PPC64LE.QuickCode.va_QProc
val va_QProc : c: Vale.PPC64LE.Machine_s.precode Vale.PPC64LE.Decls.ins Vale.PPC64LE.Decls.ocmp -> mods: Prims.list Vale.PPC64LE.QuickCode.mod_t -> wp: Vale.PPC64LE.QuickCode.quickProc_wp _ -> proof: Vale.PPC64LE.QuickCode.t_proof c mods wp -> Vale.PPC64LE.QuickCode.quickCode _ c
let va_QProc = QProc
{ "file_name": "vale/code/arch/ppc64le/Vale.PPC64LE.QuickCode.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 27, "end_line": 132, "start_col": 7, "start_line": 132 }
module Vale.PPC64LE.QuickCode open FStar.Mul open Vale.Def.Prop_s open Vale.PPC64LE.Machine_s open Vale.Arch.HeapImpl open Vale.PPC64LE.State open Vale.PPC64LE.Decls irreducible let qmodattr = () type mod_t = | Mod_None : mod_t | Mod_ok: mod_t | Mod_reg: reg -> mod_t | Mod_vec: vec -> mod_t | Mod_cr0: mod_t | Mod_xer...
{ "checked_file": "/", "dependencies": [ "Vale.PPC64LE.State.fsti.checked", "Vale.PPC64LE.Machine_s.fst.checked", "Vale.PPC64LE.Decls.fsti.checked", "Vale.Def.Prop_s.fst.checked", "Vale.Arch.HeapImpl.fsti.checked", "prims.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst....
[ { "abbrev": false, "full_module": "Vale.PPC64LE.Decls", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.State", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.HeapImpl", "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
c: Vale.PPC64LE.Machine_s.precode Vale.PPC64LE.Decls.ins Vale.PPC64LE.Decls.ocmp -> mods: Prims.list Vale.PPC64LE.QuickCode.mod_t -> wp: Vale.PPC64LE.QuickCode.quickProc_wp _ -> proof: Vale.PPC64LE.QuickCode.t_proof c mods wp -> Vale.PPC64LE.QuickCode.quickCode _ c
Prims.Tot
[ "total" ]
[]
[ "Vale.PPC64LE.QuickCode.QProc", "Vale.PPC64LE.Machine_s.precode", "Vale.PPC64LE.Decls.ins", "Vale.PPC64LE.Decls.ocmp", "Prims.list", "Vale.PPC64LE.QuickCode.mod_t", "Vale.PPC64LE.QuickCode.quickProc_wp", "Vale.PPC64LE.QuickCode.t_proof", "Vale.PPC64LE.QuickCode.quickCode" ]
[]
false
false
false
false
false
let va_QProc =
QProc
false
Spec.SecretBox.Test.fst
Spec.SecretBox.Test.test
val test : _: Prims.unit -> FStar.All.ALL Prims.bool
let test () = let (mac, cipher) = secretbox_detached key nonce plaintext in let result_encryption = for_all2 (fun a b -> uint_to_nat #U8 a = uint_to_nat #U8 b) cipher xcipher in let result_mac_compare = for_all2 (fun a b -> uint_to_nat #U8 a = uint_to_nat #U8 b) mac xmac in let dec = secretbox_open_det...
{ "file_name": "specs/tests/Spec.SecretBox.Test.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 54, "end_line": 104, "start_col": 0, "start_line": 90 }
module Spec.SecretBox.Test open FStar.Mul open Lib.IntTypes open Lib.RawIntTypes open Lib.Sequence open Lib.ByteSequence open Spec.SecretBox #set-options "--z3rlimit 50 --fuel 0 --ifuel 0" let key : lbytes 32 = let l = List.Tot.map u8_from_UInt8 [ 0x1buy; 0x27uy; 0x55uy; 0x64uy; 0x73uy; 0xe9uy; 0x85uy; 0xd4uy...
{ "checked_file": "/", "dependencies": [ "Spec.SecretBox.fst.checked", "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.RawIntTypes.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "FStar.UInt8.fsti.checked", "FStar.Pervasives.fsti.checked", "FSt...
[ { "abbrev": false, "full_module": "Spec.SecretBox", "short_module": null }, { "abbrev": false, "full_module": "Lib.ByteSequence", "short_module": null }, { "abbrev": false, "full_module": "Lib.Sequence", "short_module": null }, { "abbrev": false, "full_module"...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
_: Prims.unit -> FStar.All.ALL Prims.bool
FStar.All.ALL
[]
[]
[ "Prims.unit", "Spec.SecretBox.tag", "Lib.ByteSequence.bytes", "Prims.b2t", "Prims.op_Equality", "Prims.nat", "Lib.Sequence.length", "Lib.IntTypes.uint_t", "Lib.IntTypes.U8", "Lib.IntTypes.SEC", "Spec.SecretBox.Test.plaintext", "Prims.op_AmpAmp", "Prims.bool", "FStar.IO.print_string", "Li...
[]
false
true
false
false
false
let test () =
let mac, cipher = secretbox_detached key nonce plaintext in let result_encryption = for_all2 (fun a b -> uint_to_nat #U8 a = uint_to_nat #U8 b) cipher xcipher in let result_mac_compare = for_all2 (fun a b -> uint_to_nat #U8 a = uint_to_nat #U8 b) mac xmac in let dec = secretbox_open_detached key nonce xmac xcipher in...
false
Vale.PPC64LE.QuickCode.fst
Vale.PPC64LE.QuickCode.va_quickCode
val va_quickCode : a: Type0 -> _: Vale.PPC64LE.Machine_s.precode Vale.PPC64LE.Decls.ins Vale.PPC64LE.Decls.ocmp -> Type
let va_quickCode = quickCode
{ "file_name": "vale/code/arch/ppc64le/Vale.PPC64LE.QuickCode.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 35, "end_line": 129, "start_col": 7, "start_line": 129 }
module Vale.PPC64LE.QuickCode open FStar.Mul open Vale.Def.Prop_s open Vale.PPC64LE.Machine_s open Vale.Arch.HeapImpl open Vale.PPC64LE.State open Vale.PPC64LE.Decls irreducible let qmodattr = () type mod_t = | Mod_None : mod_t | Mod_ok: mod_t | Mod_reg: reg -> mod_t | Mod_vec: vec -> mod_t | Mod_cr0: mod_t | Mod_xer...
{ "checked_file": "/", "dependencies": [ "Vale.PPC64LE.State.fsti.checked", "Vale.PPC64LE.Machine_s.fst.checked", "Vale.PPC64LE.Decls.fsti.checked", "Vale.Def.Prop_s.fst.checked", "Vale.Arch.HeapImpl.fsti.checked", "prims.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst....
[ { "abbrev": false, "full_module": "Vale.PPC64LE.Decls", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.State", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.HeapImpl", "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
a: Type0 -> _: Vale.PPC64LE.Machine_s.precode Vale.PPC64LE.Decls.ins Vale.PPC64LE.Decls.ocmp -> Type
Prims.Tot
[ "total" ]
[]
[ "Vale.PPC64LE.QuickCode.quickCode" ]
[]
false
false
false
true
true
let va_quickCode =
quickCode
false
Vale.PPC64LE.QuickCode.fst
Vale.PPC64LE.QuickCode.update_state_mods
val update_state_mods (mods: mods_t) (sM sK: state) : state
val update_state_mods (mods: mods_t) (sM sK: state) : state
let rec update_state_mods (mods:mods_t) (sM sK:state) : state = match mods with | [] -> sK | m::mods -> update_state_mod m sM (update_state_mods mods sM sK)
{ "file_name": "vale/code/arch/ppc64le/Vale.PPC64LE.QuickCode.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 67, "end_line": 72, "start_col": 0, "start_line": 69 }
module Vale.PPC64LE.QuickCode open FStar.Mul open Vale.Def.Prop_s open Vale.PPC64LE.Machine_s open Vale.Arch.HeapImpl open Vale.PPC64LE.State open Vale.PPC64LE.Decls irreducible let qmodattr = () type mod_t = | Mod_None : mod_t | Mod_ok: mod_t | Mod_reg: reg -> mod_t | Mod_vec: vec -> mod_t | Mod_cr0: mod_t | Mod_xer...
{ "checked_file": "/", "dependencies": [ "Vale.PPC64LE.State.fsti.checked", "Vale.PPC64LE.Machine_s.fst.checked", "Vale.PPC64LE.Decls.fsti.checked", "Vale.Def.Prop_s.fst.checked", "Vale.Arch.HeapImpl.fsti.checked", "prims.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst....
[ { "abbrev": false, "full_module": "Vale.PPC64LE.Decls", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.State", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.HeapImpl", "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
mods: Vale.PPC64LE.QuickCode.mods_t -> sM: Vale.PPC64LE.State.state -> sK: Vale.PPC64LE.State.state -> Vale.PPC64LE.State.state
Prims.Tot
[ "total" ]
[]
[ "Vale.PPC64LE.QuickCode.mods_t", "Vale.PPC64LE.State.state", "Vale.PPC64LE.QuickCode.mod_t", "Prims.list", "Vale.PPC64LE.QuickCode.update_state_mod", "Vale.PPC64LE.QuickCode.update_state_mods" ]
[ "recursion" ]
false
false
false
true
false
let rec update_state_mods (mods: mods_t) (sM sK: state) : state =
match mods with | [] -> sK | m :: mods -> update_state_mod m sM (update_state_mods mods sM sK)
false
Vale.PPC64LE.QuickCode.fst
Vale.PPC64LE.QuickCode.mod_eq
val mod_eq (x y: mod_t) : Pure bool (requires True) (ensures fun b -> b == (x = y))
val mod_eq (x y: mod_t) : Pure bool (requires True) (ensures fun b -> b == (x = y))
let mod_eq (x y:mod_t) : Pure bool (requires True) (ensures fun b -> b == (x = y)) = match x with | Mod_None -> (match y with Mod_None -> true | _ -> false) | Mod_ok -> (match y with Mod_ok -> true | _ -> false) | Mod_reg rx -> (match y with Mod_reg ry -> rx = ry | _ -> false) | Mod_vec vx -> (match y with Mo...
{ "file_name": "vale/code/arch/ppc64le/Vale.PPC64LE.QuickCode.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 72, "end_line": 51, "start_col": 0, "start_line": 39 }
module Vale.PPC64LE.QuickCode open FStar.Mul open Vale.Def.Prop_s open Vale.PPC64LE.Machine_s open Vale.Arch.HeapImpl open Vale.PPC64LE.State open Vale.PPC64LE.Decls irreducible let qmodattr = () type mod_t = | Mod_None : mod_t | Mod_ok: mod_t | Mod_reg: reg -> mod_t | Mod_vec: vec -> mod_t | Mod_cr0: mod_t | Mod_xer...
{ "checked_file": "/", "dependencies": [ "Vale.PPC64LE.State.fsti.checked", "Vale.PPC64LE.Machine_s.fst.checked", "Vale.PPC64LE.Decls.fsti.checked", "Vale.Def.Prop_s.fst.checked", "Vale.Arch.HeapImpl.fsti.checked", "prims.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst....
[ { "abbrev": false, "full_module": "Vale.PPC64LE.Decls", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.State", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.HeapImpl", "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
x: Vale.PPC64LE.QuickCode.mod_t -> y: Vale.PPC64LE.QuickCode.mod_t -> Prims.Pure Prims.bool
Prims.Pure
[]
[]
[ "Vale.PPC64LE.QuickCode.mod_t", "Prims.bool", "Vale.PPC64LE.Machine_s.reg", "Prims.op_Equality", "Vale.PPC64LE.Machine_s.vec", "Vale.PPC64LE.Decls.heaplet_id", "Prims.l_True", "Prims.eq2" ]
[]
false
false
false
false
false
let mod_eq (x y: mod_t) : Pure bool (requires True) (ensures fun b -> b == (x = y)) =
match x with | Mod_None -> (match y with | Mod_None -> true | _ -> false) | Mod_ok -> (match y with | Mod_ok -> true | _ -> false) | Mod_reg rx -> (match y with | Mod_reg ry -> rx = ry | _ -> false) | Mod_vec vx -> (match y with | Mod_vec vy -> vx = vy | _ -> false) | Mod_cr0 -> ...
false
Vale.PPC64LE.QuickCode.fst
Vale.PPC64LE.QuickCode.update_state_mod
val update_state_mod (m: mod_t) (sM sK: state) : state
val update_state_mod (m: mod_t) (sM sK: state) : state
let update_state_mod (m:mod_t) (sM sK:state) : state = match m with | Mod_None -> sK | Mod_ok -> va_update_ok sM sK | Mod_reg r -> va_update_reg r sM sK | Mod_vec v -> va_update_vec v sM sK | Mod_cr0 -> va_update_cr0 sM sK | Mod_xer -> va_update_xer sM sK | Mod_mem -> va_update_mem sM sK | Mod_mem_lay...
{ "file_name": "vale/code/arch/ppc64le/Vale.PPC64LE.QuickCode.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 48, "end_line": 66, "start_col": 0, "start_line": 54 }
module Vale.PPC64LE.QuickCode open FStar.Mul open Vale.Def.Prop_s open Vale.PPC64LE.Machine_s open Vale.Arch.HeapImpl open Vale.PPC64LE.State open Vale.PPC64LE.Decls irreducible let qmodattr = () type mod_t = | Mod_None : mod_t | Mod_ok: mod_t | Mod_reg: reg -> mod_t | Mod_vec: vec -> mod_t | Mod_cr0: mod_t | Mod_xer...
{ "checked_file": "/", "dependencies": [ "Vale.PPC64LE.State.fsti.checked", "Vale.PPC64LE.Machine_s.fst.checked", "Vale.PPC64LE.Decls.fsti.checked", "Vale.Def.Prop_s.fst.checked", "Vale.Arch.HeapImpl.fsti.checked", "prims.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst....
[ { "abbrev": false, "full_module": "Vale.PPC64LE.Decls", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.State", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.HeapImpl", "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
m: Vale.PPC64LE.QuickCode.mod_t -> sM: Vale.PPC64LE.State.state -> sK: Vale.PPC64LE.State.state -> Vale.PPC64LE.State.state
Prims.Tot
[ "total" ]
[]
[ "Vale.PPC64LE.QuickCode.mod_t", "Vale.PPC64LE.State.state", "Vale.PPC64LE.Decls.va_update_ok", "Vale.PPC64LE.Machine_s.reg", "Vale.PPC64LE.Decls.va_update_reg", "Vale.PPC64LE.Machine_s.vec", "Vale.PPC64LE.Decls.va_update_vec", "Vale.PPC64LE.Decls.va_update_cr0", "Vale.PPC64LE.Decls.va_update_xer", ...
[]
false
false
false
true
false
let update_state_mod (m: mod_t) (sM sK: state) : state =
match m with | Mod_None -> sK | Mod_ok -> va_update_ok sM sK | Mod_reg r -> va_update_reg r sM sK | Mod_vec v -> va_update_vec v sM sK | Mod_cr0 -> va_update_cr0 sM sK | Mod_xer -> va_update_xer sM sK | Mod_mem -> va_update_mem sM sK | Mod_mem_layout -> va_update_mem_layout sM sK | Mod_mem_heaplet n -> va_update_mem_he...
false
Vale.AES.GHash_BE.fst
Vale.AES.GHash_BE.gf128_power
val gf128_power (h:poly) (n:nat) : poly
val gf128_power (h:poly) (n:nat) : poly
let gf128_power h n = shift_gf128_key_1 (g_power h n)
{ "file_name": "vale/code/crypto/aes/Vale.AES.GHash_BE.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 53, "end_line": 21, "start_col": 0, "start_line": 21 }
module Vale.AES.GHash_BE open FStar.Mul open Vale.Math.Poly2.Lemmas open Vale.Math.Poly2.Words friend Vale.AES.OptPublic_BE #reset-options let shift_gf128_key_1 (h:poly) : poly = shift_key_1 128 gf128_modulus_low_terms h let rec g_power (a:poly) (n:nat) : poly = if n = 0 then zero else // arbitrary value for n ...
{ "checked_file": "/", "dependencies": [ "Vale.Math.Poly2.Words.fsti.checked", "Vale.Math.Poly2.Lemmas.fsti.checked", "Vale.AES.OptPublic_BE.fst.checked", "prims.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FStar.Calc.fsti.checked" ], "interface_file": tru...
[ { "abbrev": false, "full_module": "Vale.Def.Words.Seq_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Math.Poly2.Lemmas", "short_module": null }, { "abbrev": false, "full_module": "Vale.Math.Poly2.Words", "short_module": null }, { "abbrev": fal...
{ "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.Math.Poly2_s.poly -> n: Prims.nat -> Vale.Math.Poly2_s.poly
Prims.Tot
[ "total" ]
[]
[ "Vale.Math.Poly2_s.poly", "Prims.nat", "Vale.AES.GHash_BE.shift_gf128_key_1", "Vale.AES.GHash_BE.g_power" ]
[]
false
false
false
true
false
let gf128_power h n =
shift_gf128_key_1 (g_power h n)
false
Vale.AES.GHash_BE.fst
Vale.AES.GHash_BE.shift_gf128_key_1
val shift_gf128_key_1 (h: poly) : poly
val shift_gf128_key_1 (h: poly) : poly
let shift_gf128_key_1 (h:poly) : poly = shift_key_1 128 gf128_modulus_low_terms h
{ "file_name": "vale/code/crypto/aes/Vale.AES.GHash_BE.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 43, "end_line": 11, "start_col": 0, "start_line": 10 }
module Vale.AES.GHash_BE open FStar.Mul open Vale.Math.Poly2.Lemmas open Vale.Math.Poly2.Words friend Vale.AES.OptPublic_BE #reset-options
{ "checked_file": "/", "dependencies": [ "Vale.Math.Poly2.Words.fsti.checked", "Vale.Math.Poly2.Lemmas.fsti.checked", "Vale.AES.OptPublic_BE.fst.checked", "prims.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FStar.Calc.fsti.checked" ], "interface_file": tru...
[ { "abbrev": false, "full_module": "Vale.Math.Poly2.Words", "short_module": null }, { "abbrev": false, "full_module": "Vale.Math.Poly2.Lemmas", "short_module": null }, { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "fu...
{ "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.Math.Poly2_s.poly -> Vale.Math.Poly2_s.poly
Prims.Tot
[ "total" ]
[]
[ "Vale.Math.Poly2_s.poly", "Vale.AES.GF128.shift_key_1", "Vale.AES.GF128_s.gf128_modulus_low_terms" ]
[]
false
false
false
true
false
let shift_gf128_key_1 (h: poly) : poly =
shift_key_1 128 gf128_modulus_low_terms h
false
Vale.AES.GHash_BE.fst
Vale.AES.GHash_BE.g_power
val g_power (a:poly) (n:nat) : poly
val g_power (a:poly) (n:nat) : poly
let rec g_power (a:poly) (n:nat) : poly = if n = 0 then zero else // arbitrary value for n = 0 if n = 1 then a else a *~ g_power a (n - 1)
{ "file_name": "vale/code/crypto/aes/Vale.AES.GHash_BE.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 24, "end_line": 16, "start_col": 0, "start_line": 13 }
module Vale.AES.GHash_BE open FStar.Mul open Vale.Math.Poly2.Lemmas open Vale.Math.Poly2.Words friend Vale.AES.OptPublic_BE #reset-options let shift_gf128_key_1 (h:poly) : poly = shift_key_1 128 gf128_modulus_low_terms h
{ "checked_file": "/", "dependencies": [ "Vale.Math.Poly2.Words.fsti.checked", "Vale.Math.Poly2.Lemmas.fsti.checked", "Vale.AES.OptPublic_BE.fst.checked", "prims.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FStar.Calc.fsti.checked" ], "interface_file": tru...
[ { "abbrev": false, "full_module": "Vale.Def.Words.Seq_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Math.Poly2.Lemmas", "short_module": null }, { "abbrev": false, "full_module": "Vale.Math.Poly2.Words", "short_module": null }, { "abbrev": fal...
{ "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
a: Vale.Math.Poly2_s.poly -> n: Prims.nat -> Vale.Math.Poly2_s.poly
Prims.Tot
[ "total" ]
[]
[ "Vale.Math.Poly2_s.poly", "Prims.nat", "Prims.op_Equality", "Prims.int", "Vale.Math.Poly2_s.zero", "Prims.bool", "Vale.AES.GF128.op_Star_Tilde", "Vale.AES.GHash_BE.g_power", "Prims.op_Subtraction" ]
[ "recursion" ]
false
false
false
true
false
let rec g_power (a: poly) (n: nat) : poly =
if n = 0 then zero else if n = 1 then a else a *~ g_power a (n - 1)
false
Vale.AES.GHash_BE.fst
Vale.AES.GHash_BE.ghash_poly_unroll
val ghash_poly_unroll (h prev: poly) (data: (int -> poly128)) (k: int) (m n: nat) : poly
val ghash_poly_unroll (h prev: poly) (data: (int -> poly128)) (k: int) (m n: nat) : poly
let rec ghash_poly_unroll (h:poly) (prev:poly) (data:int -> poly128) (k:int) (m n:nat) : poly = let d = data (k + m) in let p = g_power h (n + 1) in if m = 0 then (prev +. d) *~ p else ghash_poly_unroll h prev data k (m - 1) (n + 1) +. d *~ p
{ "file_name": "vale/code/crypto/aes/Vale.AES.GHash_BE.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 59, "end_line": 28, "start_col": 0, "start_line": 24 }
module Vale.AES.GHash_BE open FStar.Mul open Vale.Math.Poly2.Lemmas open Vale.Math.Poly2.Words friend Vale.AES.OptPublic_BE #reset-options let shift_gf128_key_1 (h:poly) : poly = shift_key_1 128 gf128_modulus_low_terms h let rec g_power (a:poly) (n:nat) : poly = if n = 0 then zero else // arbitrary value for n ...
{ "checked_file": "/", "dependencies": [ "Vale.Math.Poly2.Words.fsti.checked", "Vale.Math.Poly2.Lemmas.fsti.checked", "Vale.AES.OptPublic_BE.fst.checked", "prims.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FStar.Calc.fsti.checked" ], "interface_file": tru...
[ { "abbrev": false, "full_module": "Vale.Math.Poly2.Words", "short_module": null }, { "abbrev": false, "full_module": "Vale.Math.Poly2.Lemmas", "short_module": null }, { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "fu...
{ "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.Math.Poly2_s.poly -> prev: Vale.Math.Poly2_s.poly -> data: (_: Prims.int -> Vale.AES.GHash_BE.poly128) -> k: Prims.int -> m: Prims.nat -> n: Prims.nat -> Vale.Math.Poly2_s.poly
Prims.Tot
[ "total" ]
[]
[ "Vale.Math.Poly2_s.poly", "Prims.int", "Vale.AES.GHash_BE.poly128", "Prims.nat", "Prims.op_Equality", "Vale.AES.GF128.op_Star_Tilde", "Vale.Math.Poly2.op_Plus_Dot", "Prims.bool", "Vale.AES.GHash_BE.ghash_poly_unroll", "Prims.op_Subtraction", "Prims.op_Addition", "Vale.AES.GHash_BE.g_power" ]
[ "recursion" ]
false
false
false
true
false
let rec ghash_poly_unroll (h prev: poly) (data: (int -> poly128)) (k: int) (m n: nat) : poly =
let d = data (k + m) in let p = g_power h (n + 1) in if m = 0 then (prev +. d) *~ p else ghash_poly_unroll h prev data k (m - 1) (n + 1) +. d *~ p
false
Vale.AES.GHash_BE.fst
Vale.AES.GHash_BE.lemma_ghash_poly_of_unroll
val lemma_ghash_poly_of_unroll (h:poly) (prev:poly) (data:int -> poly128) (k:int) (m:nat) : Lemma (requires degree h < 128 /\ degree prev < 128) (ensures mod_rev 128 (ghash_unroll h prev data k m 0) gf128_modulus == ghash_poly h prev data k (k + m + 1) )
val lemma_ghash_poly_of_unroll (h:poly) (prev:poly) (data:int -> poly128) (k:int) (m:nat) : Lemma (requires degree h < 128 /\ degree prev < 128) (ensures mod_rev 128 (ghash_unroll h prev data k m 0) gf128_modulus == ghash_poly h prev data k (k + m + 1) )
let lemma_ghash_poly_of_unroll h prev data k m = lemma_ghash_poly_unroll h prev data k m; lemma_ghash_unroll_poly_unroll h prev data k m 0; ()
{ "file_name": "vale/code/crypto/aes/Vale.AES.GHash_BE.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 4, "end_line": 199, "start_col": 0, "start_line": 196 }
module Vale.AES.GHash_BE open FStar.Mul open Vale.Math.Poly2.Lemmas open Vale.Math.Poly2.Words friend Vale.AES.OptPublic_BE #reset-options let shift_gf128_key_1 (h:poly) : poly = shift_key_1 128 gf128_modulus_low_terms h let rec g_power (a:poly) (n:nat) : poly = if n = 0 then zero else // arbitrary value for n ...
{ "checked_file": "/", "dependencies": [ "Vale.Math.Poly2.Words.fsti.checked", "Vale.Math.Poly2.Lemmas.fsti.checked", "Vale.AES.OptPublic_BE.fst.checked", "prims.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FStar.Calc.fsti.checked" ], "interface_file": tru...
[ { "abbrev": false, "full_module": "Vale.Def.Words.Seq_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Math.Poly2.Lemmas", "short_module": null }, { "abbrev": false, "full_module": "Vale.Math.Poly2.Words", "short_module": null }, { "abbrev": fal...
{ "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.Math.Poly2_s.poly -> prev: Vale.Math.Poly2_s.poly -> data: (_: Prims.int -> Vale.AES.GHash_BE.poly128) -> k: Prims.int -> m: Prims.nat -> FStar.Pervasives.Lemma (requires Vale.Math.Poly2_s.degree h < 128 /\ Vale.Math.Poly2_s.degree prev < 128) (ensures Vale.AES.GF128.m...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Vale.Math.Poly2_s.poly", "Prims.int", "Vale.AES.GHash_BE.poly128", "Prims.nat", "Prims.unit", "Vale.AES.GHash_BE.lemma_ghash_unroll_poly_unroll", "Vale.AES.GHash_BE.lemma_ghash_poly_unroll" ]
[]
true
false
true
false
false
let lemma_ghash_poly_of_unroll h prev data k m =
lemma_ghash_poly_unroll h prev data k m; lemma_ghash_unroll_poly_unroll h prev data k m 0; ()
false
Vale.AES.GHash_BE.fst
Vale.AES.GHash_BE.lemma_ghash_unroll_back_forward
val lemma_ghash_unroll_back_forward (h:poly) (prev:poly) (data:int -> poly128) (k:int) (n:nat) : Lemma (ghash_unroll h prev data k n 0 == ghash_unroll_back h prev data k (n + 1) n)
val lemma_ghash_unroll_back_forward (h:poly) (prev:poly) (data:int -> poly128) (k:int) (n:nat) : Lemma (ghash_unroll h prev data k n 0 == ghash_unroll_back h prev data k (n + 1) n)
let lemma_ghash_unroll_back_forward (h:poly) (prev:poly) (data:int -> poly128) (k:int) (n:nat) : Lemma (ghash_unroll h prev data k n 0 == ghash_unroll_back h prev data k (n + 1) n) = lemma_add_all (); if n > 0 then lemma_ghash_unroll_back_forward_rec h prev data k n (n - 1)
{ "file_name": "vale/code/crypto/aes/Vale.AES.GHash_BE.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 75, "end_line": 47, "start_col": 0, "start_line": 43 }
module Vale.AES.GHash_BE open FStar.Mul open Vale.Math.Poly2.Lemmas open Vale.Math.Poly2.Words friend Vale.AES.OptPublic_BE #reset-options let shift_gf128_key_1 (h:poly) : poly = shift_key_1 128 gf128_modulus_low_terms h let rec g_power (a:poly) (n:nat) : poly = if n = 0 then zero else // arbitrary value for n ...
{ "checked_file": "/", "dependencies": [ "Vale.Math.Poly2.Words.fsti.checked", "Vale.Math.Poly2.Lemmas.fsti.checked", "Vale.AES.OptPublic_BE.fst.checked", "prims.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FStar.Calc.fsti.checked" ], "interface_file": tru...
[ { "abbrev": false, "full_module": "Vale.Def.Words.Seq_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Math.Poly2.Lemmas", "short_module": null }, { "abbrev": false, "full_module": "Vale.Math.Poly2.Words", "short_module": null }, { "abbrev": fal...
{ "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.Math.Poly2_s.poly -> prev: Vale.Math.Poly2_s.poly -> data: (_: Prims.int -> Vale.AES.GHash_BE.poly128) -> k: Prims.int -> n: Prims.nat -> FStar.Pervasives.Lemma (ensures Vale.AES.GHash_BE.ghash_unroll h prev data k n 0 == Vale.AES.GHash_BE.ghash_unroll_back h prev data k (...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Vale.Math.Poly2_s.poly", "Prims.int", "Vale.AES.GHash_BE.poly128", "Prims.nat", "Prims.op_GreaterThan", "Vale.AES.GHash_BE.lemma_ghash_unroll_back_forward_rec", "Prims.op_Subtraction", "Prims.bool", "Prims.unit", "Vale.Math.Poly2.Lemmas.lemma_add_all", "Prims.l_True", "Prims.squash", "Prims...
[]
false
false
true
false
false
let lemma_ghash_unroll_back_forward (h prev: poly) (data: (int -> poly128)) (k: int) (n: nat) : Lemma (ghash_unroll h prev data k n 0 == ghash_unroll_back h prev data k (n + 1) n) =
lemma_add_all (); if n > 0 then lemma_ghash_unroll_back_forward_rec h prev data k n (n - 1)
false
Vale.AES.GHash_BE.fst
Vale.AES.GHash_BE.lemma_ghash_incremental0_append
val lemma_ghash_incremental0_append (h y0 y1 y2:quad32) (s1 s2:seq quad32) : Lemma (requires y1 = ghash_incremental0 h y0 s1 /\ y2 = ghash_incremental0 h y1 s2) (ensures y2 = ghash_incremental0 h y0 (s1 @| s2))
val lemma_ghash_incremental0_append (h y0 y1 y2:quad32) (s1 s2:seq quad32) : Lemma (requires y1 = ghash_incremental0 h y0 s1 /\ y2 = ghash_incremental0 h y1 s2) (ensures y2 = ghash_incremental0 h y0 (s1 @| s2))
let lemma_ghash_incremental0_append (h y0 y1 y2:quad32) (s1 s2:seq quad32) : Lemma (requires y1 = ghash_incremental0 h y0 s1 /\ y2 = ghash_incremental0 h y1 s2) (ensures y2 = ghash_incremental0 h y0 (s1 @| s2)) = let s12 = s1 @| s2 in if length s1 = 0 then ( assert (equal s12 s2) ) else ( ...
{ "file_name": "vale/code/crypto/aes/Vale.AES.GHash_BE.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 4, "end_line": 281, "start_col": 0, "start_line": 266 }
module Vale.AES.GHash_BE open FStar.Mul open Vale.Math.Poly2.Lemmas open Vale.Math.Poly2.Words friend Vale.AES.OptPublic_BE #reset-options let shift_gf128_key_1 (h:poly) : poly = shift_key_1 128 gf128_modulus_low_terms h let rec g_power (a:poly) (n:nat) : poly = if n = 0 then zero else // arbitrary value for n ...
{ "checked_file": "/", "dependencies": [ "Vale.Math.Poly2.Words.fsti.checked", "Vale.Math.Poly2.Lemmas.fsti.checked", "Vale.AES.OptPublic_BE.fst.checked", "prims.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FStar.Calc.fsti.checked" ], "interface_file": tru...
[ { "abbrev": false, "full_module": "Vale.Def.Words.Seq_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Math.Poly2.Lemmas", "short_module": null }, { "abbrev": false, "full_module": "Vale.Math.Poly2.Words", "short_module": null }, { "abbrev": fal...
{ "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.Def.Types_s.quad32 -> y0: Vale.Def.Types_s.quad32 -> y1: Vale.Def.Types_s.quad32 -> y2: Vale.Def.Types_s.quad32 -> s1: FStar.Seq.Base.seq Vale.Def.Types_s.quad32 -> s2: FStar.Seq.Base.seq Vale.Def.Types_s.quad32 -> FStar.Pervasives.Lemma (requires y1 = Vale.AES.GHash_BE....
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Vale.Def.Types_s.quad32", "FStar.Seq.Base.seq", "Prims.unit", "Prims.op_Equality", "Prims.int", "FStar.Seq.Base.length", "Prims._assert", "FStar.Seq.Base.equal", "Prims.bool", "Vale.AES.GHash_BE.lemma_hash_append", "FStar.Seq.Base.op_At_Bar", "Prims.l_and", "Prims.b2t", "Vale.AES.GHash_BE...
[]
false
false
true
false
false
let lemma_ghash_incremental0_append (h y0 y1 y2: quad32) (s1 s2: seq quad32) : Lemma (requires y1 = ghash_incremental0 h y0 s1 /\ y2 = ghash_incremental0 h y1 s2) (ensures y2 = ghash_incremental0 h y0 (s1 @| s2)) =
let s12 = s1 @| s2 in if length s1 = 0 then (assert (equal s12 s2)) else (if length s2 = 0 then (assert (equal s12 s1)) else (lemma_hash_append h y0 s1 s2)); ()
false
Vale.AES.GHash_BE.fst
Vale.AES.GHash_BE.lemma_gf128_mul_rev_mod_rev
val lemma_gf128_mul_rev_mod_rev (a h: poly) : Lemma (requires degree a < 128 /\ degree h < 128) (ensures gf128_mul_rev a h == mod_rev 128 (a *. shift_gf128_key_1 h) gf128_modulus)
val lemma_gf128_mul_rev_mod_rev (a h: poly) : Lemma (requires degree a < 128 /\ degree h < 128) (ensures gf128_mul_rev a h == mod_rev 128 (a *. shift_gf128_key_1 h) gf128_modulus)
let lemma_gf128_mul_rev_mod_rev (a h:poly) : Lemma (requires degree a < 128 /\ degree h < 128) (ensures gf128_mul_rev a h == mod_rev 128 (a *. shift_gf128_key_1 h) gf128_modulus) = let h1 = shift_gf128_key_1 h in let rev x = reverse x 127 in let g = gf128_modulus in lemma_gf128_degree (); calc (==) { ...
{ "file_name": "vale/code/crypto/aes/Vale.AES.GHash_BE.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 3, "end_line": 74, "start_col": 0, "start_line": 49 }
module Vale.AES.GHash_BE open FStar.Mul open Vale.Math.Poly2.Lemmas open Vale.Math.Poly2.Words friend Vale.AES.OptPublic_BE #reset-options let shift_gf128_key_1 (h:poly) : poly = shift_key_1 128 gf128_modulus_low_terms h let rec g_power (a:poly) (n:nat) : poly = if n = 0 then zero else // arbitrary value for n ...
{ "checked_file": "/", "dependencies": [ "Vale.Math.Poly2.Words.fsti.checked", "Vale.Math.Poly2.Lemmas.fsti.checked", "Vale.AES.OptPublic_BE.fst.checked", "prims.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FStar.Calc.fsti.checked" ], "interface_file": tru...
[ { "abbrev": false, "full_module": "Vale.Math.Poly2.Words", "short_module": null }, { "abbrev": false, "full_module": "Vale.Math.Poly2.Lemmas", "short_module": null }, { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "fu...
{ "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
a: Vale.Math.Poly2_s.poly -> h: Vale.Math.Poly2_s.poly -> FStar.Pervasives.Lemma (requires Vale.Math.Poly2_s.degree a < 128 /\ Vale.Math.Poly2_s.degree h < 128) (ensures Vale.AES.GF128.gf128_mul_rev a h == Vale.AES.GF128.mod_rev 128 (a *. Vale.AES.GHash_BE.shift_gf128_key_1 h) ...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Vale.Math.Poly2_s.poly", "FStar.Calc.calc_finish", "Prims.eq2", "Vale.Math.Poly2.op_Percent_Dot", "Vale.Math.Poly2.op_Star_Dot", "Vale.Math.Poly2_s.reverse", "Prims.Cons", "FStar.Preorder.relation", "Prims.Nil", "Prims.unit", "FStar.Calc.calc_step", "Vale.Math.Poly2_s.shift", "Vale.Math.Pol...
[]
false
false
true
false
false
let lemma_gf128_mul_rev_mod_rev (a h: poly) : Lemma (requires degree a < 128 /\ degree h < 128) (ensures gf128_mul_rev a h == mod_rev 128 (a *. shift_gf128_key_1 h) gf128_modulus) =
let h1 = shift_gf128_key_1 h in let rev x = reverse x 127 in let g = gf128_modulus in lemma_gf128_degree (); calc ( == ) { rev ((rev a *. rev h) %. g); ( == ) { lemma_mod_mul_mod_right (rev a) (rev h) g } rev ((rev a *. (rev h %. g)) %. g); ( == ) { lemma_shift_key_1 128 gf128_modulus_low_terms h } rev ((rev ...
false
Vale.AES.GHash_BE.fst
Vale.AES.GHash_BE.lemma_ghash_incremental_poly
val lemma_ghash_incremental_poly (h_BE:quad32) (y_prev:quad32) (x:seq quad32) : Lemma (ensures of_quad32 (ghash_incremental h_BE y_prev x) == ghash_poly (of_quad32 h_BE) (of_quad32 y_prev) (fun_seq_quad32_BE_poly128 x) 0 (length x) )
val lemma_ghash_incremental_poly (h_BE:quad32) (y_prev:quad32) (x:seq quad32) : Lemma (ensures of_quad32 (ghash_incremental h_BE y_prev x) == ghash_poly (of_quad32 h_BE) (of_quad32 y_prev) (fun_seq_quad32_BE_poly128 x) 0 (length x) )
let lemma_ghash_incremental_poly h_BE y_prev x = ghash_incremental_reveal (); lemma_ghash_incremental_poly_rec h_BE y_prev x (fun_seq_quad32_BE_poly128 x)
{ "file_name": "vale/code/crypto/aes/Vale.AES.GHash_BE.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 78, "end_line": 238, "start_col": 0, "start_line": 236 }
module Vale.AES.GHash_BE open FStar.Mul open Vale.Math.Poly2.Lemmas open Vale.Math.Poly2.Words friend Vale.AES.OptPublic_BE #reset-options let shift_gf128_key_1 (h:poly) : poly = shift_key_1 128 gf128_modulus_low_terms h let rec g_power (a:poly) (n:nat) : poly = if n = 0 then zero else // arbitrary value for n ...
{ "checked_file": "/", "dependencies": [ "Vale.Math.Poly2.Words.fsti.checked", "Vale.Math.Poly2.Lemmas.fsti.checked", "Vale.AES.OptPublic_BE.fst.checked", "prims.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FStar.Calc.fsti.checked" ], "interface_file": tru...
[ { "abbrev": false, "full_module": "Vale.Def.Words.Seq_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Math.Poly2.Lemmas", "short_module": null }, { "abbrev": false, "full_module": "Vale.Math.Poly2.Words", "short_module": null }, { "abbrev": fal...
{ "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_BE: Vale.Def.Types_s.quad32 -> y_prev: Vale.Def.Types_s.quad32 -> x: FStar.Seq.Base.seq Vale.Def.Types_s.quad32 -> FStar.Pervasives.Lemma (ensures Vale.Math.Poly2.Bits_s.of_quad32 (Vale.AES.GHash_BE.ghash_incremental h_BE y_prev x) == Vale.AES.GHash_BE.ghash_poly (Vale.Math.Poly2.Bits_s...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Vale.Def.Types_s.quad32", "FStar.Seq.Base.seq", "Vale.AES.GHash_BE.lemma_ghash_incremental_poly_rec", "Vale.AES.GHash_BE.fun_seq_quad32_BE_poly128", "Prims.unit", "Vale.AES.GHash_BE.ghash_incremental_reveal" ]
[]
true
false
true
false
false
let lemma_ghash_incremental_poly h_BE y_prev x =
ghash_incremental_reveal (); lemma_ghash_incremental_poly_rec h_BE y_prev x (fun_seq_quad32_BE_poly128 x)
false
Vale.AES.GHash_BE.fst
Vale.AES.GHash_BE.lemma_hash_append
val lemma_hash_append (h:quad32) (y_prev:quad32) (a b:ghash_plain_BE) : Lemma (ensures ghash_incremental h y_prev (append a b) == (let y_a = ghash_incremental h y_prev a in ghash_incremental h y_a b)) (decreases %[length b])
val lemma_hash_append (h:quad32) (y_prev:quad32) (a b:ghash_plain_BE) : Lemma (ensures ghash_incremental h y_prev (append a b) == (let y_a = ghash_incremental h y_prev a in ghash_incremental h y_a b)) (decreases %[length b])
let rec lemma_hash_append (h:quad32) (y_prev:quad32) (a b:ghash_plain_BE) = ghash_incremental_reveal (); let ab = append a b in assert (last ab == last b); if length b = 1 then (lemma_slice_first_exactly_in_append a b; assert (all_but_last ab == a); ()) else lemma_hash_append h y_prev a (a...
{ "file_name": "vale/code/crypto/aes/Vale.AES.GHash_BE.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 4, "end_line": 264, "start_col": 0, "start_line": 251 }
module Vale.AES.GHash_BE open FStar.Mul open Vale.Math.Poly2.Lemmas open Vale.Math.Poly2.Words friend Vale.AES.OptPublic_BE #reset-options let shift_gf128_key_1 (h:poly) : poly = shift_key_1 128 gf128_modulus_low_terms h let rec g_power (a:poly) (n:nat) : poly = if n = 0 then zero else // arbitrary value for n ...
{ "checked_file": "/", "dependencies": [ "Vale.Math.Poly2.Words.fsti.checked", "Vale.Math.Poly2.Lemmas.fsti.checked", "Vale.AES.OptPublic_BE.fst.checked", "prims.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FStar.Calc.fsti.checked" ], "interface_file": tru...
[ { "abbrev": false, "full_module": "Vale.Def.Words.Seq_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Math.Poly2.Lemmas", "short_module": null }, { "abbrev": false, "full_module": "Vale.Math.Poly2.Words", "short_module": null }, { "abbrev": fal...
{ "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.Def.Types_s.quad32 -> y_prev: Vale.Def.Types_s.quad32 -> a: Vale.AES.GHash_BE_s.ghash_plain_BE -> b: Vale.AES.GHash_BE_s.ghash_plain_BE -> FStar.Pervasives.Lemma (ensures Vale.AES.GHash_BE.ghash_incremental h y_prev (FStar.Seq.Base.append a b) == (let y_a = Vale.AES.GHas...
FStar.Pervasives.Lemma
[ "lemma", "" ]
[]
[ "Vale.Def.Types_s.quad32", "Vale.AES.GHash_BE_s.ghash_plain_BE", "Prims.unit", "Prims._assert", "Prims.eq2", "FStar.Seq.Base.seq", "Vale.Lib.Seqs_s.all_but_last", "FStar.Seq.Base.append", "Vale.Lib.Seqs.lemma_all_but_last_append", "Prims.op_Equality", "Prims.int", "FStar.Seq.Base.length", "V...
[ "recursion" ]
false
false
true
false
false
let rec lemma_hash_append (h y_prev: quad32) (a b: ghash_plain_BE) =
ghash_incremental_reveal (); let ab = append a b in assert (last ab == last b); if length b = 1 then (lemma_slice_first_exactly_in_append a b; assert (all_but_last ab == a); ()) else lemma_hash_append h y_prev a (all_but_last b); lemma_all_but_last_append a b; assert (all_but_last ab == append a (all_but_last...
false
Vale.AES.GHash_BE.fst
Vale.AES.GHash_BE.lemma_ghash_poly_unroll
val lemma_ghash_poly_unroll (h0 prev: poly) (data: (int -> poly128)) (k: int) (m: nat) : Lemma (requires degree h0 < 128 /\ degree prev < 128) (ensures ghash_poly_unroll h0 prev data k m 0 == ghash_poly h0 prev data k (k + m + 1))
val lemma_ghash_poly_unroll (h0 prev: poly) (data: (int -> poly128)) (k: int) (m: nat) : Lemma (requires degree h0 < 128 /\ degree prev < 128) (ensures ghash_poly_unroll h0 prev data k m 0 == ghash_poly h0 prev data k (k + m + 1))
let rec lemma_ghash_poly_unroll (h0:poly) (prev:poly) (data:int -> poly128) (k:int) (m:nat) : Lemma (requires degree h0 < 128 /\ degree prev < 128) (ensures ghash_poly_unroll h0 prev data k m 0 == ghash_poly h0 prev data k (k + m + 1)) = let d = data (k + m) in let p1 = g_power h0 1 in let ghash0 = ghash_po...
{ "file_name": "vale/code/crypto/aes/Vale.AES.GHash_BE.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 5, "end_line": 155, "start_col": 0, "start_line": 117 }
module Vale.AES.GHash_BE open FStar.Mul open Vale.Math.Poly2.Lemmas open Vale.Math.Poly2.Words friend Vale.AES.OptPublic_BE #reset-options let shift_gf128_key_1 (h:poly) : poly = shift_key_1 128 gf128_modulus_low_terms h let rec g_power (a:poly) (n:nat) : poly = if n = 0 then zero else // arbitrary value for n ...
{ "checked_file": "/", "dependencies": [ "Vale.Math.Poly2.Words.fsti.checked", "Vale.Math.Poly2.Lemmas.fsti.checked", "Vale.AES.OptPublic_BE.fst.checked", "prims.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FStar.Calc.fsti.checked" ], "interface_file": tru...
[ { "abbrev": false, "full_module": "Vale.Math.Poly2.Words", "short_module": null }, { "abbrev": false, "full_module": "Vale.Math.Poly2.Lemmas", "short_module": null }, { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "fu...
{ "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
h0: Vale.Math.Poly2_s.poly -> prev: Vale.Math.Poly2_s.poly -> data: (_: Prims.int -> Vale.AES.GHash_BE.poly128) -> k: Prims.int -> m: Prims.nat -> FStar.Pervasives.Lemma (requires Vale.Math.Poly2_s.degree h0 < 128 /\ Vale.Math.Poly2_s.degree prev < 128) (ensures Vale.AES.GHash...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Vale.Math.Poly2_s.poly", "Prims.int", "Vale.AES.GHash_BE.poly128", "Prims.nat", "Prims.op_Equality", "FStar.Calc.calc_finish", "Prims.eq2", "Vale.AES.GHash_BE.ghash_poly_unroll", "Vale.AES.GHash_BE.ghash_poly", "Prims.op_Addition", "Prims.Cons", "FStar.Preorder.relation", "Prims.Nil", "Pr...
[ "recursion" ]
false
false
true
false
false
let rec lemma_ghash_poly_unroll (h0 prev: poly) (data: (int -> poly128)) (k: int) (m: nat) : Lemma (requires degree h0 < 128 /\ degree prev < 128) (ensures ghash_poly_unroll h0 prev data k m 0 == ghash_poly h0 prev data k (k + m + 1)) =
let d = data (k + m) in let p1 = g_power h0 1 in let ghash0 = ghash_poly h0 prev data k (k + m) in if m = 0 then calc ( == ) { ghash_poly_unroll h0 prev data k m 0; ( == ) { () } (prev +. d) *~ p1; ( == ) { () } (ghash0 +. d) *~ h0; ( == ) { () } ghash_poly h0 prev data k (k + m + 1); } ...
false
Vale.AES.GHash_BE.fst
Vale.AES.GHash_BE.lemma_ghash_unroll_back_forward_rec
val lemma_ghash_unroll_back_forward_rec (h prev: poly) (data: (int -> poly128)) (k: int) (n m: nat) : Lemma (requires m < n) (ensures ghash_unroll h prev data k n 0 == ghash_unroll h prev data k (n - 1 - m) (m + 1) +. ghash_unroll_back h prev data k (n + 1) m)
val lemma_ghash_unroll_back_forward_rec (h prev: poly) (data: (int -> poly128)) (k: int) (n m: nat) : Lemma (requires m < n) (ensures ghash_unroll h prev data k n 0 == ghash_unroll h prev data k (n - 1 - m) (m + 1) +. ghash_unroll_back h prev data k (n + 1) m)
let rec lemma_ghash_unroll_back_forward_rec (h:poly) (prev:poly) (data:int -> poly128) (k:int) (n m:nat) : Lemma (requires m < n) (ensures ghash_unroll h prev data k n 0 == ghash_unroll h prev data k (n - 1 - m) (m + 1) +. ghash_unroll_back h prev data k (n + 1) m) = lemma_add_all (); if m > 0 then lemma_...
{ "file_name": "vale/code/crypto/aes/Vale.AES.GHash_BE.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 75, "end_line": 41, "start_col": 0, "start_line": 35 }
module Vale.AES.GHash_BE open FStar.Mul open Vale.Math.Poly2.Lemmas open Vale.Math.Poly2.Words friend Vale.AES.OptPublic_BE #reset-options let shift_gf128_key_1 (h:poly) : poly = shift_key_1 128 gf128_modulus_low_terms h let rec g_power (a:poly) (n:nat) : poly = if n = 0 then zero else // arbitrary value for n ...
{ "checked_file": "/", "dependencies": [ "Vale.Math.Poly2.Words.fsti.checked", "Vale.Math.Poly2.Lemmas.fsti.checked", "Vale.AES.OptPublic_BE.fst.checked", "prims.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FStar.Calc.fsti.checked" ], "interface_file": tru...
[ { "abbrev": false, "full_module": "Vale.Math.Poly2.Words", "short_module": null }, { "abbrev": false, "full_module": "Vale.Math.Poly2.Lemmas", "short_module": null }, { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "fu...
{ "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.Math.Poly2_s.poly -> prev: Vale.Math.Poly2_s.poly -> data: (_: Prims.int -> Vale.AES.GHash_BE.poly128) -> k: Prims.int -> n: Prims.nat -> m: Prims.nat -> FStar.Pervasives.Lemma (requires m < n) (ensures Vale.AES.GHash_BE.ghash_unroll h prev data k n 0 == Vale.AES...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Vale.Math.Poly2_s.poly", "Prims.int", "Vale.AES.GHash_BE.poly128", "Prims.nat", "Prims.op_GreaterThan", "Vale.AES.GHash_BE.lemma_ghash_unroll_back_forward_rec", "Prims.op_Subtraction", "Prims.bool", "Prims.unit", "Vale.Math.Poly2.Lemmas.lemma_add_all", "Prims.b2t", "Prims.op_LessThan", "Pri...
[ "recursion" ]
false
false
true
false
false
let rec lemma_ghash_unroll_back_forward_rec (h prev: poly) (data: (int -> poly128)) (k: int) (n m: nat) : Lemma (requires m < n) (ensures ghash_unroll h prev data k n 0 == ghash_unroll h prev data k (n - 1 - m) (m + 1) +. ghash_unroll_back h prev data k (n + 1) m) =
lemma_add_all (); if m > 0 then lemma_ghash_unroll_back_forward_rec h prev data k n (m - 1)
false
Vale.AES.GHash_BE.fst
Vale.AES.GHash_BE.lemma_ghash_poly_unroll_n
val lemma_ghash_poly_unroll_n (h prev: poly) (data: (int -> poly128)) (k: int) (m n: nat) : Lemma (ghash_poly_unroll h prev data k m (n + 1) == ghash_poly_unroll h prev data k m n *~ h)
val lemma_ghash_poly_unroll_n (h prev: poly) (data: (int -> poly128)) (k: int) (m n: nat) : Lemma (ghash_poly_unroll h prev data k m (n + 1) == ghash_poly_unroll h prev data k m n *~ h)
let rec lemma_ghash_poly_unroll_n (h:poly) (prev:poly) (data:int -> poly128) (k:int) (m n:nat) : Lemma (ghash_poly_unroll h prev data k m (n + 1) == ghash_poly_unroll h prev data k m n *~ h) = let d = data (k + m) in let p0 = g_power h (n + 1) in let p1 = g_power h (n + 2) in if m = 0 then calc (==) { ...
{ "file_name": "vale/code/crypto/aes/Vale.AES.GHash_BE.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 5, "end_line": 115, "start_col": 0, "start_line": 76 }
module Vale.AES.GHash_BE open FStar.Mul open Vale.Math.Poly2.Lemmas open Vale.Math.Poly2.Words friend Vale.AES.OptPublic_BE #reset-options let shift_gf128_key_1 (h:poly) : poly = shift_key_1 128 gf128_modulus_low_terms h let rec g_power (a:poly) (n:nat) : poly = if n = 0 then zero else // arbitrary value for n ...
{ "checked_file": "/", "dependencies": [ "Vale.Math.Poly2.Words.fsti.checked", "Vale.Math.Poly2.Lemmas.fsti.checked", "Vale.AES.OptPublic_BE.fst.checked", "prims.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FStar.Calc.fsti.checked" ], "interface_file": tru...
[ { "abbrev": false, "full_module": "Vale.Math.Poly2.Words", "short_module": null }, { "abbrev": false, "full_module": "Vale.Math.Poly2.Lemmas", "short_module": null }, { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "fu...
{ "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.Math.Poly2_s.poly -> prev: Vale.Math.Poly2_s.poly -> data: (_: Prims.int -> Vale.AES.GHash_BE.poly128) -> k: Prims.int -> m: Prims.nat -> n: Prims.nat -> FStar.Pervasives.Lemma (ensures Vale.AES.GHash_BE.ghash_poly_unroll h prev data k m (n + 1) == Vale.AES.GHash_BE.gh...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Vale.Math.Poly2_s.poly", "Prims.int", "Vale.AES.GHash_BE.poly128", "Prims.nat", "Prims.op_Equality", "FStar.Calc.calc_finish", "Prims.eq2", "Vale.AES.GHash_BE.ghash_poly_unroll", "Prims.op_Addition", "Vale.AES.GF128.op_Star_Tilde", "Prims.Cons", "FStar.Preorder.relation", "Prims.Nil", "Pr...
[ "recursion" ]
false
false
true
false
false
let rec lemma_ghash_poly_unroll_n (h prev: poly) (data: (int -> poly128)) (k: int) (m n: nat) : Lemma (ghash_poly_unroll h prev data k m (n + 1) == ghash_poly_unroll h prev data k m n *~ h) =
let d = data (k + m) in let p0 = g_power h (n + 1) in let p1 = g_power h (n + 2) in if m = 0 then calc ( == ) { ghash_poly_unroll h prev data k m (n + 1); ( == ) { () } (prev +. d) *~ p1; ( == ) { () } (prev +. d) *~ (h *~ p0); ( == ) { lemma_gf128_mul_rev_commute p0 h } (prev +. d) *~ (p0...
false
Vale.AES.GHash_BE.fst
Vale.AES.GHash_BE.lemma_hash_append2
val lemma_hash_append2 (h y_init y_mid y_final:quad32) (s1:seq quad32) (q:quad32) : Lemma (requires y_mid = ghash_incremental0 h y_init s1 /\ y_final = ghash_incremental h y_mid (create 1 q)) (ensures y_final == ghash_incremental h y_init (s1 @| (create 1 q)))
val lemma_hash_append2 (h y_init y_mid y_final:quad32) (s1:seq quad32) (q:quad32) : Lemma (requires y_mid = ghash_incremental0 h y_init s1 /\ y_final = ghash_incremental h y_mid (create 1 q)) (ensures y_final == ghash_incremental h y_init (s1 @| (create 1 q)))
let lemma_hash_append2 (h y_init y_mid y_final:quad32) (s1:seq quad32) (q:quad32) = let qs = create 1 q in let s12 = s1 @| qs in if length s1 = 0 then ( assert(equal s12 qs) ) else ( lemma_hash_append h y_init s1 qs ); ()
{ "file_name": "vale/code/crypto/aes/Vale.AES.GHash_BE.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 4, "end_line": 292, "start_col": 0, "start_line": 283 }
module Vale.AES.GHash_BE open FStar.Mul open Vale.Math.Poly2.Lemmas open Vale.Math.Poly2.Words friend Vale.AES.OptPublic_BE #reset-options let shift_gf128_key_1 (h:poly) : poly = shift_key_1 128 gf128_modulus_low_terms h let rec g_power (a:poly) (n:nat) : poly = if n = 0 then zero else // arbitrary value for n ...
{ "checked_file": "/", "dependencies": [ "Vale.Math.Poly2.Words.fsti.checked", "Vale.Math.Poly2.Lemmas.fsti.checked", "Vale.AES.OptPublic_BE.fst.checked", "prims.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FStar.Calc.fsti.checked" ], "interface_file": tru...
[ { "abbrev": false, "full_module": "Vale.Def.Words.Seq_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Math.Poly2.Lemmas", "short_module": null }, { "abbrev": false, "full_module": "Vale.Math.Poly2.Words", "short_module": null }, { "abbrev": fal...
{ "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.Def.Types_s.quad32 -> y_init: Vale.Def.Types_s.quad32 -> y_mid: Vale.Def.Types_s.quad32 -> y_final: Vale.Def.Types_s.quad32 -> s1: FStar.Seq.Base.seq Vale.Def.Types_s.quad32 -> q: Vale.Def.Types_s.quad32 -> FStar.Pervasives.Lemma (requires y_mid = Vale.AES.GHash_BE.ghash...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Vale.Def.Types_s.quad32", "FStar.Seq.Base.seq", "Prims.unit", "Prims.op_Equality", "Prims.int", "FStar.Seq.Base.length", "Prims._assert", "FStar.Seq.Base.equal", "Prims.bool", "Vale.AES.GHash_BE.lemma_hash_append", "FStar.Seq.Base.op_At_Bar", "FStar.Seq.Base.create" ]
[]
false
false
true
false
false
let lemma_hash_append2 (h y_init y_mid y_final: quad32) (s1: seq quad32) (q: quad32) =
let qs = create 1 q in let s12 = s1 @| qs in if length s1 = 0 then (assert (equal s12 qs)) else (lemma_hash_append h y_init s1 qs); ()
false
Vale.AES.GHash_BE.fst
Vale.AES.GHash_BE.ghash_incremental_bytes_pure_no_extra
val ghash_incremental_bytes_pure_no_extra (old_io io h:quad32) (in_quads:seq quad32) (num_bytes:nat64) : Lemma (requires io = ghash_incremental0 h old_io in_quads) (ensures length in_quads == (num_bytes / 16) /\ num_bytes % 16 == 0 ==> (let input_bytes = slice (seq_nat32_to_seq_nat8_BE (seq...
val ghash_incremental_bytes_pure_no_extra (old_io io h:quad32) (in_quads:seq quad32) (num_bytes:nat64) : Lemma (requires io = ghash_incremental0 h old_io in_quads) (ensures length in_quads == (num_bytes / 16) /\ num_bytes % 16 == 0 ==> (let input_bytes = slice (seq_nat32_to_seq_nat8_BE (seq...
let ghash_incremental_bytes_pure_no_extra (old_io io h:quad32) (in_quads:seq quad32) (num_bytes:nat64) : Lemma (requires io = ghash_incremental0 h old_io in_quads) (ensures length in_quads == (num_bytes / 16) /\ num_bytes % 16 == 0 ==> (let input_bytes = slice (seq_nat32_to_seq_nat8_BE (seq...
{ "file_name": "vale/code/crypto/aes/Vale.AES.GHash_BE.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 4, "end_line": 311, "start_col": 0, "start_line": 294 }
module Vale.AES.GHash_BE open FStar.Mul open Vale.Math.Poly2.Lemmas open Vale.Math.Poly2.Words friend Vale.AES.OptPublic_BE #reset-options let shift_gf128_key_1 (h:poly) : poly = shift_key_1 128 gf128_modulus_low_terms h let rec g_power (a:poly) (n:nat) : poly = if n = 0 then zero else // arbitrary value for n ...
{ "checked_file": "/", "dependencies": [ "Vale.Math.Poly2.Words.fsti.checked", "Vale.Math.Poly2.Lemmas.fsti.checked", "Vale.AES.OptPublic_BE.fst.checked", "prims.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FStar.Calc.fsti.checked" ], "interface_file": tru...
[ { "abbrev": false, "full_module": "Vale.Def.Words.Seq_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Math.Poly2.Lemmas", "short_module": null }, { "abbrev": false, "full_module": "Vale.Math.Poly2.Words", "short_module": null }, { "abbrev": fal...
{ "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
old_io: Vale.Def.Types_s.quad32 -> io: Vale.Def.Types_s.quad32 -> h: Vale.Def.Types_s.quad32 -> in_quads: FStar.Seq.Base.seq Vale.Def.Types_s.quad32 -> num_bytes: Vale.Def.Types_s.nat64 -> FStar.Pervasives.Lemma (requires io = Vale.AES.GHash_BE.ghash_incremental0 h old_io in_quads) (ensures...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Vale.Def.Types_s.quad32", "FStar.Seq.Base.seq", "Vale.Def.Types_s.nat64", "Prims.unit", "Prims.op_AmpAmp", "Prims.op_Equality", "Prims.int", "FStar.Seq.Base.length", "Prims.op_Division", "Prims.op_Modulus", "Prims.op_GreaterThan", "Vale.Arch.Types.be_bytes_to_seq_quad32_to_bytes", "Vale.AES...
[]
false
false
true
false
false
let ghash_incremental_bytes_pure_no_extra (old_io io h: quad32) (in_quads: seq quad32) (num_bytes: nat64) : Lemma (requires io = ghash_incremental0 h old_io in_quads) (ensures length in_quads == (num_bytes / 16) /\ num_bytes % 16 == 0 ==> (let input_bytes = slice ...
if length in_quads = (num_bytes / 16) && num_bytes % 16 = 0 && num_bytes > 0 then (let input_bytes = slice (le_seq_quad32_to_bytes in_quads) 0 num_bytes in no_extra_bytes_helper in_quads num_bytes; be_bytes_to_seq_quad32_to_bytes in_quads; ()); ()
false
Vale.AES.GHash_BE.fst
Vale.AES.GHash_BE.lemma_ghash_incremental_bytes_extra_helper
val lemma_ghash_incremental_bytes_extra_helper (h y_init y_mid y_final:quad32) (input:seq quad32) (final final_padded:quad32) (num_bytes:nat) : Lemma (requires (1 <= num_bytes /\ num_bytes < 16 * length input /\ 16 * (length input - 1) < num_bytes /\ num_bytes % 16 <> 0 /\ //409...
val lemma_ghash_incremental_bytes_extra_helper (h y_init y_mid y_final:quad32) (input:seq quad32) (final final_padded:quad32) (num_bytes:nat) : Lemma (requires (1 <= num_bytes /\ num_bytes < 16 * length input /\ 16 * (length input - 1) < num_bytes /\ num_bytes % 16 <> 0 /\ //409...
let lemma_ghash_incremental_bytes_extra_helper (h y_init y_mid y_final:quad32) (input:seq quad32) (final final_padded:quad32) (num_bytes:nat) // Precondition definitions = let num_blocks = num_bytes / 16 in let full_blocks = slice input 0 num_blocks in let padded_bytes = pad_to_128_bits (slice (be_quad32_to_by...
{ "file_name": "vale/code/crypto/aes/Vale.AES.GHash_BE.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 4, "end_line": 343, "start_col": 0, "start_line": 314 }
module Vale.AES.GHash_BE open FStar.Mul open Vale.Math.Poly2.Lemmas open Vale.Math.Poly2.Words friend Vale.AES.OptPublic_BE #reset-options let shift_gf128_key_1 (h:poly) : poly = shift_key_1 128 gf128_modulus_low_terms h let rec g_power (a:poly) (n:nat) : poly = if n = 0 then zero else // arbitrary value for n ...
{ "checked_file": "/", "dependencies": [ "Vale.Math.Poly2.Words.fsti.checked", "Vale.Math.Poly2.Lemmas.fsti.checked", "Vale.AES.OptPublic_BE.fst.checked", "prims.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FStar.Calc.fsti.checked" ], "interface_file": tru...
[ { "abbrev": false, "full_module": "Vale.Def.Words.Seq_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Math.Poly2.Lemmas", "short_module": null }, { "abbrev": false, "full_module": "Vale.Math.Poly2.Words", "short_module": null }, { "abbrev": fal...
{ "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.Def.Types_s.quad32 -> y_init: Vale.Def.Types_s.quad32 -> y_mid: Vale.Def.Types_s.quad32 -> y_final: Vale.Def.Types_s.quad32 -> input: FStar.Seq.Base.seq Vale.Def.Types_s.quad32 -> final: Vale.Def.Types_s.quad32 -> final_padded: Vale.Def.Types_s.quad32 -> num_bytes: Prims.nat -...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Vale.Def.Types_s.quad32", "FStar.Seq.Base.seq", "Prims.nat", "Prims.unit", "Prims._assert", "Prims.eq2", "FStar.Seq.Base.op_At_Bar", "FStar.Seq.Base.create", "Vale.Arch.Types.be_bytes_to_seq_quad_of_singleton", "Vale.Def.Types_s.be_bytes_to_seq_quad32", "Vale.Arch.Types.be_bytes_to_seq_quad32_t...
[]
true
false
true
false
false
let lemma_ghash_incremental_bytes_extra_helper (h y_init y_mid y_final: quad32) (input: seq quad32) (final final_padded: quad32) (num_bytes: nat) =
let num_blocks = num_bytes / 16 in let full_blocks = slice input 0 num_blocks in let padded_bytes = pad_to_128_bits (slice (be_quad32_to_bytes final) 0 (num_bytes % 16)) in let input_bytes = slice (seq_nat32_to_seq_nat8_BE (seq_four_to_seq_BE input)) 0 num_bytes in let padded_bytes' = pad_to_128_bits input_bytes in let...
false
Vale.AES.GHash_BE.fst
Vale.AES.GHash_BE.ghash_incremental_to_ghash
val ghash_incremental_to_ghash (h:quad32) (x:seq quad32) : Lemma (requires length x > 0) (ensures ghash_incremental h (Mkfour 0 0 0 0) x == ghash_BE h x) (decreases %[length x])
val ghash_incremental_to_ghash (h:quad32) (x:seq quad32) : Lemma (requires length x > 0) (ensures ghash_incremental h (Mkfour 0 0 0 0) x == ghash_BE h x) (decreases %[length x])
let rec ghash_incremental_to_ghash (h:quad32) (x:seq quad32) = ghash_incremental_reveal (); ghash_BE_reveal (); if length x = 1 then () else ghash_incremental_to_ghash h (all_but_last x)
{ "file_name": "vale/code/crypto/aes/Vale.AES.GHash_BE.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 52, "end_line": 249, "start_col": 0, "start_line": 244 }
module Vale.AES.GHash_BE open FStar.Mul open Vale.Math.Poly2.Lemmas open Vale.Math.Poly2.Words friend Vale.AES.OptPublic_BE #reset-options let shift_gf128_key_1 (h:poly) : poly = shift_key_1 128 gf128_modulus_low_terms h let rec g_power (a:poly) (n:nat) : poly = if n = 0 then zero else // arbitrary value for n ...
{ "checked_file": "/", "dependencies": [ "Vale.Math.Poly2.Words.fsti.checked", "Vale.Math.Poly2.Lemmas.fsti.checked", "Vale.AES.OptPublic_BE.fst.checked", "prims.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FStar.Calc.fsti.checked" ], "interface_file": tru...
[ { "abbrev": false, "full_module": "Vale.Def.Words.Seq_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Math.Poly2.Lemmas", "short_module": null }, { "abbrev": false, "full_module": "Vale.Math.Poly2.Words", "short_module": null }, { "abbrev": fal...
{ "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.Def.Types_s.quad32 -> x: FStar.Seq.Base.seq Vale.Def.Types_s.quad32 -> FStar.Pervasives.Lemma (requires FStar.Seq.Base.length x > 0) (ensures Vale.AES.GHash_BE.ghash_incremental h (Vale.Def.Words_s.Mkfour 0 0 0 0) x == Vale.AES.GHash_BE_s.ghash_BE h x) (decreases FStar.Seq.Base.len...
FStar.Pervasives.Lemma
[ "lemma", "" ]
[]
[ "Vale.Def.Types_s.quad32", "FStar.Seq.Base.seq", "Prims.op_Equality", "Prims.int", "FStar.Seq.Base.length", "Prims.bool", "Vale.AES.GHash_BE.ghash_incremental_to_ghash", "Vale.Lib.Seqs_s.all_but_last", "Prims.unit", "Vale.AES.GHash_BE_s.ghash_BE_reveal", "Vale.AES.GHash_BE.ghash_incremental_reve...
[ "recursion" ]
false
false
true
false
false
let rec ghash_incremental_to_ghash (h: quad32) (x: seq quad32) =
ghash_incremental_reveal (); ghash_BE_reveal (); if length x = 1 then () else ghash_incremental_to_ghash h (all_but_last x)
false
Vale.AES.GHash_BE.fst
Vale.AES.GHash_BE.lemma_ghash_incremental_poly_rec
val lemma_ghash_incremental_poly_rec (h_BE y_prev: quad32) (x: seq quad32) (data: (int -> poly128)) : Lemma (requires (forall (i: int). {:pattern data i\/index x i} 0 <= i && i < length x ==> data i == of_quad32 (index x i))) (ensures of_quad32 (ghash_incremental_def h_BE y_p...
val lemma_ghash_incremental_poly_rec (h_BE y_prev: quad32) (x: seq quad32) (data: (int -> poly128)) : Lemma (requires (forall (i: int). {:pattern data i\/index x i} 0 <= i && i < length x ==> data i == of_quad32 (index x i))) (ensures of_quad32 (ghash_incremental_def h_BE y_p...
let rec lemma_ghash_incremental_poly_rec (h_BE:quad32) (y_prev:quad32) (x:seq quad32) (data:int -> poly128) : Lemma (requires (forall (i:int).{:pattern data i \/ index x i} 0 <= i && i < length x ==> data i == of_quad32 (index x i)) ) (ensures of_quad32 (ghash_incremental_def h_BE y_prev x) == g...
{ "file_name": "vale/code/crypto/aes/Vale.AES.GHash_BE.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 5, "end_line": 234, "start_col": 0, "start_line": 201 }
module Vale.AES.GHash_BE open FStar.Mul open Vale.Math.Poly2.Lemmas open Vale.Math.Poly2.Words friend Vale.AES.OptPublic_BE #reset-options let shift_gf128_key_1 (h:poly) : poly = shift_key_1 128 gf128_modulus_low_terms h let rec g_power (a:poly) (n:nat) : poly = if n = 0 then zero else // arbitrary value for n ...
{ "checked_file": "/", "dependencies": [ "Vale.Math.Poly2.Words.fsti.checked", "Vale.Math.Poly2.Lemmas.fsti.checked", "Vale.AES.OptPublic_BE.fst.checked", "prims.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FStar.Calc.fsti.checked" ], "interface_file": tru...
[ { "abbrev": false, "full_module": "Vale.Math.Poly2.Words", "short_module": null }, { "abbrev": false, "full_module": "Vale.Math.Poly2.Lemmas", "short_module": null }, { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "fu...
{ "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_BE: Vale.Def.Types_s.quad32 -> y_prev: Vale.Def.Types_s.quad32 -> x: FStar.Seq.Base.seq Vale.Def.Types_s.quad32 -> data: (_: Prims.int -> Vale.AES.GHash_BE.poly128) -> FStar.Pervasives.Lemma (requires forall (i: Prims.int). {:pattern data i\/FStar.Seq.Base.index x i} 0 <= i ...
FStar.Pervasives.Lemma
[ "lemma", "" ]
[]
[ "Vale.Def.Types_s.quad32", "FStar.Seq.Base.seq", "Prims.int", "Vale.AES.GHash_BE.poly128", "Prims.op_GreaterThan", "FStar.Calc.calc_finish", "Vale.Math.Poly2_s.poly", "Prims.eq2", "Vale.AES.GHash_BE.ghash_incremental_def", "Vale.AES.GHash_BE.ghash_poly", "Prims.Cons", "FStar.Preorder.relation"...
[ "recursion" ]
false
false
true
false
false
let rec lemma_ghash_incremental_poly_rec (h_BE y_prev: quad32) (x: seq quad32) (data: (int -> poly128)) : Lemma (requires (forall (i: int). {:pattern data i\/index x i} 0 <= i && i < length x ==> data i == of_quad32 (index x i))) (ensures of_quad32 (ghash_in...
ghash_incremental_reveal (); let ( ~~ ) = of_quad32 in let h = ~~h_BE in let prev = ~~y_prev in let m = length x in if m > 0 then let y_i_minus_1 = ghash_incremental_def h_BE y_prev (all_but_last x) in let x_i = last x in let xor_BE = quad32_xor y_i_minus_1 x_i in let g = gf128_modulus in calc ( == ) { ~~...
false
Vale.AES.GHash_BE.fst
Vale.AES.GHash_BE.lemma_ghash_unroll_poly_unroll
val lemma_ghash_unroll_poly_unroll (h prev: poly) (data: (int -> poly128)) (k: int) (m n: nat) : Lemma (requires degree h < 128 /\ degree prev < 128) (ensures mod_rev 128 (ghash_unroll h prev data k m n) gf128_modulus == ghash_poly_unroll h prev data k m n)
val lemma_ghash_unroll_poly_unroll (h prev: poly) (data: (int -> poly128)) (k: int) (m n: nat) : Lemma (requires degree h < 128 /\ degree prev < 128) (ensures mod_rev 128 (ghash_unroll h prev data k m n) gf128_modulus == ghash_poly_unroll h prev data k m n)
let rec lemma_ghash_unroll_poly_unroll (h:poly) (prev:poly) (data:int -> poly128) (k:int) (m n:nat) : Lemma (requires degree h < 128 /\ degree prev < 128) (ensures mod_rev 128 (ghash_unroll h prev data k m n) gf128_modulus == ghash_poly_unroll h prev data k m n ) = let g = gf128_modulus in let d = d...
{ "file_name": "vale/code/crypto/aes/Vale.AES.GHash_BE.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 5, "end_line": 194, "start_col": 0, "start_line": 157 }
module Vale.AES.GHash_BE open FStar.Mul open Vale.Math.Poly2.Lemmas open Vale.Math.Poly2.Words friend Vale.AES.OptPublic_BE #reset-options let shift_gf128_key_1 (h:poly) : poly = shift_key_1 128 gf128_modulus_low_terms h let rec g_power (a:poly) (n:nat) : poly = if n = 0 then zero else // arbitrary value for n ...
{ "checked_file": "/", "dependencies": [ "Vale.Math.Poly2.Words.fsti.checked", "Vale.Math.Poly2.Lemmas.fsti.checked", "Vale.AES.OptPublic_BE.fst.checked", "prims.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FStar.Calc.fsti.checked" ], "interface_file": tru...
[ { "abbrev": false, "full_module": "Vale.Math.Poly2.Words", "short_module": null }, { "abbrev": false, "full_module": "Vale.Math.Poly2.Lemmas", "short_module": null }, { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "fu...
{ "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.Math.Poly2_s.poly -> prev: Vale.Math.Poly2_s.poly -> data: (_: Prims.int -> Vale.AES.GHash_BE.poly128) -> k: Prims.int -> m: Prims.nat -> n: Prims.nat -> FStar.Pervasives.Lemma (requires Vale.Math.Poly2_s.degree h < 128 /\ Vale.Math.Poly2_s.degree prev < 128) (ensures ...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Vale.Math.Poly2_s.poly", "Prims.int", "Vale.AES.GHash_BE.poly128", "Prims.nat", "Prims.op_Equality", "FStar.Calc.calc_finish", "Prims.eq2", "Vale.AES.GF128.mod_rev", "Vale.AES.GHash_BE.ghash_unroll", "Vale.AES.GHash_BE.ghash_poly_unroll", "Prims.Cons", "FStar.Preorder.relation", "Prims.Nil"...
[ "recursion" ]
false
false
true
false
false
let rec lemma_ghash_unroll_poly_unroll (h prev: poly) (data: (int -> poly128)) (k: int) (m n: nat) : Lemma (requires degree h < 128 /\ degree prev < 128) (ensures mod_rev 128 (ghash_unroll h prev data k m n) gf128_modulus == ghash_poly_unroll h prev data k m n) =
let g = gf128_modulus in let d = data (k + m) in let p = g_power h (n + 1) in let sp = shift_gf128_key_1 p in lemma_gf128_degree (); if m = 0 then calc ( == ) { mod_rev 128 (ghash_unroll h prev data k m n) g; ( == ) { () } mod_rev 128 ((prev +. d) *. sp) g; ( == ) { lemma_gf128_mul_rev_mod_rev (prev +...
false
Vale.AES.GHash_BE.fst
Vale.AES.GHash_BE.lemma_swap128_mask_shift
val lemma_swap128_mask_shift (a:poly) : Lemma (requires degree a < 128) (ensures ( let a_sw = swap a 64 in mask a 64 == shift a_sw (-64) /\ shift a (-64) == mask a_sw 64 ))
val lemma_swap128_mask_shift (a:poly) : Lemma (requires degree a < 128) (ensures ( let a_sw = swap a 64 in mask a 64 == shift a_sw (-64) /\ shift a (-64) == mask a_sw 64 ))
let lemma_swap128_mask_shift (a:poly) : Lemma (requires degree a < 128) (ensures ( let a_sw = swap a 64 in mask a 64 == shift a_sw (-64) /\ shift a (-64) == mask a_sw 64 )) = lemma_quad32_double_swap a; lemma_quad32_double a; lemma_quad32_double (swap a 64); lemma_mask_is_mod a 64; lemma_s...
{ "file_name": "vale/code/crypto/aes/Vale.AES.GHash_BE.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 34, "end_line": 406, "start_col": 0, "start_line": 392 }
module Vale.AES.GHash_BE open FStar.Mul open Vale.Math.Poly2.Lemmas open Vale.Math.Poly2.Words friend Vale.AES.OptPublic_BE #reset-options let shift_gf128_key_1 (h:poly) : poly = shift_key_1 128 gf128_modulus_low_terms h let rec g_power (a:poly) (n:nat) : poly = if n = 0 then zero else // arbitrary value for n ...
{ "checked_file": "/", "dependencies": [ "Vale.Math.Poly2.Words.fsti.checked", "Vale.Math.Poly2.Lemmas.fsti.checked", "Vale.AES.OptPublic_BE.fst.checked", "prims.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FStar.Calc.fsti.checked" ], "interface_file": tru...
[ { "abbrev": false, "full_module": "Vale.Def.Words.Seq_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Math.Poly2.Lemmas", "short_module": null }, { "abbrev": false, "full_module": "Vale.Math.Poly2.Words", "short_module": null }, { "abbrev": fal...
{ "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
a: Vale.Math.Poly2_s.poly -> FStar.Pervasives.Lemma (requires Vale.Math.Poly2_s.degree a < 128) (ensures (let a_sw = Vale.Math.Poly2.swap a 64 in Vale.Math.Poly2.mask a 64 == Vale.Math.Poly2_s.shift a_sw (- 64) /\ Vale.Math.Poly2_s.shift a (- 64) == Vale.Math.Poly2.mask a_sw 64))
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Vale.Math.Poly2_s.poly", "Vale.Math.Poly2.Lemmas.lemma_mask_is_mod", "Vale.Math.Poly2.swap", "Prims.unit", "Vale.Math.Poly2.Lemmas.lemma_shift_is_div", "Vale.Math.Poly2.Bits.lemma_quad32_double", "Vale.Math.Poly2.Words.lemma_quad32_double_swap", "Prims.b2t", "Prims.op_LessThan", "Vale.Math.Poly2_...
[]
true
false
true
false
false
let lemma_swap128_mask_shift (a: poly) : Lemma (requires degree a < 128) (ensures (let a_sw = swap a 64 in mask a 64 == shift a_sw (- 64) /\ shift a (- 64) == mask a_sw 64)) =
lemma_quad32_double_swap a; lemma_quad32_double a; lemma_quad32_double (swap a 64); lemma_mask_is_mod a 64; lemma_shift_is_div (swap a 64) 64; lemma_shift_is_div a 64; lemma_mask_is_mod (swap a 64) 64
false
Vale.AES.GHash_BE.fst
Vale.AES.GHash_BE.lemma_div_distribute
val lemma_div_distribute (a b c:poly) : Lemma (requires degree c >= 0) (ensures (a +. b) /. c == (a /. c) +. (b /. c))
val lemma_div_distribute (a b c:poly) : Lemma (requires degree c >= 0) (ensures (a +. b) /. c == (a /. c) +. (b /. c))
let lemma_div_distribute a b c = let ab = a +. b in let a' = a /. c in let b' = b /. c in let ab' = ab /. c in let a'' = a %. c in let b'' = b %. c in let ab'' = ab %. c in lemma_div_mod a c; lemma_div_mod b c; lemma_div_mod ab c; // (a +. b) == (a) +. (b) assert ((ab' *. c +. ab'') == (a' *. c ...
{ "file_name": "vale/code/crypto/aes/Vale.AES.GHash_BE.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 4, "end_line": 390, "start_col": 0, "start_line": 368 }
module Vale.AES.GHash_BE open FStar.Mul open Vale.Math.Poly2.Lemmas open Vale.Math.Poly2.Words friend Vale.AES.OptPublic_BE #reset-options let shift_gf128_key_1 (h:poly) : poly = shift_key_1 128 gf128_modulus_low_terms h let rec g_power (a:poly) (n:nat) : poly = if n = 0 then zero else // arbitrary value for n ...
{ "checked_file": "/", "dependencies": [ "Vale.Math.Poly2.Words.fsti.checked", "Vale.Math.Poly2.Lemmas.fsti.checked", "Vale.AES.OptPublic_BE.fst.checked", "prims.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FStar.Calc.fsti.checked" ], "interface_file": tru...
[ { "abbrev": false, "full_module": "Vale.Def.Words.Seq_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Math.Poly2.Lemmas", "short_module": null }, { "abbrev": false, "full_module": "Vale.Math.Poly2.Words", "short_module": null }, { "abbrev": fal...
{ "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
a: Vale.Math.Poly2_s.poly -> b: Vale.Math.Poly2_s.poly -> c: Vale.Math.Poly2_s.poly -> FStar.Pervasives.Lemma (requires Vale.Math.Poly2_s.degree c >= 0) (ensures (a +. b) /. c == a /. c +. b /. c)
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Vale.Math.Poly2_s.poly", "Prims.unit", "Vale.Math.Poly2.lemma_equal", "Vale.Math.Poly2.op_Plus_Dot", "Vale.Math.Poly2.Lemmas.lemma_zero_define", "Prims._assert", "Prims.eq2", "Vale.Math.Poly2_s.zero", "Vale.Math.Poly2.Lemmas.lemma_mul_smaller_is_zero", "Vale.Math.Poly2.op_Star_Dot", "Vale.Math....
[]
true
false
true
false
false
let lemma_div_distribute a b c =
let ab = a +. b in let a' = a /. c in let b' = b /. c in let ab' = ab /. c in let a'' = a %. c in let b'' = b %. c in let ab'' = ab %. c in lemma_div_mod a c; lemma_div_mod b c; lemma_div_mod ab c; assert ((ab' *. c +. ab'') == (a' *. c +. a'') +. (b' *. c +. b'')); lemma_add_define_all (); lemma_equal (ab' *. c +. a' ...
false
Vale.AES.GHash_BE.fst
Vale.AES.GHash_BE.lemma_ghash_incremental_bytes_extra_helper_alt
val lemma_ghash_incremental_bytes_extra_helper_alt (h y_init y_mid y_final:quad32) (input_blocks:seq quad32) (final final_padded:quad32) (num_bytes:nat) : Lemma (requires (1 <= num_bytes /\ num_bytes < 16 * (length input_blocks) + 16 /\ 16 * (length input_blocks) < num_bytes /\ ...
val lemma_ghash_incremental_bytes_extra_helper_alt (h y_init y_mid y_final:quad32) (input_blocks:seq quad32) (final final_padded:quad32) (num_bytes:nat) : Lemma (requires (1 <= num_bytes /\ num_bytes < 16 * (length input_blocks) + 16 /\ 16 * (length input_blocks) < num_bytes /\ ...
let lemma_ghash_incremental_bytes_extra_helper_alt (h y_init y_mid y_final:quad32) (input_blocks:seq quad32) (final final_padded:quad32) (num_bytes:nat) : Lemma (requires (1 <= num_bytes /\ num_bytes < 16 * (length input_blocks) + 16 /\ 16 * (length input_blocks) < num_bytes /\ ...
{ "file_name": "vale/code/crypto/aes/Vale.AES.GHash_BE.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 101, "end_line": 366, "start_col": 0, "start_line": 345 }
module Vale.AES.GHash_BE open FStar.Mul open Vale.Math.Poly2.Lemmas open Vale.Math.Poly2.Words friend Vale.AES.OptPublic_BE #reset-options let shift_gf128_key_1 (h:poly) : poly = shift_key_1 128 gf128_modulus_low_terms h let rec g_power (a:poly) (n:nat) : poly = if n = 0 then zero else // arbitrary value for n ...
{ "checked_file": "/", "dependencies": [ "Vale.Math.Poly2.Words.fsti.checked", "Vale.Math.Poly2.Lemmas.fsti.checked", "Vale.AES.OptPublic_BE.fst.checked", "prims.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FStar.Calc.fsti.checked" ], "interface_file": tru...
[ { "abbrev": false, "full_module": "Vale.Def.Words.Seq_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Math.Poly2.Lemmas", "short_module": null }, { "abbrev": false, "full_module": "Vale.Math.Poly2.Words", "short_module": null }, { "abbrev": fal...
{ "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.Def.Types_s.quad32 -> y_init: Vale.Def.Types_s.quad32 -> y_mid: Vale.Def.Types_s.quad32 -> y_final: Vale.Def.Types_s.quad32 -> input_blocks: FStar.Seq.Base.seq Vale.Def.Types_s.quad32 -> final: Vale.Def.Types_s.quad32 -> final_padded: Vale.Def.Types_s.quad32 -> num_bytes: Prims....
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Vale.Def.Types_s.quad32", "FStar.Seq.Base.seq", "Prims.nat", "Vale.AES.GHash_BE.lemma_ghash_incremental_bytes_extra_helper", "Prims.unit", "Prims._assert", "FStar.Seq.Base.equal", "FStar.Seq.Base.slice", "Prims.int", "Prims.op_Division", "FStar.Seq.Base.append", "FStar.Seq.Base.create", "Pr...
[]
true
false
true
false
false
let lemma_ghash_incremental_bytes_extra_helper_alt (h y_init y_mid y_final: quad32) (input_blocks: seq quad32) (final final_padded: quad32) (num_bytes: nat) : Lemma (requires (1 <= num_bytes /\ num_bytes < 16 * (length input_blocks) + 16 /\ 16 * (length input_blocks) ...
let q_in = append input_blocks (create 1 final) in let num_blocks = num_bytes / 16 in let full_blocks = slice q_in 0 num_blocks in assert (equal full_blocks input_blocks); lemma_ghash_incremental_bytes_extra_helper h y_init y_mid y_final q_in final final_padded num_bytes
false
Vale.AES.GHash_BE.fst
Vale.AES.GHash_BE.lemma_gf128_constant_shift_rev
val lemma_gf128_constant_shift_rev (_:unit) : Lemma (mask (of_quad32 (Mkfour 0 0xc2000000 0 0)) 64 == reverse gf128_low_shift 63 /\ shift (of_quad32 (Mkfour 0 0xc2000000 0 0)) (-64) == zero)
val lemma_gf128_constant_shift_rev (_:unit) : Lemma (mask (of_quad32 (Mkfour 0 0xc2000000 0 0)) 64 == reverse gf128_low_shift 63 /\ shift (of_quad32 (Mkfour 0 0xc2000000 0 0)) (-64) == zero)
let lemma_gf128_constant_shift_rev () = let n0:nat32 = 0 in let n1:nat32 = 0xc2000000 in let n2:nat32 = 0 in let n3:nat32 = 0 in let r3 = gf128_low_shift in calc (==) { of_quad32 (Mkfour n0 n1 n2 n3); == { calc (==) { Mkfour n0 n1 n2 n3; == {lemma_quad32_of_nat32s n0 n1 n2 n3...
{ "file_name": "vale/code/crypto/aes/Vale.AES.GHash_BE.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 61, "end_line": 437, "start_col": 0, "start_line": 408 }
module Vale.AES.GHash_BE open FStar.Mul open Vale.Math.Poly2.Lemmas open Vale.Math.Poly2.Words friend Vale.AES.OptPublic_BE #reset-options let shift_gf128_key_1 (h:poly) : poly = shift_key_1 128 gf128_modulus_low_terms h let rec g_power (a:poly) (n:nat) : poly = if n = 0 then zero else // arbitrary value for n ...
{ "checked_file": "/", "dependencies": [ "Vale.Math.Poly2.Words.fsti.checked", "Vale.Math.Poly2.Lemmas.fsti.checked", "Vale.AES.OptPublic_BE.fst.checked", "prims.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FStar.Calc.fsti.checked" ], "interface_file": tru...
[ { "abbrev": false, "full_module": "Vale.Def.Words.Seq_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Math.Poly2.Lemmas", "short_module": null }, { "abbrev": false, "full_module": "Vale.Math.Poly2.Words", "short_module": null }, { "abbrev": fal...
{ "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
_: Prims.unit -> FStar.Pervasives.Lemma (ensures Vale.Math.Poly2.mask (Vale.Math.Poly2.Bits_s.of_quad32 (Vale.Def.Words_s.Mkfour 0 0xc2000000 0 0)) 64 == Vale.Math.Poly2_s.reverse Vale.AES.GF128.gf128_low_shift 63 /\ Vale.Math.Poly2_s.shift...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Prims.unit", "Vale.Math.Poly2.lemma_equal", "Vale.Math.Poly2_s.shift", "Vale.Math.Poly2_s.reverse", "Vale.AES.GF128.gf128_low_shift", "Prims.op_Minus", "Vale.Math.Poly2_s.zero", "Vale.Math.Poly2.mask", "Vale.Math.Poly2.Lemmas.lemma_split_define", "Vale.Math.Poly2.Lemmas.lemma_bitwise_all", "FSt...
[]
false
false
true
false
false
let lemma_gf128_constant_shift_rev () =
let n0:nat32 = 0 in let n1:nat32 = 0xc2000000 in let n2:nat32 = 0 in let n3:nat32 = 0 in let r3 = gf128_low_shift in calc ( == ) { of_quad32 (Mkfour n0 n1 n2 n3); ( == ) { calc ( == ) { Mkfour n0 n1 n2 n3; ( == ) { lemma_quad32_of_nat32s n0 n1 n2 n3 } to_quad32 (poly128_of_nat32s n0 n1 n2 n3); ( == ...
false
EtM.MAC.fst
EtM.MAC.keysize
val keysize : Prims.int
let keysize = 64
{ "file_name": "examples/crypto/EtM.MAC.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 18, "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", "Platform.Bytes.fst.checked", "FStar.Set.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Monotonic.Seq.fst.checked", "FStar.HyperStack.ST.fsti.checked"...
[ { "abbrev": true, "full_module": "EtM.CPA", "short_module": "CPA" }, { "abbrev": true, "full_module": "EtM.Ideal", "short_module": "Ideal" }, { "abbrev": false, "full_module": "EtM.CoreCrypto", "short_module": null }, { "abbrev": false, "full_module": "Platfor...
{ "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.int
Prims.Tot
[ "total" ]
[]
[]
[]
false
false
false
true
false
let keysize =
64
false
EtM.MAC.fst
EtM.MAC.blocksize
val blocksize : Prims.int
let blocksize = keysize
{ "file_name": "examples/crypto/EtM.MAC.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 23, "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", "Platform.Bytes.fst.checked", "FStar.Set.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Monotonic.Seq.fst.checked", "FStar.HyperStack.ST.fsti.checked"...
[ { "abbrev": true, "full_module": "EtM.CPA", "short_module": "CPA" }, { "abbrev": true, "full_module": "EtM.Ideal", "short_module": "Ideal" }, { "abbrev": false, "full_module": "EtM.CoreCrypto", "short_module": null }, { "abbrev": false, "full_module": "Platfor...
{ "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.int
Prims.Tot
[ "total" ]
[]
[ "EtM.MAC.keysize" ]
[]
false
false
false
true
false
let blocksize =
keysize
false
EtM.MAC.fst
EtM.MAC.macsize
val macsize : Prims.int
let macsize = hashSize SHA1
{ "file_name": "examples/crypto/EtM.MAC.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 29, "end_line": 34, "start_col": 0, "start_line": 34 }
(* 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", "Platform.Bytes.fst.checked", "FStar.Set.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Monotonic.Seq.fst.checked", "FStar.HyperStack.ST.fsti.checked"...
[ { "abbrev": true, "full_module": "EtM.CPA", "short_module": "CPA" }, { "abbrev": true, "full_module": "EtM.Ideal", "short_module": "Ideal" }, { "abbrev": false, "full_module": "EtM.CoreCrypto", "short_module": null }, { "abbrev": false, "full_module": "Platfor...
{ "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.int
Prims.Tot
[ "total" ]
[]
[ "CoreCrypto.hashSize", "CoreCrypto.SHA1" ]
[]
false
false
false
true
false
let macsize =
hashSize SHA1
false
EtM.MAC.fst
EtM.MAC.log_entry
val log_entry : Type0
let log_entry = msg * tag
{ "file_name": "examples/crypto/EtM.MAC.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 25, "end_line": 57, "start_col": 0, "start_line": 57 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Platform.Bytes.fst.checked", "FStar.Set.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Monotonic.Seq.fst.checked", "FStar.HyperStack.ST.fsti.checked"...
[ { "abbrev": true, "full_module": "EtM.CPA", "short_module": "CPA" }, { "abbrev": true, "full_module": "EtM.Ideal", "short_module": "Ideal" }, { "abbrev": false, "full_module": "EtM.CoreCrypto", "short_module": null }, { "abbrev": false, "full_module": "Platfor...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
Type0
Prims.Tot
[ "total" ]
[]
[ "FStar.Pervasives.Native.tuple2", "EtM.MAC.msg", "EtM.MAC.tag" ]
[]
false
false
false
true
true
let log_entry =
msg * tag
false
EtM.MAC.fst
EtM.MAC.entry_message
val entry_message : l: EtM.MAC.log_entry -> EtM.MAC.msg
let entry_message (l:log_entry) = fst l
{ "file_name": "examples/crypto/EtM.MAC.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 39, "end_line": 58, "start_col": 0, "start_line": 58 }
(* 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", "Platform.Bytes.fst.checked", "FStar.Set.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Monotonic.Seq.fst.checked", "FStar.HyperStack.ST.fsti.checked"...
[ { "abbrev": true, "full_module": "EtM.CPA", "short_module": "CPA" }, { "abbrev": true, "full_module": "EtM.Ideal", "short_module": "Ideal" }, { "abbrev": false, "full_module": "EtM.CoreCrypto", "short_module": null }, { "abbrev": false, "full_module": "Platfor...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
l: EtM.MAC.log_entry -> EtM.MAC.msg
Prims.Tot
[ "total" ]
[]
[ "EtM.MAC.log_entry", "FStar.Pervasives.Native.fst", "EtM.MAC.msg", "EtM.MAC.tag" ]
[]
false
false
false
true
false
let entry_message (l: log_entry) =
fst l
false
EtM.MAC.fst
EtM.MAC.genPost
val genPost : parent: FStar.Monotonic.HyperHeap.rid -> h0: FStar.Monotonic.HyperStack.mem -> k: EtM.MAC.key -> h1: FStar.Monotonic.HyperStack.mem -> Prims.logical
let genPost parent h0 (k:key) h1 = modifies Set.empty h0 h1 /\ extends k.region parent /\ fresh_region k.region h0 h1 /\ contains h1 k.log /\ sel h1 k.log == Seq.empty
{ "file_name": "examples/crypto/EtM.MAC.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 30, "end_line": 72, "start_col": 0, "start_line": 67 }
(* 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", "Platform.Bytes.fst.checked", "FStar.Set.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Monotonic.Seq.fst.checked", "FStar.HyperStack.ST.fsti.checked"...
[ { "abbrev": true, "full_module": "EtM.CPA", "short_module": "CPA" }, { "abbrev": true, "full_module": "EtM.Ideal", "short_module": "Ideal" }, { "abbrev": false, "full_module": "EtM.CoreCrypto", "short_module": null }, { "abbrev": false, "full_module": "Platfor...
{ "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
parent: FStar.Monotonic.HyperHeap.rid -> h0: FStar.Monotonic.HyperStack.mem -> k: EtM.MAC.key -> h1: FStar.Monotonic.HyperStack.mem -> Prims.logical
Prims.Tot
[ "total" ]
[]
[ "FStar.Monotonic.HyperHeap.rid", "FStar.Monotonic.HyperStack.mem", "EtM.MAC.key", "Prims.l_and", "FStar.Monotonic.HyperStack.modifies", "FStar.Set.empty", "Prims.b2t", "FStar.Monotonic.HyperHeap.extends", "EtM.MAC.__proj__Key__item__region", "FStar.Monotonic.HyperStack.fresh_region", "FStar.Mono...
[]
false
false
false
true
true
let genPost parent h0 (k: key) h1 =
modifies Set.empty h0 h1 /\ extends k.region parent /\ fresh_region k.region h0 h1 /\ contains h1 k.log /\ sel h1 k.log == Seq.empty
false
EtM.MAC.fst
EtM.MAC.entry_tag
val entry_tag : l: EtM.MAC.log_entry -> EtM.MAC.tag
let entry_tag (l:log_entry) = snd l
{ "file_name": "examples/crypto/EtM.MAC.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 35, "end_line": 59, "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", "Platform.Bytes.fst.checked", "FStar.Set.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Monotonic.Seq.fst.checked", "FStar.HyperStack.ST.fsti.checked"...
[ { "abbrev": true, "full_module": "EtM.CPA", "short_module": "CPA" }, { "abbrev": true, "full_module": "EtM.Ideal", "short_module": "Ideal" }, { "abbrev": false, "full_module": "EtM.CoreCrypto", "short_module": null }, { "abbrev": false, "full_module": "Platfor...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
l: EtM.MAC.log_entry -> EtM.MAC.tag
Prims.Tot
[ "total" ]
[]
[ "EtM.MAC.log_entry", "FStar.Pervasives.Native.snd", "EtM.MAC.msg", "EtM.MAC.tag" ]
[]
false
false
false
true
false
let entry_tag (l: log_entry) =
snd l
false
EtM.MAC.fst
EtM.MAC.sha1
val sha1: bytes -> Tot (h:bytes{length h = macsize})
val sha1: bytes -> Tot (h:bytes{length h = macsize})
let sha1 b = hash SHA1 b
{ "file_name": "examples/crypto/EtM.MAC.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 24, "end_line": 40, "start_col": 0, "start_line": 40 }
(* 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", "Platform.Bytes.fst.checked", "FStar.Set.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Monotonic.Seq.fst.checked", "FStar.HyperStack.ST.fsti.checked"...
[ { "abbrev": true, "full_module": "EtM.CPA", "short_module": "CPA" }, { "abbrev": true, "full_module": "EtM.Ideal", "short_module": "Ideal" }, { "abbrev": false, "full_module": "EtM.CoreCrypto", "short_module": null }, { "abbrev": false, "full_module": "Platfor...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
b: Platform.Bytes.bytes -> h: Platform.Bytes.bytes{Platform.Bytes.length h = EtM.MAC.macsize}
Prims.Tot
[ "total" ]
[]
[ "Platform.Bytes.bytes", "CoreCrypto.hash", "CoreCrypto.SHA1", "Prims.b2t", "Prims.op_Equality", "Prims.int", "Platform.Bytes.length", "EtM.MAC.macsize" ]
[]
false
false
false
false
false
let sha1 b =
hash SHA1 b
false
EtM.MAC.fst
EtM.MAC.hmac_sha1
val hmac_sha1: sha1_key -> msg -> Tot tag
val hmac_sha1: sha1_key -> msg -> Tot tag
let hmac_sha1 k t = let x5c = byte_of_int 92 in let x36 = byte_of_int 54 in let opad = createBytes blocksize x5c in let ipad = createBytes blocksize x36 in let xor_key_opad = xor keysize k opad in let xor_key_ipad = xor keysize k ipad in sha1 (xor_key_opad @| (sha1 (xor_key_ipad @| t)))
{ "file_name": "examples/crypto/EtM.MAC.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 51, "end_line": 50, "start_col": 0, "start_line": 43 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Platform.Bytes.fst.checked", "FStar.Set.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Monotonic.Seq.fst.checked", "FStar.HyperStack.ST.fsti.checked"...
[ { "abbrev": true, "full_module": "EtM.CPA", "short_module": "CPA" }, { "abbrev": true, "full_module": "EtM.Ideal", "short_module": "Ideal" }, { "abbrev": false, "full_module": "EtM.CoreCrypto", "short_module": null }, { "abbrev": false, "full_module": "Platfor...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
k: EtM.MAC.sha1_key -> t: EtM.MAC.msg -> EtM.MAC.tag
Prims.Tot
[ "total" ]
[]
[ "EtM.MAC.sha1_key", "EtM.MAC.msg", "EtM.MAC.sha1", "Platform.Bytes.op_At_Bar", "Platform.Bytes.lbytes", "EtM.MAC.keysize", "Platform.Bytes.xor", "EtM.MAC.blocksize", "Platform.Bytes.createBytes", "FStar.UInt8.t", "Platform.Bytes.byte_of_int", "EtM.MAC.tag" ]
[]
false
false
false
true
false
let hmac_sha1 k t =
let x5c = byte_of_int 92 in let x36 = byte_of_int 54 in let opad = createBytes blocksize x5c in let ipad = createBytes blocksize x36 in let xor_key_opad = xor keysize k opad in let xor_key_ipad = xor keysize k ipad in sha1 (xor_key_opad @| (sha1 (xor_key_ipad @| t)))
false
Vale.AES.X64.GCMencryptOpt.fst
Vale.AES.X64.GCMencryptOpt.va_lemma_Gcm_blocks
val va_lemma_Gcm_blocks : va_b0:va_code -> va_s0:va_state -> alg:algorithm -> offset:int -> auth_b:buffer128 -> abytes_b:buffer128 -> in128x6_b:buffer128 -> out128x6_b:buffer128 -> in128_b:buffer128 -> out128_b:buffer128 -> inout_b:buffer128 -> iv_b:buffer128 -> scratch_b:buffer128 -> key:(seq nat32) -> round_key...
val va_lemma_Gcm_blocks : va_b0:va_code -> va_s0:va_state -> alg:algorithm -> offset:int -> auth_b:buffer128 -> abytes_b:buffer128 -> in128x6_b:buffer128 -> out128x6_b:buffer128 -> in128_b:buffer128 -> out128_b:buffer128 -> inout_b:buffer128 -> iv_b:buffer128 -> scratch_b:buffer128 -> key:(seq nat32) -> round_key...
let va_lemma_Gcm_blocks va_b0 va_s0 alg offset auth_b abytes_b in128x6_b out128x6_b in128_b out128_b inout_b iv_b scratch_b key round_keys keys_b hkeys_b = let (va_mods:va_mods_t) = [va_Mod_flags; va_Mod_mem_heaplet 6; va_Mod_mem_heaplet 5; va_Mod_mem_heaplet 3; va_Mod_mem_heaplet 2; va_Mod_mem_heaplet 1; va_Mo...
{ "file_name": "obj/Vale.AES.X64.GCMencryptOpt.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 16, "end_line": 2912, "start_col": 0, "start_line": 2782 }
module Vale.AES.X64.GCMencryptOpt open Vale.Def.Prop_s open Vale.Def.Opaque_s open FStar.Seq open Vale.Def.Words_s open Vale.Def.Words.Seq_s open Vale.Def.Types_s open Vale.Arch.Types open Vale.Arch.HeapImpl open Vale.AES.AES_s open Vale.AES.GCTR_s open Vale.AES.GCTR open Vale.AES.GCM open Vale.AES.GHash_s open Vale.AE...
{ "checked_file": "/", "dependencies": [ "Vale.X64.State.fsti.checked", "Vale.X64.Stack_i.fsti.checked", "Vale.X64.Stack.fsti.checked", "Vale.X64.QuickCodes.fsti.checked", "Vale.X64.QuickCode.fst.checked", "Vale.X64.Memory.fsti.checked", "Vale.X64.Machine_s.fst.checked", "Vale.X64.In...
[ { "abbrev": false, "full_module": "Vale.Lib.Basic", "short_module": null }, { "abbrev": false, "full_module": "Vale.AES.OptPublic", "short_module": null }, { "abbrev": false, "full_module": "Vale.Lib.Meta", "short_module": null }, { "abbrev": false, "full_modu...
{ "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
va_b0: Vale.X64.Decls.va_code -> va_s0: Vale.X64.Decls.va_state -> alg: Vale.AES.AES_common_s.algorithm -> offset: Prims.int -> auth_b: Vale.X64.Memory.buffer128 -> abytes_b: Vale.X64.Memory.buffer128 -> in128x6_b: Vale.X64.Memory.buffer128 -> out128x6_b: Vale.X64.Memory.buffer128 -> ...
Prims.Ghost
[]
[]
[ "Vale.X64.Decls.va_code", "Vale.X64.Decls.va_state", "Vale.AES.AES_common_s.algorithm", "Prims.int", "Vale.X64.Memory.buffer128", "FStar.Seq.Base.seq", "Vale.X64.Memory.nat32", "Vale.X64.Decls.quad32", "Vale.X64.QuickCodes.fuel", "Prims.unit", "FStar.Pervasives.Native.Mktuple2", "Vale.X64.Decl...
[]
false
false
false
false
false
let va_lemma_Gcm_blocks va_b0 va_s0 alg offset auth_b abytes_b in128x6_b out128x6_b in128_b out128_b inout_b iv_b scratch_b key round_keys keys_b hkeys_b =
let va_mods:va_mods_t = [ va_Mod_flags; va_Mod_mem_heaplet 6; va_Mod_mem_heaplet 5; va_Mod_mem_heaplet 3; va_Mod_mem_heaplet 2; va_Mod_mem_heaplet 1; va_Mod_xmm 15; va_Mod_xmm 14; va_Mod_xmm 13; va_Mod_xmm 12; va_Mod_xmm 11; va_Mod_xmm 10; va_Mod_xmm 9; va_Mod_xmm 8; va_Mod_xmm 7; va_Mod_xmm 6; va_Mod...
false
EtM.MAC.fst
EtM.MAC.keygen
val keygen: parent:rid -> ST key (requires (fun _ -> HyperStack.ST.witnessed (region_contains_pred parent))) (ensures (genPost parent))
val keygen: parent:rid -> ST key (requires (fun _ -> HyperStack.ST.witnessed (region_contains_pred parent))) (ensures (genPost parent))
let keygen parent = let raw = random keysize in let region = new_region parent in let log = alloc_mref_seq region Seq.empty in Key #region raw log
{ "file_name": "examples/crypto/EtM.MAC.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 21, "end_line": 86, "start_col": 0, "start_line": 82 }
(* 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", "Platform.Bytes.fst.checked", "FStar.Set.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Monotonic.Seq.fst.checked", "FStar.HyperStack.ST.fsti.checked"...
[ { "abbrev": true, "full_module": "EtM.CPA", "short_module": "CPA" }, { "abbrev": true, "full_module": "EtM.Ideal", "short_module": "Ideal" }, { "abbrev": false, "full_module": "EtM.CoreCrypto", "short_module": null }, { "abbrev": false, "full_module": "Platfor...
{ "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
parent: EtM.MAC.rid -> FStar.HyperStack.ST.ST EtM.MAC.key
FStar.HyperStack.ST.ST
[]
[]
[ "EtM.MAC.rid", "EtM.MAC.Key", "EtM.MAC.key", "FStar.HyperStack.ST.m_rref", "FStar.Seq.Base.seq", "EtM.MAC.log_entry", "FStar.Monotonic.Seq.grows", "FStar.Monotonic.Seq.alloc_mref_seq", "FStar.Seq.Base.empty", "FStar.Monotonic.HyperHeap.rid", "FStar.HyperStack.ST.new_region", "Platform.Bytes.lb...
[]
false
true
false
false
false
let keygen parent =
let raw = random keysize in let region = new_region parent in let log = alloc_mref_seq region Seq.empty in Key #region raw log
false
EtM.MAC.fst
EtM.MAC.mac
val mac: k:key -> m:msg -> ST tag (requires (fun h0 -> True)) (ensures (fun h0 t h1 -> (let log0 = sel h0 k.log in let log1 = sel h1 k.log in modifies_one k.region h0 h1 /\ contains h1 k.log /\ log1 == snoc log0 (m, t) /\ witnessed (at_least (Seq.length log0) (m, t) k.log) /\ Se...
val mac: k:key -> m:msg -> ST tag (requires (fun h0 -> True)) (ensures (fun h0 t h1 -> (let log0 = sel h0 k.log in let log1 = sel h1 k.log in modifies_one k.region h0 h1 /\ contains h1 k.log /\ log1 == snoc log0 (m, t) /\ witnessed (at_least (Seq.length log0) (m, t) k.log) /\ Se...
let mac k m = let t = hmac_sha1 k.raw m in write_at_end k.log (m,t); t
{ "file_name": "examples/crypto/EtM.MAC.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 3, "end_line": 105, "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", "Platform.Bytes.fst.checked", "FStar.Set.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Monotonic.Seq.fst.checked", "FStar.HyperStack.ST.fsti.checked"...
[ { "abbrev": true, "full_module": "EtM.CPA", "short_module": "CPA" }, { "abbrev": true, "full_module": "EtM.Ideal", "short_module": "Ideal" }, { "abbrev": false, "full_module": "EtM.CoreCrypto", "short_module": null }, { "abbrev": false, "full_module": "Platfor...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
k: EtM.MAC.key -> m: EtM.MAC.msg -> FStar.HyperStack.ST.ST EtM.MAC.tag
FStar.HyperStack.ST.ST
[]
[]
[ "EtM.MAC.key", "EtM.MAC.msg", "EtM.MAC.tag", "Prims.unit", "FStar.Monotonic.Seq.write_at_end", "EtM.MAC.log_entry", "EtM.MAC.__proj__Key__item__region", "EtM.MAC.__proj__Key__item__log", "FStar.Pervasives.Native.Mktuple2", "EtM.MAC.hmac_sha1", "EtM.MAC.__proj__Key__item__raw" ]
[]
false
true
false
false
false
let mac k m =
let t = hmac_sha1 k.raw m in write_at_end k.log (m, t); t
false
EtM.MAC.fst
EtM.MAC.verify
val verify: k:key -> m:msg -> t:tag -> ST bool (requires (fun h -> True (* not needed: Map.contains h k.region *) )) (ensures (fun h0 res h1 -> modifies_none h0 h1 /\ (( Ideal.uf_cma && res ) ==> Seq.mem (m,t) (sel h0 k.log))))
val verify: k:key -> m:msg -> t:tag -> ST bool (requires (fun h -> True (* not needed: Map.contains h k.region *) )) (ensures (fun h0 res h1 -> modifies_none h0 h1 /\ (( Ideal.uf_cma && res ) ==> Seq.mem (m,t) (sel h0 k.log))))
let verify k m t = let t' = hmac_sha1 k.raw m in let verified = (t = t') in let log = !k.log in let found = Seq.mem (m,t) log in if Ideal.uf_cma then verified && found else verified
{ "file_name": "examples/crypto/EtM.MAC.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 12, "end_line": 121, "start_col": 0, "start_line": 113 }
(* 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", "Platform.Bytes.fst.checked", "FStar.Set.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Monotonic.Seq.fst.checked", "FStar.HyperStack.ST.fsti.checked"...
[ { "abbrev": true, "full_module": "EtM.CPA", "short_module": "CPA" }, { "abbrev": true, "full_module": "EtM.Ideal", "short_module": "Ideal" }, { "abbrev": false, "full_module": "EtM.CoreCrypto", "short_module": null }, { "abbrev": false, "full_module": "Platfor...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
k: EtM.MAC.key -> m: EtM.MAC.msg -> t: EtM.MAC.tag -> FStar.HyperStack.ST.ST Prims.bool
FStar.HyperStack.ST.ST
[]
[]
[ "EtM.MAC.key", "EtM.MAC.msg", "EtM.MAC.tag", "EtM.Ideal.uf_cma", "Prims.op_AmpAmp", "Prims.bool", "FStar.Seq.Properties.mem", "EtM.MAC.log_entry", "FStar.Pervasives.Native.Mktuple2", "FStar.Seq.Base.seq", "FStar.HyperStack.ST.op_Bang", "FStar.Monotonic.Seq.grows", "EtM.MAC.__proj__Key__item_...
[]
false
true
false
false
false
let verify k m t =
let t' = hmac_sha1 k.raw m in let verified = (t = t') in let log = !k.log in let found = Seq.mem (m, t) log in if Ideal.uf_cma then verified && found else verified
false
Hacl.Hash.Lemmas.fst
Hacl.Hash.Lemmas.init_next
val init_next (#a: Type) (s: S.seq a) (f: (i: nat{i < S.length s} -> a)) (i: nat) : Lemma (requires (i < S.length s /\ S.equal (S.slice s 0 i) (S.init i f) /\ S.index s i == f i)) (ensures (S.equal (S.slice s 0 (i + 1)) (S.init (i + 1) f)))
val init_next (#a: Type) (s: S.seq a) (f: (i: nat{i < S.length s} -> a)) (i: nat) : Lemma (requires (i < S.length s /\ S.equal (S.slice s 0 i) (S.init i f) /\ S.index s i == f i)) (ensures (S.equal (S.slice s 0 (i + 1)) (S.init (i + 1) f)))
let init_next (#a: Type) (s: S.seq a) (f: (i:nat { i < S.length s }) -> a) (i: nat): Lemma (requires ( i < S.length s /\ S.equal (S.slice s 0 i) (S.init i f) /\ S.index s i == f i)) (ensures (S.equal (S.slice s 0 (i + 1)) (S.init (i + 1) f))) = lemma_slice_ijk s 0 i (i + 1)
{ "file_name": "code/hash/Hacl.Hash.Lemmas.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 31, "end_line": 45, "start_col": 0, "start_line": 37 }
module Hacl.Hash.Lemmas module S = FStar.Seq module U8 = FStar.UInt8 module U32 = FStar.UInt32 module U64 = FStar.UInt64 (** Two sequence lemmas required for pad, among others. *) let lemma_slice (#a: Type) (s: S.seq a) (i: nat): Lemma (requires (i <= S.length s)) (ensures (S.equal (S.append (S.slice s 0 i) (S.s...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.UInt8.fsti.checked", "FStar.UInt64.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.fsti.checked" ], "interface_file": false, "source_file": "Hacl.Hash.Lemmas.fst" }
[ { "abbrev": true, "full_module": "FStar.UInt64", "short_module": "U64" }, { "abbrev": true, "full_module": "FStar.UInt32", "short_module": "U32" }, { "abbrev": true, "full_module": "FStar.UInt8", "short_module": "U8" }, { "abbrev": true, "full_module": "FStar....
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
s: FStar.Seq.Base.seq a -> f: (i: Prims.nat{i < FStar.Seq.Base.length s} -> a) -> i: Prims.nat -> FStar.Pervasives.Lemma (requires i < FStar.Seq.Base.length s /\ FStar.Seq.Base.equal (FStar.Seq.Base.slice s 0 i) (FStar.Seq.Base.init i f) /\ FStar.Seq.Base.index s i == f i) (ensures...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "FStar.Seq.Base.seq", "Prims.nat", "Prims.b2t", "Prims.op_LessThan", "FStar.Seq.Base.length", "Hacl.Hash.Lemmas.lemma_slice_ijk", "Prims.op_Addition", "Prims.unit", "Prims.l_and", "FStar.Seq.Base.equal", "FStar.Seq.Base.slice", "FStar.Seq.Base.init", "Prims.eq2", "FStar.Seq.Base.index", ...
[]
true
false
true
false
false
let init_next (#a: Type) (s: S.seq a) (f: (i: nat{i < S.length s} -> a)) (i: nat) : Lemma (requires (i < S.length s /\ S.equal (S.slice s 0 i) (S.init i f) /\ S.index s i == f i)) (ensures (S.equal (S.slice s 0 (i + 1)) (S.init (i + 1) f))) =
lemma_slice_ijk s 0 i (i + 1)
false
Hacl.Hash.Lemmas.fst
Hacl.Hash.Lemmas.create_next
val create_next (#a: Type) (s: S.seq a) (v: a) (i: nat) : Lemma (requires (i < S.length s /\ S.equal (S.slice s 0 i) (S.create i v) /\ S.index s i == v)) (ensures (S.equal (S.slice s 0 (i + 1)) (S.create (i + 1) v)))
val create_next (#a: Type) (s: S.seq a) (v: a) (i: nat) : Lemma (requires (i < S.length s /\ S.equal (S.slice s 0 i) (S.create i v) /\ S.index s i == v)) (ensures (S.equal (S.slice s 0 (i + 1)) (S.create (i + 1) v)))
let create_next (#a: Type) (s: S.seq a) (v: a) (i: nat): Lemma (requires ( i < S.length s /\ S.equal (S.slice s 0 i) (S.create i v) /\ S.index s i == v)) (ensures (S.equal (S.slice s 0 (i + 1)) (S.create (i + 1) v))) = lemma_slice_ijk s 0 i (i + 1)
{ "file_name": "code/hash/Hacl.Hash.Lemmas.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 31, "end_line": 65, "start_col": 0, "start_line": 57 }
module Hacl.Hash.Lemmas module S = FStar.Seq module U8 = FStar.UInt8 module U32 = FStar.UInt32 module U64 = FStar.UInt64 (** Two sequence lemmas required for pad, among others. *) let lemma_slice (#a: Type) (s: S.seq a) (i: nat): Lemma (requires (i <= S.length s)) (ensures (S.equal (S.append (S.slice s 0 i) (S.s...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.UInt8.fsti.checked", "FStar.UInt64.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.fsti.checked" ], "interface_file": false, "source_file": "Hacl.Hash.Lemmas.fst" }
[ { "abbrev": true, "full_module": "FStar.UInt64", "short_module": "U64" }, { "abbrev": true, "full_module": "FStar.UInt32", "short_module": "U32" }, { "abbrev": true, "full_module": "FStar.UInt8", "short_module": "U8" }, { "abbrev": true, "full_module": "FStar....
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
s: FStar.Seq.Base.seq a -> v: a -> i: Prims.nat -> FStar.Pervasives.Lemma (requires i < FStar.Seq.Base.length s /\ FStar.Seq.Base.equal (FStar.Seq.Base.slice s 0 i) (FStar.Seq.Base.create i v) /\ FStar.Seq.Base.index s i == v) (ensures FStar.Seq.Base.equal (FStar.Seq.Base.s...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "FStar.Seq.Base.seq", "Prims.nat", "Hacl.Hash.Lemmas.lemma_slice_ijk", "Prims.op_Addition", "Prims.unit", "Prims.l_and", "Prims.b2t", "Prims.op_LessThan", "FStar.Seq.Base.length", "FStar.Seq.Base.equal", "FStar.Seq.Base.slice", "FStar.Seq.Base.create", "Prims.eq2", "FStar.Seq.Base.index", ...
[]
true
false
true
false
false
let create_next (#a: Type) (s: S.seq a) (v: a) (i: nat) : Lemma (requires (i < S.length s /\ S.equal (S.slice s 0 i) (S.create i v) /\ S.index s i == v)) (ensures (S.equal (S.slice s 0 (i + 1)) (S.create (i + 1) v))) =
lemma_slice_ijk s 0 i (i + 1)
false
FStar.ConstantTime.Integers.fsti
FStar.ConstantTime.Integers.m
val m (#sl: _) (#t: lattice_element sl) (#s: _) (x: secret_int t s) : GTot (int_t s)
val m (#sl: _) (#t: lattice_element sl) (#s: _) (x: secret_int t s) : GTot (int_t s)
let m #sl (#t:lattice_element sl) #s (x:secret_int t s) : GTot (int_t s) = u (reveal x)
{ "file_name": "ulib/experimental/FStar.ConstantTime.Integers.fsti", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 16, "end_line": 51, "start_col": 0, "start_line": 49 }
(* 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.Pervasives.fsti.checked", "FStar.Integers.fst.checked", "FStar.IFC.fsti.checked" ], "interface_file": false, "source_file": "FStar.ConstantTime.Integers.fsti" }
[ { "abbrev": false, "full_module": "FStar.Integers", "short_module": null }, { "abbrev": false, "full_module": "FStar.IFC", "short_module": null }, { "abbrev": false, "full_module": "FStar.ConstantTime", "short_module": null }, { "abbrev": false, "full_module":...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
x: FStar.ConstantTime.Integers.secret_int t s -> Prims.GTot (FStar.Integers.int_t s)
Prims.GTot
[ "sometrivial" ]
[]
[ "FStar.IFC.sl", "FStar.IFC.lattice_element", "FStar.ConstantTime.Integers.sw", "FStar.ConstantTime.Integers.secret_int", "FStar.Integers.u", "FStar.ConstantTime.Integers.reveal", "FStar.Integers.int_t" ]
[]
false
false
false
false
false
let m #sl (#t: lattice_element sl) #s (x: secret_int t s) : GTot (int_t s) =
u (reveal x)
false
Hacl.Spec.Bignum.Exponentiation.fsti
Hacl.Spec.Bignum.Exponentiation.bn_mod_exp_pre
val bn_mod_exp_pre : n: Hacl.Spec.Bignum.Definitions.lbignum t len -> a: Hacl.Spec.Bignum.Definitions.lbignum t len -> bBits: Lib.IntTypes.size_nat -> b: Hacl.Spec.Bignum.Definitions.lbignum t (Hacl.Spec.Bignum.Definitions.blocks0 bBits (Lib.IntTypes.bits t)) -> Prims.logical
let bn_mod_exp_pre (#t:limb_t) (#len:BN.bn_len t) (n:lbignum t len) (a:lbignum t len) (bBits:size_nat) (b:lbignum t (blocks0 bBits (bits t))) = bn_v n % 2 = 1 /\ 1 < bn_v n /\ bn_v b < pow2 bBits /\ bn_v a < bn_v n
{ "file_name": "code/bignum/Hacl.Spec.Bignum.Exponentiation.fsti", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 41, "end_line": 23, "start_col": 0, "start_line": 14 }
module Hacl.Spec.Bignum.Exponentiation open FStar.Mul open Lib.IntTypes open Lib.Sequence open Hacl.Spec.Bignum.Definitions module BN = Hacl.Spec.Bignum #reset-options "--z3rlimit 50 --fuel 0 --ifuel 0"
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.NatMod.fsti.checked", "Lib.IntTypes.fsti.checked", "Hacl.Spec.Bignum.Definitions.fst.checked", "Hacl.Spec.Bignum.fsti.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked" ]...
[ { "abbrev": true, "full_module": "Hacl.Spec.Bignum", "short_module": "BN" }, { "abbrev": false, "full_module": "Hacl.Spec.Bignum.Definitions", "short_module": null }, { "abbrev": false, "full_module": "Lib.Sequence", "short_module": null }, { "abbrev": false, ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
n: Hacl.Spec.Bignum.Definitions.lbignum t len -> a: Hacl.Spec.Bignum.Definitions.lbignum t len -> bBits: Lib.IntTypes.size_nat -> b: Hacl.Spec.Bignum.Definitions.lbignum t (Hacl.Spec.Bignum.Definitions.blocks0 bBits (Lib.IntTypes.bits t)) -> Prims.logical
Prims.Tot
[ "total" ]
[]
[ "Hacl.Spec.Bignum.Definitions.limb_t", "Hacl.Spec.Bignum.bn_len", "Hacl.Spec.Bignum.Definitions.lbignum", "Lib.IntTypes.size_nat", "Hacl.Spec.Bignum.Definitions.blocks0", "Lib.IntTypes.bits", "Prims.l_and", "Prims.b2t", "Prims.op_Equality", "Prims.int", "Prims.op_Modulus", "Hacl.Spec.Bignum.De...
[]
false
false
false
false
true
let bn_mod_exp_pre (#t: limb_t) (#len: BN.bn_len t) (n a: lbignum t len) (bBits: size_nat) (b: lbignum t (blocks0 bBits (bits t))) =
bn_v n % 2 = 1 /\ 1 < bn_v n /\ bn_v b < pow2 bBits /\ bn_v a < bn_v n
false
Hacl.Spec.Bignum.Exponentiation.fsti
Hacl.Spec.Bignum.Exponentiation.bn_mod_exp_st
val bn_mod_exp_st : t: Hacl.Spec.Bignum.Definitions.limb_t -> len: Hacl.Spec.Bignum.bn_len t -> Type0
let bn_mod_exp_st (t:limb_t) (len:BN.bn_len t) = nBits:size_nat -> n:lbignum t len -> a:lbignum t len -> bBits:size_nat -> b:lbignum t (blocks0 bBits (bits t)) -> Pure (lbignum t len) (requires bn_mod_exp_pre n a bBits b /\ nBits / bits t < len /\ pow2 nBits < bn_v n) (ensures fun res -> ...
{ "file_name": "code/bignum/Hacl.Spec.Bignum.Exponentiation.fsti", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 36, "end_line": 114, "start_col": 0, "start_line": 103 }
module Hacl.Spec.Bignum.Exponentiation open FStar.Mul open Lib.IntTypes open Lib.Sequence open Hacl.Spec.Bignum.Definitions module BN = Hacl.Spec.Bignum #reset-options "--z3rlimit 50 --fuel 0 --ifuel 0" let bn_mod_exp_pre (#t:limb_t) (#len:BN.bn_len t) (n:lbignum t len) (a:lbignum t len) (bBits:size_nat...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.NatMod.fsti.checked", "Lib.IntTypes.fsti.checked", "Hacl.Spec.Bignum.Definitions.fst.checked", "Hacl.Spec.Bignum.fsti.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked" ]...
[ { "abbrev": true, "full_module": "Hacl.Spec.Bignum.AlmostMontExponentiation", "short_module": "AE" }, { "abbrev": true, "full_module": "Hacl.Spec.Bignum.MontExponentiation", "short_module": "ME" }, { "abbrev": true, "full_module": "Hacl.Spec.Bignum.ModInvLimb", "short_mod...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
t: Hacl.Spec.Bignum.Definitions.limb_t -> len: Hacl.Spec.Bignum.bn_len t -> Type0
Prims.Tot
[ "total" ]
[]
[ "Hacl.Spec.Bignum.Definitions.limb_t", "Hacl.Spec.Bignum.bn_len", "Lib.IntTypes.size_nat", "Hacl.Spec.Bignum.Definitions.lbignum", "Hacl.Spec.Bignum.Definitions.blocks0", "Lib.IntTypes.bits", "Prims.l_and", "Hacl.Spec.Bignum.Exponentiation.bn_mod_exp_pre", "Prims.b2t", "Prims.op_LessThan", "Prim...
[]
false
false
false
false
true
let bn_mod_exp_st (t: limb_t) (len: BN.bn_len t) =
nBits: size_nat -> n: lbignum t len -> a: lbignum t len -> bBits: size_nat -> b: lbignum t (blocks0 bBits (bits t)) -> Pure (lbignum t len) (requires bn_mod_exp_pre n a bBits b /\ nBits / bits t < len /\ pow2 nBits < bn_v n) (ensures fun res -> bn_mod_exp_post n a bBits b res)
false
Hacl.Spec.Bignum.Exponentiation.fsti
Hacl.Spec.Bignum.Exponentiation.bn_mod_exp_precomp_st
val bn_mod_exp_precomp_st : t: Hacl.Spec.Bignum.Definitions.limb_t -> len: Hacl.Spec.Bignum.bn_len t -> Type0
let bn_mod_exp_precomp_st (t:limb_t) (len:BN.bn_len t) = n:lbignum t len -> mu:limb t -> r2:lbignum t len -> a:lbignum t len -> bBits:size_nat -> b:lbignum t (blocks0 bBits (bits t)) -> Pure (lbignum t len) (requires bn_mod_exp_pre n a bBits b /\ bn_v r2 == pow2 (2 * bits t * len) % bn_v n /\ ...
{ "file_name": "code/bignum/Hacl.Spec.Bignum.Exponentiation.fsti", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 36, "end_line": 67, "start_col": 0, "start_line": 54 }
module Hacl.Spec.Bignum.Exponentiation open FStar.Mul open Lib.IntTypes open Lib.Sequence open Hacl.Spec.Bignum.Definitions module BN = Hacl.Spec.Bignum #reset-options "--z3rlimit 50 --fuel 0 --ifuel 0" let bn_mod_exp_pre (#t:limb_t) (#len:BN.bn_len t) (n:lbignum t len) (a:lbignum t len) (bBits:size_nat...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.NatMod.fsti.checked", "Lib.IntTypes.fsti.checked", "Hacl.Spec.Bignum.Definitions.fst.checked", "Hacl.Spec.Bignum.fsti.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked" ]...
[ { "abbrev": true, "full_module": "Hacl.Spec.Bignum.AlmostMontExponentiation", "short_module": "AE" }, { "abbrev": true, "full_module": "Hacl.Spec.Bignum.MontExponentiation", "short_module": "ME" }, { "abbrev": true, "full_module": "Hacl.Spec.Bignum.ModInvLimb", "short_mod...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
t: Hacl.Spec.Bignum.Definitions.limb_t -> len: Hacl.Spec.Bignum.bn_len t -> Type0
Prims.Tot
[ "total" ]
[]
[ "Hacl.Spec.Bignum.Definitions.limb_t", "Hacl.Spec.Bignum.bn_len", "Hacl.Spec.Bignum.Definitions.lbignum", "Hacl.Spec.Bignum.Definitions.limb", "Lib.IntTypes.size_nat", "Hacl.Spec.Bignum.Definitions.blocks0", "Lib.IntTypes.bits", "Prims.l_and", "Hacl.Spec.Bignum.Exponentiation.bn_mod_exp_pre", "Pri...
[]
false
false
false
false
true
let bn_mod_exp_precomp_st (t: limb_t) (len: BN.bn_len t) =
n: lbignum t len -> mu: limb t -> r2: lbignum t len -> a: lbignum t len -> bBits: size_nat -> b: lbignum t (blocks0 bBits (bits t)) -> Pure (lbignum t len) (requires bn_mod_exp_pre n a bBits b /\ bn_v r2 == pow2 ((2 * bits t) * len) % bn_v n /\ (1 + bn_v n * v mu) % pow2...
false
FStar.ConstantTime.Integers.fsti
FStar.ConstantTime.Integers.sw_qual
val sw_qual : _: FStar.ConstantTime.Integers.qual -> FStar.Integers.signed_width
let sw_qual = function | Secret _ sw -> sw | Public sw -> sw
{ "file_name": "ulib/experimental/FStar.ConstantTime.Integers.fsti", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 19, "end_line": 132, "start_col": 0, "start_line": 130 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Integers.fst.checked", "FStar.IFC.fsti.checked" ], "interface_file": false, "source_file": "FStar.ConstantTime.Integers.fsti" }
[ { "abbrev": false, "full_module": "FStar.Integers", "short_module": null }, { "abbrev": false, "full_module": "FStar.IFC", "short_module": null }, { "abbrev": false, "full_module": "FStar.ConstantTime", "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
_: FStar.ConstantTime.Integers.qual -> FStar.Integers.signed_width
Prims.Tot
[ "total" ]
[]
[ "FStar.ConstantTime.Integers.qual", "FStar.IFC.sl", "FStar.IFC.lattice_element", "FStar.ConstantTime.Integers.sw", "FStar.Integers.signed_width" ]
[]
false
false
false
true
false
let sw_qual =
function | Secret _ sw -> sw | Public sw -> sw
false
Hacl.Spec.Bignum.Exponentiation.fsti
Hacl.Spec.Bignum.Exponentiation.bn_mod_exp_precompr2_st
val bn_mod_exp_precompr2_st : t: Hacl.Spec.Bignum.Definitions.limb_t -> len: Hacl.Spec.Bignum.bn_len t -> Type0
let bn_mod_exp_precompr2_st (t:limb_t) (len:BN.bn_len t) = n:lbignum t len -> r2:lbignum t len -> a:lbignum t len -> bBits:size_nat -> b:lbignum t (blocks0 bBits (bits t)) -> Pure (lbignum t len) (requires bn_mod_exp_pre n a bBits b /\ bn_v r2 == pow2 (2 * bits t * len) % bn_v n) (ensures fun ...
{ "file_name": "code/bignum/Hacl.Spec.Bignum.Exponentiation.fsti", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 36, "end_line": 96, "start_col": 0, "start_line": 85 }
module Hacl.Spec.Bignum.Exponentiation open FStar.Mul open Lib.IntTypes open Lib.Sequence open Hacl.Spec.Bignum.Definitions module BN = Hacl.Spec.Bignum #reset-options "--z3rlimit 50 --fuel 0 --ifuel 0" let bn_mod_exp_pre (#t:limb_t) (#len:BN.bn_len t) (n:lbignum t len) (a:lbignum t len) (bBits:size_nat...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.NatMod.fsti.checked", "Lib.IntTypes.fsti.checked", "Hacl.Spec.Bignum.Definitions.fst.checked", "Hacl.Spec.Bignum.fsti.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked" ]...
[ { "abbrev": true, "full_module": "Hacl.Spec.Bignum.AlmostMontExponentiation", "short_module": "AE" }, { "abbrev": true, "full_module": "Hacl.Spec.Bignum.MontExponentiation", "short_module": "ME" }, { "abbrev": true, "full_module": "Hacl.Spec.Bignum.ModInvLimb", "short_mod...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
t: Hacl.Spec.Bignum.Definitions.limb_t -> len: Hacl.Spec.Bignum.bn_len t -> Type0
Prims.Tot
[ "total" ]
[]
[ "Hacl.Spec.Bignum.Definitions.limb_t", "Hacl.Spec.Bignum.bn_len", "Hacl.Spec.Bignum.Definitions.lbignum", "Lib.IntTypes.size_nat", "Hacl.Spec.Bignum.Definitions.blocks0", "Lib.IntTypes.bits", "Prims.l_and", "Hacl.Spec.Bignum.Exponentiation.bn_mod_exp_pre", "Prims.eq2", "Prims.int", "Hacl.Spec.Bi...
[]
false
false
false
false
true
let bn_mod_exp_precompr2_st (t: limb_t) (len: BN.bn_len t) =
n: lbignum t len -> r2: lbignum t len -> a: lbignum t len -> bBits: size_nat -> b: lbignum t (blocks0 bBits (bits t)) -> Pure (lbignum t len) (requires bn_mod_exp_pre n a bBits b /\ bn_v r2 == pow2 ((2 * bits t) * len) % bn_v n) (ensures fun res -> bn_mod_exp_post n a bBits b res)
false
FStar.ConstantTime.Integers.fsti
FStar.ConstantTime.Integers.i
val i (#q: qual) (x: t q) : GTot (int_t (sw_qual q))
val i (#q: qual) (x: t q) : GTot (int_t (sw_qual q))
let i (#q:qual) (x:t q) : GTot (int_t (sw_qual q)) = match q with | Public s -> x | Secret l s -> m (x <: secret_int l s)
{ "file_name": "ulib/experimental/FStar.ConstantTime.Integers.fsti", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 41, "end_line": 154, "start_col": 0, "start_line": 151 }
(* 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.Pervasives.fsti.checked", "FStar.Integers.fst.checked", "FStar.IFC.fsti.checked" ], "interface_file": false, "source_file": "FStar.ConstantTime.Integers.fsti" }
[ { "abbrev": false, "full_module": "FStar.Integers", "short_module": null }, { "abbrev": false, "full_module": "FStar.IFC", "short_module": null }, { "abbrev": false, "full_module": "FStar.ConstantTime", "short_module": null }, { "abbrev": false, "full_module":...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
x: FStar.ConstantTime.Integers.t q -> Prims.GTot (FStar.Integers.int_t (FStar.ConstantTime.Integers.sw_qual q))
Prims.GTot
[ "sometrivial" ]
[]
[ "FStar.ConstantTime.Integers.qual", "FStar.ConstantTime.Integers.t", "FStar.Integers.signed_width", "FStar.IFC.sl", "FStar.IFC.lattice_element", "FStar.ConstantTime.Integers.sw", "FStar.ConstantTime.Integers.m", "FStar.ConstantTime.Integers.secret_int", "FStar.Integers.int_t", "FStar.ConstantTime....
[]
false
false
false
false
false
let i (#q: qual) (x: t q) : GTot (int_t (sw_qual q)) =
match q with | Public s -> x | Secret l s -> m (x <: secret_int l s)
false
FStar.ConstantTime.Integers.fsti
FStar.ConstantTime.Integers.sw
val sw : Type0
let sw = s:signed_width{width_of_sw s <> Winfinite /\ width_of_sw s <> W128}
{ "file_name": "ulib/experimental/FStar.ConstantTime.Integers.fsti", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 31, "end_line": 33, "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.Pervasives.fsti.checked", "FStar.Integers.fst.checked", "FStar.IFC.fsti.checked" ], "interface_file": false, "source_file": "FStar.ConstantTime.Integers.fsti" }
[ { "abbrev": false, "full_module": "FStar.Integers", "short_module": null }, { "abbrev": false, "full_module": "FStar.IFC", "short_module": null }, { "abbrev": false, "full_module": "FStar.ConstantTime", "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.Integers.signed_width", "Prims.l_and", "Prims.b2t", "Prims.op_disEquality", "FStar.Integers.width", "FStar.Integers.width_of_sw", "FStar.Integers.Winfinite", "FStar.Integers.W128" ]
[]
false
false
false
true
true
let sw =
s: signed_width{width_of_sw s <> Winfinite /\ width_of_sw s <> W128}
false
Hacl.Spec.Bignum.Exponentiation.fsti
Hacl.Spec.Bignum.Exponentiation.bn_mod_exp_post
val bn_mod_exp_post : n: Hacl.Spec.Bignum.Definitions.lbignum t len -> a: Hacl.Spec.Bignum.Definitions.lbignum t len -> bBits: Lib.IntTypes.size_nat -> b: Hacl.Spec.Bignum.Definitions.lbignum t (Hacl.Spec.Bignum.Definitions.blocks0 bBits (Lib.IntTypes.bits t)) -> res: Hacl.Spec.Bignum.Defi...
let bn_mod_exp_post (#t:limb_t) (#len:BN.bn_len t) (n:lbignum t len) (a:lbignum t len) (bBits:size_nat) (b:lbignum t (blocks0 bBits (bits t))) (res:lbignum t len) = bn_mod_exp_pre n a bBits b /\ bn_v res == Lib.NatMod.pow_mod #(bn_v n) (bn_v a) (bn_v b)
{ "file_name": "code/bignum/Hacl.Spec.Bignum.Exponentiation.fsti", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 60, "end_line": 36, "start_col": 0, "start_line": 26 }
module Hacl.Spec.Bignum.Exponentiation open FStar.Mul open Lib.IntTypes open Lib.Sequence open Hacl.Spec.Bignum.Definitions module BN = Hacl.Spec.Bignum #reset-options "--z3rlimit 50 --fuel 0 --ifuel 0" let bn_mod_exp_pre (#t:limb_t) (#len:BN.bn_len t) (n:lbignum t len) (a:lbignum t len) (bBits:size_nat...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.NatMod.fsti.checked", "Lib.IntTypes.fsti.checked", "Hacl.Spec.Bignum.Definitions.fst.checked", "Hacl.Spec.Bignum.fsti.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked" ]...
[ { "abbrev": true, "full_module": "Hacl.Spec.Bignum", "short_module": "BN" }, { "abbrev": false, "full_module": "Hacl.Spec.Bignum.Definitions", "short_module": null }, { "abbrev": false, "full_module": "Lib.Sequence", "short_module": null }, { "abbrev": false, ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
n: Hacl.Spec.Bignum.Definitions.lbignum t len -> a: Hacl.Spec.Bignum.Definitions.lbignum t len -> bBits: Lib.IntTypes.size_nat -> b: Hacl.Spec.Bignum.Definitions.lbignum t (Hacl.Spec.Bignum.Definitions.blocks0 bBits (Lib.IntTypes.bits t)) -> res: Hacl.Spec.Bignum.Definitions.lbignum t...
Prims.Tot
[ "total" ]
[]
[ "Hacl.Spec.Bignum.Definitions.limb_t", "Hacl.Spec.Bignum.bn_len", "Hacl.Spec.Bignum.Definitions.lbignum", "Lib.IntTypes.size_nat", "Hacl.Spec.Bignum.Definitions.blocks0", "Lib.IntTypes.bits", "Prims.l_and", "Hacl.Spec.Bignum.Exponentiation.bn_mod_exp_pre", "Prims.eq2", "Prims.nat", "Hacl.Spec.Bi...
[]
false
false
false
false
true
let bn_mod_exp_post (#t: limb_t) (#len: BN.bn_len t) (n a: lbignum t len) (bBits: size_nat) (b: lbignum t (blocks0 bBits (bits t))) (res: lbignum t len) =
bn_mod_exp_pre n a bBits b /\ bn_v res == Lib.NatMod.pow_mod #(bn_v n) (bn_v a) (bn_v b)
false
FStar.ConstantTime.Integers.fsti
FStar.ConstantTime.Integers.t
val t : q: FStar.ConstantTime.Integers.qual -> Type0
let t (q:qual) = match q with | Secret l s -> secret_int l s | Public s -> int_t s
{ "file_name": "ulib/experimental/FStar.ConstantTime.Integers.fsti", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 23, "end_line": 147, "start_col": 0, "start_line": 144 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Integers.fst.checked", "FStar.IFC.fsti.checked" ], "interface_file": false, "source_file": "FStar.ConstantTime.Integers.fsti" }
[ { "abbrev": false, "full_module": "FStar.Integers", "short_module": null }, { "abbrev": false, "full_module": "FStar.IFC", "short_module": null }, { "abbrev": false, "full_module": "FStar.ConstantTime", "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
q: FStar.ConstantTime.Integers.qual -> Type0
Prims.Tot
[ "total" ]
[]
[ "FStar.ConstantTime.Integers.qual", "FStar.IFC.sl", "FStar.IFC.lattice_element", "FStar.ConstantTime.Integers.sw", "FStar.ConstantTime.Integers.secret_int", "FStar.Integers.signed_width", "FStar.Integers.int_t" ]
[]
false
false
false
true
true
let t (q: qual) =
match q with | Secret l s -> secret_int l s | Public s -> int_t s
false
FStar.ConstantTime.Integers.fsti
FStar.ConstantTime.Integers.label_qual
val label_qual (q: qual{Secret? q}) : lattice_element (Secret?.sl q)
val label_qual (q: qual{Secret? q}) : lattice_element (Secret?.sl q)
let label_qual (q:qual{Secret? q}) : lattice_element (Secret?.sl q) = match q with | Secret l _ -> l
{ "file_name": "ulib/experimental/FStar.ConstantTime.Integers.fsti", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 19, "end_line": 139, "start_col": 0, "start_line": 137 }
(* 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.Pervasives.fsti.checked", "FStar.Integers.fst.checked", "FStar.IFC.fsti.checked" ], "interface_file": false, "source_file": "FStar.ConstantTime.Integers.fsti" }
[ { "abbrev": false, "full_module": "FStar.Integers", "short_module": null }, { "abbrev": false, "full_module": "FStar.IFC", "short_module": null }, { "abbrev": false, "full_module": "FStar.ConstantTime", "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
q: FStar.ConstantTime.Integers.qual{Secret? q} -> FStar.IFC.lattice_element (Secret?.sl q)
Prims.Tot
[ "total" ]
[]
[ "FStar.ConstantTime.Integers.qual", "Prims.b2t", "FStar.ConstantTime.Integers.uu___is_Secret", "FStar.IFC.sl", "FStar.IFC.lattice_element", "FStar.ConstantTime.Integers.sw", "FStar.ConstantTime.Integers.__proj__Secret__item__sl" ]
[]
false
false
false
false
false
let label_qual (q: qual{Secret? q}) : lattice_element (Secret?.sl q) =
match q with | Secret l _ -> l
false
FStar.ConstantTime.Integers.fsti
FStar.ConstantTime.Integers.as_secret
val as_secret (#q: qual{Secret? q}) (x: t q) : secret_int (label_qual q) (sw_qual q)
val as_secret (#q: qual{Secret? q}) (x: t q) : secret_int (label_qual q) (sw_qual q)
let as_secret (#q:qual{Secret? q}) (x:t q) : secret_int (label_qual q) (sw_qual q) = x
{ "file_name": "ulib/experimental/FStar.ConstantTime.Integers.fsti", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 5, "end_line": 160, "start_col": 0, "start_line": 158 }
(* 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.Pervasives.fsti.checked", "FStar.Integers.fst.checked", "FStar.IFC.fsti.checked" ], "interface_file": false, "source_file": "FStar.ConstantTime.Integers.fsti" }
[ { "abbrev": false, "full_module": "FStar.Integers", "short_module": null }, { "abbrev": false, "full_module": "FStar.IFC", "short_module": null }, { "abbrev": false, "full_module": "FStar.ConstantTime", "short_module": null }, { "abbrev": false, "full_module":...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
x: FStar.ConstantTime.Integers.t q -> FStar.ConstantTime.Integers.secret_int (FStar.ConstantTime.Integers.label_qual q) (FStar.ConstantTime.Integers.sw_qual q)
Prims.Tot
[ "total" ]
[]
[ "FStar.ConstantTime.Integers.qual", "Prims.b2t", "FStar.ConstantTime.Integers.uu___is_Secret", "FStar.ConstantTime.Integers.t", "FStar.ConstantTime.Integers.secret_int", "FStar.ConstantTime.Integers.__proj__Secret__item__sl", "FStar.ConstantTime.Integers.label_qual", "FStar.ConstantTime.Integers.sw_qu...
[]
false
false
false
false
false
let as_secret (#q: qual{Secret? q}) (x: t q) : secret_int (label_qual q) (sw_qual q) =
x
false
FStar.ConstantTime.Integers.fsti
FStar.ConstantTime.Integers.as_public
val as_public (#q: qual{Public? q}) (x: t q) : int_t (sw_qual q)
val as_public (#q: qual{Public? q}) (x: t q) : int_t (sw_qual q)
let as_public (#q:qual{Public? q}) (x:t q) : int_t (sw_qual q) = x
{ "file_name": "ulib/experimental/FStar.ConstantTime.Integers.fsti", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 5, "end_line": 166, "start_col": 0, "start_line": 164 }
(* 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.Pervasives.fsti.checked", "FStar.Integers.fst.checked", "FStar.IFC.fsti.checked" ], "interface_file": false, "source_file": "FStar.ConstantTime.Integers.fsti" }
[ { "abbrev": false, "full_module": "FStar.Integers", "short_module": null }, { "abbrev": false, "full_module": "FStar.IFC", "short_module": null }, { "abbrev": false, "full_module": "FStar.ConstantTime", "short_module": null }, { "abbrev": false, "full_module":...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
x: FStar.ConstantTime.Integers.t q -> FStar.Integers.int_t (FStar.ConstantTime.Integers.sw_qual q)
Prims.Tot
[ "total" ]
[]
[ "FStar.ConstantTime.Integers.qual", "Prims.b2t", "FStar.ConstantTime.Integers.uu___is_Public", "FStar.ConstantTime.Integers.t", "FStar.Integers.int_t", "FStar.ConstantTime.Integers.sw_qual" ]
[]
false
false
false
false
false
let as_public (#q: qual{Public? q}) (x: t q) : int_t (sw_qual q) =
x
false
Vale.AES.X64.GCMencryptOpt.fst
Vale.AES.X64.GCMencryptOpt.va_lemma_Gcm_blocks_stdcall
val va_lemma_Gcm_blocks_stdcall : va_b0:va_code -> va_s0:va_state -> win:bool -> alg:algorithm -> auth_b:buffer128 -> auth_bytes:nat64 -> auth_num:nat64 -> keys_b:buffer128 -> iv_b:buffer128 -> iv:supported_iv_LE -> hkeys_b:buffer128 -> abytes_b:buffer128 -> in128x6_b:buffer128 -> out128x6_b:buffer128 -> len128x6...
val va_lemma_Gcm_blocks_stdcall : va_b0:va_code -> va_s0:va_state -> win:bool -> alg:algorithm -> auth_b:buffer128 -> auth_bytes:nat64 -> auth_num:nat64 -> keys_b:buffer128 -> iv_b:buffer128 -> iv:supported_iv_LE -> hkeys_b:buffer128 -> abytes_b:buffer128 -> in128x6_b:buffer128 -> out128x6_b:buffer128 -> len128x6...
let va_lemma_Gcm_blocks_stdcall va_b0 va_s0 win alg auth_b auth_bytes auth_num keys_b iv_b iv hkeys_b abytes_b in128x6_b out128x6_b len128x6_num in128_b out128_b len128_num inout_b plain_num scratch_b tag_b key = let (va_mods:va_mods_t) = [va_Mod_stackTaint; va_Mod_stack; va_Mod_flags; va_Mod_mem_heaplet 6; v...
{ "file_name": "obj/Vale.AES.X64.GCMencryptOpt.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 16, "end_line": 4435, "start_col": 0, "start_line": 4264 }
module Vale.AES.X64.GCMencryptOpt open Vale.Def.Prop_s open Vale.Def.Opaque_s open FStar.Seq open Vale.Def.Words_s open Vale.Def.Words.Seq_s open Vale.Def.Types_s open Vale.Arch.Types open Vale.Arch.HeapImpl open Vale.AES.AES_s open Vale.AES.GCTR_s open Vale.AES.GCTR open Vale.AES.GCM open Vale.AES.GHash_s open Vale.AE...
{ "checked_file": "/", "dependencies": [ "Vale.X64.State.fsti.checked", "Vale.X64.Stack_i.fsti.checked", "Vale.X64.Stack.fsti.checked", "Vale.X64.QuickCodes.fsti.checked", "Vale.X64.QuickCode.fst.checked", "Vale.X64.Memory.fsti.checked", "Vale.X64.Machine_s.fst.checked", "Vale.X64.In...
[ { "abbrev": false, "full_module": "Vale.Lib.Basic", "short_module": null }, { "abbrev": false, "full_module": "Vale.AES.OptPublic", "short_module": null }, { "abbrev": false, "full_module": "Vale.Lib.Meta", "short_module": null }, { "abbrev": false, "full_modu...
{ "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
va_b0: Vale.X64.Decls.va_code -> va_s0: Vale.X64.Decls.va_state -> win: Prims.bool -> alg: Vale.AES.AES_common_s.algorithm -> auth_b: Vale.X64.Memory.buffer128 -> auth_bytes: Vale.X64.Memory.nat64 -> auth_num: Vale.X64.Memory.nat64 -> keys_b: Vale.X64.Memory.buffer128 -> iv_b: Vale....
Prims.Ghost
[]
[]
[ "Vale.X64.Decls.va_code", "Vale.X64.Decls.va_state", "Prims.bool", "Vale.AES.AES_common_s.algorithm", "Vale.X64.Memory.buffer128", "Vale.X64.Memory.nat64", "Vale.AES.GCM_s.supported_iv_LE", "FStar.Seq.Base.seq", "Vale.X64.Memory.nat32", "Vale.X64.QuickCodes.fuel", "Prims.unit", "FStar.Pervasiv...
[]
false
false
false
false
false
let va_lemma_Gcm_blocks_stdcall va_b0 va_s0 win alg auth_b auth_bytes auth_num keys_b iv_b iv hkeys_b abytes_b in128x6_b out128x6_b len128x6_num in128_b out128_b len128_num inout_b plain_num scr...
let va_mods:va_mods_t = [ va_Mod_stackTaint; va_Mod_stack; va_Mod_flags; va_Mod_mem_heaplet 6; va_Mod_mem_heaplet 5; va_Mod_mem_heaplet 4; va_Mod_mem_heaplet 3; va_Mod_mem_heaplet 2; va_Mod_mem_heaplet 1; va_Mod_mem_layout; va_Mod_xmm 15; va_Mod_xmm 14; va_Mod_xmm 13; va_Mod_xmm 12; va_Mod_xmm 11; va_...
false
FStar.Tactics.CanonCommMonoidSimple.Equiv.fst
FStar.Tactics.CanonCommMonoidSimple.Equiv.const
val const (#a: Type) (xa: a) : amap a
val const (#a: Type) (xa: a) : amap a
let const (#a:Type) (xa:a) : amap a = ([], xa)
{ "file_name": "ulib/FStar.Tactics.CanonCommMonoidSimple.Equiv.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 46, "end_line": 62, "start_col": 0, "start_line": 62 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Tactics.V2.fst.checked", "FStar.Tactics.CanonCommSwaps.fst.checked", "FStar.Tactics.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.Properties.fst.checked", "FSt...
[ { "abbrev": false, "full_module": "FStar.Tactics.V2", "short_module": null }, { "abbrev": false, "full_module": "FStar.Tactics.CanonCommSwaps", "short_module": null }, { "abbrev": false, "full_module": "FStar.Classical", "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
xa: a -> FStar.Tactics.CanonCommMonoidSimple.Equiv.amap a
Prims.Tot
[ "total" ]
[]
[ "FStar.Pervasives.Native.Mktuple2", "Prims.list", "FStar.Pervasives.Native.tuple2", "FStar.Tactics.CanonCommMonoidSimple.Equiv.atom", "Prims.Nil", "FStar.Tactics.CanonCommMonoidSimple.Equiv.amap" ]
[]
false
false
false
true
false
let const (#a: Type) (xa: a) : amap a =
([], xa)
false
FStar.Tactics.CanonCommMonoidSimple.Equiv.fst
FStar.Tactics.CanonCommMonoidSimple.Equiv.term_eq
val term_eq : _: FStar.Stubs.Reflection.Types.term -> _: FStar.Stubs.Reflection.Types.term -> FStar.Tactics.Effect.Tac Prims.bool
let term_eq = FStar.Tactics.term_eq_old
{ "file_name": "ulib/FStar.Tactics.CanonCommMonoidSimple.Equiv.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 39, "end_line": 24, "start_col": 0, "start_line": 24 }
(* 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.Tactics.CanonCommSwaps.fst.checked", "FStar.Tactics.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.Properties.fst.checked", "FSt...
[ { "abbrev": false, "full_module": "FStar.Tactics.V2", "short_module": null }, { "abbrev": false, "full_module": "FStar.Tactics.CanonCommSwaps", "short_module": null }, { "abbrev": false, "full_module": "FStar.Classical", "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
_: FStar.Stubs.Reflection.Types.term -> _: FStar.Stubs.Reflection.Types.term -> FStar.Tactics.Effect.Tac Prims.bool
FStar.Tactics.Effect.Tac
[]
[]
[ "FStar.Stubs.Tactics.V1.Builtins.term_eq_old" ]
[]
false
true
false
false
false
let term_eq =
FStar.Tactics.term_eq_old
false
FStar.Tactics.CanonCommMonoidSimple.Equiv.fst
FStar.Tactics.CanonCommMonoidSimple.Equiv.select
val select (#a: Type) (x: atom) (am: amap a) : Tot a
val select (#a: Type) (x: atom) (am: amap a) : Tot a
let select (#a:Type) (x:atom) (am:amap a) : Tot a = match assoc #atom #a x (fst am) with | Some a -> a | _ -> snd am
{ "file_name": "ulib/FStar.Tactics.CanonCommMonoidSimple.Equiv.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 15, "end_line": 66, "start_col": 0, "start_line": 63 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Tactics.V2.fst.checked", "FStar.Tactics.CanonCommSwaps.fst.checked", "FStar.Tactics.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.Properties.fst.checked", "FSt...
[ { "abbrev": false, "full_module": "FStar.Tactics.V2", "short_module": null }, { "abbrev": false, "full_module": "FStar.Tactics.CanonCommSwaps", "short_module": null }, { "abbrev": false, "full_module": "FStar.Classical", "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
x: FStar.Tactics.CanonCommMonoidSimple.Equiv.atom -> am: FStar.Tactics.CanonCommMonoidSimple.Equiv.amap a -> a
Prims.Tot
[ "total" ]
[]
[ "FStar.Tactics.CanonCommMonoidSimple.Equiv.atom", "FStar.Tactics.CanonCommMonoidSimple.Equiv.amap", "FStar.List.Tot.Base.assoc", "FStar.Pervasives.Native.fst", "Prims.list", "FStar.Pervasives.Native.tuple2", "FStar.Pervasives.Native.option", "FStar.Pervasives.Native.snd" ]
[]
false
false
false
true
false
let select (#a: Type) (x: atom) (am: amap a) : Tot a =
match assoc #atom #a x (fst am) with | Some a -> a | _ -> snd am
false
FStar.Tactics.CanonCommMonoidSimple.Equiv.fst
FStar.Tactics.CanonCommMonoidSimple.Equiv.atom
val atom:eqtype
val atom:eqtype
let atom : eqtype = int
{ "file_name": "ulib/FStar.Tactics.CanonCommMonoidSimple.Equiv.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 23, "end_line": 41, "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.Tactics.V2.fst.checked", "FStar.Tactics.CanonCommSwaps.fst.checked", "FStar.Tactics.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.Properties.fst.checked", "FSt...
[ { "abbrev": false, "full_module": "FStar.Tactics.V2", "short_module": null }, { "abbrev": false, "full_module": "FStar.Tactics.CanonCommSwaps", "short_module": null }, { "abbrev": false, "full_module": "FStar.Classical", "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
Prims.eqtype
Prims.Tot
[ "total" ]
[]
[ "Prims.int" ]
[]
false
false
false
true
false
let atom:eqtype =
int
false
FStar.Tactics.CanonCommMonoidSimple.Equiv.fst
FStar.Tactics.CanonCommMonoidSimple.Equiv.amap
val amap : a: Type -> Type
let amap (a:Type) = list (atom * a) * a
{ "file_name": "ulib/FStar.Tactics.CanonCommMonoidSimple.Equiv.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": 61 }
(* 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.Tactics.CanonCommSwaps.fst.checked", "FStar.Tactics.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.Properties.fst.checked", "FSt...
[ { "abbrev": false, "full_module": "FStar.Tactics.V2", "short_module": null }, { "abbrev": false, "full_module": "FStar.Tactics.CanonCommSwaps", "short_module": null }, { "abbrev": false, "full_module": "FStar.Classical", "short_module": null }, { "abbrev": false, ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a: Type -> Type
Prims.Tot
[ "total" ]
[]
[ "FStar.Pervasives.Native.tuple2", "Prims.list", "FStar.Tactics.CanonCommMonoidSimple.Equiv.atom" ]
[]
false
false
false
true
true
let amap (a: Type) =
list (atom * a) * a
false
FStar.Tactics.CanonCommMonoidSimple.Equiv.fst
FStar.Tactics.CanonCommMonoidSimple.Equiv.permute_correct
val permute_correct : p: FStar.Tactics.CanonCommMonoidSimple.Equiv.permute -> Type
let permute_correct (p:permute) = #a:Type -> eq:equiv a -> m:cm a eq -> am:amap a -> xs:list atom -> Lemma (xsdenote eq m am xs `EQ?.eq eq` xsdenote eq m am (p xs))
{ "file_name": "ulib/FStar.Tactics.CanonCommMonoidSimple.Equiv.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 67, "end_line": 139, "start_col": 0, "start_line": 137 }
(* 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.Tactics.CanonCommSwaps.fst.checked", "FStar.Tactics.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.Properties.fst.checked", "FSt...
[ { "abbrev": false, "full_module": "FStar.Tactics.V2", "short_module": null }, { "abbrev": false, "full_module": "FStar.Tactics.CanonCommSwaps", "short_module": null }, { "abbrev": false, "full_module": "FStar.Classical", "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
p: FStar.Tactics.CanonCommMonoidSimple.Equiv.permute -> Type
Prims.Tot
[ "total" ]
[]
[ "FStar.Tactics.CanonCommMonoidSimple.Equiv.permute", "FStar.Algebra.CommMonoid.Equiv.equiv", "FStar.Algebra.CommMonoid.Equiv.cm", "FStar.Tactics.CanonCommMonoidSimple.Equiv.amap", "Prims.list", "FStar.Tactics.CanonCommMonoidSimple.Equiv.atom", "Prims.unit", "Prims.l_True", "Prims.squash", "FStar.A...
[]
false
false
false
true
true
let permute_correct (p: permute) =
#a: Type -> eq: equiv a -> m: cm a eq -> am: amap a -> xs: list atom -> Lemma (EQ?.eq eq (xsdenote eq m am xs) (xsdenote eq m am (p xs)))
false
FStar.Tactics.CanonCommMonoidSimple.Equiv.fst
FStar.Tactics.CanonCommMonoidSimple.Equiv.update
val update (#a: Type) (x: atom) (xa: a) (am: amap a) : amap a
val update (#a: Type) (x: atom) (xa: a) (am: amap a) : amap a
let update (#a:Type) (x:atom) (xa:a) (am:amap a) : amap a = (x, xa)::fst am, snd am
{ "file_name": "ulib/FStar.Tactics.CanonCommMonoidSimple.Equiv.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 25, "end_line": 68, "start_col": 0, "start_line": 67 }
(* 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.Tactics.CanonCommSwaps.fst.checked", "FStar.Tactics.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.Properties.fst.checked", "FSt...
[ { "abbrev": false, "full_module": "FStar.Tactics.V2", "short_module": null }, { "abbrev": false, "full_module": "FStar.Tactics.CanonCommSwaps", "short_module": null }, { "abbrev": false, "full_module": "FStar.Classical", "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
x: FStar.Tactics.CanonCommMonoidSimple.Equiv.atom -> xa: a -> am: FStar.Tactics.CanonCommMonoidSimple.Equiv.amap a -> FStar.Tactics.CanonCommMonoidSimple.Equiv.amap a
Prims.Tot
[ "total" ]
[]
[ "FStar.Tactics.CanonCommMonoidSimple.Equiv.atom", "FStar.Tactics.CanonCommMonoidSimple.Equiv.amap", "FStar.Pervasives.Native.Mktuple2", "Prims.list", "FStar.Pervasives.Native.tuple2", "Prims.Cons", "FStar.Pervasives.Native.fst", "FStar.Pervasives.Native.snd" ]
[]
false
false
false
true
false
let update (#a: Type) (x: atom) (xa: a) (am: amap a) : amap a =
(x, xa) :: fst am, snd am
false
Vale.AES.X64.GCMencryptOpt.fst
Vale.AES.X64.GCMencryptOpt.va_qcode_Gcm_blocks
val va_qcode_Gcm_blocks (va_mods: va_mods_t) (alg: algorithm) (offset: int) (auth_b abytes_b in128x6_b out128x6_b in128_b out128_b inout_b iv_b scratch_b: buffer128) (key: (seq nat32)) (round_keys: (seq quad32)) (keys_b hkeys_b: buffer128) : (va_quickCode unit (va_code_Gcm_...
val va_qcode_Gcm_blocks (va_mods: va_mods_t) (alg: algorithm) (offset: int) (auth_b abytes_b in128x6_b out128x6_b in128_b out128_b inout_b iv_b scratch_b: buffer128) (key: (seq nat32)) (round_keys: (seq quad32)) (keys_b hkeys_b: buffer128) : (va_quickCode unit (va_code_Gcm_...
let va_qcode_Gcm_blocks (va_mods:va_mods_t) (alg:algorithm) (offset:int) (auth_b:buffer128) (abytes_b:buffer128) (in128x6_b:buffer128) (out128x6_b:buffer128) (in128_b:buffer128) (out128_b:buffer128) (inout_b:buffer128) (iv_b:buffer128) (scratch_b:buffer128) (key:(seq nat32)) (round_keys:(seq quad32)) (keys_b:buff...
{ "file_name": "obj/Vale.AES.X64.GCMencryptOpt.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 55, "end_line": 2623, "start_col": 0, "start_line": 2385 }
module Vale.AES.X64.GCMencryptOpt open Vale.Def.Prop_s open Vale.Def.Opaque_s open FStar.Seq open Vale.Def.Words_s open Vale.Def.Words.Seq_s open Vale.Def.Types_s open Vale.Arch.Types open Vale.Arch.HeapImpl open Vale.AES.AES_s open Vale.AES.GCTR_s open Vale.AES.GCTR open Vale.AES.GCM open Vale.AES.GHash_s open Vale.AE...
{ "checked_file": "/", "dependencies": [ "Vale.X64.State.fsti.checked", "Vale.X64.Stack_i.fsti.checked", "Vale.X64.Stack.fsti.checked", "Vale.X64.QuickCodes.fsti.checked", "Vale.X64.QuickCode.fst.checked", "Vale.X64.Memory.fsti.checked", "Vale.X64.Machine_s.fst.checked", "Vale.X64.In...
[ { "abbrev": false, "full_module": "Vale.Lib.Basic", "short_module": null }, { "abbrev": false, "full_module": "Vale.AES.OptPublic", "short_module": null }, { "abbrev": false, "full_module": "Vale.Lib.Meta", "short_module": null }, { "abbrev": false, "full_modu...
{ "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
va_mods: Vale.X64.QuickCode.va_mods_t -> alg: Vale.AES.AES_common_s.algorithm -> offset: Prims.int -> auth_b: Vale.X64.Memory.buffer128 -> abytes_b: Vale.X64.Memory.buffer128 -> in128x6_b: Vale.X64.Memory.buffer128 -> out128x6_b: Vale.X64.Memory.buffer128 -> in128_b: Vale.X64.Memory.buf...
Prims.Tot
[ "total" ]
[]
[ "Vale.X64.QuickCode.va_mods_t", "Vale.AES.AES_common_s.algorithm", "Prims.int", "Vale.X64.Memory.buffer128", "FStar.Seq.Base.seq", "Vale.X64.Memory.nat32", "Vale.X64.Decls.quad32", "Vale.X64.QuickCodes.qblock", "Prims.unit", "Prims.Cons", "Vale.X64.Decls.va_code", "Vale.X64.InsBasic.va_code_Mo...
[]
false
false
false
false
false
let va_qcode_Gcm_blocks (va_mods: va_mods_t) (alg: algorithm) (offset: int) (auth_b abytes_b in128x6_b out128x6_b in128_b out128_b inout_b iv_b scratch_b: buffer128) (key: (seq nat32)) (round_keys: (seq quad32)) (keys_b hkeys_b: buffer128) : (va_quickCode unit (va_code_Gcm_...
(qblock va_mods (fun (va_s: va_state) -> let va_old_s:va_state = va_s in let abytes_ptr:Vale.X64.Memory.nat64 = Vale.X64.Stack_i.load_stack64 (va_get_reg64 rRsp va_s + offset + 0) (va_get_stack va_s) in let in128x6_ptr:Vale.X64.Memory.nat64 = Vale.X64.Stack_i.load...
false
FStar.Tactics.CanonCommMonoidSimple.Equiv.fst
FStar.Tactics.CanonCommMonoidSimple.Equiv.permute
val permute : Type0
let permute = list atom -> list atom
{ "file_name": "ulib/FStar.Tactics.CanonCommMonoidSimple.Equiv.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 36, "end_line": 134, "start_col": 0, "start_line": 134 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Tactics.V2.fst.checked", "FStar.Tactics.CanonCommSwaps.fst.checked", "FStar.Tactics.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.Properties.fst.checked", "FSt...
[ { "abbrev": false, "full_module": "FStar.Tactics.V2", "short_module": null }, { "abbrev": false, "full_module": "FStar.Tactics.CanonCommSwaps", "short_module": null }, { "abbrev": false, "full_module": "FStar.Classical", "short_module": null }, { "abbrev": false, ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
Type0
Prims.Tot
[ "total" ]
[]
[ "Prims.list", "FStar.Tactics.CanonCommMonoidSimple.Equiv.atom" ]
[]
false
false
false
true
true
let permute =
list atom -> list atom
false
FStar.Tactics.CanonCommMonoidSimple.Equiv.fst
FStar.Tactics.CanonCommMonoidSimple.Equiv.permute_via_swaps
val permute_via_swaps : p: FStar.Tactics.CanonCommMonoidSimple.Equiv.permute -> Type
let permute_via_swaps (p:permute) = (#a:Type) -> (am:amap a) -> xs:list atom -> Lemma (exists (ss:swaps_for xs). p xs == apply_swaps xs ss)
{ "file_name": "ulib/FStar.Tactics.CanonCommMonoidSimple.Equiv.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 63, "end_line": 204, "start_col": 0, "start_line": 202 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Tactics.V2.fst.checked", "FStar.Tactics.CanonCommSwaps.fst.checked", "FStar.Tactics.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.Properties.fst.checked", "FSt...
[ { "abbrev": false, "full_module": "FStar.Tactics.V2", "short_module": null }, { "abbrev": false, "full_module": "FStar.Tactics.CanonCommSwaps", "short_module": null }, { "abbrev": false, "full_module": "FStar.Classical", "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
p: FStar.Tactics.CanonCommMonoidSimple.Equiv.permute -> Type
Prims.Tot
[ "total" ]
[]
[ "FStar.Tactics.CanonCommMonoidSimple.Equiv.permute", "FStar.Tactics.CanonCommMonoidSimple.Equiv.amap", "Prims.list", "FStar.Tactics.CanonCommMonoidSimple.Equiv.atom", "Prims.unit", "Prims.l_True", "Prims.squash", "Prims.l_Exists", "FStar.Tactics.CanonCommSwaps.swaps_for", "Prims.eq2", "FStar.Tac...
[]
false
false
false
true
true
let permute_via_swaps (p: permute) =
#a: Type -> am: amap a -> xs: list atom -> Lemma (exists (ss: swaps_for xs). p xs == apply_swaps xs ss)
false
FStar.Tactics.CanonCommMonoidSimple.Equiv.fst
FStar.Tactics.CanonCommMonoidSimple.Equiv.sort
val sort:permute
val sort:permute
let sort : permute = List.Tot.Base.sortWith #int (compare_of_bool (<))
{ "file_name": "ulib/FStar.Tactics.CanonCommMonoidSimple.Equiv.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 70, "end_line": 224, "start_col": 0, "start_line": 224 }
(* 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.Tactics.CanonCommSwaps.fst.checked", "FStar.Tactics.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.Properties.fst.checked", "FSt...
[ { "abbrev": false, "full_module": "FStar.Tactics.V2", "short_module": null }, { "abbrev": false, "full_module": "FStar.Tactics.CanonCommSwaps", "short_module": null }, { "abbrev": false, "full_module": "FStar.Classical", "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
FStar.Tactics.CanonCommMonoidSimple.Equiv.permute
Prims.Tot
[ "total" ]
[]
[ "FStar.List.Tot.Base.sortWith", "Prims.int", "FStar.List.Tot.Base.compare_of_bool", "Prims.op_LessThan" ]
[]
false
false
false
true
false
let sort:permute =
List.Tot.Base.sortWith #int (compare_of_bool ( < ))
false
FStar.Tactics.CanonCommMonoidSimple.Equiv.fst
FStar.Tactics.CanonCommMonoidSimple.Equiv.sort_correct_aux
val sort_correct_aux (#a: Type) (eq: equiv a) (m: cm a eq) (am: amap a) (xs: list atom) : Lemma (EQ?.eq eq (xsdenote eq m am xs) (xsdenote eq m am (sort xs)))
val sort_correct_aux (#a: Type) (eq: equiv a) (m: cm a eq) (am: amap a) (xs: list atom) : Lemma (EQ?.eq eq (xsdenote eq m am xs) (xsdenote eq m am (sort xs)))
let sort_correct_aux (#a:Type) (eq:equiv a) (m:cm a eq) (am:amap a) (xs:list atom) : Lemma (xsdenote eq m am xs `EQ?.eq eq` xsdenote eq m am (sort xs)) = permute_via_swaps_correct sort (fun #a am -> sort_via_swaps am) eq m am xs
{ "file_name": "ulib/FStar.Tactics.CanonCommMonoidSimple.Equiv.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 76, "end_line": 234, "start_col": 0, "start_line": 232 }
(* 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.Tactics.CanonCommSwaps.fst.checked", "FStar.Tactics.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.Properties.fst.checked", "FSt...
[ { "abbrev": false, "full_module": "FStar.Tactics.V2", "short_module": null }, { "abbrev": false, "full_module": "FStar.Tactics.CanonCommSwaps", "short_module": null }, { "abbrev": false, "full_module": "FStar.Classical", "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
eq: FStar.Algebra.CommMonoid.Equiv.equiv a -> m: FStar.Algebra.CommMonoid.Equiv.cm a eq -> am: FStar.Tactics.CanonCommMonoidSimple.Equiv.amap a -> xs: Prims.list FStar.Tactics.CanonCommMonoidSimple.Equiv.atom -> FStar.Pervasives.Lemma (ensures EQ?.eq eq (FStar.Tactics.CanonCommMonoi...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "FStar.Algebra.CommMonoid.Equiv.equiv", "FStar.Algebra.CommMonoid.Equiv.cm", "FStar.Tactics.CanonCommMonoidSimple.Equiv.amap", "Prims.list", "FStar.Tactics.CanonCommMonoidSimple.Equiv.atom", "FStar.Tactics.CanonCommMonoidSimple.Equiv.permute_via_swaps_correct", "FStar.Tactics.CanonCommMonoidSimple.Equiv...
[]
false
false
true
false
false
let sort_correct_aux (#a: Type) (eq: equiv a) (m: cm a eq) (am: amap a) (xs: list atom) : Lemma (EQ?.eq eq (xsdenote eq m am xs) (xsdenote eq m am (sort xs))) =
permute_via_swaps_correct sort (fun #a am -> sort_via_swaps am) eq m am xs
false
FStar.Tactics.CanonCommMonoidSimple.Equiv.fst
FStar.Tactics.CanonCommMonoidSimple.Equiv.sort_correct
val sort_correct:permute_correct sort
val sort_correct:permute_correct sort
let sort_correct : permute_correct sort = (fun #a -> sort_correct_aux #a)
{ "file_name": "ulib/FStar.Tactics.CanonCommMonoidSimple.Equiv.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 73, "end_line": 236, "start_col": 0, "start_line": 236 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Tactics.V2.fst.checked", "FStar.Tactics.CanonCommSwaps.fst.checked", "FStar.Tactics.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.Properties.fst.checked", "FSt...
[ { "abbrev": false, "full_module": "FStar.Tactics.V2", "short_module": null }, { "abbrev": false, "full_module": "FStar.Tactics.CanonCommSwaps", "short_module": null }, { "abbrev": false, "full_module": "FStar.Classical", "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
FStar.Tactics.CanonCommMonoidSimple.Equiv.permute_correct FStar.Tactics.CanonCommMonoidSimple.Equiv.sort
Prims.Tot
[ "total" ]
[]
[ "FStar.Tactics.CanonCommMonoidSimple.Equiv.sort_correct_aux", "FStar.Algebra.CommMonoid.Equiv.equiv", "FStar.Algebra.CommMonoid.Equiv.cm", "FStar.Tactics.CanonCommMonoidSimple.Equiv.amap", "Prims.list", "FStar.Tactics.CanonCommMonoidSimple.Equiv.atom", "Prims.unit", "Prims.l_True", "Prims.squash", ...
[]
false
false
false
true
false
let sort_correct:permute_correct sort =
(fun #a -> sort_correct_aux #a)
false
FStar.Tactics.CanonCommMonoidSimple.Equiv.fst
FStar.Tactics.CanonCommMonoidSimple.Equiv.canon
val canon : e: FStar.Tactics.CanonCommMonoidSimple.Equiv.exp -> Prims.list FStar.Tactics.CanonCommMonoidSimple.Equiv.atom
let canon (e:exp) = sort (flatten e)
{ "file_name": "ulib/FStar.Tactics.CanonCommMonoidSimple.Equiv.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 36, "end_line": 240, "start_col": 0, "start_line": 240 }
(* 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.Tactics.CanonCommSwaps.fst.checked", "FStar.Tactics.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.Properties.fst.checked", "FSt...
[ { "abbrev": false, "full_module": "FStar.Tactics.V2", "short_module": null }, { "abbrev": false, "full_module": "FStar.Tactics.CanonCommSwaps", "short_module": null }, { "abbrev": false, "full_module": "FStar.Classical", "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
e: FStar.Tactics.CanonCommMonoidSimple.Equiv.exp -> Prims.list FStar.Tactics.CanonCommMonoidSimple.Equiv.atom
Prims.Tot
[ "total" ]
[]
[ "FStar.Tactics.CanonCommMonoidSimple.Equiv.exp", "FStar.Tactics.CanonCommMonoidSimple.Equiv.sort", "FStar.Tactics.CanonCommMonoidSimple.Equiv.flatten", "Prims.list", "FStar.Tactics.CanonCommMonoidSimple.Equiv.atom" ]
[]
false
false
false
true
false
let canon (e: exp) =
sort (flatten e)
false
FStar.Tactics.CanonCommMonoidSimple.Equiv.fst
FStar.Tactics.CanonCommMonoidSimple.Equiv.exp_to_string
val exp_to_string (e: exp) : string
val exp_to_string (e: exp) : string
let rec exp_to_string (e:exp) : string = match e with | Unit -> "Unit" | Atom x -> "Atom " ^ string_of_int (x <: atom) | Mult e1 e2 -> "Mult (" ^ exp_to_string e1 ^ ") (" ^ exp_to_string e2 ^ ")"
{ "file_name": "ulib/FStar.Tactics.CanonCommMonoidSimple.Equiv.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 51, "end_line": 53, "start_col": 0, "start_line": 48 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Tactics.V2.fst.checked", "FStar.Tactics.CanonCommSwaps.fst.checked", "FStar.Tactics.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.Properties.fst.checked", "FSt...
[ { "abbrev": false, "full_module": "FStar.Tactics.V2", "short_module": null }, { "abbrev": false, "full_module": "FStar.Tactics.CanonCommSwaps", "short_module": null }, { "abbrev": false, "full_module": "FStar.Classical", "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
e: FStar.Tactics.CanonCommMonoidSimple.Equiv.exp -> Prims.string
Prims.Tot
[ "total" ]
[]
[ "FStar.Tactics.CanonCommMonoidSimple.Equiv.exp", "FStar.Tactics.CanonCommMonoidSimple.Equiv.atom", "Prims.op_Hat", "Prims.string_of_int", "FStar.Tactics.CanonCommMonoidSimple.Equiv.exp_to_string", "Prims.string" ]
[ "recursion" ]
false
false
false
true
false
let rec exp_to_string (e: exp) : string =
match e with | Unit -> "Unit" | Atom x -> "Atom " ^ string_of_int (x <: atom) | Mult e1 e2 -> "Mult (" ^ exp_to_string e1 ^ ") (" ^ exp_to_string e2 ^ ")"
false
FStar.Tactics.CanonCommMonoidSimple.Equiv.fst
FStar.Tactics.CanonCommMonoidSimple.Equiv.where
val where : x: FStar.Tactics.NamedView.term -> xs: Prims.list FStar.Tactics.NamedView.term -> FStar.Tactics.Effect.Tac (FStar.Pervasives.Native.option Prims.nat)
let where = where_aux 0
{ "file_name": "ulib/FStar.Tactics.CanonCommMonoidSimple.Equiv.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 23, "end_line": 275, "start_col": 0, "start_line": 275 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Tactics.V2.fst.checked", "FStar.Tactics.CanonCommSwaps.fst.checked", "FStar.Tactics.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.Properties.fst.checked", "FSt...
[ { "abbrev": false, "full_module": "FStar.Tactics.V2", "short_module": null }, { "abbrev": false, "full_module": "FStar.Tactics.CanonCommSwaps", "short_module": null }, { "abbrev": false, "full_module": "FStar.Classical", "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
x: FStar.Tactics.NamedView.term -> xs: Prims.list FStar.Tactics.NamedView.term -> FStar.Tactics.Effect.Tac (FStar.Pervasives.Native.option Prims.nat)
FStar.Tactics.Effect.Tac
[]
[]
[ "FStar.Tactics.CanonCommMonoidSimple.Equiv.where_aux" ]
[]
false
true
false
false
false
let where =
where_aux 0
false
FStar.Tactics.CanonCommMonoidSimple.Equiv.fst
FStar.Tactics.CanonCommMonoidSimple.Equiv.repeat_cong_right_identity
val repeat_cong_right_identity (eq m: term) : Tac unit
val repeat_cong_right_identity (eq m: term) : Tac unit
let rec repeat_cong_right_identity (eq: term) (m: term) : Tac unit = or_else (fun _ -> apply_lemma (`right_identity)) (fun _ -> apply_lemma (`CM?.congruence (`#m)); split (); apply_lemma (`EQ?.reflexivity (`#eq)); repeat_cong_right_identity eq m ...
{ "file_name": "ulib/FStar.Tactics.CanonCommMonoidSimple.Equiv.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 21, "end_line": 314, "start_col": 0, "start_line": 308 }
(* 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.Tactics.CanonCommSwaps.fst.checked", "FStar.Tactics.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.Properties.fst.checked", "FSt...
[ { "abbrev": false, "full_module": "FStar.Tactics.V2", "short_module": null }, { "abbrev": false, "full_module": "FStar.Tactics.CanonCommSwaps", "short_module": null }, { "abbrev": false, "full_module": "FStar.Classical", "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
eq: FStar.Tactics.NamedView.term -> m: FStar.Tactics.NamedView.term -> FStar.Tactics.Effect.Tac Prims.unit
FStar.Tactics.Effect.Tac
[]
[]
[ "FStar.Tactics.NamedView.term", "FStar.Tactics.V2.Derived.or_else", "Prims.unit", "FStar.Tactics.V2.Derived.apply_lemma", "FStar.Tactics.CanonCommMonoidSimple.Equiv.repeat_cong_right_identity", "FStar.Tactics.V2.Logic.split" ]
[ "recursion" ]
false
true
false
false
false
let rec repeat_cong_right_identity (eq m: term) : Tac unit =
or_else (fun _ -> apply_lemma (`right_identity)) (fun _ -> apply_lemma (`CM?.congruence (`#m)); split (); apply_lemma (`EQ?.reflexivity (`#eq)); repeat_cong_right_identity eq m)
false
FStar.Tactics.CanonCommMonoidSimple.Equiv.fst
FStar.Tactics.CanonCommMonoidSimple.Equiv.reification
val reification (eq m: term) (ts: list term) (am: amap term) (t: term) : Tac (exp * list term * amap term)
val reification (eq m: term) (ts: list term) (am: amap term) (t: term) : Tac (exp * list term * amap term)
let reification (eq: term) (m: term) (ts:list term) (am:amap term) (t:term) : Tac (exp * list term * amap term) = let mult = norm_term [iota; zeta; delta] (`CM?.mult (`#m)) in let unit = norm_term [iota; zeta; delta] (`CM?.unit (`#m)) in let t = norm_term [iota; zeta] t in reification_aux ts am mult unit...
{ "file_name": "ulib/FStar.Tactics.CanonCommMonoidSimple.Equiv.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 35, "end_line": 306, "start_col": 0, "start_line": 301 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Tactics.V2.fst.checked", "FStar.Tactics.CanonCommSwaps.fst.checked", "FStar.Tactics.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.Properties.fst.checked", "FSt...
[ { "abbrev": false, "full_module": "FStar.Tactics.V2", "short_module": null }, { "abbrev": false, "full_module": "FStar.Tactics.CanonCommSwaps", "short_module": null }, { "abbrev": false, "full_module": "FStar.Classical", "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
eq: FStar.Tactics.NamedView.term -> m: FStar.Tactics.NamedView.term -> ts: Prims.list FStar.Tactics.NamedView.term -> am: FStar.Tactics.CanonCommMonoidSimple.Equiv.amap FStar.Tactics.NamedView.term -> t: FStar.Tactics.NamedView.term -> FStar.Tactics.Effect.Tac ((FStar.Tactics.CanonCommMonoidS...
FStar.Tactics.Effect.Tac
[]
[]
[ "FStar.Tactics.NamedView.term", "Prims.list", "FStar.Tactics.CanonCommMonoidSimple.Equiv.amap", "FStar.Tactics.CanonCommMonoidSimple.Equiv.reification_aux", "FStar.Pervasives.Native.tuple3", "FStar.Tactics.CanonCommMonoidSimple.Equiv.exp", "FStar.Tactics.V2.Derived.norm_term", "Prims.Cons", "FStar.P...
[]
false
true
false
false
false
let reification (eq m: term) (ts: list term) (am: amap term) (t: term) : Tac (exp * list term * amap term) =
let mult = norm_term [iota; zeta; delta] (`CM?.mult (`#m)) in let unit = norm_term [iota; zeta; delta] (`CM?.unit (`#m)) in let t = norm_term [iota; zeta] t in reification_aux ts am mult unit t
false
FStar.Tactics.CanonCommMonoidSimple.Equiv.fst
FStar.Tactics.CanonCommMonoidSimple.Equiv.xsdenote
val xsdenote (#a: Type) (eq: equiv a) (m: cm a eq) (am: amap a) (xs: list atom) : a
val xsdenote (#a: Type) (eq: equiv a) (m: cm a eq) (am: amap a) (xs: list atom) : a
let rec xsdenote (#a:Type) (eq:equiv a) (m:cm a eq) (am:amap a) (xs:list atom) : a = match xs with | [] -> CM?.unit m | [x] -> select x am | x::xs' -> CM?.mult m (select x am) (xsdenote eq m am xs')
{ "file_name": "ulib/FStar.Tactics.CanonCommMonoidSimple.Equiv.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 61, "end_line": 80, "start_col": 0, "start_line": 76 }
(* 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.Tactics.CanonCommSwaps.fst.checked", "FStar.Tactics.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.Properties.fst.checked", "FSt...
[ { "abbrev": false, "full_module": "FStar.Tactics.V2", "short_module": null }, { "abbrev": false, "full_module": "FStar.Tactics.CanonCommSwaps", "short_module": null }, { "abbrev": false, "full_module": "FStar.Classical", "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
eq: FStar.Algebra.CommMonoid.Equiv.equiv a -> m: FStar.Algebra.CommMonoid.Equiv.cm a eq -> am: FStar.Tactics.CanonCommMonoidSimple.Equiv.amap a -> xs: Prims.list FStar.Tactics.CanonCommMonoidSimple.Equiv.atom -> a
Prims.Tot
[ "total" ]
[]
[ "FStar.Algebra.CommMonoid.Equiv.equiv", "FStar.Algebra.CommMonoid.Equiv.cm", "FStar.Tactics.CanonCommMonoidSimple.Equiv.amap", "Prims.list", "FStar.Tactics.CanonCommMonoidSimple.Equiv.atom", "FStar.Algebra.CommMonoid.Equiv.__proj__CM__item__unit", "FStar.Tactics.CanonCommMonoidSimple.Equiv.select", "F...
[ "recursion" ]
false
false
false
false
false
let rec xsdenote (#a: Type) (eq: equiv a) (m: cm a eq) (am: amap a) (xs: list atom) : a =
match xs with | [] -> CM?.unit m | [x] -> select x am | x :: xs' -> CM?.mult m (select x am) (xsdenote eq m am xs')
false