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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Hacl.Impl.Curve25519.Generic.fst | Hacl.Impl.Curve25519.Generic.g25519_t | val g25519_t : Type0 | let g25519_t = x:glbuffer byte_t 32ul{witnessed x (Lib.Sequence.of_list S.basepoint_list) /\ recallable x} | {
"file_name": "code/curve25519/Hacl.Impl.Curve25519.Generic.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 106,
"end_line": 468,
"start_col": 0,
"start_line": 468
} | module Hacl.Impl.Curve25519.Generic
open FStar.HyperStack
open FStar.HyperStack.All
open FStar.Mul
open Lib.IntTypes
open Lib.Buffer
open Lib.ByteBuffer
open Hacl.Impl.Curve25519.Fields
include Hacl.Impl.Curve25519.Finv
include Hacl.Impl.Curve25519.AddAndDouble
module ST = FStar.HyperStack.ST
module BSeq = Lib.Byt... | {
"checked_file": "/",
"dependencies": [
"Spec.Curve25519.fst.checked",
"prims.fst.checked",
"Meta.Attribute.fst.checked",
"LowStar.Monotonic.Buffer.fsti.checked",
"Lib.Sequence.fsti.checked",
"Lib.Loops.fsti.checked",
"Lib.LoopCombinators.fst.checked",
"Lib.IntTypes.fsti.checked",
... | [
{
"abbrev": true,
"full_module": "Hacl.Spec.Curve25519.Field64.Lemmas",
"short_module": "Lemmas"
},
{
"abbrev": true,
"full_module": "Hacl.Spec.Curve25519.AddAndDouble",
"short_module": "M"
},
{
"abbrev": true,
"full_module": "Spec.Curve25519",
"short_module": "S"
},
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | Type0 | Prims.Tot | [
"total"
] | [] | [
"Lib.Buffer.glbuffer",
"Lib.IntTypes.byte_t",
"FStar.UInt32.__uint_to_t",
"Prims.l_and",
"Lib.Buffer.witnessed",
"Lib.Sequence.of_list",
"Lib.IntTypes.int_t",
"Lib.IntTypes.U8",
"Lib.IntTypes.PUB",
"Spec.Curve25519.basepoint_list",
"Lib.Buffer.recallable",
"Lib.Buffer.CONST"
] | [] | false | false | false | true | true | let g25519_t =
| x: glbuffer byte_t 32ul {witnessed x (Lib.Sequence.of_list S.basepoint_list) /\ recallable x} | false | |
Vale.Stdcalls.X64.GCM_IV.fst | Vale.Stdcalls.X64.GCM_IV.dom | val dom:dom: list td {List.length dom <= 20} | val dom:dom: list td {List.length dom <= 20} | let (dom: list td{List.length dom <= 20}) =
let y = [t128_no_mod; tuint64; tuint64; t128_mod; t128_no_mod; t128_no_mod] in
assert_norm (List.length y = 6);
y | {
"file_name": "vale/code/arch/x64/interop/Vale.Stdcalls.X64.GCM_IV.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 3,
"end_line": 48,
"start_col": 0,
"start_line": 45
} | module Vale.Stdcalls.X64.GCM_IV
open FStar.HyperStack.ST
module B = LowStar.Buffer
module HS = FStar.HyperStack
open FStar.Mul
module DV = LowStar.BufferView.Down
module UV = LowStar.BufferView.Up
open Vale.Def.Types_s
open Vale.Interop.Base
module IX64 = Vale.Interop.X64
module VSig = Vale.AsLowStar.ValeSig
module ... | {
"checked_file": "/",
"dependencies": [
"Vale.X64.State.fsti.checked",
"Vale.X64.MemoryAdapters.fsti.checked",
"Vale.X64.Memory.fsti.checked",
"Vale.X64.Machine_s.fst.checked",
"Vale.X64.Decls.fsti.checked",
"Vale.Interop.X64.fsti.checked",
"Vale.Interop.Base.fst.checked",
"Vale.Int... | [
{
"abbrev": false,
"full_module": "Vale.AES.GCM_s",
"short_module": null
},
{
"abbrev": true,
"full_module": "Vale.AES.X64.GCMencryptOpt",
"short_module": "GC"
},
{
"abbrev": true,
"full_module": "Vale.X64.Machine_s",
"short_module": "MS"
},
{
"abbrev": true,
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 1,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | dom: Prims.list Vale.Interop.Base.td {FStar.List.Tot.Base.length dom <= 20} | Prims.Tot | [
"total"
] | [] | [
"Prims.unit",
"FStar.Pervasives.assert_norm",
"Prims.b2t",
"Prims.op_Equality",
"Prims.int",
"FStar.List.Tot.Base.length",
"Vale.Interop.Base.td",
"Prims.list",
"Prims.Cons",
"Vale.Stdcalls.X64.GCM_IV.t128_no_mod",
"Vale.Stdcalls.X64.GCM_IV.tuint64",
"Vale.Stdcalls.X64.GCM_IV.t128_mod",
"Pri... | [] | false | false | false | false | false | let dom:dom: list td {List.length dom <= 20} =
| let y = [t128_no_mod; tuint64; tuint64; t128_mod; t128_no_mod; t128_no_mod] in
assert_norm (List.length y = 6);
y | false |
Vale.Stdcalls.X64.GCM_IV.fst | Vale.Stdcalls.X64.GCM_IV.lowstar_compute_iv | val lowstar_compute_iv (iv: Ghost.erased supported_iv_LE) : lowstar_compute_iv_t iv | val lowstar_compute_iv (iv: Ghost.erased supported_iv_LE) : lowstar_compute_iv_t iv | let lowstar_compute_iv (iv:Ghost.erased supported_iv_LE) : lowstar_compute_iv_t iv =
assert_norm (List.length dom + List.length ([]<:list arg) <= 20);
IX64.wrap_weak_stdcall
code_compute_iv
dom
(W.mk_prediction code_compute_iv dom [] ((compute_iv_lemma iv) code_compute_iv IA.win)) | {
"file_name": "vale/code/arch/x64/interop/Vale.Stdcalls.X64.GCM_IV.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 91,
"end_line": 149,
"start_col": 0,
"start_line": 144
} | module Vale.Stdcalls.X64.GCM_IV
open FStar.HyperStack.ST
module B = LowStar.Buffer
module HS = FStar.HyperStack
open FStar.Mul
module DV = LowStar.BufferView.Down
module UV = LowStar.BufferView.Up
open Vale.Def.Types_s
open Vale.Interop.Base
module IX64 = Vale.Interop.X64
module VSig = Vale.AsLowStar.ValeSig
module ... | {
"checked_file": "/",
"dependencies": [
"Vale.X64.State.fsti.checked",
"Vale.X64.MemoryAdapters.fsti.checked",
"Vale.X64.Memory.fsti.checked",
"Vale.X64.Machine_s.fst.checked",
"Vale.X64.Decls.fsti.checked",
"Vale.Interop.X64.fsti.checked",
"Vale.Interop.Base.fst.checked",
"Vale.Int... | [
{
"abbrev": false,
"full_module": "Vale.AES.GCM_s",
"short_module": null
},
{
"abbrev": true,
"full_module": "Vale.AES.X64.GCMencryptOpt",
"short_module": "GC"
},
{
"abbrev": true,
"full_module": "Vale.X64.Machine_s",
"short_module": "MS"
},
{
"abbrev": true,
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 1,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | iv: FStar.Ghost.erased Vale.AES.GCM_s.supported_iv_LE
-> Vale.Stdcalls.X64.GCM_IV.lowstar_compute_iv_t iv | Prims.Tot | [
"total"
] | [] | [
"FStar.Ghost.erased",
"Vale.AES.GCM_s.supported_iv_LE",
"Vale.Interop.X64.wrap_weak_stdcall",
"Vale.Stdcalls.X64.GCM_IV.code_compute_iv",
"Vale.Stdcalls.X64.GCM_IV.dom",
"Vale.AsLowStar.Wrapper.pre_rel_generic",
"Vale.Interop.X64.max_stdcall",
"Vale.Interop.X64.arg_reg_stdcall",
"Prims.Nil",
"Vale... | [] | false | false | false | false | false | let lowstar_compute_iv (iv: Ghost.erased supported_iv_LE) : lowstar_compute_iv_t iv =
| assert_norm (List.length dom + List.length ([] <: list arg) <= 20);
IX64.wrap_weak_stdcall code_compute_iv
dom
(W.mk_prediction code_compute_iv dom [] ((compute_iv_lemma iv) code_compute_iv IA.win)) | false |
Vale.Stdcalls.X64.GCM_IV.fst | Vale.Stdcalls.X64.GCM_IV.compute_iv_pre | val compute_iv_pre: (Ghost.erased supported_iv_LE) -> VSig.vale_pre dom | val compute_iv_pre: (Ghost.erased supported_iv_LE) -> VSig.vale_pre dom | let compute_iv_pre : (Ghost.erased supported_iv_LE) -> VSig.vale_pre dom =
fun (iv:Ghost.erased supported_iv_LE)
(c:V.va_code)
(iv_b:b128)
(num_bytes:uint64)
(len:uint64)
(j0_b:b128)
(iv_extra_b:b128)
(hkeys_b:b128)
(va_s0:V.va_state) ->
GC.va_req_Compute_iv_stdcall c va_s0 IA.wi... | {
"file_name": "vale/code/arch/x64/interop/Vale.Stdcalls.X64.GCM_IV.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 60,
"end_line": 65,
"start_col": 0,
"start_line": 52
} | module Vale.Stdcalls.X64.GCM_IV
open FStar.HyperStack.ST
module B = LowStar.Buffer
module HS = FStar.HyperStack
open FStar.Mul
module DV = LowStar.BufferView.Down
module UV = LowStar.BufferView.Up
open Vale.Def.Types_s
open Vale.Interop.Base
module IX64 = Vale.Interop.X64
module VSig = Vale.AsLowStar.ValeSig
module ... | {
"checked_file": "/",
"dependencies": [
"Vale.X64.State.fsti.checked",
"Vale.X64.MemoryAdapters.fsti.checked",
"Vale.X64.Memory.fsti.checked",
"Vale.X64.Machine_s.fst.checked",
"Vale.X64.Decls.fsti.checked",
"Vale.Interop.X64.fsti.checked",
"Vale.Interop.Base.fst.checked",
"Vale.Int... | [
{
"abbrev": false,
"full_module": "Vale.AES.GCM_s",
"short_module": null
},
{
"abbrev": true,
"full_module": "Vale.AES.X64.GCMencryptOpt",
"short_module": "GC"
},
{
"abbrev": true,
"full_module": "Vale.X64.Machine_s",
"short_module": "MS"
},
{
"abbrev": true,
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 1,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | iv: FStar.Ghost.erased Vale.AES.GCM_s.supported_iv_LE
-> Vale.AsLowStar.ValeSig.vale_pre Vale.Stdcalls.X64.GCM_IV.dom | Prims.Tot | [
"total"
] | [] | [
"FStar.Ghost.erased",
"Vale.AES.GCM_s.supported_iv_LE",
"Vale.X64.Decls.va_code",
"Vale.Stdcalls.X64.GCM_IV.b128",
"Vale.Stdcalls.X64.GCM_IV.uint64",
"Vale.X64.Decls.va_state",
"Vale.AES.X64.GCMencryptOpt.va_req_Compute_iv_stdcall",
"Vale.Interop.Assumptions.win",
"FStar.Ghost.reveal",
"Vale.X64.M... | [] | false | false | false | true | false | let compute_iv_pre: (Ghost.erased supported_iv_LE) -> VSig.vale_pre dom =
| fun
(iv: Ghost.erased supported_iv_LE)
(c: V.va_code)
(iv_b: b128)
(num_bytes: uint64)
(len: uint64)
(j0_b: b128)
(iv_extra_b: b128)
(hkeys_b: b128)
(va_s0: V.va_state)
->
GC.va_req_Compute_iv_stdcall c va_s0 IA.win (Ghost.reveal iv) (as_vale_buffer iv_b)
(UInt64.v num_bytes) (UInt64.v len) (a... | false |
Steel.ST.GenArraySwap.fst | Steel.ST.GenArraySwap.impl_jump | val impl_jump (n l idx: SZ.t)
: Pure SZ.t
(requires (SZ.v l < SZ.v n /\ SZ.v idx < SZ.v n))
(ensures (fun idx' -> SZ.v idx' == Prf.jump (SZ.v n) (SZ.v l) (SZ.v idx))) | val impl_jump (n l idx: SZ.t)
: Pure SZ.t
(requires (SZ.v l < SZ.v n /\ SZ.v idx < SZ.v n))
(ensures (fun idx' -> SZ.v idx' == Prf.jump (SZ.v n) (SZ.v l) (SZ.v idx))) | let impl_jump
(n: SZ.t)
(l: SZ.t)
(idx: SZ.t)
: Pure SZ.t
(requires (
SZ.v l < SZ.v n /\
SZ.v idx < SZ.v n
))
(ensures (fun idx' ->
SZ.v idx' == Prf.jump (SZ.v n) (SZ.v l) (SZ.v idx)
))
= Prf.jump_if (SZ.v n) (SZ.v l) () (SZ.v idx);
[@@inline_let]
let nl = n `SZ.sub` l in
i... | {
"file_name": "lib/steel/Steel.ST.GenArraySwap.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 21,
"end_line": 394,
"start_col": 0,
"start_line": 377
} | module Steel.ST.GenArraySwap
open Steel.ST.GenElim
module Prf = Steel.ST.GenArraySwap.Proof
module R = Steel.ST.Reference
let gcd_inv_prop
(n0: nat)
(l0: nat)
(n: nat)
(l: nat)
(b: bool)
: Tot prop
= l0 < n0 /\
l < n /\
(Prf.mk_bezout n0 l0).d == (Prf.mk_bezout n l).d /\
b == (l > 0)
[@@__reduce__]
l... | {
"checked_file": "/",
"dependencies": [
"Steel.ST.Reference.fsti.checked",
"Steel.ST.Loops.fsti.checked",
"Steel.ST.GenElim.fsti.checked",
"Steel.ST.GenArraySwap.Proof.fst.checked",
"prims.fst.checked",
"FStar.SizeT.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.fsti.chec... | [
{
"abbrev": true,
"full_module": "Steel.ST.Reference",
"short_module": "R"
},
{
"abbrev": true,
"full_module": "Steel.ST.GenArraySwap.Proof",
"short_module": "Prf"
},
{
"abbrev": false,
"full_module": "Steel.ST.GenElim",
"short_module": null
},
{
"abbrev": true,
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | n: FStar.SizeT.t -> l: FStar.SizeT.t -> idx: FStar.SizeT.t -> Prims.Pure FStar.SizeT.t | Prims.Pure | [] | [] | [
"FStar.SizeT.t",
"FStar.SizeT.gte",
"FStar.SizeT.sub",
"Prims.bool",
"FStar.SizeT.add",
"Prims.unit",
"Steel.ST.GenArraySwap.Proof.jump_if",
"FStar.SizeT.v",
"Prims.l_and",
"Prims.b2t",
"Prims.op_LessThan",
"Prims.eq2",
"Prims.nat",
"Steel.ST.GenArraySwap.Proof.jump"
] | [] | false | false | false | false | false | let impl_jump (n l idx: SZ.t)
: Pure SZ.t
(requires (SZ.v l < SZ.v n /\ SZ.v idx < SZ.v n))
(ensures (fun idx' -> SZ.v idx' == Prf.jump (SZ.v n) (SZ.v l) (SZ.v idx))) =
| Prf.jump_if (SZ.v n) (SZ.v l) () (SZ.v idx);
[@@ inline_let ]let nl = n `SZ.sub` l in
if idx `SZ.gte` nl then idx `SZ.sub` nl else idx `SZ.add` l | false |
Vale.Stdcalls.X64.GCM_IV.fst | Vale.Stdcalls.X64.GCM_IV.lowstar_compute_iv_t | val lowstar_compute_iv_t : iv: FStar.Ghost.erased Vale.AES.GCM_s.supported_iv_LE -> Type0 | let lowstar_compute_iv_t (iv:Ghost.erased supported_iv_LE) =
assert_norm (List.length dom + List.length ([]<:list arg) <= 20);
IX64.as_lowstar_sig_t_weak_stdcall
code_compute_iv
dom
[]
_
_
(W.mk_prediction code_compute_iv dom [] ((compute_iv_lemma iv) code_compute_iv IA.win)) | {
"file_name": "vale/code/arch/x64/interop/Vale.Stdcalls.X64.GCM_IV.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 91,
"end_line": 140,
"start_col": 0,
"start_line": 132
} | module Vale.Stdcalls.X64.GCM_IV
open FStar.HyperStack.ST
module B = LowStar.Buffer
module HS = FStar.HyperStack
open FStar.Mul
module DV = LowStar.BufferView.Down
module UV = LowStar.BufferView.Up
open Vale.Def.Types_s
open Vale.Interop.Base
module IX64 = Vale.Interop.X64
module VSig = Vale.AsLowStar.ValeSig
module ... | {
"checked_file": "/",
"dependencies": [
"Vale.X64.State.fsti.checked",
"Vale.X64.MemoryAdapters.fsti.checked",
"Vale.X64.Memory.fsti.checked",
"Vale.X64.Machine_s.fst.checked",
"Vale.X64.Decls.fsti.checked",
"Vale.Interop.X64.fsti.checked",
"Vale.Interop.Base.fst.checked",
"Vale.Int... | [
{
"abbrev": false,
"full_module": "Vale.AES.GCM_s",
"short_module": null
},
{
"abbrev": true,
"full_module": "Vale.AES.X64.GCMencryptOpt",
"short_module": "GC"
},
{
"abbrev": true,
"full_module": "Vale.X64.Machine_s",
"short_module": "MS"
},
{
"abbrev": true,
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 1,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | iv: FStar.Ghost.erased Vale.AES.GCM_s.supported_iv_LE -> Type0 | Prims.Tot | [
"total"
] | [] | [
"FStar.Ghost.erased",
"Vale.AES.GCM_s.supported_iv_LE",
"Vale.Interop.X64.as_lowstar_sig_t_weak_stdcall",
"Vale.Stdcalls.X64.GCM_IV.code_compute_iv",
"Vale.Stdcalls.X64.GCM_IV.dom",
"Prims.Nil",
"Vale.Interop.Base.arg",
"Vale.AsLowStar.Wrapper.pre_rel_generic",
"Vale.Interop.X64.max_stdcall",
"Val... | [] | false | false | false | true | true | let lowstar_compute_iv_t (iv: Ghost.erased supported_iv_LE) =
| assert_norm (List.length dom + List.length ([] <: list arg) <= 20);
IX64.as_lowstar_sig_t_weak_stdcall code_compute_iv
dom
[]
_
_
(W.mk_prediction code_compute_iv dom [] ((compute_iv_lemma iv) code_compute_iv IA.win)) | false | |
Vale.Stdcalls.X64.GCM_IV.fst | Vale.Stdcalls.X64.GCM_IV.compute_iv_post | val compute_iv_post: (Ghost.erased supported_iv_LE) -> VSig.vale_post dom | val compute_iv_post: (Ghost.erased supported_iv_LE) -> VSig.vale_post dom | let compute_iv_post : (Ghost.erased supported_iv_LE) -> VSig.vale_post dom =
fun (iv:Ghost.erased supported_iv_LE)
(c:V.va_code)
(iv_b:b128)
(num_bytes:uint64)
(len:uint64)
(j0_b:b128)
(iv_extra_b:b128)
(hkeys_b:b128)
(va_s0:V.va_state)
(va_s1:V.va_state)
(f:V.va_fuel) ->
... | {
"file_name": "vale/code/arch/x64/interop/Vale.Stdcalls.X64.GCM_IV.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 15,
"end_line": 84,
"start_col": 0,
"start_line": 68
} | module Vale.Stdcalls.X64.GCM_IV
open FStar.HyperStack.ST
module B = LowStar.Buffer
module HS = FStar.HyperStack
open FStar.Mul
module DV = LowStar.BufferView.Down
module UV = LowStar.BufferView.Up
open Vale.Def.Types_s
open Vale.Interop.Base
module IX64 = Vale.Interop.X64
module VSig = Vale.AsLowStar.ValeSig
module ... | {
"checked_file": "/",
"dependencies": [
"Vale.X64.State.fsti.checked",
"Vale.X64.MemoryAdapters.fsti.checked",
"Vale.X64.Memory.fsti.checked",
"Vale.X64.Machine_s.fst.checked",
"Vale.X64.Decls.fsti.checked",
"Vale.Interop.X64.fsti.checked",
"Vale.Interop.Base.fst.checked",
"Vale.Int... | [
{
"abbrev": false,
"full_module": "Vale.AES.GCM_s",
"short_module": null
},
{
"abbrev": true,
"full_module": "Vale.AES.X64.GCMencryptOpt",
"short_module": "GC"
},
{
"abbrev": true,
"full_module": "Vale.X64.Machine_s",
"short_module": "MS"
},
{
"abbrev": true,
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 1,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | iv: FStar.Ghost.erased Vale.AES.GCM_s.supported_iv_LE
-> Vale.AsLowStar.ValeSig.vale_post Vale.Stdcalls.X64.GCM_IV.dom | Prims.Tot | [
"total"
] | [] | [
"FStar.Ghost.erased",
"Vale.AES.GCM_s.supported_iv_LE",
"Vale.X64.Decls.va_code",
"Vale.Stdcalls.X64.GCM_IV.b128",
"Vale.Stdcalls.X64.GCM_IV.uint64",
"Vale.X64.Decls.va_state",
"Vale.X64.Decls.va_fuel",
"Vale.AES.X64.GCMencryptOpt.va_ens_Compute_iv_stdcall",
"Vale.Interop.Assumptions.win",
"FStar.... | [] | false | false | false | true | false | let compute_iv_post: (Ghost.erased supported_iv_LE) -> VSig.vale_post dom =
| fun
(iv: Ghost.erased supported_iv_LE)
(c: V.va_code)
(iv_b: b128)
(num_bytes: uint64)
(len: uint64)
(j0_b: b128)
(iv_extra_b: b128)
(hkeys_b: b128)
(va_s0: V.va_state)
(va_s1: V.va_state)
(f: V.va_fuel)
->
GC.va_ens_Compute_iv_stdcall c va_s0 IA.win (Ghost.reveal iv) (as_vale_buffer iv_b)
... | false |
Spec.Frodo.Test.fst | Spec.Frodo.Test.test1_sk_expected | val test1_sk_expected : Prims.list Lib.IntTypes.uint8 | let test1_sk_expected =
List.Tot.map u8_from_UInt8
[
0xa6uy; 0x65uy; 0x65uy; 0x9fuy; 0xfbuy; 0xe4uy; 0x06uy; 0x5cuy; 0xcauy; 0x81uy; 0x5auy; 0x45uy;
0xe4uy; 0x94uy; 0xd8uy; 0x01uy; 0x0duy; 0xacuy; 0x6fuy; 0x83uy; 0x94uy; 0x00uy; 0x1auy; 0xcauy;
0x97uy; 0xa1uy; 0xaauy; 0x42uy; 0x80uy; 0x9duy; 0x6... | {
"file_name": "specs/tests/Spec.Frodo.Test.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 3,
"end_line": 433,
"start_col": 0,
"start_line": 260
} | module Spec.Frodo.Test
open FStar.Mul
open Lib.IntTypes
open Lib.RawIntTypes
open Lib.Sequence
open Lib.ByteSequence
open Spec.Frodo.KEM
open Spec.Frodo.KEM.KeyGen
open Spec.Frodo.KEM.Encaps
open Spec.Frodo.KEM.Decaps
open Spec.Frodo.Params
open FStar.All
module PS = Lib.PrintSequence
#set-options "--z3rlimit 50 ... | {
"checked_file": "/",
"dependencies": [
"Spec.Frodo.Params.fst.checked",
"Spec.Frodo.KEM.KeyGen.fst.checked",
"Spec.Frodo.KEM.Encaps.fst.checked",
"Spec.Frodo.KEM.Decaps.fst.checked",
"Spec.Frodo.KEM.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.RawIntTypes.fs... | [
{
"abbrev": true,
"full_module": "Lib.PrintSequence",
"short_module": "PS"
},
{
"abbrev": false,
"full_module": "FStar.All",
"short_module": null
},
{
"abbrev": false,
"full_module": "Spec.Frodo.Params",
"short_module": null
},
{
"abbrev": false,
"full_module"... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | Prims.list Lib.IntTypes.uint8 | Prims.Tot | [
"total"
] | [] | [
"FStar.List.Tot.Base.map",
"FStar.UInt8.t",
"Lib.IntTypes.uint8",
"Lib.RawIntTypes.u8_from_UInt8",
"Prims.Cons",
"FStar.UInt8.__uint_to_t",
"Prims.Nil"
] | [] | false | false | false | true | false | let test1_sk_expected =
| List.Tot.map u8_from_UInt8
[
0xa6uy; 0x65uy; 0x65uy; 0x9fuy; 0xfbuy; 0xe4uy; 0x06uy; 0x5cuy; 0xcauy; 0x81uy; 0x5auy; 0x45uy;
0xe4uy; 0x94uy; 0xd8uy; 0x01uy; 0x0duy; 0xacuy; 0x6fuy; 0x83uy; 0x94uy; 0x00uy; 0x1auy; 0xcauy;
0x97uy; 0xa1uy; 0xaauy; 0x42uy; 0x80uy; 0x9duy; 0x6buy; 0xa5uy; 0xfcuy; 0x64uy; 0x43u... | false | |
FStar.Algebra.CommMonoid.Fold.fsti | FStar.Algebra.CommMonoid.Fold.init_func_from_expr | val init_func_from_expr
(#c: _)
(#n0: int)
(#nk: not_less_than n0)
(expr: ((ifrom_ito n0 nk) -> c))
(a: ifrom_ito n0 nk)
(b: ifrom_ito a nk)
: (counter_for (ifrom_ito a b) -> c) | val init_func_from_expr
(#c: _)
(#n0: int)
(#nk: not_less_than n0)
(expr: ((ifrom_ito n0 nk) -> c))
(a: ifrom_ito n0 nk)
(b: ifrom_ito a nk)
: (counter_for (ifrom_ito a b) -> c) | let init_func_from_expr #c (#n0: int) (#nk: not_less_than n0)
(expr: (ifrom_ito n0 nk) -> c)
(a: ifrom_ito n0 nk) (b: ifrom_ito a nk)
: (counter_for (ifrom_ito a b) -> c)
= fun (i: counter_for (ifrom_ito a b)) -> expr (n0 + i) | {
"file_name": "ulib/FStar.Algebra.CommMonoid.Fold.fsti",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 57,
"end_line": 44,
"start_col": 0,
"start_line": 40
} | (*
Copyright 2008-2022 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 applicabl... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Seq.Properties.fsti.checked",
"FStar.Seq.Permutation.fsti.checked",
"FStar.Seq.Base.fsti.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul.fst.checked",
"FStar.IntegerIntervals.fst.checked",
"FStar.Algebra.CommM... | [
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.IntegerIntervals",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Seq.Permutation",
"short_module": null
},
{
"abbrev": false,
"fu... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
expr: (_: FStar.IntegerIntervals.ifrom_ito n0 nk -> c) ->
a: FStar.IntegerIntervals.ifrom_ito n0 nk ->
b: FStar.IntegerIntervals.ifrom_ito a nk ->
_: FStar.IntegerIntervals.counter_for (FStar.IntegerIntervals.ifrom_ito a b)
-> c | Prims.Tot | [
"total"
] | [] | [
"Prims.int",
"FStar.IntegerIntervals.not_less_than",
"FStar.IntegerIntervals.ifrom_ito",
"FStar.IntegerIntervals.counter_for",
"Prims.op_Addition"
] | [] | false | false | false | false | false | let init_func_from_expr
#c
(#n0: int)
(#nk: not_less_than n0)
(expr: ((ifrom_ito n0 nk) -> c))
(a: ifrom_ito n0 nk)
(b: ifrom_ito a nk)
: (counter_for (ifrom_ito a b) -> c) =
| fun (i: counter_for (ifrom_ito a b)) -> expr (n0 + i) | false |
Hacl.Impl.Curve25519.Generic.fst | Hacl.Impl.Curve25519.Generic.scalar_bit | val scalar_bit:
s:scalar
-> n:size_t{v n < 256}
-> Stack uint64
(requires fun h0 -> live h0 s)
(ensures fun h0 r h1 -> h0 == h1 /\
r == S.ith_bit (as_seq h0 s) (v n) /\ v r <= 1) | val scalar_bit:
s:scalar
-> n:size_t{v n < 256}
-> Stack uint64
(requires fun h0 -> live h0 s)
(ensures fun h0 r h1 -> h0 == h1 /\
r == S.ith_bit (as_seq h0 s) (v n) /\ v r <= 1) | let scalar_bit s n =
let h0 = ST.get () in
mod_mask_lemma ((LSeq.index (as_seq h0 s) (v n / 8)) >>. (n %. 8ul)) 1ul;
assert_norm (1 = pow2 1 - 1);
assert (v (mod_mask #U8 #SEC 1ul) == v (u8 1));
to_u64 ((s.(n /. 8ul) >>. (n %. 8ul)) &. u8 1) | {
"file_name": "code/curve25519/Hacl.Impl.Curve25519.Generic.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 48,
"end_line": 47,
"start_col": 0,
"start_line": 42
} | module Hacl.Impl.Curve25519.Generic
open FStar.HyperStack
open FStar.HyperStack.All
open FStar.Mul
open Lib.IntTypes
open Lib.Buffer
open Lib.ByteBuffer
open Hacl.Impl.Curve25519.Fields
include Hacl.Impl.Curve25519.Finv
include Hacl.Impl.Curve25519.AddAndDouble
module ST = FStar.HyperStack.ST
module BSeq = Lib.Byt... | {
"checked_file": "/",
"dependencies": [
"Spec.Curve25519.fst.checked",
"prims.fst.checked",
"Meta.Attribute.fst.checked",
"LowStar.Monotonic.Buffer.fsti.checked",
"Lib.Sequence.fsti.checked",
"Lib.Loops.fsti.checked",
"Lib.LoopCombinators.fst.checked",
"Lib.IntTypes.fsti.checked",
... | [
{
"abbrev": true,
"full_module": "Hacl.Spec.Curve25519.Field64.Lemmas",
"short_module": "Lemmas"
},
{
"abbrev": true,
"full_module": "Hacl.Spec.Curve25519.AddAndDouble",
"short_module": "M"
},
{
"abbrev": true,
"full_module": "Spec.Curve25519",
"short_module": "S"
},
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | s: Hacl.Impl.Curve25519.Generic.scalar -> n: Lib.IntTypes.size_t{Lib.IntTypes.v n < 256}
-> FStar.HyperStack.ST.Stack Lib.IntTypes.uint64 | FStar.HyperStack.ST.Stack | [] | [] | [
"Hacl.Impl.Curve25519.Generic.scalar",
"Lib.IntTypes.size_t",
"Prims.b2t",
"Prims.op_LessThan",
"Lib.IntTypes.v",
"Lib.IntTypes.U32",
"Lib.IntTypes.PUB",
"Lib.IntTypes.to_u64",
"Lib.IntTypes.U8",
"Lib.IntTypes.SEC",
"Lib.IntTypes.uint64",
"Lib.IntTypes.int_t",
"Prims.l_or",
"Lib.IntTypes.r... | [] | false | true | false | false | false | let scalar_bit s n =
| let h0 = ST.get () in
mod_mask_lemma ((LSeq.index (as_seq h0 s) (v n / 8)) >>. (n %. 8ul)) 1ul;
assert_norm (1 = pow2 1 - 1);
assert (v (mod_mask #U8 #SEC 1ul) == v (u8 1));
to_u64 ((s.(n /. 8ul) >>. (n %. 8ul)) &. u8 1) | false |
Vale.Stdcalls.X64.GCM_IV.fst | Vale.Stdcalls.X64.GCM_IV.compute_iv_lemma | val compute_iv_lemma : iv: FStar.Ghost.erased Vale.AES.GCM_s.supported_iv_LE
-> Vale.AsLowStar.ValeSig.vale_sig_stdcall (Vale.Stdcalls.X64.GCM_IV.compute_iv_pre iv)
(Vale.Stdcalls.X64.GCM_IV.compute_iv_post iv) | let compute_iv_lemma (iv:Ghost.erased supported_iv_LE) = as_t
#(VSig.vale_sig_stdcall (compute_iv_pre iv) (compute_iv_post iv))
(compute_iv_lemma' iv) | {
"file_name": "vale/code/arch/x64/interop/Vale.Stdcalls.X64.GCM_IV.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 25,
"end_line": 124,
"start_col": 0,
"start_line": 122
} | module Vale.Stdcalls.X64.GCM_IV
open FStar.HyperStack.ST
module B = LowStar.Buffer
module HS = FStar.HyperStack
open FStar.Mul
module DV = LowStar.BufferView.Down
module UV = LowStar.BufferView.Up
open Vale.Def.Types_s
open Vale.Interop.Base
module IX64 = Vale.Interop.X64
module VSig = Vale.AsLowStar.ValeSig
module ... | {
"checked_file": "/",
"dependencies": [
"Vale.X64.State.fsti.checked",
"Vale.X64.MemoryAdapters.fsti.checked",
"Vale.X64.Memory.fsti.checked",
"Vale.X64.Machine_s.fst.checked",
"Vale.X64.Decls.fsti.checked",
"Vale.Interop.X64.fsti.checked",
"Vale.Interop.Base.fst.checked",
"Vale.Int... | [
{
"abbrev": false,
"full_module": "Vale.AES.GCM_s",
"short_module": null
},
{
"abbrev": true,
"full_module": "Vale.AES.X64.GCMencryptOpt",
"short_module": "GC"
},
{
"abbrev": true,
"full_module": "Vale.X64.Machine_s",
"short_module": "MS"
},
{
"abbrev": true,
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 1,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | iv: FStar.Ghost.erased Vale.AES.GCM_s.supported_iv_LE
-> Vale.AsLowStar.ValeSig.vale_sig_stdcall (Vale.Stdcalls.X64.GCM_IV.compute_iv_pre iv)
(Vale.Stdcalls.X64.GCM_IV.compute_iv_post iv) | Prims.Tot | [
"total"
] | [] | [
"FStar.Ghost.erased",
"Vale.AES.GCM_s.supported_iv_LE",
"Vale.Stdcalls.X64.GCM_IV.as_t",
"Vale.AsLowStar.ValeSig.vale_sig_stdcall",
"Vale.Stdcalls.X64.GCM_IV.dom",
"Vale.Stdcalls.X64.GCM_IV.compute_iv_pre",
"Vale.Stdcalls.X64.GCM_IV.compute_iv_post",
"Vale.Stdcalls.X64.GCM_IV.compute_iv_lemma'"
] | [] | false | false | false | false | false | let compute_iv_lemma (iv: Ghost.erased supported_iv_LE) =
| as_t #(VSig.vale_sig_stdcall (compute_iv_pre iv) (compute_iv_post iv)) (compute_iv_lemma' iv) | false | |
Hacl.P256.PrecompTable.fst | Hacl.P256.PrecompTable.precomp_g_pow2_192_table_lseq_w4 | val precomp_g_pow2_192_table_lseq_w4 : LSeq.lseq uint64 192 | val precomp_g_pow2_192_table_lseq_w4 : LSeq.lseq uint64 192 | let precomp_g_pow2_192_table_lseq_w4 : LSeq.lseq uint64 192 =
normalize_term_spec (SPT.precomp_base_table_list mk_p256_precomp_base_table proj_g_pow2_192 15);
Seq.seq_of_list precomp_g_pow2_192_table_list_w4 | {
"file_name": "code/ecdsap256/Hacl.P256.PrecompTable.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 50,
"end_line": 266,
"start_col": 0,
"start_line": 264
} | module Hacl.P256.PrecompTable
open FStar.HyperStack
open FStar.HyperStack.ST
open FStar.Mul
open Lib.IntTypes
open Lib.Buffer
module ST = FStar.HyperStack.ST
module LSeq = Lib.Sequence
module LE = Lib.Exponentiation
module SE = Spec.Exponentiation
module SPT = Hacl.Spec.PrecompBaseTable
module SPT256 = Hacl.Spec.Pr... | {
"checked_file": "/",
"dependencies": [
"Spec.P256.Lemmas.fsti.checked",
"Spec.P256.fst.checked",
"Spec.Exponentiation.fsti.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.Exponentiation.fsti.checked",
"Lib.Buffer.fsti.checked",
"Hac... | [
{
"abbrev": true,
"full_module": "Spec.P256.Lemmas",
"short_module": "SL"
},
{
"abbrev": true,
"full_module": "Hacl.Spec.P256.PrecompTable",
"short_module": "SPTK"
},
{
"abbrev": true,
"full_module": "Hacl.Spec.PrecompBaseTable256",
"short_module": "SPT256"
},
{
"... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 0,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | Lib.Sequence.lseq Lib.IntTypes.uint64 192 | Prims.Tot | [
"total"
] | [] | [
"FStar.Seq.Base.seq_of_list",
"Lib.IntTypes.int_t",
"Lib.IntTypes.U64",
"Lib.IntTypes.SEC",
"Hacl.P256.PrecompTable.precomp_g_pow2_192_table_list_w4",
"Prims.unit",
"FStar.Pervasives.normalize_term_spec",
"Prims.list",
"Lib.IntTypes.uint_t",
"Prims.b2t",
"Prims.op_Equality",
"Prims.int",
"FS... | [] | false | false | false | false | false | let precomp_g_pow2_192_table_lseq_w4:LSeq.lseq uint64 192 =
| normalize_term_spec (SPT.precomp_base_table_list mk_p256_precomp_base_table proj_g_pow2_192 15);
Seq.seq_of_list precomp_g_pow2_192_table_list_w4 | false |
LowParse.SLow.IfThenElse.fst | LowParse.SLow.IfThenElse.serialize32_ifthenelse | val serialize32_ifthenelse
(#p: parse_ifthenelse_param)
(s:
serialize_ifthenelse_param p
{ let tk = p.parse_ifthenelse_tag_kind in
tk.parser_kind_subkind == Some ParserStrong /\ Some? tk.parser_kind_high /\
Some? (dfst (p.parse_ifthenelse_payload_parser true... | val serialize32_ifthenelse
(#p: parse_ifthenelse_param)
(s:
serialize_ifthenelse_param p
{ let tk = p.parse_ifthenelse_tag_kind in
tk.parser_kind_subkind == Some ParserStrong /\ Some? tk.parser_kind_high /\
Some? (dfst (p.parse_ifthenelse_payload_parser true... | let serialize32_ifthenelse
(#p: parse_ifthenelse_param)
(s: serialize_ifthenelse_param p {
let tk = p.parse_ifthenelse_tag_kind in
tk.parser_kind_subkind == Some ParserStrong /\
Some? tk.parser_kind_high /\
Some? (dfst (p.parse_ifthenelse_payload_parser true)).parser_kind_high /\
Some? (dfst (p.... | {
"file_name": "src/lowparse/LowParse.SLow.IfThenElse.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 76,
"end_line": 68,
"start_col": 0,
"start_line": 40
} | module LowParse.SLow.IfThenElse
include LowParse.Spec.IfThenElse
include LowParse.SLow.Combinators
module B32 = LowParse.Bytes32
module U32 = FStar.UInt32
inline_for_extraction
let parse32_ifthenelse
(p: parse_ifthenelse_param)
(pt32: parser32 p.parse_ifthenelse_tag_parser)
(b32: (t: p.parse_ifthenelse_tag_t) -... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowParse.Spec.IfThenElse.fst.checked",
"LowParse.SLow.Combinators.fst.checked",
"LowParse.Bytes32.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked"
],
"inter... | [
{
"abbrev": true,
"full_module": "FStar.UInt32",
"short_module": "U32"
},
{
"abbrev": true,
"full_module": "LowParse.Bytes32",
"short_module": "B32"
},
{
"abbrev": false,
"full_module": "LowParse.SLow.Combinators",
"short_module": null
},
{
"abbrev": false,
"f... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
s:
LowParse.Spec.IfThenElse.serialize_ifthenelse_param p
{ let tk = Mkparse_ifthenelse_param?.parse_ifthenelse_tag_kind p in
Mkparser_kind'?.parser_kind_subkind tk ==
FStar.Pervasives.Native.Some LowParse.Spec.Base.ParserStrong /\
Some? (Mkparser_kind'?.parser_kind_high ... | Prims.Tot | [
"total"
] | [] | [
"LowParse.Spec.IfThenElse.parse_ifthenelse_param",
"LowParse.Spec.IfThenElse.serialize_ifthenelse_param",
"Prims.l_and",
"Prims.eq2",
"FStar.Pervasives.Native.option",
"LowParse.Spec.Base.parser_subkind",
"LowParse.Spec.Base.__proj__Mkparser_kind'__item__parser_kind_subkind",
"FStar.Pervasives.Native.... | [] | false | false | false | false | false | let serialize32_ifthenelse
(#p: parse_ifthenelse_param)
(s:
serialize_ifthenelse_param p
{ let tk = p.parse_ifthenelse_tag_kind in
tk.parser_kind_subkind == Some ParserStrong /\ Some? tk.parser_kind_high /\
Some? (dfst (p.parse_ifthenelse_payload_parser true... | fun (input: p.parse_ifthenelse_t) ->
((let t = syntt input in
let st = st32 t in
let b = b32 t in
if b
then
let y = syntp true input in
B32.append st (sp32 true y)
else
let y = syntp false input in
B32.append st (sp32 false y))
<:
(res: _{serialize... | false |
Hacl.Impl.Curve25519.Generic.fst | Hacl.Impl.Curve25519.Generic.ecdh | val ecdh: (#s:field_spec) -> ecdh_st s True | val ecdh: (#s:field_spec) -> ecdh_st s True | let ecdh #s out priv pub =
push_frame ();
let zeros = create 32ul (u8 0) in
scalarmult #s out priv pub;
let r = lbytes_eq #32ul out zeros in
pop_frame();
not r | {
"file_name": "code/curve25519/Hacl.Impl.Curve25519.Generic.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 7,
"end_line": 501,
"start_col": 0,
"start_line": 495
} | module Hacl.Impl.Curve25519.Generic
open FStar.HyperStack
open FStar.HyperStack.All
open FStar.Mul
open Lib.IntTypes
open Lib.Buffer
open Lib.ByteBuffer
open Hacl.Impl.Curve25519.Fields
include Hacl.Impl.Curve25519.Finv
include Hacl.Impl.Curve25519.AddAndDouble
module ST = FStar.HyperStack.ST
module BSeq = Lib.Byt... | {
"checked_file": "/",
"dependencies": [
"Spec.Curve25519.fst.checked",
"prims.fst.checked",
"Meta.Attribute.fst.checked",
"LowStar.Monotonic.Buffer.fsti.checked",
"Lib.Sequence.fsti.checked",
"Lib.Loops.fsti.checked",
"Lib.LoopCombinators.fst.checked",
"Lib.IntTypes.fsti.checked",
... | [
{
"abbrev": true,
"full_module": "Hacl.Spec.Curve25519.Field64.Lemmas",
"short_module": "Lemmas"
},
{
"abbrev": true,
"full_module": "Hacl.Spec.Curve25519.AddAndDouble",
"short_module": "M"
},
{
"abbrev": true,
"full_module": "Spec.Curve25519",
"short_module": "S"
},
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | Hacl.Impl.Curve25519.Generic.ecdh_st s Prims.l_True | Prims.Tot | [
"total"
] | [] | [
"Hacl.Impl.Curve25519.Fields.Core.field_spec",
"Lib.Buffer.lbuffer",
"Lib.IntTypes.uint8",
"FStar.UInt32.__uint_to_t",
"Prims.op_Negation",
"Prims.bool",
"Prims.unit",
"FStar.HyperStack.ST.pop_frame",
"Lib.ByteBuffer.lbytes_eq",
"Hacl.Impl.Curve25519.Generic.scalarmult",
"Lib.Buffer.lbuffer_t",
... | [] | false | false | false | false | false | let ecdh #s out priv pub =
| push_frame ();
let zeros = create 32ul (u8 0) in
scalarmult #s out priv pub;
let r = lbytes_eq #32ul out zeros in
pop_frame ();
not r | false |
LowParse.SLow.IfThenElse.fst | LowParse.SLow.IfThenElse.size32_ifthenelse | val size32_ifthenelse
(#p: parse_ifthenelse_param)
(s:
serialize_ifthenelse_param p
{ let tk = p.parse_ifthenelse_tag_kind in
tk.parser_kind_subkind == Some ParserStrong /\ Some? tk.parser_kind_high /\
Some? (dfst (p.parse_ifthenelse_payload_parser true)).pa... | val size32_ifthenelse
(#p: parse_ifthenelse_param)
(s:
serialize_ifthenelse_param p
{ let tk = p.parse_ifthenelse_tag_kind in
tk.parser_kind_subkind == Some ParserStrong /\ Some? tk.parser_kind_high /\
Some? (dfst (p.parse_ifthenelse_payload_parser true)).pa... | let size32_ifthenelse
(#p: parse_ifthenelse_param)
(s: serialize_ifthenelse_param p {
let tk = p.parse_ifthenelse_tag_kind in
tk.parser_kind_subkind == Some ParserStrong /\
Some? tk.parser_kind_high /\
Some? (dfst (p.parse_ifthenelse_payload_parser true)).parser_kind_high /\
Some? (dfst (p.parse... | {
"file_name": "src/lowparse/LowParse.SLow.IfThenElse.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 71,
"end_line": 99,
"start_col": 0,
"start_line": 71
} | module LowParse.SLow.IfThenElse
include LowParse.Spec.IfThenElse
include LowParse.SLow.Combinators
module B32 = LowParse.Bytes32
module U32 = FStar.UInt32
inline_for_extraction
let parse32_ifthenelse
(p: parse_ifthenelse_param)
(pt32: parser32 p.parse_ifthenelse_tag_parser)
(b32: (t: p.parse_ifthenelse_tag_t) -... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowParse.Spec.IfThenElse.fst.checked",
"LowParse.SLow.Combinators.fst.checked",
"LowParse.Bytes32.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked"
],
"inter... | [
{
"abbrev": true,
"full_module": "FStar.UInt32",
"short_module": "U32"
},
{
"abbrev": true,
"full_module": "LowParse.Bytes32",
"short_module": "B32"
},
{
"abbrev": false,
"full_module": "LowParse.SLow.Combinators",
"short_module": null
},
{
"abbrev": false,
"f... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
s:
LowParse.Spec.IfThenElse.serialize_ifthenelse_param p
{ let tk = Mkparse_ifthenelse_param?.parse_ifthenelse_tag_kind p in
Mkparser_kind'?.parser_kind_subkind tk ==
FStar.Pervasives.Native.Some LowParse.Spec.Base.ParserStrong /\
Some? (Mkparser_kind'?.parser_kind_high ... | Prims.Tot | [
"total"
] | [] | [
"LowParse.Spec.IfThenElse.parse_ifthenelse_param",
"LowParse.Spec.IfThenElse.serialize_ifthenelse_param",
"Prims.l_and",
"Prims.eq2",
"FStar.Pervasives.Native.option",
"LowParse.Spec.Base.parser_subkind",
"LowParse.Spec.Base.__proj__Mkparser_kind'__item__parser_kind_subkind",
"FStar.Pervasives.Native.... | [] | false | false | false | false | false | let size32_ifthenelse
(#p: parse_ifthenelse_param)
(s:
serialize_ifthenelse_param p
{ let tk = p.parse_ifthenelse_tag_kind in
tk.parser_kind_subkind == Some ParserStrong /\ Some? tk.parser_kind_high /\
Some? (dfst (p.parse_ifthenelse_payload_parser true)).pa... | fun (input: p.parse_ifthenelse_t) ->
((let t = syntt input in
let st = st32 t in
let b = b32 t in
if b
then
let y = syntp true input in
U32.add st (sp32 true y)
else
let y = syntp false input in
U32.add st (sp32 false y))
<:
(res: _{size32_postcond... | false |
LowParse.SLow.IfThenElse.fst | LowParse.SLow.IfThenElse.parse32_ifthenelse | val parse32_ifthenelse
(p: parse_ifthenelse_param)
(pt32: parser32 p.parse_ifthenelse_tag_parser)
(b32: (t: p.parse_ifthenelse_tag_t -> Tot (b: bool{b == p.parse_ifthenelse_tag_cond t})))
(pp32: (b: bool -> Tot (parser32 (dsnd (p.parse_ifthenelse_payload_parser b)))))
(synt:
(
... | val parse32_ifthenelse
(p: parse_ifthenelse_param)
(pt32: parser32 p.parse_ifthenelse_tag_parser)
(b32: (t: p.parse_ifthenelse_tag_t -> Tot (b: bool{b == p.parse_ifthenelse_tag_cond t})))
(pp32: (b: bool -> Tot (parser32 (dsnd (p.parse_ifthenelse_payload_parser b)))))
(synt:
(
... | let parse32_ifthenelse
(p: parse_ifthenelse_param)
(pt32: parser32 p.parse_ifthenelse_tag_parser)
(b32: (t: p.parse_ifthenelse_tag_t) -> Tot (b: bool { b == p.parse_ifthenelse_tag_cond t } ))
(pp32: (b: bool) -> Tot (parser32 (dsnd (p.parse_ifthenelse_payload_parser b))))
(synt: (b: bool) -> (t: p.parse_ifthe... | {
"file_name": "src/lowparse/LowParse.SLow.IfThenElse.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 3,
"end_line": 37,
"start_col": 0,
"start_line": 9
} | module LowParse.SLow.IfThenElse
include LowParse.Spec.IfThenElse
include LowParse.SLow.Combinators
module B32 = LowParse.Bytes32
module U32 = FStar.UInt32 | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowParse.Spec.IfThenElse.fst.checked",
"LowParse.SLow.Combinators.fst.checked",
"LowParse.Bytes32.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked"
],
"inter... | [
{
"abbrev": true,
"full_module": "FStar.UInt32",
"short_module": "U32"
},
{
"abbrev": true,
"full_module": "LowParse.Bytes32",
"short_module": "B32"
},
{
"abbrev": false,
"full_module": "LowParse.SLow.Combinators",
"short_module": null
},
{
"abbrev": false,
"f... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
p: LowParse.Spec.IfThenElse.parse_ifthenelse_param ->
pt32: LowParse.SLow.Base.parser32 (Mkparse_ifthenelse_param?.parse_ifthenelse_tag_parser p) ->
b32:
(t: Mkparse_ifthenelse_param?.parse_ifthenelse_tag_t p
-> b: Prims.bool{b == Mkparse_ifthenelse_param?.parse_ifthenelse_tag_cond p t}) ->... | Prims.Tot | [
"total"
] | [] | [
"LowParse.Spec.IfThenElse.parse_ifthenelse_param",
"LowParse.SLow.Base.parser32",
"LowParse.Spec.IfThenElse.__proj__Mkparse_ifthenelse_param__item__parse_ifthenelse_tag_kind",
"LowParse.Spec.IfThenElse.__proj__Mkparse_ifthenelse_param__item__parse_ifthenelse_tag_t",
"LowParse.Spec.IfThenElse.__proj__Mkparse... | [] | false | false | false | false | false | let parse32_ifthenelse
(p: parse_ifthenelse_param)
(pt32: parser32 p.parse_ifthenelse_tag_parser)
(b32: (t: p.parse_ifthenelse_tag_t -> Tot (b: bool{b == p.parse_ifthenelse_tag_cond t})))
(pp32: (b: bool -> Tot (parser32 (dsnd (p.parse_ifthenelse_payload_parser b)))))
(synt:
(
... | fun input ->
(([@@ inline_let ]let _ = parse_ifthenelse_eq p (B32.reveal input) in
match pt32 input with
| None -> None
| Some (t, consumed_t) ->
let b = b32 t in
let input' = B32.slice input consumed_t (B32.len input) in
if b
then
match pp32 true input' wit... | false |
Hacl.Impl.Curve25519.Generic.fst | Hacl.Impl.Curve25519.Generic.secret_to_public | val secret_to_public (#s:field_spec) (g25519: g25519_t): secret_to_public_st s True | val secret_to_public (#s:field_spec) (g25519: g25519_t): secret_to_public_st s True | let secret_to_public #s g25519 pub priv =
push_frame ();
recall_contents g25519 S.basepoint_lseq;
let basepoint = create 32ul (u8 0) in
mapT 32ul basepoint secret g25519;
scalarmult #s pub priv basepoint;
pop_frame() | {
"file_name": "code/curve25519/Hacl.Impl.Curve25519.Generic.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 13,
"end_line": 491,
"start_col": 0,
"start_line": 485
} | module Hacl.Impl.Curve25519.Generic
open FStar.HyperStack
open FStar.HyperStack.All
open FStar.Mul
open Lib.IntTypes
open Lib.Buffer
open Lib.ByteBuffer
open Hacl.Impl.Curve25519.Fields
include Hacl.Impl.Curve25519.Finv
include Hacl.Impl.Curve25519.AddAndDouble
module ST = FStar.HyperStack.ST
module BSeq = Lib.Byt... | {
"checked_file": "/",
"dependencies": [
"Spec.Curve25519.fst.checked",
"prims.fst.checked",
"Meta.Attribute.fst.checked",
"LowStar.Monotonic.Buffer.fsti.checked",
"Lib.Sequence.fsti.checked",
"Lib.Loops.fsti.checked",
"Lib.LoopCombinators.fst.checked",
"Lib.IntTypes.fsti.checked",
... | [
{
"abbrev": true,
"full_module": "Hacl.Spec.Curve25519.Field64.Lemmas",
"short_module": "Lemmas"
},
{
"abbrev": true,
"full_module": "Hacl.Spec.Curve25519.AddAndDouble",
"short_module": "M"
},
{
"abbrev": true,
"full_module": "Spec.Curve25519",
"short_module": "S"
},
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | g25519: Hacl.Impl.Curve25519.Generic.g25519_t
-> Hacl.Impl.Curve25519.Generic.secret_to_public_st s Prims.l_True | Prims.Tot | [
"total"
] | [] | [
"Hacl.Impl.Curve25519.Fields.Core.field_spec",
"Hacl.Impl.Curve25519.Generic.g25519_t",
"Lib.Buffer.lbuffer",
"Lib.IntTypes.uint8",
"FStar.UInt32.__uint_to_t",
"FStar.HyperStack.ST.pop_frame",
"Prims.unit",
"Hacl.Impl.Curve25519.Generic.scalarmult",
"Lib.Buffer.mapT",
"Lib.Buffer.CONST",
"Lib.In... | [] | false | false | false | false | false | let secret_to_public #s g25519 pub priv =
| push_frame ();
recall_contents g25519 S.basepoint_lseq;
let basepoint = create 32ul (u8 0) in
mapT 32ul basepoint secret g25519;
scalarmult #s pub priv basepoint;
pop_frame () | false |
LowParse.Spec.DER.fsti | LowParse.Spec.DER.der_length_max | val der_length_max:nat | val der_length_max:nat | let der_length_max : nat = 27430620343968443416279681255936046350371963179661660350560009942280986908798364735825878497681813968066423626689360558724790919313723239516120518591228351498072493503550031322677950988959670123207562706311798975957969769644540844951463792501957281061302262982877547949210700369030718430303246... | {
"file_name": "src/lowparse/LowParse.Spec.DER.fsti",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 331,
"end_line": 15,
"start_col": 0,
"start_line": 15
} | module LowParse.Spec.DER
include LowParse.Spec.Int
include LowParse.Spec.BoundedInt
open FStar.Mul
module U8 = FStar.UInt8
module UInt = FStar.UInt
module Seq = FStar.Seq
module Math = LowParse.Math
module Cast = FStar.Int.Cast
#reset-options "--z3cliopt smt.arith.nl=false --max_fuel 0 --max_ifuel 0" | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowParse.Spec.Int.fsti.checked",
"LowParse.Spec.BoundedInt.fsti.checked",
"LowParse.Math.fst.checked",
"FStar.UInt8.fsti.checked",
"FStar.UInt32.fsti.checked",
"FStar.UInt.fsti.checked",
"FStar.Seq.fst.checked",
"FSta... | [
{
"abbrev": true,
"full_module": "FStar.Int.Cast",
"short_module": "Cast"
},
{
"abbrev": true,
"full_module": "LowParse.Math",
"short_module": "Math"
},
{
"abbrev": true,
"full_module": "FStar.Seq",
"short_module": "Seq"
},
{
"abbrev": true,
"full_module": "FS... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | Prims.nat | Prims.Tot | [
"total"
] | [] | [] | [] | false | false | false | true | false | let der_length_max:nat =
| 2743062034396844341627968125593604635037196317966166035056000994228098690879836473582587849768181396806642362668936055872479091931372323951612051859122835149807249350355003132267795098895967012320756270631179897595796976964454084495146379250195728106130226298287754794921070036903071843030324651025760255 | false |
LowParse.Spec.DER.fsti | LowParse.Spec.DER.der_length_t | val der_length_t : Type0 | let der_length_t = (x: nat { x <= der_length_max }) | {
"file_name": "src/lowparse/LowParse.Spec.DER.fsti",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 51,
"end_line": 23,
"start_col": 0,
"start_line": 23
} | module LowParse.Spec.DER
include LowParse.Spec.Int
include LowParse.Spec.BoundedInt
open FStar.Mul
module U8 = FStar.UInt8
module UInt = FStar.UInt
module Seq = FStar.Seq
module Math = LowParse.Math
module Cast = FStar.Int.Cast
#reset-options "--z3cliopt smt.arith.nl=false --max_fuel 0 --max_ifuel 0"
let der_length... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowParse.Spec.Int.fsti.checked",
"LowParse.Spec.BoundedInt.fsti.checked",
"LowParse.Math.fst.checked",
"FStar.UInt8.fsti.checked",
"FStar.UInt32.fsti.checked",
"FStar.UInt.fsti.checked",
"FStar.Seq.fst.checked",
"FSta... | [
{
"abbrev": true,
"full_module": "FStar.Seq",
"short_module": "Seq"
},
{
"abbrev": true,
"full_module": "FStar.Endianness",
"short_module": "E"
},
{
"abbrev": true,
"full_module": "LowParse.Math",
"short_module": "Math"
},
{
"abbrev": true,
"full_module": "FSt... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | Type0 | Prims.Tot | [
"total"
] | [] | [
"Prims.nat",
"Prims.b2t",
"Prims.op_LessThanOrEqual",
"LowParse.Spec.DER.der_length_max"
] | [] | false | false | false | true | true | let der_length_t =
| (x: nat{x <= der_length_max}) | false | |
Steel.ST.Array.Util.fst | Steel.ST.Array.Util.forall_cond | val forall_cond:
#a: Type0 ->
n: US.t ->
arr: A.array a ->
p: (a -> bool) ->
r: R.ref US.t ->
perm: perm ->
s: G.erased (Seq.seq a) ->
squash (Seq.length s == US.v n) ->
unit
-> STT bool (exists_ (forall_inv n arr p r perm s ())) (forall_inv n arr p r perm s ()) | val forall_cond:
#a: Type0 ->
n: US.t ->
arr: A.array a ->
p: (a -> bool) ->
r: R.ref US.t ->
perm: perm ->
s: G.erased (Seq.seq a) ->
squash (Seq.length s == US.v n) ->
unit
-> STT bool (exists_ (forall_inv n arr p r perm s ())) (forall_inv n arr p r perm s ()) | let forall_cond
(#a:Type0)
(n:US.t)
(arr:A.array a)
(p:a -> bool)
(r:R.ref US.t)
(perm:perm)
(s:G.erased (Seq.seq a))
(_:squash (Seq.length s == US.v n))
: unit ->
STT bool
(exists_ (forall_inv n arr p r perm s ()))
(forall_inv n arr p r perm s ())
= fun _ ->
let _ = elim_exi... | {
"file_name": "lib/steel/Steel.ST.Array.Util.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 14,
"end_line": 190,
"start_col": 0,
"start_line": 161
} | (*
Copyright 2021 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to... | {
"checked_file": "/",
"dependencies": [
"Steel.ST.Util.fsti.checked",
"Steel.ST.Reference.fsti.checked",
"Steel.ST.Loops.fsti.checked",
"Steel.ST.Effect.fsti.checked",
"Steel.ST.Array.fsti.checked",
"Steel.FractionalPermission.fst.checked",
"prims.fst.checked",
"FStar.SizeT.fsti.che... | [
{
"abbrev": false,
"full_module": "Steel.ST.Util",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel.ST.Effect",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel.FractionalPermission",
"short_module": null
},
{
"abbrev": true,
"f... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
n: FStar.SizeT.t ->
arr: Steel.ST.Array.array a ->
p: (_: a -> Prims.bool) ->
r: Steel.ST.Reference.ref FStar.SizeT.t ->
perm: Steel.FractionalPermission.perm ->
s: FStar.Ghost.erased (FStar.Seq.Base.seq a) ->
_: Prims.squash (FStar.Seq.Base.length (FStar.Ghost.reveal s) == FStar.SizeT.v n)... | Steel.ST.Effect.STT | [] | [] | [
"FStar.SizeT.t",
"Steel.ST.Array.array",
"Prims.bool",
"Steel.ST.Reference.ref",
"Steel.FractionalPermission.perm",
"FStar.Ghost.erased",
"FStar.Seq.Base.seq",
"Prims.squash",
"Prims.eq2",
"Prims.nat",
"FStar.Seq.Base.length",
"FStar.Ghost.reveal",
"FStar.SizeT.v",
"Prims.unit",
"Steel.S... | [] | false | true | false | false | false | let forall_cond
(#a: Type0)
(n: US.t)
(arr: A.array a)
(p: (a -> bool))
(r: R.ref US.t)
(perm: perm)
(s: G.erased (Seq.seq a))
(_: squash (Seq.length s == US.v n))
: unit -> STT bool (exists_ (forall_inv n arr p r perm s ())) (forall_inv n arr p r perm s ()) =
| fun _ ->
let _ = elim_exists () in
let _ = elim_exists () in
elim_pure _;
elim_pure _;
let i = R.read r in
let b = i = n in
let res =
if b
then return false
else
let elt = A.read arr i in
return (p elt)
in
intro_pure (forall_pure_inv n p s () i);
intro_pure (forall_pure_inv_b... | false |
LowParse.Spec.DER.fsti | LowParse.Spec.DER.der_length_payload_size | val der_length_payload_size (x: der_length_t) : Tot (y: nat{y <= 126}) | val der_length_payload_size (x: der_length_t) : Tot (y: nat{y <= 126}) | let der_length_payload_size
(x: der_length_t)
: Tot (y: nat { y <= 126 })
= der_length_payload_size_of_tag (tag_of_der_length x) | {
"file_name": "src/lowparse/LowParse.Spec.DER.fsti",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 54,
"end_line": 86,
"start_col": 0,
"start_line": 83
} | module LowParse.Spec.DER
include LowParse.Spec.Int
include LowParse.Spec.BoundedInt
open FStar.Mul
module U8 = FStar.UInt8
module UInt = FStar.UInt
module Seq = FStar.Seq
module Math = LowParse.Math
module Cast = FStar.Int.Cast
#reset-options "--z3cliopt smt.arith.nl=false --max_fuel 0 --max_ifuel 0"
let der_length... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowParse.Spec.Int.fsti.checked",
"LowParse.Spec.BoundedInt.fsti.checked",
"LowParse.Math.fst.checked",
"FStar.UInt8.fsti.checked",
"FStar.UInt32.fsti.checked",
"FStar.UInt.fsti.checked",
"FStar.Seq.fst.checked",
"FSta... | [
{
"abbrev": true,
"full_module": "FStar.Seq",
"short_module": "Seq"
},
{
"abbrev": true,
"full_module": "FStar.Endianness",
"short_module": "E"
},
{
"abbrev": true,
"full_module": "LowParse.Math",
"short_module": "Math"
},
{
"abbrev": true,
"full_module": "FSt... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | x: LowParse.Spec.DER.der_length_t -> y: Prims.nat{y <= 126} | Prims.Tot | [
"total"
] | [] | [
"LowParse.Spec.DER.der_length_t",
"LowParse.Spec.DER.der_length_payload_size_of_tag",
"LowParse.Spec.DER.tag_of_der_length",
"Prims.nat",
"Prims.b2t",
"Prims.op_LessThanOrEqual"
] | [] | false | false | false | false | false | let der_length_payload_size (x: der_length_t) : Tot (y: nat{y <= 126}) =
| der_length_payload_size_of_tag (tag_of_der_length x) | false |
LowParse.Spec.DER.fsti | LowParse.Spec.DER.parse_der_length_payload_kind | val parse_der_length_payload_kind (x: U8.t) : Tot parser_kind | val parse_der_length_payload_kind (x: U8.t) : Tot parser_kind | let parse_der_length_payload_kind (x: U8.t) : Tot parser_kind =
let len = der_length_payload_size_of_tag x in
strong_parser_kind len len None | {
"file_name": "src/lowparse/LowParse.Spec.DER.fsti",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 33,
"end_line": 68,
"start_col": 0,
"start_line": 66
} | module LowParse.Spec.DER
include LowParse.Spec.Int
include LowParse.Spec.BoundedInt
open FStar.Mul
module U8 = FStar.UInt8
module UInt = FStar.UInt
module Seq = FStar.Seq
module Math = LowParse.Math
module Cast = FStar.Int.Cast
#reset-options "--z3cliopt smt.arith.nl=false --max_fuel 0 --max_ifuel 0"
let der_length... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowParse.Spec.Int.fsti.checked",
"LowParse.Spec.BoundedInt.fsti.checked",
"LowParse.Math.fst.checked",
"FStar.UInt8.fsti.checked",
"FStar.UInt32.fsti.checked",
"FStar.UInt.fsti.checked",
"FStar.Seq.fst.checked",
"FSta... | [
{
"abbrev": true,
"full_module": "FStar.Seq",
"short_module": "Seq"
},
{
"abbrev": true,
"full_module": "FStar.Endianness",
"short_module": "E"
},
{
"abbrev": true,
"full_module": "LowParse.Math",
"short_module": "Math"
},
{
"abbrev": true,
"full_module": "FSt... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | x: FStar.UInt8.t -> LowParse.Spec.Base.parser_kind | Prims.Tot | [
"total"
] | [] | [
"FStar.UInt8.t",
"LowParse.Spec.Base.strong_parser_kind",
"FStar.Pervasives.Native.None",
"LowParse.Spec.Base.parser_kind_metadata_some",
"Prims.nat",
"Prims.b2t",
"Prims.op_LessThanOrEqual",
"LowParse.Spec.DER.der_length_payload_size_of_tag",
"LowParse.Spec.Base.parser_kind"
] | [] | false | false | false | true | false | let parse_der_length_payload_kind (x: U8.t) : Tot parser_kind =
| let len = der_length_payload_size_of_tag x in
strong_parser_kind len len None | false |
LowParse.Spec.DER.fsti | LowParse.Spec.DER.tag_of_der_length32 | val tag_of_der_length32 (x: U32.t) : GTot U8.t | val tag_of_der_length32 (x: U32.t) : GTot U8.t | let tag_of_der_length32
(x: U32.t)
: GTot U8.t
= let _ = assert_norm (pow2 32 - 1 <= der_length_max) in
tag_of_der_length (U32.v x) | {
"file_name": "src/lowparse/LowParse.Spec.DER.fsti",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 29,
"end_line": 102,
"start_col": 0,
"start_line": 98
} | module LowParse.Spec.DER
include LowParse.Spec.Int
include LowParse.Spec.BoundedInt
open FStar.Mul
module U8 = FStar.UInt8
module UInt = FStar.UInt
module Seq = FStar.Seq
module Math = LowParse.Math
module Cast = FStar.Int.Cast
#reset-options "--z3cliopt smt.arith.nl=false --max_fuel 0 --max_ifuel 0"
let der_length... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowParse.Spec.Int.fsti.checked",
"LowParse.Spec.BoundedInt.fsti.checked",
"LowParse.Math.fst.checked",
"FStar.UInt8.fsti.checked",
"FStar.UInt32.fsti.checked",
"FStar.UInt.fsti.checked",
"FStar.Seq.fst.checked",
"FSta... | [
{
"abbrev": true,
"full_module": "FStar.UInt32",
"short_module": "U32"
},
{
"abbrev": true,
"full_module": "FStar.Seq",
"short_module": "Seq"
},
{
"abbrev": true,
"full_module": "FStar.Endianness",
"short_module": "E"
},
{
"abbrev": true,
"full_module": "LowPa... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | x: FStar.UInt32.t -> Prims.GTot FStar.UInt8.t | Prims.GTot | [
"sometrivial"
] | [] | [
"FStar.UInt32.t",
"LowParse.Spec.DER.tag_of_der_length",
"FStar.UInt32.v",
"Prims.unit",
"FStar.Pervasives.assert_norm",
"Prims.b2t",
"Prims.op_LessThanOrEqual",
"Prims.op_Subtraction",
"Prims.pow2",
"LowParse.Spec.DER.der_length_max",
"FStar.UInt8.t"
] | [] | false | false | false | false | false | let tag_of_der_length32 (x: U32.t) : GTot U8.t =
| let _ = assert_norm (pow2 32 - 1 <= der_length_max) in
tag_of_der_length (U32.v x) | false |
LowParse.Spec.DER.fsti | LowParse.Spec.DER.parse_bounded_der_length32_kind | val parse_bounded_der_length32_kind
(min: der_length_t)
(max: der_length_t{min <= max /\ max < 4294967296})
: Tot parser_kind | val parse_bounded_der_length32_kind
(min: der_length_t)
(max: der_length_t{min <= max /\ max < 4294967296})
: Tot parser_kind | let parse_bounded_der_length32_kind
(min: der_length_t)
(max: der_length_t { min <= max /\ max < 4294967296 } )
: Tot parser_kind
=
[@inline_let]
let k = parse_bounded_der_length_payload32_kind min max in
strong_parser_kind (1 + der_length_payload_size_of_tag (tag_of_der_length32' min)) (1 + der_length_payload_siz... | {
"file_name": "src/lowparse/LowParse.Spec.DER.fsti",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 151,
"end_line": 179,
"start_col": 0,
"start_line": 172
} | module LowParse.Spec.DER
include LowParse.Spec.Int
include LowParse.Spec.BoundedInt
open FStar.Mul
module U8 = FStar.UInt8
module UInt = FStar.UInt
module Seq = FStar.Seq
module Math = LowParse.Math
module Cast = FStar.Int.Cast
#reset-options "--z3cliopt smt.arith.nl=false --max_fuel 0 --max_ifuel 0"
let der_length... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowParse.Spec.Int.fsti.checked",
"LowParse.Spec.BoundedInt.fsti.checked",
"LowParse.Math.fst.checked",
"FStar.UInt8.fsti.checked",
"FStar.UInt32.fsti.checked",
"FStar.UInt.fsti.checked",
"FStar.Seq.fst.checked",
"FSta... | [
{
"abbrev": true,
"full_module": "FStar.UInt32",
"short_module": "U32"
},
{
"abbrev": true,
"full_module": "FStar.UInt32",
"short_module": "U32"
},
{
"abbrev": true,
"full_module": "FStar.Seq",
"short_module": "Seq"
},
{
"abbrev": true,
"full_module": "FStar.E... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
min: LowParse.Spec.DER.der_length_t ->
max: LowParse.Spec.DER.der_length_t{min <= max /\ max < 4294967296}
-> LowParse.Spec.Base.parser_kind | Prims.Tot | [
"total"
] | [] | [
"LowParse.Spec.DER.der_length_t",
"Prims.l_and",
"Prims.b2t",
"Prims.op_LessThanOrEqual",
"Prims.op_LessThan",
"LowParse.Spec.Base.strong_parser_kind",
"Prims.op_Addition",
"LowParse.Spec.DER.der_length_payload_size_of_tag",
"LowParse.Spec.DER.tag_of_der_length32'",
"FStar.Pervasives.Native.None",... | [] | false | false | false | false | false | let parse_bounded_der_length32_kind
(min: der_length_t)
(max: der_length_t{min <= max /\ max < 4294967296})
: Tot parser_kind =
| [@@ inline_let ]let k = parse_bounded_der_length_payload32_kind min max in
strong_parser_kind (1 + der_length_payload_size_of_tag (tag_of_der_length32' min))
(1 + der_length_payload_size_of_tag (tag_of_der_length32' max))
None | false |
LowParse.Spec.DER.fsti | LowParse.Spec.DER.parse_bounded_der_length_payload32_kind | val parse_bounded_der_length_payload32_kind
(min: der_length_t)
(max: der_length_t{min <= max /\ max < 4294967296})
: Tot parser_kind | val parse_bounded_der_length_payload32_kind
(min: der_length_t)
(max: der_length_t{min <= max /\ max < 4294967296})
: Tot parser_kind | let parse_bounded_der_length_payload32_kind
(min: der_length_t)
(max: der_length_t { min <= max /\ max < 4294967296 } )
: Tot parser_kind
= [@inline_let] let _ = der_length_payload_size_le min max in
strong_parser_kind (der_length_payload_size_of_tag (tag_of_der_length32' min)) (der_length_payload_size_of_tag (ta... | {
"file_name": "src/lowparse/LowParse.Spec.DER.fsti",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 145,
"end_line": 169,
"start_col": 0,
"start_line": 164
} | module LowParse.Spec.DER
include LowParse.Spec.Int
include LowParse.Spec.BoundedInt
open FStar.Mul
module U8 = FStar.UInt8
module UInt = FStar.UInt
module Seq = FStar.Seq
module Math = LowParse.Math
module Cast = FStar.Int.Cast
#reset-options "--z3cliopt smt.arith.nl=false --max_fuel 0 --max_ifuel 0"
let der_length... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowParse.Spec.Int.fsti.checked",
"LowParse.Spec.BoundedInt.fsti.checked",
"LowParse.Math.fst.checked",
"FStar.UInt8.fsti.checked",
"FStar.UInt32.fsti.checked",
"FStar.UInt.fsti.checked",
"FStar.Seq.fst.checked",
"FSta... | [
{
"abbrev": true,
"full_module": "FStar.UInt32",
"short_module": "U32"
},
{
"abbrev": true,
"full_module": "FStar.UInt32",
"short_module": "U32"
},
{
"abbrev": true,
"full_module": "FStar.Seq",
"short_module": "Seq"
},
{
"abbrev": true,
"full_module": "FStar.E... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
min: LowParse.Spec.DER.der_length_t ->
max: LowParse.Spec.DER.der_length_t{min <= max /\ max < 4294967296}
-> LowParse.Spec.Base.parser_kind | Prims.Tot | [
"total"
] | [] | [
"LowParse.Spec.DER.der_length_t",
"Prims.l_and",
"Prims.b2t",
"Prims.op_LessThanOrEqual",
"Prims.op_LessThan",
"LowParse.Spec.Base.strong_parser_kind",
"LowParse.Spec.DER.der_length_payload_size_of_tag",
"LowParse.Spec.DER.tag_of_der_length32'",
"FStar.Pervasives.Native.None",
"LowParse.Spec.Base.... | [] | false | false | false | false | false | let parse_bounded_der_length_payload32_kind
(min: der_length_t)
(max: der_length_t{min <= max /\ max < 4294967296})
: Tot parser_kind =
| [@@ inline_let ]let _ = der_length_payload_size_le min max in
strong_parser_kind (der_length_payload_size_of_tag (tag_of_der_length32' min))
(der_length_payload_size_of_tag (tag_of_der_length32' max))
None | false |
Hacl.Impl.Curve25519.Generic.fst | Hacl.Impl.Curve25519.Generic.decode_point | val decode_point:
#s:field_spec
-> o:point s
-> i:lbuffer uint8 32ul
-> Stack unit
(requires fun h0 -> live h0 o /\ live h0 i /\ disjoint o i)
(ensures fun h0 _ h1 -> modifies (loc o) h0 h1 /\
state_inv_t h1 (get_x o) /\ state_inv_t h1 (get_z o) /\
fget_x h1 o == S.decodePoint (as_seq h0 i... | val decode_point:
#s:field_spec
-> o:point s
-> i:lbuffer uint8 32ul
-> Stack unit
(requires fun h0 -> live h0 o /\ live h0 i /\ disjoint o i)
(ensures fun h0 _ h1 -> modifies (loc o) h0 h1 /\
state_inv_t h1 (get_x o) /\ state_inv_t h1 (get_z o) /\
fget_x h1 o == S.decodePoint (as_seq h0 i... | let decode_point #s o i =
push_frame();
let tmp = create 4ul (u64 0) in
let h0 = ST.get () in
uints_from_bytes_le #U64 tmp i;
let h1 = ST.get () in
BSeq.uints_from_bytes_le_nat_lemma #U64 #SEC #4 (as_seq h0 i);
assert (BSeq.nat_from_intseq_le (as_seq h1 tmp) == BSeq.nat_from_bytes_le (as_seq h0 i));
let... | {
"file_name": "code/curve25519/Hacl.Impl.Curve25519.Generic.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 13,
"end_line": 81,
"start_col": 0,
"start_line": 60
} | module Hacl.Impl.Curve25519.Generic
open FStar.HyperStack
open FStar.HyperStack.All
open FStar.Mul
open Lib.IntTypes
open Lib.Buffer
open Lib.ByteBuffer
open Hacl.Impl.Curve25519.Fields
include Hacl.Impl.Curve25519.Finv
include Hacl.Impl.Curve25519.AddAndDouble
module ST = FStar.HyperStack.ST
module BSeq = Lib.Byt... | {
"checked_file": "/",
"dependencies": [
"Spec.Curve25519.fst.checked",
"prims.fst.checked",
"Meta.Attribute.fst.checked",
"LowStar.Monotonic.Buffer.fsti.checked",
"Lib.Sequence.fsti.checked",
"Lib.Loops.fsti.checked",
"Lib.LoopCombinators.fst.checked",
"Lib.IntTypes.fsti.checked",
... | [
{
"abbrev": true,
"full_module": "Hacl.Spec.Curve25519.Field64.Lemmas",
"short_module": "Lemmas"
},
{
"abbrev": true,
"full_module": "Hacl.Spec.Curve25519.AddAndDouble",
"short_module": "M"
},
{
"abbrev": true,
"full_module": "Spec.Curve25519",
"short_module": "S"
},
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | o: Hacl.Impl.Curve25519.AddAndDouble.point s -> i: Lib.Buffer.lbuffer Lib.IntTypes.uint8 32ul
-> FStar.HyperStack.ST.Stack Prims.unit | FStar.HyperStack.ST.Stack | [] | [] | [
"Hacl.Impl.Curve25519.Fields.Core.field_spec",
"Hacl.Impl.Curve25519.AddAndDouble.point",
"Lib.Buffer.lbuffer",
"Lib.IntTypes.uint8",
"FStar.UInt32.__uint_to_t",
"FStar.HyperStack.ST.pop_frame",
"Prims.unit",
"Hacl.Impl.Curve25519.Fields.load_felem",
"Hacl.Impl.Curve25519.Fields.set_one",
"Hacl.Im... | [] | false | true | false | false | false | let decode_point #s o i =
| push_frame ();
let tmp = create 4ul (u64 0) in
let h0 = ST.get () in
uints_from_bytes_le #U64 tmp i;
let h1 = ST.get () in
BSeq.uints_from_bytes_le_nat_lemma #U64 #SEC #4 (as_seq h0 i);
assert (BSeq.nat_from_intseq_le (as_seq h1 tmp) == BSeq.nat_from_bytes_le (as_seq h0 i));
let tmp3 = tmp.(3ul) in
tmp.(3ul) <- tmp3 &.... | false |
LowParse.Spec.DER.fsti | LowParse.Spec.DER.log256_32 | val log256_32 (n: U32.t{U32.v n > 0}) : Tot (y: U8.t{U8.v y == log256' (U32.v n)}) | val log256_32 (n: U32.t{U32.v n > 0}) : Tot (y: U8.t{U8.v y == log256' (U32.v n)}) | let log256_32
(n: U32.t { U32.v n > 0 } )
: Tot (y: U8.t { U8.v y == log256' (U32.v n) } )
= if n `U32.lt` 256ul
then 1uy
else if n `U32.lt` 65536ul
then 2uy
else if n `U32.lt` 16777216ul
then 3uy
else 4uy | {
"file_name": "src/lowparse/LowParse.Spec.DER.fsti",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 10,
"end_line": 237,
"start_col": 0,
"start_line": 228
} | module LowParse.Spec.DER
include LowParse.Spec.Int
include LowParse.Spec.BoundedInt
open FStar.Mul
module U8 = FStar.UInt8
module UInt = FStar.UInt
module Seq = FStar.Seq
module Math = LowParse.Math
module Cast = FStar.Int.Cast
#reset-options "--z3cliopt smt.arith.nl=false --max_fuel 0 --max_ifuel 0"
let der_length... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowParse.Spec.Int.fsti.checked",
"LowParse.Spec.BoundedInt.fsti.checked",
"LowParse.Math.fst.checked",
"FStar.UInt8.fsti.checked",
"FStar.UInt32.fsti.checked",
"FStar.UInt.fsti.checked",
"FStar.Seq.fst.checked",
"FSta... | [
{
"abbrev": true,
"full_module": "FStar.UInt32",
"short_module": "U32"
},
{
"abbrev": true,
"full_module": "FStar.UInt32",
"short_module": "U32"
},
{
"abbrev": true,
"full_module": "FStar.Seq",
"short_module": "Seq"
},
{
"abbrev": true,
"full_module": "FStar.E... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | n: FStar.UInt32.t{FStar.UInt32.v n > 0}
-> y: FStar.UInt8.t{FStar.UInt8.v y == LowParse.Spec.BoundedInt.log256' (FStar.UInt32.v n)} | Prims.Tot | [
"total"
] | [] | [
"FStar.UInt32.t",
"Prims.b2t",
"Prims.op_GreaterThan",
"FStar.UInt32.v",
"FStar.UInt32.lt",
"FStar.UInt32.__uint_to_t",
"FStar.UInt8.__uint_to_t",
"Prims.bool",
"FStar.UInt8.t",
"Prims.eq2",
"Prims.int",
"Prims.l_or",
"FStar.UInt.size",
"FStar.UInt8.n",
"Prims.l_and",
"Prims.op_Greater... | [] | false | false | false | false | false | let log256_32 (n: U32.t{U32.v n > 0}) : Tot (y: U8.t{U8.v y == log256' (U32.v n)}) =
| if n `U32.lt` 256ul
then 1uy
else if n `U32.lt` 65536ul then 2uy else if n `U32.lt` 16777216ul then 3uy else 4uy | false |
Vale.AsLowStar.Wrapper.fst | Vale.AsLowStar.Wrapper.arg_is_registered_root | val arg_is_registered_root : h: Vale.X64.Memory.vale_heap -> a: Vale.Interop.Base.arg -> Type0 | let arg_is_registered_root (h:ME.vale_heap) (a:arg) =
match a with
| (| TD_Buffer src bt _, x |) ->
List.memP (mut_to_b8 src x) (ptrs_of_mem (as_mem h))
| (| TD_ImmBuffer src bt _, x |) ->
List.memP (imm_to_b8 src x) (ptrs_of_mem (as_mem h))
| _ -> true | {
"file_name": "vale/code/arch/x64/interop/Vale.AsLowStar.Wrapper.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 13,
"end_line": 88,
"start_col": 0,
"start_line": 82
} | module Vale.AsLowStar.Wrapper
open Vale.Arch.HeapImpl
open Vale.X64.MemoryAdapters
open Vale.Interop.Base
module B = LowStar.Buffer
module BS = Vale.X64.Machine_Semantics_s
module UV = LowStar.BufferView.Up
module DV = LowStar.BufferView.Down
module HS = FStar.HyperStack
module ME = Vale.X64.Memory
module SI = Vale.X64... | {
"checked_file": "/",
"dependencies": [
"Vale.X64.StateLemmas.fsti.checked",
"Vale.X64.State.fsti.checked",
"Vale.X64.Stack_i.fsti.checked",
"Vale.X64.MemoryAdapters.fsti.checked",
"Vale.X64.Memory.fsti.checked",
"Vale.X64.Machine_Semantics_s.fst.checked",
"Vale.X64.Machine_s.fst.checke... | [
{
"abbrev": false,
"full_module": "FStar.Calc",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "ST"
},
{
"abbrev": true,
"full_module": "Val... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 1,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | h: Vale.X64.Memory.vale_heap -> a: Vale.Interop.Base.arg -> Type0 | Prims.Tot | [
"total"
] | [] | [
"Vale.X64.Memory.vale_heap",
"Vale.Interop.Base.arg",
"Vale.Arch.HeapTypes_s.base_typ",
"Vale.Interop.Base.buffer_qualifiers",
"Vale.Interop.Base.td_as_type",
"Vale.Interop.Base.TD_Buffer",
"FStar.List.Tot.Base.memP",
"Vale.Interop.Types.b8",
"Vale.Interop.Base.mut_to_b8",
"Vale.Interop.Heap_s.ptr... | [] | false | false | false | true | true | let arg_is_registered_root (h: ME.vale_heap) (a: arg) =
| match a with
| (| TD_Buffer src bt _ , x |) -> List.memP (mut_to_b8 src x) (ptrs_of_mem (as_mem h))
| (| TD_ImmBuffer src bt _ , x |) -> List.memP (imm_to_b8 src x) (ptrs_of_mem (as_mem h))
| _ -> true | false | |
LowParse.Spec.DER.fsti | LowParse.Spec.DER.tag_of_der_length | val tag_of_der_length (x: der_length_t) : Tot U8.t | val tag_of_der_length (x: der_length_t) : Tot U8.t | let tag_of_der_length
(x: der_length_t)
: Tot U8.t
= if x < 128
then U8.uint_to_t x
else
let len_len = log256 x in
assert_norm (der_length_max == pow2 (8 * 126) - 1);
Math.pow2_lt_recip (8 * (len_len - 1)) (8 * 126);
128uy `U8.add` U8.uint_to_t len_len | {
"file_name": "src/lowparse/LowParse.Spec.DER.fsti",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 39,
"end_line": 80,
"start_col": 0,
"start_line": 71
} | module LowParse.Spec.DER
include LowParse.Spec.Int
include LowParse.Spec.BoundedInt
open FStar.Mul
module U8 = FStar.UInt8
module UInt = FStar.UInt
module Seq = FStar.Seq
module Math = LowParse.Math
module Cast = FStar.Int.Cast
#reset-options "--z3cliopt smt.arith.nl=false --max_fuel 0 --max_ifuel 0"
let der_length... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowParse.Spec.Int.fsti.checked",
"LowParse.Spec.BoundedInt.fsti.checked",
"LowParse.Math.fst.checked",
"FStar.UInt8.fsti.checked",
"FStar.UInt32.fsti.checked",
"FStar.UInt.fsti.checked",
"FStar.Seq.fst.checked",
"FSta... | [
{
"abbrev": true,
"full_module": "FStar.Seq",
"short_module": "Seq"
},
{
"abbrev": true,
"full_module": "FStar.Endianness",
"short_module": "E"
},
{
"abbrev": true,
"full_module": "LowParse.Math",
"short_module": "Math"
},
{
"abbrev": true,
"full_module": "FSt... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | x: LowParse.Spec.DER.der_length_t -> FStar.UInt8.t | Prims.Tot | [
"total"
] | [] | [
"LowParse.Spec.DER.der_length_t",
"Prims.op_LessThan",
"FStar.UInt8.uint_to_t",
"Prims.bool",
"FStar.UInt8.add",
"FStar.UInt8.__uint_to_t",
"Prims.unit",
"LowParse.Math.pow2_lt_recip",
"FStar.Mul.op_Star",
"Prims.op_Subtraction",
"FStar.Pervasives.assert_norm",
"Prims.eq2",
"Prims.int",
"L... | [] | false | false | false | true | false | let tag_of_der_length (x: der_length_t) : Tot U8.t =
| if x < 128
then U8.uint_to_t x
else
let len_len = log256 x in
assert_norm (der_length_max == pow2 (8 * 126) - 1);
Math.pow2_lt_recip (8 * (len_len - 1)) (8 * 126);
128uy `U8.add` (U8.uint_to_t len_len) | false |
LowParse.Spec.DER.fsti | LowParse.Spec.DER.der_length_payload_size_of_tag8 | val der_length_payload_size_of_tag8 (x: U8.t)
: Tot (y: U8.t{U8.v y == der_length_payload_size_of_tag x}) | val der_length_payload_size_of_tag8 (x: U8.t)
: Tot (y: U8.t{U8.v y == der_length_payload_size_of_tag x}) | let der_length_payload_size_of_tag8
(x: U8.t)
: Tot (y: U8.t { U8.v y == der_length_payload_size_of_tag x } )
= [@inline_let]
let _ =
assert_norm (der_length_max == pow2 (8 * 126) - 1);
assert_norm (pow2 7 == 128);
assert_norm (pow2 8 == 256);
assert_norm (256 < der_length_max);
assert (U8.v x <... | {
"file_name": "src/lowparse/LowParse.Spec.DER.fsti",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 20,
"end_line": 225,
"start_col": 0,
"start_line": 210
} | module LowParse.Spec.DER
include LowParse.Spec.Int
include LowParse.Spec.BoundedInt
open FStar.Mul
module U8 = FStar.UInt8
module UInt = FStar.UInt
module Seq = FStar.Seq
module Math = LowParse.Math
module Cast = FStar.Int.Cast
#reset-options "--z3cliopt smt.arith.nl=false --max_fuel 0 --max_ifuel 0"
let der_length... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowParse.Spec.Int.fsti.checked",
"LowParse.Spec.BoundedInt.fsti.checked",
"LowParse.Math.fst.checked",
"FStar.UInt8.fsti.checked",
"FStar.UInt32.fsti.checked",
"FStar.UInt.fsti.checked",
"FStar.Seq.fst.checked",
"FSta... | [
{
"abbrev": true,
"full_module": "FStar.UInt32",
"short_module": "U32"
},
{
"abbrev": true,
"full_module": "FStar.UInt32",
"short_module": "U32"
},
{
"abbrev": true,
"full_module": "FStar.Seq",
"short_module": "Seq"
},
{
"abbrev": true,
"full_module": "FStar.E... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | x: FStar.UInt8.t
-> y: FStar.UInt8.t{FStar.UInt8.v y == LowParse.Spec.DER.der_length_payload_size_of_tag x} | Prims.Tot | [
"total"
] | [] | [
"FStar.UInt8.t",
"Prims.op_BarBar",
"FStar.UInt8.lt",
"FStar.UInt8.__uint_to_t",
"Prims.op_Equality",
"Prims.bool",
"FStar.UInt8.sub",
"Prims.eq2",
"Prims.int",
"Prims.l_or",
"FStar.UInt.size",
"FStar.UInt8.n",
"Prims.l_and",
"Prims.b2t",
"Prims.op_GreaterThanOrEqual",
"Prims.op_LessTh... | [] | false | false | false | false | false | let der_length_payload_size_of_tag8 (x: U8.t)
: Tot (y: U8.t{U8.v y == der_length_payload_size_of_tag x}) =
| [@@ inline_let ]let _ =
assert_norm (der_length_max == pow2 (8 * 126) - 1);
assert_norm (pow2 7 == 128);
assert_norm (pow2 8 == 256);
assert_norm (256 < der_length_max);
assert (U8.v x <= der_length_max)
in
if x `U8.lt` 129uy || x = 255uy then 0uy else x `U8.sub` 128uy | false |
LowParse.Spec.DER.fsti | LowParse.Spec.DER.der_length_payload_size_of_tag | val der_length_payload_size_of_tag (x: U8.t) : Tot (y: nat{y <= 126}) | val der_length_payload_size_of_tag (x: U8.t) : Tot (y: nat{y <= 126}) | let der_length_payload_size_of_tag
(x: U8.t)
: Tot (y: nat { y <= 126 })
= assert_norm (der_length_max == pow2 (8 * 126) - 1);
assert_norm (pow2 7 == 128);
assert_norm (pow2 8 == 256);
assert_norm (256 < der_length_max);
assert (U8.v x <= der_length_max);
[@inline_let]
let x' = U8.v x in
if x' <= 128 ||... | {
"file_name": "src/lowparse/LowParse.Spec.DER.fsti",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 12,
"end_line": 63,
"start_col": 0,
"start_line": 49
} | module LowParse.Spec.DER
include LowParse.Spec.Int
include LowParse.Spec.BoundedInt
open FStar.Mul
module U8 = FStar.UInt8
module UInt = FStar.UInt
module Seq = FStar.Seq
module Math = LowParse.Math
module Cast = FStar.Int.Cast
#reset-options "--z3cliopt smt.arith.nl=false --max_fuel 0 --max_ifuel 0"
let der_length... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowParse.Spec.Int.fsti.checked",
"LowParse.Spec.BoundedInt.fsti.checked",
"LowParse.Math.fst.checked",
"FStar.UInt8.fsti.checked",
"FStar.UInt32.fsti.checked",
"FStar.UInt.fsti.checked",
"FStar.Seq.fst.checked",
"FSta... | [
{
"abbrev": true,
"full_module": "FStar.Seq",
"short_module": "Seq"
},
{
"abbrev": true,
"full_module": "FStar.Endianness",
"short_module": "E"
},
{
"abbrev": true,
"full_module": "LowParse.Math",
"short_module": "Math"
},
{
"abbrev": true,
"full_module": "FSt... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | x: FStar.UInt8.t -> y: Prims.nat{y <= 126} | Prims.Tot | [
"total"
] | [] | [
"FStar.UInt8.t",
"Prims.op_BarBar",
"Prims.op_LessThanOrEqual",
"Prims.op_Equality",
"Prims.int",
"Prims.bool",
"Prims.op_Subtraction",
"Prims.nat",
"Prims.b2t",
"FStar.UInt.uint_t",
"FStar.UInt8.v",
"Prims.unit",
"Prims._assert",
"LowParse.Spec.DER.der_length_max",
"FStar.Pervasives.ass... | [] | false | false | false | false | false | let der_length_payload_size_of_tag (x: U8.t) : Tot (y: nat{y <= 126}) =
| assert_norm (der_length_max == pow2 (8 * 126) - 1);
assert_norm (pow2 7 == 128);
assert_norm (pow2 8 == 256);
assert_norm (256 < der_length_max);
assert (U8.v x <= der_length_max);
[@@ inline_let ]let x' = U8.v x in
if x' <= 128 || x' = 255 then 0 else x' - 128 | false |
Hacl.Spec.Chacha20.Lemmas.fst | Hacl.Spec.Chacha20.Lemmas.transpose_lemma_index | val transpose_lemma_index: #w:lanes -> k:state w -> i:nat{i < 16 * w} ->
Lemma ((vec_v (transpose #w k).[i / w]).[i % w] == ((transpose_state k).[i / 16]).[i % 16]) | val transpose_lemma_index: #w:lanes -> k:state w -> i:nat{i < 16 * w} ->
Lemma ((vec_v (transpose #w k).[i / w]).[i % w] == ((transpose_state k).[i / 16]).[i % 16]) | let transpose_lemma_index #w k i =
match w with
| 1 -> ()
| 4 -> transpose4_lemma k i
| 8 -> transpose8_lemma k i | {
"file_name": "code/chacha20/Hacl.Spec.Chacha20.Lemmas.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 29,
"end_line": 43,
"start_col": 0,
"start_line": 39
} | module Hacl.Spec.Chacha20.Lemmas
open FStar.Mul
open Lib.IntTypes
open Lib.Sequence
open Lib.IntVector
open Lib.IntVector.Transpose
open Hacl.Spec.Chacha20.Vec
#set-options "--z3rlimit 50 --fuel 0 --ifuel 1"
/// (vec_v (transpose #w k).[i / w]).[i % w] == ((transpose_state k).[i / 16]).[i % 16]
val transpose4_lemm... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.IntVector.Transpose.fsti.checked",
"Lib.IntVector.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Hacl.Spec.Chacha20.Vec.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul.fst.checked"... | [
{
"abbrev": false,
"full_module": "Hacl.Spec.Chacha20.Vec",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.IntVector.Transpose",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.IntVector",
"short_module": null
},
{
"abbrev": false,
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | k: Hacl.Spec.Chacha20.Vec.state w -> i: Prims.nat{i < 16 * w}
-> FStar.Pervasives.Lemma
(ensures
(Lib.IntVector.vec_v (Hacl.Spec.Chacha20.Vec.transpose k).[ i / w ]).[ i % w ] ==
(Hacl.Spec.Chacha20.Vec.transpose_state k).[ i / 16 ].[ i % 16 ]) | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"Hacl.Spec.Chacha20.Vec.lanes",
"Hacl.Spec.Chacha20.Vec.state",
"Prims.nat",
"Prims.b2t",
"Prims.op_LessThan",
"FStar.Mul.op_Star",
"Hacl.Spec.Chacha20.Lemmas.transpose4_lemma",
"Hacl.Spec.Chacha20.Lemmas.transpose8_lemma",
"Prims.unit"
] | [] | false | false | true | false | false | let transpose_lemma_index #w k i =
| match w with
| 1 -> ()
| 4 -> transpose4_lemma k i
| 8 -> transpose8_lemma k i | false |
LowParse.Spec.DER.fsti | LowParse.Spec.DER.tag_of_der_length32_impl | val tag_of_der_length32_impl (x: U32.t)
: Tot (y: U8.t{U32.v x < der_length_max /\ y == tag_of_der_length (U32.v x)}) | val tag_of_der_length32_impl (x: U32.t)
: Tot (y: U8.t{U32.v x < der_length_max /\ y == tag_of_der_length (U32.v x)}) | let tag_of_der_length32_impl
(x: U32.t)
: Tot (y: U8.t { U32.v x < der_length_max /\ y == tag_of_der_length (U32.v x) } )
= [@inline_let]
let _ = assert_norm (4294967296 <= der_length_max) in
if x `U32.lt` 128ul
then begin
[@inline_let] let _ = FStar.Math.Lemmas.small_modulo_lemma_1 (U32.v x) 256 in
Cas... | {
"file_name": "src/lowparse/LowParse.Spec.DER.fsti",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 26,
"end_line": 256,
"start_col": 0,
"start_line": 240
} | module LowParse.Spec.DER
include LowParse.Spec.Int
include LowParse.Spec.BoundedInt
open FStar.Mul
module U8 = FStar.UInt8
module UInt = FStar.UInt
module Seq = FStar.Seq
module Math = LowParse.Math
module Cast = FStar.Int.Cast
#reset-options "--z3cliopt smt.arith.nl=false --max_fuel 0 --max_ifuel 0"
let der_length... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowParse.Spec.Int.fsti.checked",
"LowParse.Spec.BoundedInt.fsti.checked",
"LowParse.Math.fst.checked",
"FStar.UInt8.fsti.checked",
"FStar.UInt32.fsti.checked",
"FStar.UInt.fsti.checked",
"FStar.Seq.fst.checked",
"FSta... | [
{
"abbrev": true,
"full_module": "FStar.UInt32",
"short_module": "U32"
},
{
"abbrev": true,
"full_module": "FStar.UInt32",
"short_module": "U32"
},
{
"abbrev": true,
"full_module": "FStar.Seq",
"short_module": "Seq"
},
{
"abbrev": true,
"full_module": "FStar.E... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | x: FStar.UInt32.t
-> y:
FStar.UInt8.t
{ FStar.UInt32.v x < LowParse.Spec.DER.der_length_max /\
y == LowParse.Spec.DER.tag_of_der_length (FStar.UInt32.v x) } | Prims.Tot | [
"total"
] | [] | [
"FStar.UInt32.t",
"FStar.UInt32.lt",
"FStar.UInt32.__uint_to_t",
"FStar.Int.Cast.uint32_to_uint8",
"FStar.UInt8.t",
"Prims.unit",
"FStar.Math.Lemmas.small_modulo_lemma_1",
"FStar.UInt32.v",
"Prims.bool",
"FStar.UInt8.add",
"FStar.UInt8.__uint_to_t",
"LowParse.Math.pow2_lt_recip",
"FStar.Mul.... | [] | false | false | false | false | false | let tag_of_der_length32_impl (x: U32.t)
: Tot (y: U8.t{U32.v x < der_length_max /\ y == tag_of_der_length (U32.v x)}) =
| [@@ inline_let ]let _ = assert_norm (4294967296 <= der_length_max) in
if x `U32.lt` 128ul
then
[@@ inline_let ]let _ = FStar.Math.Lemmas.small_modulo_lemma_1 (U32.v x) 256 in
Cast.uint32_to_uint8 x <: U8.t
else
let len_len = log256_32 x in
[@@ inline_let ]let _ =
log256_eq (U32.v x);
assert_norm (der_le... | false |
LowParse.Spec.DER.fsti | LowParse.Spec.DER.tag_of_der_length32' | val tag_of_der_length32' (x: der_length_t{x < 4294967296}) : Tot (z: U8.t{z == tag_of_der_length x}) | val tag_of_der_length32' (x: der_length_t{x < 4294967296}) : Tot (z: U8.t{z == tag_of_der_length x}) | let tag_of_der_length32'
(x: der_length_t { x < 4294967296 } )
: Tot (z: U8.t { z == tag_of_der_length x })
= if x < 128
then U8.uint_to_t x
else
[@inline_let]
let len_len = log256' x in
[@inline_let] let _ =
log256_eq x;
assert_norm (der_length_max == pow2 (8 * 126) - 1);
Math.pow2_... | {
"file_name": "src/lowparse/LowParse.Spec.DER.fsti",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 39,
"end_line": 161,
"start_col": 0,
"start_line": 148
} | module LowParse.Spec.DER
include LowParse.Spec.Int
include LowParse.Spec.BoundedInt
open FStar.Mul
module U8 = FStar.UInt8
module UInt = FStar.UInt
module Seq = FStar.Seq
module Math = LowParse.Math
module Cast = FStar.Int.Cast
#reset-options "--z3cliopt smt.arith.nl=false --max_fuel 0 --max_ifuel 0"
let der_length... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowParse.Spec.Int.fsti.checked",
"LowParse.Spec.BoundedInt.fsti.checked",
"LowParse.Math.fst.checked",
"FStar.UInt8.fsti.checked",
"FStar.UInt32.fsti.checked",
"FStar.UInt.fsti.checked",
"FStar.Seq.fst.checked",
"FSta... | [
{
"abbrev": true,
"full_module": "FStar.UInt32",
"short_module": "U32"
},
{
"abbrev": true,
"full_module": "FStar.UInt32",
"short_module": "U32"
},
{
"abbrev": true,
"full_module": "FStar.Seq",
"short_module": "Seq"
},
{
"abbrev": true,
"full_module": "FStar.E... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | x: LowParse.Spec.DER.der_length_t{x < 4294967296}
-> z: FStar.UInt8.t{z == LowParse.Spec.DER.tag_of_der_length x} | Prims.Tot | [
"total"
] | [] | [
"LowParse.Spec.DER.der_length_t",
"Prims.b2t",
"Prims.op_LessThan",
"FStar.UInt8.uint_to_t",
"Prims.bool",
"FStar.UInt8.add",
"FStar.UInt8.__uint_to_t",
"Prims.unit",
"LowParse.Math.pow2_lt_recip",
"FStar.Mul.op_Star",
"Prims.op_Subtraction",
"FStar.Pervasives.assert_norm",
"Prims.eq2",
"P... | [] | false | false | false | false | false | let tag_of_der_length32' (x: der_length_t{x < 4294967296}) : Tot (z: U8.t{z == tag_of_der_length x}) =
| if x < 128
then U8.uint_to_t x
else
[@@ inline_let ]let len_len = log256' x in
[@@ inline_let ]let _ =
log256_eq x;
assert_norm (der_length_max == pow2 (8 * 126) - 1);
Math.pow2_lt_recip (8 * (len_len - 1)) (8 * 126)
in
128uy `U8.add` (U8.uint_to_t len_len) | false |
Hacl.Impl.Curve25519.Generic.fst | Hacl.Impl.Curve25519.Generic.cswap2 | val cswap2:
#s:field_spec
-> bit:uint64{v bit <= 1}
-> p1:felem2 s
-> p2:felem2 s
-> Stack unit
(requires fun h0 ->
live h0 p1 /\ live h0 p2 /\ disjoint p1 p2)
(ensures fun h0 _ h1 ->
modifies (loc p1 |+| loc p2) h0 h1 /\
(v bit == 1 ==> as_seq h1 p1 == as_seq h0 p2 /\ as_seq h1 p... | val cswap2:
#s:field_spec
-> bit:uint64{v bit <= 1}
-> p1:felem2 s
-> p2:felem2 s
-> Stack unit
(requires fun h0 ->
live h0 p1 /\ live h0 p2 /\ disjoint p1 p2)
(ensures fun h0 _ h1 ->
modifies (loc p1 |+| loc p2) h0 h1 /\
(v bit == 1 ==> as_seq h1 p1 == as_seq h0 p2 /\ as_seq h1 p... | let cswap2 #s bit p0 p1 =
C.cswap2 #s bit p0 p1 | {
"file_name": "code/curve25519/Hacl.Impl.Curve25519.Generic.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 23,
"end_line": 132,
"start_col": 0,
"start_line": 131
} | module Hacl.Impl.Curve25519.Generic
open FStar.HyperStack
open FStar.HyperStack.All
open FStar.Mul
open Lib.IntTypes
open Lib.Buffer
open Lib.ByteBuffer
open Hacl.Impl.Curve25519.Fields
include Hacl.Impl.Curve25519.Finv
include Hacl.Impl.Curve25519.AddAndDouble
module ST = FStar.HyperStack.ST
module BSeq = Lib.Byt... | {
"checked_file": "/",
"dependencies": [
"Spec.Curve25519.fst.checked",
"prims.fst.checked",
"Meta.Attribute.fst.checked",
"LowStar.Monotonic.Buffer.fsti.checked",
"Lib.Sequence.fsti.checked",
"Lib.Loops.fsti.checked",
"Lib.LoopCombinators.fst.checked",
"Lib.IntTypes.fsti.checked",
... | [
{
"abbrev": true,
"full_module": "Hacl.Spec.Curve25519.Field64.Lemmas",
"short_module": "Lemmas"
},
{
"abbrev": true,
"full_module": "Hacl.Spec.Curve25519.AddAndDouble",
"short_module": "M"
},
{
"abbrev": true,
"full_module": "Spec.Curve25519",
"short_module": "S"
},
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
bit: Lib.IntTypes.uint64{Lib.IntTypes.v bit <= 1} ->
p1: Hacl.Impl.Curve25519.Fields.Core.felem2 s ->
p2: Hacl.Impl.Curve25519.Fields.Core.felem2 s
-> FStar.HyperStack.ST.Stack Prims.unit | FStar.HyperStack.ST.Stack | [] | [] | [
"Hacl.Impl.Curve25519.Fields.Core.field_spec",
"Lib.IntTypes.uint64",
"Prims.b2t",
"Prims.op_LessThanOrEqual",
"Lib.IntTypes.v",
"Lib.IntTypes.U64",
"Lib.IntTypes.SEC",
"Hacl.Impl.Curve25519.Fields.Core.felem2",
"Hacl.Impl.Curve25519.Fields.Core.cswap2",
"Prims.unit"
] | [] | false | true | false | false | false | let cswap2 #s bit p0 p1 =
| C.cswap2 #s bit p0 p1 | false |
IfcRecursiveHeapReify.fst | IfcRecursiveHeapReify.dec_metric | val dec_metric : lo: FStar.DM4F.Heap.IntStoreFixed.id ->
hi: FStar.DM4F.Heap.IntStoreFixed.id{lo <> hi} ->
h: Rel.rel FStar.DM4F.Heap.IntStoreFixed.heap
-> Prims.int | let dec_metric (lo:id) (hi:id{lo<>hi}) (h :rel heap) =
nat_of (sel (R?.l h) hi) +
nat_of (sel (R?.r h) hi) | {
"file_name": "examples/rel/IfcRecursiveHeapReify.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 26,
"end_line": 54,
"start_col": 0,
"start_line": 52
} | (*
Copyright 2008-2018 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"Rel.fst.checked",
"prims.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.DM4F.IntStoreFixed.fst.checked",
"FStar.DM4F.Heap.IntStoreFixed.fsti.checked"
],
"interface_file": false,
"source_file": "IfcR... | [
{
"abbrev": true,
"full_module": "FStar.DM4F.IntStoreFixed",
"short_module": "X"
},
{
"abbrev": false,
"full_module": "Rel",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.DM4F.IntStoreFixed",
"short_module": null
},
{
"abbrev": false,
"full_... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
lo: FStar.DM4F.Heap.IntStoreFixed.id ->
hi: FStar.DM4F.Heap.IntStoreFixed.id{lo <> hi} ->
h: Rel.rel FStar.DM4F.Heap.IntStoreFixed.heap
-> Prims.int | Prims.Tot | [
"total"
] | [] | [
"FStar.DM4F.Heap.IntStoreFixed.id",
"Prims.b2t",
"Prims.op_disEquality",
"Rel.rel",
"FStar.DM4F.Heap.IntStoreFixed.heap",
"Prims.op_Addition",
"IfcRecursiveHeapReify.nat_of",
"FStar.DM4F.Heap.IntStoreFixed.sel",
"Rel.__proj__R__item__l",
"Rel.__proj__R__item__r",
"Prims.int"
] | [] | false | false | false | false | false | let dec_metric (lo: id) (hi: id{lo <> hi}) (h: rel heap) =
| nat_of (sel (R?.l h) hi) + nat_of (sel (R?.r h) hi) | false | |
Hacl.Spec.Chacha20.Lemmas.fst | Hacl.Spec.Chacha20.Lemmas.transpose4_lemma | val transpose4_lemma: k:state 4 -> i:nat{i < 16 * 4} ->
Lemma ((vec_v (transpose4 k).[i / 4]).[i % 4] == ((transpose_state k).[i / 16]).[i % 16]) | val transpose4_lemma: k:state 4 -> i:nat{i < 16 * 4} ->
Lemma ((vec_v (transpose4 k).[i / 4]).[i % 4] == ((transpose_state k).[i / 16]).[i % 16]) | let transpose4_lemma st i =
let r0 = transpose4x4_lseq (sub st 0 4) in
transpose4x4_lemma (sub st 0 4);
let r1 = transpose4x4_lseq (sub st 4 4) in
transpose4x4_lemma (sub st 4 4);
let r2 = transpose4x4_lseq (sub st 8 4) in
transpose4x4_lemma (sub st 8 4);
let r3 = transpose4x4_lseq (sub st 12 4) in
tran... | {
"file_name": "code/chacha20/Hacl.Spec.Chacha20.Lemmas.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 34,
"end_line": 25,
"start_col": 0,
"start_line": 17
} | module Hacl.Spec.Chacha20.Lemmas
open FStar.Mul
open Lib.IntTypes
open Lib.Sequence
open Lib.IntVector
open Lib.IntVector.Transpose
open Hacl.Spec.Chacha20.Vec
#set-options "--z3rlimit 50 --fuel 0 --ifuel 1"
/// (vec_v (transpose #w k).[i / w]).[i % w] == ((transpose_state k).[i / 16]).[i % 16]
val transpose4_lemm... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.IntVector.Transpose.fsti.checked",
"Lib.IntVector.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Hacl.Spec.Chacha20.Vec.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul.fst.checked"... | [
{
"abbrev": false,
"full_module": "Hacl.Spec.Chacha20.Vec",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.IntVector.Transpose",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.IntVector",
"short_module": null
},
{
"abbrev": false,
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | k: Hacl.Spec.Chacha20.Vec.state 4 -> i: Prims.nat{i < 16 * 4}
-> FStar.Pervasives.Lemma
(ensures
(Lib.IntVector.vec_v (Hacl.Spec.Chacha20.Vec.transpose4 k).[ i / 4 ]).[ i % 4 ] ==
(Hacl.Spec.Chacha20.Vec.transpose_state k).[ i / 16 ].[ i % 16 ]) | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"Hacl.Spec.Chacha20.Vec.state",
"Prims.nat",
"Prims.b2t",
"Prims.op_LessThan",
"FStar.Mul.op_Star",
"Lib.IntVector.Transpose.transpose4x4_lemma",
"Lib.IntTypes.U32",
"Lib.Sequence.sub",
"Hacl.Spec.Chacha20.Vec.uint32xN",
"Lib.Sequence.lseq",
"Lib.IntVector.vec_t",
"Lib.IntVector.Transpose.tran... | [] | true | false | true | false | false | let transpose4_lemma st i =
| let r0 = transpose4x4_lseq (sub st 0 4) in
transpose4x4_lemma (sub st 0 4);
let r1 = transpose4x4_lseq (sub st 4 4) in
transpose4x4_lemma (sub st 4 4);
let r2 = transpose4x4_lseq (sub st 8 4) in
transpose4x4_lemma (sub st 8 4);
let r3 = transpose4x4_lseq (sub st 12 4) in
transpose4x4_lemma (sub st 12 4) | false |
IfcRecursiveHeapReify.fst | IfcRecursiveHeapReify.op_Star | val op_Star : _: Prims.int -> _: Prims.int -> Prims.int | let op_Star = op_Multiply | {
"file_name": "examples/rel/IfcRecursiveHeapReify.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 25,
"end_line": 114,
"start_col": 0,
"start_line": 114
} | (*
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": [
"Rel.fst.checked",
"prims.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.DM4F.IntStoreFixed.fst.checked",
"FStar.DM4F.Heap.IntStoreFixed.fsti.checked"
],
"interface_file": false,
"source_file": "IfcR... | [
{
"abbrev": true,
"full_module": "FStar.DM4F.IntStoreFixed",
"short_module": "X"
},
{
"abbrev": false,
"full_module": "Rel",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.DM4F.IntStoreFixed",
"short_module": null
},
{
"abbrev": false,
"full_... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | _: Prims.int -> _: Prims.int -> Prims.int | Prims.Tot | [
"total"
] | [] | [
"Prims.op_Multiply"
] | [] | false | false | false | true | false | let op_Star =
| op_Multiply | false | |
IfcRecursiveHeapReify.fst | IfcRecursiveHeapReify.p1 | val p1 (lo hi :id ): gh:heap ->
IntStore unit
(requires (fun h -> h == gh /\ lo <> hi))
(ensures (fun h1 _ h2 -> True))
(decreases (sel gh hi)) | val p1 (lo hi :id ): gh:heap ->
IntStore unit
(requires (fun h -> h == gh /\ lo <> hi))
(ensures (fun h1 _ h2 -> True))
(decreases (sel gh hi)) | let rec p1 lo hi gh =
if (read hi) > 0 then
begin
write hi (read hi - 1);
let h = X.get () in
p1 lo hi h;
write lo (read lo - 1)
end;
write lo (read lo + 1) | {
"file_name": "examples/rel/IfcRecursiveHeapReify.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 24,
"end_line": 44,
"start_col": 1,
"start_line": 36
} | (*
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": [
"Rel.fst.checked",
"prims.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.DM4F.IntStoreFixed.fst.checked",
"FStar.DM4F.Heap.IntStoreFixed.fsti.checked"
],
"interface_file": false,
"source_file": "IfcR... | [
{
"abbrev": true,
"full_module": "FStar.DM4F.IntStoreFixed",
"short_module": "X"
},
{
"abbrev": false,
"full_module": "Rel",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.DM4F.IntStoreFixed",
"short_module": null
},
{
"abbrev": false,
"full_... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
lo: FStar.DM4F.Heap.IntStoreFixed.id ->
hi: FStar.DM4F.Heap.IntStoreFixed.id ->
gh: FStar.DM4F.Heap.IntStoreFixed.heap
-> FStar.DM4F.IntStoreFixed.IntStore Prims.unit | FStar.DM4F.IntStoreFixed.IntStore | [
""
] | [] | [
"FStar.DM4F.Heap.IntStoreFixed.id",
"FStar.DM4F.Heap.IntStoreFixed.heap",
"FStar.DM4F.IntStoreFixed.write",
"Prims.unit",
"Prims.int",
"Prims.op_Addition",
"FStar.DM4F.IntStoreFixed.read",
"Prims.op_Subtraction",
"IfcRecursiveHeapReify.p1",
"FStar.DM4F.IntStoreFixed.get",
"Prims.bool",
"Prims.... | [
"recursion"
] | false | true | false | false | false | let rec p1 lo hi gh =
| if (read hi) > 0
then
(write hi (read hi - 1);
let h = X.get () in
p1 lo hi h;
write lo (read lo - 1));
write lo (read lo + 1) | false |
IfcRecursiveHeapReify.fst | IfcRecursiveHeapReify.fac_r | val fac_r : a: FStar.DM4F.Heap.IntStoreFixed.id ->
n: FStar.DM4F.Heap.IntStoreFixed.id{a <> n} ->
h: FStar.DM4F.Heap.IntStoreFixed.heap
-> FStar.DM4F.Heap.IntStoreFixed.heap | let fac_r a n h = (snd (reify (fac a n h) h)) | {
"file_name": "examples/rel/IfcRecursiveHeapReify.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 45,
"end_line": 135,
"start_col": 0,
"start_line": 135
} | (*
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": [
"Rel.fst.checked",
"prims.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.DM4F.IntStoreFixed.fst.checked",
"FStar.DM4F.Heap.IntStoreFixed.fsti.checked"
],
"interface_file": false,
"source_file": "IfcR... | [
{
"abbrev": true,
"full_module": "FStar.DM4F.IntStoreFixed",
"short_module": "X"
},
{
"abbrev": false,
"full_module": "Rel",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.DM4F.IntStoreFixed",
"short_module": null
},
{
"abbrev": false,
"full_... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
a: FStar.DM4F.Heap.IntStoreFixed.id ->
n: FStar.DM4F.Heap.IntStoreFixed.id{a <> n} ->
h: FStar.DM4F.Heap.IntStoreFixed.heap
-> FStar.DM4F.Heap.IntStoreFixed.heap | Prims.Tot | [
"total"
] | [] | [
"FStar.DM4F.Heap.IntStoreFixed.id",
"Prims.b2t",
"Prims.op_disEquality",
"FStar.DM4F.Heap.IntStoreFixed.heap",
"FStar.Pervasives.Native.snd",
"Prims.unit",
"IfcRecursiveHeapReify.fac"
] | [] | false | false | false | false | false | let fac_r a n h =
| (snd (reify (fac a n h) h)) | false | |
IfcRecursiveHeapReify.fst | IfcRecursiveHeapReify.p1_r | val p1_r : lo: FStar.DM4F.Heap.IntStoreFixed.id ->
hi: FStar.DM4F.Heap.IntStoreFixed.id{lo <> hi} ->
h: FStar.DM4F.Heap.IntStoreFixed.heap
-> FStar.DM4F.Heap.IntStoreFixed.heap | let p1_r lo (hi:id{lo<>hi}) h = (* normalize_term *) (snd (reify (p1 lo hi h) h)) | {
"file_name": "examples/rel/IfcRecursiveHeapReify.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 81,
"end_line": 47,
"start_col": 0,
"start_line": 47
} | (*
Copyright 2008-2018 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"Rel.fst.checked",
"prims.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.DM4F.IntStoreFixed.fst.checked",
"FStar.DM4F.Heap.IntStoreFixed.fsti.checked"
],
"interface_file": false,
"source_file": "IfcR... | [
{
"abbrev": true,
"full_module": "FStar.DM4F.IntStoreFixed",
"short_module": "X"
},
{
"abbrev": false,
"full_module": "Rel",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.DM4F.IntStoreFixed",
"short_module": null
},
{
"abbrev": false,
"full_... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
lo: FStar.DM4F.Heap.IntStoreFixed.id ->
hi: FStar.DM4F.Heap.IntStoreFixed.id{lo <> hi} ->
h: FStar.DM4F.Heap.IntStoreFixed.heap
-> FStar.DM4F.Heap.IntStoreFixed.heap | Prims.Tot | [
"total"
] | [] | [
"FStar.DM4F.Heap.IntStoreFixed.id",
"Prims.b2t",
"Prims.op_disEquality",
"FStar.DM4F.Heap.IntStoreFixed.heap",
"FStar.Pervasives.Native.snd",
"Prims.unit",
"IfcRecursiveHeapReify.p1"
] | [] | false | false | false | false | false | let p1_r lo (hi: id{lo <> hi}) h =
| (snd (reify (p1 lo hi h) h)) | false | |
Vale.AsLowStar.Wrapper.fst | Vale.AsLowStar.Wrapper.readable_live_one | val readable_live_one (h: ME.vale_heap) (a: arg)
: Lemma (VSig.readable_one h a ==> live_arg (hs_of_mem (as_mem h)) a) | val readable_live_one (h: ME.vale_heap) (a: arg)
: Lemma (VSig.readable_one h a ==> live_arg (hs_of_mem (as_mem h)) a) | let readable_live_one (h:ME.vale_heap) (a:arg)
: Lemma (VSig.readable_one h a ==>
live_arg (hs_of_mem (as_mem h)) a)
= match a with
| (| TD_Buffer src bt _, x |) ->
Vale.AsLowStar.MemoryHelpers.readable_live #src #bt x h
| (| TD_ImmBuffer src bt ig, x |) ->
Vale.AsLowStar.MemoryHelper... | {
"file_name": "vale/code/arch/x64/interop/Vale.AsLowStar.Wrapper.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 30,
"end_line": 147,
"start_col": 0,
"start_line": 137
} | module Vale.AsLowStar.Wrapper
open Vale.Arch.HeapImpl
open Vale.X64.MemoryAdapters
open Vale.Interop.Base
module B = LowStar.Buffer
module BS = Vale.X64.Machine_Semantics_s
module UV = LowStar.BufferView.Up
module DV = LowStar.BufferView.Down
module HS = FStar.HyperStack
module ME = Vale.X64.Memory
module SI = Vale.X64... | {
"checked_file": "/",
"dependencies": [
"Vale.X64.StateLemmas.fsti.checked",
"Vale.X64.State.fsti.checked",
"Vale.X64.Stack_i.fsti.checked",
"Vale.X64.MemoryAdapters.fsti.checked",
"Vale.X64.Memory.fsti.checked",
"Vale.X64.Machine_Semantics_s.fst.checked",
"Vale.X64.Machine_s.fst.checke... | [
{
"abbrev": false,
"full_module": "FStar.Calc",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "ST"
},
{
"abbrev": true,
"full_module": "Val... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 1,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | h: Vale.X64.Memory.vale_heap -> a: Vale.Interop.Base.arg
-> FStar.Pervasives.Lemma
(ensures
Vale.AsLowStar.ValeSig.readable_one h a ==>
Vale.Interop.Base.live_arg (Vale.Interop.Heap_s.hs_of_mem (Vale.X64.MemoryAdapters.as_mem h))
a) | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"Vale.X64.Memory.vale_heap",
"Vale.Interop.Base.arg",
"Vale.Arch.HeapTypes_s.base_typ",
"Vale.Interop.Base.buffer_qualifiers",
"Vale.Interop.Base.td_as_type",
"Vale.Interop.Base.TD_Buffer",
"Vale.AsLowStar.MemoryHelpers.readable_live",
"Vale.Interop.Base.TD_ImmBuffer",
"FStar.Pervasives.assert_norm"... | [] | false | false | true | false | false | let readable_live_one (h: ME.vale_heap) (a: arg)
: Lemma (VSig.readable_one h a ==> live_arg (hs_of_mem (as_mem h)) a) =
| match a with
| (| TD_Buffer src bt _ , x |) -> Vale.AsLowStar.MemoryHelpers.readable_live #src #bt x h
| (| TD_ImmBuffer src bt ig , x |) ->
Vale.AsLowStar.MemoryHelpers.readable_imm_live #src #bt x h;
assert_norm (ME.buffer_readable h (as_vale_immbuffer #src #bt x) <==>
VSig.readable_one h (| TD_ImmBuffer sr... | false |
Vale.AsLowStar.Wrapper.fst | Vale.AsLowStar.Wrapper.args_b8_lemma | val args_b8_lemma (args: list arg) (x: arg)
: Lemma
(List.memP x args ==>
(match x with
| (| TD_Buffer src bt _ , x |) -> List.memP (mut_to_b8 src x) (args_b8 args)
| (| TD_ImmBuffer src bt _ , x |) -> List.memP (imm_to_b8 src x) (args_b8 args)
| _ -> True)) | val args_b8_lemma (args: list arg) (x: arg)
: Lemma
(List.memP x args ==>
(match x with
| (| TD_Buffer src bt _ , x |) -> List.memP (mut_to_b8 src x) (args_b8 args)
| (| TD_ImmBuffer src bt _ , x |) -> List.memP (imm_to_b8 src x) (args_b8 args)
| _ -> True)) | let rec args_b8_lemma (args:list arg) (x:arg)
: Lemma
(List.memP x args ==>
(match x with
| (| TD_Buffer src bt _, x |) -> List.memP (mut_to_b8 src x) (args_b8 args)
| (| TD_ImmBuffer src bt _, x |) -> List.memP (imm_to_b8 src x) (args_b8 args)
| _ -> True))
= match args wit... | {
"file_name": "vale/code/arch/x64/interop/Vale.AsLowStar.Wrapper.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 23,
"end_line": 75,
"start_col": 0,
"start_line": 64
} | module Vale.AsLowStar.Wrapper
open Vale.Arch.HeapImpl
open Vale.X64.MemoryAdapters
open Vale.Interop.Base
module B = LowStar.Buffer
module BS = Vale.X64.Machine_Semantics_s
module UV = LowStar.BufferView.Up
module DV = LowStar.BufferView.Down
module HS = FStar.HyperStack
module ME = Vale.X64.Memory
module SI = Vale.X64... | {
"checked_file": "/",
"dependencies": [
"Vale.X64.StateLemmas.fsti.checked",
"Vale.X64.State.fsti.checked",
"Vale.X64.Stack_i.fsti.checked",
"Vale.X64.MemoryAdapters.fsti.checked",
"Vale.X64.Memory.fsti.checked",
"Vale.X64.Machine_Semantics_s.fst.checked",
"Vale.X64.Machine_s.fst.checke... | [
{
"abbrev": false,
"full_module": "FStar.Calc",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "ST"
},
{
"abbrev": true,
"full_module": "Val... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 1,
"initial_ifuel": 2,
"max_fuel": 1,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | args: Prims.list Vale.Interop.Base.arg -> x: Vale.Interop.Base.arg
-> FStar.Pervasives.Lemma
(ensures
FStar.List.Tot.Base.memP x args ==>
(match x with
| Prims.Mkdtuple2 #_ #_ (Vale.Interop.Base.TD_Buffer src _ _) x ->
FStar.List.Tot.Base.memP (Vale.Interop.Base.mut_to_b8 src x)
... | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"Prims.list",
"Vale.Interop.Base.arg",
"Vale.AsLowStar.Wrapper.args_b8_lemma",
"Prims.unit",
"Prims._assert",
"Prims.l_imp",
"FStar.List.Tot.Base.memP",
"Prims.l_True",
"Prims.squash",
"Vale.Arch.HeapTypes_s.base_typ",
"Vale.Interop.Base.buffer_qualifiers",
"Vale.Interop.Base.td_as_type",
"V... | [
"recursion"
] | false | false | true | false | false | let rec args_b8_lemma (args: list arg) (x: arg)
: Lemma
(List.memP x args ==>
(match x with
| (| TD_Buffer src bt _ , x |) -> List.memP (mut_to_b8 src x) (args_b8 args)
| (| TD_ImmBuffer src bt _ , x |) -> List.memP (imm_to_b8 src x) (args_b8 args)
| _ -> True)) =
| match args with
| [] -> ()
| a :: q ->
assert (List.memP x q ==> List.memP x args);
args_b8_lemma q x | false |
Vale.AsLowStar.Wrapper.fst | Vale.AsLowStar.Wrapper.readable_cons | val readable_cons (hd: arg) (tl: list arg) (s: ME.vale_heap)
: Lemma VSig.(readable (hd :: tl) s <==> (readable_one s hd /\ readable tl s)) | val readable_cons (hd: arg) (tl: list arg) (s: ME.vale_heap)
: Lemma VSig.(readable (hd :: tl) s <==> (readable_one s hd /\ readable tl s)) | let readable_cons (hd:arg) (tl:list arg) (s:ME.vale_heap)
: Lemma VSig.(readable (hd::tl) s <==> (readable_one s hd /\ readable tl s))
= BigOps.big_and'_cons VSig.(readable_one s) hd tl | {
"file_name": "vale/code/arch/x64/interop/Vale.AsLowStar.Wrapper.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 52,
"end_line": 80,
"start_col": 0,
"start_line": 78
} | module Vale.AsLowStar.Wrapper
open Vale.Arch.HeapImpl
open Vale.X64.MemoryAdapters
open Vale.Interop.Base
module B = LowStar.Buffer
module BS = Vale.X64.Machine_Semantics_s
module UV = LowStar.BufferView.Up
module DV = LowStar.BufferView.Down
module HS = FStar.HyperStack
module ME = Vale.X64.Memory
module SI = Vale.X64... | {
"checked_file": "/",
"dependencies": [
"Vale.X64.StateLemmas.fsti.checked",
"Vale.X64.State.fsti.checked",
"Vale.X64.Stack_i.fsti.checked",
"Vale.X64.MemoryAdapters.fsti.checked",
"Vale.X64.Memory.fsti.checked",
"Vale.X64.Machine_Semantics_s.fst.checked",
"Vale.X64.Machine_s.fst.checke... | [
{
"abbrev": false,
"full_module": "FStar.Calc",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "ST"
},
{
"abbrev": true,
"full_module": "Val... | {
"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 | hd: Vale.Interop.Base.arg -> tl: Prims.list Vale.Interop.Base.arg -> s: Vale.X64.Memory.vale_heap
-> FStar.Pervasives.Lemma
(ensures
Vale.AsLowStar.ValeSig.readable (hd :: tl) s <==>
Vale.AsLowStar.ValeSig.readable_one s hd /\ Vale.AsLowStar.ValeSig.readable tl s) | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"Vale.Interop.Base.arg",
"Prims.list",
"Vale.X64.Memory.vale_heap",
"FStar.BigOps.big_and'_cons",
"Vale.AsLowStar.ValeSig.readable_one",
"Prims.unit",
"Prims.l_True",
"Prims.squash",
"Prims.l_iff",
"Vale.AsLowStar.ValeSig.readable",
"Prims.Cons",
"Prims.l_and",
"Prims.Nil",
"FStar.Pervasiv... | [] | true | false | true | false | false | let readable_cons (hd: arg) (tl: list arg) (s: ME.vale_heap)
: Lemma VSig.(readable (hd :: tl) s <==> (readable_one s hd /\ readable tl s)) =
| BigOps.big_and'_cons VSig.(readable_one s) hd tl | false |
IfcRecursiveHeapReify.fst | IfcRecursiveHeapReify.nat_of | val nat_of (x: int) : nat | val nat_of (x: int) : nat | let nat_of (x:int) : nat = if x < 0 then 0 else x | {
"file_name": "examples/rel/IfcRecursiveHeapReify.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 49,
"end_line": 49,
"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": [
"Rel.fst.checked",
"prims.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.DM4F.IntStoreFixed.fst.checked",
"FStar.DM4F.Heap.IntStoreFixed.fsti.checked"
],
"interface_file": false,
"source_file": "IfcR... | [
{
"abbrev": true,
"full_module": "FStar.DM4F.IntStoreFixed",
"short_module": "X"
},
{
"abbrev": false,
"full_module": "Rel",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.DM4F.IntStoreFixed",
"short_module": null
},
{
"abbrev": false,
"full_... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | x: Prims.int -> Prims.nat | Prims.Tot | [
"total"
] | [] | [
"Prims.int",
"Prims.op_LessThan",
"Prims.bool",
"Prims.nat"
] | [] | false | false | false | true | false | let nat_of (x: int) : nat =
| if x < 0 then 0 else x | false |
Hacl.P256.PrecompTable.fst | Hacl.P256.PrecompTable.precomp_basepoint_table_list_w5 | val precomp_basepoint_table_list_w5:x: list uint64 {FStar.List.Tot.length x = 384} | val precomp_basepoint_table_list_w5:x: list uint64 {FStar.List.Tot.length x = 384} | let precomp_basepoint_table_list_w5: x:list uint64{FStar.List.Tot.length x = 384} =
normalize_term (SPT.precomp_base_table_list mk_p256_precomp_base_table S.base_point 31) | {
"file_name": "code/ecdsap256/Hacl.P256.PrecompTable.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 89,
"end_line": 283,
"start_col": 0,
"start_line": 282
} | module Hacl.P256.PrecompTable
open FStar.HyperStack
open FStar.HyperStack.ST
open FStar.Mul
open Lib.IntTypes
open Lib.Buffer
module ST = FStar.HyperStack.ST
module LSeq = Lib.Sequence
module LE = Lib.Exponentiation
module SE = Spec.Exponentiation
module SPT = Hacl.Spec.PrecompBaseTable
module SPT256 = Hacl.Spec.Pr... | {
"checked_file": "/",
"dependencies": [
"Spec.P256.Lemmas.fsti.checked",
"Spec.P256.fst.checked",
"Spec.Exponentiation.fsti.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.Exponentiation.fsti.checked",
"Lib.Buffer.fsti.checked",
"Hac... | [
{
"abbrev": false,
"full_module": "Hacl.Impl.P256.Group",
"short_module": null
},
{
"abbrev": false,
"full_module": "Hacl.Impl.P256.Point",
"short_module": null
},
{
"abbrev": true,
"full_module": "Spec.P256.Lemmas",
"short_module": "SL"
},
{
"abbrev": true,
"... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 0,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | x:
Prims.list (Lib.IntTypes.int_t Lib.IntTypes.U64 Lib.IntTypes.SEC)
{FStar.List.Tot.Base.length x = 384} | Prims.Tot | [
"total"
] | [] | [
"FStar.Pervasives.normalize_term",
"Prims.list",
"Lib.IntTypes.int_t",
"Lib.IntTypes.U64",
"Lib.IntTypes.SEC",
"Prims.b2t",
"Prims.op_Equality",
"Prims.int",
"FStar.List.Tot.Base.length",
"Hacl.Spec.PrecompBaseTable.precomp_base_table_list",
"Spec.P256.PointOps.proj_point",
"FStar.UInt32.uint_... | [] | false | false | false | false | false | let precomp_basepoint_table_list_w5:x: list uint64 {FStar.List.Tot.length x = 384} =
| normalize_term (SPT.precomp_base_table_list mk_p256_precomp_base_table S.base_point 31) | false |
Vale.AsLowStar.Wrapper.fst | Vale.AsLowStar.Wrapper.eval_code_ts | val eval_code_ts (c: BS.code) (s0: BS.machine_state) (f0: nat) (s1: BS.machine_state) : Type0 | val eval_code_ts (c: BS.code) (s0: BS.machine_state) (f0: nat) (s1: BS.machine_state) : Type0 | let eval_code_ts (c:BS.code)
(s0:BS.machine_state)
(f0:nat)
(s1:BS.machine_state) : Type0 =
VL.state_eq_opt true (BS.machine_eval_code c f0 s0) (Some s1) | {
"file_name": "vale/code/arch/x64/interop/Vale.AsLowStar.Wrapper.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 63,
"end_line": 503,
"start_col": 0,
"start_line": 499
} | module Vale.AsLowStar.Wrapper
open Vale.Arch.HeapImpl
open Vale.X64.MemoryAdapters
open Vale.Interop.Base
module B = LowStar.Buffer
module BS = Vale.X64.Machine_Semantics_s
module UV = LowStar.BufferView.Up
module DV = LowStar.BufferView.Down
module HS = FStar.HyperStack
module ME = Vale.X64.Memory
module SI = Vale.X64... | {
"checked_file": "/",
"dependencies": [
"Vale.X64.StateLemmas.fsti.checked",
"Vale.X64.State.fsti.checked",
"Vale.X64.Stack_i.fsti.checked",
"Vale.X64.MemoryAdapters.fsti.checked",
"Vale.X64.Memory.fsti.checked",
"Vale.X64.Machine_Semantics_s.fst.checked",
"Vale.X64.Machine_s.fst.checke... | [
{
"abbrev": false,
"full_module": "FStar.Calc",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "ST"
},
{
"abbrev": true,
"full_module": "Val... | {
"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.X64.Machine_Semantics_s.code ->
s0: Vale.X64.Machine_Semantics_s.machine_state ->
f0: Prims.nat ->
s1: Vale.X64.Machine_Semantics_s.machine_state
-> Type0 | Prims.Tot | [
"total"
] | [] | [
"Vale.X64.Machine_Semantics_s.code",
"Vale.X64.Machine_Semantics_s.machine_state",
"Prims.nat",
"Vale.X64.Lemmas.state_eq_opt",
"Vale.X64.Machine_Semantics_s.machine_eval_code",
"FStar.Pervasives.Native.Some"
] | [] | false | false | false | true | true | let eval_code_ts (c: BS.code) (s0: BS.machine_state) (f0: nat) (s1: BS.machine_state) : Type0 =
| VL.state_eq_opt true (BS.machine_eval_code c f0 s0) (Some s1) | false |
Hacl.Spec.Chacha20.Lemmas.fst | Hacl.Spec.Chacha20.Lemmas.transpose8_lemma | val transpose8_lemma: k:state 8 -> i:nat{i < 16 * 8} ->
Lemma ((vec_v (transpose8 k).[i / 8]).[i % 8] == ((transpose_state k).[i / 16]).[i % 16]) | val transpose8_lemma: k:state 8 -> i:nat{i < 16 * 8} ->
Lemma ((vec_v (transpose8 k).[i / 8]).[i % 8] == ((transpose_state k).[i / 16]).[i % 16]) | let transpose8_lemma st i =
let r0 = transpose8x8_lseq (sub st 0 8) in
transpose8x8_lemma (sub st 0 8);
let r1 = transpose8x8_lseq (sub st 8 8) in
transpose8x8_lemma (sub st 8 8) | {
"file_name": "code/chacha20/Hacl.Spec.Chacha20.Lemmas.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 33,
"end_line": 34,
"start_col": 0,
"start_line": 30
} | module Hacl.Spec.Chacha20.Lemmas
open FStar.Mul
open Lib.IntTypes
open Lib.Sequence
open Lib.IntVector
open Lib.IntVector.Transpose
open Hacl.Spec.Chacha20.Vec
#set-options "--z3rlimit 50 --fuel 0 --ifuel 1"
/// (vec_v (transpose #w k).[i / w]).[i % w] == ((transpose_state k).[i / 16]).[i % 16]
val transpose4_lemm... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.IntVector.Transpose.fsti.checked",
"Lib.IntVector.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Hacl.Spec.Chacha20.Vec.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul.fst.checked"... | [
{
"abbrev": false,
"full_module": "Hacl.Spec.Chacha20.Vec",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.IntVector.Transpose",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.IntVector",
"short_module": null
},
{
"abbrev": false,
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | k: Hacl.Spec.Chacha20.Vec.state 8 -> i: Prims.nat{i < 16 * 8}
-> FStar.Pervasives.Lemma
(ensures
(Lib.IntVector.vec_v (Hacl.Spec.Chacha20.Vec.transpose8 k).[ i / 8 ]).[ i % 8 ] ==
(Hacl.Spec.Chacha20.Vec.transpose_state k).[ i / 16 ].[ i % 16 ]) | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"Hacl.Spec.Chacha20.Vec.state",
"Prims.nat",
"Prims.b2t",
"Prims.op_LessThan",
"FStar.Mul.op_Star",
"Lib.IntVector.Transpose.transpose8x8_lemma",
"Lib.IntTypes.U32",
"Lib.Sequence.sub",
"Hacl.Spec.Chacha20.Vec.uint32xN",
"Lib.Sequence.lseq",
"Lib.IntVector.vec_t",
"Lib.IntVector.Transpose.tran... | [] | true | false | true | false | false | let transpose8_lemma st i =
| let r0 = transpose8x8_lseq (sub st 0 8) in
transpose8x8_lemma (sub st 0 8);
let r1 = transpose8x8_lseq (sub st 8 8) in
transpose8x8_lemma (sub st 8 8) | false |
Vale.AsLowStar.Wrapper.fst | Vale.AsLowStar.Wrapper.readable_all_live | val readable_all_live (h: ME.vale_heap) (args: list arg)
: Lemma (VSig.readable args h ==> all_live (hs_of_mem (as_mem h)) args) | val readable_all_live (h: ME.vale_heap) (args: list arg)
: Lemma (VSig.readable args h ==> all_live (hs_of_mem (as_mem h)) args) | let rec readable_all_live (h:ME.vale_heap) (args:list arg)
: Lemma (VSig.readable args h ==>
all_live (hs_of_mem (as_mem h)) args)
= match args with
| [] -> ()
| hd::tl ->
readable_cons hd tl h;
all_live_cons hd tl (hs_of_mem (as_mem h));
readable_live_one h hd;
readable_a... | {
"file_name": "vale/code/arch/x64/interop/Vale.AsLowStar.Wrapper.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 28,
"end_line": 158,
"start_col": 0,
"start_line": 149
} | module Vale.AsLowStar.Wrapper
open Vale.Arch.HeapImpl
open Vale.X64.MemoryAdapters
open Vale.Interop.Base
module B = LowStar.Buffer
module BS = Vale.X64.Machine_Semantics_s
module UV = LowStar.BufferView.Up
module DV = LowStar.BufferView.Down
module HS = FStar.HyperStack
module ME = Vale.X64.Memory
module SI = Vale.X64... | {
"checked_file": "/",
"dependencies": [
"Vale.X64.StateLemmas.fsti.checked",
"Vale.X64.State.fsti.checked",
"Vale.X64.Stack_i.fsti.checked",
"Vale.X64.MemoryAdapters.fsti.checked",
"Vale.X64.Memory.fsti.checked",
"Vale.X64.Machine_Semantics_s.fst.checked",
"Vale.X64.Machine_s.fst.checke... | [
{
"abbrev": false,
"full_module": "FStar.Calc",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "ST"
},
{
"abbrev": true,
"full_module": "Val... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 1,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | h: Vale.X64.Memory.vale_heap -> args: Prims.list Vale.Interop.Base.arg
-> FStar.Pervasives.Lemma
(ensures
Vale.AsLowStar.ValeSig.readable args h ==>
Vale.Interop.Base.all_live (Vale.Interop.Heap_s.hs_of_mem (Vale.X64.MemoryAdapters.as_mem h))
args) | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"Vale.X64.Memory.vale_heap",
"Prims.list",
"Vale.Interop.Base.arg",
"Vale.AsLowStar.Wrapper.readable_all_live",
"Prims.unit",
"Vale.AsLowStar.Wrapper.readable_live_one",
"Vale.Interop.Base.all_live_cons",
"Vale.Interop.Heap_s.hs_of_mem",
"Vale.X64.MemoryAdapters.as_mem",
"Vale.AsLowStar.Wrapper.re... | [
"recursion"
] | false | false | true | false | false | let rec readable_all_live (h: ME.vale_heap) (args: list arg)
: Lemma (VSig.readable args h ==> all_live (hs_of_mem (as_mem h)) args) =
| match args with
| [] -> ()
| hd :: tl ->
readable_cons hd tl h;
all_live_cons hd tl (hs_of_mem (as_mem h));
readable_live_one h hd;
readable_all_live h tl | false |
IfcRecursiveHeapReify.fst | IfcRecursiveHeapReify.fac | val fac (a: id) (n: id{a <> n}) (gh: heap)
: IntStore unit
(requires (fun h -> h == gh))
(ensures (fun h1 _ h2 -> True))
(decreases (nat_of (sel gh n))) | val fac (a: id) (n: id{a <> n}) (gh: heap)
: IntStore unit
(requires (fun h -> h == gh))
(ensures (fun h1 _ h2 -> True))
(decreases (nat_of (sel gh n))) | let rec fac (a:id) (n:id{a <> n}) (gh:heap)
: IntStore unit
(requires (fun h -> h == gh))
(ensures (fun h1 _ h2 -> True))
(decreases (nat_of (sel gh n)))
= let vn = read n in
if vn <= 0 then
write a 1
else
begin
let va = read a in
let an = va * vn in
write a an;
let n_1 = vn - 1 in
... | {
"file_name": "examples/rel/IfcRecursiveHeapReify.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 5,
"end_line": 133,
"start_col": 0,
"start_line": 116
} | (*
Copyright 2008-2018 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"Rel.fst.checked",
"prims.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.DM4F.IntStoreFixed.fst.checked",
"FStar.DM4F.Heap.IntStoreFixed.fsti.checked"
],
"interface_file": false,
"source_file": "IfcR... | [
{
"abbrev": true,
"full_module": "FStar.DM4F.IntStoreFixed",
"short_module": "X"
},
{
"abbrev": false,
"full_module": "Rel",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.DM4F.IntStoreFixed",
"short_module": null
},
{
"abbrev": false,
"full_... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
a: FStar.DM4F.Heap.IntStoreFixed.id ->
n: FStar.DM4F.Heap.IntStoreFixed.id{a <> n} ->
gh: FStar.DM4F.Heap.IntStoreFixed.heap
-> FStar.DM4F.IntStoreFixed.IntStore Prims.unit | FStar.DM4F.IntStoreFixed.IntStore | [
""
] | [] | [
"FStar.DM4F.Heap.IntStoreFixed.id",
"Prims.b2t",
"Prims.op_disEquality",
"FStar.DM4F.Heap.IntStoreFixed.heap",
"Prims.op_LessThanOrEqual",
"FStar.DM4F.IntStoreFixed.write",
"Prims.unit",
"Prims.bool",
"IfcRecursiveHeapReify.fac",
"FStar.DM4F.IntStoreFixed.get",
"Prims.int",
"Prims.op_Subtracti... | [
"recursion"
] | false | true | false | false | false | let rec fac (a: id) (n: id{a <> n}) (gh: heap)
: IntStore unit
(requires (fun h -> h == gh))
(ensures (fun h1 _ h2 -> True))
(decreases (nat_of (sel gh n))) =
| let vn = read n in
if vn <= 0
then write a 1
else
let va = read a in
let an = va * vn in
write a an;
let n_1 = vn - 1 in
write n n_1;
let h = X.get () in
fac a n h | false |
IfcRecursiveHeapReify.fst | IfcRecursiveHeapReify.fac_mon | val fac_mon (a: id) (n: id{a <> n}) (h: rel heap)
: Lemma
(requires
(sel (R?.l h) n <= sel (R?.r h) n /\ sel (R?.l h) a <= sel (R?.r h) a /\ sel (R?.l h) a >= 0 /\
sel (R?.r h) a >= 0))
(ensures (sel (fac_r a n (R?.l h)) a <= sel (fac_r a n (R?.r h)) a))
(decreases (dec_metric a ... | val fac_mon (a: id) (n: id{a <> n}) (h: rel heap)
: Lemma
(requires
(sel (R?.l h) n <= sel (R?.r h) n /\ sel (R?.l h) a <= sel (R?.r h) a /\ sel (R?.l h) a >= 0 /\
sel (R?.r h) a >= 0))
(ensures (sel (fac_r a n (R?.l h)) a <= sel (fac_r a n (R?.r h)) a))
(decreases (dec_metric a ... | let rec fac_mon (a:id) (n:id{a<>n}) (h:rel heap) :
Lemma
(requires (sel (R?.l h) n <= sel (R?.r h) n /\
sel (R?.l h) a <= sel (R?.r h) a /\
sel (R?.l h) a >= 0 /\
sel (R?.r h) a >= 0))
(ensures (sel (fac_r a n (R?.l h)) a <= sel (fac_r a n (R?.r h)) a))
(decreases (dec_me... | {
"file_name": "examples/rel/IfcRecursiveHeapReify.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 43,
"end_line": 155,
"start_col": 0,
"start_line": 139
} | (*
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": [
"Rel.fst.checked",
"prims.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.DM4F.IntStoreFixed.fst.checked",
"FStar.DM4F.Heap.IntStoreFixed.fsti.checked"
],
"interface_file": false,
"source_file": "IfcR... | [
{
"abbrev": true,
"full_module": "FStar.DM4F.IntStoreFixed",
"short_module": "X"
},
{
"abbrev": false,
"full_module": "Rel",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.DM4F.IntStoreFixed",
"short_module": null
},
{
"abbrev": false,
"full_... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
a: FStar.DM4F.Heap.IntStoreFixed.id ->
n: FStar.DM4F.Heap.IntStoreFixed.id{a <> n} ->
h: Rel.rel FStar.DM4F.Heap.IntStoreFixed.heap
-> FStar.Pervasives.Lemma
(requires
FStar.DM4F.Heap.IntStoreFixed.sel (R?.l h) n <= FStar.DM4F.Heap.IntStoreFixed.sel (R?.r h) n /\
FStar.DM4F.Heap.Int... | FStar.Pervasives.Lemma | [
"lemma",
""
] | [] | [
"FStar.DM4F.Heap.IntStoreFixed.id",
"Prims.b2t",
"Prims.op_disEquality",
"Rel.rel",
"FStar.DM4F.Heap.IntStoreFixed.heap",
"FStar.Pervasives.Native.Mktuple2",
"Prims.bool",
"Prims.op_LessThanOrEqual",
"FStar.DM4F.Heap.IntStoreFixed.sel",
"IfcRecursiveHeapReify.fac_mon",
"Rel.R",
"Prims.unit",
... | [
"recursion"
] | false | false | true | false | false | let rec fac_mon (a: id) (n: id{a <> n}) (h: rel heap)
: Lemma
(requires
(sel (R?.l h) n <= sel (R?.r h) n /\ sel (R?.l h) a <= sel (R?.r h) a /\ sel (R?.l h) a >= 0 /\
sel (R?.r h) a >= 0))
(ensures (sel (fac_r a n (R?.l h)) a <= sel (fac_r a n (R?.r h)) a))
(decreases (dec_metri... | let R hl hr = h in
let hl'' = upd hl a (sel hl a * sel hl n) in
let hl' = upd hl'' n (sel hl'' n - 1) in
let hr'' = upd hr a (sel hr a * sel hr n) in
let hr' = upd hr'' n (sel hr'' n - 1) in
match sel hl n <= 0, sel hr n <= 0 with
| true, true -> ()
| true, false -> fac_mon a n (R hl hr')
| false, false -> fac_mon a n ... | false |
Vale.AsLowStar.Wrapper.fst | Vale.AsLowStar.Wrapper.core_create_lemma_state | val core_create_lemma_state
(#max_arity: nat)
(#arg_reg: IX64.arg_reg_relation max_arity)
(args: IX64.arg_list)
(h0: HS.mem{mem_roots_p h0 args})
: Lemma
(ensures
(let va_s = LSig.create_initial_vale_state #max_arity #arg_reg args h0 in
fst (IX64.create_initial_trusted_stat... | val core_create_lemma_state
(#max_arity: nat)
(#arg_reg: IX64.arg_reg_relation max_arity)
(args: IX64.arg_list)
(h0: HS.mem{mem_roots_p h0 args})
: Lemma
(ensures
(let va_s = LSig.create_initial_vale_state #max_arity #arg_reg args h0 in
fst (IX64.create_initial_trusted_stat... | let core_create_lemma_state
(#max_arity:nat)
(#arg_reg:IX64.arg_reg_relation max_arity)
(args:IX64.arg_list)
(h0:HS.mem{mem_roots_p h0 args})
: Lemma
(ensures
(let va_s = LSig.create_initial_vale_state #max_arity #arg_reg args h0 in
fst (IX64.create_initial_trusted_state max_ari... | {
"file_name": "vale/code/arch/x64/interop/Vale.AsLowStar.Wrapper.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 65,
"end_line": 312,
"start_col": 0,
"start_line": 285
} | module Vale.AsLowStar.Wrapper
open Vale.Arch.HeapImpl
open Vale.X64.MemoryAdapters
open Vale.Interop.Base
module B = LowStar.Buffer
module BS = Vale.X64.Machine_Semantics_s
module UV = LowStar.BufferView.Up
module DV = LowStar.BufferView.Down
module HS = FStar.HyperStack
module ME = Vale.X64.Memory
module SI = Vale.X64... | {
"checked_file": "/",
"dependencies": [
"Vale.X64.StateLemmas.fsti.checked",
"Vale.X64.State.fsti.checked",
"Vale.X64.Stack_i.fsti.checked",
"Vale.X64.MemoryAdapters.fsti.checked",
"Vale.X64.Memory.fsti.checked",
"Vale.X64.Machine_Semantics_s.fst.checked",
"Vale.X64.Machine_s.fst.checke... | [
{
"abbrev": false,
"full_module": "FStar.Calc",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "ST"
},
{
"abbrev": true,
"full_module": "Val... | {
"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 |
args: Vale.Interop.X64.arg_list ->
h0: FStar.Monotonic.HyperStack.mem{Vale.Interop.Base.mem_roots_p h0 args}
-> FStar.Pervasives.Lemma
(ensures
(let va_s = Vale.AsLowStar.LowStarSig.create_initial_vale_state args h0 in
FStar.Pervasives.Native.fst (Vale.Interop.X64.create_initial_trusted_sta... | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"Prims.nat",
"Vale.Interop.X64.arg_reg_relation",
"Vale.Interop.X64.arg_list",
"FStar.Monotonic.HyperStack.mem",
"Vale.Interop.Base.mem_roots_p",
"Vale.AsLowStar.MemoryHelpers.mk_stack_reveal",
"Vale.X64.Machine_Semantics_s.__proj__Mkmachine_state__item__ms_stack",
"Prims.unit",
"Prims._assert",
"... | [] | false | false | true | false | false | let core_create_lemma_state
(#max_arity: nat)
(#arg_reg: IX64.arg_reg_relation max_arity)
(args: IX64.arg_list)
(h0: HS.mem{mem_roots_p h0 args})
: Lemma
(ensures
(let va_s = LSig.create_initial_vale_state #max_arity #arg_reg args h0 in
fst (IX64.create_initial_trusted_stat... | let va_s = LSig.create_initial_vale_state #max_arity #arg_reg args h0 in
let tr_s = fst (IX64.create_initial_trusted_state max_arity arg_reg args h0) in
let sl_s = SL.state_to_S va_s in
assert (tr_s.BS.ms_stackTaint == va_s.VS.vs_stackTaint);
let aux_flag (f: MS.flag) : Lemma (tr_s.BS.ms_flags f == sl_s.BS.ms_flags f) ... | false |
Vale.AsLowStar.Wrapper.fst | Vale.AsLowStar.Wrapper.core_create_lemma_readable | val core_create_lemma_readable
(#max_arity: nat)
(#arg_reg: IX64.arg_reg_relation max_arity)
(args: IX64.arg_list)
(h0: HS.mem{mem_roots_p h0 args})
: Lemma
(ensures
(let va_s = LSig.create_initial_vale_state #max_arity #arg_reg args h0 in
VSig.readable args (ME.get_vale_he... | val core_create_lemma_readable
(#max_arity: nat)
(#arg_reg: IX64.arg_reg_relation max_arity)
(args: IX64.arg_list)
(h0: HS.mem{mem_roots_p h0 args})
: Lemma
(ensures
(let va_s = LSig.create_initial_vale_state #max_arity #arg_reg args h0 in
VSig.readable args (ME.get_vale_he... | let core_create_lemma_readable
(#max_arity:nat)
(#arg_reg:IX64.arg_reg_relation max_arity)
(args:IX64.arg_list)
(h0:HS.mem{mem_roots_p h0 args})
: Lemma
(ensures
(let va_s = LSig.create_initial_vale_state #max_arity #arg_reg args h0 in
VSig.readable args (ME.get_vale_heap va_s.V... | {
"file_name": "vale/code/arch/x64/interop/Vale.AsLowStar.Wrapper.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 28,
"end_line": 135,
"start_col": 0,
"start_line": 92
} | module Vale.AsLowStar.Wrapper
open Vale.Arch.HeapImpl
open Vale.X64.MemoryAdapters
open Vale.Interop.Base
module B = LowStar.Buffer
module BS = Vale.X64.Machine_Semantics_s
module UV = LowStar.BufferView.Up
module DV = LowStar.BufferView.Down
module HS = FStar.HyperStack
module ME = Vale.X64.Memory
module SI = Vale.X64... | {
"checked_file": "/",
"dependencies": [
"Vale.X64.StateLemmas.fsti.checked",
"Vale.X64.State.fsti.checked",
"Vale.X64.Stack_i.fsti.checked",
"Vale.X64.MemoryAdapters.fsti.checked",
"Vale.X64.Memory.fsti.checked",
"Vale.X64.Machine_Semantics_s.fst.checked",
"Vale.X64.Machine_s.fst.checke... | [
{
"abbrev": false,
"full_module": "FStar.Calc",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "ST"
},
{
"abbrev": true,
"full_module": "Val... | {
"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 |
args: Vale.Interop.X64.arg_list ->
h0: FStar.Monotonic.HyperStack.mem{Vale.Interop.Base.mem_roots_p h0 args}
-> FStar.Pervasives.Lemma
(ensures
(let va_s = Vale.AsLowStar.LowStarSig.create_initial_vale_state args h0 in
Vale.AsLowStar.ValeSig.readable args
(Vale.X64.Memory.get_vale... | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"Prims.nat",
"Vale.Interop.X64.arg_reg_relation",
"Vale.Interop.X64.arg_list",
"FStar.Monotonic.HyperStack.mem",
"Vale.Interop.Base.mem_roots_p",
"Prims.list",
"Vale.Interop.Base.arg",
"Vale.Interop.Base.mem_roots",
"Prims.unit",
"Prims.l_True",
"Prims.squash",
"Vale.AsLowStar.ValeSig.readable... | [] | false | false | true | false | false | let core_create_lemma_readable
(#max_arity: nat)
(#arg_reg: IX64.arg_reg_relation max_arity)
(args: IX64.arg_list)
(h0: HS.mem{mem_roots_p h0 args})
: Lemma
(ensures
(let va_s = LSig.create_initial_vale_state #max_arity #arg_reg args h0 in
VSig.readable args (ME.get_vale_he... | let readable_registered_one (a: arg) (h: ME.vale_heap)
: Lemma VSig.(arg_is_registered_root h a <==> readable_one h a) =
match a with
| (| TD_Buffer src bt _ , x |) ->
Vale.AsLowStar.MemoryHelpers.reveal_readable #src #bt x h;
Vale.AsLowStar.MemoryHelpers.buffer_writeable_reveal src bt x
| (| TD_ImmBu... | false |
IfcRecursiveHeapReify.fst | IfcRecursiveHeapReify.ni_p1 | val ni_p1 (lo: id) (hi: id{lo <> hi}) (env: env) (h: rel heap)
: Lemma (requires (Low? (env lo) /\ High? (env hi) /\ low_equiv env h))
(ensures (low_equiv env (R (p1_r lo hi (R?.l h)) (p1_r lo hi (R?.r h)))))
(decreases (dec_metric lo hi h)) | val ni_p1 (lo: id) (hi: id{lo <> hi}) (env: env) (h: rel heap)
: Lemma (requires (Low? (env lo) /\ High? (env hi) /\ low_equiv env h))
(ensures (low_equiv env (R (p1_r lo hi (R?.l h)) (p1_r lo hi (R?.r h)))))
(decreases (dec_metric lo hi h)) | let rec ni_p1 (lo:id) (hi:id{lo<>hi}) (env:env) (h :rel heap) :
Lemma
(requires (Low? (env lo) /\
High? (env hi) /\
low_equiv env h))
(ensures (low_equiv env (R (p1_r lo hi (R?.l h)) (p1_r lo hi (R?.r h)))))
(decreases (dec_metric lo hi h)) =
let R hl hr = h in
let hl' = upd hl hi (... | {
"file_name": "examples/rel/IfcRecursiveHeapReify.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 7,
"end_line": 111,
"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": [
"Rel.fst.checked",
"prims.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.DM4F.IntStoreFixed.fst.checked",
"FStar.DM4F.Heap.IntStoreFixed.fsti.checked"
],
"interface_file": false,
"source_file": "IfcR... | [
{
"abbrev": true,
"full_module": "FStar.DM4F.IntStoreFixed",
"short_module": "X"
},
{
"abbrev": false,
"full_module": "Rel",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.DM4F.IntStoreFixed",
"short_module": null
},
{
"abbrev": false,
"full_... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
lo: FStar.DM4F.Heap.IntStoreFixed.id ->
hi: FStar.DM4F.Heap.IntStoreFixed.id{lo <> hi} ->
env: IfcRecursiveHeapReify.env ->
h: Rel.rel FStar.DM4F.Heap.IntStoreFixed.heap
-> FStar.Pervasives.Lemma
(requires Low? (env lo) /\ High? (env hi) /\ IfcRecursiveHeapReify.low_equiv env h)
(ensures
... | FStar.Pervasives.Lemma | [
"lemma",
""
] | [] | [
"FStar.DM4F.Heap.IntStoreFixed.id",
"Prims.b2t",
"Prims.op_disEquality",
"IfcRecursiveHeapReify.env",
"Rel.rel",
"FStar.DM4F.Heap.IntStoreFixed.heap",
"FStar.Pervasives.Native.Mktuple2",
"Prims.bool",
"Prims.op_LessThanOrEqual",
"FStar.DM4F.Heap.IntStoreFixed.sel",
"Prims.cut",
"IfcRecursiveHe... | [
"recursion"
] | false | false | true | false | false | let rec ni_p1 (lo: id) (hi: id{lo <> hi}) (env: env) (h: rel heap)
: Lemma (requires (Low? (env lo) /\ High? (env hi) /\ low_equiv env h))
(ensures (low_equiv env (R (p1_r lo hi (R?.l h)) (p1_r lo hi (R?.r h)))))
(decreases (dec_metric lo hi h)) =
| let R hl hr = h in
let hl' = upd hl hi (sel hl hi - 1) in
let hr' = upd hr hi (sel hr hi - 1) in
match sel hl hi <= 0, sel hr hi <= 0 with
| true, true ->
let hl'' = upd hl lo (sel hl lo + 1) in
let hr'' = upd hr lo (sel hr lo + 1) in
cut (low_equiv env (R hl'' hr''))
| true, false ->
let hl2 = p1_r lo hi hl in... | false |
Vale.Stdcalls.X64.GCM_IV.fst | Vale.Stdcalls.X64.GCM_IV.compute_iv_lemma' | val compute_iv_lemma'
(iv: Ghost.erased supported_iv_LE)
(code: V.va_code)
(_win: bool)
(iv_b: b128)
(num_bytes len: uint64)
(j0_b iv_extra_b hkeys_b: b128)
(va_s0: V.va_state)
: Ghost (V.va_state & V.va_fuel)
(requires compute_iv_pre iv code iv_b num_bytes len j0_b i... | val compute_iv_lemma'
(iv: Ghost.erased supported_iv_LE)
(code: V.va_code)
(_win: bool)
(iv_b: b128)
(num_bytes len: uint64)
(j0_b iv_extra_b hkeys_b: b128)
(va_s0: V.va_state)
: Ghost (V.va_state & V.va_fuel)
(requires compute_iv_pre iv code iv_b num_bytes len j0_b i... | let compute_iv_lemma'
(iv:Ghost.erased supported_iv_LE)
(code:V.va_code)
(_win:bool)
(iv_b:b128)
(num_bytes:uint64)
(len:uint64)
(j0_b:b128)
(iv_extra_b:b128)
(hkeys_b:b128)
(va_s0:V.va_state)
: Ghost (V.va_state & V.va_fuel)
(requires compute_iv_pre iv code iv_b num_bytes ... | {
"file_name": "vale/code/arch/x64/interop/Vale.Stdcalls.X64.GCM_IV.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 13,
"end_line": 118,
"start_col": 0,
"start_line": 89
} | module Vale.Stdcalls.X64.GCM_IV
open FStar.HyperStack.ST
module B = LowStar.Buffer
module HS = FStar.HyperStack
open FStar.Mul
module DV = LowStar.BufferView.Down
module UV = LowStar.BufferView.Up
open Vale.Def.Types_s
open Vale.Interop.Base
module IX64 = Vale.Interop.X64
module VSig = Vale.AsLowStar.ValeSig
module ... | {
"checked_file": "/",
"dependencies": [
"Vale.X64.State.fsti.checked",
"Vale.X64.MemoryAdapters.fsti.checked",
"Vale.X64.Memory.fsti.checked",
"Vale.X64.Machine_s.fst.checked",
"Vale.X64.Decls.fsti.checked",
"Vale.Interop.X64.fsti.checked",
"Vale.Interop.Base.fst.checked",
"Vale.Int... | [
{
"abbrev": false,
"full_module": "Vale.AES.GCM_s",
"short_module": null
},
{
"abbrev": true,
"full_module": "Vale.AES.X64.GCMencryptOpt",
"short_module": "GC"
},
{
"abbrev": true,
"full_module": "Vale.X64.Machine_s",
"short_module": "MS"
},
{
"abbrev": true,
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 1,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
iv: FStar.Ghost.erased Vale.AES.GCM_s.supported_iv_LE ->
code: Vale.X64.Decls.va_code ->
_win: Prims.bool ->
iv_b: Vale.Stdcalls.X64.GCM_IV.b128 ->
num_bytes: Vale.Stdcalls.X64.GCM_IV.uint64 ->
len: Vale.Stdcalls.X64.GCM_IV.uint64 ->
j0_b: Vale.Stdcalls.X64.GCM_IV.b128 ->
iv_extra_b: Va... | Prims.Ghost | [] | [] | [
"FStar.Ghost.erased",
"Vale.AES.GCM_s.supported_iv_LE",
"Vale.X64.Decls.va_code",
"Prims.bool",
"Vale.Stdcalls.X64.GCM_IV.b128",
"Vale.Stdcalls.X64.GCM_IV.uint64",
"Vale.X64.Decls.va_state",
"Vale.X64.Decls.va_fuel",
"FStar.Pervasives.Native.Mktuple2",
"Prims.unit",
"Vale.AsLowStar.MemoryHelpers... | [] | false | false | false | false | false | let compute_iv_lemma'
(iv: Ghost.erased supported_iv_LE)
(code: V.va_code)
(_win: bool)
(iv_b: b128)
(num_bytes len: uint64)
(j0_b iv_extra_b hkeys_b: b128)
(va_s0: V.va_state)
: Ghost (V.va_state & V.va_fuel)
(requires compute_iv_pre iv code iv_b num_bytes len j0_b i... | let va_s1, f =
GC.va_lemma_Compute_iv_stdcall code va_s0 IA.win (Ghost.reveal iv) (as_vale_buffer iv_b)
(UInt64.v num_bytes) (UInt64.v len) (as_vale_buffer j0_b) (as_vale_buffer iv_extra_b)
(as_vale_buffer hkeys_b)
in
Vale.AsLowStar.MemoryHelpers.buffer_writeable_reveal ME.TUInt8 ME.TUInt128 iv_b;
Vale.AsLowS... | false |
Vale.AsLowStar.Wrapper.fst | Vale.AsLowStar.Wrapper.core_create_lemma_disjointness | val core_create_lemma_disjointness (args: list arg {disjoint_or_eq args})
: Lemma (ensures VSig.disjoint_or_eq args) | val core_create_lemma_disjointness (args: list arg {disjoint_or_eq args})
: Lemma (ensures VSig.disjoint_or_eq args) | let rec core_create_lemma_disjointness
(args:list arg{disjoint_or_eq args})
: Lemma
(ensures VSig.disjoint_or_eq args)
= match args with
| [] -> ()
| hd::tl ->
disjoint_or_eq_cons hd tl;
BigOps.pairwise_and'_cons VSig.disjoint_or_eq_1 hd tl;
core_create_lemma_disjointness tl;
... | {
"file_name": "vale/code/arch/x64/interop/Vale.AsLowStar.Wrapper.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 12,
"end_line": 60,
"start_col": 0,
"start_line": 39
} | module Vale.AsLowStar.Wrapper
open Vale.Arch.HeapImpl
open Vale.X64.MemoryAdapters
open Vale.Interop.Base
module B = LowStar.Buffer
module BS = Vale.X64.Machine_Semantics_s
module UV = LowStar.BufferView.Up
module DV = LowStar.BufferView.Down
module HS = FStar.HyperStack
module ME = Vale.X64.Memory
module SI = Vale.X64... | {
"checked_file": "/",
"dependencies": [
"Vale.X64.StateLemmas.fsti.checked",
"Vale.X64.State.fsti.checked",
"Vale.X64.Stack_i.fsti.checked",
"Vale.X64.MemoryAdapters.fsti.checked",
"Vale.X64.Memory.fsti.checked",
"Vale.X64.Machine_Semantics_s.fst.checked",
"Vale.X64.Machine_s.fst.checke... | [
{
"abbrev": false,
"full_module": "FStar.Calc",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "ST"
},
{
"abbrev": true,
"full_module": "Val... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 2,
"max_fuel": 1,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | args: Prims.list Vale.Interop.Base.arg {Vale.Interop.Base.disjoint_or_eq args}
-> FStar.Pervasives.Lemma (ensures Vale.AsLowStar.ValeSig.disjoint_or_eq args) | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"Prims.list",
"Vale.Interop.Base.arg",
"Vale.Interop.Base.disjoint_or_eq",
"Prims.unit",
"FStar.BigOps.big_and'",
"Vale.Interop.Base.disjoint_or_eq_1",
"Prims.squash",
"Vale.AsLowStar.ValeSig.disjoint_or_eq_1",
"Prims.Nil",
"FStar.Pervasives.pattern",
"FStar.BigOps.big_and'_cons",
"Prims._asse... | [
"recursion"
] | false | false | true | false | false | let rec core_create_lemma_disjointness (args: list arg {disjoint_or_eq args})
: Lemma (ensures VSig.disjoint_or_eq args) =
| match args with
| [] -> ()
| hd :: tl ->
disjoint_or_eq_cons hd tl;
BigOps.pairwise_and'_cons VSig.disjoint_or_eq_1 hd tl;
core_create_lemma_disjointness tl;
assert (VSig.disjoint_or_eq tl);
let rec aux (n: list arg)
: Lemma (requires (BigOps.big_and' (disjoint_or_eq_1 hd) n))
(ensures (BigOps.b... | false |
Vale.X64.Memory.fst | Vale.X64.Memory.b8 | val b8 : Type0 | let b8 = IB.b8 | {
"file_name": "vale/code/arch/x64/Vale.X64.Memory.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 14,
"end_line": 23,
"start_col": 0,
"start_line": 23
} | module Vale.X64.Memory
include Vale.Interop.Types
friend Vale.Arch.Heap
open Vale.Def.Opaque_s
open Vale.Arch.HeapImpl
open Vale.Arch.Heap
open Vale.Interop.Base
module IB = Vale.Interop.Base
module I = Vale.Interop
module HS = FStar.HyperStack
module HST = FStar.HyperStack.ST
module MB = LowStar.Monotonic.Buffer
modul... | {
"checked_file": "/",
"dependencies": [
"Vale.X64.Machine_Semantics_s.fst.checked",
"Vale.X64.Machine_s.fst.checked",
"Vale.Lib.Seqs_s.fst.checked",
"Vale.Lib.BufferViewHelpers.fst.checked",
"Vale.Interop.Views.fsti.checked",
"Vale.Interop.Types.fst.checked",
"Vale.Interop.Base.fst.chec... | [
{
"abbrev": true,
"full_module": "Vale.X64.Machine_Semantics_s",
"short_module": "S"
},
{
"abbrev": true,
"full_module": "FStar.Heap",
"short_module": "H"
},
{
"abbrev": false,
"full_module": "Vale.Lib.BufferViewHelpers",
"short_module": null
},
{
"abbrev": true,
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 2,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | Type0 | Prims.Tot | [
"total"
] | [] | [
"Vale.Interop.Types.b8"
] | [] | false | false | false | true | true | let b8 =
| IB.b8 | false | |
Vale.AsLowStar.Wrapper.fst | Vale.AsLowStar.Wrapper.lemma_register_args'_aux | val lemma_register_args'_aux
(max_arity: nat)
(arg_reg: IX64.arg_reg_relation max_arity)
(n: nat)
(args: list arg {List.length args = n})
(regs1 regs2: IX64.registers)
: Lemma
(requires
register_args' max_arity arg_reg n args regs1 /\
(forall r.
(foral... | val lemma_register_args'_aux
(max_arity: nat)
(arg_reg: IX64.arg_reg_relation max_arity)
(n: nat)
(args: list arg {List.length args = n})
(regs1 regs2: IX64.registers)
: Lemma
(requires
register_args' max_arity arg_reg n args regs1 /\
(forall r.
(foral... | let rec lemma_register_args'_aux
(max_arity:nat)
(arg_reg:IX64.arg_reg_relation max_arity)
(n:nat)
(args:list arg{List.length args = n})
(regs1 regs2:IX64.registers)
: Lemma
(requires
register_args' max_arity arg_reg n args regs1 /\
(forall r. (forall (i:IX64.reg_nat max_arit... | {
"file_name": "vale/code/arch/x64/interop/Vale.AsLowStar.Wrapper.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 69,
"end_line": 225,
"start_col": 0,
"start_line": 209
} | module Vale.AsLowStar.Wrapper
open Vale.Arch.HeapImpl
open Vale.X64.MemoryAdapters
open Vale.Interop.Base
module B = LowStar.Buffer
module BS = Vale.X64.Machine_Semantics_s
module UV = LowStar.BufferView.Up
module DV = LowStar.BufferView.Down
module HS = FStar.HyperStack
module ME = Vale.X64.Memory
module SI = Vale.X64... | {
"checked_file": "/",
"dependencies": [
"Vale.X64.StateLemmas.fsti.checked",
"Vale.X64.State.fsti.checked",
"Vale.X64.Stack_i.fsti.checked",
"Vale.X64.MemoryAdapters.fsti.checked",
"Vale.X64.Memory.fsti.checked",
"Vale.X64.Machine_Semantics_s.fst.checked",
"Vale.X64.Machine_s.fst.checke... | [
{
"abbrev": false,
"full_module": "FStar.Calc",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "ST"
},
{
"abbrev": true,
"full_module": "Val... | {
"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 |
max_arity: Prims.nat ->
arg_reg: Vale.Interop.X64.arg_reg_relation max_arity ->
n: Prims.nat ->
args: Prims.list Vale.Interop.Base.arg {FStar.List.Tot.Base.length args = n} ->
regs1: Vale.Interop.X64.registers ->
regs2: Vale.Interop.X64.registers
-> FStar.Pervasives.Lemma
(requires
... | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"Prims.nat",
"Vale.Interop.X64.arg_reg_relation",
"Prims.list",
"Vale.Interop.Base.arg",
"Prims.b2t",
"Prims.op_Equality",
"FStar.List.Tot.Base.length",
"Vale.Interop.X64.registers",
"Vale.AsLowStar.Wrapper.lemma_register_args'_aux",
"Prims.op_Subtraction",
"Prims.unit",
"Prims.l_and",
"Vale... | [
"recursion"
] | false | false | true | false | false | let rec lemma_register_args'_aux
(max_arity: nat)
(arg_reg: IX64.arg_reg_relation max_arity)
(n: nat)
(args: list arg {List.length args = n})
(regs1 regs2: IX64.registers)
: Lemma
(requires
register_args' max_arity arg_reg n args regs1 /\
(forall r.
(f... | match args with
| [] -> ()
| hd :: tl -> lemma_register_args'_aux max_arity arg_reg (n - 1) tl regs1 regs2 | false |
Vale.X64.Memory.fst | Vale.X64.Memory.get_heaplet_id | val get_heaplet_id (h:vale_heap) : option heaplet_id | val get_heaplet_id (h:vale_heap) : option heaplet_id | let get_heaplet_id h =
h.heapletId | {
"file_name": "vale/code/arch/x64/Vale.X64.Memory.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 13,
"end_line": 29,
"start_col": 0,
"start_line": 28
} | module Vale.X64.Memory
include Vale.Interop.Types
friend Vale.Arch.Heap
open Vale.Def.Opaque_s
open Vale.Arch.HeapImpl
open Vale.Arch.Heap
open Vale.Interop.Base
module IB = Vale.Interop.Base
module I = Vale.Interop
module HS = FStar.HyperStack
module HST = FStar.HyperStack.ST
module MB = LowStar.Monotonic.Buffer
modul... | {
"checked_file": "/",
"dependencies": [
"Vale.X64.Machine_Semantics_s.fst.checked",
"Vale.X64.Machine_s.fst.checked",
"Vale.Lib.Seqs_s.fst.checked",
"Vale.Lib.BufferViewHelpers.fst.checked",
"Vale.Interop.Views.fsti.checked",
"Vale.Interop.Types.fst.checked",
"Vale.Interop.Base.fst.chec... | [
{
"abbrev": true,
"full_module": "Vale.X64.Machine_Semantics_s",
"short_module": "S"
},
{
"abbrev": true,
"full_module": "FStar.Heap",
"short_module": "H"
},
{
"abbrev": false,
"full_module": "Vale.Lib.BufferViewHelpers",
"short_module": null
},
{
"abbrev": true,
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 2,
"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.Arch.HeapImpl.vale_heap -> FStar.Pervasives.Native.option Vale.Arch.HeapImpl.heaplet_id | Prims.Tot | [
"total"
] | [] | [
"Vale.Arch.HeapImpl.vale_heap",
"Vale.Arch.HeapImpl.__proj__ValeHeap__item__heapletId",
"FStar.Pervasives.Native.option",
"Vale.Arch.HeapImpl.heaplet_id"
] | [] | false | false | false | true | false | let get_heaplet_id h =
| h.heapletId | false |
Vale.X64.Memory.fst | Vale.X64.Memory.uint8_view | val uint8_view : LowStar.BufferView.Up.view FStar.UInt8.t FStar.UInt8.t | let uint8_view = Vale.Interop.Views.up_view8 | {
"file_name": "vale/code/arch/x64/Vale.X64.Memory.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 44,
"end_line": 58,
"start_col": 0,
"start_line": 58
} | module Vale.X64.Memory
include Vale.Interop.Types
friend Vale.Arch.Heap
open Vale.Def.Opaque_s
open Vale.Arch.HeapImpl
open Vale.Arch.Heap
open Vale.Interop.Base
module IB = Vale.Interop.Base
module I = Vale.Interop
module HS = FStar.HyperStack
module HST = FStar.HyperStack.ST
module MB = LowStar.Monotonic.Buffer
modul... | {
"checked_file": "/",
"dependencies": [
"Vale.X64.Machine_Semantics_s.fst.checked",
"Vale.X64.Machine_s.fst.checked",
"Vale.Lib.Seqs_s.fst.checked",
"Vale.Lib.BufferViewHelpers.fst.checked",
"Vale.Interop.Views.fsti.checked",
"Vale.Interop.Types.fst.checked",
"Vale.Interop.Base.fst.chec... | [
{
"abbrev": true,
"full_module": "Vale.X64.Machine_Semantics_s",
"short_module": "S"
},
{
"abbrev": true,
"full_module": "FStar.Heap",
"short_module": "H"
},
{
"abbrev": false,
"full_module": "Vale.Lib.BufferViewHelpers",
"short_module": null
},
{
"abbrev": true,
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 2,
"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 | LowStar.BufferView.Up.view FStar.UInt8.t FStar.UInt8.t | Prims.Tot | [
"total"
] | [] | [
"Vale.Interop.Views.up_view8"
] | [] | false | false | false | true | false | let uint8_view =
| Vale.Interop.Views.up_view8 | false | |
Vale.X64.Memory.fst | Vale.X64.Memory.tuint16 | val tuint16 : Prims.eqtype | let tuint16 = UInt16.t | {
"file_name": "vale/code/arch/x64/Vale.X64.Memory.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 22,
"end_line": 32,
"start_col": 0,
"start_line": 32
} | module Vale.X64.Memory
include Vale.Interop.Types
friend Vale.Arch.Heap
open Vale.Def.Opaque_s
open Vale.Arch.HeapImpl
open Vale.Arch.Heap
open Vale.Interop.Base
module IB = Vale.Interop.Base
module I = Vale.Interop
module HS = FStar.HyperStack
module HST = FStar.HyperStack.ST
module MB = LowStar.Monotonic.Buffer
modul... | {
"checked_file": "/",
"dependencies": [
"Vale.X64.Machine_Semantics_s.fst.checked",
"Vale.X64.Machine_s.fst.checked",
"Vale.Lib.Seqs_s.fst.checked",
"Vale.Lib.BufferViewHelpers.fst.checked",
"Vale.Interop.Views.fsti.checked",
"Vale.Interop.Types.fst.checked",
"Vale.Interop.Base.fst.chec... | [
{
"abbrev": true,
"full_module": "Vale.X64.Machine_Semantics_s",
"short_module": "S"
},
{
"abbrev": true,
"full_module": "FStar.Heap",
"short_module": "H"
},
{
"abbrev": false,
"full_module": "Vale.Lib.BufferViewHelpers",
"short_module": null
},
{
"abbrev": true,
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 2,
"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.eqtype | Prims.Tot | [
"total"
] | [] | [
"FStar.UInt16.t"
] | [] | false | false | false | true | false | let tuint16 =
| UInt16.t | false | |
Vale.AsLowStar.Wrapper.fst | Vale.AsLowStar.Wrapper.stack_args' | val stack_args'
(max_arity n: nat)
(args: list arg {List.Tot.length args = n})
(rsp: int)
(stack: Map.t int Vale.Def.Words_s.nat8)
: prop | val stack_args'
(max_arity n: nat)
(args: list arg {List.Tot.length args = n})
(rsp: int)
(stack: Map.t int Vale.Def.Words_s.nat8)
: prop | let rec stack_args' (max_arity:nat)
(n:nat)
(args:list arg{List.Tot.length args = n})
(rsp:int)
(stack:Map.t int Vale.Def.Words_s.nat8)
: prop =
match args with
| [] -> True
| hd::tl ->
stack_args' ma... | {
"file_name": "vale/code/arch/x64/interop/Vale.AsLowStar.Wrapper.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 63,
"end_line": 332,
"start_col": 0,
"start_line": 314
} | module Vale.AsLowStar.Wrapper
open Vale.Arch.HeapImpl
open Vale.X64.MemoryAdapters
open Vale.Interop.Base
module B = LowStar.Buffer
module BS = Vale.X64.Machine_Semantics_s
module UV = LowStar.BufferView.Up
module DV = LowStar.BufferView.Down
module HS = FStar.HyperStack
module ME = Vale.X64.Memory
module SI = Vale.X64... | {
"checked_file": "/",
"dependencies": [
"Vale.X64.StateLemmas.fsti.checked",
"Vale.X64.State.fsti.checked",
"Vale.X64.Stack_i.fsti.checked",
"Vale.X64.MemoryAdapters.fsti.checked",
"Vale.X64.Memory.fsti.checked",
"Vale.X64.Machine_Semantics_s.fst.checked",
"Vale.X64.Machine_s.fst.checke... | [
{
"abbrev": false,
"full_module": "FStar.Calc",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "ST"
},
{
"abbrev": true,
"full_module": "Val... | {
"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 |
max_arity: Prims.nat ->
n: Prims.nat ->
args: Prims.list Vale.Interop.Base.arg {FStar.List.Tot.Base.length args = n} ->
rsp: Prims.int ->
stack: FStar.Map.t Prims.int Vale.Def.Words_s.nat8
-> Prims.prop | Prims.Tot | [
"total"
] | [] | [
"Prims.nat",
"Prims.list",
"Vale.Interop.Base.arg",
"Prims.b2t",
"Prims.op_Equality",
"FStar.List.Tot.Base.length",
"Prims.int",
"FStar.Map.t",
"Vale.Def.Words_s.nat8",
"Prims.l_True",
"Prims.l_and",
"Vale.AsLowStar.Wrapper.stack_args'",
"Prims.op_Subtraction",
"Prims.op_LessThanOrEqual",
... | [
"recursion"
] | false | false | false | false | true | let rec stack_args'
(max_arity n: nat)
(args: list arg {List.Tot.length args = n})
(rsp: int)
(stack: Map.t int Vale.Def.Words_s.nat8)
: prop =
| match args with
| [] -> True
| hd :: tl ->
stack_args' max_arity (n - 1) tl rsp stack /\
(if n <= max_arity
then True
else
let ptr = ((n - max_arity) - 1) * 8 + (if IA.win then 32 else 0) + 8 + rsp in
BS.valid_addr64 ptr stack /\ BS.get_heap_val64 ptr stack == IX64.arg_as_nat64 hd) | false |
Vale.X64.Memory.fst | Vale.X64.Memory.uint16_view | val uint16_view : LowStar.BufferView.Up.view FStar.UInt8.t FStar.UInt16.t | let uint16_view = Vale.Interop.Views.up_view16 | {
"file_name": "vale/code/arch/x64/Vale.X64.Memory.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 46,
"end_line": 59,
"start_col": 0,
"start_line": 59
} | module Vale.X64.Memory
include Vale.Interop.Types
friend Vale.Arch.Heap
open Vale.Def.Opaque_s
open Vale.Arch.HeapImpl
open Vale.Arch.Heap
open Vale.Interop.Base
module IB = Vale.Interop.Base
module I = Vale.Interop
module HS = FStar.HyperStack
module HST = FStar.HyperStack.ST
module MB = LowStar.Monotonic.Buffer
modul... | {
"checked_file": "/",
"dependencies": [
"Vale.X64.Machine_Semantics_s.fst.checked",
"Vale.X64.Machine_s.fst.checked",
"Vale.Lib.Seqs_s.fst.checked",
"Vale.Lib.BufferViewHelpers.fst.checked",
"Vale.Interop.Views.fsti.checked",
"Vale.Interop.Types.fst.checked",
"Vale.Interop.Base.fst.chec... | [
{
"abbrev": true,
"full_module": "Vale.X64.Machine_Semantics_s",
"short_module": "S"
},
{
"abbrev": true,
"full_module": "FStar.Heap",
"short_module": "H"
},
{
"abbrev": false,
"full_module": "Vale.Lib.BufferViewHelpers",
"short_module": null
},
{
"abbrev": true,
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 2,
"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 | LowStar.BufferView.Up.view FStar.UInt8.t FStar.UInt16.t | Prims.Tot | [
"total"
] | [] | [
"Vale.Interop.Views.up_view16"
] | [] | false | false | false | true | false | let uint16_view =
| Vale.Interop.Views.up_view16 | false | |
Vale.X64.Memory.fst | Vale.X64.Memory.tuint64 | val tuint64 : Prims.eqtype | let tuint64 = UInt64.t | {
"file_name": "vale/code/arch/x64/Vale.X64.Memory.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 22,
"end_line": 34,
"start_col": 0,
"start_line": 34
} | module Vale.X64.Memory
include Vale.Interop.Types
friend Vale.Arch.Heap
open Vale.Def.Opaque_s
open Vale.Arch.HeapImpl
open Vale.Arch.Heap
open Vale.Interop.Base
module IB = Vale.Interop.Base
module I = Vale.Interop
module HS = FStar.HyperStack
module HST = FStar.HyperStack.ST
module MB = LowStar.Monotonic.Buffer
modul... | {
"checked_file": "/",
"dependencies": [
"Vale.X64.Machine_Semantics_s.fst.checked",
"Vale.X64.Machine_s.fst.checked",
"Vale.Lib.Seqs_s.fst.checked",
"Vale.Lib.BufferViewHelpers.fst.checked",
"Vale.Interop.Views.fsti.checked",
"Vale.Interop.Types.fst.checked",
"Vale.Interop.Base.fst.chec... | [
{
"abbrev": true,
"full_module": "Vale.X64.Machine_Semantics_s",
"short_module": "S"
},
{
"abbrev": true,
"full_module": "FStar.Heap",
"short_module": "H"
},
{
"abbrev": false,
"full_module": "Vale.Lib.BufferViewHelpers",
"short_module": null
},
{
"abbrev": true,
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 2,
"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.eqtype | Prims.Tot | [
"total"
] | [] | [
"FStar.UInt64.t"
] | [] | false | false | false | true | false | let tuint64 =
| UInt64.t | false | |
Vale.X64.Memory.fst | Vale.X64.Memory.uint64_view | val uint64_view : LowStar.BufferView.Up.view FStar.UInt8.t FStar.UInt64.t | let uint64_view = Vale.Interop.Views.up_view64 | {
"file_name": "vale/code/arch/x64/Vale.X64.Memory.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 46,
"end_line": 61,
"start_col": 0,
"start_line": 61
} | module Vale.X64.Memory
include Vale.Interop.Types
friend Vale.Arch.Heap
open Vale.Def.Opaque_s
open Vale.Arch.HeapImpl
open Vale.Arch.Heap
open Vale.Interop.Base
module IB = Vale.Interop.Base
module I = Vale.Interop
module HS = FStar.HyperStack
module HST = FStar.HyperStack.ST
module MB = LowStar.Monotonic.Buffer
modul... | {
"checked_file": "/",
"dependencies": [
"Vale.X64.Machine_Semantics_s.fst.checked",
"Vale.X64.Machine_s.fst.checked",
"Vale.Lib.Seqs_s.fst.checked",
"Vale.Lib.BufferViewHelpers.fst.checked",
"Vale.Interop.Views.fsti.checked",
"Vale.Interop.Types.fst.checked",
"Vale.Interop.Base.fst.chec... | [
{
"abbrev": true,
"full_module": "Vale.X64.Machine_Semantics_s",
"short_module": "S"
},
{
"abbrev": true,
"full_module": "FStar.Heap",
"short_module": "H"
},
{
"abbrev": false,
"full_module": "Vale.Lib.BufferViewHelpers",
"short_module": null
},
{
"abbrev": true,
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 2,
"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 | LowStar.BufferView.Up.view FStar.UInt8.t FStar.UInt64.t | Prims.Tot | [
"total"
] | [] | [
"Vale.Interop.Views.up_view64"
] | [] | false | false | false | true | false | let uint64_view =
| Vale.Interop.Views.up_view64 | false | |
Vale.X64.Memory.fst | Vale.X64.Memory.tuint32 | val tuint32 : Prims.eqtype | let tuint32 = UInt32.t | {
"file_name": "vale/code/arch/x64/Vale.X64.Memory.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 22,
"end_line": 33,
"start_col": 0,
"start_line": 33
} | module Vale.X64.Memory
include Vale.Interop.Types
friend Vale.Arch.Heap
open Vale.Def.Opaque_s
open Vale.Arch.HeapImpl
open Vale.Arch.Heap
open Vale.Interop.Base
module IB = Vale.Interop.Base
module I = Vale.Interop
module HS = FStar.HyperStack
module HST = FStar.HyperStack.ST
module MB = LowStar.Monotonic.Buffer
modul... | {
"checked_file": "/",
"dependencies": [
"Vale.X64.Machine_Semantics_s.fst.checked",
"Vale.X64.Machine_s.fst.checked",
"Vale.Lib.Seqs_s.fst.checked",
"Vale.Lib.BufferViewHelpers.fst.checked",
"Vale.Interop.Views.fsti.checked",
"Vale.Interop.Types.fst.checked",
"Vale.Interop.Base.fst.chec... | [
{
"abbrev": true,
"full_module": "Vale.X64.Machine_Semantics_s",
"short_module": "S"
},
{
"abbrev": true,
"full_module": "FStar.Heap",
"short_module": "H"
},
{
"abbrev": false,
"full_module": "Vale.Lib.BufferViewHelpers",
"short_module": null
},
{
"abbrev": true,
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 2,
"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.eqtype | Prims.Tot | [
"total"
] | [] | [
"FStar.UInt32.t"
] | [] | false | false | false | true | false | let tuint32 =
| UInt32.t | false | |
Vale.AsLowStar.Wrapper.fst | Vale.AsLowStar.Wrapper.register_args' | val register_args'
(max_arity: nat)
(arg_reg: IX64.arg_reg_relation max_arity)
(n: nat)
(args: list arg {List.length args = n})
(regs: IX64.registers)
: prop | val register_args'
(max_arity: nat)
(arg_reg: IX64.arg_reg_relation max_arity)
(n: nat)
(args: list arg {List.length args = n})
(regs: IX64.registers)
: prop | let rec register_args'
(max_arity:nat)
(arg_reg:IX64.arg_reg_relation max_arity)
(n:nat)
(args:list arg{List.length args = n})
(regs:IX64.registers)
: prop
= match args with
| [] -> True
| hd::tl ->
register_args' max_arity arg_reg (n - 1) tl regs /\
(if n > max_arity then Tr... | {
"file_name": "vale/code/arch/x64/interop/Vale.AsLowStar.Wrapper.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 71,
"end_line": 207,
"start_col": 0,
"start_line": 195
} | module Vale.AsLowStar.Wrapper
open Vale.Arch.HeapImpl
open Vale.X64.MemoryAdapters
open Vale.Interop.Base
module B = LowStar.Buffer
module BS = Vale.X64.Machine_Semantics_s
module UV = LowStar.BufferView.Up
module DV = LowStar.BufferView.Down
module HS = FStar.HyperStack
module ME = Vale.X64.Memory
module SI = Vale.X64... | {
"checked_file": "/",
"dependencies": [
"Vale.X64.StateLemmas.fsti.checked",
"Vale.X64.State.fsti.checked",
"Vale.X64.Stack_i.fsti.checked",
"Vale.X64.MemoryAdapters.fsti.checked",
"Vale.X64.Memory.fsti.checked",
"Vale.X64.Machine_Semantics_s.fst.checked",
"Vale.X64.Machine_s.fst.checke... | [
{
"abbrev": false,
"full_module": "FStar.Calc",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "ST"
},
{
"abbrev": true,
"full_module": "Val... | {
"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 |
max_arity: Prims.nat ->
arg_reg: Vale.Interop.X64.arg_reg_relation max_arity ->
n: Prims.nat ->
args: Prims.list Vale.Interop.Base.arg {FStar.List.Tot.Base.length args = n} ->
regs: Vale.Interop.X64.registers
-> Prims.prop | Prims.Tot | [
"total"
] | [] | [
"Prims.nat",
"Vale.Interop.X64.arg_reg_relation",
"Prims.list",
"Vale.Interop.Base.arg",
"Prims.b2t",
"Prims.op_Equality",
"FStar.List.Tot.Base.length",
"Vale.Interop.X64.registers",
"Prims.l_True",
"Prims.l_and",
"Vale.AsLowStar.Wrapper.register_args'",
"Prims.op_Subtraction",
"Prims.op_Gre... | [
"recursion"
] | false | false | false | false | true | let rec register_args'
(max_arity: nat)
(arg_reg: IX64.arg_reg_relation max_arity)
(n: nat)
(args: list arg {List.length args = n})
(regs: IX64.registers)
: prop =
| match args with
| [] -> True
| hd :: tl ->
register_args' max_arity arg_reg (n - 1) tl regs /\
(if n > max_arity then True else regs (arg_reg.IX64.of_arg (n - 1)) == IX64.arg_as_nat64 hd) | false |
Vale.X64.Memory.fst | Vale.X64.Memory.uint128_view | val uint128_view : LowStar.BufferView.Up.view FStar.UInt8.t Vale.Def.Types_s.quad32 | let uint128_view = Vale.Interop.Views.up_view128 | {
"file_name": "vale/code/arch/x64/Vale.X64.Memory.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 48,
"end_line": 62,
"start_col": 0,
"start_line": 62
} | module Vale.X64.Memory
include Vale.Interop.Types
friend Vale.Arch.Heap
open Vale.Def.Opaque_s
open Vale.Arch.HeapImpl
open Vale.Arch.Heap
open Vale.Interop.Base
module IB = Vale.Interop.Base
module I = Vale.Interop
module HS = FStar.HyperStack
module HST = FStar.HyperStack.ST
module MB = LowStar.Monotonic.Buffer
modul... | {
"checked_file": "/",
"dependencies": [
"Vale.X64.Machine_Semantics_s.fst.checked",
"Vale.X64.Machine_s.fst.checked",
"Vale.Lib.Seqs_s.fst.checked",
"Vale.Lib.BufferViewHelpers.fst.checked",
"Vale.Interop.Views.fsti.checked",
"Vale.Interop.Types.fst.checked",
"Vale.Interop.Base.fst.chec... | [
{
"abbrev": true,
"full_module": "Vale.X64.Machine_Semantics_s",
"short_module": "S"
},
{
"abbrev": true,
"full_module": "FStar.Heap",
"short_module": "H"
},
{
"abbrev": false,
"full_module": "Vale.Lib.BufferViewHelpers",
"short_module": null
},
{
"abbrev": true,
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 2,
"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 | LowStar.BufferView.Up.view FStar.UInt8.t Vale.Def.Types_s.quad32 | Prims.Tot | [
"total"
] | [] | [
"Vale.Interop.Views.up_view128"
] | [] | false | false | false | true | false | let uint128_view =
| Vale.Interop.Views.up_view128 | false | |
Vale.X64.Memory.fst | Vale.X64.Memory.tuint8 | val tuint8 : Prims.eqtype | let tuint8 = UInt8.t | {
"file_name": "vale/code/arch/x64/Vale.X64.Memory.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 20,
"end_line": 31,
"start_col": 0,
"start_line": 31
} | module Vale.X64.Memory
include Vale.Interop.Types
friend Vale.Arch.Heap
open Vale.Def.Opaque_s
open Vale.Arch.HeapImpl
open Vale.Arch.Heap
open Vale.Interop.Base
module IB = Vale.Interop.Base
module I = Vale.Interop
module HS = FStar.HyperStack
module HST = FStar.HyperStack.ST
module MB = LowStar.Monotonic.Buffer
modul... | {
"checked_file": "/",
"dependencies": [
"Vale.X64.Machine_Semantics_s.fst.checked",
"Vale.X64.Machine_s.fst.checked",
"Vale.Lib.Seqs_s.fst.checked",
"Vale.Lib.BufferViewHelpers.fst.checked",
"Vale.Interop.Views.fsti.checked",
"Vale.Interop.Types.fst.checked",
"Vale.Interop.Base.fst.chec... | [
{
"abbrev": true,
"full_module": "Vale.X64.Machine_Semantics_s",
"short_module": "S"
},
{
"abbrev": true,
"full_module": "FStar.Heap",
"short_module": "H"
},
{
"abbrev": false,
"full_module": "Vale.Lib.BufferViewHelpers",
"short_module": null
},
{
"abbrev": true,
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 2,
"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.eqtype | Prims.Tot | [
"total"
] | [] | [
"FStar.UInt8.t"
] | [] | false | false | false | true | false | let tuint8 =
| UInt8.t | false | |
Vale.AsLowStar.Wrapper.fst | Vale.AsLowStar.Wrapper.lemma_register_args' | val lemma_register_args'
(max_arity: nat)
(arg_reg: IX64.arg_reg_relation max_arity)
(args: IX64.arg_list)
(regs: IX64.registers)
: Lemma
(ensures
(let final_regs = IX64.register_of_args max_arity arg_reg (List.length args) args regs in
register_args' max_arity arg_reg (Lis... | val lemma_register_args'
(max_arity: nat)
(arg_reg: IX64.arg_reg_relation max_arity)
(args: IX64.arg_list)
(regs: IX64.registers)
: Lemma
(ensures
(let final_regs = IX64.register_of_args max_arity arg_reg (List.length args) args regs in
register_args' max_arity arg_reg (Lis... | let rec lemma_register_args'
(max_arity:nat)
(arg_reg:IX64.arg_reg_relation max_arity)
(args:IX64.arg_list)
(regs:IX64.registers)
: Lemma
(ensures
(let final_regs = IX64.register_of_args max_arity arg_reg (List.length args) args regs in
register_args' max_arity arg_reg (List.length... | {
"file_name": "vale/code/arch/x64/interop/Vale.AsLowStar.Wrapper.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 74,
"end_line": 243,
"start_col": 0,
"start_line": 227
} | module Vale.AsLowStar.Wrapper
open Vale.Arch.HeapImpl
open Vale.X64.MemoryAdapters
open Vale.Interop.Base
module B = LowStar.Buffer
module BS = Vale.X64.Machine_Semantics_s
module UV = LowStar.BufferView.Up
module DV = LowStar.BufferView.Down
module HS = FStar.HyperStack
module ME = Vale.X64.Memory
module SI = Vale.X64... | {
"checked_file": "/",
"dependencies": [
"Vale.X64.StateLemmas.fsti.checked",
"Vale.X64.State.fsti.checked",
"Vale.X64.Stack_i.fsti.checked",
"Vale.X64.MemoryAdapters.fsti.checked",
"Vale.X64.Memory.fsti.checked",
"Vale.X64.Machine_Semantics_s.fst.checked",
"Vale.X64.Machine_s.fst.checke... | [
{
"abbrev": false,
"full_module": "FStar.Calc",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "ST"
},
{
"abbrev": true,
"full_module": "Val... | {
"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 |
max_arity: Prims.nat ->
arg_reg: Vale.Interop.X64.arg_reg_relation max_arity ->
args: Vale.Interop.X64.arg_list ->
regs: Vale.Interop.X64.registers
-> FStar.Pervasives.Lemma
(ensures
(let final_regs =
Vale.Interop.X64.register_of_args max_arity
arg_reg
(FSt... | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"Prims.nat",
"Vale.Interop.X64.arg_reg_relation",
"Vale.Interop.X64.arg_list",
"Vale.Interop.X64.registers",
"Vale.Interop.Base.arg",
"Prims.list",
"Vale.AsLowStar.Wrapper.lemma_register_args'_aux",
"Prims.op_Subtraction",
"Prims.unit",
"Vale.AsLowStar.Wrapper.lemma_register_args'",
"Prims.eq2",... | [
"recursion"
] | false | false | true | false | false | let rec lemma_register_args'
(max_arity: nat)
(arg_reg: IX64.arg_reg_relation max_arity)
(args: IX64.arg_list)
(regs: IX64.registers)
: Lemma
(ensures
(let final_regs = IX64.register_of_args max_arity arg_reg (List.length args) args regs in
register_args' max_arity arg_reg ... | let final_regs = IX64.register_of_args max_arity arg_reg (List.length args) args regs in
match args with
| [] -> ()
| hd :: tl ->
let n = List.length args in
let regs' = (IX64.register_of_args max_arity arg_reg (n - 1) tl regs) in
lemma_register_args' max_arity arg_reg tl regs;
lemma_register_args'_aux max_arit... | false |
Vale.X64.Memory.fst | Vale.X64.Memory.uint32_view | val uint32_view : LowStar.BufferView.Up.view FStar.UInt8.t FStar.UInt32.t | let uint32_view = Vale.Interop.Views.up_view32 | {
"file_name": "vale/code/arch/x64/Vale.X64.Memory.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 46,
"end_line": 60,
"start_col": 0,
"start_line": 60
} | module Vale.X64.Memory
include Vale.Interop.Types
friend Vale.Arch.Heap
open Vale.Def.Opaque_s
open Vale.Arch.HeapImpl
open Vale.Arch.Heap
open Vale.Interop.Base
module IB = Vale.Interop.Base
module I = Vale.Interop
module HS = FStar.HyperStack
module HST = FStar.HyperStack.ST
module MB = LowStar.Monotonic.Buffer
modul... | {
"checked_file": "/",
"dependencies": [
"Vale.X64.Machine_Semantics_s.fst.checked",
"Vale.X64.Machine_s.fst.checked",
"Vale.Lib.Seqs_s.fst.checked",
"Vale.Lib.BufferViewHelpers.fst.checked",
"Vale.Interop.Views.fsti.checked",
"Vale.Interop.Types.fst.checked",
"Vale.Interop.Base.fst.chec... | [
{
"abbrev": true,
"full_module": "Vale.X64.Machine_Semantics_s",
"short_module": "S"
},
{
"abbrev": true,
"full_module": "FStar.Heap",
"short_module": "H"
},
{
"abbrev": false,
"full_module": "Vale.Lib.BufferViewHelpers",
"short_module": null
},
{
"abbrev": true,
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 2,
"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 | LowStar.BufferView.Up.view FStar.UInt8.t FStar.UInt32.t | Prims.Tot | [
"total"
] | [] | [
"Vale.Interop.Views.up_view32"
] | [] | false | false | false | true | false | let uint32_view =
| Vale.Interop.Views.up_view32 | false | |
Vale.X64.Memory.fst | Vale.X64.Memory.buffer_readable | val buffer_readable (#t:base_typ) (h:vale_heap) (b:buffer t) : GTot prop0 | val buffer_readable (#t:base_typ) (h:vale_heap) (b:buffer t) : GTot prop0 | let buffer_readable #t h b = List.memP b (IB.ptrs_of_mem (_ih h)) | {
"file_name": "vale/code/arch/x64/Vale.X64.Memory.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 65,
"end_line": 76,
"start_col": 0,
"start_line": 76
} | module Vale.X64.Memory
include Vale.Interop.Types
friend Vale.Arch.Heap
open Vale.Def.Opaque_s
open Vale.Arch.HeapImpl
open Vale.Arch.Heap
open Vale.Interop.Base
module IB = Vale.Interop.Base
module I = Vale.Interop
module HS = FStar.HyperStack
module HST = FStar.HyperStack.ST
module MB = LowStar.Monotonic.Buffer
modul... | {
"checked_file": "/",
"dependencies": [
"Vale.X64.Machine_Semantics_s.fst.checked",
"Vale.X64.Machine_s.fst.checked",
"Vale.Lib.Seqs_s.fst.checked",
"Vale.Lib.BufferViewHelpers.fst.checked",
"Vale.Interop.Views.fsti.checked",
"Vale.Interop.Types.fst.checked",
"Vale.Interop.Base.fst.chec... | [
{
"abbrev": true,
"full_module": "Vale.X64.Machine_Semantics_s",
"short_module": "S"
},
{
"abbrev": true,
"full_module": "FStar.Heap",
"short_module": "H"
},
{
"abbrev": false,
"full_module": "Vale.Lib.BufferViewHelpers",
"short_module": null
},
{
"abbrev": true,
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 2,
"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.Arch.HeapImpl.vale_heap -> b: Vale.X64.Memory.buffer t -> Prims.GTot Vale.Def.Prop_s.prop0 | Prims.GTot | [
"sometrivial"
] | [] | [
"Vale.Arch.HeapTypes_s.base_typ",
"Vale.Arch.HeapImpl.vale_heap",
"Vale.X64.Memory.buffer",
"FStar.List.Tot.Base.memP",
"Vale.Interop.Types.b8",
"Vale.Interop.Heap_s.ptrs_of_mem",
"Vale.Arch.HeapImpl._ih",
"Vale.Def.Prop_s.prop0"
] | [] | false | false | false | false | false | let buffer_readable #t h b =
| List.memP b (IB.ptrs_of_mem (_ih h)) | false |
Vale.AsLowStar.Wrapper.fst | Vale.AsLowStar.Wrapper.loc_includes_union | val loc_includes_union (l1 l1' l: B.loc)
: Lemma (requires B.(loc_includes l1 l1'))
(ensures B.(loc_includes (loc_union l1 l) (loc_union l1' l))) | val loc_includes_union (l1 l1' l: B.loc)
: Lemma (requires B.(loc_includes l1 l1'))
(ensures B.(loc_includes (loc_union l1 l) (loc_union l1' l))) | let loc_includes_union (l1 l1' l:B.loc)
: Lemma (requires B.(loc_includes l1 l1'))
(ensures B.(loc_includes (loc_union l1 l) (loc_union l1' l)))
= let open B in
loc_includes_union_l l1 l l1';
loc_includes_union_l l1 l l;
loc_includes_union_r (loc_union l1 l) l1' l | {
"file_name": "vale/code/arch/x64/interop/Vale.AsLowStar.Wrapper.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 47,
"end_line": 537,
"start_col": 0,
"start_line": 531
} | module Vale.AsLowStar.Wrapper
open Vale.Arch.HeapImpl
open Vale.X64.MemoryAdapters
open Vale.Interop.Base
module B = LowStar.Buffer
module BS = Vale.X64.Machine_Semantics_s
module UV = LowStar.BufferView.Up
module DV = LowStar.BufferView.Down
module HS = FStar.HyperStack
module ME = Vale.X64.Memory
module SI = Vale.X64... | {
"checked_file": "/",
"dependencies": [
"Vale.X64.StateLemmas.fsti.checked",
"Vale.X64.State.fsti.checked",
"Vale.X64.Stack_i.fsti.checked",
"Vale.X64.MemoryAdapters.fsti.checked",
"Vale.X64.Memory.fsti.checked",
"Vale.X64.Machine_Semantics_s.fst.checked",
"Vale.X64.Machine_s.fst.checke... | [
{
"abbrev": false,
"full_module": "FStar.Calc",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "ST"
},
{
"abbrev": true,
"full_module": "Val... | {
"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 |
l1: LowStar.Monotonic.Buffer.loc ->
l1': LowStar.Monotonic.Buffer.loc ->
l: LowStar.Monotonic.Buffer.loc
-> FStar.Pervasives.Lemma (requires LowStar.Monotonic.Buffer.loc_includes l1 l1')
(ensures
LowStar.Monotonic.Buffer.loc_includes (LowStar.Monotonic.Buffer.loc_union l1 l)
(LowS... | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"LowStar.Monotonic.Buffer.loc",
"LowStar.Monotonic.Buffer.loc_includes_union_r",
"LowStar.Monotonic.Buffer.loc_union",
"Prims.unit",
"LowStar.Monotonic.Buffer.loc_includes_union_l",
"LowStar.Monotonic.Buffer.loc_includes",
"Prims.squash",
"Prims.Nil",
"FStar.Pervasives.pattern"
] | [] | true | false | true | false | false | let loc_includes_union (l1 l1' l: B.loc)
: Lemma (requires B.(loc_includes l1 l1'))
(ensures B.(loc_includes (loc_union l1 l) (loc_union l1' l))) =
| let open B in
loc_includes_union_l l1 l l1';
loc_includes_union_l l1 l l;
loc_includes_union_r (loc_union l1 l) l1' l | false |
Vale.X64.Memory.fst | Vale.X64.Memory.buffer_writeable | val buffer_writeable (#t:base_typ) (b:buffer t) : GTot prop0 | val buffer_writeable (#t:base_typ) (b:buffer t) : GTot prop0 | let buffer_writeable #t b = b.writeable | {
"file_name": "vale/code/arch/x64/Vale.X64.Memory.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 39,
"end_line": 77,
"start_col": 0,
"start_line": 77
} | module Vale.X64.Memory
include Vale.Interop.Types
friend Vale.Arch.Heap
open Vale.Def.Opaque_s
open Vale.Arch.HeapImpl
open Vale.Arch.Heap
open Vale.Interop.Base
module IB = Vale.Interop.Base
module I = Vale.Interop
module HS = FStar.HyperStack
module HST = FStar.HyperStack.ST
module MB = LowStar.Monotonic.Buffer
modul... | {
"checked_file": "/",
"dependencies": [
"Vale.X64.Machine_Semantics_s.fst.checked",
"Vale.X64.Machine_s.fst.checked",
"Vale.Lib.Seqs_s.fst.checked",
"Vale.Lib.BufferViewHelpers.fst.checked",
"Vale.Interop.Views.fsti.checked",
"Vale.Interop.Types.fst.checked",
"Vale.Interop.Base.fst.chec... | [
{
"abbrev": true,
"full_module": "Vale.X64.Machine_Semantics_s",
"short_module": "S"
},
{
"abbrev": true,
"full_module": "FStar.Heap",
"short_module": "H"
},
{
"abbrev": false,
"full_module": "Vale.Lib.BufferViewHelpers",
"short_module": null
},
{
"abbrev": true,
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 2,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | b: Vale.X64.Memory.buffer t -> Prims.GTot Vale.Def.Prop_s.prop0 | Prims.GTot | [
"sometrivial"
] | [] | [
"Vale.Arch.HeapTypes_s.base_typ",
"Vale.X64.Memory.buffer",
"Prims.b2t",
"Vale.Interop.Types.__proj__Buffer__item__writeable",
"Vale.Def.Prop_s.prop0"
] | [] | false | false | false | false | false | let buffer_writeable #t b =
| b.writeable | false |
Vale.X64.Memory.fst | Vale.X64.Memory.loc | val loc : Type u#0 | val loc : Type u#0 | let loc = M.loc | {
"file_name": "vale/code/arch/x64/Vale.X64.Memory.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 15,
"end_line": 79,
"start_col": 0,
"start_line": 79
} | module Vale.X64.Memory
include Vale.Interop.Types
friend Vale.Arch.Heap
open Vale.Def.Opaque_s
open Vale.Arch.HeapImpl
open Vale.Arch.Heap
open Vale.Interop.Base
module IB = Vale.Interop.Base
module I = Vale.Interop
module HS = FStar.HyperStack
module HST = FStar.HyperStack.ST
module MB = LowStar.Monotonic.Buffer
modul... | {
"checked_file": "/",
"dependencies": [
"Vale.X64.Machine_Semantics_s.fst.checked",
"Vale.X64.Machine_s.fst.checked",
"Vale.Lib.Seqs_s.fst.checked",
"Vale.Lib.BufferViewHelpers.fst.checked",
"Vale.Interop.Views.fsti.checked",
"Vale.Interop.Types.fst.checked",
"Vale.Interop.Base.fst.chec... | [
{
"abbrev": true,
"full_module": "Vale.X64.Machine_Semantics_s",
"short_module": "S"
},
{
"abbrev": true,
"full_module": "FStar.Heap",
"short_module": "H"
},
{
"abbrev": false,
"full_module": "Vale.Lib.BufferViewHelpers",
"short_module": null
},
{
"abbrev": true,
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 2,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | Type0 | Prims.Tot | [
"total"
] | [] | [
"LowStar.Monotonic.Buffer.loc"
] | [] | false | false | false | true | true | let loc =
| M.loc | false |
Vale.AsLowStar.Wrapper.fst | Vale.AsLowStar.Wrapper.eval_code_rel | val eval_code_rel (c: BS.code) (va_s0 va_s1: V.va_state) (f: V.va_fuel)
: Lemma (requires (V.eval_code c va_s0 f va_s1))
(ensures (eval_code_ts c (SL.state_to_S va_s0) (coerce f) (SL.state_to_S va_s1))) | val eval_code_rel (c: BS.code) (va_s0 va_s1: V.va_state) (f: V.va_fuel)
: Lemma (requires (V.eval_code c va_s0 f va_s1))
(ensures (eval_code_ts c (SL.state_to_S va_s0) (coerce f) (SL.state_to_S va_s1))) | let eval_code_rel (c:BS.code)
(va_s0 va_s1:V.va_state) (f:V.va_fuel)
: Lemma
(requires (V.eval_code c va_s0 f va_s1))
(ensures (eval_code_ts c (SL.state_to_S va_s0) (coerce f) (SL.state_to_S va_s1)))
= Vale.AsLowStar.MemoryHelpers.decls_eval_code_reveal c va_s0 va_s1 f | {
"file_name": "vale/code/arch/x64/interop/Vale.AsLowStar.Wrapper.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 71,
"end_line": 510,
"start_col": 0,
"start_line": 505
} | module Vale.AsLowStar.Wrapper
open Vale.Arch.HeapImpl
open Vale.X64.MemoryAdapters
open Vale.Interop.Base
module B = LowStar.Buffer
module BS = Vale.X64.Machine_Semantics_s
module UV = LowStar.BufferView.Up
module DV = LowStar.BufferView.Down
module HS = FStar.HyperStack
module ME = Vale.X64.Memory
module SI = Vale.X64... | {
"checked_file": "/",
"dependencies": [
"Vale.X64.StateLemmas.fsti.checked",
"Vale.X64.State.fsti.checked",
"Vale.X64.Stack_i.fsti.checked",
"Vale.X64.MemoryAdapters.fsti.checked",
"Vale.X64.Memory.fsti.checked",
"Vale.X64.Machine_Semantics_s.fst.checked",
"Vale.X64.Machine_s.fst.checke... | [
{
"abbrev": false,
"full_module": "FStar.Calc",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "ST"
},
{
"abbrev": true,
"full_module": "Val... | {
"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.X64.Machine_Semantics_s.code ->
va_s0: Vale.X64.Decls.va_state ->
va_s1: Vale.X64.Decls.va_state ->
f: Vale.X64.Decls.va_fuel
-> FStar.Pervasives.Lemma (requires Vale.X64.Decls.eval_code c va_s0 f va_s1)
(ensures
Vale.AsLowStar.Wrapper.eval_code_ts c
(Vale.X64.StateLem... | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"Vale.X64.Machine_Semantics_s.code",
"Vale.X64.Decls.va_state",
"Vale.X64.Decls.va_fuel",
"Vale.AsLowStar.MemoryHelpers.decls_eval_code_reveal",
"Prims.unit",
"Vale.X64.Decls.eval_code",
"Prims.squash",
"Vale.AsLowStar.Wrapper.eval_code_ts",
"Vale.X64.StateLemmas.state_to_S",
"Vale.Interop.Base.co... | [] | true | false | true | false | false | let eval_code_rel (c: BS.code) (va_s0 va_s1: V.va_state) (f: V.va_fuel)
: Lemma (requires (V.eval_code c va_s0 f va_s1))
(ensures (eval_code_ts c (SL.state_to_S va_s0) (coerce f) (SL.state_to_S va_s1))) =
| Vale.AsLowStar.MemoryHelpers.decls_eval_code_reveal c va_s0 va_s1 f | false |
Vale.X64.Memory.fst | Vale.X64.Memory.loc_includes | val loc_includes (s1 s2:loc) : GTot prop0 | val loc_includes (s1 s2:loc) : GTot prop0 | let loc_includes = M.loc_includes | {
"file_name": "vale/code/arch/x64/Vale.X64.Memory.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 33,
"end_line": 84,
"start_col": 0,
"start_line": 84
} | module Vale.X64.Memory
include Vale.Interop.Types
friend Vale.Arch.Heap
open Vale.Def.Opaque_s
open Vale.Arch.HeapImpl
open Vale.Arch.Heap
open Vale.Interop.Base
module IB = Vale.Interop.Base
module I = Vale.Interop
module HS = FStar.HyperStack
module HST = FStar.HyperStack.ST
module MB = LowStar.Monotonic.Buffer
modul... | {
"checked_file": "/",
"dependencies": [
"Vale.X64.Machine_Semantics_s.fst.checked",
"Vale.X64.Machine_s.fst.checked",
"Vale.Lib.Seqs_s.fst.checked",
"Vale.Lib.BufferViewHelpers.fst.checked",
"Vale.Interop.Views.fsti.checked",
"Vale.Interop.Types.fst.checked",
"Vale.Interop.Base.fst.chec... | [
{
"abbrev": true,
"full_module": "Vale.X64.Machine_Semantics_s",
"short_module": "S"
},
{
"abbrev": true,
"full_module": "FStar.Heap",
"short_module": "H"
},
{
"abbrev": false,
"full_module": "Vale.Lib.BufferViewHelpers",
"short_module": null
},
{
"abbrev": true,
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 2,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | s1: Vale.X64.Memory.loc -> s2: Vale.X64.Memory.loc -> Prims.GTot Vale.Def.Prop_s.prop0 | Prims.GTot | [
"sometrivial"
] | [] | [
"LowStar.Monotonic.Buffer.loc_includes"
] | [] | false | false | false | false | false | let loc_includes =
| M.loc_includes | false |
Vale.X64.Memory.fst | Vale.X64.Memory.loc_buffer | val loc_buffer (#t:base_typ) (b:buffer t) : GTot loc | val loc_buffer (#t:base_typ) (b:buffer t) : GTot loc | let loc_buffer #t b = M.loc_buffer b.bsrc | {
"file_name": "vale/code/arch/x64/Vale.X64.Memory.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 41,
"end_line": 82,
"start_col": 0,
"start_line": 82
} | module Vale.X64.Memory
include Vale.Interop.Types
friend Vale.Arch.Heap
open Vale.Def.Opaque_s
open Vale.Arch.HeapImpl
open Vale.Arch.Heap
open Vale.Interop.Base
module IB = Vale.Interop.Base
module I = Vale.Interop
module HS = FStar.HyperStack
module HST = FStar.HyperStack.ST
module MB = LowStar.Monotonic.Buffer
modul... | {
"checked_file": "/",
"dependencies": [
"Vale.X64.Machine_Semantics_s.fst.checked",
"Vale.X64.Machine_s.fst.checked",
"Vale.Lib.Seqs_s.fst.checked",
"Vale.Lib.BufferViewHelpers.fst.checked",
"Vale.Interop.Views.fsti.checked",
"Vale.Interop.Types.fst.checked",
"Vale.Interop.Base.fst.chec... | [
{
"abbrev": true,
"full_module": "Vale.X64.Machine_Semantics_s",
"short_module": "S"
},
{
"abbrev": true,
"full_module": "FStar.Heap",
"short_module": "H"
},
{
"abbrev": false,
"full_module": "Vale.Lib.BufferViewHelpers",
"short_module": null
},
{
"abbrev": true,
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 2,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | b: Vale.X64.Memory.buffer t -> Prims.GTot Vale.X64.Memory.loc | Prims.GTot | [
"sometrivial"
] | [] | [
"Vale.Arch.HeapTypes_s.base_typ",
"Vale.X64.Memory.buffer",
"LowStar.Monotonic.Buffer.loc_buffer",
"Vale.Interop.Types.base_typ_as_type",
"Vale.Interop.Types.__proj__Buffer__item__src",
"Vale.Interop.Types.b8_preorder",
"Vale.Interop.Types.__proj__Buffer__item__writeable",
"Vale.Interop.Types.__proj__... | [] | false | false | false | false | false | let loc_buffer #t b =
| M.loc_buffer b.bsrc | false |
Vale.X64.Memory.fst | Vale.X64.Memory.loc_none | val loc_none : loc | val loc_none : loc | let loc_none = M.loc_none | {
"file_name": "vale/code/arch/x64/Vale.X64.Memory.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 25,
"end_line": 80,
"start_col": 0,
"start_line": 80
} | module Vale.X64.Memory
include Vale.Interop.Types
friend Vale.Arch.Heap
open Vale.Def.Opaque_s
open Vale.Arch.HeapImpl
open Vale.Arch.Heap
open Vale.Interop.Base
module IB = Vale.Interop.Base
module I = Vale.Interop
module HS = FStar.HyperStack
module HST = FStar.HyperStack.ST
module MB = LowStar.Monotonic.Buffer
modul... | {
"checked_file": "/",
"dependencies": [
"Vale.X64.Machine_Semantics_s.fst.checked",
"Vale.X64.Machine_s.fst.checked",
"Vale.Lib.Seqs_s.fst.checked",
"Vale.Lib.BufferViewHelpers.fst.checked",
"Vale.Interop.Views.fsti.checked",
"Vale.Interop.Types.fst.checked",
"Vale.Interop.Base.fst.chec... | [
{
"abbrev": true,
"full_module": "Vale.X64.Machine_Semantics_s",
"short_module": "S"
},
{
"abbrev": true,
"full_module": "FStar.Heap",
"short_module": "H"
},
{
"abbrev": false,
"full_module": "Vale.Lib.BufferViewHelpers",
"short_module": null
},
{
"abbrev": true,
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 2,
"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.X64.Memory.loc | Prims.Tot | [
"total"
] | [] | [
"LowStar.Monotonic.Buffer.loc_none"
] | [] | false | false | false | true | false | let loc_none =
| M.loc_none | false |
Vale.X64.Memory.fst | Vale.X64.Memory.buffer_addr | val buffer_addr (#t:base_typ) (b:buffer t) (h:vale_heap) : GTot int | val buffer_addr (#t:base_typ) (b:buffer t) (h:vale_heap) : GTot int | let buffer_addr #t b h = IB.addrs_of_mem (_ih h) b | {
"file_name": "vale/code/arch/x64/Vale.X64.Memory.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 50,
"end_line": 92,
"start_col": 0,
"start_line": 92
} | module Vale.X64.Memory
include Vale.Interop.Types
friend Vale.Arch.Heap
open Vale.Def.Opaque_s
open Vale.Arch.HeapImpl
open Vale.Arch.Heap
open Vale.Interop.Base
module IB = Vale.Interop.Base
module I = Vale.Interop
module HS = FStar.HyperStack
module HST = FStar.HyperStack.ST
module MB = LowStar.Monotonic.Buffer
modul... | {
"checked_file": "/",
"dependencies": [
"Vale.X64.Machine_Semantics_s.fst.checked",
"Vale.X64.Machine_s.fst.checked",
"Vale.Lib.Seqs_s.fst.checked",
"Vale.Lib.BufferViewHelpers.fst.checked",
"Vale.Interop.Views.fsti.checked",
"Vale.Interop.Types.fst.checked",
"Vale.Interop.Base.fst.chec... | [
{
"abbrev": true,
"full_module": "Vale.X64.Machine_Semantics_s",
"short_module": "S"
},
{
"abbrev": true,
"full_module": "FStar.Heap",
"short_module": "H"
},
{
"abbrev": false,
"full_module": "Vale.Lib.BufferViewHelpers",
"short_module": null
},
{
"abbrev": true,
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 2,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | b: Vale.X64.Memory.buffer t -> h: Vale.Arch.HeapImpl.vale_heap -> Prims.GTot Prims.int | Prims.GTot | [
"sometrivial"
] | [] | [
"Vale.Arch.HeapTypes_s.base_typ",
"Vale.X64.Memory.buffer",
"Vale.Arch.HeapImpl.vale_heap",
"Vale.Interop.Heap_s.addrs_of_mem",
"Vale.Arch.HeapImpl._ih",
"Prims.int"
] | [] | false | false | false | false | false | let buffer_addr #t b h =
| IB.addrs_of_mem (_ih h) b | false |
Vale.X64.Memory.fst | Vale.X64.Memory.loc_union | val loc_union (s1 s2:loc) : GTot loc | val loc_union (s1 s2:loc) : GTot loc | let loc_union = M.loc_union | {
"file_name": "vale/code/arch/x64/Vale.X64.Memory.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 27,
"end_line": 81,
"start_col": 0,
"start_line": 81
} | module Vale.X64.Memory
include Vale.Interop.Types
friend Vale.Arch.Heap
open Vale.Def.Opaque_s
open Vale.Arch.HeapImpl
open Vale.Arch.Heap
open Vale.Interop.Base
module IB = Vale.Interop.Base
module I = Vale.Interop
module HS = FStar.HyperStack
module HST = FStar.HyperStack.ST
module MB = LowStar.Monotonic.Buffer
modul... | {
"checked_file": "/",
"dependencies": [
"Vale.X64.Machine_Semantics_s.fst.checked",
"Vale.X64.Machine_s.fst.checked",
"Vale.Lib.Seqs_s.fst.checked",
"Vale.Lib.BufferViewHelpers.fst.checked",
"Vale.Interop.Views.fsti.checked",
"Vale.Interop.Types.fst.checked",
"Vale.Interop.Base.fst.chec... | [
{
"abbrev": true,
"full_module": "Vale.X64.Machine_Semantics_s",
"short_module": "S"
},
{
"abbrev": true,
"full_module": "FStar.Heap",
"short_module": "H"
},
{
"abbrev": false,
"full_module": "Vale.Lib.BufferViewHelpers",
"short_module": null
},
{
"abbrev": true,
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 2,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | s1: Vale.X64.Memory.loc -> s2: Vale.X64.Memory.loc -> Prims.GTot Vale.X64.Memory.loc | Prims.GTot | [
"sometrivial"
] | [] | [
"LowStar.Monotonic.Buffer.loc_union"
] | [] | false | false | false | false | false | let loc_union =
| M.loc_union | false |
Vale.AsLowStar.Wrapper.fst | Vale.AsLowStar.Wrapper.core_create_lemma | val core_create_lemma
(#max_arity: nat)
(#arg_reg: IX64.arg_reg_relation max_arity)
(args: IX64.arg_list)
(h0: HS.mem{mem_roots_p h0 args})
: Lemma
(ensures
(let va_s = LSig.create_initial_vale_state #max_arity #arg_reg args h0 in
fst (IX64.create_initial_trusted_state max_... | val core_create_lemma
(#max_arity: nat)
(#arg_reg: IX64.arg_reg_relation max_arity)
(args: IX64.arg_list)
(h0: HS.mem{mem_roots_p h0 args})
: Lemma
(ensures
(let va_s = LSig.create_initial_vale_state #max_arity #arg_reg args h0 in
fst (IX64.create_initial_trusted_state max_... | let core_create_lemma
(#max_arity:nat)
(#arg_reg:IX64.arg_reg_relation max_arity)
(args:IX64.arg_list)
(h0:HS.mem{mem_roots_p h0 args})
: Lemma
(ensures
(let va_s = LSig.create_initial_vale_state #max_arity #arg_reg args h0 in
fst (IX64.create_initial_trusted_state max_arity arg... | {
"file_name": "vale/code/arch/x64/interop/Vale.AsLowStar.Wrapper.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 55,
"end_line": 497,
"start_col": 0,
"start_line": 472
} | module Vale.AsLowStar.Wrapper
open Vale.Arch.HeapImpl
open Vale.X64.MemoryAdapters
open Vale.Interop.Base
module B = LowStar.Buffer
module BS = Vale.X64.Machine_Semantics_s
module UV = LowStar.BufferView.Up
module DV = LowStar.BufferView.Down
module HS = FStar.HyperStack
module ME = Vale.X64.Memory
module SI = Vale.X64... | {
"checked_file": "/",
"dependencies": [
"Vale.X64.StateLemmas.fsti.checked",
"Vale.X64.State.fsti.checked",
"Vale.X64.Stack_i.fsti.checked",
"Vale.X64.MemoryAdapters.fsti.checked",
"Vale.X64.Memory.fsti.checked",
"Vale.X64.Machine_Semantics_s.fst.checked",
"Vale.X64.Machine_s.fst.checke... | [
{
"abbrev": false,
"full_module": "FStar.Calc",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "ST"
},
{
"abbrev": true,
"full_module": "Val... | {
"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 |
args: Vale.Interop.X64.arg_list ->
h0: FStar.Monotonic.HyperStack.mem{Vale.Interop.Base.mem_roots_p h0 args}
-> FStar.Pervasives.Lemma
(ensures
(let va_s = Vale.AsLowStar.LowStarSig.create_initial_vale_state args h0 in
FStar.Pervasives.Native.fst (Vale.Interop.X64.create_initial_trusted_sta... | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"Prims.nat",
"Vale.Interop.X64.arg_reg_relation",
"Vale.Interop.X64.arg_list",
"FStar.Monotonic.HyperStack.mem",
"Vale.Interop.Base.mem_roots_p",
"Vale.AsLowStar.Wrapper.core_create_lemma_state",
"Prims.unit",
"Vale.AsLowStar.MemoryHelpers.core_create_lemma_taint_hyp",
"Vale.AsLowStar.MemoryHelpers.... | [] | true | false | true | false | false | let core_create_lemma
(#max_arity: nat)
(#arg_reg: IX64.arg_reg_relation max_arity)
(args: IX64.arg_list)
(h0: HS.mem{mem_roots_p h0 args})
: Lemma
(ensures
(let va_s = LSig.create_initial_vale_state #max_arity #arg_reg args h0 in
fst (IX64.create_initial_trusted_state max_... | let va_s = LSig.create_initial_vale_state #max_arity #arg_reg args h0 in
let t_state = fst (IX64.create_initial_trusted_state max_arity arg_reg args h0) in
let t_stack = t_state.BS.ms_stack in
core_create_lemma_mem_correspondance #max_arity #arg_reg args h0;
core_create_lemma_disjointness args;
core_create_lemma_readab... | false |
Vale.X64.Memory.fst | Vale.X64.Memory.loc_disjoint | val loc_disjoint (s1 s2:loc) : GTot prop0 | val loc_disjoint (s1 s2:loc) : GTot prop0 | let loc_disjoint = M.loc_disjoint | {
"file_name": "vale/code/arch/x64/Vale.X64.Memory.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 33,
"end_line": 83,
"start_col": 0,
"start_line": 83
} | module Vale.X64.Memory
include Vale.Interop.Types
friend Vale.Arch.Heap
open Vale.Def.Opaque_s
open Vale.Arch.HeapImpl
open Vale.Arch.Heap
open Vale.Interop.Base
module IB = Vale.Interop.Base
module I = Vale.Interop
module HS = FStar.HyperStack
module HST = FStar.HyperStack.ST
module MB = LowStar.Monotonic.Buffer
modul... | {
"checked_file": "/",
"dependencies": [
"Vale.X64.Machine_Semantics_s.fst.checked",
"Vale.X64.Machine_s.fst.checked",
"Vale.Lib.Seqs_s.fst.checked",
"Vale.Lib.BufferViewHelpers.fst.checked",
"Vale.Interop.Views.fsti.checked",
"Vale.Interop.Types.fst.checked",
"Vale.Interop.Base.fst.chec... | [
{
"abbrev": true,
"full_module": "Vale.X64.Machine_Semantics_s",
"short_module": "S"
},
{
"abbrev": true,
"full_module": "FStar.Heap",
"short_module": "H"
},
{
"abbrev": false,
"full_module": "Vale.Lib.BufferViewHelpers",
"short_module": null
},
{
"abbrev": true,
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 2,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | s1: Vale.X64.Memory.loc -> s2: Vale.X64.Memory.loc -> Prims.GTot Vale.Def.Prop_s.prop0 | Prims.GTot | [
"sometrivial"
] | [] | [
"LowStar.Monotonic.Buffer.loc_disjoint"
] | [] | false | false | false | false | false | let loc_disjoint =
| M.loc_disjoint | false |
Vale.AsLowStar.Wrapper.fst | Vale.AsLowStar.Wrapper.stack_of_args_stack_args'_aux | val stack_of_args_stack_args'_aux
(max_arity n_init n: nat)
(args: IX64.arg_list{List.Tot.length args = n})
(rsp: int)
(stack: Map.t int Vale.Def.Words_s.nat8)
(v: MS.nat64)
: Lemma (requires stack_args' max_arity n args rsp stack /\ n_init >= n)
(ensures
(let ptr = (n_in... | val stack_of_args_stack_args'_aux
(max_arity n_init n: nat)
(args: IX64.arg_list{List.Tot.length args = n})
(rsp: int)
(stack: Map.t int Vale.Def.Words_s.nat8)
(v: MS.nat64)
: Lemma (requires stack_args' max_arity n args rsp stack /\ n_init >= n)
(ensures
(let ptr = (n_in... | let rec stack_of_args_stack_args'_aux
(max_arity:nat)
(n_init:nat)
(n:nat)
(args:IX64.arg_list{List.Tot.length args = n})
(rsp:int)
(stack:Map.t int Vale.Def.Words_s.nat8)
(v:MS.nat64)
: Lemma
(requires stack_args' max_arity n args rsp stack /\ n_init >= n)
(ensures
(let ptr = (n... | {
"file_name": "vale/code/arch/x64/interop/Vale.AsLowStar.Wrapper.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 6,
"end_line": 380,
"start_col": 0,
"start_line": 348
} | module Vale.AsLowStar.Wrapper
open Vale.Arch.HeapImpl
open Vale.X64.MemoryAdapters
open Vale.Interop.Base
module B = LowStar.Buffer
module BS = Vale.X64.Machine_Semantics_s
module UV = LowStar.BufferView.Up
module DV = LowStar.BufferView.Down
module HS = FStar.HyperStack
module ME = Vale.X64.Memory
module SI = Vale.X64... | {
"checked_file": "/",
"dependencies": [
"Vale.X64.StateLemmas.fsti.checked",
"Vale.X64.State.fsti.checked",
"Vale.X64.Stack_i.fsti.checked",
"Vale.X64.MemoryAdapters.fsti.checked",
"Vale.X64.Memory.fsti.checked",
"Vale.X64.Machine_Semantics_s.fst.checked",
"Vale.X64.Machine_s.fst.checke... | [
{
"abbrev": false,
"full_module": "FStar.Calc",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "ST"
},
{
"abbrev": true,
"full_module": "Val... | {
"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 |
max_arity: Prims.nat ->
n_init: Prims.nat ->
n: Prims.nat ->
args: Vale.Interop.X64.arg_list{FStar.List.Tot.Base.length args = n} ->
rsp: Prims.int ->
stack: FStar.Map.t Prims.int Vale.Def.Words_s.nat8 ->
v: Vale.X64.Machine_s.nat64
-> FStar.Pervasives.Lemma
(requires Vale.AsLowStar... | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"Prims.nat",
"Vale.Interop.X64.arg_list",
"Prims.b2t",
"Prims.op_Equality",
"FStar.List.Tot.Base.length",
"Vale.Interop.Base.arg",
"Prims.int",
"FStar.Map.t",
"Vale.Def.Words_s.nat8",
"Vale.X64.Machine_s.nat64",
"Prims.list",
"Prims.op_LessThanOrEqual",
"Prims.bool",
"Vale.AsLowStar.Wrappe... | [
"recursion"
] | false | false | true | false | false | let rec stack_of_args_stack_args'_aux
(max_arity n_init n: nat)
(args: IX64.arg_list{List.Tot.length args = n})
(rsp: int)
(stack: Map.t int Vale.Def.Words_s.nat8)
(v: MS.nat64)
: Lemma (requires stack_args' max_arity n args rsp stack /\ n_init >= n)
(ensures
(let ptr = (... | match args with
| [] -> ()
| hd :: tl ->
stack_of_args_stack_args'_aux max_arity n_init (n - 1) tl rsp stack v;
if n <= max_arity
then ()
else
(let fixed = (n_init - max_arity) * 8 + (if IA.win then 32 else 0) + 8 + rsp in
let ptr = ((n - max_arity) - 1) * 8 + (if IA.win then 32 else 0) + 8 + rsp in
... | false |
Vale.AsLowStar.Wrapper.fst | Vale.AsLowStar.Wrapper.mem_correspondence_refl | val mem_correspondence_refl (args: list arg) (va_s: V.va_state)
: Lemma (ensures LSig.mem_correspondence args (hs_of_mem (as_mem va_s.VS.vs_heap.vf_heap)) va_s) | val mem_correspondence_refl (args: list arg) (va_s: V.va_state)
: Lemma (ensures LSig.mem_correspondence args (hs_of_mem (as_mem va_s.VS.vs_heap.vf_heap)) va_s) | let rec mem_correspondence_refl (args:list arg)
(va_s:V.va_state)
: Lemma
(ensures LSig.mem_correspondence args (hs_of_mem (as_mem va_s.VS.vs_heap.vf_heap)) va_s)
=
let h = hs_of_mem (as_mem va_s.VS.vs_heap.vf_heap) in
match args with
| [] -> ()
| hd::tl ->
mem_co... | {
"file_name": "vale/code/arch/x64/interop/Vale.AsLowStar.Wrapper.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 14,
"end_line": 527,
"start_col": 0,
"start_line": 512
} | module Vale.AsLowStar.Wrapper
open Vale.Arch.HeapImpl
open Vale.X64.MemoryAdapters
open Vale.Interop.Base
module B = LowStar.Buffer
module BS = Vale.X64.Machine_Semantics_s
module UV = LowStar.BufferView.Up
module DV = LowStar.BufferView.Down
module HS = FStar.HyperStack
module ME = Vale.X64.Memory
module SI = Vale.X64... | {
"checked_file": "/",
"dependencies": [
"Vale.X64.StateLemmas.fsti.checked",
"Vale.X64.State.fsti.checked",
"Vale.X64.Stack_i.fsti.checked",
"Vale.X64.MemoryAdapters.fsti.checked",
"Vale.X64.Memory.fsti.checked",
"Vale.X64.Machine_Semantics_s.fst.checked",
"Vale.X64.Machine_s.fst.checke... | [
{
"abbrev": false,
"full_module": "FStar.Calc",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "ST"
},
{
"abbrev": true,
"full_module": "Val... | {
"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 | args: Prims.list Vale.Interop.Base.arg -> va_s: Vale.X64.Decls.va_state
-> FStar.Pervasives.Lemma
(ensures
Vale.AsLowStar.LowStarSig.mem_correspondence args
(Vale.Interop.Heap_s.hs_of_mem (Vale.X64.MemoryAdapters.as_mem (Mkvale_full_heap?.vf_heap (Mkvale_state?.vs_heap
va_s))... | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"Prims.list",
"Vale.Interop.Base.arg",
"Vale.X64.Decls.va_state",
"Vale.Arch.HeapTypes_s.base_typ",
"Vale.Interop.Base.buffer_qualifiers",
"Vale.Interop.Base.td_as_type",
"Vale.Interop.Base.TD_Buffer",
"Vale.AsLowStar.MemoryHelpers.buffer_as_seq_reveal2",
"Vale.Interop.Base.TD_ImmBuffer",
"Vale.As... | [
"recursion"
] | false | false | true | false | false | let rec mem_correspondence_refl (args: list arg) (va_s: V.va_state)
: Lemma (ensures LSig.mem_correspondence args (hs_of_mem (as_mem va_s.VS.vs_heap.vf_heap)) va_s) =
| let h = hs_of_mem (as_mem va_s.VS.vs_heap.vf_heap) in
match args with
| [] -> ()
| hd :: tl ->
mem_correspondence_refl tl va_s;
match hd with
| (| TD_Buffer src bt _ , x |) -> Vale.AsLowStar.MemoryHelpers.buffer_as_seq_reveal2 src bt x va_s
| (| TD_ImmBuffer src bt _ , x |) ->
Vale.AsLowStar.MemoryHelpers.i... | false |
Vale.AsLowStar.Wrapper.fst | Vale.AsLowStar.Wrapper.core_create_lemma_mem_correspondance | val core_create_lemma_mem_correspondance
(#max_arity: nat)
(#arg_reg: IX64.arg_reg_relation max_arity)
(args: IX64.arg_list)
(h0: HS.mem{mem_roots_p h0 args})
: Lemma
(ensures
(let va_s = LSig.create_initial_vale_state #max_arity #arg_reg args h0 in
LSig.mem_correspondence ... | val core_create_lemma_mem_correspondance
(#max_arity: nat)
(#arg_reg: IX64.arg_reg_relation max_arity)
(args: IX64.arg_list)
(h0: HS.mem{mem_roots_p h0 args})
: Lemma
(ensures
(let va_s = LSig.create_initial_vale_state #max_arity #arg_reg args h0 in
LSig.mem_correspondence ... | let core_create_lemma_mem_correspondance
(#max_arity:nat)
(#arg_reg:IX64.arg_reg_relation max_arity)
(args:IX64.arg_list)
(h0:HS.mem{mem_roots_p h0 args})
: Lemma
(ensures
(let va_s = LSig.create_initial_vale_state #max_arity #arg_reg args h0 in
LSig.mem_correspondence args h0 v... | {
"file_name": "vale/code/arch/x64/interop/Vale.AsLowStar.Wrapper.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 12,
"end_line": 193,
"start_col": 0,
"start_line": 160
} | module Vale.AsLowStar.Wrapper
open Vale.Arch.HeapImpl
open Vale.X64.MemoryAdapters
open Vale.Interop.Base
module B = LowStar.Buffer
module BS = Vale.X64.Machine_Semantics_s
module UV = LowStar.BufferView.Up
module DV = LowStar.BufferView.Down
module HS = FStar.HyperStack
module ME = Vale.X64.Memory
module SI = Vale.X64... | {
"checked_file": "/",
"dependencies": [
"Vale.X64.StateLemmas.fsti.checked",
"Vale.X64.State.fsti.checked",
"Vale.X64.Stack_i.fsti.checked",
"Vale.X64.MemoryAdapters.fsti.checked",
"Vale.X64.Memory.fsti.checked",
"Vale.X64.Machine_Semantics_s.fst.checked",
"Vale.X64.Machine_s.fst.checke... | [
{
"abbrev": false,
"full_module": "FStar.Calc",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "ST"
},
{
"abbrev": true,
"full_module": "Val... | {
"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 |
args: Vale.Interop.X64.arg_list ->
h0: FStar.Monotonic.HyperStack.mem{Vale.Interop.Base.mem_roots_p h0 args}
-> FStar.Pervasives.Lemma
(ensures
(let va_s = Vale.AsLowStar.LowStarSig.create_initial_vale_state args h0 in
Vale.AsLowStar.LowStarSig.mem_correspondence args h0 va_s)) | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"Prims.nat",
"Vale.Interop.X64.arg_reg_relation",
"Vale.Interop.X64.arg_list",
"FStar.Monotonic.HyperStack.mem",
"Vale.Interop.Base.mem_roots_p",
"Prims.unit",
"FStar.BigOps.big_and'_forall",
"Vale.Interop.Base.arg",
"Vale.Interop.Base.live_arg",
"Prims.list",
"Prims.l_Forall",
"Prims.l_imp",
... | [] | false | false | true | false | false | let core_create_lemma_mem_correspondance
(#max_arity: nat)
(#arg_reg: IX64.arg_reg_relation max_arity)
(args: IX64.arg_list)
(h0: HS.mem{mem_roots_p h0 args})
: Lemma
(ensures
(let va_s = LSig.create_initial_vale_state #max_arity #arg_reg args h0 in
LSig.mem_correspondence ... | let va_s = LSig.create_initial_vale_state #max_arity #arg_reg args h0 in
let rec aux (accu: list arg)
: Lemma (requires (forall x. List.memP x accu ==> (live_arg h0 x)))
(ensures LSig.mem_correspondence accu h0 va_s) =
match accu with
| [] -> ()
| hd :: tl ->
aux tl;
match hd with
| (| TD_Bu... | false |
Vale.AsLowStar.Wrapper.fst | Vale.AsLowStar.Wrapper.core_create_lemma_stack_args | val core_create_lemma_stack_args
(#max_arity: nat)
(#arg_reg: IX64.arg_reg_relation max_arity)
(args: IX64.arg_list)
(h0: HS.mem{mem_roots_p h0 args})
: Lemma
(ensures
(let va_s = LSig.create_initial_vale_state #max_arity #arg_reg args h0 in
LSig.stack_args max_arity (List.... | val core_create_lemma_stack_args
(#max_arity: nat)
(#arg_reg: IX64.arg_reg_relation max_arity)
(args: IX64.arg_list)
(h0: HS.mem{mem_roots_p h0 args})
: Lemma
(ensures
(let va_s = LSig.create_initial_vale_state #max_arity #arg_reg args h0 in
LSig.stack_args max_arity (List.... | let core_create_lemma_stack_args
(#max_arity:nat)
(#arg_reg:IX64.arg_reg_relation max_arity)
(args:IX64.arg_list)
(h0:HS.mem{mem_roots_p h0 args})
: Lemma
(ensures (let va_s = LSig.create_initial_vale_state #max_arity #arg_reg args h0 in
LSig.stack_args max_arity (List.length arg... | {
"file_name": "vale/code/arch/x64/interop/Vale.AsLowStar.Wrapper.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 12,
"end_line": 470,
"start_col": 0,
"start_line": 425
} | module Vale.AsLowStar.Wrapper
open Vale.Arch.HeapImpl
open Vale.X64.MemoryAdapters
open Vale.Interop.Base
module B = LowStar.Buffer
module BS = Vale.X64.Machine_Semantics_s
module UV = LowStar.BufferView.Up
module DV = LowStar.BufferView.Down
module HS = FStar.HyperStack
module ME = Vale.X64.Memory
module SI = Vale.X64... | {
"checked_file": "/",
"dependencies": [
"Vale.X64.StateLemmas.fsti.checked",
"Vale.X64.State.fsti.checked",
"Vale.X64.Stack_i.fsti.checked",
"Vale.X64.MemoryAdapters.fsti.checked",
"Vale.X64.Memory.fsti.checked",
"Vale.X64.Machine_Semantics_s.fst.checked",
"Vale.X64.Machine_s.fst.checke... | [
{
"abbrev": false,
"full_module": "FStar.Calc",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "ST"
},
{
"abbrev": true,
"full_module": "Val... | {
"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 |
args: Vale.Interop.X64.arg_list ->
h0: FStar.Monotonic.HyperStack.mem{Vale.Interop.Base.mem_roots_p h0 args}
-> FStar.Pervasives.Lemma
(ensures
(let va_s = Vale.AsLowStar.LowStarSig.create_initial_vale_state args h0 in
Vale.AsLowStar.LowStarSig.stack_args max_arity (FStar.List.Tot.Base.leng... | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"Prims.nat",
"Vale.Interop.X64.arg_reg_relation",
"Vale.Interop.X64.arg_list",
"FStar.Monotonic.HyperStack.mem",
"Vale.Interop.Base.mem_roots_p",
"Prims.unit",
"Vale.AsLowStar.Wrapper.stack_of_args_stack_args'",
"FStar.List.Tot.Base.length",
"Vale.Interop.Base.arg",
"Prims.b2t",
"Prims.op_LessTh... | [] | false | false | true | false | false | let core_create_lemma_stack_args
(#max_arity: nat)
(#arg_reg: IX64.arg_reg_relation max_arity)
(args: IX64.arg_list)
(h0: HS.mem{mem_roots_p h0 args})
: Lemma
(ensures
(let va_s = LSig.create_initial_vale_state #max_arity #arg_reg args h0 in
LSig.stack_args max_arity (List.... | let va_s = LSig.create_initial_vale_state #max_arity #arg_reg args h0 in
let init_rsp = IA.init_regs MS.rRsp in
let stack = Map.const_on Set.empty 0 in
let stack_map = IX64.stack_of_args max_arity (List.Tot.length args) init_rsp args stack in
let stack_f = BS.Machine_stack init_rsp stack_map in
let rec aux (accu: IX64.... | false |
Vale.X64.Memory.fst | Vale.X64.Memory.modifies_goal_directed | val modifies_goal_directed (s:loc) (h1 h2:vale_heap) : GTot prop0 | val modifies_goal_directed (s:loc) (h1 h2:vale_heap) : GTot prop0 | let modifies_goal_directed s h1 h2 = modifies s h1 h2 | {
"file_name": "vale/code/arch/x64/Vale.X64.Memory.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 53,
"end_line": 198,
"start_col": 0,
"start_line": 198
} | module Vale.X64.Memory
include Vale.Interop.Types
friend Vale.Arch.Heap
open Vale.Def.Opaque_s
open Vale.Arch.HeapImpl
open Vale.Arch.Heap
open Vale.Interop.Base
module IB = Vale.Interop.Base
module I = Vale.Interop
module HS = FStar.HyperStack
module HST = FStar.HyperStack.ST
module MB = LowStar.Monotonic.Buffer
modul... | {
"checked_file": "/",
"dependencies": [
"Vale.X64.Machine_Semantics_s.fst.checked",
"Vale.X64.Machine_s.fst.checked",
"Vale.Lib.Seqs_s.fst.checked",
"Vale.Lib.BufferViewHelpers.fst.checked",
"Vale.Interop.Views.fsti.checked",
"Vale.Interop.Types.fst.checked",
"Vale.Interop.Base.fst.chec... | [
{
"abbrev": false,
"full_module": "Vale.Lib.Seqs_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Def.Words.Four_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Def.Words.Seq_s",
"short_module": null
},
{
"abbrev": false,
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | s: Vale.X64.Memory.loc -> h1: Vale.Arch.HeapImpl.vale_heap -> h2: Vale.Arch.HeapImpl.vale_heap
-> Prims.GTot Vale.Def.Prop_s.prop0 | Prims.GTot | [
"sometrivial"
] | [] | [
"Vale.X64.Memory.loc",
"Vale.Arch.HeapImpl.vale_heap",
"Vale.X64.Memory.modifies",
"Vale.Def.Prop_s.prop0"
] | [] | false | false | false | false | false | let modifies_goal_directed s h1 h2 =
| modifies s h1 h2 | false |
Vale.X64.Memory.fst | Vale.X64.Memory.v_of_typ | val v_of_typ (t: base_typ) (v: base_typ_as_vale_type t) : base_typ_as_type t | val v_of_typ (t: base_typ) (v: base_typ_as_vale_type t) : base_typ_as_type t | let v_of_typ (t:base_typ) (v:base_typ_as_vale_type t) : base_typ_as_type t =
match t with
| TUInt8 -> UInt8.uint_to_t v
| TUInt16 -> UInt16.uint_to_t v
| TUInt32 -> UInt32.uint_to_t v
| TUInt64 -> UInt64.uint_to_t v
| TUInt128 -> v | {
"file_name": "vale/code/arch/x64/Vale.X64.Memory.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 17,
"end_line": 42,
"start_col": 0,
"start_line": 36
} | module Vale.X64.Memory
include Vale.Interop.Types
friend Vale.Arch.Heap
open Vale.Def.Opaque_s
open Vale.Arch.HeapImpl
open Vale.Arch.Heap
open Vale.Interop.Base
module IB = Vale.Interop.Base
module I = Vale.Interop
module HS = FStar.HyperStack
module HST = FStar.HyperStack.ST
module MB = LowStar.Monotonic.Buffer
modul... | {
"checked_file": "/",
"dependencies": [
"Vale.X64.Machine_Semantics_s.fst.checked",
"Vale.X64.Machine_s.fst.checked",
"Vale.Lib.Seqs_s.fst.checked",
"Vale.Lib.BufferViewHelpers.fst.checked",
"Vale.Interop.Views.fsti.checked",
"Vale.Interop.Types.fst.checked",
"Vale.Interop.Base.fst.chec... | [
{
"abbrev": true,
"full_module": "Vale.X64.Machine_Semantics_s",
"short_module": "S"
},
{
"abbrev": true,
"full_module": "FStar.Heap",
"short_module": "H"
},
{
"abbrev": false,
"full_module": "Vale.Lib.BufferViewHelpers",
"short_module": null
},
{
"abbrev": true,
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 2,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | t: Vale.Arch.HeapTypes_s.base_typ -> v: Vale.X64.Memory.base_typ_as_vale_type t
-> Vale.Interop.Types.base_typ_as_type t | Prims.Tot | [
"total"
] | [] | [
"Vale.Arch.HeapTypes_s.base_typ",
"Vale.X64.Memory.base_typ_as_vale_type",
"FStar.UInt8.uint_to_t",
"FStar.UInt16.uint_to_t",
"FStar.UInt32.uint_to_t",
"FStar.UInt64.uint_to_t",
"Vale.Interop.Types.base_typ_as_type"
] | [] | false | false | false | false | false | let v_of_typ (t: base_typ) (v: base_typ_as_vale_type t) : base_typ_as_type t =
| match t with
| TUInt8 -> UInt8.uint_to_t v
| TUInt16 -> UInt16.uint_to_t v
| TUInt32 -> UInt32.uint_to_t v
| TUInt64 -> UInt64.uint_to_t v
| TUInt128 -> v | false |
Vale.AsLowStar.Wrapper.fst | Vale.AsLowStar.Wrapper.frame_update_valid_heap | val frame_update_valid_heap (ptr: int) (v: MS.nat64) (mem: BS.machine_heap) (j: int)
: Lemma (requires ptr >= j + 8)
(ensures BS.valid_addr64 j mem == BS.valid_addr64 j (BS.update_heap64 ptr v mem)) | val frame_update_valid_heap (ptr: int) (v: MS.nat64) (mem: BS.machine_heap) (j: int)
: Lemma (requires ptr >= j + 8)
(ensures BS.valid_addr64 j mem == BS.valid_addr64 j (BS.update_heap64 ptr v mem)) | let frame_update_valid_heap (ptr:int) (v:MS.nat64) (mem:BS.machine_heap) (j:int) : Lemma
(requires ptr >= j + 8)
(ensures BS.valid_addr64 j mem == BS.valid_addr64 j (BS.update_heap64 ptr v mem))
=
reveal_opaque (`%BS.valid_addr64) BS.valid_addr64;
BS.update_heap64_reveal () | {
"file_name": "vale/code/arch/x64/interop/Vale.AsLowStar.Wrapper.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 28,
"end_line": 346,
"start_col": 0,
"start_line": 341
} | module Vale.AsLowStar.Wrapper
open Vale.Arch.HeapImpl
open Vale.X64.MemoryAdapters
open Vale.Interop.Base
module B = LowStar.Buffer
module BS = Vale.X64.Machine_Semantics_s
module UV = LowStar.BufferView.Up
module DV = LowStar.BufferView.Down
module HS = FStar.HyperStack
module ME = Vale.X64.Memory
module SI = Vale.X64... | {
"checked_file": "/",
"dependencies": [
"Vale.X64.StateLemmas.fsti.checked",
"Vale.X64.State.fsti.checked",
"Vale.X64.Stack_i.fsti.checked",
"Vale.X64.MemoryAdapters.fsti.checked",
"Vale.X64.Memory.fsti.checked",
"Vale.X64.Machine_Semantics_s.fst.checked",
"Vale.X64.Machine_s.fst.checke... | [
{
"abbrev": false,
"full_module": "FStar.Calc",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "ST"
},
{
"abbrev": true,
"full_module": "Val... | {
"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 |
ptr: Prims.int ->
v: Vale.X64.Machine_s.nat64 ->
mem: Vale.Arch.MachineHeap_s.machine_heap ->
j: Prims.int
-> FStar.Pervasives.Lemma (requires ptr >= j + 8)
(ensures
Vale.Arch.MachineHeap_s.valid_addr64 j mem ==
Vale.Arch.MachineHeap_s.valid_addr64 j (Vale.Arch.MachineHeap_s.upd... | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"Prims.int",
"Vale.X64.Machine_s.nat64",
"Vale.Arch.MachineHeap_s.machine_heap",
"Vale.Arch.MachineHeap_s.update_heap64_reveal",
"Prims.unit",
"FStar.Pervasives.reveal_opaque",
"Prims.bool",
"Vale.Arch.MachineHeap_s.valid_addr64",
"Prims.b2t",
"Prims.op_GreaterThanOrEqual",
"Prims.op_Addition",
... | [] | true | false | true | false | false | let frame_update_valid_heap (ptr: int) (v: MS.nat64) (mem: BS.machine_heap) (j: int)
: Lemma (requires ptr >= j + 8)
(ensures BS.valid_addr64 j mem == BS.valid_addr64 j (BS.update_heap64 ptr v mem)) =
| reveal_opaque (`%BS.valid_addr64) BS.valid_addr64;
BS.update_heap64_reveal () | false |
Vale.X64.Memory.fst | Vale.X64.Memory.uint_view | val uint_view (t: base_typ)
: (v: UV.view UInt8.t (IB.base_typ_as_type t) {UV.View?.n v == view_n t}) | val uint_view (t: base_typ)
: (v: UV.view UInt8.t (IB.base_typ_as_type t) {UV.View?.n v == view_n t}) | let uint_view (t:base_typ) : (v:UV.view UInt8.t (IB.base_typ_as_type t){UV.View?.n v == view_n t}) =
match t with
| TUInt8 -> uint8_view
| TUInt16 -> uint16_view
| TUInt32 -> uint32_view
| TUInt64 -> uint64_view
| TUInt128 -> uint128_view | {
"file_name": "vale/code/arch/x64/Vale.X64.Memory.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 28,
"end_line": 70,
"start_col": 0,
"start_line": 64
} | module Vale.X64.Memory
include Vale.Interop.Types
friend Vale.Arch.Heap
open Vale.Def.Opaque_s
open Vale.Arch.HeapImpl
open Vale.Arch.Heap
open Vale.Interop.Base
module IB = Vale.Interop.Base
module I = Vale.Interop
module HS = FStar.HyperStack
module HST = FStar.HyperStack.ST
module MB = LowStar.Monotonic.Buffer
modul... | {
"checked_file": "/",
"dependencies": [
"Vale.X64.Machine_Semantics_s.fst.checked",
"Vale.X64.Machine_s.fst.checked",
"Vale.Lib.Seqs_s.fst.checked",
"Vale.Lib.BufferViewHelpers.fst.checked",
"Vale.Interop.Views.fsti.checked",
"Vale.Interop.Types.fst.checked",
"Vale.Interop.Base.fst.chec... | [
{
"abbrev": true,
"full_module": "Vale.X64.Machine_Semantics_s",
"short_module": "S"
},
{
"abbrev": true,
"full_module": "FStar.Heap",
"short_module": "H"
},
{
"abbrev": false,
"full_module": "Vale.Lib.BufferViewHelpers",
"short_module": null
},
{
"abbrev": true,
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 2,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | t: Vale.Arch.HeapTypes_s.base_typ
-> v:
LowStar.BufferView.Up.view FStar.UInt8.t (Vale.Interop.Types.base_typ_as_type t)
{View?.n v == Vale.Interop.Types.view_n t} | Prims.Tot | [
"total"
] | [] | [
"Vale.Arch.HeapTypes_s.base_typ",
"Vale.X64.Memory.uint8_view",
"Vale.X64.Memory.uint16_view",
"Vale.X64.Memory.uint32_view",
"Vale.X64.Memory.uint64_view",
"Vale.X64.Memory.uint128_view",
"LowStar.BufferView.Up.view",
"FStar.UInt8.t",
"Vale.Interop.Types.base_typ_as_type",
"Prims.eq2",
"Prims.p... | [] | false | false | false | false | false | let uint_view (t: base_typ)
: (v: UV.view UInt8.t (IB.base_typ_as_type t) {UV.View?.n v == view_n t}) =
| match t with
| TUInt8 -> uint8_view
| TUInt16 -> uint16_view
| TUInt32 -> uint32_view
| TUInt64 -> uint64_view
| TUInt128 -> uint128_view | false |
Vale.X64.Memory.fst | Vale.X64.Memory.v_to_typ | val v_to_typ (t: base_typ) (v: base_typ_as_type t) : base_typ_as_vale_type t | val v_to_typ (t: base_typ) (v: base_typ_as_type t) : base_typ_as_vale_type t | let v_to_typ (t:base_typ) (v:base_typ_as_type t) : base_typ_as_vale_type t =
match t with
| TUInt8 -> UInt8.v v
| TUInt16 -> UInt16.v v
| TUInt32 -> UInt32.v v
| TUInt64 -> UInt64.v v
| TUInt128 -> v | {
"file_name": "vale/code/arch/x64/Vale.X64.Memory.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 17,
"end_line": 50,
"start_col": 0,
"start_line": 44
} | module Vale.X64.Memory
include Vale.Interop.Types
friend Vale.Arch.Heap
open Vale.Def.Opaque_s
open Vale.Arch.HeapImpl
open Vale.Arch.Heap
open Vale.Interop.Base
module IB = Vale.Interop.Base
module I = Vale.Interop
module HS = FStar.HyperStack
module HST = FStar.HyperStack.ST
module MB = LowStar.Monotonic.Buffer
modul... | {
"checked_file": "/",
"dependencies": [
"Vale.X64.Machine_Semantics_s.fst.checked",
"Vale.X64.Machine_s.fst.checked",
"Vale.Lib.Seqs_s.fst.checked",
"Vale.Lib.BufferViewHelpers.fst.checked",
"Vale.Interop.Views.fsti.checked",
"Vale.Interop.Types.fst.checked",
"Vale.Interop.Base.fst.chec... | [
{
"abbrev": true,
"full_module": "Vale.X64.Machine_Semantics_s",
"short_module": "S"
},
{
"abbrev": true,
"full_module": "FStar.Heap",
"short_module": "H"
},
{
"abbrev": false,
"full_module": "Vale.Lib.BufferViewHelpers",
"short_module": null
},
{
"abbrev": true,
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 2,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | t: Vale.Arch.HeapTypes_s.base_typ -> v: Vale.Interop.Types.base_typ_as_type t
-> Vale.X64.Memory.base_typ_as_vale_type t | Prims.Tot | [
"total"
] | [] | [
"Vale.Arch.HeapTypes_s.base_typ",
"Vale.Interop.Types.base_typ_as_type",
"FStar.UInt8.v",
"FStar.UInt16.v",
"FStar.UInt32.v",
"FStar.UInt64.v",
"Vale.X64.Memory.base_typ_as_vale_type"
] | [] | false | false | false | false | false | let v_to_typ (t: base_typ) (v: base_typ_as_type t) : base_typ_as_vale_type t =
| match t with
| TUInt8 -> UInt8.v v
| TUInt16 -> UInt16.v v
| TUInt32 -> UInt32.v v
| TUInt64 -> UInt64.v v
| TUInt128 -> v | false |
Vale.X64.Memory.fst | Vale.X64.Memory.buffer_length | val buffer_length (#t:base_typ) (b:buffer t) : GTot nat | val buffer_length (#t:base_typ) (b:buffer t) : GTot nat | let buffer_length #t b = UV.length (UV.mk_buffer (get_downview b.bsrc) (uint_view t)) | {
"file_name": "vale/code/arch/x64/Vale.X64.Memory.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 85,
"end_line": 78,
"start_col": 0,
"start_line": 78
} | module Vale.X64.Memory
include Vale.Interop.Types
friend Vale.Arch.Heap
open Vale.Def.Opaque_s
open Vale.Arch.HeapImpl
open Vale.Arch.Heap
open Vale.Interop.Base
module IB = Vale.Interop.Base
module I = Vale.Interop
module HS = FStar.HyperStack
module HST = FStar.HyperStack.ST
module MB = LowStar.Monotonic.Buffer
modul... | {
"checked_file": "/",
"dependencies": [
"Vale.X64.Machine_Semantics_s.fst.checked",
"Vale.X64.Machine_s.fst.checked",
"Vale.Lib.Seqs_s.fst.checked",
"Vale.Lib.BufferViewHelpers.fst.checked",
"Vale.Interop.Views.fsti.checked",
"Vale.Interop.Types.fst.checked",
"Vale.Interop.Base.fst.chec... | [
{
"abbrev": true,
"full_module": "Vale.X64.Machine_Semantics_s",
"short_module": "S"
},
{
"abbrev": true,
"full_module": "FStar.Heap",
"short_module": "H"
},
{
"abbrev": false,
"full_module": "Vale.Lib.BufferViewHelpers",
"short_module": null
},
{
"abbrev": true,
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 2,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | b: Vale.X64.Memory.buffer t -> Prims.GTot Prims.nat | Prims.GTot | [
"sometrivial"
] | [] | [
"Vale.Arch.HeapTypes_s.base_typ",
"Vale.X64.Memory.buffer",
"LowStar.BufferView.Up.length",
"Vale.Interop.Types.base_typ_as_type",
"LowStar.BufferView.Up.mk_buffer",
"FStar.UInt8.t",
"Vale.Interop.Types.get_downview",
"Vale.Interop.Types.__proj__Buffer__item__src",
"Vale.Interop.Types.b8_preorder",
... | [] | false | false | false | false | false | let buffer_length #t b =
| UV.length (UV.mk_buffer (get_downview b.bsrc) (uint_view t)) | false |
Vale.X64.Memory.fst | Vale.X64.Memory.buffer_as_seq | val buffer_as_seq (#t:base_typ) (h:vale_heap) (b:buffer t) : GTot (Seq.seq (base_typ_as_vale_type t)) | val buffer_as_seq (#t:base_typ) (h:vale_heap) (b:buffer t) : GTot (Seq.seq (base_typ_as_vale_type t)) | let buffer_as_seq #t h b =
let s = UV.as_seq (IB.hs_of_mem (_ih h)) (UV.mk_buffer (get_downview b.bsrc) (uint_view t)) in
Vale.Lib.Seqs_s.seq_map (v_to_typ t) s | {
"file_name": "vale/code/arch/x64/Vale.X64.Memory.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 40,
"end_line": 74,
"start_col": 0,
"start_line": 72
} | module Vale.X64.Memory
include Vale.Interop.Types
friend Vale.Arch.Heap
open Vale.Def.Opaque_s
open Vale.Arch.HeapImpl
open Vale.Arch.Heap
open Vale.Interop.Base
module IB = Vale.Interop.Base
module I = Vale.Interop
module HS = FStar.HyperStack
module HST = FStar.HyperStack.ST
module MB = LowStar.Monotonic.Buffer
modul... | {
"checked_file": "/",
"dependencies": [
"Vale.X64.Machine_Semantics_s.fst.checked",
"Vale.X64.Machine_s.fst.checked",
"Vale.Lib.Seqs_s.fst.checked",
"Vale.Lib.BufferViewHelpers.fst.checked",
"Vale.Interop.Views.fsti.checked",
"Vale.Interop.Types.fst.checked",
"Vale.Interop.Base.fst.chec... | [
{
"abbrev": true,
"full_module": "Vale.X64.Machine_Semantics_s",
"short_module": "S"
},
{
"abbrev": true,
"full_module": "FStar.Heap",
"short_module": "H"
},
{
"abbrev": false,
"full_module": "Vale.Lib.BufferViewHelpers",
"short_module": null
},
{
"abbrev": true,
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 2,
"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.Arch.HeapImpl.vale_heap -> b: Vale.X64.Memory.buffer t
-> Prims.GTot (FStar.Seq.Base.seq (Vale.X64.Memory.base_typ_as_vale_type t)) | Prims.GTot | [
"sometrivial"
] | [] | [
"Vale.Arch.HeapTypes_s.base_typ",
"Vale.Arch.HeapImpl.vale_heap",
"Vale.X64.Memory.buffer",
"Vale.Lib.Seqs_s.seq_map",
"Vale.Interop.Types.base_typ_as_type",
"Vale.X64.Memory.base_typ_as_vale_type",
"Vale.X64.Memory.v_to_typ",
"FStar.Seq.Properties.lseq",
"LowStar.BufferView.Up.length",
"LowStar.B... | [] | false | false | false | false | false | let buffer_as_seq #t h b =
| let s = UV.as_seq (IB.hs_of_mem (_ih h)) (UV.mk_buffer (get_downview b.bsrc) (uint_view t)) in
Vale.Lib.Seqs_s.seq_map (v_to_typ t) s | false |
Hacl.Impl.Curve25519.Generic.fst | Hacl.Impl.Curve25519.Generic.scalarmult | val scalarmult: (#s: field_spec) -> scalarmult_st s True | val scalarmult: (#s: field_spec) -> scalarmult_st s True | let scalarmult #s out priv pub =
push_frame ();
let init = create (2ul `FStar.UInt32.mul` ((nlimb s) <: FStar.UInt32.t)) (limb_zero s) in
decode_point #s init pub;
montgomery_ladder #s init priv init;
encode_point #s out init;
pop_frame() | {
"file_name": "code/curve25519/Hacl.Impl.Curve25519.Generic.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 13,
"end_line": 481,
"start_col": 0,
"start_line": 475
} | module Hacl.Impl.Curve25519.Generic
open FStar.HyperStack
open FStar.HyperStack.All
open FStar.Mul
open Lib.IntTypes
open Lib.Buffer
open Lib.ByteBuffer
open Hacl.Impl.Curve25519.Fields
include Hacl.Impl.Curve25519.Finv
include Hacl.Impl.Curve25519.AddAndDouble
module ST = FStar.HyperStack.ST
module BSeq = Lib.Byt... | {
"checked_file": "/",
"dependencies": [
"Spec.Curve25519.fst.checked",
"prims.fst.checked",
"Meta.Attribute.fst.checked",
"LowStar.Monotonic.Buffer.fsti.checked",
"Lib.Sequence.fsti.checked",
"Lib.Loops.fsti.checked",
"Lib.LoopCombinators.fst.checked",
"Lib.IntTypes.fsti.checked",
... | [
{
"abbrev": true,
"full_module": "Hacl.Spec.Curve25519.Field64.Lemmas",
"short_module": "Lemmas"
},
{
"abbrev": true,
"full_module": "Hacl.Spec.Curve25519.AddAndDouble",
"short_module": "M"
},
{
"abbrev": true,
"full_module": "Spec.Curve25519",
"short_module": "S"
},
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | Hacl.Impl.Curve25519.Generic.scalarmult_st s Prims.l_True | Prims.Tot | [
"total"
] | [] | [
"Hacl.Impl.Curve25519.Fields.Core.field_spec",
"Lib.Buffer.lbuffer",
"Lib.IntTypes.uint8",
"FStar.UInt32.__uint_to_t",
"FStar.HyperStack.ST.pop_frame",
"Prims.unit",
"Hacl.Impl.Curve25519.Generic.encode_point",
"Hacl.Impl.Curve25519.Generic.montgomery_ladder",
"Hacl.Impl.Curve25519.Generic.decode_po... | [] | false | false | false | false | false | let scalarmult #s out priv pub =
| push_frame ();
let init = create (2ul `FStar.UInt32.mul` ((nlimb s) <: FStar.UInt32.t)) (limb_zero s) in
decode_point #s init pub;
montgomery_ladder #s init priv init;
encode_point #s out init;
pop_frame () | false |
Vale.X64.Memory.fst | Vale.X64.Memory.valid_offset | val valid_offset : t: Vale.Arch.HeapTypes_s.base_typ ->
n: Prims.nat ->
base: Prims.nat ->
addr: Prims.int ->
i: Prims.nat
-> Prims.logical | let valid_offset (t:base_typ) (n base:nat) (addr:int) (i:nat) =
exists j.{:pattern (scale_t t j)} i <= j /\ j < n /\ base + scale_t t j == addr | {
"file_name": "vale/code/arch/x64/Vale.X64.Memory.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 81,
"end_line": 330,
"start_col": 0,
"start_line": 329
} | module Vale.X64.Memory
include Vale.Interop.Types
friend Vale.Arch.Heap
open Vale.Def.Opaque_s
open Vale.Arch.HeapImpl
open Vale.Arch.Heap
open Vale.Interop.Base
module IB = Vale.Interop.Base
module I = Vale.Interop
module HS = FStar.HyperStack
module HST = FStar.HyperStack.ST
module MB = LowStar.Monotonic.Buffer
modul... | {
"checked_file": "/",
"dependencies": [
"Vale.X64.Machine_Semantics_s.fst.checked",
"Vale.X64.Machine_s.fst.checked",
"Vale.Lib.Seqs_s.fst.checked",
"Vale.Lib.BufferViewHelpers.fst.checked",
"Vale.Interop.Views.fsti.checked",
"Vale.Interop.Types.fst.checked",
"Vale.Interop.Base.fst.chec... | [
{
"abbrev": false,
"full_module": "Vale.Lib.Seqs_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Def.Words.Four_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Def.Words.Seq_s",
"short_module": null
},
{
"abbrev": false,
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
t: Vale.Arch.HeapTypes_s.base_typ ->
n: Prims.nat ->
base: Prims.nat ->
addr: Prims.int ->
i: Prims.nat
-> Prims.logical | Prims.Tot | [
"total"
] | [] | [
"Vale.Arch.HeapTypes_s.base_typ",
"Prims.nat",
"Prims.int",
"Prims.l_Exists",
"Prims.l_and",
"Prims.b2t",
"Prims.op_LessThanOrEqual",
"Prims.op_LessThan",
"Prims.eq2",
"Prims.op_Addition",
"Vale.X64.Memory.scale_t",
"Prims.logical"
] | [] | false | false | false | true | true | let valid_offset (t: base_typ) (n base: nat) (addr: int) (i: nat) =
| exists j. {:pattern (scale_t t j)} i <= j /\ j < n /\ base + scale_t t j == addr | false | |
Vale.X64.Memory.fst | Vale.X64.Memory.scale_t | val scale_t (t: base_typ) (index: int) : int | val scale_t (t: base_typ) (index: int) : int | let scale_t (t:base_typ) (index:int) : int = scale_by (view_n t) index | {
"file_name": "vale/code/arch/x64/Vale.X64.Memory.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 77,
"end_line": 310,
"start_col": 7,
"start_line": 310
} | module Vale.X64.Memory
include Vale.Interop.Types
friend Vale.Arch.Heap
open Vale.Def.Opaque_s
open Vale.Arch.HeapImpl
open Vale.Arch.Heap
open Vale.Interop.Base
module IB = Vale.Interop.Base
module I = Vale.Interop
module HS = FStar.HyperStack
module HST = FStar.HyperStack.ST
module MB = LowStar.Monotonic.Buffer
modul... | {
"checked_file": "/",
"dependencies": [
"Vale.X64.Machine_Semantics_s.fst.checked",
"Vale.X64.Machine_s.fst.checked",
"Vale.Lib.Seqs_s.fst.checked",
"Vale.Lib.BufferViewHelpers.fst.checked",
"Vale.Interop.Views.fsti.checked",
"Vale.Interop.Types.fst.checked",
"Vale.Interop.Base.fst.chec... | [
{
"abbrev": false,
"full_module": "Vale.Lib.Seqs_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Def.Words.Four_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Def.Words.Seq_s",
"short_module": null
},
{
"abbrev": false,
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | t: Vale.Arch.HeapTypes_s.base_typ -> index: Prims.int -> Prims.int | Prims.Tot | [
"total"
] | [] | [
"Vale.Arch.HeapTypes_s.base_typ",
"Prims.int",
"Vale.X64.Memory.scale_by",
"Vale.Interop.Types.view_n"
] | [] | false | false | false | true | false | let scale_t (t: base_typ) (index: int) : int =
| scale_by (view_n t) index | false |
Vale.X64.Memory.fst | Vale.X64.Memory.modifies | val modifies (s:loc) (h1 h2:vale_heap) : GTot prop0 | val modifies (s:loc) (h1 h2:vale_heap) : GTot prop0 | let modifies s h h' =
M.modifies s (_ih h).hs (_ih h').hs /\
h.heapletId == h'.heapletId /\
(_ih h).ptrs == (_ih h').ptrs /\
(_ih h).addrs == (_ih h').addrs /\
HST.equal_domains (_ih h).hs (_ih h').hs | {
"file_name": "vale/code/arch/x64/Vale.X64.Memory.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 42,
"end_line": 90,
"start_col": 0,
"start_line": 85
} | module Vale.X64.Memory
include Vale.Interop.Types
friend Vale.Arch.Heap
open Vale.Def.Opaque_s
open Vale.Arch.HeapImpl
open Vale.Arch.Heap
open Vale.Interop.Base
module IB = Vale.Interop.Base
module I = Vale.Interop
module HS = FStar.HyperStack
module HST = FStar.HyperStack.ST
module MB = LowStar.Monotonic.Buffer
modul... | {
"checked_file": "/",
"dependencies": [
"Vale.X64.Machine_Semantics_s.fst.checked",
"Vale.X64.Machine_s.fst.checked",
"Vale.Lib.Seqs_s.fst.checked",
"Vale.Lib.BufferViewHelpers.fst.checked",
"Vale.Interop.Views.fsti.checked",
"Vale.Interop.Types.fst.checked",
"Vale.Interop.Base.fst.chec... | [
{
"abbrev": true,
"full_module": "Vale.X64.Machine_Semantics_s",
"short_module": "S"
},
{
"abbrev": true,
"full_module": "FStar.Heap",
"short_module": "H"
},
{
"abbrev": false,
"full_module": "Vale.Lib.BufferViewHelpers",
"short_module": null
},
{
"abbrev": true,
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 2,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | s: Vale.X64.Memory.loc -> h1: Vale.Arch.HeapImpl.vale_heap -> h2: Vale.Arch.HeapImpl.vale_heap
-> Prims.GTot Vale.Def.Prop_s.prop0 | Prims.GTot | [
"sometrivial"
] | [] | [
"Vale.X64.Memory.loc",
"Vale.Arch.HeapImpl.vale_heap",
"Prims.l_and",
"LowStar.Monotonic.Buffer.modifies",
"Vale.Interop.Heap_s.__proj__InteropHeap__item__hs",
"Vale.Arch.HeapImpl._ih",
"Prims.eq2",
"FStar.Pervasives.Native.option",
"Vale.Arch.HeapImpl.heaplet_id",
"Vale.Arch.HeapImpl.__proj__Vale... | [] | false | false | false | false | false | let modifies s h h' =
| M.modifies s (_ih h).hs (_ih h').hs /\ h.heapletId == h'.heapletId /\ (_ih h).ptrs == (_ih h').ptrs /\
(_ih h).addrs == (_ih h').addrs /\ HST.equal_domains (_ih h).hs (_ih h').hs | false |
Vale.AsLowStar.Wrapper.fst | Vale.AsLowStar.Wrapper.frame_update_get_heap | val frame_update_get_heap (ptr: int) (v: MS.nat64) (mem: BS.machine_heap) (j: int)
: Lemma (requires ptr >= j + 8)
(ensures BS.get_heap_val64 j mem == BS.get_heap_val64 j (BS.update_heap64 ptr v mem)) | val frame_update_get_heap (ptr: int) (v: MS.nat64) (mem: BS.machine_heap) (j: int)
: Lemma (requires ptr >= j + 8)
(ensures BS.get_heap_val64 j mem == BS.get_heap_val64 j (BS.update_heap64 ptr v mem)) | let frame_update_get_heap (ptr:int) (v:MS.nat64) (mem:BS.machine_heap) (j:int) : Lemma
(requires ptr >= j + 8)
(ensures BS.get_heap_val64 j mem == BS.get_heap_val64 j (BS.update_heap64 ptr v mem))
=
BS.get_heap_val64_reveal ();
BS.update_heap64_reveal () | {
"file_name": "vale/code/arch/x64/interop/Vale.AsLowStar.Wrapper.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 28,
"end_line": 339,
"start_col": 0,
"start_line": 334
} | module Vale.AsLowStar.Wrapper
open Vale.Arch.HeapImpl
open Vale.X64.MemoryAdapters
open Vale.Interop.Base
module B = LowStar.Buffer
module BS = Vale.X64.Machine_Semantics_s
module UV = LowStar.BufferView.Up
module DV = LowStar.BufferView.Down
module HS = FStar.HyperStack
module ME = Vale.X64.Memory
module SI = Vale.X64... | {
"checked_file": "/",
"dependencies": [
"Vale.X64.StateLemmas.fsti.checked",
"Vale.X64.State.fsti.checked",
"Vale.X64.Stack_i.fsti.checked",
"Vale.X64.MemoryAdapters.fsti.checked",
"Vale.X64.Memory.fsti.checked",
"Vale.X64.Machine_Semantics_s.fst.checked",
"Vale.X64.Machine_s.fst.checke... | [
{
"abbrev": false,
"full_module": "FStar.Calc",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "ST"
},
{
"abbrev": true,
"full_module": "Val... | {
"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 |
ptr: Prims.int ->
v: Vale.X64.Machine_s.nat64 ->
mem: Vale.Arch.MachineHeap_s.machine_heap ->
j: Prims.int
-> FStar.Pervasives.Lemma (requires ptr >= j + 8)
(ensures
Vale.Arch.MachineHeap_s.get_heap_val64 j mem ==
Vale.Arch.MachineHeap_s.get_heap_val64 j (Vale.Arch.MachineHeap_s... | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"Prims.int",
"Vale.X64.Machine_s.nat64",
"Vale.Arch.MachineHeap_s.machine_heap",
"Vale.Arch.MachineHeap_s.update_heap64_reveal",
"Prims.unit",
"Vale.Arch.MachineHeap_s.get_heap_val64_reveal",
"Prims.b2t",
"Prims.op_GreaterThanOrEqual",
"Prims.op_Addition",
"Prims.squash",
"Prims.eq2",
"Vale.De... | [] | true | false | true | false | false | let frame_update_get_heap (ptr: int) (v: MS.nat64) (mem: BS.machine_heap) (j: int)
: Lemma (requires ptr >= j + 8)
(ensures BS.get_heap_val64 j mem == BS.get_heap_val64 j (BS.update_heap64 ptr v mem)) =
| BS.get_heap_val64_reveal ();
BS.update_heap64_reveal () | false |
Vale.AsLowStar.Wrapper.fst | Vale.AsLowStar.Wrapper.core_create_lemma_register_args | val core_create_lemma_register_args
(#max_arity: nat)
(#arg_reg: IX64.arg_reg_relation max_arity)
(args: IX64.arg_list)
(h0: HS.mem{mem_roots_p h0 args})
: Lemma
(ensures
(let va_s = LSig.create_initial_vale_state #max_arity #arg_reg args h0 in
LSig.register_args max_arity ... | val core_create_lemma_register_args
(#max_arity: nat)
(#arg_reg: IX64.arg_reg_relation max_arity)
(args: IX64.arg_list)
(h0: HS.mem{mem_roots_p h0 args})
: Lemma
(ensures
(let va_s = LSig.create_initial_vale_state #max_arity #arg_reg args h0 in
LSig.register_args max_arity ... | let core_create_lemma_register_args
(#max_arity:nat)
(#arg_reg:IX64.arg_reg_relation max_arity)
(args:IX64.arg_list)
(h0:HS.mem{mem_roots_p h0 args})
: Lemma
(ensures (let va_s = LSig.create_initial_vale_state #max_arity #arg_reg args h0 in
LSig.register_args max_arity arg_reg (L... | {
"file_name": "vale/code/arch/x64/interop/Vale.AsLowStar.Wrapper.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 27,
"end_line": 283,
"start_col": 0,
"start_line": 245
} | module Vale.AsLowStar.Wrapper
open Vale.Arch.HeapImpl
open Vale.X64.MemoryAdapters
open Vale.Interop.Base
module B = LowStar.Buffer
module BS = Vale.X64.Machine_Semantics_s
module UV = LowStar.BufferView.Up
module DV = LowStar.BufferView.Down
module HS = FStar.HyperStack
module ME = Vale.X64.Memory
module SI = Vale.X64... | {
"checked_file": "/",
"dependencies": [
"Vale.X64.StateLemmas.fsti.checked",
"Vale.X64.State.fsti.checked",
"Vale.X64.Stack_i.fsti.checked",
"Vale.X64.MemoryAdapters.fsti.checked",
"Vale.X64.Memory.fsti.checked",
"Vale.X64.Machine_Semantics_s.fst.checked",
"Vale.X64.Machine_s.fst.checke... | [
{
"abbrev": false,
"full_module": "FStar.Calc",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "ST"
},
{
"abbrev": true,
"full_module": "Val... | {
"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 |
args: Vale.Interop.X64.arg_list ->
h0: FStar.Monotonic.HyperStack.mem{Vale.Interop.Base.mem_roots_p h0 args}
-> FStar.Pervasives.Lemma
(ensures
(let va_s = Vale.AsLowStar.LowStarSig.create_initial_vale_state args h0 in
Vale.AsLowStar.LowStarSig.register_args max_arity
arg_reg
... | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"Prims.nat",
"Vale.Interop.X64.arg_reg_relation",
"Vale.Interop.X64.arg_list",
"FStar.Monotonic.HyperStack.mem",
"Vale.Interop.Base.mem_roots_p",
"Vale.X64.State.vale_state",
"Prims.list",
"Vale.Interop.Base.arg",
"Prims.unit",
"Prims.l_and",
"Prims.l_Forall",
"Vale.X64.Machine_s.reg_64",
"P... | [] | false | false | true | false | false | let core_create_lemma_register_args
(#max_arity: nat)
(#arg_reg: IX64.arg_reg_relation max_arity)
(args: IX64.arg_list)
(h0: HS.mem{mem_roots_p h0 args})
: Lemma
(ensures
(let va_s = LSig.create_initial_vale_state #max_arity #arg_reg args h0 in
LSig.register_args max_arity ... | let va_s = LSig.create_initial_vale_state #max_arity #arg_reg args h0 in
let regs' = IX64.register_of_args max_arity arg_reg (List.Tot.length args) args IA.init_regs in
lemma_register_args' max_arity arg_reg args IA.init_regs;
let open MS in
let regs = FunctionalExtensionality.on reg_64 regs' in
lemma_register_args'_au... | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.