effect stringclasses 48
values | original_source_type stringlengths 0 23k | opens_and_abbrevs listlengths 2 92 | isa_cross_project_example bool 1
class | source_definition stringlengths 9 57.9k | partial_definition stringlengths 7 23.3k | is_div bool 2
classes | is_type null | is_proof bool 2
classes | completed_definiton stringlengths 1 250k | dependencies dict | effect_flags listlengths 0 2 | ideal_premises listlengths 0 236 | mutual_with listlengths 0 11 | file_context stringlengths 0 407k | interleaved bool 1
class | is_simply_typed bool 2
classes | file_name stringlengths 5 48 | vconfig dict | is_simple_lemma null | source_type stringlengths 10 23k | proof_features listlengths 0 1 | name stringlengths 8 95 | source dict | verbose_type stringlengths 1 7.42k | source_range dict |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Prims.Tot | val accessor_compose
(#k1: parser_kind)
(#t1: Type)
(#p1: parser k1 t1)
(#k2: parser_kind)
(#t2: Type)
(#p2: parser k2 t2)
(#cl12: clens t1 t2)
(#a12: gaccessor p1 p2 cl12)
(a12': accessor a12)
(#k3: parser_kind)
(#t3: Type)
(#p3: parser k3 t3)
... | [
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": true,
"full_module": "FStar.Int.Cast",
"short_module": "Cast"
},
{
"abbrev": true,
"full_module": "FStar.Seq",
"short_module": "Seq"
},
{
"abbrev": true,
"full_module": "FSta... | false | let accessor_compose
(#k1: parser_kind)
(#t1: Type)
(#p1: parser k1 t1)
(#k2: parser_kind)
(#t2: Type)
(#p2: parser k2 t2)
(#cl12: clens t1 t2)
(#a12: gaccessor p1 p2 cl12)
(a12' : accessor a12)
(#k3: parser_kind)
(#t3: Type)
(#p3: parser k3 t3)
(#cl23: clens t2 t3)
(#a23: gaccessor p2 p3 cl... | val accessor_compose
(#k1: parser_kind)
(#t1: Type)
(#p1: parser k1 t1)
(#k2: parser_kind)
(#t2: Type)
(#p2: parser k2 t2)
(#cl12: clens t1 t2)
(#a12: gaccessor p1 p2 cl12)
(a12': accessor a12)
(#k3: parser_kind)
(#t3: Type)
(#p3: parser k3 t3)
... | false | null | false | fun #rrel #rel input pos ->
let h = HST.get () in
let pos2 = a12' input pos in
let pos3 = a23' input pos2 in
slice_access_eq h a12 input pos;
slice_access_eq h a23 input pos2;
slice_access_eq h (gaccessor_compose a12 a23) input pos;
gaccessor_compose_eq a12 a23 (bytes_of_slice_from h input pos);
pos3 | {
"checked_file": "LowParse.Low.Base.fst.checked",
"dependencies": [
"prims.fst.checked",
"LowStar.Monotonic.Buffer.fsti.checked",
"LowStar.Comment.fsti.checked",
"LowStar.Buffer.fst.checked",
"LowParse.Math.fst.checked",
"LowParse.Low.ErrorCode.fst.checked",
"LowParse.Low.Base.Spec.fsti... | [
"total"
] | [
"LowParse.Spec.Base.parser_kind",
"LowParse.Spec.Base.parser",
"LowParse.Low.Base.Spec.clens",
"LowParse.Low.Base.Spec.gaccessor",
"LowParse.Low.Base.accessor",
"Prims.unit",
"LowParse.Slice.srel",
"LowParse.Bytes.byte",
"LowParse.Slice.slice",
"FStar.UInt32.t",
"LowParse.Low.Base.Spec.gaccessor... | [] | module LowParse.Low.Base
include LowParse.Low.Base.Spec
include LowParse.Low.ErrorCode
module M = LowParse.Math
module B = LowStar.Monotonic.Buffer
module U32 = FStar.UInt32
module U64 = FStar.UInt64
module HS = FStar.HyperStack
module HST = FStar.HyperStack.ST
module Seq = FStar.Seq
module Cast = FStar.Int.Cast
modul... | false | false | LowParse.Low.Base.fst | {
"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... | null | val accessor_compose
(#k1: parser_kind)
(#t1: Type)
(#p1: parser k1 t1)
(#k2: parser_kind)
(#t2: Type)
(#p2: parser k2 t2)
(#cl12: clens t1 t2)
(#a12: gaccessor p1 p2 cl12)
(a12': accessor a12)
(#k3: parser_kind)
(#t3: Type)
(#p3: parser k3 t3)
... | [] | LowParse.Low.Base.accessor_compose | {
"file_name": "src/lowparse/LowParse.Low.Base.fst",
"git_rev": "446a08ce38df905547cf20f28c43776b22b8087a",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | a12': LowParse.Low.Base.accessor a12 -> a23': LowParse.Low.Base.accessor a23 -> sq: Prims.unit
-> LowParse.Low.Base.accessor (LowParse.Low.Base.Spec.gaccessor_compose a12 a23) | {
"end_col": 6,
"end_line": 135,
"start_col": 2,
"start_line": 127
} |
FStar.HyperStack.ST.Stack | val jump_serializer
(#k #t: _)
(#p: parser k t)
(s: serializer p {k.parser_kind_subkind == Some ParserStrong})
(j: jumper p)
(#rrel #rel: _)
(sl: slice rrel rel)
(pos: U32.t)
(x: Ghost.erased t)
: HST.Stack U32.t
(requires
(fun h ->
let sq = ... | [
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": true,
"full_module": "FStar.Int.Cast",
"short_module": "Cast"
},
{
"abbrev": true,
"full_module": "FStar.Seq",
"short_module": "Seq"
},
{
"abbrev": true,
"full_module": "FSta... | false | let jump_serializer
(#k: _)
(#t: _)
(#p: parser k t)
(s: serializer p { k.parser_kind_subkind == Some ParserStrong })
(j: jumper p)
(#rrel #rel: _)
(sl: slice rrel rel)
(pos: U32.t)
(x: Ghost.erased t)
: HST.Stack U32.t
(requires (fun h ->
let sq = serialize s (Ghost.reveal x) in
live_slice ... | val jump_serializer
(#k #t: _)
(#p: parser k t)
(s: serializer p {k.parser_kind_subkind == Some ParserStrong})
(j: jumper p)
(#rrel #rel: _)
(sl: slice rrel rel)
(pos: U32.t)
(x: Ghost.erased t)
: HST.Stack U32.t
(requires
(fun h ->
let sq = ... | true | null | false | let h = HST.get () in
let gsq = Ghost.hide (serialize s (Ghost.reveal x)) in
let glen = Ghost.hide (Seq.length (Ghost.reveal gsq)) in
let gpos' = Ghost.hide (pos `U32.add` (U32.uint_to_t (Ghost.reveal glen))) in
assert (bytes_of_slice_from_to h sl pos (Ghost.reveal gpos') ==
Seq.slice (bytes_of_slice_from h sl pos)... | {
"checked_file": "LowParse.Low.Base.fst.checked",
"dependencies": [
"prims.fst.checked",
"LowStar.Monotonic.Buffer.fsti.checked",
"LowStar.Comment.fsti.checked",
"LowStar.Buffer.fst.checked",
"LowParse.Math.fst.checked",
"LowParse.Low.ErrorCode.fst.checked",
"LowParse.Low.Base.Spec.fsti... | [] | [
"LowParse.Spec.Base.parser_kind",
"LowParse.Spec.Base.parser",
"LowParse.Spec.Base.serializer",
"Prims.eq2",
"FStar.Pervasives.Native.option",
"LowParse.Spec.Base.parser_subkind",
"LowParse.Spec.Base.__proj__Mkparser_kind'__item__parser_kind_subkind",
"FStar.Pervasives.Native.Some",
"LowParse.Spec.B... | [] | module LowParse.Low.Base
include LowParse.Low.Base.Spec
include LowParse.Low.ErrorCode
module M = LowParse.Math
module B = LowStar.Monotonic.Buffer
module U32 = FStar.UInt32
module U64 = FStar.UInt64
module HS = FStar.HyperStack
module HST = FStar.HyperStack.ST
module Seq = FStar.Seq
module Cast = FStar.Int.Cast
modul... | false | false | LowParse.Low.Base.fst | {
"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... | null | val jump_serializer
(#k #t: _)
(#p: parser k t)
(s: serializer p {k.parser_kind_subkind == Some ParserStrong})
(j: jumper p)
(#rrel #rel: _)
(sl: slice rrel rel)
(pos: U32.t)
(x: Ghost.erased t)
: HST.Stack U32.t
(requires
(fun h ->
let sq = ... | [] | LowParse.Low.Base.jump_serializer | {
"file_name": "src/lowparse/LowParse.Low.Base.fst",
"git_rev": "446a08ce38df905547cf20f28c43776b22b8087a",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} |
s:
LowParse.Spec.Base.serializer p
{ Mkparser_kind'?.parser_kind_subkind k ==
FStar.Pervasives.Native.Some LowParse.Spec.Base.ParserStrong } ->
j: LowParse.Low.Base.jumper p ->
sl: LowParse.Slice.slice rrel rel ->
pos: FStar.UInt32.t ->
x: FStar.Ghost.erased t
-> FStar.Hyp... | {
"end_col": 10,
"end_line": 489,
"start_col": 1,
"start_line": 482
} |
FStar.HyperStack.ST.Stack | val list_find
(#k: parser_kind)
(#t: Type)
(#p: parser k t)
(j: jumper p)
(f: (t -> Tot bool))
(f':
(#rrel: _ -> #rel: _ -> sl: slice rrel rel -> pos: U32.t
-> HST.Stack bool
(requires (fun h -> valid p h sl pos))
(ensures
... | [
{
"abbrev": true,
"full_module": "FStar.Ghost",
"short_module": "G"
},
{
"abbrev": true,
"full_module": "LowStar.Buffer",
"short_module": "BF"
},
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": true,
"full_module": "FStar.... | false | let list_find
(#k: parser_kind)
(#t: Type)
(#p: parser k t)
(j: jumper p)
(f: (t -> Tot bool)) // should be GTot, but List.find requires Tot
(f' : (
(#rrel: _) ->
(#rel: _) ->
(sl: slice rrel rel) ->
(pos: U32.t) ->
HST.Stack bool
(requires (fun h ->
valid p h sl pos
))
... | val list_find
(#k: parser_kind)
(#t: Type)
(#p: parser k t)
(j: jumper p)
(f: (t -> Tot bool))
(f':
(#rrel: _ -> #rel: _ -> sl: slice rrel rel -> pos: U32.t
-> HST.Stack bool
(requires (fun h -> valid p h sl pos))
(ensures
... | true | null | false | let h0 = HST.get () in
HST.push_frame ();
let h1 = HST.get () in
let bres = BF.alloca 0ul 1ul in
let h2 = HST.get () in
let not_found =
list_fold_left_gen p j sl pos pos' h2 (Ghost.hide (B.loc_region_only true (HS.get_tip h1)))
(fun h l1 l2 pos1 ->
B.modifies (B.loc_region_only true (HS.get_tip h1)) h2 h ... | {
"checked_file": "LowParse.Low.Base.fst.checked",
"dependencies": [
"prims.fst.checked",
"LowStar.Monotonic.Buffer.fsti.checked",
"LowStar.Comment.fsti.checked",
"LowStar.Buffer.fst.checked",
"LowParse.Math.fst.checked",
"LowParse.Low.ErrorCode.fst.checked",
"LowParse.Low.Base.Spec.fsti... | [] | [
"LowParse.Spec.Base.parser_kind",
"LowParse.Spec.Base.parser",
"LowParse.Low.Base.jumper",
"Prims.bool",
"LowParse.Slice.srel",
"LowParse.Bytes.byte",
"LowParse.Slice.slice",
"FStar.UInt32.t",
"FStar.Monotonic.HyperStack.mem",
"LowParse.Low.Base.Spec.valid",
"Prims.l_and",
"LowStar.Monotonic.B... | [] | module LowParse.Low.Base
include LowParse.Low.Base.Spec
include LowParse.Low.ErrorCode
module M = LowParse.Math
module B = LowStar.Monotonic.Buffer
module U32 = FStar.UInt32
module U64 = FStar.UInt64
module HS = FStar.HyperStack
module HST = FStar.HyperStack.ST
module Seq = FStar.Seq
module Cast = FStar.Int.Cast
modul... | false | false | LowParse.Low.Base.fst | {
"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... | null | val list_find
(#k: parser_kind)
(#t: Type)
(#p: parser k t)
(j: jumper p)
(f: (t -> Tot bool))
(f':
(#rrel: _ -> #rel: _ -> sl: slice rrel rel -> pos: U32.t
-> HST.Stack bool
(requires (fun h -> valid p h sl pos))
(ensures
... | [] | LowParse.Low.Base.list_find | {
"file_name": "src/lowparse/LowParse.Low.Base.fst",
"git_rev": "446a08ce38df905547cf20f28c43776b22b8087a",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} |
j: LowParse.Low.Base.jumper p ->
f: (_: t -> Prims.bool) ->
f':
(sl: LowParse.Slice.slice rrel rel -> pos: FStar.UInt32.t
-> FStar.HyperStack.ST.Stack Prims.bool) ->
sl: LowParse.Slice.slice rrel rel ->
pos: FStar.UInt32.t ->
pos': FStar.UInt32.t
-> FStar.HyperStack.ST.Stack F... | {
"end_col": 5,
"end_line": 1692,
"start_col": 1,
"start_line": 1639
} |
Prims.Tot | val leaf_reader_ext
(#k1: parser_kind)
(#t: Type)
(#p1: parser k1 t)
(p32: leaf_reader p1)
(#k2: parser_kind)
(p2: parser k2 t)
(lem: (x: bytes -> Lemma (parse p2 x == parse p1 x)))
: Tot (leaf_reader p2) | [
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": true,
"full_module": "FStar.Int.Cast",
"short_module": "Cast"
},
{
"abbrev": true,
"full_module": "FStar.Seq",
"short_module": "Seq"
},
{
"abbrev": true,
"full_module": "FSta... | false | let leaf_reader_ext
(#k1: parser_kind)
(#t: Type)
(#p1: parser k1 t)
(p32: leaf_reader p1)
(#k2: parser_kind)
(p2: parser k2 t)
(lem: (
(x: bytes) ->
Lemma
(parse p2 x == parse p1 x)
))
: Tot (leaf_reader p2)
= fun #rrel #rel sl pos ->
let h = HST.get () in
[@inline_let] let _ =
vali... | val leaf_reader_ext
(#k1: parser_kind)
(#t: Type)
(#p1: parser k1 t)
(p32: leaf_reader p1)
(#k2: parser_kind)
(p2: parser k2 t)
(lem: (x: bytes -> Lemma (parse p2 x == parse p1 x)))
: Tot (leaf_reader p2)
let leaf_reader_ext
(#k1: parser_kind)
(#t: Type)
(... | false | null | false | fun #rrel #rel sl pos ->
let h = HST.get () in
[@@ inline_let ]let _ =
valid_facts p1 h sl pos;
valid_facts p2 h sl pos;
lem (bytes_of_slice_from h sl pos)
in
p32 sl pos | {
"checked_file": "LowParse.Low.Base.fst.checked",
"dependencies": [
"prims.fst.checked",
"LowStar.Monotonic.Buffer.fsti.checked",
"LowStar.Comment.fsti.checked",
"LowStar.Buffer.fst.checked",
"LowParse.Math.fst.checked",
"LowParse.Low.ErrorCode.fst.checked",
"LowParse.Low.Base.Spec.fsti... | [
"total"
] | [
"LowParse.Spec.Base.parser_kind",
"LowParse.Spec.Base.parser",
"LowParse.Low.Base.leaf_reader",
"LowParse.Bytes.bytes",
"Prims.unit",
"Prims.l_True",
"Prims.squash",
"Prims.eq2",
"FStar.Pervasives.Native.option",
"FStar.Pervasives.Native.tuple2",
"LowParse.Spec.Base.consumed_length",
"LowParse... | [] | module LowParse.Low.Base
include LowParse.Low.Base.Spec
include LowParse.Low.ErrorCode
module M = LowParse.Math
module B = LowStar.Monotonic.Buffer
module U32 = FStar.UInt32
module U64 = FStar.UInt64
module HS = FStar.HyperStack
module HST = FStar.HyperStack.ST
module Seq = FStar.Seq
module Cast = FStar.Int.Cast
modul... | false | false | LowParse.Low.Base.fst | {
"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... | null | val leaf_reader_ext
(#k1: parser_kind)
(#t: Type)
(#p1: parser k1 t)
(p32: leaf_reader p1)
(#k2: parser_kind)
(p2: parser k2 t)
(lem: (x: bytes -> Lemma (parse p2 x == parse p1 x)))
: Tot (leaf_reader p2) | [] | LowParse.Low.Base.leaf_reader_ext | {
"file_name": "src/lowparse/LowParse.Low.Base.fst",
"git_rev": "446a08ce38df905547cf20f28c43776b22b8087a",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} |
p32: LowParse.Low.Base.leaf_reader p1 ->
p2: LowParse.Spec.Base.parser k2 t ->
lem:
(x: LowParse.Bytes.bytes
-> FStar.Pervasives.Lemma
(ensures LowParse.Spec.Base.parse p2 x == LowParse.Spec.Base.parse p1 x))
-> LowParse.Low.Base.leaf_reader p2 | {
"end_col": 12,
"end_line": 543,
"start_col": 2,
"start_line": 536
} |
FStar.Pervasives.Lemma | val writable_intro:
#t: Type ->
#rrel: _ ->
#rel: _ ->
b: B.mbuffer t rrel rel ->
pos: nat ->
pos': nat ->
h: HS.mem ->
squash (B.live h b /\ pos <= pos' /\ pos' <= B.length b) ->
f:
(s1: Seq.lseq t (pos' - pos) -> s2: Seq.lseq t (pos' - pos)
-> Lemma
(let... | [
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": true,
"full_module": "FStar.Int.Cast",
"short_module": "Cast"
},
{
"abbrev": true,
"full_module": "FStar.Seq",
"short_module": "Seq"
},
{
"abbrev": true,
"full_module": "FSta... | false | let writable_intro
(#t: Type)
(#rrel #rel: _)
(b: B.mbuffer t rrel rel)
(pos pos' : nat)
(h: HS.mem)
(_: squash (B.live h b /\ pos <= pos' /\ pos' <= B.length b))
(f: (
(s1: Seq.lseq t (pos' - pos)) ->
(s2: Seq.lseq t (pos' - pos)) ->
Lemma
(let s = B.as_seq h b in
Seq.replace_subseq... | val writable_intro:
#t: Type ->
#rrel: _ ->
#rel: _ ->
b: B.mbuffer t rrel rel ->
pos: nat ->
pos': nat ->
h: HS.mem ->
squash (B.live h b /\ pos <= pos' /\ pos' <= B.length b) ->
f:
(s1: Seq.lseq t (pos' - pos) -> s2: Seq.lseq t (pos' - pos)
-> Lemma
(let... | false | null | true | Classical.forall_intro_2 f | {
"checked_file": "LowParse.Low.Base.fst.checked",
"dependencies": [
"prims.fst.checked",
"LowStar.Monotonic.Buffer.fsti.checked",
"LowStar.Comment.fsti.checked",
"LowStar.Buffer.fst.checked",
"LowParse.Math.fst.checked",
"LowParse.Low.ErrorCode.fst.checked",
"LowParse.Low.Base.Spec.fsti... | [
"lemma"
] | [
"LowStar.Monotonic.Buffer.srel",
"LowStar.Monotonic.Buffer.mbuffer",
"Prims.nat",
"FStar.Monotonic.HyperStack.mem",
"Prims.squash",
"Prims.l_and",
"LowStar.Monotonic.Buffer.live",
"Prims.b2t",
"Prims.op_LessThanOrEqual",
"LowStar.Monotonic.Buffer.length",
"FStar.Seq.Properties.lseq",
"Prims.op... | [] | module LowParse.Low.Base
include LowParse.Low.Base.Spec
include LowParse.Low.ErrorCode
module M = LowParse.Math
module B = LowStar.Monotonic.Buffer
module U32 = FStar.UInt32
module U64 = FStar.UInt64
module HS = FStar.HyperStack
module HST = FStar.HyperStack.ST
module Seq = FStar.Seq
module Cast = FStar.Int.Cast
modul... | false | false | LowParse.Low.Base.fst | {
"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... | null | val writable_intro:
#t: Type ->
#rrel: _ ->
#rel: _ ->
b: B.mbuffer t rrel rel ->
pos: nat ->
pos': nat ->
h: HS.mem ->
squash (B.live h b /\ pos <= pos' /\ pos' <= B.length b) ->
f:
(s1: Seq.lseq t (pos' - pos) -> s2: Seq.lseq t (pos' - pos)
-> Lemma
(let... | [] | LowParse.Low.Base.writable_intro | {
"file_name": "src/lowparse/LowParse.Low.Base.fst",
"git_rev": "446a08ce38df905547cf20f28c43776b22b8087a",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} |
b: LowStar.Monotonic.Buffer.mbuffer t rrel rel ->
pos: Prims.nat ->
pos': Prims.nat ->
h: FStar.Monotonic.HyperStack.mem ->
_:
Prims.squash (LowStar.Monotonic.Buffer.live h b /\ pos <= pos' /\
pos' <= LowStar.Monotonic.Buffer.length b) ->
f:
(s1: FStar.Seq.Properties.lseq ... | {
"end_col": 28,
"end_line": 576,
"start_col": 2,
"start_line": 576
} |
FStar.Pervasives.Lemma | val writable_replace_subseq_elim
(#t: Type)
(#rrel #rel: _)
(b: B.mbuffer t rrel rel)
(pos pos': nat)
(h: HS.mem)
(sl': Seq.seq t)
: Lemma
(requires
(writable b pos pos' h /\ pos <= pos' /\ pos' <= B.length b /\ Seq.length sl' == pos' - pos)
)
(ensures
... | [
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": true,
"full_module": "FStar.Int.Cast",
"short_module": "Cast"
},
{
"abbrev": true,
"full_module": "FStar.Seq",
"short_module": "Seq"
},
{
"abbrev": true,
"full_module": "FSta... | false | let writable_replace_subseq_elim
(#t: Type)
(#rrel #rel: _)
(b: B.mbuffer t rrel rel)
(pos pos' : nat)
(h: HS.mem)
(sl' : Seq.seq t)
: Lemma
(requires (
writable b pos pos' h /\
pos <= pos' /\
pos' <= B.length b /\
Seq.length sl' == pos' - pos
))
(ensures (
let s = B.as_seq h b in
... | val writable_replace_subseq_elim
(#t: Type)
(#rrel #rel: _)
(b: B.mbuffer t rrel rel)
(pos pos': nat)
(h: HS.mem)
(sl': Seq.seq t)
: Lemma
(requires
(writable b pos pos' h /\ pos <= pos' /\ pos' <= B.length b /\ Seq.length sl' == pos' - pos)
)
(ensures
... | false | null | true | let s = B.as_seq h b in
let sl = Seq.slice s pos pos' in
assert (s `Seq.equal` (Seq.replace_subseq s pos pos' sl)) | {
"checked_file": "LowParse.Low.Base.fst.checked",
"dependencies": [
"prims.fst.checked",
"LowStar.Monotonic.Buffer.fsti.checked",
"LowStar.Comment.fsti.checked",
"LowStar.Buffer.fst.checked",
"LowParse.Math.fst.checked",
"LowParse.Low.ErrorCode.fst.checked",
"LowParse.Low.Base.Spec.fsti... | [
"lemma"
] | [
"LowStar.Monotonic.Buffer.srel",
"LowStar.Monotonic.Buffer.mbuffer",
"Prims.nat",
"FStar.Monotonic.HyperStack.mem",
"FStar.Seq.Base.seq",
"Prims._assert",
"FStar.Seq.Base.equal",
"FStar.Seq.Properties.replace_subseq",
"FStar.Seq.Base.slice",
"LowStar.Monotonic.Buffer.as_seq",
"Prims.unit",
"Pr... | [] | module LowParse.Low.Base
include LowParse.Low.Base.Spec
include LowParse.Low.ErrorCode
module M = LowParse.Math
module B = LowStar.Monotonic.Buffer
module U32 = FStar.UInt32
module U64 = FStar.UInt64
module HS = FStar.HyperStack
module HST = FStar.HyperStack.ST
module Seq = FStar.Seq
module Cast = FStar.Int.Cast
modul... | false | false | LowParse.Low.Base.fst | {
"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... | null | val writable_replace_subseq_elim
(#t: Type)
(#rrel #rel: _)
(b: B.mbuffer t rrel rel)
(pos pos': nat)
(h: HS.mem)
(sl': Seq.seq t)
: Lemma
(requires
(writable b pos pos' h /\ pos <= pos' /\ pos' <= B.length b /\ Seq.length sl' == pos' - pos)
)
(ensures
... | [] | LowParse.Low.Base.writable_replace_subseq_elim | {
"file_name": "src/lowparse/LowParse.Low.Base.fst",
"git_rev": "446a08ce38df905547cf20f28c43776b22b8087a",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} |
b: LowStar.Monotonic.Buffer.mbuffer t rrel rel ->
pos: Prims.nat ->
pos': Prims.nat ->
h: FStar.Monotonic.HyperStack.mem ->
sl': FStar.Seq.Base.seq t
-> FStar.Pervasives.Lemma
(requires
LowParse.Low.Base.writable b pos pos' h /\ pos <= pos' /\
pos' <= LowStar.Monotonic.Buffe... | {
"end_col": 57,
"end_line": 623,
"start_col": 1,
"start_line": 621
} |
Prims.Tot | val serializer32_of_leaf_writer_strong_constant_size
(#k: parser_kind)
(#t: Type)
(#p: parser k t)
(#s: serializer p)
(s32: leaf_writer_strong s)
(sz: U32.t)
(u:
squash (k.parser_kind_subkind == Some ParserStrong /\
k.parser_kind_high == Some k.parser_ki... | [
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": true,
"full_module": "FStar.Int.Cast",
"short_module": "Cast"
},
{
"abbrev": true,
"full_module": "FStar.Seq",
"short_module": "Seq"
},
{
"abbrev": true,
"full_module": "FSta... | false | let serializer32_of_leaf_writer_strong_constant_size
(#k: parser_kind)
(#t: Type)
(#p: parser k t)
(#s: serializer p)
(s32: leaf_writer_strong s)
(sz: U32.t)
(u: squash (
k.parser_kind_subkind == Some ParserStrong /\
k.parser_kind_high == Some k.parser_kind_low /\
k.parser_kind_low == U32.v sz... | val serializer32_of_leaf_writer_strong_constant_size
(#k: parser_kind)
(#t: Type)
(#p: parser k t)
(#s: serializer p)
(s32: leaf_writer_strong s)
(sz: U32.t)
(u:
squash (k.parser_kind_subkind == Some ParserStrong /\
k.parser_kind_high == Some k.parser_ki... | false | null | false | fun x #rrel #rel b pos ->
serialized_length_eq s x;
let h0 = HST.get () in
let pos' = s32 x (make_slice b (pos `U32.add` sz)) pos in
[@@ inline_let ]let len = pos' `U32.sub` pos in
let h = HST.get () in
[@@ inline_let ]let _ =
valid_valid_exact p h (make_slice b (pos `U32.add` sz)) pos;
valid_exact_... | {
"checked_file": "LowParse.Low.Base.fst.checked",
"dependencies": [
"prims.fst.checked",
"LowStar.Monotonic.Buffer.fsti.checked",
"LowStar.Comment.fsti.checked",
"LowStar.Buffer.fst.checked",
"LowParse.Math.fst.checked",
"LowParse.Low.ErrorCode.fst.checked",
"LowParse.Low.Base.Spec.fsti... | [
"total"
] | [
"LowParse.Spec.Base.parser_kind",
"LowParse.Spec.Base.parser",
"LowParse.Spec.Base.serializer",
"LowParse.Low.Base.leaf_writer_strong",
"FStar.UInt32.t",
"Prims.squash",
"Prims.l_and",
"Prims.eq2",
"FStar.Pervasives.Native.option",
"LowParse.Spec.Base.parser_subkind",
"LowParse.Spec.Base.__proj_... | [] | module LowParse.Low.Base
include LowParse.Low.Base.Spec
include LowParse.Low.ErrorCode
module M = LowParse.Math
module B = LowStar.Monotonic.Buffer
module U32 = FStar.UInt32
module U64 = FStar.UInt64
module HS = FStar.HyperStack
module HST = FStar.HyperStack.ST
module Seq = FStar.Seq
module Cast = FStar.Int.Cast
modul... | false | false | LowParse.Low.Base.fst | {
"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... | null | val serializer32_of_leaf_writer_strong_constant_size
(#k: parser_kind)
(#t: Type)
(#p: parser k t)
(#s: serializer p)
(s32: leaf_writer_strong s)
(sz: U32.t)
(u:
squash (k.parser_kind_subkind == Some ParserStrong /\
k.parser_kind_high == Some k.parser_ki... | [] | LowParse.Low.Base.serializer32_of_leaf_writer_strong_constant_size | {
"file_name": "src/lowparse/LowParse.Low.Base.fst",
"git_rev": "446a08ce38df905547cf20f28c43776b22b8087a",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} |
s32: LowParse.Low.Base.leaf_writer_strong s ->
sz: FStar.UInt32.t ->
u314:
Prims.squash (Mkparser_kind'?.parser_kind_subkind k ==
FStar.Pervasives.Native.Some LowParse.Spec.Base.ParserStrong /\
Mkparser_kind'?.parser_kind_high k ==
FStar.Pervasives.Native.Some (Mkparser_... | {
"end_col": 5,
"end_line": 981,
"start_col": 2,
"start_line": 970
} |
FStar.Pervasives.Lemma | val wvalid_valid_content_pos
(#t: Type)
(#k: parser_kind)
(p: parser k t)
(#rrel #rel: _)
(s: slice rrel rel)
(compl: compl_t t)
(pos: U32.t)
(gpos': Ghost.erased U32.t)
(gv: Ghost.erased t)
(x: Seq.seq byte)
(h: HS.mem)
: Lemma (requires (wvalid p s... | [
{
"abbrev": true,
"full_module": "FStar.Ghost",
"short_module": "G"
},
{
"abbrev": true,
"full_module": "LowStar.Buffer",
"short_module": "BF"
},
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": true,
"full_module": "FStar.... | false | let wvalid_valid_content_pos
(#t: Type) (#k: parser_kind) (p: parser k t) (#rrel #rel: _) (s: slice rrel rel)
(compl: compl_t t)
(pos: U32.t)
(gpos' : Ghost.erased U32.t)
(gv: Ghost.erased t)
(x: Seq.seq byte)
(h: HS.mem)
: Lemma
(requires (
wvalid p s compl pos gpos' gv x /\
live_slice h s /\
... | val wvalid_valid_content_pos
(#t: Type)
(#k: parser_kind)
(p: parser k t)
(#rrel #rel: _)
(s: slice rrel rel)
(compl: compl_t t)
(pos: U32.t)
(gpos': Ghost.erased U32.t)
(gv: Ghost.erased t)
(x: Seq.seq byte)
(h: HS.mem)
: Lemma (requires (wvalid p s... | false | null | true | valid_facts p h s pos | {
"checked_file": "LowParse.Low.Base.fst.checked",
"dependencies": [
"prims.fst.checked",
"LowStar.Monotonic.Buffer.fsti.checked",
"LowStar.Comment.fsti.checked",
"LowStar.Buffer.fst.checked",
"LowParse.Math.fst.checked",
"LowParse.Low.ErrorCode.fst.checked",
"LowParse.Low.Base.Spec.fsti... | [
"lemma"
] | [
"LowParse.Spec.Base.parser_kind",
"LowParse.Spec.Base.parser",
"LowParse.Slice.srel",
"LowParse.Bytes.byte",
"LowParse.Slice.slice",
"LowParse.Low.Base.compl_t",
"FStar.UInt32.t",
"FStar.Ghost.erased",
"FStar.Seq.Base.seq",
"FStar.Monotonic.HyperStack.mem",
"LowParse.Low.Base.Spec.valid_facts",
... | [] | module LowParse.Low.Base
include LowParse.Low.Base.Spec
include LowParse.Low.ErrorCode
module M = LowParse.Math
module B = LowStar.Monotonic.Buffer
module U32 = FStar.UInt32
module U64 = FStar.UInt64
module HS = FStar.HyperStack
module HST = FStar.HyperStack.ST
module Seq = FStar.Seq
module Cast = FStar.Int.Cast
modul... | false | false | LowParse.Low.Base.fst | {
"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... | null | val wvalid_valid_content_pos
(#t: Type)
(#k: parser_kind)
(p: parser k t)
(#rrel #rel: _)
(s: slice rrel rel)
(compl: compl_t t)
(pos: U32.t)
(gpos': Ghost.erased U32.t)
(gv: Ghost.erased t)
(x: Seq.seq byte)
(h: HS.mem)
: Lemma (requires (wvalid p s... | [] | LowParse.Low.Base.wvalid_valid_content_pos | {
"file_name": "src/lowparse/LowParse.Low.Base.fst",
"git_rev": "446a08ce38df905547cf20f28c43776b22b8087a",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} |
p: LowParse.Spec.Base.parser k t ->
s: LowParse.Slice.slice rrel rel ->
compl: LowParse.Low.Base.compl_t t ->
pos: FStar.UInt32.t ->
gpos': FStar.Ghost.erased FStar.UInt32.t ->
gv: FStar.Ghost.erased t ->
x: FStar.Seq.Base.seq LowParse.Bytes.byte ->
h: FStar.Monotonic.HyperStack.mem
-... | {
"end_col": 23,
"end_line": 2043,
"start_col": 2,
"start_line": 2043
} |
FStar.HyperStack.ST.Stack | val list_existsb
(#k: parser_kind)
(#t: Type)
(#p: parser k t)
(j: jumper p)
(f: (t -> Tot bool))
(f':
(#rrel: _ -> #rel: _ -> sl: slice rrel rel -> pos: U32.t
-> HST.Stack bool
(requires (fun h -> valid p h sl pos))
(ensure... | [
{
"abbrev": true,
"full_module": "FStar.Ghost",
"short_module": "G"
},
{
"abbrev": true,
"full_module": "LowStar.Buffer",
"short_module": "BF"
},
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": true,
"full_module": "FStar.... | false | let list_existsb
(#k: parser_kind)
(#t: Type)
(#p: parser k t)
(j: jumper p)
(f: (t -> Tot bool)) // should be GTot, but List.find requires Tot
(f' : (
(#rrel: _) ->
(#rel: _) ->
(sl: slice rrel rel) ->
(pos: U32.t) ->
HST.Stack bool
(requires (fun h ->
valid p h sl pos
))
... | val list_existsb
(#k: parser_kind)
(#t: Type)
(#p: parser k t)
(j: jumper p)
(f: (t -> Tot bool))
(f':
(#rrel: _ -> #rel: _ -> sl: slice rrel rel -> pos: U32.t
-> HST.Stack bool
(requires (fun h -> valid p h sl pos))
(ensure... | true | null | false | let h = HST.get () in
list_existsb_find f (contents_list p h sl pos pos');
let posn = list_find j f f' sl pos pos' in
posn <> pos' | {
"checked_file": "LowParse.Low.Base.fst.checked",
"dependencies": [
"prims.fst.checked",
"LowStar.Monotonic.Buffer.fsti.checked",
"LowStar.Comment.fsti.checked",
"LowStar.Buffer.fst.checked",
"LowParse.Math.fst.checked",
"LowParse.Low.ErrorCode.fst.checked",
"LowParse.Low.Base.Spec.fsti... | [] | [
"LowParse.Spec.Base.parser_kind",
"LowParse.Spec.Base.parser",
"LowParse.Low.Base.jumper",
"Prims.bool",
"LowParse.Slice.srel",
"LowParse.Bytes.byte",
"LowParse.Slice.slice",
"FStar.UInt32.t",
"FStar.Monotonic.HyperStack.mem",
"LowParse.Low.Base.Spec.valid",
"Prims.l_and",
"LowStar.Monotonic.B... | [] | module LowParse.Low.Base
include LowParse.Low.Base.Spec
include LowParse.Low.ErrorCode
module M = LowParse.Math
module B = LowStar.Monotonic.Buffer
module U32 = FStar.UInt32
module U64 = FStar.UInt64
module HS = FStar.HyperStack
module HST = FStar.HyperStack.ST
module Seq = FStar.Seq
module Cast = FStar.Int.Cast
modul... | false | false | LowParse.Low.Base.fst | {
"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... | null | val list_existsb
(#k: parser_kind)
(#t: Type)
(#p: parser k t)
(j: jumper p)
(f: (t -> Tot bool))
(f':
(#rrel: _ -> #rel: _ -> sl: slice rrel rel -> pos: U32.t
-> HST.Stack bool
(requires (fun h -> valid p h sl pos))
(ensure... | [] | LowParse.Low.Base.list_existsb | {
"file_name": "src/lowparse/LowParse.Low.Base.fst",
"git_rev": "446a08ce38df905547cf20f28c43776b22b8087a",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} |
j: LowParse.Low.Base.jumper p ->
f: (_: t -> Prims.bool) ->
f':
(sl: LowParse.Slice.slice rrel rel -> pos: FStar.UInt32.t
-> FStar.HyperStack.ST.Stack Prims.bool) ->
sl: LowParse.Slice.slice rrel rel ->
pos: FStar.UInt32.t ->
pos': FStar.UInt32.t
-> FStar.HyperStack.ST.Stack P... | {
"end_col": 14,
"end_line": 1742,
"start_col": 1,
"start_line": 1739
} |
FStar.Pervasives.Lemma | val writable_modifies
(#t: Type)
(#rrel #rel: _)
(b: B.mbuffer t rrel rel)
(pos pos': nat)
(h: HS.mem)
(l: B.loc)
(h': HS.mem)
: Lemma
(requires
(writable b pos pos' h /\ pos <= pos' /\ pos' <= B.length b /\
B.modifies (l
`B.loc_union`
... | [
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": true,
"full_module": "FStar.Int.Cast",
"short_module": "Cast"
},
{
"abbrev": true,
"full_module": "FStar.Seq",
"short_module": "Seq"
},
{
"abbrev": true,
"full_module": "FSta... | false | let writable_modifies
(#t: Type)
(#rrel #rel: _)
(b: B.mbuffer t rrel rel)
(pos pos' : nat)
(h: HS.mem)
(l: B.loc)
(h' : HS.mem)
: Lemma
(requires (
writable b pos pos' h /\
pos <= pos' /\ pos' <= B.length b /\
B.modifies (l `B.loc_union` B.loc_buffer_from_to b (U32.uint_to_t pos) (U32.uint_... | val writable_modifies
(#t: Type)
(#rrel #rel: _)
(b: B.mbuffer t rrel rel)
(pos pos': nat)
(h: HS.mem)
(l: B.loc)
(h': HS.mem)
: Lemma
(requires
(writable b pos pos' h /\ pos <= pos' /\ pos' <= B.length b /\
B.modifies (l
`B.loc_union`
... | false | null | true | B.modifies_buffer_from_to_elim b
0ul
(U32.uint_to_t pos)
(l `B.loc_union` (B.loc_buffer_from_to b (U32.uint_to_t pos) (U32.uint_to_t pos')))
h
h';
B.modifies_buffer_from_to_elim b
(U32.uint_to_t pos')
(B.len b)
(l `B.loc_union` (B.loc_buffer_from_to b (U32.uint_to_t pos) (U32.uint_to_t pos')))
h
h';... | {
"checked_file": "LowParse.Low.Base.fst.checked",
"dependencies": [
"prims.fst.checked",
"LowStar.Monotonic.Buffer.fsti.checked",
"LowStar.Comment.fsti.checked",
"LowStar.Buffer.fst.checked",
"LowParse.Math.fst.checked",
"LowParse.Low.ErrorCode.fst.checked",
"LowParse.Low.Base.Spec.fsti... | [
"lemma"
] | [
"LowStar.Monotonic.Buffer.srel",
"LowStar.Monotonic.Buffer.mbuffer",
"Prims.nat",
"FStar.Monotonic.HyperStack.mem",
"LowStar.Monotonic.Buffer.loc",
"LowParse.Low.Base.writable_replace_subseq",
"FStar.Seq.Base.slice",
"LowStar.Monotonic.Buffer.as_seq",
"Prims.unit",
"LowStar.Monotonic.Buffer.modifi... | [] | module LowParse.Low.Base
include LowParse.Low.Base.Spec
include LowParse.Low.ErrorCode
module M = LowParse.Math
module B = LowStar.Monotonic.Buffer
module U32 = FStar.UInt32
module U64 = FStar.UInt64
module HS = FStar.HyperStack
module HST = FStar.HyperStack.ST
module Seq = FStar.Seq
module Cast = FStar.Int.Cast
modul... | false | false | LowParse.Low.Base.fst | {
"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... | null | val writable_modifies
(#t: Type)
(#rrel #rel: _)
(b: B.mbuffer t rrel rel)
(pos pos': nat)
(h: HS.mem)
(l: B.loc)
(h': HS.mem)
: Lemma
(requires
(writable b pos pos' h /\ pos <= pos' /\ pos' <= B.length b /\
B.modifies (l
`B.loc_union`
... | [] | LowParse.Low.Base.writable_modifies | {
"file_name": "src/lowparse/LowParse.Low.Base.fst",
"git_rev": "446a08ce38df905547cf20f28c43776b22b8087a",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} |
b: LowStar.Monotonic.Buffer.mbuffer t rrel rel ->
pos: Prims.nat ->
pos': Prims.nat ->
h: FStar.Monotonic.HyperStack.mem ->
l: LowStar.Monotonic.Buffer.loc ->
h': FStar.Monotonic.HyperStack.mem
-> FStar.Pervasives.Lemma
(requires
LowParse.Low.Base.writable b pos pos' h /\ pos <=... | {
"end_col": 78,
"end_line": 739,
"start_col": 2,
"start_line": 737
} |
FStar.HyperStack.ST.Stack | val copy_strong'
(#rrel1 #rrel2 #rel1 #rel2: _)
(#k: parser_kind)
(#t: Type)
(#p: parser k t)
(j: jumper p)
(src: slice rrel1 rel1)
(spos: U32.t)
(dst: slice rrel2 rel2)
(dpos: U32.t)
: HST.Stack U32.t
(requires
(fun h ->
k.parser_kind_... | [
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": true,
"full_module": "FStar.Int.Cast",
"short_module": "Cast"
},
{
"abbrev": true,
"full_module": "FStar.Seq",
"short_module": "Seq"
},
{
"abbrev": true,
"full_module": "FSta... | false | let copy_strong'
(#rrel1 #rrel2 #rel1 #rel2: _)
(#k: parser_kind)
(#t: Type)
(#p: parser k t)
(j: jumper p)
(src: slice rrel1 rel1) // FIXME: length is useless here
(spos : U32.t)
(dst: slice rrel2 rel2)
(dpos: U32.t)
: HST.Stack U32.t
(requires (fun h ->
k.parser_kind_subkind == Some ParserStro... | val copy_strong'
(#rrel1 #rrel2 #rel1 #rel2: _)
(#k: parser_kind)
(#t: Type)
(#p: parser k t)
(j: jumper p)
(src: slice rrel1 rel1)
(spos: U32.t)
(dst: slice rrel2 rel2)
(dpos: U32.t)
: HST.Stack U32.t
(requires
(fun h ->
k.parser_kind_... | true | null | false | let spos' = j src spos in
copy_strong p src spos spos' dst dpos | {
"checked_file": "LowParse.Low.Base.fst.checked",
"dependencies": [
"prims.fst.checked",
"LowStar.Monotonic.Buffer.fsti.checked",
"LowStar.Comment.fsti.checked",
"LowStar.Buffer.fst.checked",
"LowParse.Math.fst.checked",
"LowParse.Low.ErrorCode.fst.checked",
"LowParse.Low.Base.Spec.fsti... | [] | [
"LowParse.Slice.srel",
"LowParse.Bytes.byte",
"LowParse.Spec.Base.parser_kind",
"LowParse.Spec.Base.parser",
"LowParse.Low.Base.jumper",
"LowParse.Slice.slice",
"FStar.UInt32.t",
"LowParse.Low.Base.copy_strong",
"FStar.Monotonic.HyperStack.mem",
"Prims.l_and",
"Prims.eq2",
"FStar.Pervasives.Na... | [] | module LowParse.Low.Base
include LowParse.Low.Base.Spec
include LowParse.Low.ErrorCode
module M = LowParse.Math
module B = LowStar.Monotonic.Buffer
module U32 = FStar.UInt32
module U64 = FStar.UInt64
module HS = FStar.HyperStack
module HST = FStar.HyperStack.ST
module Seq = FStar.Seq
module Cast = FStar.Int.Cast
modul... | false | false | LowParse.Low.Base.fst | {
"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... | null | val copy_strong'
(#rrel1 #rrel2 #rel1 #rel2: _)
(#k: parser_kind)
(#t: Type)
(#p: parser k t)
(j: jumper p)
(src: slice rrel1 rel1)
(spos: U32.t)
(dst: slice rrel2 rel2)
(dpos: U32.t)
: HST.Stack U32.t
(requires
(fun h ->
k.parser_kind_... | [] | LowParse.Low.Base.copy_strong' | {
"file_name": "src/lowparse/LowParse.Low.Base.fst",
"git_rev": "446a08ce38df905547cf20f28c43776b22b8087a",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} |
j: LowParse.Low.Base.jumper p ->
src: LowParse.Slice.slice rrel1 rel1 ->
spos: FStar.UInt32.t ->
dst: LowParse.Slice.slice rrel2 rel2 ->
dpos: FStar.UInt32.t
-> FStar.HyperStack.ST.Stack FStar.UInt32.t | {
"end_col": 39,
"end_line": 1076,
"start_col": 1,
"start_line": 1075
} |
FStar.HyperStack.ST.Stack | val copy_weak
(#rrel1 #rrel2 #rel1 #rel2: _)
(#k: parser_kind)
(#t: Type)
(p: parser k t)
(jmp: jumper p)
(src: slice rrel1 rel1)
(spos: U32.t)
(dst: slice rrel2 rel2)
(dpos: U32.t)
: HST.Stack U32.t
(requires
(fun h ->
k.parser_kind_su... | [
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": true,
"full_module": "FStar.Int.Cast",
"short_module": "Cast"
},
{
"abbrev": true,
"full_module": "FStar.Seq",
"short_module": "Seq"
},
{
"abbrev": true,
"full_module": "FSta... | false | let copy_weak
(#rrel1 #rrel2 #rel1 #rel2: _)
(#k: parser_kind)
(#t: Type)
(p: parser k t)
(jmp: jumper p)
(src: slice rrel1 rel1)
(spos : U32.t)
(dst: slice rrel2 rel2)
(dpos: U32.t)
: HST.Stack U32.t
(requires (fun h ->
k.parser_kind_subkind == Some ParserStrong /\
valid p h src spos /\
... | val copy_weak
(#rrel1 #rrel2 #rel1 #rel2: _)
(#k: parser_kind)
(#t: Type)
(p: parser k t)
(jmp: jumper p)
(src: slice rrel1 rel1)
(spos: U32.t)
(dst: slice rrel2 rel2)
(dpos: U32.t)
: HST.Stack U32.t
(requires
(fun h ->
k.parser_kind_su... | true | null | false | let spos' = jmp src spos in
copy_weak_with_length p src spos spos' dst dpos | {
"checked_file": "LowParse.Low.Base.fst.checked",
"dependencies": [
"prims.fst.checked",
"LowStar.Monotonic.Buffer.fsti.checked",
"LowStar.Comment.fsti.checked",
"LowStar.Buffer.fst.checked",
"LowParse.Math.fst.checked",
"LowParse.Low.ErrorCode.fst.checked",
"LowParse.Low.Base.Spec.fsti... | [] | [
"LowParse.Slice.srel",
"LowParse.Bytes.byte",
"LowParse.Spec.Base.parser_kind",
"LowParse.Spec.Base.parser",
"LowParse.Low.Base.jumper",
"LowParse.Slice.slice",
"FStar.UInt32.t",
"LowParse.Low.Base.copy_weak_with_length",
"FStar.Monotonic.HyperStack.mem",
"Prims.l_and",
"Prims.eq2",
"FStar.Per... | [] | module LowParse.Low.Base
include LowParse.Low.Base.Spec
include LowParse.Low.ErrorCode
module M = LowParse.Math
module B = LowStar.Monotonic.Buffer
module U32 = FStar.UInt32
module U64 = FStar.UInt64
module HS = FStar.HyperStack
module HST = FStar.HyperStack.ST
module Seq = FStar.Seq
module Cast = FStar.Int.Cast
modul... | false | false | LowParse.Low.Base.fst | {
"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... | null | val copy_weak
(#rrel1 #rrel2 #rel1 #rel2: _)
(#k: parser_kind)
(#t: Type)
(p: parser k t)
(jmp: jumper p)
(src: slice rrel1 rel1)
(spos: U32.t)
(dst: slice rrel2 rel2)
(dpos: U32.t)
: HST.Stack U32.t
(requires
(fun h ->
k.parser_kind_su... | [] | LowParse.Low.Base.copy_weak | {
"file_name": "src/lowparse/LowParse.Low.Base.fst",
"git_rev": "446a08ce38df905547cf20f28c43776b22b8087a",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} |
p: LowParse.Spec.Base.parser k t ->
jmp: LowParse.Low.Base.jumper p ->
src: LowParse.Slice.slice rrel1 rel1 ->
spos: FStar.UInt32.t ->
dst: LowParse.Slice.slice rrel2 rel2 ->
dpos: FStar.UInt32.t
-> FStar.HyperStack.ST.Stack FStar.UInt32.t | {
"end_col": 49,
"end_line": 1140,
"start_col": 1,
"start_line": 1139
} |
FStar.HyperStack.ST.Stack | val list_nth
(#rrel #rel: _)
(#k: parser_kind)
(#t: Type)
(p: parser k t)
(j: jumper p)
(sl: slice rrel rel)
(pos pos' i: U32.t)
: HST.Stack U32.t
(requires
(fun h -> valid_list p h sl pos pos' /\ U32.v i < L.length (contents_list p h sl pos pos')))
(ens... | [
{
"abbrev": true,
"full_module": "FStar.Ghost",
"short_module": "G"
},
{
"abbrev": true,
"full_module": "LowStar.Buffer",
"short_module": "BF"
},
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": true,
"full_module": "FStar.... | false | let list_nth
(#rrel #rel: _)
(#k: parser_kind)
(#t: Type)
(p: parser k t)
(j: jumper p)
(sl: slice rrel rel)
(pos pos' : U32.t)
(i: U32.t)
: HST.Stack U32.t
(requires (fun h ->
valid_list p h sl pos pos' /\
U32.v i < L.length (contents_list p h sl pos pos')
))
(ensures (fun h res h' ->
... | val list_nth
(#rrel #rel: _)
(#k: parser_kind)
(#t: Type)
(p: parser k t)
(j: jumper p)
(sl: slice rrel rel)
(pos pos' i: U32.t)
: HST.Stack U32.t
(requires
(fun h -> valid_list p h sl pos pos' /\ U32.v i < L.length (contents_list p h sl pos pos')))
(ens... | true | null | false | let h0 = HST.get () in
HST.push_frame ();
let h1 = HST.get () in
let bpos1 = BF.alloca pos 1ul in
let bk = BF.alloca 0ul 1ul in
let h2 = HST.get () in
valid_list_nil p h0 sl pos;
let _:bool =
list_fold_left_gen p j sl pos pos' h2 (Ghost.hide (B.loc_region_only true (HS.get_tip h1)))
(fun h l1 l2 pos1 ->
l... | {
"checked_file": "LowParse.Low.Base.fst.checked",
"dependencies": [
"prims.fst.checked",
"LowStar.Monotonic.Buffer.fsti.checked",
"LowStar.Comment.fsti.checked",
"LowStar.Buffer.fst.checked",
"LowParse.Math.fst.checked",
"LowParse.Low.ErrorCode.fst.checked",
"LowParse.Low.Base.Spec.fsti... | [] | [
"LowParse.Slice.srel",
"LowParse.Bytes.byte",
"LowParse.Spec.Base.parser_kind",
"LowParse.Spec.Base.parser",
"LowParse.Low.Base.jumper",
"LowParse.Slice.slice",
"FStar.UInt32.t",
"Prims.unit",
"FStar.HyperStack.ST.pop_frame",
"LowStar.Monotonic.Buffer.index",
"LowStar.Buffer.trivial_preorder",
... | [] | module LowParse.Low.Base
include LowParse.Low.Base.Spec
include LowParse.Low.ErrorCode
module M = LowParse.Math
module B = LowStar.Monotonic.Buffer
module U32 = FStar.UInt32
module U64 = FStar.UInt64
module HS = FStar.HyperStack
module HST = FStar.HyperStack.ST
module Seq = FStar.Seq
module Cast = FStar.Int.Cast
modul... | false | false | LowParse.Low.Base.fst | {
"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... | null | val list_nth
(#rrel #rel: _)
(#k: parser_kind)
(#t: Type)
(p: parser k t)
(j: jumper p)
(sl: slice rrel rel)
(pos pos' i: U32.t)
: HST.Stack U32.t
(requires
(fun h -> valid_list p h sl pos pos' /\ U32.v i < L.length (contents_list p h sl pos pos')))
(ens... | [] | LowParse.Low.Base.list_nth | {
"file_name": "src/lowparse/LowParse.Low.Base.fst",
"git_rev": "446a08ce38df905547cf20f28c43776b22b8087a",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} |
p: LowParse.Spec.Base.parser k t ->
j: LowParse.Low.Base.jumper p ->
sl: LowParse.Slice.slice rrel rel ->
pos: FStar.UInt32.t ->
pos': FStar.UInt32.t ->
i: FStar.UInt32.t
-> FStar.HyperStack.ST.Stack FStar.UInt32.t | {
"end_col": 5,
"end_line": 1597,
"start_col": 1,
"start_line": 1530
} |
FStar.HyperStack.ST.Stack | val list_filter
(#k: parser_kind)
(#t: Type)
(p: parser k t)
(j: jumper p)
(f: (t -> Tot bool))
(f':
(#rrel: _ -> #rel: _ -> sl: slice rrel rel -> pos: U32.t -> x: Ghost.erased t
-> HST.Stack bool
(requires (fun h -> valid_content p h sl pos ... | [
{
"abbrev": true,
"full_module": "FStar.Ghost",
"short_module": "G"
},
{
"abbrev": true,
"full_module": "LowStar.Buffer",
"short_module": "BF"
},
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": true,
"full_module": "FStar.... | false | let list_filter
(#k: parser_kind)
(#t: Type)
(p: parser k t)
(j: jumper p)
(f: (t -> Tot bool))
(f' : (
(#rrel: _) ->
(#rel: _) ->
(sl: slice rrel rel) ->
(pos: U32.t) ->
(x: Ghost.erased t) ->
HST.Stack bool
(requires (fun h -> valid_content p h sl pos (G.reveal x)))
(ensure... | val list_filter
(#k: parser_kind)
(#t: Type)
(p: parser k t)
(j: jumper p)
(f: (t -> Tot bool))
(f':
(#rrel: _ -> #rel: _ -> sl: slice rrel rel -> pos: U32.t -> x: Ghost.erased t
-> HST.Stack bool
(requires (fun h -> valid_content p h sl pos ... | true | null | false | let h0 = HST.get () in
HST.push_frame ();
let h1 = HST.get () in
let bpos_out':BF.pointer U32.t = BF.alloca pos_out 1ul in
let h2 = HST.get () in
let inv (h: HS.mem) (l1 l2: list t) (pos1: U32.t) : GTot Type0 =
B.live h bpos_out' /\
(let pos_out' = Seq.index (B.as_seq h bpos_out') 0 in
B.modifies ((B.loc_buffer... | {
"checked_file": "LowParse.Low.Base.fst.checked",
"dependencies": [
"prims.fst.checked",
"LowStar.Monotonic.Buffer.fsti.checked",
"LowStar.Comment.fsti.checked",
"LowStar.Buffer.fst.checked",
"LowParse.Math.fst.checked",
"LowParse.Low.ErrorCode.fst.checked",
"LowParse.Low.Base.Spec.fsti... | [] | [
"LowParse.Spec.Base.parser_kind",
"LowParse.Spec.Base.parser",
"LowParse.Low.Base.jumper",
"Prims.bool",
"LowParse.Slice.srel",
"LowParse.Bytes.byte",
"LowParse.Slice.slice",
"FStar.UInt32.t",
"FStar.Ghost.erased",
"FStar.Monotonic.HyperStack.mem",
"LowParse.Low.Base.Spec.valid_content",
"FSta... | [] | module LowParse.Low.Base
include LowParse.Low.Base.Spec
include LowParse.Low.ErrorCode
module M = LowParse.Math
module B = LowStar.Monotonic.Buffer
module U32 = FStar.UInt32
module U64 = FStar.UInt64
module HS = FStar.HyperStack
module HST = FStar.HyperStack.ST
module Seq = FStar.Seq
module Cast = FStar.Int.Cast
modul... | false | false | LowParse.Low.Base.fst | {
"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... | null | val list_filter
(#k: parser_kind)
(#t: Type)
(p: parser k t)
(j: jumper p)
(f: (t -> Tot bool))
(f':
(#rrel: _ -> #rel: _ -> sl: slice rrel rel -> pos: U32.t -> x: Ghost.erased t
-> HST.Stack bool
(requires (fun h -> valid_content p h sl pos ... | [] | LowParse.Low.Base.list_filter | {
"file_name": "src/lowparse/LowParse.Low.Base.fst",
"git_rev": "446a08ce38df905547cf20f28c43776b22b8087a",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} |
p: LowParse.Spec.Base.parser k t ->
j: LowParse.Low.Base.jumper p ->
f: (_: t -> Prims.bool) ->
f':
(sl: LowParse.Slice.slice rrel rel -> pos: FStar.UInt32.t -> x: FStar.Ghost.erased t
-> FStar.HyperStack.ST.Stack Prims.bool) ->
sl: LowParse.Slice.slice rrel rel ->
pos: FStar.UI... | {
"end_col": 10,
"end_line": 1501,
"start_col": 1,
"start_line": 1449
} |
FStar.HyperStack.ST.Stack | val list_flatten_map
(#k1: parser_kind)
(#t1: Type)
(#p1: parser k1 t1)
(j1: jumper p1)
(#k2: parser_kind)
(#t2: Type)
(#p2: parser k2 t2)
(s2: serializer p2 {k2.parser_kind_subkind == Some ParserStrong /\ k2.parser_kind_low > 0})
(f: (t1 -> Tot (list t2)))
(h... | [
{
"abbrev": true,
"full_module": "FStar.Ghost",
"short_module": "G"
},
{
"abbrev": true,
"full_module": "LowStar.Buffer",
"short_module": "BF"
},
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": true,
"full_module": "FStar.... | false | let list_flatten_map
(#k1: parser_kind)
(#t1: Type)
(#p1: parser k1 t1)
(j1: jumper p1)
(#k2: parser_kind)
(#t2: Type)
(#p2: parser k2 t2)
(s2: serializer p2 { k2.parser_kind_subkind == Some ParserStrong /\ k2.parser_kind_low > 0 } )
(f: (t1 -> Tot (list t2))) // should be GTot, but List.Tot.map requi... | val list_flatten_map
(#k1: parser_kind)
(#t1: Type)
(#p1: parser k1 t1)
(j1: jumper p1)
(#k2: parser_kind)
(#t2: Type)
(#p2: parser k2 t2)
(s2: serializer p2 {k2.parser_kind_subkind == Some ParserStrong /\ k2.parser_kind_low > 0})
(f: (t1 -> Tot (list t2)))
(h... | true | null | false | let hz = HST.get () in
HST.push_frame ();
let h1 = HST.get () in
let bpos2_ = BF.alloca pos2 1ul in
let h2 = HST.get () in
valid_list_nil p2 hz sl2 pos2;
let fits =
list_fold_left_gen p1 j1 sl1 pos1 pos1' h2
(Ghost.hide ((B.loc_region_only true (HS.get_tip h1)) `B.loc_union` (loc_slice_from sl2 pos2)))
(fun h... | {
"checked_file": "LowParse.Low.Base.fst.checked",
"dependencies": [
"prims.fst.checked",
"LowStar.Monotonic.Buffer.fsti.checked",
"LowStar.Comment.fsti.checked",
"LowStar.Buffer.fst.checked",
"LowParse.Math.fst.checked",
"LowParse.Low.ErrorCode.fst.checked",
"LowParse.Low.Base.Spec.fsti... | [] | [
"LowParse.Spec.Base.parser_kind",
"LowParse.Spec.Base.parser",
"LowParse.Low.Base.jumper",
"LowParse.Spec.Base.serializer",
"Prims.l_and",
"Prims.eq2",
"FStar.Pervasives.Native.option",
"LowParse.Spec.Base.parser_subkind",
"LowParse.Spec.Base.__proj__Mkparser_kind'__item__parser_kind_subkind",
"FS... | [] | module LowParse.Low.Base
include LowParse.Low.Base.Spec
include LowParse.Low.ErrorCode
module M = LowParse.Math
module B = LowStar.Monotonic.Buffer
module U32 = FStar.UInt32
module U64 = FStar.UInt64
module HS = FStar.HyperStack
module HST = FStar.HyperStack.ST
module Seq = FStar.Seq
module Cast = FStar.Int.Cast
modul... | false | false | LowParse.Low.Base.fst | {
"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... | null | val list_flatten_map
(#k1: parser_kind)
(#t1: Type)
(#p1: parser k1 t1)
(j1: jumper p1)
(#k2: parser_kind)
(#t2: Type)
(#p2: parser k2 t2)
(s2: serializer p2 {k2.parser_kind_subkind == Some ParserStrong /\ k2.parser_kind_low > 0})
(f: (t1 -> Tot (list t2)))
(h... | [] | LowParse.Low.Base.list_flatten_map | {
"file_name": "src/lowparse/LowParse.Low.Base.fst",
"git_rev": "446a08ce38df905547cf20f28c43776b22b8087a",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} |
j1: LowParse.Low.Base.jumper p1 ->
s2:
LowParse.Spec.Base.serializer p2
{ Mkparser_kind'?.parser_kind_subkind k2 ==
FStar.Pervasives.Native.Some LowParse.Spec.Base.ParserStrong /\
Mkparser_kind'?.parser_kind_low k2 > 0 } ->
f: (_: t1 -> Prims.list t2) ->
h0: FStar.Mono... | {
"end_col": 5,
"end_line": 1879,
"start_col": 1,
"start_line": 1810
} |
FStar.HyperStack.ST.Stack | val list_fold_left_gen
(#rrel #rel: _)
(#k: parser_kind)
(#t: Type)
(p: parser k t)
(j: jumper p)
(sl: slice rrel rel)
(pos pos': U32.t)
(h0: HS.mem)
(l: Ghost.erased B.loc {B.loc_disjoint (Ghost.reveal l) (loc_slice_from_to sl pos pos')})
(inv: (HS.mem -> lis... | [
{
"abbrev": true,
"full_module": "LowStar.Buffer",
"short_module": "BF"
},
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": true,
"full_module": "FStar.Int.Cast",
"short_module": "Cast"
},
{
"abbrev": true,
"full_module": "... | false | let list_fold_left_gen
(#rrel #rel: _)
(#k: parser_kind)
(#t: Type)
(p: parser k t)
(j: jumper p)
(sl: slice rrel rel)
(pos pos' : U32.t)
(h0: HS.mem)
(l: Ghost.erased B.loc { B.loc_disjoint (Ghost.reveal l) (loc_slice_from_to sl pos pos') } )
(inv: (HS.mem -> list t -> list t -> U32.t -> GTot Type0... | val list_fold_left_gen
(#rrel #rel: _)
(#k: parser_kind)
(#t: Type)
(p: parser k t)
(j: jumper p)
(sl: slice rrel rel)
(pos pos': U32.t)
(h0: HS.mem)
(l: Ghost.erased B.loc {B.loc_disjoint (Ghost.reveal l) (loc_slice_from_to sl pos pos')})
(inv: (HS.mem -> lis... | true | null | false | HST.push_frame ();
let h1 = HST.get () in
let bpos:BF.pointer U32.t = BF.alloca pos 1ul in
let bctinue:BF.pointer bool = BF.alloca true 1ul in
let btest:BF.pointer bool = BF.alloca (pos `U32.lt` pos') 1ul in
let h2 = HST.get () in
assert (B.modifies B.loc_none h0 h2);
let test_pre (h: HS.mem) : GTot Type0 =
B.live h ... | {
"checked_file": "LowParse.Low.Base.fst.checked",
"dependencies": [
"prims.fst.checked",
"LowStar.Monotonic.Buffer.fsti.checked",
"LowStar.Comment.fsti.checked",
"LowStar.Buffer.fst.checked",
"LowParse.Math.fst.checked",
"LowParse.Low.ErrorCode.fst.checked",
"LowParse.Low.Base.Spec.fsti... | [] | [
"LowParse.Slice.srel",
"LowParse.Bytes.byte",
"LowParse.Spec.Base.parser_kind",
"LowParse.Spec.Base.parser",
"LowParse.Low.Base.jumper",
"LowParse.Slice.slice",
"FStar.UInt32.t",
"FStar.Monotonic.HyperStack.mem",
"FStar.Ghost.erased",
"LowStar.Monotonic.Buffer.loc",
"LowStar.Monotonic.Buffer.loc... | [] | module LowParse.Low.Base
include LowParse.Low.Base.Spec
include LowParse.Low.ErrorCode
module M = LowParse.Math
module B = LowStar.Monotonic.Buffer
module U32 = FStar.UInt32
module U64 = FStar.UInt64
module HS = FStar.HyperStack
module HST = FStar.HyperStack.ST
module Seq = FStar.Seq
module Cast = FStar.Int.Cast
modul... | false | false | LowParse.Low.Base.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 1,
"initial_ifuel": 1,
"max_fuel": 1,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | null | val list_fold_left_gen
(#rrel #rel: _)
(#k: parser_kind)
(#t: Type)
(p: parser k t)
(j: jumper p)
(sl: slice rrel rel)
(pos pos': U32.t)
(h0: HS.mem)
(l: Ghost.erased B.loc {B.loc_disjoint (Ghost.reveal l) (loc_slice_from_to sl pos pos')})
(inv: (HS.mem -> lis... | [] | LowParse.Low.Base.list_fold_left_gen | {
"file_name": "src/lowparse/LowParse.Low.Base.fst",
"git_rev": "446a08ce38df905547cf20f28c43776b22b8087a",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} |
p: LowParse.Spec.Base.parser k t ->
j: LowParse.Low.Base.jumper p ->
sl: LowParse.Slice.slice rrel rel ->
pos: FStar.UInt32.t ->
pos': FStar.UInt32.t ->
h0: FStar.Monotonic.HyperStack.mem ->
l:
FStar.Ghost.erased LowStar.Monotonic.Buffer.loc
{ LowStar.Monotonic.Buffer.loc_disj... | {
"end_col": 5,
"end_line": 1277,
"start_col": 2,
"start_line": 1196
} |
Prims.Tot | val accessor_id (#k: parser_kind) (#t: Type) (p: parser k t) : Tot (accessor (gaccessor_id p)) | [
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": true,
"full_module": "FStar.Int.Cast",
"short_module": "Cast"
},
{
"abbrev": true,
"full_module": "FStar.Seq",
"short_module": "Seq"
},
{
"abbrev": true,
"full_module": "FSta... | false | let accessor_id
(#k: parser_kind)
(#t: Type)
(p: parser k t)
: Tot (accessor (gaccessor_id p))
= fun #rrel #rel input pos ->
let h = HST.get () in
[@inline_let] let _ = slice_access_eq h (gaccessor_id p) input pos in
[@inline_let] let _ = gaccessor_id_eq p (bytes_of_slice_from h input pos) in
pos | val accessor_id (#k: parser_kind) (#t: Type) (p: parser k t) : Tot (accessor (gaccessor_id p))
let accessor_id (#k: parser_kind) (#t: Type) (p: parser k t) : Tot (accessor (gaccessor_id p)) = | false | null | false | fun #rrel #rel input pos ->
let h = HST.get () in
[@@ inline_let ]let _ = slice_access_eq h (gaccessor_id p) input pos in
[@@ inline_let ]let _ = gaccessor_id_eq p (bytes_of_slice_from h input pos) in
pos | {
"checked_file": "LowParse.Low.Base.fst.checked",
"dependencies": [
"prims.fst.checked",
"LowStar.Monotonic.Buffer.fsti.checked",
"LowStar.Comment.fsti.checked",
"LowStar.Buffer.fst.checked",
"LowParse.Math.fst.checked",
"LowParse.Low.ErrorCode.fst.checked",
"LowParse.Low.Base.Spec.fsti... | [
"total"
] | [
"LowParse.Spec.Base.parser_kind",
"LowParse.Spec.Base.parser",
"LowParse.Slice.srel",
"LowParse.Bytes.byte",
"LowParse.Slice.slice",
"FStar.UInt32.t",
"Prims.unit",
"LowParse.Low.Base.Spec.gaccessor_id_eq",
"LowParse.Slice.bytes_of_slice_from",
"LowParse.Low.Base.Spec.slice_access_eq",
"LowParse... | [] | module LowParse.Low.Base
include LowParse.Low.Base.Spec
include LowParse.Low.ErrorCode
module M = LowParse.Math
module B = LowStar.Monotonic.Buffer
module U32 = FStar.UInt32
module U64 = FStar.UInt64
module HS = FStar.HyperStack
module HST = FStar.HyperStack.ST
module Seq = FStar.Seq
module Cast = FStar.Int.Cast
modul... | false | false | LowParse.Low.Base.fst | {
"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... | null | val accessor_id (#k: parser_kind) (#t: Type) (p: parser k t) : Tot (accessor (gaccessor_id p)) | [] | LowParse.Low.Base.accessor_id | {
"file_name": "src/lowparse/LowParse.Low.Base.fst",
"git_rev": "446a08ce38df905547cf20f28c43776b22b8087a",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | p: LowParse.Spec.Base.parser k t
-> LowParse.Low.Base.accessor (LowParse.Low.Base.Spec.gaccessor_id p) | {
"end_col": 5,
"end_line": 77,
"start_col": 2,
"start_line": 73
} |
Prims.Tot | val const (k: eqtype) (#v: Type) (y: v) : t k v | [
{
"abbrev": false,
"full_module": "FStar",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Pervasives",
"short_module": null
},
{
"abbrev": false,
"full_module": "Prims",
"... | false | let const (k:eqtype) (#v:Type) (y:v) : t k v =
literal (fun x -> Some y) | val const (k: eqtype) (#v: Type) (y: v) : t k v
let const (k: eqtype) (#v: Type) (y: v) : t k v = | false | null | false | literal (fun x -> Some y) | {
"checked_file": "FStar.PartialMap.fsti.checked",
"dependencies": [
"prims.fst.checked",
"FStar.Pervasives.fsti.checked"
],
"interface_file": false,
"source_file": "FStar.PartialMap.fsti"
} | [
"total"
] | [
"Prims.eqtype",
"FStar.PartialMap.literal",
"FStar.Pervasives.Native.Some",
"FStar.Pervasives.Native.option",
"FStar.PartialMap.t"
] | [] | (*
Copyright 2008-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 agre... | false | false | FStar.PartialMap.fsti | {
"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... | null | val const (k: eqtype) (#v: Type) (y: v) : t k v | [] | FStar.PartialMap.const | {
"file_name": "ulib/FStar.PartialMap.fsti",
"git_rev": "f4cbb7a38d67eeb13fbdb2f4fb8a44a65cbcdc1f",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | k: Prims.eqtype -> y: v -> FStar.PartialMap.t k v | {
"end_col": 27,
"end_line": 56,
"start_col": 2,
"start_line": 56
} |
Prims.Tot | val contains (#k: eqtype) (#v: Type) (m: t k v) (x: k) : bool | [
{
"abbrev": false,
"full_module": "FStar",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Pervasives",
"short_module": null
},
{
"abbrev": false,
"full_module": "Prims",
"... | false | let contains (#k:eqtype) (#v:Type) (m:t k v) (x:k) : bool =
Some? (sel m x) | val contains (#k: eqtype) (#v: Type) (m: t k v) (x: k) : bool
let contains (#k: eqtype) (#v: Type) (m: t k v) (x: k) : bool = | false | null | false | Some? (sel m x) | {
"checked_file": "FStar.PartialMap.fsti.checked",
"dependencies": [
"prims.fst.checked",
"FStar.Pervasives.fsti.checked"
],
"interface_file": false,
"source_file": "FStar.PartialMap.fsti"
} | [
"total"
] | [
"Prims.eqtype",
"FStar.PartialMap.t",
"FStar.Pervasives.Native.uu___is_Some",
"FStar.PartialMap.sel",
"Prims.bool"
] | [] | (*
Copyright 2008-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 agre... | false | false | FStar.PartialMap.fsti | {
"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... | null | val contains (#k: eqtype) (#v: Type) (m: t k v) (x: k) : bool | [] | FStar.PartialMap.contains | {
"file_name": "ulib/FStar.PartialMap.fsti",
"git_rev": "f4cbb7a38d67eeb13fbdb2f4fb8a44a65cbcdc1f",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | m: FStar.PartialMap.t k v -> x: k -> Prims.bool | {
"end_col": 17,
"end_line": 51,
"start_col": 2,
"start_line": 51
} |
FStar.HyperStack.ST.Stack | [
{
"abbrev": true,
"full_module": "Lib.ByteSequence",
"short_module": "BS"
},
{
"abbrev": true,
"full_module": "LowStar.Buffer",
"short_module": "B"
},
{
"abbrev": false,
"full_module": "Lib.Buffer",
"short_module": null
},
{
"abbrev": false,
"full_module": "Li... | false | let uint32s_to_bytes_le len = uints_to_bytes_le #U32 #SEC len | let uint32s_to_bytes_le len = | true | null | false | uints_to_bytes_le #U32 #SEC len | {
"checked_file": "Lib.ByteBuffer.fsti.checked",
"dependencies": [
"prims.fst.checked",
"LowStar.Buffer.fst.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"Lib.Buffer.fsti.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul.fst.checked",
"FStar.HyperStack.S... | [] | [
"Lib.IntTypes.size_t",
"Prims.b2t",
"Prims.op_LessThanOrEqual",
"FStar.Mul.op_Star",
"Lib.IntTypes.v",
"Lib.IntTypes.U32",
"Lib.IntTypes.PUB",
"Lib.IntTypes.numbytes",
"Lib.IntTypes.max_size_t",
"Lib.ByteBuffer.uints_to_bytes_le",
"Lib.IntTypes.SEC",
"Lib.Buffer.lbuffer_t",
"Lib.Buffer.MUT",... | [] | module Lib.ByteBuffer
open FStar.HyperStack
open FStar.HyperStack.ST
open FStar.Mul
open LowStar.Buffer
open Lib.IntTypes
open Lib.Buffer
module B = LowStar.Buffer
module BS = Lib.ByteSequence
#set-options "--z3rlimit 30 --fuel 0 --ifuel 0"
/// Host to {little,big}-endian conversions
/// TODO: missing specificati... | false | false | Lib.ByteBuffer.fsti | {
"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... | null | val uint32s_to_bytes_le : len:
Lib.IntTypes.size_t
{Lib.IntTypes.v len * Lib.IntTypes.numbytes Lib.IntTypes.U32 <= Lib.IntTypes.max_size_t} ->
o:
Lib.Buffer.lbuffer_t Lib.Buffer.MUT
(Lib.IntTypes.int_t Lib.IntTypes.U8 Lib.IntTypes.SEC)
(Lib.IntTypes.mul len (Lib.IntTypes.mk_int 4... | [] | Lib.ByteBuffer.uint32s_to_bytes_le | {
"file_name": "lib/Lib.ByteBuffer.fsti",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} |
len:
Lib.IntTypes.size_t
{Lib.IntTypes.v len * Lib.IntTypes.numbytes Lib.IntTypes.U32 <= Lib.IntTypes.max_size_t} ->
o:
Lib.Buffer.lbuffer_t Lib.Buffer.MUT
(Lib.IntTypes.int_t Lib.IntTypes.U8 Lib.IntTypes.SEC)
(Lib.IntTypes.mul len (Lib.IntTypes.mk_int 4)) ->
i:
Li... | {
"end_col": 61,
"end_line": 172,
"start_col": 30,
"start_line": 172
} | |
FStar.HyperStack.ST.Stack | [
{
"abbrev": true,
"full_module": "Lib.ByteSequence",
"short_module": "BS"
},
{
"abbrev": true,
"full_module": "LowStar.Buffer",
"short_module": "B"
},
{
"abbrev": false,
"full_module": "Lib.Buffer",
"short_module": null
},
{
"abbrev": false,
"full_module": "Li... | false | let uint32s_from_bytes_le #len = uints_from_bytes_le #U32 #SEC #len | let uint32s_from_bytes_le #len = | true | null | false | uints_from_bytes_le #U32 #SEC #len | {
"checked_file": "Lib.ByteBuffer.fsti.checked",
"dependencies": [
"prims.fst.checked",
"LowStar.Buffer.fst.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"Lib.Buffer.fsti.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul.fst.checked",
"FStar.HyperStack.S... | [] | [
"Lib.IntTypes.size_t",
"Prims.b2t",
"Prims.op_LessThanOrEqual",
"FStar.Mul.op_Star",
"Lib.IntTypes.v",
"Lib.IntTypes.U32",
"Lib.IntTypes.PUB",
"Lib.IntTypes.numbytes",
"Lib.IntTypes.max_size_t",
"Lib.ByteBuffer.uints_from_bytes_le",
"Lib.IntTypes.SEC",
"Lib.Buffer.lbuffer",
"Lib.IntTypes.uin... | [] | module Lib.ByteBuffer
open FStar.HyperStack
open FStar.HyperStack.ST
open FStar.Mul
open LowStar.Buffer
open Lib.IntTypes
open Lib.Buffer
module B = LowStar.Buffer
module BS = Lib.ByteSequence
#set-options "--z3rlimit 30 --fuel 0 --ifuel 0"
/// Host to {little,big}-endian conversions
/// TODO: missing specificati... | false | false | Lib.ByteBuffer.fsti | {
"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... | null | val uint32s_from_bytes_le : o: Lib.Buffer.lbuffer (Lib.IntTypes.uint_t Lib.IntTypes.U32 Lib.IntTypes.SEC) len ->
i:
Lib.Buffer.lbuffer (Lib.IntTypes.uint_t Lib.IntTypes.U8 Lib.IntTypes.SEC)
(len *! Lib.IntTypes.size (Lib.IntTypes.numbytes Lib.IntTypes.U32))
-> FStar.HyperStack.ST.Stack Prims.unit | [] | Lib.ByteBuffer.uint32s_from_bytes_le | {
"file_name": "lib/Lib.ByteBuffer.fsti",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} |
o: Lib.Buffer.lbuffer (Lib.IntTypes.uint_t Lib.IntTypes.U32 Lib.IntTypes.SEC) len ->
i:
Lib.Buffer.lbuffer (Lib.IntTypes.uint_t Lib.IntTypes.U8 Lib.IntTypes.SEC)
(len *! Lib.IntTypes.size (Lib.IntTypes.numbytes Lib.IntTypes.U32))
-> FStar.HyperStack.ST.Stack Prims.unit | {
"end_col": 67,
"end_line": 175,
"start_col": 33,
"start_line": 175
} | |
Prims.Tot | val va_ens_Test
(va_b0: va_code)
(va_s0: va_state)
(win: bool)
(arg0 arg1 arg2 arg3 arg4 arg5 arg6 arg7: buffer64)
(va_sM: va_state)
(va_fM: va_fuel)
: prop | [
{
"abbrev": false,
"full_module": "Vale.X64.QuickCodes",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.QuickCode",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.InsVector",
"short_module": null
},
{
"abbrev": false,
... | false | let va_ens_Test (va_b0:va_code) (va_s0:va_state) (win:bool) (arg0:buffer64) (arg1:buffer64)
(arg2:buffer64) (arg3:buffer64) (arg4:buffer64) (arg5:buffer64) (arg6:buffer64) (arg7:buffer64)
(va_sM:va_state) (va_fM:va_fuel) : prop =
(va_req_Test va_b0 va_s0 win arg0 arg1 arg2 arg3 arg4 arg5 arg6 arg7 /\ va_ensure_to... | val va_ens_Test
(va_b0: va_code)
(va_s0: va_state)
(win: bool)
(arg0 arg1 arg2 arg3 arg4 arg5 arg6 arg7: buffer64)
(va_sM: va_state)
(va_fM: va_fuel)
: prop
let va_ens_Test
(va_b0: va_code)
(va_s0: va_state)
(win: bool)
(arg0 arg1 arg2 arg3 arg4 arg5 arg6 ... | false | null | false | (va_req_Test va_b0 va_s0 win arg0 arg1 arg2 arg3 arg4 arg5 arg6 arg7 /\
va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\
va_get_reg64 rRsp va_sM == va_get_reg64 rRsp va_s0 /\
va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 /\
va_get_reg64 rRbp va_sM == va_get_reg64 rRbp va_s0 /\
va_get_reg64 r... | {
"checked_file": "Vale.Test.X64.Args.fsti.checked",
"dependencies": [
"Vale.X64.State.fsti.checked",
"Vale.X64.Stack_i.fsti.checked",
"Vale.X64.QuickCodes.fsti.checked",
"Vale.X64.QuickCode.fst.checked",
"Vale.X64.Memory.fsti.checked",
"Vale.X64.Machine_s.fst.checked",
"Vale.X64.InsVect... | [
"total"
] | [
"Vale.X64.Decls.va_code",
"Vale.X64.Decls.va_state",
"Prims.bool",
"Vale.X64.Memory.buffer64",
"Vale.X64.Decls.va_fuel",
"Prims.l_and",
"Vale.Test.X64.Args.va_req_Test",
"Vale.X64.Decls.va_ensure_total",
"Prims.b2t",
"Vale.X64.Decls.va_get_ok",
"Prims.eq2",
"Vale.Def.Types_s.nat64",
"Vale.X6... | [] | module Vale.Test.X64.Args
open Vale.Arch.HeapImpl
open Vale.X64.Machine_s
open Vale.X64.Memory
open Vale.X64.Stack_i
open Vale.X64.State
open Vale.X64.Decls
open Vale.X64.InsBasic
open Vale.X64.InsMem
open Vale.X64.InsVector
open Vale.X64.QuickCode
open Vale.X64.QuickCodes
#set-options "--z3rlimit 20"
//-- Test
val va... | false | true | Vale.Test.X64.Args.fsti | {
"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... | null | val va_ens_Test
(va_b0: va_code)
(va_s0: va_state)
(win: bool)
(arg0 arg1 arg2 arg3 arg4 arg5 arg6 arg7: buffer64)
(va_sM: va_state)
(va_fM: va_fuel)
: prop | [] | Vale.Test.X64.Args.va_ens_Test | {
"file_name": "obj/Vale.Test.X64.Args.fsti",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} |
va_b0: Vale.X64.Decls.va_code ->
va_s0: Vale.X64.Decls.va_state ->
win: Prims.bool ->
arg0: Vale.X64.Memory.buffer64 ->
arg1: Vale.X64.Memory.buffer64 ->
arg2: Vale.X64.Memory.buffer64 ->
arg3: Vale.X64.Memory.buffer64 ->
arg4: Vale.X64.Memory.buffer64 ->
arg5: Vale.X64.Memory.buffe... | {
"end_col": 88,
"end_line": 78,
"start_col": 2,
"start_line": 54
} |
Prims.Tot | val va_req_Test
(va_b0: va_code)
(va_s0: va_state)
(win: bool)
(arg0 arg1 arg2 arg3 arg4 arg5 arg6 arg7: buffer64)
: prop | [
{
"abbrev": false,
"full_module": "Vale.X64.QuickCodes",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.QuickCode",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.InsVector",
"short_module": null
},
{
"abbrev": false,
... | false | let va_req_Test (va_b0:va_code) (va_s0:va_state) (win:bool) (arg0:buffer64) (arg1:buffer64)
(arg2:buffer64) (arg3:buffer64) (arg4:buffer64) (arg5:buffer64) (arg6:buffer64) (arg7:buffer64) :
prop =
(va_require_total va_b0 (va_code_Test win) va_s0 /\ va_get_ok va_s0 /\ va_get_reg64 rRsp va_s0 ==
Vale.X64.Stack_... | val va_req_Test
(va_b0: va_code)
(va_s0: va_state)
(win: bool)
(arg0 arg1 arg2 arg3 arg4 arg5 arg6 arg7: buffer64)
: prop
let va_req_Test
(va_b0: va_code)
(va_s0: va_state)
(win: bool)
(arg0 arg1 arg2 arg3 arg4 arg5 arg6 arg7: buffer64)
: prop = | false | null | false | (va_require_total va_b0 (va_code_Test win) va_s0 /\ va_get_ok va_s0 /\
va_get_reg64 rRsp va_s0 == Vale.X64.Stack_i.init_rsp (va_get_stack va_s0) /\
Vale.X64.Memory.is_initial_heap (va_get_mem_layout va_s0) (va_get_mem va_s0) /\
(win ==>
Vale.X64.Stack_i.valid_src_stack64 (va_get_reg64 rRsp va_s0 + 32 + 8 + 0)... | {
"checked_file": "Vale.Test.X64.Args.fsti.checked",
"dependencies": [
"Vale.X64.State.fsti.checked",
"Vale.X64.Stack_i.fsti.checked",
"Vale.X64.QuickCodes.fsti.checked",
"Vale.X64.QuickCode.fst.checked",
"Vale.X64.Memory.fsti.checked",
"Vale.X64.Machine_s.fst.checked",
"Vale.X64.InsVect... | [
"total"
] | [
"Vale.X64.Decls.va_code",
"Vale.X64.Decls.va_state",
"Prims.bool",
"Vale.X64.Memory.buffer64",
"Prims.l_and",
"Vale.X64.Decls.va_require_total",
"Vale.Test.X64.Args.va_code_Test",
"Prims.b2t",
"Vale.X64.Decls.va_get_ok",
"Prims.eq2",
"Vale.Def.Words_s.nat64",
"Vale.X64.Decls.va_get_reg64",
"... | [] | module Vale.Test.X64.Args
open Vale.Arch.HeapImpl
open Vale.X64.Machine_s
open Vale.X64.Memory
open Vale.X64.Stack_i
open Vale.X64.State
open Vale.X64.Decls
open Vale.X64.InsBasic
open Vale.X64.InsMem
open Vale.X64.InsVector
open Vale.X64.QuickCode
open Vale.X64.QuickCodes
#set-options "--z3rlimit 20"
//-- Test
val va... | false | true | Vale.Test.X64.Args.fsti | {
"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... | null | val va_req_Test
(va_b0: va_code)
(va_s0: va_state)
(win: bool)
(arg0 arg1 arg2 arg3 arg4 arg5 arg6 arg7: buffer64)
: prop | [] | Vale.Test.X64.Args.va_req_Test | {
"file_name": "obj/Vale.Test.X64.Args.fsti",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} |
va_b0: Vale.X64.Decls.va_code ->
va_s0: Vale.X64.Decls.va_state ->
win: Prims.bool ->
arg0: Vale.X64.Memory.buffer64 ->
arg1: Vale.X64.Memory.buffer64 ->
arg2: Vale.X64.Memory.buffer64 ->
arg3: Vale.X64.Memory.buffer64 ->
arg4: Vale.X64.Memory.buffer64 ->
arg5: Vale.X64.Memory.buffe... | {
"end_col": 100,
"end_line": 50,
"start_col": 2,
"start_line": 22
} |
Prims.Tot | val va_wp_Test
(win: bool)
(arg0 arg1 arg2 arg3 arg4 arg5 arg6 arg7: buffer64)
(va_s0: va_state)
(va_k: (va_state -> unit -> Type0))
: Type0 | [
{
"abbrev": false,
"full_module": "Vale.X64.QuickCodes",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.QuickCode",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.InsVector",
"short_module": null
},
{
"abbrev": false,
... | false | let va_wp_Test (win:bool) (arg0:buffer64) (arg1:buffer64) (arg2:buffer64) (arg3:buffer64)
(arg4:buffer64) (arg5:buffer64) (arg6:buffer64) (arg7:buffer64) (va_s0:va_state) (va_k:(va_state
-> unit -> Type0)) : Type0 =
(va_get_ok va_s0 /\ va_get_reg64 rRsp va_s0 == Vale.X64.Stack_i.init_rsp (va_get_stack va_s0) /\
... | val va_wp_Test
(win: bool)
(arg0 arg1 arg2 arg3 arg4 arg5 arg6 arg7: buffer64)
(va_s0: va_state)
(va_k: (va_state -> unit -> Type0))
: Type0
let va_wp_Test
(win: bool)
(arg0 arg1 arg2 arg3 arg4 arg5 arg6 arg7: buffer64)
(va_s0: va_state)
(va_k: (va_state -> unit -> Ty... | false | null | false | (va_get_ok va_s0 /\ va_get_reg64 rRsp va_s0 == Vale.X64.Stack_i.init_rsp (va_get_stack va_s0) /\
Vale.X64.Memory.is_initial_heap (va_get_mem_layout va_s0) (va_get_mem va_s0) /\
(win ==>
Vale.X64.Stack_i.valid_src_stack64 (va_get_reg64 rRsp va_s0 + 32 + 8 + 0) (va_get_stack va_s0)) /\
(win ==>
Vale.X64.Sta... | {
"checked_file": "Vale.Test.X64.Args.fsti.checked",
"dependencies": [
"Vale.X64.State.fsti.checked",
"Vale.X64.Stack_i.fsti.checked",
"Vale.X64.QuickCodes.fsti.checked",
"Vale.X64.QuickCode.fst.checked",
"Vale.X64.Memory.fsti.checked",
"Vale.X64.Machine_s.fst.checked",
"Vale.X64.InsVect... | [
"total"
] | [
"Prims.bool",
"Vale.X64.Memory.buffer64",
"Vale.X64.Decls.va_state",
"Prims.unit",
"Prims.l_and",
"Prims.b2t",
"Vale.X64.Decls.va_get_ok",
"Prims.eq2",
"Vale.Def.Words_s.nat64",
"Vale.X64.Decls.va_get_reg64",
"Vale.X64.Machine_s.rRsp",
"Vale.X64.Stack_i.init_rsp",
"Vale.X64.Decls.va_get_stac... | [] | module Vale.Test.X64.Args
open Vale.Arch.HeapImpl
open Vale.X64.Machine_s
open Vale.X64.Memory
open Vale.X64.Stack_i
open Vale.X64.State
open Vale.X64.Decls
open Vale.X64.InsBasic
open Vale.X64.InsMem
open Vale.X64.InsVector
open Vale.X64.QuickCode
open Vale.X64.QuickCodes
#set-options "--z3rlimit 20"
//-- Test
val va... | false | true | Vale.Test.X64.Args.fsti | {
"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... | null | val va_wp_Test
(win: bool)
(arg0 arg1 arg2 arg3 arg4 arg5 arg6 arg7: buffer64)
(va_s0: va_state)
(va_k: (va_state -> unit -> Type0))
: Type0 | [] | Vale.Test.X64.Args.va_wp_Test | {
"file_name": "obj/Vale.Test.X64.Args.fsti",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} |
win: Prims.bool ->
arg0: Vale.X64.Memory.buffer64 ->
arg1: Vale.X64.Memory.buffer64 ->
arg2: Vale.X64.Memory.buffer64 ->
arg3: Vale.X64.Memory.buffer64 ->
arg4: Vale.X64.Memory.buffer64 ->
arg5: Vale.X64.Memory.buffer64 ->
arg6: Vale.X64.Memory.buffer64 ->
arg7: Vale.X64.Memory.buff... | {
"end_col": 72,
"end_line": 204,
"start_col": 2,
"start_line": 143
} |
Prims.Tot | val va_quick_Test (win: bool) (arg0 arg1 arg2 arg3 arg4 arg5 arg6 arg7: buffer64)
: (va_quickCode unit (va_code_Test win)) | [
{
"abbrev": false,
"full_module": "Vale.X64.QuickCodes",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.QuickCode",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.InsVector",
"short_module": null
},
{
"abbrev": false,
... | false | let va_quick_Test (win:bool) (arg0:buffer64) (arg1:buffer64) (arg2:buffer64) (arg3:buffer64)
(arg4:buffer64) (arg5:buffer64) (arg6:buffer64) (arg7:buffer64) : (va_quickCode unit
(va_code_Test win)) =
(va_QProc (va_code_Test win) ([va_Mod_mem_layout; va_Mod_mem_heaplet 0; va_Mod_flags; va_Mod_xmm
15; va_Mod_xm... | val va_quick_Test (win: bool) (arg0 arg1 arg2 arg3 arg4 arg5 arg6 arg7: buffer64)
: (va_quickCode unit (va_code_Test win))
let va_quick_Test (win: bool) (arg0 arg1 arg2 arg3 arg4 arg5 arg6 arg7: buffer64)
: (va_quickCode unit (va_code_Test win)) = | false | null | false | (va_QProc (va_code_Test win)
([
va_Mod_mem_layout; va_Mod_mem_heaplet 0; va_Mod_flags; va_Mod_xmm 15; va_Mod_xmm 14;
va_Mod_xmm 13; va_Mod_xmm 12; va_Mod_xmm 11; va_Mod_xmm 10; va_Mod_xmm 9; va_Mod_xmm 8;
va_Mod_xmm 7; va_Mod_xmm 6; va_Mod_xmm 5; va_Mod_xmm 4; va_Mod_xmm 3; va_Mod_xmm 2;
... | {
"checked_file": "Vale.Test.X64.Args.fsti.checked",
"dependencies": [
"Vale.X64.State.fsti.checked",
"Vale.X64.Stack_i.fsti.checked",
"Vale.X64.QuickCodes.fsti.checked",
"Vale.X64.QuickCode.fst.checked",
"Vale.X64.Memory.fsti.checked",
"Vale.X64.Machine_s.fst.checked",
"Vale.X64.InsVect... | [
"total"
] | [
"Prims.bool",
"Vale.X64.Memory.buffer64",
"Vale.X64.QuickCode.va_QProc",
"Prims.unit",
"Vale.Test.X64.Args.va_code_Test",
"Prims.Cons",
"Vale.X64.QuickCode.mod_t",
"Vale.X64.QuickCode.va_Mod_mem_layout",
"Vale.X64.QuickCode.va_Mod_mem_heaplet",
"Vale.X64.QuickCode.va_Mod_flags",
"Vale.X64.QuickC... | [] | module Vale.Test.X64.Args
open Vale.Arch.HeapImpl
open Vale.X64.Machine_s
open Vale.X64.Memory
open Vale.X64.Stack_i
open Vale.X64.State
open Vale.X64.Decls
open Vale.X64.InsBasic
open Vale.X64.InsMem
open Vale.X64.InsVector
open Vale.X64.QuickCode
open Vale.X64.QuickCodes
#set-options "--z3rlimit 20"
//-- Test
val va... | false | false | Vale.Test.X64.Args.fsti | {
"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... | null | val va_quick_Test (win: bool) (arg0 arg1 arg2 arg3 arg4 arg5 arg6 arg7: buffer64)
: (va_quickCode unit (va_code_Test win)) | [] | Vale.Test.X64.Args.va_quick_Test | {
"file_name": "obj/Vale.Test.X64.Args.fsti",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} |
win: Prims.bool ->
arg0: Vale.X64.Memory.buffer64 ->
arg1: Vale.X64.Memory.buffer64 ->
arg2: Vale.X64.Memory.buffer64 ->
arg3: Vale.X64.Memory.buffer64 ->
arg4: Vale.X64.Memory.buffer64 ->
arg5: Vale.X64.Memory.buffer64 ->
arg6: Vale.X64.Memory.buffer64 ->
arg7: Vale.X64.Memory.buff... | {
"end_col": 97,
"end_line": 231,
"start_col": 2,
"start_line": 224
} |
FStar.Pervasives.Lemma | val no_extra_bytes_helper (s:seq quad32) (num_bytes:int) : Lemma
(requires 0 <= num_bytes /\
num_bytes % 16 == 0 /\
length s == bytes_to_quad_size num_bytes)
(ensures slice (le_seq_quad32_to_bytes s) 0 num_bytes == le_seq_quad32_to_bytes s /\
slice s 0 (num_bytes / 16) == s) | [
{
"abbrev": false,
"full_module": "Vale.AES.Types_helpers",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Lib.Seqs",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Math.Lemmas",
"short_module": null
},
{
"abbrev": false,
"fu... | false | let no_extra_bytes_helper s num_bytes =
slice_length (le_seq_quad32_to_bytes s) | val no_extra_bytes_helper (s:seq quad32) (num_bytes:int) : Lemma
(requires 0 <= num_bytes /\
num_bytes % 16 == 0 /\
length s == bytes_to_quad_size num_bytes)
(ensures slice (le_seq_quad32_to_bytes s) 0 num_bytes == le_seq_quad32_to_bytes s /\
slice s 0 (num_bytes / 16) == s)
let n... | false | null | true | slice_length (le_seq_quad32_to_bytes s) | {
"checked_file": "Vale.AES.GCM_helpers.fst.checked",
"dependencies": [
"Vale.Lib.Seqs_s.fst.checked",
"Vale.Lib.Seqs.fsti.checked",
"Vale.Def.Words_s.fsti.checked",
"Vale.Def.Words.Two_s.fsti.checked",
"Vale.Def.Words.Seq_s.fsti.checked",
"Vale.Def.Words.Four_s.fsti.checked",
"Vale.Def.... | [
"lemma"
] | [
"FStar.Seq.Base.seq",
"Vale.Def.Types_s.quad32",
"Prims.int",
"FStar.Seq.Properties.slice_length",
"Vale.Def.Types_s.nat8",
"Vale.Def.Types_s.le_seq_quad32_to_bytes",
"Prims.unit"
] | [] | module Vale.AES.GCM_helpers
open FStar.Tactics
open Vale.Def.Words_s
open Vale.Def.Words.Seq_s
open Vale.Def.Types_s
open Vale.Arch.Types
open FStar.Mul
open FStar.Seq
open Vale.Def.Opaque_s
open Vale.Def.Words.Two_s
open Vale.Def.Words.Four_s
open Vale.AES.AES_s
open Vale.AES.GCTR_s
open FStar.Math.Lemmas
open Vale.L... | false | false | Vale.AES.GCM_helpers.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"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... | null | val no_extra_bytes_helper (s:seq quad32) (num_bytes:int) : Lemma
(requires 0 <= num_bytes /\
num_bytes % 16 == 0 /\
length s == bytes_to_quad_size num_bytes)
(ensures slice (le_seq_quad32_to_bytes s) 0 num_bytes == le_seq_quad32_to_bytes s /\
slice s 0 (num_bytes / 16) == s) | [] | Vale.AES.GCM_helpers.no_extra_bytes_helper | {
"file_name": "vale/code/crypto/aes/Vale.AES.GCM_helpers.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | s: FStar.Seq.Base.seq Vale.Def.Types_s.quad32 -> num_bytes: Prims.int
-> FStar.Pervasives.Lemma
(requires
0 <= num_bytes /\ num_bytes % 16 == 0 /\
FStar.Seq.Base.length s == Vale.AES.GCM_helpers.bytes_to_quad_size num_bytes)
(ensures
FStar.Seq.Base.slice (Vale.Def.Types_s.le_seq_qu... | {
"end_col": 41,
"end_line": 29,
"start_col": 2,
"start_line": 29
} |
FStar.Pervasives.Lemma | val le_seq_quad32_to_bytes_tail_prefix (s:seq quad32) (num_bytes:nat) : Lemma
(requires (1 <= num_bytes /\
num_bytes < 16 * length s /\
16 * (length s - 1) < num_bytes /\
num_bytes % 16 <> 0))
(ensures (let num_extra = num_bytes % 16 in
let num_blocks = num_bytes /... | [
{
"abbrev": false,
"full_module": "Vale.AES.Types_helpers",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Lib.Seqs",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Math.Lemmas",
"short_module": null
},
{
"abbrev": false,
"fu... | false | let le_seq_quad32_to_bytes_tail_prefix (s:seq quad32) (num_bytes:nat) =
let num_extra = num_bytes % 16 in
let num_blocks = num_bytes / 16 in
let final = index s num_blocks in
let x = slice (le_seq_quad32_to_bytes s) (num_blocks * 16) num_bytes in
let x' = slice (le_quad32_to_bytes final) 0 num_extra in
le... | val le_seq_quad32_to_bytes_tail_prefix (s:seq quad32) (num_bytes:nat) : Lemma
(requires (1 <= num_bytes /\
num_bytes < 16 * length s /\
16 * (length s - 1) < num_bytes /\
num_bytes % 16 <> 0))
(ensures (let num_extra = num_bytes % 16 in
let num_blocks = num_bytes /... | false | null | true | let num_extra = num_bytes % 16 in
let num_blocks = num_bytes / 16 in
let final = index s num_blocks in
let x = slice (le_seq_quad32_to_bytes s) (num_blocks * 16) num_bytes in
let x' = slice (le_quad32_to_bytes final) 0 num_extra in
le_seq_quad32_to_bytes_of_singleton final;
assert (le_quad32_to_bytes final == le_seq_qu... | {
"checked_file": "Vale.AES.GCM_helpers.fst.checked",
"dependencies": [
"Vale.Lib.Seqs_s.fst.checked",
"Vale.Lib.Seqs.fsti.checked",
"Vale.Def.Words_s.fsti.checked",
"Vale.Def.Words.Two_s.fsti.checked",
"Vale.Def.Words.Seq_s.fsti.checked",
"Vale.Def.Words.Four_s.fsti.checked",
"Vale.Def.... | [
"lemma"
] | [
"FStar.Seq.Base.seq",
"Vale.Def.Types_s.quad32",
"Prims.nat",
"Prims.unit",
"Prims._assert",
"FStar.Seq.Base.equal",
"Vale.Def.Types_s.nat8",
"Prims.eq2",
"FStar.Seq.Base.slice",
"Vale.Def.Types_s.le_seq_quad32_to_bytes",
"FStar.Mul.op_Star",
"FStar.Seq.Base.length",
"Vale.Arch.Types.slice_c... | [] | module Vale.AES.GCM_helpers
open FStar.Tactics
open Vale.Def.Words_s
open Vale.Def.Words.Seq_s
open Vale.Def.Types_s
open Vale.Arch.Types
open FStar.Mul
open FStar.Seq
open Vale.Def.Opaque_s
open Vale.Def.Words.Two_s
open Vale.Def.Words.Four_s
open Vale.AES.AES_s
open Vale.AES.GCTR_s
open FStar.Math.Lemmas
open Vale.L... | false | false | Vale.AES.GCM_helpers.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"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... | null | val le_seq_quad32_to_bytes_tail_prefix (s:seq quad32) (num_bytes:nat) : Lemma
(requires (1 <= num_bytes /\
num_bytes < 16 * length s /\
16 * (length s - 1) < num_bytes /\
num_bytes % 16 <> 0))
(ensures (let num_extra = num_bytes % 16 in
let num_blocks = num_bytes /... | [] | Vale.AES.GCM_helpers.le_seq_quad32_to_bytes_tail_prefix | {
"file_name": "vale/code/crypto/aes/Vale.AES.GCM_helpers.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | s: FStar.Seq.Base.seq Vale.Def.Types_s.quad32 -> num_bytes: Prims.nat
-> FStar.Pervasives.Lemma
(requires
1 <= num_bytes /\ num_bytes < 16 * FStar.Seq.Base.length s /\
16 * (FStar.Seq.Base.length s - 1) < num_bytes /\ num_bytes % 16 <> 0)
(ensures
(let num_extra = num_bytes % 16 in... | {
"end_col": 4,
"end_line": 48,
"start_col": 71,
"start_line": 31
} |
FStar.Pervasives.Lemma | val pad_to_128_bits_multiples (b: seq nat8)
: Lemma
(let full_blocks = ((length b) / 16) * 16 in
let full_bytes, partial_bytes = split b full_blocks in
pad_to_128_bits b == full_bytes @| pad_to_128_bits partial_bytes) | [
{
"abbrev": false,
"full_module": "Vale.AES.Types_helpers",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Lib.Seqs",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Math.Lemmas",
"short_module": null
},
{
"abbrev": false,
"fu... | false | let pad_to_128_bits_multiples (b:seq nat8) : Lemma
(let full_blocks = (length b) / 16 * 16 in
let full_bytes, partial_bytes = split b full_blocks in
pad_to_128_bits b == full_bytes @| pad_to_128_bits partial_bytes)
=
let full_blocks = (length b) / 16 * 16 in
let full_bytes, partial_bytes = split b full_bl... | val pad_to_128_bits_multiples (b: seq nat8)
: Lemma
(let full_blocks = ((length b) / 16) * 16 in
let full_bytes, partial_bytes = split b full_blocks in
pad_to_128_bits b == full_bytes @| pad_to_128_bits partial_bytes)
let pad_to_128_bits_multiples (b: seq nat8)
: Lemma
(let full_blocks = ((l... | false | null | true | let full_blocks = ((length b) / 16) * 16 in
let full_bytes, partial_bytes = split b full_blocks in
if length b < 16
then
(assert (full_bytes == empty);
assert (partial_bytes == b);
append_empty_l (pad_to_128_bits partial_bytes);
())
else
(assert (length full_bytes + length partial_bytes == length b);
... | {
"checked_file": "Vale.AES.GCM_helpers.fst.checked",
"dependencies": [
"Vale.Lib.Seqs_s.fst.checked",
"Vale.Lib.Seqs.fsti.checked",
"Vale.Def.Words_s.fsti.checked",
"Vale.Def.Words.Two_s.fsti.checked",
"Vale.Def.Words.Seq_s.fsti.checked",
"Vale.Def.Words.Four_s.fsti.checked",
"Vale.Def.... | [
"lemma"
] | [
"FStar.Seq.Base.seq",
"Vale.Def.Types_s.nat8",
"Prims.op_LessThan",
"FStar.Seq.Base.length",
"Prims.unit",
"FStar.Seq.Base.append_empty_l",
"Vale.AES.GCTR_s.pad_to_128_bits",
"Prims._assert",
"Prims.eq2",
"FStar.Seq.Base.empty",
"Prims.bool",
"Prims.op_Equality",
"Prims.int",
"FStar.Seq.Ba... | [] | module Vale.AES.GCM_helpers
open FStar.Tactics
open Vale.Def.Words_s
open Vale.Def.Words.Seq_s
open Vale.Def.Types_s
open Vale.Arch.Types
open FStar.Mul
open FStar.Seq
open Vale.Def.Opaque_s
open Vale.Def.Words.Two_s
open Vale.Def.Words.Four_s
open Vale.AES.AES_s
open Vale.AES.GCTR_s
open FStar.Math.Lemmas
open Vale.L... | false | false | Vale.AES.GCM_helpers.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"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... | null | val pad_to_128_bits_multiples (b: seq nat8)
: Lemma
(let full_blocks = ((length b) / 16) * 16 in
let full_bytes, partial_bytes = split b full_blocks in
pad_to_128_bits b == full_bytes @| pad_to_128_bits partial_bytes) | [] | Vale.AES.GCM_helpers.pad_to_128_bits_multiples | {
"file_name": "vale/code/crypto/aes/Vale.AES.GCM_helpers.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | b: FStar.Seq.Base.seq Vale.Def.Types_s.nat8
-> FStar.Pervasives.Lemma
(ensures
(let full_blocks = (FStar.Seq.Base.length b / 16) * 16 in
let _ = FStar.Seq.Properties.split b full_blocks in
(let FStar.Pervasives.Native.Mktuple2 #_ #_ full_bytes partial_bytes = _ in
Vale.AES.GCTR_s.p... | {
"end_col": 3,
"end_line": 88,
"start_col": 3,
"start_line": 65
} |
FStar.Pervasives.Lemma | val pad_to_128_bits_le_quad32_to_bytes (s:seq quad32) (num_bytes:int) : Lemma
(requires 1 <= num_bytes /\
num_bytes < 16 * length s /\
16 * (length s - 1) < num_bytes /\
num_bytes % 16 <> 0 /\
length s == bytes_to_quad_size num_bytes)
(ensures (let num_blocks = nu... | [
{
"abbrev": false,
"full_module": "Vale.AES.Types_helpers",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Lib.Seqs",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Math.Lemmas",
"short_module": null
},
{
"abbrev": false,
"fu... | false | let pad_to_128_bits_le_quad32_to_bytes (s:seq quad32) (num_bytes:int) =
let num_extra = num_bytes % 16 in
let num_blocks = num_bytes / 16 in
let full_quads,final_quads = split s num_blocks in
assert(length final_quads == 1);
let final_quad = index final_quads 0 in
let b = slice (le_seq_quad32_to_bytes s) 0 ... | val pad_to_128_bits_le_quad32_to_bytes (s:seq quad32) (num_bytes:int) : Lemma
(requires 1 <= num_bytes /\
num_bytes < 16 * length s /\
16 * (length s - 1) < num_bytes /\
num_bytes % 16 <> 0 /\
length s == bytes_to_quad_size num_bytes)
(ensures (let num_blocks = nu... | false | null | true | let num_extra = num_bytes % 16 in
let num_blocks = num_bytes / 16 in
let full_quads, final_quads = split s num_blocks in
assert (length final_quads == 1);
let final_quad = index final_quads 0 in
let b = slice (le_seq_quad32_to_bytes s) 0 num_bytes in
pad_to_128_bits_multiples b;
let full_blocks = ((length b) / 16) * 16... | {
"checked_file": "Vale.AES.GCM_helpers.fst.checked",
"dependencies": [
"Vale.Lib.Seqs_s.fst.checked",
"Vale.Lib.Seqs.fsti.checked",
"Vale.Def.Words_s.fsti.checked",
"Vale.Def.Words.Two_s.fsti.checked",
"Vale.Def.Words.Seq_s.fsti.checked",
"Vale.Def.Words.Four_s.fsti.checked",
"Vale.Def.... | [
"lemma"
] | [
"FStar.Seq.Base.seq",
"Vale.Def.Types_s.quad32",
"Prims.int",
"Vale.Def.Types_s.nat8",
"Prims.unit",
"Vale.AES.GCM_helpers.le_seq_quad32_to_bytes_tail_prefix",
"FStar.Seq.Properties.slice_slice",
"Vale.Def.Types_s.le_seq_quad32_to_bytes",
"Prims._assert",
"Prims.eq2",
"Vale.Arch.Types.slice_comm... | [] | module Vale.AES.GCM_helpers
open FStar.Tactics
open Vale.Def.Words_s
open Vale.Def.Words.Seq_s
open Vale.Def.Types_s
open Vale.Arch.Types
open FStar.Mul
open FStar.Seq
open Vale.Def.Opaque_s
open Vale.Def.Words.Two_s
open Vale.Def.Words.Four_s
open Vale.AES.AES_s
open Vale.AES.GCTR_s
open FStar.Math.Lemmas
open Vale.L... | false | false | Vale.AES.GCM_helpers.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"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... | null | val pad_to_128_bits_le_quad32_to_bytes (s:seq quad32) (num_bytes:int) : Lemma
(requires 1 <= num_bytes /\
num_bytes < 16 * length s /\
16 * (length s - 1) < num_bytes /\
num_bytes % 16 <> 0 /\
length s == bytes_to_quad_size num_bytes)
(ensures (let num_blocks = nu... | [] | Vale.AES.GCM_helpers.pad_to_128_bits_le_quad32_to_bytes | {
"file_name": "vale/code/crypto/aes/Vale.AES.GCM_helpers.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | s: FStar.Seq.Base.seq Vale.Def.Types_s.quad32 -> num_bytes: Prims.int
-> FStar.Pervasives.Lemma
(requires
1 <= num_bytes /\ num_bytes < 16 * FStar.Seq.Base.length s /\
16 * (FStar.Seq.Base.length s - 1) < num_bytes /\ num_bytes % 16 <> 0 /\
FStar.Seq.Base.length s == Vale.AES.GCM_helpers... | {
"end_col": 4,
"end_line": 132,
"start_col": 71,
"start_line": 90
} |
FStar.Pervasives.Lemma | val lemma_mod_n_8_upper2 (q: quad32) (n: nat)
: Lemma (requires n <= 4)
(ensures hi64 q % pow2 (8 * (4 + n)) == q.hi2 + 0x100000000 * (q.hi3 % pow2 (8 * n))) | [
{
"abbrev": false,
"full_module": "Vale.AES.Types_helpers",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Lib.Seqs",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Math.Lemmas",
"short_module": null
},
{
"abbrev": false,
"fu... | false | let lemma_mod_n_8_upper2 (q:quad32) (n:nat) : Lemma
(requires n <= 4)
(ensures hi64 q % pow2 (8 * (4 + n)) == q.hi2 + 0x100000000 * (q.hi3 % pow2 (8 * n)))
=
hi64_reveal ();
lo64_reveal ();
let Mkfour _ _ q2 q3 = q in
lemma_mod_n_8_lower2 (Mkfour q2 q3 0 0) n | val lemma_mod_n_8_upper2 (q: quad32) (n: nat)
: Lemma (requires n <= 4)
(ensures hi64 q % pow2 (8 * (4 + n)) == q.hi2 + 0x100000000 * (q.hi3 % pow2 (8 * n)))
let lemma_mod_n_8_upper2 (q: quad32) (n: nat)
: Lemma (requires n <= 4)
(ensures hi64 q % pow2 (8 * (4 + n)) == q.hi2 + 0x100000000 * (q.hi3 %... | false | null | true | hi64_reveal ();
lo64_reveal ();
let Mkfour _ _ q2 q3 = q in
lemma_mod_n_8_lower2 (Mkfour q2 q3 0 0) n | {
"checked_file": "Vale.AES.GCM_helpers.fst.checked",
"dependencies": [
"Vale.Lib.Seqs_s.fst.checked",
"Vale.Lib.Seqs.fsti.checked",
"Vale.Def.Words_s.fsti.checked",
"Vale.Def.Words.Two_s.fsti.checked",
"Vale.Def.Words.Seq_s.fsti.checked",
"Vale.Def.Words.Four_s.fsti.checked",
"Vale.Def.... | [
"lemma"
] | [
"Vale.Def.Types_s.quad32",
"Prims.nat",
"Vale.Def.Types_s.nat32",
"Vale.AES.GCM_helpers.lemma_mod_n_8_lower2",
"Vale.Def.Words_s.Mkfour",
"Prims.unit",
"Vale.Arch.Types.lo64_reveal",
"Vale.Arch.Types.hi64_reveal",
"Prims.b2t",
"Prims.op_LessThanOrEqual",
"Prims.squash",
"Prims.eq2",
"Prims.i... | [] | module Vale.AES.GCM_helpers
open FStar.Tactics
open Vale.Def.Words_s
open Vale.Def.Words.Seq_s
open Vale.Def.Types_s
open Vale.Arch.Types
open FStar.Mul
open FStar.Seq
open Vale.Def.Opaque_s
open Vale.Def.Words.Two_s
open Vale.Def.Words.Four_s
open Vale.AES.AES_s
open Vale.AES.GCTR_s
open FStar.Math.Lemmas
open Vale.L... | false | false | Vale.AES.GCM_helpers.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 1,
"initial_ifuel": 0,
"max_fuel": 1,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | null | val lemma_mod_n_8_upper2 (q: quad32) (n: nat)
: Lemma (requires n <= 4)
(ensures hi64 q % pow2 (8 * (4 + n)) == q.hi2 + 0x100000000 * (q.hi3 % pow2 (8 * n))) | [] | Vale.AES.GCM_helpers.lemma_mod_n_8_upper2 | {
"file_name": "vale/code/crypto/aes/Vale.AES.GCM_helpers.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | q: Vale.Def.Types_s.quad32 -> n: Prims.nat
-> FStar.Pervasives.Lemma (requires n <= 4)
(ensures
Vale.Arch.Types.hi64 q % Prims.pow2 (8 * (4 + n)) ==
Mkfour?.hi2 q + 0x100000000 * (Mkfour?.hi3 q % Prims.pow2 (8 * n))) | {
"end_col": 43,
"end_line": 335,
"start_col": 2,
"start_line": 332
} |
FStar.Pervasives.Lemma | val lemma_four_zero: unit -> Lemma (ensures four_to_nat 8 (seq_to_four_LE (create 4 0)) == 0) | [
{
"abbrev": false,
"full_module": "Vale.AES.Types_helpers",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Lib.Seqs",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Math.Lemmas",
"short_module": null
},
{
"abbrev": false,
"fu... | false | let lemma_four_zero (_:unit) : Lemma
(ensures four_to_nat 8 (seq_to_four_LE (create 4 0)) == 0)
=
let s = create 4 0 in
assert_norm (four_to_nat 8 (seq_to_four_LE s) == four_to_nat_unfold 8 (seq_to_four_LE s));
() | val lemma_four_zero: unit -> Lemma (ensures four_to_nat 8 (seq_to_four_LE (create 4 0)) == 0)
let lemma_four_zero (_: unit) : Lemma (ensures four_to_nat 8 (seq_to_four_LE (create 4 0)) == 0) = | false | null | true | let s = create 4 0 in
assert_norm (four_to_nat 8 (seq_to_four_LE s) == four_to_nat_unfold 8 (seq_to_four_LE s));
() | {
"checked_file": "Vale.AES.GCM_helpers.fst.checked",
"dependencies": [
"Vale.Lib.Seqs_s.fst.checked",
"Vale.Lib.Seqs.fsti.checked",
"Vale.Def.Words_s.fsti.checked",
"Vale.Def.Words.Two_s.fsti.checked",
"Vale.Def.Words.Seq_s.fsti.checked",
"Vale.Def.Words.Four_s.fsti.checked",
"Vale.Def.... | [
"lemma"
] | [
"Prims.unit",
"FStar.Pervasives.assert_norm",
"Prims.eq2",
"Vale.Def.Words_s.natN",
"Prims.pow2",
"FStar.Mul.op_Star",
"Vale.Def.Words.Four_s.four_to_nat",
"Vale.Def.Words.Seq_s.seq_to_four_LE",
"Vale.Def.Words.Four_s.four_to_nat_unfold",
"FStar.Seq.Base.seq",
"FStar.Seq.Base.create",
"Prims.l... | [] | module Vale.AES.GCM_helpers
open FStar.Tactics
open Vale.Def.Words_s
open Vale.Def.Words.Seq_s
open Vale.Def.Types_s
open Vale.Arch.Types
open FStar.Mul
open FStar.Seq
open Vale.Def.Opaque_s
open Vale.Def.Words.Two_s
open Vale.Def.Words.Four_s
open Vale.AES.AES_s
open Vale.AES.GCTR_s
open FStar.Math.Lemmas
open Vale.L... | false | false | Vale.AES.GCM_helpers.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 1,
"initial_ifuel": 0,
"max_fuel": 1,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | null | val lemma_four_zero: unit -> Lemma (ensures four_to_nat 8 (seq_to_four_LE (create 4 0)) == 0) | [] | Vale.AES.GCM_helpers.lemma_four_zero | {
"file_name": "vale/code/crypto/aes/Vale.AES.GCM_helpers.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | _: Prims.unit
-> FStar.Pervasives.Lemma
(ensures
Vale.Def.Words.Four_s.four_to_nat 8
(Vale.Def.Words.Seq_s.seq_to_four_LE (FStar.Seq.Base.create 4 0)) ==
0) | {
"end_col": 4,
"end_line": 421,
"start_col": 3,
"start_line": 418
} |
FStar.Pervasives.Lemma | val lemma_mod_n_8_upper1 (q: quad32) (n: nat)
: Lemma (requires n <= 4) (ensures hi64 q % pow2 (8 * n) == q.hi2 % pow2 (8 * n)) | [
{
"abbrev": false,
"full_module": "Vale.AES.Types_helpers",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Lib.Seqs",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Math.Lemmas",
"short_module": null
},
{
"abbrev": false,
"fu... | false | let lemma_mod_n_8_upper1 (q:quad32) (n:nat) : Lemma
(requires n <= 4)
(ensures hi64 q % pow2 (8 * n) == q.hi2 % pow2 (8 * n))
=
hi64_reveal ();
lo64_reveal ();
let Mkfour _ _ q2 q3 = q in
lemma_mod_n_8_lower1 (Mkfour q2 q3 0 0) n | val lemma_mod_n_8_upper1 (q: quad32) (n: nat)
: Lemma (requires n <= 4) (ensures hi64 q % pow2 (8 * n) == q.hi2 % pow2 (8 * n))
let lemma_mod_n_8_upper1 (q: quad32) (n: nat)
: Lemma (requires n <= 4) (ensures hi64 q % pow2 (8 * n) == q.hi2 % pow2 (8 * n)) = | false | null | true | hi64_reveal ();
lo64_reveal ();
let Mkfour _ _ q2 q3 = q in
lemma_mod_n_8_lower1 (Mkfour q2 q3 0 0) n | {
"checked_file": "Vale.AES.GCM_helpers.fst.checked",
"dependencies": [
"Vale.Lib.Seqs_s.fst.checked",
"Vale.Lib.Seqs.fsti.checked",
"Vale.Def.Words_s.fsti.checked",
"Vale.Def.Words.Two_s.fsti.checked",
"Vale.Def.Words.Seq_s.fsti.checked",
"Vale.Def.Words.Four_s.fsti.checked",
"Vale.Def.... | [
"lemma"
] | [
"Vale.Def.Types_s.quad32",
"Prims.nat",
"Vale.Def.Types_s.nat32",
"Vale.AES.GCM_helpers.lemma_mod_n_8_lower1",
"Vale.Def.Words_s.Mkfour",
"Prims.unit",
"Vale.Arch.Types.lo64_reveal",
"Vale.Arch.Types.hi64_reveal",
"Prims.b2t",
"Prims.op_LessThanOrEqual",
"Prims.squash",
"Prims.eq2",
"Prims.i... | [] | module Vale.AES.GCM_helpers
open FStar.Tactics
open Vale.Def.Words_s
open Vale.Def.Words.Seq_s
open Vale.Def.Types_s
open Vale.Arch.Types
open FStar.Mul
open FStar.Seq
open Vale.Def.Opaque_s
open Vale.Def.Words.Two_s
open Vale.Def.Words.Four_s
open Vale.AES.AES_s
open Vale.AES.GCTR_s
open FStar.Math.Lemmas
open Vale.L... | false | false | Vale.AES.GCM_helpers.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 1,
"initial_ifuel": 0,
"max_fuel": 1,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | null | val lemma_mod_n_8_upper1 (q: quad32) (n: nat)
: Lemma (requires n <= 4) (ensures hi64 q % pow2 (8 * n) == q.hi2 % pow2 (8 * n)) | [] | Vale.AES.GCM_helpers.lemma_mod_n_8_upper1 | {
"file_name": "vale/code/crypto/aes/Vale.AES.GCM_helpers.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | q: Vale.Def.Types_s.quad32 -> n: Prims.nat
-> FStar.Pervasives.Lemma (requires n <= 4)
(ensures Vale.Arch.Types.hi64 q % Prims.pow2 (8 * n) == Mkfour?.hi2 q % Prims.pow2 (8 * n)) | {
"end_col": 43,
"end_line": 326,
"start_col": 2,
"start_line": 323
} |
FStar.Pervasives.Lemma | val lemma_64_32_hi1 (q': quad32) (hi hi': nat64) (n: nat)
: Lemma
(requires
n <= 4 /\ hi' == hi % pow2 (8 * n) /\
four_to_two_two q' == Mktwo (Mktwo q'.lo0 q'.lo1) (nat_to_two 32 hi'))
(ensures hi' < 0x100000000 /\ hi' == q'.hi2 /\ q'.hi3 == 0) | [
{
"abbrev": false,
"full_module": "Vale.AES.Types_helpers",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Lib.Seqs",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Math.Lemmas",
"short_module": null
},
{
"abbrev": false,
"fu... | false | let lemma_64_32_hi1 (q':quad32) (hi hi':nat64) (n:nat) : Lemma
(requires
n <= 4 /\
hi' == hi % pow2 (8 * n) /\
four_to_two_two q' == Mktwo (Mktwo q'.lo0 q'.lo1) (nat_to_two 32 hi')
)
(ensures hi' < 0x100000000 /\ hi' == q'.hi2 /\ q'.hi3 == 0)
=
assert_norm (pow2 (0 * 8) == 1);
assert_norm (pow2 ... | val lemma_64_32_hi1 (q': quad32) (hi hi': nat64) (n: nat)
: Lemma
(requires
n <= 4 /\ hi' == hi % pow2 (8 * n) /\
four_to_two_two q' == Mktwo (Mktwo q'.lo0 q'.lo1) (nat_to_two 32 hi'))
(ensures hi' < 0x100000000 /\ hi' == q'.hi2 /\ q'.hi3 == 0)
let lemma_64_32_hi1 (q': quad32) (hi hi': n... | false | null | true | assert_norm (pow2 (0 * 8) == 1);
assert_norm (pow2 (1 * 8) == 0x100);
assert_norm (pow2 (2 * 8) == 0x10000);
assert_norm (pow2 (3 * 8) == 0x1000000);
assert_norm (pow2 (4 * 8) == 0x100000000);
assert_norm (nat_to_two 32 hi' == nat_to_two_unfold 32 hi');
() | {
"checked_file": "Vale.AES.GCM_helpers.fst.checked",
"dependencies": [
"Vale.Lib.Seqs_s.fst.checked",
"Vale.Lib.Seqs.fsti.checked",
"Vale.Def.Words_s.fsti.checked",
"Vale.Def.Words.Two_s.fsti.checked",
"Vale.Def.Words.Seq_s.fsti.checked",
"Vale.Def.Words.Four_s.fsti.checked",
"Vale.Def.... | [
"lemma"
] | [
"Vale.Def.Types_s.quad32",
"Vale.Def.Types_s.nat64",
"Prims.nat",
"Prims.unit",
"FStar.Pervasives.assert_norm",
"Prims.eq2",
"Vale.Def.Words_s.two",
"Vale.Def.Words_s.natN",
"Prims.pow2",
"Vale.Def.Words.Two_s.nat_to_two",
"Vale.Def.Words.Two_s.nat_to_two_unfold",
"Prims.int",
"FStar.Mul.op_... | [] | module Vale.AES.GCM_helpers
open FStar.Tactics
open Vale.Def.Words_s
open Vale.Def.Words.Seq_s
open Vale.Def.Types_s
open Vale.Arch.Types
open FStar.Mul
open FStar.Seq
open Vale.Def.Opaque_s
open Vale.Def.Words.Two_s
open Vale.Def.Words.Four_s
open Vale.AES.AES_s
open Vale.AES.GCTR_s
open FStar.Math.Lemmas
open Vale.L... | false | false | Vale.AES.GCM_helpers.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 1,
"initial_ifuel": 0,
"max_fuel": 1,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | null | val lemma_64_32_hi1 (q': quad32) (hi hi': nat64) (n: nat)
: Lemma
(requires
n <= 4 /\ hi' == hi % pow2 (8 * n) /\
four_to_two_two q' == Mktwo (Mktwo q'.lo0 q'.lo1) (nat_to_two 32 hi'))
(ensures hi' < 0x100000000 /\ hi' == q'.hi2 /\ q'.hi3 == 0) | [] | Vale.AES.GCM_helpers.lemma_64_32_hi1 | {
"file_name": "vale/code/crypto/aes/Vale.AES.GCM_helpers.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} |
q': Vale.Def.Types_s.quad32 ->
hi: Vale.Def.Types_s.nat64 ->
hi': Vale.Def.Types_s.nat64 ->
n: Prims.nat
-> FStar.Pervasives.Lemma
(requires
n <= 4 /\ hi' == hi % Prims.pow2 (8 * n) /\
Vale.Def.Words.Four_s.four_to_two_two q' ==
Vale.Def.Words_s.Mktwo (Vale.Def.Words_s.M... | {
"end_col": 4,
"end_line": 385,
"start_col": 2,
"start_line": 379
} |
FStar.Pervasives.Lemma | val lemma_64_32_hi2 (q': quad32) (hi hi': nat64) (n: nat)
: Lemma
(requires
n <= 4 /\ hi' == hi % pow2 (8 * (n + 4)) /\
four_to_two_two q' == Mktwo (Mktwo q'.lo0 q'.lo1) (nat_to_two 32 hi'))
(ensures hi' == q'.hi2 + 0x100000000 * q'.hi3) | [
{
"abbrev": false,
"full_module": "Vale.AES.Types_helpers",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Lib.Seqs",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Math.Lemmas",
"short_module": null
},
{
"abbrev": false,
"fu... | false | let lemma_64_32_hi2 (q':quad32) (hi hi':nat64) (n:nat) : Lemma
(requires
n <= 4 /\
hi' == hi % pow2 (8 * (n + 4)) /\
four_to_two_two q' == Mktwo (Mktwo q'.lo0 q'.lo1) (nat_to_two 32 hi')
)
(ensures hi' == q'.hi2 + 0x100000000 * q'.hi3)
=
assert_norm (pow2 (4 * 8) == 0x100000000);
assert_norm (po... | val lemma_64_32_hi2 (q': quad32) (hi hi': nat64) (n: nat)
: Lemma
(requires
n <= 4 /\ hi' == hi % pow2 (8 * (n + 4)) /\
four_to_two_two q' == Mktwo (Mktwo q'.lo0 q'.lo1) (nat_to_two 32 hi'))
(ensures hi' == q'.hi2 + 0x100000000 * q'.hi3)
let lemma_64_32_hi2 (q': quad32) (hi hi': nat64) (... | false | null | true | assert_norm (pow2 (4 * 8) == 0x100000000);
assert_norm (pow2 (5 * 8) == 0x10000000000);
assert_norm (pow2 (6 * 8) == 0x1000000000000);
assert_norm (pow2 (7 * 8) == 0x100000000000000);
assert_norm (pow2 (8 * 8) == 0x10000000000000000);
assert_norm (nat_to_two 32 hi' == nat_to_two_unfold 32 hi');
() | {
"checked_file": "Vale.AES.GCM_helpers.fst.checked",
"dependencies": [
"Vale.Lib.Seqs_s.fst.checked",
"Vale.Lib.Seqs.fsti.checked",
"Vale.Def.Words_s.fsti.checked",
"Vale.Def.Words.Two_s.fsti.checked",
"Vale.Def.Words.Seq_s.fsti.checked",
"Vale.Def.Words.Four_s.fsti.checked",
"Vale.Def.... | [
"lemma"
] | [
"Vale.Def.Types_s.quad32",
"Vale.Def.Types_s.nat64",
"Prims.nat",
"Prims.unit",
"FStar.Pervasives.assert_norm",
"Prims.eq2",
"Vale.Def.Words_s.two",
"Vale.Def.Words_s.natN",
"Prims.pow2",
"Vale.Def.Words.Two_s.nat_to_two",
"Vale.Def.Words.Two_s.nat_to_two_unfold",
"Prims.int",
"FStar.Mul.op_... | [] | module Vale.AES.GCM_helpers
open FStar.Tactics
open Vale.Def.Words_s
open Vale.Def.Words.Seq_s
open Vale.Def.Types_s
open Vale.Arch.Types
open FStar.Mul
open FStar.Seq
open Vale.Def.Opaque_s
open Vale.Def.Words.Two_s
open Vale.Def.Words.Four_s
open Vale.AES.AES_s
open Vale.AES.GCTR_s
open FStar.Math.Lemmas
open Vale.L... | false | false | Vale.AES.GCM_helpers.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 1,
"initial_ifuel": 0,
"max_fuel": 1,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | null | val lemma_64_32_hi2 (q': quad32) (hi hi': nat64) (n: nat)
: Lemma
(requires
n <= 4 /\ hi' == hi % pow2 (8 * (n + 4)) /\
four_to_two_two q' == Mktwo (Mktwo q'.lo0 q'.lo1) (nat_to_two 32 hi'))
(ensures hi' == q'.hi2 + 0x100000000 * q'.hi3) | [] | Vale.AES.GCM_helpers.lemma_64_32_hi2 | {
"file_name": "vale/code/crypto/aes/Vale.AES.GCM_helpers.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} |
q': Vale.Def.Types_s.quad32 ->
hi: Vale.Def.Types_s.nat64 ->
hi': Vale.Def.Types_s.nat64 ->
n: Prims.nat
-> FStar.Pervasives.Lemma
(requires
n <= 4 /\ hi' == hi % Prims.pow2 (8 * (n + 4)) /\
Vale.Def.Words.Four_s.four_to_two_two q' ==
Vale.Def.Words_s.Mktwo (Vale.Def.Wor... | {
"end_col": 4,
"end_line": 401,
"start_col": 2,
"start_line": 395
} |
FStar.Pervasives.Lemma | val lemma_mod_n_8_lower2 (q: quad32) (n: nat)
: Lemma (requires n <= 4)
(ensures lo64 q % pow2 (8 * (4 + n)) == q.lo0 + 0x100000000 * (q.lo1 % pow2 (8 * n))) | [
{
"abbrev": false,
"full_module": "Vale.AES.Types_helpers",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Lib.Seqs",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Math.Lemmas",
"short_module": null
},
{
"abbrev": false,
"fu... | false | let lemma_mod_n_8_lower2 (q:quad32) (n:nat) : Lemma
(requires n <= 4)
(ensures lo64 q % pow2 (8 * (4 + n)) == q.lo0 + 0x100000000 * (q.lo1 % pow2 (8 * n)))
=
lo64_reveal ();
if n <= 2 then lemma_mod_n_8_lower2_helper q n else
let Mkfour _ _ _ _ = q in // avoid ifuel
let f (n:nat{n <= 4}) = lo64_def q % po... | val lemma_mod_n_8_lower2 (q: quad32) (n: nat)
: Lemma (requires n <= 4)
(ensures lo64 q % pow2 (8 * (4 + n)) == q.lo0 + 0x100000000 * (q.lo1 % pow2 (8 * n)))
let lemma_mod_n_8_lower2 (q: quad32) (n: nat)
: Lemma (requires n <= 4)
(ensures lo64 q % pow2 (8 * (4 + n)) == q.lo0 + 0x100000000 * (q.lo1 %... | false | null | true | lo64_reveal ();
if n <= 2
then lemma_mod_n_8_lower2_helper q n
else
let Mkfour _ _ _ _ = q in
let f (n: nat{n <= 4}) =
lo64_def q % pow2 (8 * (4 + n)) == q.lo0 + 0x100000000 * (q.lo1 % pow2 (8 * n))
in
assert_norm (f 4);
assert_norm (f 3);
() | {
"checked_file": "Vale.AES.GCM_helpers.fst.checked",
"dependencies": [
"Vale.Lib.Seqs_s.fst.checked",
"Vale.Lib.Seqs.fsti.checked",
"Vale.Def.Words_s.fsti.checked",
"Vale.Def.Words.Two_s.fsti.checked",
"Vale.Def.Words.Seq_s.fsti.checked",
"Vale.Def.Words.Four_s.fsti.checked",
"Vale.Def.... | [
"lemma"
] | [
"Vale.Def.Types_s.quad32",
"Prims.nat",
"Prims.op_LessThanOrEqual",
"Vale.AES.GCM_helpers.lemma_mod_n_8_lower2_helper",
"Prims.bool",
"Vale.Def.Types_s.nat32",
"Prims.unit",
"FStar.Pervasives.assert_norm",
"Prims.b2t",
"Prims.logical",
"Prims.eq2",
"Prims.int",
"Prims.op_Modulus",
"Vale.Ar... | [] | module Vale.AES.GCM_helpers
open FStar.Tactics
open Vale.Def.Words_s
open Vale.Def.Words.Seq_s
open Vale.Def.Types_s
open Vale.Arch.Types
open FStar.Mul
open FStar.Seq
open Vale.Def.Opaque_s
open Vale.Def.Words.Two_s
open Vale.Def.Words.Four_s
open Vale.AES.AES_s
open Vale.AES.GCTR_s
open FStar.Math.Lemmas
open Vale.L... | false | false | Vale.AES.GCM_helpers.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 1,
"initial_ifuel": 0,
"max_fuel": 1,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | null | val lemma_mod_n_8_lower2 (q: quad32) (n: nat)
: Lemma (requires n <= 4)
(ensures lo64 q % pow2 (8 * (4 + n)) == q.lo0 + 0x100000000 * (q.lo1 % pow2 (8 * n))) | [] | Vale.AES.GCM_helpers.lemma_mod_n_8_lower2 | {
"file_name": "vale/code/crypto/aes/Vale.AES.GCM_helpers.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | q: Vale.Def.Types_s.quad32 -> n: Prims.nat
-> FStar.Pervasives.Lemma (requires n <= 4)
(ensures
Vale.Arch.Types.lo64 q % Prims.pow2 (8 * (4 + n)) ==
Mkfour?.lo0 q + 0x100000000 * (Mkfour?.lo1 q % Prims.pow2 (8 * n))) | {
"end_col": 4,
"end_line": 317,
"start_col": 2,
"start_line": 311
} |
FStar.Pervasives.Lemma | val lemma_64_32_lo2 (q': quad32) (lo lo': nat64) (n: nat)
: Lemma
(requires
n <= 4 /\ lo' == lo % pow2 (8 * (n + 4)) /\
four_to_two_two q' == Mktwo (nat_to_two 32 lo') (nat_to_two 32 0))
(ensures lo' == q'.lo0 + 0x100000000 * q'.lo1 /\ q' == Mkfour q'.lo0 q'.lo1 0 0) | [
{
"abbrev": false,
"full_module": "Vale.AES.Types_helpers",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Lib.Seqs",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Math.Lemmas",
"short_module": null
},
{
"abbrev": false,
"fu... | false | let lemma_64_32_lo2 (q':quad32) (lo lo':nat64) (n:nat) : Lemma
(requires
n <= 4 /\
lo' == lo % pow2 (8 * (n + 4)) /\
four_to_two_two q' == Mktwo (nat_to_two 32 lo') (nat_to_two 32 0)
)
(ensures lo' == q'.lo0 + 0x100000000 * q'.lo1 /\ q' == Mkfour q'.lo0 q'.lo1 0 0)
=
assert_norm (pow2 (4 * 8) == 0... | val lemma_64_32_lo2 (q': quad32) (lo lo': nat64) (n: nat)
: Lemma
(requires
n <= 4 /\ lo' == lo % pow2 (8 * (n + 4)) /\
four_to_two_two q' == Mktwo (nat_to_two 32 lo') (nat_to_two 32 0))
(ensures lo' == q'.lo0 + 0x100000000 * q'.lo1 /\ q' == Mkfour q'.lo0 q'.lo1 0 0)
let lemma_64_32_lo2 ... | false | null | true | assert_norm (pow2 (4 * 8) == 0x100000000);
assert_norm (pow2 (5 * 8) == 0x10000000000);
assert_norm (pow2 (6 * 8) == 0x1000000000000);
assert_norm (pow2 (7 * 8) == 0x100000000000000);
assert_norm (pow2 (8 * 8) == 0x10000000000000000);
assert_norm (nat_to_two 32 lo' == nat_to_two_unfold 32 lo');
assert_norm (nat_to_two ... | {
"checked_file": "Vale.AES.GCM_helpers.fst.checked",
"dependencies": [
"Vale.Lib.Seqs_s.fst.checked",
"Vale.Lib.Seqs.fsti.checked",
"Vale.Def.Words_s.fsti.checked",
"Vale.Def.Words.Two_s.fsti.checked",
"Vale.Def.Words.Seq_s.fsti.checked",
"Vale.Def.Words.Four_s.fsti.checked",
"Vale.Def.... | [
"lemma"
] | [
"Vale.Def.Types_s.quad32",
"Vale.Def.Types_s.nat64",
"Prims.nat",
"Prims.unit",
"FStar.Pervasives.assert_norm",
"Prims.eq2",
"Vale.Def.Words_s.two",
"Vale.Def.Words_s.natN",
"Prims.pow2",
"Vale.Def.Words.Two_s.nat_to_two",
"Vale.Def.Words.Two_s.nat_to_two_unfold",
"Prims.int",
"FStar.Mul.op_... | [] | module Vale.AES.GCM_helpers
open FStar.Tactics
open Vale.Def.Words_s
open Vale.Def.Words.Seq_s
open Vale.Def.Types_s
open Vale.Arch.Types
open FStar.Mul
open FStar.Seq
open Vale.Def.Opaque_s
open Vale.Def.Words.Two_s
open Vale.Def.Words.Four_s
open Vale.AES.AES_s
open Vale.AES.GCTR_s
open FStar.Math.Lemmas
open Vale.L... | false | false | Vale.AES.GCM_helpers.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 1,
"initial_ifuel": 0,
"max_fuel": 1,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | null | val lemma_64_32_lo2 (q': quad32) (lo lo': nat64) (n: nat)
: Lemma
(requires
n <= 4 /\ lo' == lo % pow2 (8 * (n + 4)) /\
four_to_two_two q' == Mktwo (nat_to_two 32 lo') (nat_to_two 32 0))
(ensures lo' == q'.lo0 + 0x100000000 * q'.lo1 /\ q' == Mkfour q'.lo0 q'.lo1 0 0) | [] | Vale.AES.GCM_helpers.lemma_64_32_lo2 | {
"file_name": "vale/code/crypto/aes/Vale.AES.GCM_helpers.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} |
q': Vale.Def.Types_s.quad32 ->
lo: Vale.Def.Types_s.nat64 ->
lo': Vale.Def.Types_s.nat64 ->
n: Prims.nat
-> FStar.Pervasives.Lemma
(requires
n <= 4 /\ lo' == lo % Prims.pow2 (8 * (n + 4)) /\
Vale.Def.Words.Four_s.four_to_two_two q' ==
Vale.Def.Words_s.Mktwo (Vale.Def.Wor... | {
"end_col": 4,
"end_line": 369,
"start_col": 2,
"start_line": 362
} |
FStar.Pervasives.Lemma | val lemma_64_32_lo1 (q': quad32) (lo lo': nat64) (n: nat)
: Lemma
(requires
n <= 4 /\ lo' == lo % pow2 (8 * n) /\
four_to_two_two q' == Mktwo (nat_to_two 32 lo') (nat_to_two 32 0))
(ensures lo' < 0x100000000 /\ lo' == q'.lo0 /\ q' == Mkfour q'.lo0 0 0 0) | [
{
"abbrev": false,
"full_module": "Vale.AES.Types_helpers",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Lib.Seqs",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Math.Lemmas",
"short_module": null
},
{
"abbrev": false,
"fu... | false | let lemma_64_32_lo1 (q':quad32) (lo lo':nat64) (n:nat) : Lemma
(requires
n <= 4 /\
lo' == lo % pow2 (8 * n) /\
four_to_two_two q' == Mktwo (nat_to_two 32 lo') (nat_to_two 32 0)
)
(ensures lo' < 0x100000000 /\ lo' == q'.lo0 /\ q' == Mkfour q'.lo0 0 0 0)
=
assert_norm (pow2 (0 * 8) == 1);
assert_n... | val lemma_64_32_lo1 (q': quad32) (lo lo': nat64) (n: nat)
: Lemma
(requires
n <= 4 /\ lo' == lo % pow2 (8 * n) /\
four_to_two_two q' == Mktwo (nat_to_two 32 lo') (nat_to_two 32 0))
(ensures lo' < 0x100000000 /\ lo' == q'.lo0 /\ q' == Mkfour q'.lo0 0 0 0)
let lemma_64_32_lo1 (q': quad32) ... | false | null | true | assert_norm (pow2 (0 * 8) == 1);
assert_norm (pow2 (1 * 8) == 0x100);
assert_norm (pow2 (2 * 8) == 0x10000);
assert_norm (pow2 (3 * 8) == 0x1000000);
assert_norm (pow2 (4 * 8) == 0x100000000);
assert_norm (nat_to_two 32 lo' == nat_to_two_unfold 32 lo');
assert_norm (nat_to_two 32 0 == nat_to_two_unfold 32 0);
() | {
"checked_file": "Vale.AES.GCM_helpers.fst.checked",
"dependencies": [
"Vale.Lib.Seqs_s.fst.checked",
"Vale.Lib.Seqs.fsti.checked",
"Vale.Def.Words_s.fsti.checked",
"Vale.Def.Words.Two_s.fsti.checked",
"Vale.Def.Words.Seq_s.fsti.checked",
"Vale.Def.Words.Four_s.fsti.checked",
"Vale.Def.... | [
"lemma"
] | [
"Vale.Def.Types_s.quad32",
"Vale.Def.Types_s.nat64",
"Prims.nat",
"Prims.unit",
"FStar.Pervasives.assert_norm",
"Prims.eq2",
"Vale.Def.Words_s.two",
"Vale.Def.Words_s.natN",
"Prims.pow2",
"Vale.Def.Words.Two_s.nat_to_two",
"Vale.Def.Words.Two_s.nat_to_two_unfold",
"Prims.int",
"FStar.Mul.op_... | [] | module Vale.AES.GCM_helpers
open FStar.Tactics
open Vale.Def.Words_s
open Vale.Def.Words.Seq_s
open Vale.Def.Types_s
open Vale.Arch.Types
open FStar.Mul
open FStar.Seq
open Vale.Def.Opaque_s
open Vale.Def.Words.Two_s
open Vale.Def.Words.Four_s
open Vale.AES.AES_s
open Vale.AES.GCTR_s
open FStar.Math.Lemmas
open Vale.L... | false | false | Vale.AES.GCM_helpers.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 1,
"initial_ifuel": 0,
"max_fuel": 1,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | null | val lemma_64_32_lo1 (q': quad32) (lo lo': nat64) (n: nat)
: Lemma
(requires
n <= 4 /\ lo' == lo % pow2 (8 * n) /\
four_to_two_two q' == Mktwo (nat_to_two 32 lo') (nat_to_two 32 0))
(ensures lo' < 0x100000000 /\ lo' == q'.lo0 /\ q' == Mkfour q'.lo0 0 0 0) | [] | Vale.AES.GCM_helpers.lemma_64_32_lo1 | {
"file_name": "vale/code/crypto/aes/Vale.AES.GCM_helpers.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} |
q': Vale.Def.Types_s.quad32 ->
lo: Vale.Def.Types_s.nat64 ->
lo': Vale.Def.Types_s.nat64 ->
n: Prims.nat
-> FStar.Pervasives.Lemma
(requires
n <= 4 /\ lo' == lo % Prims.pow2 (8 * n) /\
Vale.Def.Words.Four_s.four_to_two_two q' ==
Vale.Def.Words_s.Mktwo (Vale.Def.Words.Two... | {
"end_col": 4,
"end_line": 352,
"start_col": 2,
"start_line": 345
} |
FStar.Pervasives.Lemma | val lemma_mod_n_8_lower2_helper (q: quad32) (n: nat)
: Lemma (requires n <= 2)
(ensures lo64 q % pow2 (8 * (4 + n)) == q.lo0 + 0x100000000 * (q.lo1 % pow2 (8 * n))) | [
{
"abbrev": false,
"full_module": "Vale.AES.Types_helpers",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Lib.Seqs",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Math.Lemmas",
"short_module": null
},
{
"abbrev": false,
"fu... | false | let lemma_mod_n_8_lower2_helper (q:quad32) (n:nat) : Lemma
(requires n <= 2)
(ensures lo64 q % pow2 (8 * (4 + n)) == q.lo0 + 0x100000000 * (q.lo1 % pow2 (8 * n)))
=
lo64_reveal ();
let Mkfour _ _ _ _ = q in // avoid ifuel
let f (n:nat{n <= 4}) = lo64_def q % pow2 (8 * (4 + n)) == q.lo0 + 0x100000000 * (q.lo... | val lemma_mod_n_8_lower2_helper (q: quad32) (n: nat)
: Lemma (requires n <= 2)
(ensures lo64 q % pow2 (8 * (4 + n)) == q.lo0 + 0x100000000 * (q.lo1 % pow2 (8 * n)))
let lemma_mod_n_8_lower2_helper (q: quad32) (n: nat)
: Lemma (requires n <= 2)
(ensures lo64 q % pow2 (8 * (4 + n)) == q.lo0 + 0x100000... | false | null | true | lo64_reveal ();
let Mkfour _ _ _ _ = q in
let f (n: nat{n <= 4}) =
lo64_def q % pow2 (8 * (4 + n)) == q.lo0 + 0x100000000 * (q.lo1 % pow2 (8 * n))
in
assert_norm (f 2);
assert_norm (f 1);
assert_norm (f 0);
() | {
"checked_file": "Vale.AES.GCM_helpers.fst.checked",
"dependencies": [
"Vale.Lib.Seqs_s.fst.checked",
"Vale.Lib.Seqs.fsti.checked",
"Vale.Def.Words_s.fsti.checked",
"Vale.Def.Words.Two_s.fsti.checked",
"Vale.Def.Words.Seq_s.fsti.checked",
"Vale.Def.Words.Four_s.fsti.checked",
"Vale.Def.... | [
"lemma"
] | [
"Vale.Def.Types_s.quad32",
"Prims.nat",
"Vale.Def.Types_s.nat32",
"Prims.unit",
"FStar.Pervasives.assert_norm",
"Prims.b2t",
"Prims.op_LessThanOrEqual",
"Prims.logical",
"Prims.eq2",
"Prims.int",
"Prims.op_Modulus",
"Vale.Arch.Types.lo64_def",
"Prims.pow2",
"FStar.Mul.op_Star",
"Prims.op... | [] | module Vale.AES.GCM_helpers
open FStar.Tactics
open Vale.Def.Words_s
open Vale.Def.Words.Seq_s
open Vale.Def.Types_s
open Vale.Arch.Types
open FStar.Mul
open FStar.Seq
open Vale.Def.Opaque_s
open Vale.Def.Words.Two_s
open Vale.Def.Words.Four_s
open Vale.AES.AES_s
open Vale.AES.GCTR_s
open FStar.Math.Lemmas
open Vale.L... | false | false | Vale.AES.GCM_helpers.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 1,
"initial_ifuel": 0,
"max_fuel": 1,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | null | val lemma_mod_n_8_lower2_helper (q: quad32) (n: nat)
: Lemma (requires n <= 2)
(ensures lo64 q % pow2 (8 * (4 + n)) == q.lo0 + 0x100000000 * (q.lo1 % pow2 (8 * n))) | [] | Vale.AES.GCM_helpers.lemma_mod_n_8_lower2_helper | {
"file_name": "vale/code/crypto/aes/Vale.AES.GCM_helpers.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | q: Vale.Def.Types_s.quad32 -> n: Prims.nat
-> FStar.Pervasives.Lemma (requires n <= 2)
(ensures
Vale.Arch.Types.lo64 q % Prims.pow2 (8 * (4 + n)) ==
Mkfour?.lo0 q + 0x100000000 * (Mkfour?.lo1 q % Prims.pow2 (8 * n))) | {
"end_col": 4,
"end_line": 305,
"start_col": 2,
"start_line": 299
} |
FStar.Pervasives.Lemma | val lemma_pad_to_32_bits (s s'': seq4 nat8) (n: nat)
: Lemma
(requires
n <= 4 /\
(forall (i: nat). {:pattern (index s i)\/(index s'' i)}
i < 4 ==> index s'' i == (if i < n then index s i else 0)))
(ensures four_to_nat 8 (seq_to_four_LE s'') == four_to_nat 8 (seq_to_four_LE s)... | [
{
"abbrev": false,
"full_module": "Vale.AES.Types_helpers",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Lib.Seqs",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Math.Lemmas",
"short_module": null
},
{
"abbrev": false,
"fu... | false | let lemma_pad_to_32_bits (s s'':seq4 nat8) (n:nat) : Lemma
(requires
n <= 4 /\
(forall (i:nat).{:pattern (index s i) \/ (index s'' i)} i < 4 ==>
index s'' i == (if i < n then index s i else 0))
)
(ensures four_to_nat 8 (seq_to_four_LE s'') == four_to_nat 8 (seq_to_four_LE s) % pow2 (8 * n))
=
if... | val lemma_pad_to_32_bits (s s'': seq4 nat8) (n: nat)
: Lemma
(requires
n <= 4 /\
(forall (i: nat). {:pattern (index s i)\/(index s'' i)}
i < 4 ==> index s'' i == (if i < n then index s i else 0)))
(ensures four_to_nat 8 (seq_to_four_LE s'') == four_to_nat 8 (seq_to_four_LE s)... | false | null | true | if n <= 2 then lemma_pad_to_32_bits_helper s s'' n else assert (n == 3 \/ n == 4);
assert_norm (four_to_nat 8 (seq_to_four_LE s) == four_to_nat_unfold 8 (seq_to_four_LE s));
assert_norm (four_to_nat 8 (seq_to_four_LE s'') == four_to_nat_unfold 8 (seq_to_four_LE s''));
assert_norm (pow2 (0 * 8) == 1);
assert_norm (pow2 ... | {
"checked_file": "Vale.AES.GCM_helpers.fst.checked",
"dependencies": [
"Vale.Lib.Seqs_s.fst.checked",
"Vale.Lib.Seqs.fsti.checked",
"Vale.Def.Words_s.fsti.checked",
"Vale.Def.Words.Two_s.fsti.checked",
"Vale.Def.Words.Seq_s.fsti.checked",
"Vale.Def.Words.Four_s.fsti.checked",
"Vale.Def.... | [
"lemma"
] | [
"Vale.Def.Words.Seq_s.seq4",
"Vale.Def.Types_s.nat8",
"Prims.nat",
"Prims.unit",
"Prims._assert",
"Prims.l_imp",
"Prims.eq2",
"Prims.int",
"Prims.op_Modulus",
"Prims.pow2",
"FStar.Mul.op_Star",
"Vale.Def.Words_s.natN",
"Prims.op_Multiply",
"Vale.Def.Words.Four_s.four_to_nat",
"Vale.Def.W... | [] | module Vale.AES.GCM_helpers
open FStar.Tactics
open Vale.Def.Words_s
open Vale.Def.Words.Seq_s
open Vale.Def.Types_s
open Vale.Arch.Types
open FStar.Mul
open FStar.Seq
open Vale.Def.Opaque_s
open Vale.Def.Words.Two_s
open Vale.Def.Words.Four_s
open Vale.AES.AES_s
open Vale.AES.GCTR_s
open FStar.Math.Lemmas
open Vale.L... | false | false | Vale.AES.GCM_helpers.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 1,
"initial_ifuel": 0,
"max_fuel": 1,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | null | val lemma_pad_to_32_bits (s s'': seq4 nat8) (n: nat)
: Lemma
(requires
n <= 4 /\
(forall (i: nat). {:pattern (index s i)\/(index s'' i)}
i < 4 ==> index s'' i == (if i < n then index s i else 0)))
(ensures four_to_nat 8 (seq_to_four_LE s'') == four_to_nat 8 (seq_to_four_LE s)... | [] | Vale.AES.GCM_helpers.lemma_pad_to_32_bits | {
"file_name": "vale/code/crypto/aes/Vale.AES.GCM_helpers.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} |
s: Vale.Def.Words.Seq_s.seq4 Vale.Def.Types_s.nat8 ->
s'': Vale.Def.Words.Seq_s.seq4 Vale.Def.Types_s.nat8 ->
n: Prims.nat
-> FStar.Pervasives.Lemma
(requires
n <= 4 /\
(forall (i: Prims.nat). {:pattern FStar.Seq.Base.index s i\/FStar.Seq.Base.index s'' i}
i < 4 ==>
... | {
"end_col": 4,
"end_line": 279,
"start_col": 2,
"start_line": 267
} |
FStar.Pervasives.Lemma | val lemma_pad_to_32_bits_helper (s s'': seq4 nat8) (n: nat)
: Lemma
(requires
n <= 2 /\
(forall (i: nat). {:pattern (index s i)\/(index s'' i)}
i < 4 ==> index s'' i == (if i < n then index s i else 0)))
(ensures four_to_nat 8 (seq_to_four_LE s'') == four_to_nat 8 (seq_to_fou... | [
{
"abbrev": false,
"full_module": "Vale.AES.Types_helpers",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Lib.Seqs",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Math.Lemmas",
"short_module": null
},
{
"abbrev": false,
"fu... | false | let lemma_pad_to_32_bits_helper (s s'':seq4 nat8) (n:nat) : Lemma
(requires
n <= 2 /\
(forall (i:nat).{:pattern (index s i) \/ (index s'' i)} i < 4 ==>
index s'' i == (if i < n then index s i else 0))
)
(ensures four_to_nat 8 (seq_to_four_LE s'') == four_to_nat 8 (seq_to_four_LE s) % pow2 (8 * n))
... | val lemma_pad_to_32_bits_helper (s s'': seq4 nat8) (n: nat)
: Lemma
(requires
n <= 2 /\
(forall (i: nat). {:pattern (index s i)\/(index s'' i)}
i < 4 ==> index s'' i == (if i < n then index s i else 0)))
(ensures four_to_nat 8 (seq_to_four_LE s'') == four_to_nat 8 (seq_to_fou... | false | null | true | assert (n == 0 \/ n == 1 \/ n == 2);
assert_norm (four_to_nat 8 (seq_to_four_LE s) == four_to_nat_unfold 8 (seq_to_four_LE s));
assert_norm (four_to_nat 8 (seq_to_four_LE s'') == four_to_nat_unfold 8 (seq_to_four_LE s''));
assert_norm (pow2 (0 * 8) == 1);
assert_norm (pow2 (1 * 8) == 0x100);
assert_norm (pow2 (2 * 8) =... | {
"checked_file": "Vale.AES.GCM_helpers.fst.checked",
"dependencies": [
"Vale.Lib.Seqs_s.fst.checked",
"Vale.Lib.Seqs.fsti.checked",
"Vale.Def.Words_s.fsti.checked",
"Vale.Def.Words.Two_s.fsti.checked",
"Vale.Def.Words.Seq_s.fsti.checked",
"Vale.Def.Words.Four_s.fsti.checked",
"Vale.Def.... | [
"lemma"
] | [
"Vale.Def.Words.Seq_s.seq4",
"Vale.Def.Types_s.nat8",
"Prims.nat",
"Prims.unit",
"Prims._assert",
"Prims.l_imp",
"Prims.eq2",
"Prims.int",
"Prims.op_Modulus",
"Prims.pow2",
"FStar.Mul.op_Star",
"Vale.Def.Words_s.natN",
"Prims.op_Multiply",
"Vale.Def.Words.Four_s.four_to_nat",
"Vale.Def.W... | [] | module Vale.AES.GCM_helpers
open FStar.Tactics
open Vale.Def.Words_s
open Vale.Def.Words.Seq_s
open Vale.Def.Types_s
open Vale.Arch.Types
open FStar.Mul
open FStar.Seq
open Vale.Def.Opaque_s
open Vale.Def.Words.Two_s
open Vale.Def.Words.Four_s
open Vale.AES.AES_s
open Vale.AES.GCTR_s
open FStar.Math.Lemmas
open Vale.L... | false | false | Vale.AES.GCM_helpers.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 1,
"initial_ifuel": 0,
"max_fuel": 1,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | null | val lemma_pad_to_32_bits_helper (s s'': seq4 nat8) (n: nat)
: Lemma
(requires
n <= 2 /\
(forall (i: nat). {:pattern (index s i)\/(index s'' i)}
i < 4 ==> index s'' i == (if i < n then index s i else 0)))
(ensures four_to_nat 8 (seq_to_four_LE s'') == four_to_nat 8 (seq_to_fou... | [] | Vale.AES.GCM_helpers.lemma_pad_to_32_bits_helper | {
"file_name": "vale/code/crypto/aes/Vale.AES.GCM_helpers.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} |
s: Vale.Def.Words.Seq_s.seq4 Vale.Def.Types_s.nat8 ->
s'': Vale.Def.Words.Seq_s.seq4 Vale.Def.Types_s.nat8 ->
n: Prims.nat
-> FStar.Pervasives.Lemma
(requires
n <= 2 /\
(forall (i: Prims.nat). {:pattern FStar.Seq.Base.index s i\/FStar.Seq.Base.index s'' i}
i < 4 ==>
... | {
"end_col": 4,
"end_line": 257,
"start_col": 2,
"start_line": 245
} |
FStar.Pervasives.Lemma | val lemma_slices_le_bytes_to_quad32 (s: seq16 nat8)
: Lemma
(ensures
(let q = le_bytes_to_quad32 s in
q.lo0 == four_to_nat 8 (seq_to_four_LE (slice s 0 4)) /\
q.lo1 == four_to_nat 8 (seq_to_four_LE (slice s 4 8)) /\
q.hi2 == four_to_nat 8 (seq_to_four_LE (slice s 8 12)) /\
... | [
{
"abbrev": false,
"full_module": "Vale.AES.Types_helpers",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Lib.Seqs",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Math.Lemmas",
"short_module": null
},
{
"abbrev": false,
"fu... | false | let lemma_slices_le_bytes_to_quad32 (s:seq16 nat8) : Lemma
(ensures (
let q = le_bytes_to_quad32 s in
q.lo0 == four_to_nat 8 (seq_to_four_LE (slice s 0 4)) /\
q.lo1 == four_to_nat 8 (seq_to_four_LE (slice s 4 8)) /\
q.hi2 == four_to_nat 8 (seq_to_four_LE (slice s 8 12)) /\
q.hi3 == four_to_nat 8 (... | val lemma_slices_le_bytes_to_quad32 (s: seq16 nat8)
: Lemma
(ensures
(let q = le_bytes_to_quad32 s in
q.lo0 == four_to_nat 8 (seq_to_four_LE (slice s 0 4)) /\
q.lo1 == four_to_nat 8 (seq_to_four_LE (slice s 4 8)) /\
q.hi2 == four_to_nat 8 (seq_to_four_LE (slice s 8 12)) /\
... | false | null | true | reveal_opaque (`%seq_to_seq_four_LE) (seq_to_seq_four_LE #nat8);
le_bytes_to_quad32_reveal ();
() | {
"checked_file": "Vale.AES.GCM_helpers.fst.checked",
"dependencies": [
"Vale.Lib.Seqs_s.fst.checked",
"Vale.Lib.Seqs.fsti.checked",
"Vale.Def.Words_s.fsti.checked",
"Vale.Def.Words.Two_s.fsti.checked",
"Vale.Def.Words.Seq_s.fsti.checked",
"Vale.Def.Words.Four_s.fsti.checked",
"Vale.Def.... | [
"lemma"
] | [
"Vale.Def.Words.Seq_s.seq16",
"Vale.Def.Types_s.nat8",
"Prims.unit",
"Vale.Def.Types_s.le_bytes_to_quad32_reveal",
"FStar.Pervasives.reveal_opaque",
"FStar.Seq.Base.seq",
"Prims.eq2",
"Prims.int",
"Prims.op_Modulus",
"FStar.Seq.Base.length",
"Vale.Def.Words_s.four",
"Prims.op_Division",
"Val... | [] | module Vale.AES.GCM_helpers
open FStar.Tactics
open Vale.Def.Words_s
open Vale.Def.Words.Seq_s
open Vale.Def.Types_s
open Vale.Arch.Types
open FStar.Mul
open FStar.Seq
open Vale.Def.Opaque_s
open Vale.Def.Words.Two_s
open Vale.Def.Words.Four_s
open Vale.AES.AES_s
open Vale.AES.GCTR_s
open FStar.Math.Lemmas
open Vale.L... | false | false | Vale.AES.GCM_helpers.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 1,
"initial_ifuel": 0,
"max_fuel": 1,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | null | val lemma_slices_le_bytes_to_quad32 (s: seq16 nat8)
: Lemma
(ensures
(let q = le_bytes_to_quad32 s in
q.lo0 == four_to_nat 8 (seq_to_four_LE (slice s 0 4)) /\
q.lo1 == four_to_nat 8 (seq_to_four_LE (slice s 4 8)) /\
q.hi2 == four_to_nat 8 (seq_to_four_LE (slice s 8 12)) /\
... | [] | Vale.AES.GCM_helpers.lemma_slices_le_bytes_to_quad32 | {
"file_name": "vale/code/crypto/aes/Vale.AES.GCM_helpers.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | s: Vale.Def.Words.Seq_s.seq16 Vale.Def.Types_s.nat8
-> FStar.Pervasives.Lemma
(ensures
(let q = Vale.Def.Types_s.le_bytes_to_quad32 s in
Mkfour?.lo0 q ==
Vale.Def.Words.Four_s.four_to_nat 8
(Vale.Def.Words.Seq_s.seq_to_four_LE (FStar.Seq.Base.slice s 0 4)) /\
Mkfour?.lo1 q ... | {
"end_col": 4,
"end_line": 414,
"start_col": 2,
"start_line": 412
} |
FStar.Pervasives.Lemma | val pad_to_128_bits_upper (q:quad32) (num_bytes:int) : Lemma
(requires 8 <= num_bytes /\ num_bytes < 16)
(ensures (let new_hi = (hi64 q) % pow2 ((num_bytes - 8) * 8) in
new_hi < pow2_64 /\
(let q' = insert_nat64 q new_hi 1 in
q' == le_bytes_to_quad32 (pad_to_128_bits (slice (le_... | [
{
"abbrev": false,
"full_module": "Vale.AES.Types_helpers",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Lib.Seqs",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Math.Lemmas",
"short_module": null
},
{
"abbrev": false,
"fu... | false | let pad_to_128_bits_upper (q:quad32) (num_bytes:int) =
let n = num_bytes in
let new_hi = (hi64 q) % pow2 ((n - 8) * 8) in
pow2_lt_compat 64 ((n - 8) * 8);
let s = le_quad32_to_bytes q in
let s' = slice s 0 n in
let q' = insert_nat64_def q new_hi 1 in
insert_nat64_reveal ();
let s'' = pad_to_128_bits s' ... | val pad_to_128_bits_upper (q:quad32) (num_bytes:int) : Lemma
(requires 8 <= num_bytes /\ num_bytes < 16)
(ensures (let new_hi = (hi64 q) % pow2 ((num_bytes - 8) * 8) in
new_hi < pow2_64 /\
(let q' = insert_nat64 q new_hi 1 in
q' == le_bytes_to_quad32 (pad_to_128_bits (slice (le_... | false | null | true | let n = num_bytes in
let new_hi = (hi64 q) % pow2 ((n - 8) * 8) in
pow2_lt_compat 64 ((n - 8) * 8);
let s = le_quad32_to_bytes q in
let s' = slice s 0 n in
let q' = insert_nat64_def q new_hi 1 in
insert_nat64_reveal ();
let s'' = pad_to_128_bits s' in
let q'' = le_bytes_to_quad32 s'' in
let s0_4 = slice s 0 4 in
let s4... | {
"checked_file": "Vale.AES.GCM_helpers.fst.checked",
"dependencies": [
"Vale.Lib.Seqs_s.fst.checked",
"Vale.Lib.Seqs.fsti.checked",
"Vale.Def.Words_s.fsti.checked",
"Vale.Def.Words.Two_s.fsti.checked",
"Vale.Def.Words.Seq_s.fsti.checked",
"Vale.Def.Words.Four_s.fsti.checked",
"Vale.Def.... | [
"lemma"
] | [
"Vale.Def.Types_s.quad32",
"Prims.int",
"Vale.Def.Types_s.nat32",
"Prims.unit",
"Prims._assert",
"Prims.l_imp",
"Prims.b2t",
"Prims.op_LessThan",
"FStar.Seq.Base.equal",
"Vale.Def.Types_s.nat8",
"FStar.Seq.Base.seq",
"Vale.Def.Words_s.nat8",
"FStar.Seq.Base.create",
"Vale.AES.GCM_helpers.l... | [] | module Vale.AES.GCM_helpers
open FStar.Tactics
open Vale.Def.Words_s
open Vale.Def.Words.Seq_s
open Vale.Def.Types_s
open Vale.Arch.Types
open FStar.Mul
open FStar.Seq
open Vale.Def.Opaque_s
open Vale.Def.Words.Two_s
open Vale.Def.Words.Four_s
open Vale.AES.AES_s
open Vale.AES.GCTR_s
open FStar.Math.Lemmas
open Vale.L... | false | false | Vale.AES.GCM_helpers.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 1,
"initial_ifuel": 0,
"max_fuel": 1,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | null | val pad_to_128_bits_upper (q:quad32) (num_bytes:int) : Lemma
(requires 8 <= num_bytes /\ num_bytes < 16)
(ensures (let new_hi = (hi64 q) % pow2 ((num_bytes - 8) * 8) in
new_hi < pow2_64 /\
(let q' = insert_nat64 q new_hi 1 in
q' == le_bytes_to_quad32 (pad_to_128_bits (slice (le_... | [] | Vale.AES.GCM_helpers.pad_to_128_bits_upper | {
"file_name": "vale/code/crypto/aes/Vale.AES.GCM_helpers.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | q: Vale.Def.Types_s.quad32 -> num_bytes: Prims.int
-> FStar.Pervasives.Lemma (requires 8 <= num_bytes /\ num_bytes < 16)
(ensures
(let new_hi = Vale.Arch.Types.hi64 q % Prims.pow2 ((num_bytes - 8) * 8) in
new_hi < Vale.Def.Words_s.pow2_64 /\
(let q' = Vale.Def.Types_s.insert_nat64 q ... | {
"end_col": 4,
"end_line": 517,
"start_col": 54,
"start_line": 472
} |
FStar.Pervasives.Lemma | val pad_to_128_bits_lower (q:quad32) (num_bytes:int) : Lemma
(requires 1 <= num_bytes /\ num_bytes < 8)
(ensures (let new_lo = (lo64 q) % pow2 (num_bytes * 8) in
new_lo < pow2_64 /\
(let q' = insert_nat64 (insert_nat64 q 0 1) new_lo 0 in
q' == le_bytes_to_quad32 (pad_to_128_bits... | [
{
"abbrev": false,
"full_module": "Vale.AES.Types_helpers",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Lib.Seqs",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Math.Lemmas",
"short_module": null
},
{
"abbrev": false,
"fu... | false | let pad_to_128_bits_lower (q:quad32) (num_bytes:int) =
let n = num_bytes in
let new_lo = (lo64 q) % pow2 (n * 8) in
pow2_lt_compat 64 (n * 8);
let s = le_quad32_to_bytes q in
let s' = slice s 0 n in
let q' = insert_nat64_def (insert_nat64_def q 0 1) new_lo 0 in
insert_nat64_reveal ();
let s'' = pad_to_1... | val pad_to_128_bits_lower (q:quad32) (num_bytes:int) : Lemma
(requires 1 <= num_bytes /\ num_bytes < 8)
(ensures (let new_lo = (lo64 q) % pow2 (num_bytes * 8) in
new_lo < pow2_64 /\
(let q' = insert_nat64 (insert_nat64 q 0 1) new_lo 0 in
q' == le_bytes_to_quad32 (pad_to_128_bits... | false | null | true | let n = num_bytes in
let new_lo = (lo64 q) % pow2 (n * 8) in
pow2_lt_compat 64 (n * 8);
let s = le_quad32_to_bytes q in
let s' = slice s 0 n in
let q' = insert_nat64_def (insert_nat64_def q 0 1) new_lo 0 in
insert_nat64_reveal ();
let s'' = pad_to_128_bits s' in
let q'' = le_bytes_to_quad32 s'' in
let s0_4 = slice s 0 ... | {
"checked_file": "Vale.AES.GCM_helpers.fst.checked",
"dependencies": [
"Vale.Lib.Seqs_s.fst.checked",
"Vale.Lib.Seqs.fsti.checked",
"Vale.Def.Words_s.fsti.checked",
"Vale.Def.Words.Two_s.fsti.checked",
"Vale.Def.Words.Seq_s.fsti.checked",
"Vale.Def.Words.Four_s.fsti.checked",
"Vale.Def.... | [
"lemma"
] | [
"Vale.Def.Types_s.quad32",
"Prims.int",
"Vale.Def.Types_s.nat32",
"Prims.unit",
"Prims._assert",
"FStar.Seq.Base.equal",
"Vale.Def.Types_s.nat8",
"Prims.l_imp",
"Prims.b2t",
"Prims.op_LessThan",
"FStar.Seq.Base.seq",
"Vale.Def.Words_s.nat8",
"FStar.Seq.Base.create",
"Vale.AES.GCM_helpers.l... | [] | module Vale.AES.GCM_helpers
open FStar.Tactics
open Vale.Def.Words_s
open Vale.Def.Words.Seq_s
open Vale.Def.Types_s
open Vale.Arch.Types
open FStar.Mul
open FStar.Seq
open Vale.Def.Opaque_s
open Vale.Def.Words.Two_s
open Vale.Def.Words.Four_s
open Vale.AES.AES_s
open Vale.AES.GCTR_s
open FStar.Math.Lemmas
open Vale.L... | false | false | Vale.AES.GCM_helpers.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 1,
"initial_ifuel": 0,
"max_fuel": 1,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | null | val pad_to_128_bits_lower (q:quad32) (num_bytes:int) : Lemma
(requires 1 <= num_bytes /\ num_bytes < 8)
(ensures (let new_lo = (lo64 q) % pow2 (num_bytes * 8) in
new_lo < pow2_64 /\
(let q' = insert_nat64 (insert_nat64 q 0 1) new_lo 0 in
q' == le_bytes_to_quad32 (pad_to_128_bits... | [] | Vale.AES.GCM_helpers.pad_to_128_bits_lower | {
"file_name": "vale/code/crypto/aes/Vale.AES.GCM_helpers.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | q: Vale.Def.Types_s.quad32 -> num_bytes: Prims.int
-> FStar.Pervasives.Lemma (requires 1 <= num_bytes /\ num_bytes < 8)
(ensures
(let new_lo = Vale.Arch.Types.lo64 q % Prims.pow2 (num_bytes * 8) in
new_lo < Vale.Def.Words_s.pow2_64 /\
(let q' = Vale.Def.Types_s.insert_nat64 (Vale.Def... | {
"end_col": 4,
"end_line": 470,
"start_col": 54,
"start_line": 423
} |
FStar.Pervasives.Lemma | val le_quad32_to_bytes_sel (q : quad32) (i:nat{i < 16}) :
Lemma(let Mkfour q0 q1 q2 q3 = q in
(i < 4 ==> index (le_quad32_to_bytes q) i = four_select (nat_to_four 8 q0) (i % 4)) /\
(4 <= i /\ i < 8 ==> index (le_quad32_to_bytes q) i = four_select (nat_to_four 8 q1) (i % 4)) /\
... | [
{
"abbrev": false,
"full_module": "Vale.AES.Types_helpers",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Lib.Seqs",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Math.Lemmas",
"short_module": null
},
{
"abbrev": false,
"fu... | false | let le_quad32_to_bytes_sel (q : quad32) (i:nat{i < 16}) =
reveal_opaque (`%le_quad32_to_bytes) le_quad32_to_bytes;
let Mkfour q0 q1 q2 q3 = q in
assert (index (Vale.Def.Words.Seq_s.four_to_seq_LE q) 0 == q0);
assert (index (Vale.Def.Words.Seq_s.four_to_seq_LE q) 1 == q1);
assert (index (Vale.Def.Words.Seq_s.f... | val le_quad32_to_bytes_sel (q : quad32) (i:nat{i < 16}) :
Lemma(let Mkfour q0 q1 q2 q3 = q in
(i < 4 ==> index (le_quad32_to_bytes q) i = four_select (nat_to_four 8 q0) (i % 4)) /\
(4 <= i /\ i < 8 ==> index (le_quad32_to_bytes q) i = four_select (nat_to_four 8 q1) (i % 4)) /\
... | false | null | true | reveal_opaque (`%le_quad32_to_bytes) le_quad32_to_bytes;
let Mkfour q0 q1 q2 q3 = q in
assert (index (Vale.Def.Words.Seq_s.four_to_seq_LE q) 0 == q0);
assert (index (Vale.Def.Words.Seq_s.four_to_seq_LE q) 1 == q1);
assert (index (Vale.Def.Words.Seq_s.four_to_seq_LE q) 2 == q2);
assert (index (Vale.Def.Words.Seq_s.four_... | {
"checked_file": "Vale.AES.GCM_helpers.fst.checked",
"dependencies": [
"Vale.Lib.Seqs_s.fst.checked",
"Vale.Lib.Seqs.fsti.checked",
"Vale.Def.Words_s.fsti.checked",
"Vale.Def.Words.Two_s.fsti.checked",
"Vale.Def.Words.Seq_s.fsti.checked",
"Vale.Def.Words.Four_s.fsti.checked",
"Vale.Def.... | [
"lemma"
] | [
"Vale.Def.Types_s.quad32",
"Prims.nat",
"Prims.b2t",
"Prims.op_LessThan",
"Vale.Def.Types_s.nat32",
"Vale.Def.Words_s.natN",
"Prims.pow2",
"Prims._assert",
"Prims.l_imp",
"Prims.l_and",
"Prims.op_LessThanOrEqual",
"Prims.eq2",
"FStar.Seq.Base.index",
"Vale.Def.Types_s.nat8",
"Vale.Def.Ty... | [] | module Vale.AES.GCM_helpers
open FStar.Tactics
open Vale.Def.Words_s
open Vale.Def.Words.Seq_s
open Vale.Def.Types_s
open Vale.Arch.Types
open FStar.Mul
open FStar.Seq
open Vale.Def.Opaque_s
open Vale.Def.Words.Two_s
open Vale.Def.Words.Four_s
open Vale.AES.AES_s
open Vale.AES.GCTR_s
open FStar.Math.Lemmas
open Vale.L... | false | false | Vale.AES.GCM_helpers.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 2,
"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... | null | val le_quad32_to_bytes_sel (q : quad32) (i:nat{i < 16}) :
Lemma(let Mkfour q0 q1 q2 q3 = q in
(i < 4 ==> index (le_quad32_to_bytes q) i = four_select (nat_to_four 8 q0) (i % 4)) /\
(4 <= i /\ i < 8 ==> index (le_quad32_to_bytes q) i = four_select (nat_to_four 8 q1) (i % 4)) /\
... | [] | Vale.AES.GCM_helpers.le_quad32_to_bytes_sel | {
"file_name": "vale/code/crypto/aes/Vale.AES.GCM_helpers.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | q: Vale.Def.Types_s.quad32 -> i: Prims.nat{i < 16}
-> FStar.Pervasives.Lemma
(ensures
(let _ = q in
(let { lo0 = q0 ; lo1 = q1 ; hi2 = q2 ; hi3 = q3 } = _ in
(i < 4 ==>
FStar.Seq.Base.index (Vale.Def.Types_s.le_quad32_to_bytes q) i =
Vale.Def.Words.Four_s.four_selec... | {
"end_col": 104,
"end_line": 233,
"start_col": 2,
"start_line": 152
} |
FStar.Pervasives.Lemma | val lemma_mod_n_8_lower1 (q: quad32) (n: nat)
: Lemma (requires n <= 4) (ensures lo64 q % pow2 (8 * n) == q.lo0 % pow2 (8 * n)) | [
{
"abbrev": false,
"full_module": "Vale.AES.Types_helpers",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Lib.Seqs",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Math.Lemmas",
"short_module": null
},
{
"abbrev": false,
"fu... | false | let lemma_mod_n_8_lower1 (q:quad32) (n:nat) : Lemma
(requires n <= 4)
(ensures lo64 q % pow2 (8 * n) == q.lo0 % pow2 (8 * n))
=
lo64_reveal ();
let Mkfour _ _ _ _ = q in // avoid ifuel
let f (n:nat{n <= 4}) = lo64_def q % pow2 (8 * n) == q.lo0 % pow2 (8 * n) in
assert_norm (f 0);
assert_norm (f 1);
as... | val lemma_mod_n_8_lower1 (q: quad32) (n: nat)
: Lemma (requires n <= 4) (ensures lo64 q % pow2 (8 * n) == q.lo0 % pow2 (8 * n))
let lemma_mod_n_8_lower1 (q: quad32) (n: nat)
: Lemma (requires n <= 4) (ensures lo64 q % pow2 (8 * n) == q.lo0 % pow2 (8 * n)) = | false | null | true | lo64_reveal ();
let Mkfour _ _ _ _ = q in
let f (n: nat{n <= 4}) = lo64_def q % pow2 (8 * n) == q.lo0 % pow2 (8 * n) in
assert_norm (f 0);
assert_norm (f 1);
assert_norm (f 2);
assert_norm (f 3);
assert_norm (f 4);
() | {
"checked_file": "Vale.AES.GCM_helpers.fst.checked",
"dependencies": [
"Vale.Lib.Seqs_s.fst.checked",
"Vale.Lib.Seqs.fsti.checked",
"Vale.Def.Words_s.fsti.checked",
"Vale.Def.Words.Two_s.fsti.checked",
"Vale.Def.Words.Seq_s.fsti.checked",
"Vale.Def.Words.Four_s.fsti.checked",
"Vale.Def.... | [
"lemma"
] | [
"Vale.Def.Types_s.quad32",
"Prims.nat",
"Vale.Def.Types_s.nat32",
"Prims.unit",
"FStar.Pervasives.assert_norm",
"Prims.b2t",
"Prims.op_LessThanOrEqual",
"Prims.logical",
"Prims.eq2",
"Prims.int",
"Prims.op_Modulus",
"Vale.Arch.Types.lo64_def",
"Prims.pow2",
"FStar.Mul.op_Star",
"Vale.Def... | [] | module Vale.AES.GCM_helpers
open FStar.Tactics
open Vale.Def.Words_s
open Vale.Def.Words.Seq_s
open Vale.Def.Types_s
open Vale.Arch.Types
open FStar.Mul
open FStar.Seq
open Vale.Def.Opaque_s
open Vale.Def.Words.Two_s
open Vale.Def.Words.Four_s
open Vale.AES.AES_s
open Vale.AES.GCTR_s
open FStar.Math.Lemmas
open Vale.L... | false | false | Vale.AES.GCM_helpers.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 1,
"initial_ifuel": 0,
"max_fuel": 1,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | null | val lemma_mod_n_8_lower1 (q: quad32) (n: nat)
: Lemma (requires n <= 4) (ensures lo64 q % pow2 (8 * n) == q.lo0 % pow2 (8 * n)) | [] | Vale.AES.GCM_helpers.lemma_mod_n_8_lower1 | {
"file_name": "vale/code/crypto/aes/Vale.AES.GCM_helpers.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | q: Vale.Def.Types_s.quad32 -> n: Prims.nat
-> FStar.Pervasives.Lemma (requires n <= 4)
(ensures Vale.Arch.Types.lo64 q % Prims.pow2 (8 * n) == Mkfour?.lo0 q % Prims.pow2 (8 * n)) | {
"end_col": 4,
"end_line": 293,
"start_col": 2,
"start_line": 285
} |
Prims.Tot | val mk_bn_mod_inv_prime_ctx:
#t:limb_t
-> len:Ghost.erased _
-> bn_mod_inv_precomp:BI.bn_mod_inv_prime_precomp_st t len ->
bn_mod_inv_prime_ctx_st t len | [
{
"abbrev": true,
"full_module": "Hacl.Spec.Bignum.ModInv",
"short_module": "SI"
},
{
"abbrev": true,
"full_module": "Hacl.Spec.Bignum.Convert",
"short_module": "SC"
},
{
"abbrev": true,
"full_module": "Hacl.Spec.Bignum.Montgomery",
"short_module": "SM"
},
{
"abbr... | false | let mk_bn_mod_inv_prime_ctx #t len bn_mod_inv_precomp k a res =
let open LowStar.BufferOps in
let k1 = !*k in
bn_mod_inv_precomp k1.MA.n k1.MA.mu k1.MA.r2 a res | val mk_bn_mod_inv_prime_ctx:
#t:limb_t
-> len:Ghost.erased _
-> bn_mod_inv_precomp:BI.bn_mod_inv_prime_precomp_st t len ->
bn_mod_inv_prime_ctx_st t len
let mk_bn_mod_inv_prime_ctx #t len bn_mod_inv_precomp k a res = | false | null | false | let open LowStar.BufferOps in
let k1 = !*k in
bn_mod_inv_precomp k1.MA.n k1.MA.mu k1.MA.r2 a res | {
"checked_file": "Hacl.Bignum.SafeAPI.fst.checked",
"dependencies": [
"prims.fst.checked",
"LowStar.Monotonic.Buffer.fsti.checked",
"LowStar.BufferOps.fst.checked",
"LowStar.Buffer.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.Buffer.fsti.checked",
"Ha... | [
"total"
] | [
"Hacl.Bignum.Definitions.limb_t",
"FStar.Ghost.erased",
"Hacl.Bignum.meta_len",
"Hacl.Bignum.ModInv.bn_mod_inv_prime_precomp_st",
"FStar.Ghost.reveal",
"Hacl.Bignum.MontArithmetic.pbn_mont_ctx",
"Hacl.Bignum.Definitions.lbignum",
"Hacl.Bignum.MontArithmetic.__proj__Mkbn_mont_ctx'__item__n",
"Hacl.Bi... | [] | module Hacl.Bignum.SafeAPI
open FStar.HyperStack
open FStar.HyperStack.ST
open FStar.Mul
open Lib.IntTypes
open Lib.Buffer
open Hacl.Bignum.Definitions
module ST = FStar.HyperStack.ST
module B = LowStar.Buffer
module HS = FStar.HyperStack
module LSeq = Lib.Sequence
module E = Hacl.Spec.Exponentiation.Lemmas
module... | false | false | Hacl.Bignum.SafeAPI.fst | {
"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... | null | val mk_bn_mod_inv_prime_ctx:
#t:limb_t
-> len:Ghost.erased _
-> bn_mod_inv_precomp:BI.bn_mod_inv_prime_precomp_st t len ->
bn_mod_inv_prime_ctx_st t len | [] | Hacl.Bignum.SafeAPI.mk_bn_mod_inv_prime_ctx | {
"file_name": "code/bignum/Hacl.Bignum.SafeAPI.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} |
len: FStar.Ghost.erased (Hacl.Bignum.meta_len t) ->
bn_mod_inv_precomp: Hacl.Bignum.ModInv.bn_mod_inv_prime_precomp_st t (FStar.Ghost.reveal len)
-> Hacl.Bignum.SafeAPI.bn_mod_inv_prime_ctx_st t (FStar.Ghost.reveal len) | {
"end_col": 52,
"end_line": 324,
"start_col": 2,
"start_line": 322
} |
Prims.Tot | [
{
"abbrev": true,
"full_module": "Hacl.Spec.Bignum.ModInv",
"short_module": "SI"
},
{
"abbrev": true,
"full_module": "Hacl.Spec.Bignum.Convert",
"short_module": "SC"
},
{
"abbrev": true,
"full_module": "Hacl.Spec.Bignum.Montgomery",
"short_module": "SM"
},
{
"abbr... | false | let bn_mod_inv_prime_ctx_st (t:limb_t) (len:BN.meta_len t) =
k:MA.pbn_mont_ctx t
-> a:lbignum t len
-> res:lbignum t len ->
Stack unit
(requires fun h ->
(B.deref h k).MA.len == len /\
MA.pbn_mont_ctx_inv h k /\
0 < bn_v h a /\ bn_v h a < MA.bn_v_n h k /\
FStar.Math.Euclid.is_prime (MA.bn_v_... | let bn_mod_inv_prime_ctx_st (t: limb_t) (len: BN.meta_len t) = | false | null | false | k: MA.pbn_mont_ctx t -> a: lbignum t len -> res: lbignum t len
-> Stack unit
(requires
fun h ->
(B.deref h k).MA.len == len /\ MA.pbn_mont_ctx_inv h k /\ 0 < bn_v h a /\
bn_v h a < MA.bn_v_n h k /\ FStar.Math.Euclid.is_prime (MA.bn_v_n h k) /\ live h a /\
live h res /\ disj... | {
"checked_file": "Hacl.Bignum.SafeAPI.fst.checked",
"dependencies": [
"prims.fst.checked",
"LowStar.Monotonic.Buffer.fsti.checked",
"LowStar.BufferOps.fst.checked",
"LowStar.Buffer.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.Buffer.fsti.checked",
"Ha... | [
"total"
] | [
"Hacl.Bignum.Definitions.limb_t",
"Hacl.Bignum.meta_len",
"Hacl.Bignum.MontArithmetic.pbn_mont_ctx",
"Hacl.Bignum.Definitions.lbignum",
"Prims.unit",
"FStar.Monotonic.HyperStack.mem",
"Prims.l_and",
"Prims.eq2",
"Hacl.Bignum.MontArithmetic.__proj__Mkbn_mont_ctx'__item__len",
"Hacl.Bignum.MontArith... | [] | module Hacl.Bignum.SafeAPI
open FStar.HyperStack
open FStar.HyperStack.ST
open FStar.Mul
open Lib.IntTypes
open Lib.Buffer
open Hacl.Bignum.Definitions
module ST = FStar.HyperStack.ST
module B = LowStar.Buffer
module HS = FStar.HyperStack
module LSeq = Lib.Sequence
module E = Hacl.Spec.Exponentiation.Lemmas
module... | false | false | Hacl.Bignum.SafeAPI.fst | {
"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... | null | val bn_mod_inv_prime_ctx_st : t: Hacl.Bignum.Definitions.limb_t -> len: Hacl.Bignum.meta_len t -> Type0 | [] | Hacl.Bignum.SafeAPI.bn_mod_inv_prime_ctx_st | {
"file_name": "code/bignum/Hacl.Bignum.SafeAPI.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | t: Hacl.Bignum.Definitions.limb_t -> len: Hacl.Bignum.meta_len t -> Type0 | {
"end_col": 49,
"end_line": 311,
"start_col": 4,
"start_line": 297
} | |
Prims.Tot | [
{
"abbrev": true,
"full_module": "Hacl.Spec.Bignum.ModInv",
"short_module": "SI"
},
{
"abbrev": true,
"full_module": "Hacl.Spec.Bignum.Convert",
"short_module": "SC"
},
{
"abbrev": true,
"full_module": "Hacl.Spec.Bignum.Montgomery",
"short_module": "SM"
},
{
"abbr... | false | let bn_mod_inv_prime_safe_st (t:limb_t) (len:BN.meta_len t) =
n:lbignum t len
-> a:lbignum t len
-> res:lbignum t len ->
Stack bool
(requires fun h -> FStar.Math.Euclid.is_prime (bn_v h n) /\
live h n /\ live h a /\ live h res /\
disjoint res n /\ disjoint res a /\ disjoint n a)
(ensures fun h0 r... | let bn_mod_inv_prime_safe_st (t: limb_t) (len: BN.meta_len t) = | false | null | false | n: lbignum t len -> a: lbignum t len -> res: lbignum t len
-> Stack bool
(requires
fun h ->
FStar.Math.Euclid.is_prime (bn_v h n) /\ live h n /\ live h a /\ live h res /\
disjoint res n /\ disjoint res a /\ disjoint n a)
(ensures
fun h0 r h1 ->
modifies (loc r... | {
"checked_file": "Hacl.Bignum.SafeAPI.fst.checked",
"dependencies": [
"prims.fst.checked",
"LowStar.Monotonic.Buffer.fsti.checked",
"LowStar.BufferOps.fst.checked",
"LowStar.Buffer.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.Buffer.fsti.checked",
"Ha... | [
"total"
] | [
"Hacl.Bignum.Definitions.limb_t",
"Hacl.Bignum.meta_len",
"Hacl.Bignum.Definitions.lbignum",
"Prims.bool",
"FStar.Monotonic.HyperStack.mem",
"Prims.l_and",
"FStar.Math.Euclid.is_prime",
"Hacl.Bignum.Definitions.bn_v",
"Lib.Buffer.live",
"Lib.Buffer.MUT",
"Hacl.Bignum.Definitions.limb",
"Lib.Bu... | [] | module Hacl.Bignum.SafeAPI
open FStar.HyperStack
open FStar.HyperStack.ST
open FStar.Mul
open Lib.IntTypes
open Lib.Buffer
open Hacl.Bignum.Definitions
module ST = FStar.HyperStack.ST
module B = LowStar.Buffer
module HS = FStar.HyperStack
module LSeq = Lib.Sequence
module E = Hacl.Spec.Exponentiation.Lemmas
module... | false | false | Hacl.Bignum.SafeAPI.fst | {
"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... | null | val bn_mod_inv_prime_safe_st : t: Hacl.Bignum.Definitions.limb_t -> len: Hacl.Bignum.meta_len t -> Type0 | [] | Hacl.Bignum.SafeAPI.bn_mod_inv_prime_safe_st | {
"file_name": "code/bignum/Hacl.Bignum.SafeAPI.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | t: Hacl.Bignum.Definitions.limb_t -> len: Hacl.Bignum.meta_len t -> Type0 | {
"end_col": 51,
"end_line": 207,
"start_col": 4,
"start_line": 198
} | |
Prims.Tot | [
{
"abbrev": true,
"full_module": "Hacl.Spec.Bignum.ModInv",
"short_module": "SI"
},
{
"abbrev": true,
"full_module": "Hacl.Spec.Bignum.Convert",
"short_module": "SC"
},
{
"abbrev": true,
"full_module": "Hacl.Spec.Bignum.Montgomery",
"short_module": "SM"
},
{
"abbr... | false | let new_bn_from_bytes_be_st (t:limb_t) =
r:HS.rid
-> len:size_t
-> b:lbuffer uint8 len ->
ST (B.buffer (limb t))
(requires fun h ->
live h b /\
ST.is_eternal_region r)
(ensures fun h0 res h1 ->
B.(modifies loc_none h0 h1) /\
not (B.g_is_null res) ==> (
0 < v len /\ numbytes t * v (b... | let new_bn_from_bytes_be_st (t: limb_t) = | false | null | false | r: HS.rid -> len: size_t -> b: lbuffer uint8 len
-> ST (B.buffer (limb t))
(requires fun h -> live h b /\ ST.is_eternal_region r)
(ensures
fun h0 res h1 ->
B.(modifies loc_none h0 h1) /\ not (B.g_is_null res) ==>
(0 < v len /\ numbytes t * v (blocks len (size (numbytes t))) <= ... | {
"checked_file": "Hacl.Bignum.SafeAPI.fst.checked",
"dependencies": [
"prims.fst.checked",
"LowStar.Monotonic.Buffer.fsti.checked",
"LowStar.BufferOps.fst.checked",
"LowStar.Buffer.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.Buffer.fsti.checked",
"Ha... | [
"total"
] | [
"Hacl.Bignum.Definitions.limb_t",
"FStar.Monotonic.HyperHeap.rid",
"Lib.IntTypes.size_t",
"Lib.Buffer.lbuffer",
"Lib.IntTypes.uint8",
"LowStar.Buffer.buffer",
"Hacl.Bignum.Definitions.limb",
"FStar.Monotonic.HyperStack.mem",
"Prims.l_and",
"Lib.Buffer.live",
"Lib.Buffer.MUT",
"FStar.HyperStack... | [] | module Hacl.Bignum.SafeAPI
open FStar.HyperStack
open FStar.HyperStack.ST
open FStar.Mul
open Lib.IntTypes
open Lib.Buffer
open Hacl.Bignum.Definitions
module ST = FStar.HyperStack.ST
module B = LowStar.Buffer
module HS = FStar.HyperStack
module LSeq = Lib.Sequence
module E = Hacl.Spec.Exponentiation.Lemmas
module... | false | true | Hacl.Bignum.SafeAPI.fst | {
"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... | null | val new_bn_from_bytes_be_st : t: Hacl.Bignum.Definitions.limb_t -> Type0 | [] | Hacl.Bignum.SafeAPI.new_bn_from_bytes_be_st | {
"file_name": "code/bignum/Hacl.Bignum.SafeAPI.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | t: Hacl.Bignum.Definitions.limb_t -> Type0 | {
"end_col": 114,
"end_line": 53,
"start_col": 4,
"start_line": 39
} | |
Prims.Tot | [
{
"abbrev": true,
"full_module": "Hacl.Spec.Bignum.ModInv",
"short_module": "SI"
},
{
"abbrev": true,
"full_module": "Hacl.Spec.Bignum.Convert",
"short_module": "SC"
},
{
"abbrev": true,
"full_module": "Hacl.Spec.Bignum.Montgomery",
"short_module": "SM"
},
{
"abbr... | false | let new_bn_from_bytes_le_st (t:limb_t) =
r:HS.rid
-> len:size_t
-> b:lbuffer uint8 len ->
ST (B.buffer (limb t))
(requires fun h ->
live h b /\
ST.is_eternal_region r)
(ensures fun h0 res h1 ->
B.(modifies loc_none h0 h1) /\
not (B.g_is_null res) ==> (
0 < v len /\ numbytes t * v (b... | let new_bn_from_bytes_le_st (t: limb_t) = | false | null | false | r: HS.rid -> len: size_t -> b: lbuffer uint8 len
-> ST (B.buffer (limb t))
(requires fun h -> live h b /\ ST.is_eternal_region r)
(ensures
fun h0 res h1 ->
B.(modifies loc_none h0 h1) /\ not (B.g_is_null res) ==>
(0 < v len /\ numbytes t * v (blocks len (size (numbytes t))) <= ... | {
"checked_file": "Hacl.Bignum.SafeAPI.fst.checked",
"dependencies": [
"prims.fst.checked",
"LowStar.Monotonic.Buffer.fsti.checked",
"LowStar.BufferOps.fst.checked",
"LowStar.Buffer.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.Buffer.fsti.checked",
"Ha... | [
"total"
] | [
"Hacl.Bignum.Definitions.limb_t",
"FStar.Monotonic.HyperHeap.rid",
"Lib.IntTypes.size_t",
"Lib.Buffer.lbuffer",
"Lib.IntTypes.uint8",
"LowStar.Buffer.buffer",
"Hacl.Bignum.Definitions.limb",
"FStar.Monotonic.HyperStack.mem",
"Prims.l_and",
"Lib.Buffer.live",
"Lib.Buffer.MUT",
"FStar.HyperStack... | [] | module Hacl.Bignum.SafeAPI
open FStar.HyperStack
open FStar.HyperStack.ST
open FStar.Mul
open Lib.IntTypes
open Lib.Buffer
open Hacl.Bignum.Definitions
module ST = FStar.HyperStack.ST
module B = LowStar.Buffer
module HS = FStar.HyperStack
module LSeq = Lib.Sequence
module E = Hacl.Spec.Exponentiation.Lemmas
module... | false | true | Hacl.Bignum.SafeAPI.fst | {
"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... | null | val new_bn_from_bytes_le_st : t: Hacl.Bignum.Definitions.limb_t -> Type0 | [] | Hacl.Bignum.SafeAPI.new_bn_from_bytes_le_st | {
"file_name": "code/bignum/Hacl.Bignum.SafeAPI.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | t: Hacl.Bignum.Definitions.limb_t -> Type0 | {
"end_col": 114,
"end_line": 97,
"start_col": 4,
"start_line": 83
} | |
Prims.Tot | [
{
"abbrev": true,
"full_module": "Hacl.Spec.Bignum.ModInv",
"short_module": "SI"
},
{
"abbrev": true,
"full_module": "Hacl.Spec.Bignum.Convert",
"short_module": "SC"
},
{
"abbrev": true,
"full_module": "Hacl.Spec.Bignum.Montgomery",
"short_module": "SM"
},
{
"abbr... | false | let bn_mod_slow_safe_st (t:limb_t) (len:BN.meta_len t) =
n:lbignum t len
-> a:lbignum t (len +! len)
-> res:lbignum t len ->
Stack bool
(requires fun h ->
live h n /\ live h a /\ live h res /\
disjoint res n /\ disjoint res a)
(ensures fun h0 r h1 -> modifies (loc res) h0 h1 /\
r == BB.unsafe... | let bn_mod_slow_safe_st (t: limb_t) (len: BN.meta_len t) = | false | null | false | n: lbignum t len -> a: lbignum t (len +! len) -> res: lbignum t len
-> Stack bool
(requires fun h -> live h n /\ live h a /\ live h res /\ disjoint res n /\ disjoint res a)
(ensures
fun h0 r h1 ->
modifies (loc res) h0 h1 /\
r == BB.unsafe_bool_of_limb (SM.bn_check_modulus (as_... | {
"checked_file": "Hacl.Bignum.SafeAPI.fst.checked",
"dependencies": [
"prims.fst.checked",
"LowStar.Monotonic.Buffer.fsti.checked",
"LowStar.BufferOps.fst.checked",
"LowStar.Buffer.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.Buffer.fsti.checked",
"Ha... | [
"total"
] | [
"Hacl.Bignum.Definitions.limb_t",
"Hacl.Bignum.meta_len",
"Hacl.Bignum.Definitions.lbignum",
"Lib.IntTypes.op_Plus_Bang",
"Lib.IntTypes.U32",
"Lib.IntTypes.PUB",
"Prims.bool",
"FStar.Monotonic.HyperStack.mem",
"Prims.l_and",
"Lib.Buffer.live",
"Lib.Buffer.MUT",
"Hacl.Bignum.Definitions.limb",
... | [] | module Hacl.Bignum.SafeAPI
open FStar.HyperStack
open FStar.HyperStack.ST
open FStar.Mul
open Lib.IntTypes
open Lib.Buffer
open Hacl.Bignum.Definitions
module ST = FStar.HyperStack.ST
module B = LowStar.Buffer
module HS = FStar.HyperStack
module LSeq = Lib.Sequence
module E = Hacl.Spec.Exponentiation.Lemmas
module... | false | false | Hacl.Bignum.SafeAPI.fst | {
"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... | null | val bn_mod_slow_safe_st : t: Hacl.Bignum.Definitions.limb_t -> len: Hacl.Bignum.meta_len t -> Type0 | [] | Hacl.Bignum.SafeAPI.bn_mod_slow_safe_st | {
"file_name": "code/bignum/Hacl.Bignum.SafeAPI.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | t: Hacl.Bignum.Definitions.limb_t -> len: Hacl.Bignum.meta_len t -> Type0 | {
"end_col": 49,
"end_line": 136,
"start_col": 4,
"start_line": 127
} | |
Prims.Tot | [
{
"abbrev": true,
"full_module": "Hacl.Spec.Bignum.ModInv",
"short_module": "SI"
},
{
"abbrev": true,
"full_module": "Hacl.Spec.Bignum.Convert",
"short_module": "SC"
},
{
"abbrev": true,
"full_module": "Hacl.Spec.Bignum.Montgomery",
"short_module": "SM"
},
{
"abbr... | false | let bn_mod_slow_ctx_st (t:limb_t) (len:BN.meta_len t) =
k:MA.pbn_mont_ctx t
-> a:lbignum t (len +! len)
-> res:lbignum t len ->
Stack unit
(requires fun h ->
(B.deref h k).MA.len == len /\
MA.pbn_mont_ctx_inv h k /\
live h a /\ live h res /\ disjoint res a /\
B.(loc_disjoint (MA.footprint h... | let bn_mod_slow_ctx_st (t: limb_t) (len: BN.meta_len t) = | false | null | false | k: MA.pbn_mont_ctx t -> a: lbignum t (len +! len) -> res: lbignum t len
-> Stack unit
(requires
fun h ->
(B.deref h k).MA.len == len /\ MA.pbn_mont_ctx_inv h k /\ live h a /\ live h res /\
disjoint res a /\
B.(loc_disjoint (MA.footprint h k) (loc_buffer (res <: buffer (limb... | {
"checked_file": "Hacl.Bignum.SafeAPI.fst.checked",
"dependencies": [
"prims.fst.checked",
"LowStar.Monotonic.Buffer.fsti.checked",
"LowStar.BufferOps.fst.checked",
"LowStar.Buffer.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.Buffer.fsti.checked",
"Ha... | [
"total"
] | [
"Hacl.Bignum.Definitions.limb_t",
"Hacl.Bignum.meta_len",
"Hacl.Bignum.MontArithmetic.pbn_mont_ctx",
"Hacl.Bignum.Definitions.lbignum",
"Lib.IntTypes.op_Plus_Bang",
"Lib.IntTypes.U32",
"Lib.IntTypes.PUB",
"Prims.unit",
"FStar.Monotonic.HyperStack.mem",
"Prims.l_and",
"Prims.eq2",
"Hacl.Bignum.... | [] | module Hacl.Bignum.SafeAPI
open FStar.HyperStack
open FStar.HyperStack.ST
open FStar.Mul
open Lib.IntTypes
open Lib.Buffer
open Hacl.Bignum.Definitions
module ST = FStar.HyperStack.ST
module B = LowStar.Buffer
module HS = FStar.HyperStack
module LSeq = Lib.Sequence
module E = Hacl.Spec.Exponentiation.Lemmas
module... | false | false | Hacl.Bignum.SafeAPI.fst | {
"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... | null | val bn_mod_slow_ctx_st : t: Hacl.Bignum.Definitions.limb_t -> len: Hacl.Bignum.meta_len t -> Type0 | [] | Hacl.Bignum.SafeAPI.bn_mod_slow_ctx_st | {
"file_name": "code/bignum/Hacl.Bignum.SafeAPI.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | t: Hacl.Bignum.Definitions.limb_t -> len: Hacl.Bignum.meta_len t -> Type0 | {
"end_col": 46,
"end_line": 243,
"start_col": 4,
"start_line": 232
} | |
Prims.Tot | [
{
"abbrev": true,
"full_module": "Hacl.Spec.Bignum.ModInv",
"short_module": "SI"
},
{
"abbrev": true,
"full_module": "Hacl.Spec.Bignum.Convert",
"short_module": "SC"
},
{
"abbrev": true,
"full_module": "Hacl.Spec.Bignum.Montgomery",
"short_module": "SM"
},
{
"abbr... | false | let bn_mod_exp_safe_st (t:limb_t) (len:BN.meta_len t) =
n:lbignum t len
-> a:lbignum t len
-> bBits:size_t{bits t * v (blocks0 bBits (size (bits t))) <= max_size_t}
-> b:lbignum t (blocks0 bBits (size (bits t)))
-> res:lbignum t len ->
Stack bool
(requires fun h ->
live h n /\ live h a /\ live h b /... | let bn_mod_exp_safe_st (t: limb_t) (len: BN.meta_len t) = | false | null | false |
n: lbignum t len ->
a: lbignum t len ->
bBits: size_t{bits t * v (blocks0 bBits (size (bits t))) <= max_size_t} ->
b: lbignum t (blocks0 bBits (size (bits t))) ->
res: lbignum t len
-> Stack bool
(requires
fun h ->
live h n /\ live h a /\ live h b /\ live h res /\ disjoint... | {
"checked_file": "Hacl.Bignum.SafeAPI.fst.checked",
"dependencies": [
"prims.fst.checked",
"LowStar.Monotonic.Buffer.fsti.checked",
"LowStar.BufferOps.fst.checked",
"LowStar.Buffer.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.Buffer.fsti.checked",
"Ha... | [
"total"
] | [
"Hacl.Bignum.Definitions.limb_t",
"Hacl.Bignum.meta_len",
"Hacl.Bignum.Definitions.lbignum",
"Lib.IntTypes.size_t",
"Prims.b2t",
"Prims.op_LessThanOrEqual",
"FStar.Mul.op_Star",
"Lib.IntTypes.bits",
"Lib.IntTypes.v",
"Lib.IntTypes.U32",
"Lib.IntTypes.PUB",
"Hacl.Bignum.Definitions.blocks0",
... | [] | module Hacl.Bignum.SafeAPI
open FStar.HyperStack
open FStar.HyperStack.ST
open FStar.Mul
open Lib.IntTypes
open Lib.Buffer
open Hacl.Bignum.Definitions
module ST = FStar.HyperStack.ST
module B = LowStar.Buffer
module HS = FStar.HyperStack
module LSeq = Lib.Sequence
module E = Hacl.Spec.Exponentiation.Lemmas
module... | false | false | Hacl.Bignum.SafeAPI.fst | {
"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... | null | val bn_mod_exp_safe_st : t: Hacl.Bignum.Definitions.limb_t -> len: Hacl.Bignum.meta_len t -> Type0 | [] | Hacl.Bignum.SafeAPI.bn_mod_exp_safe_st | {
"file_name": "code/bignum/Hacl.Bignum.SafeAPI.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | t: Hacl.Bignum.Definitions.limb_t -> len: Hacl.Bignum.meta_len t -> Type0 | {
"end_col": 99,
"end_line": 172,
"start_col": 4,
"start_line": 161
} | |
Prims.Tot | val bn_mod_ctx:
#t:limb_t
-> len:Ghost.erased _
-> bn_mod_slow_precomp:BR.bn_mod_slow_precomp_st t len ->
bn_mod_slow_ctx_st t len | [
{
"abbrev": true,
"full_module": "Hacl.Spec.Bignum.ModInv",
"short_module": "SI"
},
{
"abbrev": true,
"full_module": "Hacl.Spec.Bignum.Convert",
"short_module": "SC"
},
{
"abbrev": true,
"full_module": "Hacl.Spec.Bignum.Montgomery",
"short_module": "SM"
},
{
"abbr... | false | let bn_mod_ctx #t len bn_mod_slow_precomp k a res =
let open LowStar.BufferOps in
let k1 = !*k in
bn_mod_slow_precomp k1.MA.n k1.MA.mu k1.MA.r2 a res | val bn_mod_ctx:
#t:limb_t
-> len:Ghost.erased _
-> bn_mod_slow_precomp:BR.bn_mod_slow_precomp_st t len ->
bn_mod_slow_ctx_st t len
let bn_mod_ctx #t len bn_mod_slow_precomp k a res = | false | null | false | let open LowStar.BufferOps in
let k1 = !*k in
bn_mod_slow_precomp k1.MA.n k1.MA.mu k1.MA.r2 a res | {
"checked_file": "Hacl.Bignum.SafeAPI.fst.checked",
"dependencies": [
"prims.fst.checked",
"LowStar.Monotonic.Buffer.fsti.checked",
"LowStar.BufferOps.fst.checked",
"LowStar.Buffer.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.Buffer.fsti.checked",
"Ha... | [
"total"
] | [
"Hacl.Bignum.Definitions.limb_t",
"FStar.Ghost.erased",
"Hacl.Bignum.meta_len",
"Hacl.Bignum.ModReduction.bn_mod_slow_precomp_st",
"FStar.Ghost.reveal",
"Hacl.Bignum.MontArithmetic.pbn_mont_ctx",
"Hacl.Bignum.Definitions.lbignum",
"Lib.IntTypes.op_Plus_Bang",
"Lib.IntTypes.U32",
"Lib.IntTypes.PUB"... | [] | module Hacl.Bignum.SafeAPI
open FStar.HyperStack
open FStar.HyperStack.ST
open FStar.Mul
open Lib.IntTypes
open Lib.Buffer
open Hacl.Bignum.Definitions
module ST = FStar.HyperStack.ST
module B = LowStar.Buffer
module HS = FStar.HyperStack
module LSeq = Lib.Sequence
module E = Hacl.Spec.Exponentiation.Lemmas
module... | false | false | Hacl.Bignum.SafeAPI.fst | {
"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... | null | val bn_mod_ctx:
#t:limb_t
-> len:Ghost.erased _
-> bn_mod_slow_precomp:BR.bn_mod_slow_precomp_st t len ->
bn_mod_slow_ctx_st t len | [] | Hacl.Bignum.SafeAPI.bn_mod_ctx | {
"file_name": "code/bignum/Hacl.Bignum.SafeAPI.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} |
len: FStar.Ghost.erased (Hacl.Bignum.meta_len t) ->
bn_mod_slow_precomp: Hacl.Bignum.ModReduction.bn_mod_slow_precomp_st t (FStar.Ghost.reveal len)
-> Hacl.Bignum.SafeAPI.bn_mod_slow_ctx_st t (FStar.Ghost.reveal len) | {
"end_col": 53,
"end_line": 256,
"start_col": 2,
"start_line": 254
} |
Prims.Tot | [
{
"abbrev": true,
"full_module": "Hacl.Spec.Bignum.ModInv",
"short_module": "SI"
},
{
"abbrev": true,
"full_module": "Hacl.Spec.Bignum.Convert",
"short_module": "SC"
},
{
"abbrev": true,
"full_module": "Hacl.Spec.Bignum.Montgomery",
"short_module": "SM"
},
{
"abbr... | false | let bn_mod_exp_ctx_st (t:limb_t) (len:BN.meta_len t) =
k:MA.pbn_mont_ctx t
-> a:lbignum t len
-> bBits:size_t
-> b:lbignum t (blocks0 bBits (size (bits t)))
-> res:lbignum t len ->
Stack unit
(requires fun h ->
(B.deref h k).MA.len == len /\
MA.pbn_mont_ctx_inv h k /\
bn_v h a < MA.bn_v_n h ... | let bn_mod_exp_ctx_st (t: limb_t) (len: BN.meta_len t) = | false | null | false |
k: MA.pbn_mont_ctx t ->
a: lbignum t len ->
bBits: size_t ->
b: lbignum t (blocks0 bBits (size (bits t))) ->
res: lbignum t len
-> Stack unit
(requires
fun h ->
(B.deref h k).MA.len == len /\ MA.pbn_mont_ctx_inv h k /\ bn_v h a < MA.bn_v_n h k /\
bn_v h b < pow2 ... | {
"checked_file": "Hacl.Bignum.SafeAPI.fst.checked",
"dependencies": [
"prims.fst.checked",
"LowStar.Monotonic.Buffer.fsti.checked",
"LowStar.BufferOps.fst.checked",
"LowStar.Buffer.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.Buffer.fsti.checked",
"Ha... | [
"total"
] | [
"Hacl.Bignum.Definitions.limb_t",
"Hacl.Bignum.meta_len",
"Hacl.Bignum.MontArithmetic.pbn_mont_ctx",
"Hacl.Bignum.Definitions.lbignum",
"Lib.IntTypes.size_t",
"Hacl.Bignum.Definitions.blocks0",
"Lib.IntTypes.size",
"Lib.IntTypes.bits",
"Prims.unit",
"FStar.Monotonic.HyperStack.mem",
"Prims.l_and... | [] | module Hacl.Bignum.SafeAPI
open FStar.HyperStack
open FStar.HyperStack.ST
open FStar.Mul
open Lib.IntTypes
open Lib.Buffer
open Hacl.Bignum.Definitions
module ST = FStar.HyperStack.ST
module B = LowStar.Buffer
module HS = FStar.HyperStack
module LSeq = Lib.Sequence
module E = Hacl.Spec.Exponentiation.Lemmas
module... | false | false | Hacl.Bignum.SafeAPI.fst | {
"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... | null | val bn_mod_exp_ctx_st : t: Hacl.Bignum.Definitions.limb_t -> len: Hacl.Bignum.meta_len t -> Type0 | [] | Hacl.Bignum.SafeAPI.bn_mod_exp_ctx_st | {
"file_name": "code/bignum/Hacl.Bignum.SafeAPI.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | t: Hacl.Bignum.Definitions.limb_t -> len: Hacl.Bignum.meta_len t -> Type0 | {
"end_col": 60,
"end_line": 279,
"start_col": 4,
"start_line": 261
} | |
Prims.Tot | val new_bn_from_bytes_le: #t:limb_t -> new_bn_from_bytes_le_st t | [
{
"abbrev": true,
"full_module": "Hacl.Spec.Bignum.ModInv",
"short_module": "SI"
},
{
"abbrev": true,
"full_module": "Hacl.Spec.Bignum.Convert",
"short_module": "SC"
},
{
"abbrev": true,
"full_module": "Hacl.Spec.Bignum.Montgomery",
"short_module": "SM"
},
{
"abbr... | false | let new_bn_from_bytes_le #t r len b =
[@inline_let]
let numb = size (numbytes t) in
if len = 0ul || not (blocks len numb <=. 0xfffffffful `FStar.UInt32.div` numb) then
B.null
else
let h0 = ST.get () in
let res = LowStar.Monotonic.Buffer.mmalloc_partial r (uint #t 0) (blocks len numb) in
if B.is_... | val new_bn_from_bytes_le: #t:limb_t -> new_bn_from_bytes_le_st t
let new_bn_from_bytes_le #t r len b = | false | null | false | [@@ inline_let ]let numb = size (numbytes t) in
if len = 0ul || not (blocks len numb <=. 0xfffffffful `FStar.UInt32.div` numb)
then B.null
else
let h0 = ST.get () in
let res = LowStar.Monotonic.Buffer.mmalloc_partial r (uint #t 0) (blocks len numb) in
if B.is_null res
then res
else
let h1 = ST.get () in
... | {
"checked_file": "Hacl.Bignum.SafeAPI.fst.checked",
"dependencies": [
"prims.fst.checked",
"LowStar.Monotonic.Buffer.fsti.checked",
"LowStar.BufferOps.fst.checked",
"LowStar.Buffer.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.Buffer.fsti.checked",
"Ha... | [
"total"
] | [
"Hacl.Bignum.Definitions.limb_t",
"FStar.Monotonic.HyperHeap.rid",
"Lib.IntTypes.size_t",
"Lib.Buffer.lbuffer",
"Lib.IntTypes.uint8",
"Prims.op_BarBar",
"Prims.op_Equality",
"FStar.UInt32.t",
"FStar.UInt32.__uint_to_t",
"Prims.op_Negation",
"Lib.IntTypes.op_Less_Equals_Dot",
"Lib.IntTypes.U32"... | [] | module Hacl.Bignum.SafeAPI
open FStar.HyperStack
open FStar.HyperStack.ST
open FStar.Mul
open Lib.IntTypes
open Lib.Buffer
open Hacl.Bignum.Definitions
module ST = FStar.HyperStack.ST
module B = LowStar.Buffer
module HS = FStar.HyperStack
module LSeq = Lib.Sequence
module E = Hacl.Spec.Exponentiation.Lemmas
module... | false | false | Hacl.Bignum.SafeAPI.fst | {
"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... | null | val new_bn_from_bytes_le: #t:limb_t -> new_bn_from_bytes_le_st t | [] | Hacl.Bignum.SafeAPI.new_bn_from_bytes_le | {
"file_name": "code/bignum/Hacl.Bignum.SafeAPI.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | Hacl.Bignum.SafeAPI.new_bn_from_bytes_le_st t | {
"end_col": 9,
"end_line": 122,
"start_col": 2,
"start_line": 103
} |
Prims.Tot | val new_bn_from_bytes_be: #t:limb_t -> new_bn_from_bytes_be_st t | [
{
"abbrev": true,
"full_module": "Hacl.Spec.Bignum.ModInv",
"short_module": "SI"
},
{
"abbrev": true,
"full_module": "Hacl.Spec.Bignum.Convert",
"short_module": "SC"
},
{
"abbrev": true,
"full_module": "Hacl.Spec.Bignum.Montgomery",
"short_module": "SM"
},
{
"abbr... | false | let new_bn_from_bytes_be #t r len b =
[@inline_let]
let numb = size (numbytes t) in
if len = 0ul || not (blocks len numb <=. 0xfffffffful `FStar.UInt32.div` numb) then
B.null
else
let h0 = ST.get () in
let res = LowStar.Monotonic.Buffer.mmalloc_partial r (uint #t 0) (blocks len numb) in
if B.is_... | val new_bn_from_bytes_be: #t:limb_t -> new_bn_from_bytes_be_st t
let new_bn_from_bytes_be #t r len b = | false | null | false | [@@ inline_let ]let numb = size (numbytes t) in
if len = 0ul || not (blocks len numb <=. 0xfffffffful `FStar.UInt32.div` numb)
then B.null
else
let h0 = ST.get () in
let res = LowStar.Monotonic.Buffer.mmalloc_partial r (uint #t 0) (blocks len numb) in
if B.is_null res
then res
else
let h1 = ST.get () in
... | {
"checked_file": "Hacl.Bignum.SafeAPI.fst.checked",
"dependencies": [
"prims.fst.checked",
"LowStar.Monotonic.Buffer.fsti.checked",
"LowStar.BufferOps.fst.checked",
"LowStar.Buffer.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.Buffer.fsti.checked",
"Ha... | [
"total"
] | [
"Hacl.Bignum.Definitions.limb_t",
"FStar.Monotonic.HyperHeap.rid",
"Lib.IntTypes.size_t",
"Lib.Buffer.lbuffer",
"Lib.IntTypes.uint8",
"Prims.op_BarBar",
"Prims.op_Equality",
"FStar.UInt32.t",
"FStar.UInt32.__uint_to_t",
"Prims.op_Negation",
"Lib.IntTypes.op_Less_Equals_Dot",
"Lib.IntTypes.U32"... | [] | module Hacl.Bignum.SafeAPI
open FStar.HyperStack
open FStar.HyperStack.ST
open FStar.Mul
open Lib.IntTypes
open Lib.Buffer
open Hacl.Bignum.Definitions
module ST = FStar.HyperStack.ST
module B = LowStar.Buffer
module HS = FStar.HyperStack
module LSeq = Lib.Sequence
module E = Hacl.Spec.Exponentiation.Lemmas
module... | false | false | Hacl.Bignum.SafeAPI.fst | {
"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... | null | val new_bn_from_bytes_be: #t:limb_t -> new_bn_from_bytes_be_st t | [] | Hacl.Bignum.SafeAPI.new_bn_from_bytes_be | {
"file_name": "code/bignum/Hacl.Bignum.SafeAPI.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | Hacl.Bignum.SafeAPI.new_bn_from_bytes_be_st t | {
"end_col": 9,
"end_line": 78,
"start_col": 2,
"start_line": 59
} |
Prims.Tot | val mk_bn_mod_inv_prime_safe:
#t:limb_t
-> len:BN.meta_len t
-> bn_mod_exp:BE.bn_mod_exp_st t len ->
bn_mod_inv_prime_safe_st t len | [
{
"abbrev": true,
"full_module": "Hacl.Spec.Bignum.ModInv",
"short_module": "SI"
},
{
"abbrev": true,
"full_module": "Hacl.Spec.Bignum.Convert",
"short_module": "SC"
},
{
"abbrev": true,
"full_module": "Hacl.Spec.Bignum.Montgomery",
"short_module": "SM"
},
{
"abbr... | false | let mk_bn_mod_inv_prime_safe #t len bn_mod_exp n a res =
let h0 = ST.get () in
let is_valid_m = BI.bn_check_mod_inv_prime #t len n a in
let nBits = size (bits t) *! BB.unsafe_size_from_limb (BL.bn_get_top_index len n) in
if BB.unsafe_bool_of_limb is_valid_m then begin
SL.bn_low_bound_bits_lemma #t #(v len)... | val mk_bn_mod_inv_prime_safe:
#t:limb_t
-> len:BN.meta_len t
-> bn_mod_exp:BE.bn_mod_exp_st t len ->
bn_mod_inv_prime_safe_st t len
let mk_bn_mod_inv_prime_safe #t len bn_mod_exp n a res = | false | null | false | let h0 = ST.get () in
let is_valid_m = BI.bn_check_mod_inv_prime #t len n a in
let nBits = size (bits t) *! BB.unsafe_size_from_limb (BL.bn_get_top_index len n) in
if BB.unsafe_bool_of_limb is_valid_m
then
(SL.bn_low_bound_bits_lemma #t #(v len) (as_seq h0 n);
BI.mk_bn_mod_inv_prime len bn_mod_exp nBits n a res)
... | {
"checked_file": "Hacl.Bignum.SafeAPI.fst.checked",
"dependencies": [
"prims.fst.checked",
"LowStar.Monotonic.Buffer.fsti.checked",
"LowStar.BufferOps.fst.checked",
"LowStar.Buffer.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.Buffer.fsti.checked",
"Ha... | [
"total"
] | [
"Hacl.Bignum.Definitions.limb_t",
"Hacl.Bignum.meta_len",
"Hacl.Bignum.Exponentiation.bn_mod_exp_st",
"Hacl.Bignum.Definitions.lbignum",
"Hacl.Spec.Bignum.Base.unsafe_bool_of_limb",
"Prims.bool",
"Prims.unit",
"Hacl.Bignum.ModInv.mk_bn_mod_inv_prime",
"Hacl.Spec.Bignum.Lib.bn_low_bound_bits_lemma",
... | [] | module Hacl.Bignum.SafeAPI
open FStar.HyperStack
open FStar.HyperStack.ST
open FStar.Mul
open Lib.IntTypes
open Lib.Buffer
open Hacl.Bignum.Definitions
module ST = FStar.HyperStack.ST
module B = LowStar.Buffer
module HS = FStar.HyperStack
module LSeq = Lib.Sequence
module E = Hacl.Spec.Exponentiation.Lemmas
module... | false | false | Hacl.Bignum.SafeAPI.fst | {
"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... | null | val mk_bn_mod_inv_prime_safe:
#t:limb_t
-> len:BN.meta_len t
-> bn_mod_exp:BE.bn_mod_exp_st t len ->
bn_mod_inv_prime_safe_st t len | [] | Hacl.Bignum.SafeAPI.mk_bn_mod_inv_prime_safe | {
"file_name": "code/bignum/Hacl.Bignum.SafeAPI.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | len: Hacl.Bignum.meta_len t -> bn_mod_exp: Hacl.Bignum.Exponentiation.bn_mod_exp_st t len
-> Hacl.Bignum.SafeAPI.bn_mod_inv_prime_safe_st t len | {
"end_col": 35,
"end_line": 227,
"start_col": 56,
"start_line": 217
} |
Prims.Tot | val mk_bn_mod_exp_ctx:
#t:limb_t
-> len:Ghost.erased _
-> bn_mod_exp_precomp:BE.bn_mod_exp_precomp_st t len ->
bn_mod_exp_ctx_st t len | [
{
"abbrev": true,
"full_module": "Hacl.Spec.Bignum.ModInv",
"short_module": "SI"
},
{
"abbrev": true,
"full_module": "Hacl.Spec.Bignum.Convert",
"short_module": "SC"
},
{
"abbrev": true,
"full_module": "Hacl.Spec.Bignum.Montgomery",
"short_module": "SM"
},
{
"abbr... | false | let mk_bn_mod_exp_ctx #t len bn_mod_exp_precomp k a bBits b res =
let open LowStar.BufferOps in
let k1 = !*k in
bn_mod_exp_precomp k1.MA.n k1.MA.mu k1.MA.r2 a bBits b res | val mk_bn_mod_exp_ctx:
#t:limb_t
-> len:Ghost.erased _
-> bn_mod_exp_precomp:BE.bn_mod_exp_precomp_st t len ->
bn_mod_exp_ctx_st t len
let mk_bn_mod_exp_ctx #t len bn_mod_exp_precomp k a bBits b res = | false | null | false | let open LowStar.BufferOps in
let k1 = !*k in
bn_mod_exp_precomp k1.MA.n k1.MA.mu k1.MA.r2 a bBits b res | {
"checked_file": "Hacl.Bignum.SafeAPI.fst.checked",
"dependencies": [
"prims.fst.checked",
"LowStar.Monotonic.Buffer.fsti.checked",
"LowStar.BufferOps.fst.checked",
"LowStar.Buffer.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.Buffer.fsti.checked",
"Ha... | [
"total"
] | [
"Hacl.Bignum.Definitions.limb_t",
"FStar.Ghost.erased",
"Hacl.Bignum.meta_len",
"Hacl.Bignum.Exponentiation.bn_mod_exp_precomp_st",
"FStar.Ghost.reveal",
"Hacl.Bignum.MontArithmetic.pbn_mont_ctx",
"Hacl.Bignum.Definitions.lbignum",
"Lib.IntTypes.size_t",
"Hacl.Bignum.Definitions.blocks0",
"Lib.Int... | [] | module Hacl.Bignum.SafeAPI
open FStar.HyperStack
open FStar.HyperStack.ST
open FStar.Mul
open Lib.IntTypes
open Lib.Buffer
open Hacl.Bignum.Definitions
module ST = FStar.HyperStack.ST
module B = LowStar.Buffer
module HS = FStar.HyperStack
module LSeq = Lib.Sequence
module E = Hacl.Spec.Exponentiation.Lemmas
module... | false | false | Hacl.Bignum.SafeAPI.fst | {
"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... | null | val mk_bn_mod_exp_ctx:
#t:limb_t
-> len:Ghost.erased _
-> bn_mod_exp_precomp:BE.bn_mod_exp_precomp_st t len ->
bn_mod_exp_ctx_st t len | [] | Hacl.Bignum.SafeAPI.mk_bn_mod_exp_ctx | {
"file_name": "code/bignum/Hacl.Bignum.SafeAPI.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} |
len: FStar.Ghost.erased (Hacl.Bignum.meta_len t) ->
bn_mod_exp_precomp: Hacl.Bignum.Exponentiation.bn_mod_exp_precomp_st t (FStar.Ghost.reveal len)
-> Hacl.Bignum.SafeAPI.bn_mod_exp_ctx_st t (FStar.Ghost.reveal len) | {
"end_col": 60,
"end_line": 292,
"start_col": 2,
"start_line": 290
} |
Prims.Tot | val mk_bn_mod_slow_safe:
#t:limb_t
-> len:BN.meta_len t
-> bn_mod_slow:BR.bn_mod_slow_st t len ->
bn_mod_slow_safe_st t len | [
{
"abbrev": true,
"full_module": "Hacl.Spec.Bignum.ModInv",
"short_module": "SI"
},
{
"abbrev": true,
"full_module": "Hacl.Spec.Bignum.Convert",
"short_module": "SC"
},
{
"abbrev": true,
"full_module": "Hacl.Spec.Bignum.Montgomery",
"short_module": "SM"
},
{
"abbr... | false | let mk_bn_mod_slow_safe #t len bn_mod_slow n a res =
let h0 = ST.get () in
let is_valid_m = BM.bn_check_modulus n in
let nBits = size (bits t) *! BB.unsafe_size_from_limb (BL.bn_get_top_index len n) in
if BB.unsafe_bool_of_limb is_valid_m then begin
SL.bn_low_bound_bits_lemma #t #(v len) (as_seq h0 n);
... | val mk_bn_mod_slow_safe:
#t:limb_t
-> len:BN.meta_len t
-> bn_mod_slow:BR.bn_mod_slow_st t len ->
bn_mod_slow_safe_st t len
let mk_bn_mod_slow_safe #t len bn_mod_slow n a res = | false | null | false | let h0 = ST.get () in
let is_valid_m = BM.bn_check_modulus n in
let nBits = size (bits t) *! BB.unsafe_size_from_limb (BL.bn_get_top_index len n) in
if BB.unsafe_bool_of_limb is_valid_m
then
(SL.bn_low_bound_bits_lemma #t #(v len) (as_seq h0 n);
bn_mod_slow nBits n a res)
else memset res (uint #t 0) len;
BB.unsaf... | {
"checked_file": "Hacl.Bignum.SafeAPI.fst.checked",
"dependencies": [
"prims.fst.checked",
"LowStar.Monotonic.Buffer.fsti.checked",
"LowStar.BufferOps.fst.checked",
"LowStar.Buffer.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.Buffer.fsti.checked",
"Ha... | [
"total"
] | [
"Hacl.Bignum.Definitions.limb_t",
"Hacl.Bignum.meta_len",
"Hacl.Bignum.ModReduction.bn_mod_slow_st",
"Hacl.Bignum.Definitions.lbignum",
"Lib.IntTypes.op_Plus_Bang",
"Lib.IntTypes.U32",
"Lib.IntTypes.PUB",
"Hacl.Spec.Bignum.Base.unsafe_bool_of_limb",
"Prims.bool",
"Prims.unit",
"Hacl.Spec.Bignum.... | [] | module Hacl.Bignum.SafeAPI
open FStar.HyperStack
open FStar.HyperStack.ST
open FStar.Mul
open Lib.IntTypes
open Lib.Buffer
open Hacl.Bignum.Definitions
module ST = FStar.HyperStack.ST
module B = LowStar.Buffer
module HS = FStar.HyperStack
module LSeq = Lib.Sequence
module E = Hacl.Spec.Exponentiation.Lemmas
module... | false | false | Hacl.Bignum.SafeAPI.fst | {
"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... | null | val mk_bn_mod_slow_safe:
#t:limb_t
-> len:BN.meta_len t
-> bn_mod_slow:BR.bn_mod_slow_st t len ->
bn_mod_slow_safe_st t len | [] | Hacl.Bignum.SafeAPI.mk_bn_mod_slow_safe | {
"file_name": "code/bignum/Hacl.Bignum.SafeAPI.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | len: Hacl.Bignum.meta_len t -> bn_mod_slow: Hacl.Bignum.ModReduction.bn_mod_slow_st t len
-> Hacl.Bignum.SafeAPI.bn_mod_slow_safe_st t len | {
"end_col": 35,
"end_line": 156,
"start_col": 52,
"start_line": 146
} |
Prims.Tot | val mk_bn_mod_exp_safe:
#t:limb_t
-> len:BN.meta_len t
-> exp_check:BE.bn_check_mod_exp_st t len
-> bn_mod_exp:BE.bn_mod_exp_st t len ->
bn_mod_exp_safe_st t len | [
{
"abbrev": true,
"full_module": "Hacl.Spec.Bignum.ModInv",
"short_module": "SI"
},
{
"abbrev": true,
"full_module": "Hacl.Spec.Bignum.Convert",
"short_module": "SC"
},
{
"abbrev": true,
"full_module": "Hacl.Spec.Bignum.Montgomery",
"short_module": "SM"
},
{
"abbr... | false | let mk_bn_mod_exp_safe #t len exp_check bn_mod_exp n a bBits b res =
let h0 = ST.get () in
let is_valid_m = exp_check n a bBits b in
let nBits = size (bits t) *! BB.unsafe_size_from_limb (BL.bn_get_top_index len n) in
if BB.unsafe_bool_of_limb is_valid_m then begin
SL.bn_low_bound_bits_lemma #t #(v len) (a... | val mk_bn_mod_exp_safe:
#t:limb_t
-> len:BN.meta_len t
-> exp_check:BE.bn_check_mod_exp_st t len
-> bn_mod_exp:BE.bn_mod_exp_st t len ->
bn_mod_exp_safe_st t len
let mk_bn_mod_exp_safe #t len exp_check bn_mod_exp n a bBits b res = | false | null | false | let h0 = ST.get () in
let is_valid_m = exp_check n a bBits b in
let nBits = size (bits t) *! BB.unsafe_size_from_limb (BL.bn_get_top_index len n) in
if BB.unsafe_bool_of_limb is_valid_m
then
(SL.bn_low_bound_bits_lemma #t #(v len) (as_seq h0 n);
bn_mod_exp nBits n a bBits b res)
else memset res (uint #t 0) len;
B... | {
"checked_file": "Hacl.Bignum.SafeAPI.fst.checked",
"dependencies": [
"prims.fst.checked",
"LowStar.Monotonic.Buffer.fsti.checked",
"LowStar.BufferOps.fst.checked",
"LowStar.Buffer.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.Buffer.fsti.checked",
"Ha... | [
"total"
] | [
"Hacl.Bignum.Definitions.limb_t",
"Hacl.Bignum.meta_len",
"Hacl.Bignum.Exponentiation.bn_check_mod_exp_st",
"Hacl.Bignum.Exponentiation.bn_mod_exp_st",
"Hacl.Bignum.Definitions.lbignum",
"Lib.IntTypes.size_t",
"Prims.b2t",
"Prims.op_LessThanOrEqual",
"FStar.Mul.op_Star",
"Lib.IntTypes.bits",
"Li... | [] | module Hacl.Bignum.SafeAPI
open FStar.HyperStack
open FStar.HyperStack.ST
open FStar.Mul
open Lib.IntTypes
open Lib.Buffer
open Hacl.Bignum.Definitions
module ST = FStar.HyperStack.ST
module B = LowStar.Buffer
module HS = FStar.HyperStack
module LSeq = Lib.Sequence
module E = Hacl.Spec.Exponentiation.Lemmas
module... | false | false | Hacl.Bignum.SafeAPI.fst | {
"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... | null | val mk_bn_mod_exp_safe:
#t:limb_t
-> len:BN.meta_len t
-> exp_check:BE.bn_check_mod_exp_st t len
-> bn_mod_exp:BE.bn_mod_exp_st t len ->
bn_mod_exp_safe_st t len | [] | Hacl.Bignum.SafeAPI.mk_bn_mod_exp_safe | {
"file_name": "code/bignum/Hacl.Bignum.SafeAPI.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} |
len: Hacl.Bignum.meta_len t ->
exp_check: Hacl.Bignum.Exponentiation.bn_check_mod_exp_st t len ->
bn_mod_exp: Hacl.Bignum.Exponentiation.bn_mod_exp_st t len
-> Hacl.Bignum.SafeAPI.bn_mod_exp_safe_st t len | {
"end_col": 35,
"end_line": 193,
"start_col": 68,
"start_line": 183
} |
Prims.Tot | val sealBase: sealBase_st cs True | [
{
"abbrev": true,
"full_module": "Hacl.HPKE.Interface.AEAD",
"short_module": "IAEAD"
},
{
"abbrev": true,
"full_module": "Hacl.HPKE.Interface.Hash",
"short_module": "IHash"
},
{
"abbrev": true,
"full_module": "Hacl.HPKE.Interface.HKDF",
"short_module": "IHK"
},
{
... | false | let sealBase = hpke_sealBase_higher #cs True IAEAD.aead_encrypt_cp128 setupBaseS | val sealBase: sealBase_st cs True
let sealBase = | false | null | false | hpke_sealBase_higher #cs True IAEAD.aead_encrypt_cp128 setupBaseS | {
"checked_file": "Hacl.HPKE.Curve51_CP128_SHA256.fst.checked",
"dependencies": [
"prims.fst.checked",
"Hacl.Meta.HPKE.fst.checked",
"Hacl.Meta.HPKE.fst.checked",
"Hacl.HPKE.Interface.HKDF.fst.checked",
"Hacl.HPKE.Interface.Hash.fst.checked",
"Hacl.HPKE.Interface.DH.fst.checked",
"Hacl.H... | [
"total"
] | [
"Hacl.Meta.HPKE.hpke_sealBase_higher",
"Hacl.HPKE.Curve51_CP128_SHA256.cs",
"Prims.l_True",
"Hacl.HPKE.Interface.AEAD.aead_encrypt_cp128",
"Hacl.HPKE.Curve51_CP128_SHA256.setupBaseS"
] | [] | module Hacl.HPKE.Curve51_CP128_SHA256
open Hacl.Meta.HPKE
module IDH = Hacl.HPKE.Interface.DH
module IHK = Hacl.HPKE.Interface.HKDF
module IHash = Hacl.HPKE.Interface.Hash
module IAEAD = Hacl.HPKE.Interface.AEAD
friend Hacl.Meta.HPKE
#set-options "--fuel 0 --ifuel 0"
let setupBaseS = hpke_setupBaseS_higher #cs Tru... | false | true | Hacl.HPKE.Curve51_CP128_SHA256.fst | {
"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... | null | val sealBase: sealBase_st cs True | [] | Hacl.HPKE.Curve51_CP128_SHA256.sealBase | {
"file_name": "code/hpke/Hacl.HPKE.Curve51_CP128_SHA256.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | Hacl.Impl.HPKE.sealBase_st Hacl.HPKE.Curve51_CP128_SHA256.cs Prims.l_True | {
"end_col": 80,
"end_line": 18,
"start_col": 15,
"start_line": 18
} |
Prims.Tot | val openBase: openBase_st cs True | [
{
"abbrev": true,
"full_module": "Hacl.HPKE.Interface.AEAD",
"short_module": "IAEAD"
},
{
"abbrev": true,
"full_module": "Hacl.HPKE.Interface.Hash",
"short_module": "IHash"
},
{
"abbrev": true,
"full_module": "Hacl.HPKE.Interface.HKDF",
"short_module": "IHK"
},
{
... | false | let openBase = hpke_openBase_higher #cs True IAEAD.aead_decrypt_cp128 setupBaseR | val openBase: openBase_st cs True
let openBase = | false | null | false | hpke_openBase_higher #cs True IAEAD.aead_decrypt_cp128 setupBaseR | {
"checked_file": "Hacl.HPKE.Curve51_CP128_SHA256.fst.checked",
"dependencies": [
"prims.fst.checked",
"Hacl.Meta.HPKE.fst.checked",
"Hacl.Meta.HPKE.fst.checked",
"Hacl.HPKE.Interface.HKDF.fst.checked",
"Hacl.HPKE.Interface.Hash.fst.checked",
"Hacl.HPKE.Interface.DH.fst.checked",
"Hacl.H... | [
"total"
] | [
"Hacl.Meta.HPKE.hpke_openBase_higher",
"Hacl.HPKE.Curve51_CP128_SHA256.cs",
"Prims.l_True",
"Hacl.HPKE.Interface.AEAD.aead_decrypt_cp128",
"Hacl.HPKE.Curve51_CP128_SHA256.setupBaseR"
] | [] | module Hacl.HPKE.Curve51_CP128_SHA256
open Hacl.Meta.HPKE
module IDH = Hacl.HPKE.Interface.DH
module IHK = Hacl.HPKE.Interface.HKDF
module IHash = Hacl.HPKE.Interface.Hash
module IAEAD = Hacl.HPKE.Interface.AEAD
friend Hacl.Meta.HPKE
#set-options "--fuel 0 --ifuel 0"
let setupBaseS = hpke_setupBaseS_higher #cs Tru... | false | true | Hacl.HPKE.Curve51_CP128_SHA256.fst | {
"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... | null | val openBase: openBase_st cs True | [] | Hacl.HPKE.Curve51_CP128_SHA256.openBase | {
"file_name": "code/hpke/Hacl.HPKE.Curve51_CP128_SHA256.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | Hacl.Impl.HPKE.openBase_st Hacl.HPKE.Curve51_CP128_SHA256.cs Prims.l_True | {
"end_col": 80,
"end_line": 20,
"start_col": 15,
"start_line": 20
} |
Prims.Tot | val setupBaseS: setupBaseS_st cs True | [
{
"abbrev": true,
"full_module": "Hacl.HPKE.Interface.AEAD",
"short_module": "IAEAD"
},
{
"abbrev": true,
"full_module": "Hacl.HPKE.Interface.Hash",
"short_module": "IHash"
},
{
"abbrev": true,
"full_module": "Hacl.HPKE.Interface.HKDF",
"short_module": "IHK"
},
{
... | false | let setupBaseS = hpke_setupBaseS_higher #cs True IHK.hkdf_expand256 IHK.hkdf_extract256 IDH.secret_to_public_c51 IDH.dh_c51 IHK.hkdf_expand256 IHK.hkdf_extract256 | val setupBaseS: setupBaseS_st cs True
let setupBaseS = | false | null | false | hpke_setupBaseS_higher #cs
True
IHK.hkdf_expand256
IHK.hkdf_extract256
IDH.secret_to_public_c51
IDH.dh_c51
IHK.hkdf_expand256
IHK.hkdf_extract256 | {
"checked_file": "Hacl.HPKE.Curve51_CP128_SHA256.fst.checked",
"dependencies": [
"prims.fst.checked",
"Hacl.Meta.HPKE.fst.checked",
"Hacl.Meta.HPKE.fst.checked",
"Hacl.HPKE.Interface.HKDF.fst.checked",
"Hacl.HPKE.Interface.Hash.fst.checked",
"Hacl.HPKE.Interface.DH.fst.checked",
"Hacl.H... | [
"total"
] | [
"Hacl.Meta.HPKE.hpke_setupBaseS_higher",
"Hacl.HPKE.Curve51_CP128_SHA256.cs",
"Prims.l_True",
"Hacl.HPKE.Interface.HKDF.hkdf_expand256",
"Hacl.HPKE.Interface.HKDF.hkdf_extract256",
"Hacl.HPKE.Interface.DH.secret_to_public_c51",
"Hacl.HPKE.Interface.DH.dh_c51"
] | [] | module Hacl.HPKE.Curve51_CP128_SHA256
open Hacl.Meta.HPKE
module IDH = Hacl.HPKE.Interface.DH
module IHK = Hacl.HPKE.Interface.HKDF
module IHash = Hacl.HPKE.Interface.Hash
module IAEAD = Hacl.HPKE.Interface.AEAD
friend Hacl.Meta.HPKE
#set-options "--fuel 0 --ifuel 0" | false | true | Hacl.HPKE.Curve51_CP128_SHA256.fst | {
"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... | null | val setupBaseS: setupBaseS_st cs True | [] | Hacl.HPKE.Curve51_CP128_SHA256.setupBaseS | {
"file_name": "code/hpke/Hacl.HPKE.Curve51_CP128_SHA256.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | Hacl.Impl.HPKE.setupBaseS_st Hacl.HPKE.Curve51_CP128_SHA256.cs Prims.l_True | {
"end_col": 162,
"end_line": 14,
"start_col": 17,
"start_line": 14
} |
Prims.Tot | val setupBaseR: setupBaseR_st cs True | [
{
"abbrev": true,
"full_module": "Hacl.HPKE.Interface.AEAD",
"short_module": "IAEAD"
},
{
"abbrev": true,
"full_module": "Hacl.HPKE.Interface.Hash",
"short_module": "IHash"
},
{
"abbrev": true,
"full_module": "Hacl.HPKE.Interface.HKDF",
"short_module": "IHK"
},
{
... | false | let setupBaseR = hpke_setupBaseR_higher #cs True IHK.hkdf_expand256 IHK.hkdf_extract256 IDH.dh_c51 IHK.hkdf_expand256 IHK.hkdf_extract256 IDH.secret_to_public_c51 | val setupBaseR: setupBaseR_st cs True
let setupBaseR = | false | null | false | hpke_setupBaseR_higher #cs
True
IHK.hkdf_expand256
IHK.hkdf_extract256
IDH.dh_c51
IHK.hkdf_expand256
IHK.hkdf_extract256
IDH.secret_to_public_c51 | {
"checked_file": "Hacl.HPKE.Curve51_CP128_SHA256.fst.checked",
"dependencies": [
"prims.fst.checked",
"Hacl.Meta.HPKE.fst.checked",
"Hacl.Meta.HPKE.fst.checked",
"Hacl.HPKE.Interface.HKDF.fst.checked",
"Hacl.HPKE.Interface.Hash.fst.checked",
"Hacl.HPKE.Interface.DH.fst.checked",
"Hacl.H... | [
"total"
] | [
"Hacl.Meta.HPKE.hpke_setupBaseR_higher",
"Hacl.HPKE.Curve51_CP128_SHA256.cs",
"Prims.l_True",
"Hacl.HPKE.Interface.HKDF.hkdf_expand256",
"Hacl.HPKE.Interface.HKDF.hkdf_extract256",
"Hacl.HPKE.Interface.DH.dh_c51",
"Hacl.HPKE.Interface.DH.secret_to_public_c51"
] | [] | module Hacl.HPKE.Curve51_CP128_SHA256
open Hacl.Meta.HPKE
module IDH = Hacl.HPKE.Interface.DH
module IHK = Hacl.HPKE.Interface.HKDF
module IHash = Hacl.HPKE.Interface.Hash
module IAEAD = Hacl.HPKE.Interface.AEAD
friend Hacl.Meta.HPKE
#set-options "--fuel 0 --ifuel 0"
let setupBaseS = hpke_setupBaseS_higher #cs Tru... | false | true | Hacl.HPKE.Curve51_CP128_SHA256.fst | {
"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... | null | val setupBaseR: setupBaseR_st cs True | [] | Hacl.HPKE.Curve51_CP128_SHA256.setupBaseR | {
"file_name": "code/hpke/Hacl.HPKE.Curve51_CP128_SHA256.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | Hacl.Impl.HPKE.setupBaseR_st Hacl.HPKE.Curve51_CP128_SHA256.cs Prims.l_True | {
"end_col": 162,
"end_line": 16,
"start_col": 17,
"start_line": 16
} |
Prims.Tot | [
{
"abbrev": false,
"full_module": "Pulse.Reflection.Util",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.Reflection.Typing",
"short_module": "RT"
},
{
"abbrev": true,
"full_module": "FStar.Reflection.V2",
"short_module": "R"
},
{
"abbrev": false,... | false | let post_type t = mk_arrow (t, R.Q_Explicit) vprop_tm | let post_type t = | false | null | false | mk_arrow (t, R.Q_Explicit) vprop_tm | {
"checked_file": "Pulse.Soundness.STT.fsti.checked",
"dependencies": [
"Pulse.Reflection.Util.fst.checked",
"prims.fst.checked",
"FStar.Reflection.V2.fst.checked",
"FStar.Reflection.Typing.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked"
],
"interfac... | [
"total"
] | [
"FStar.Reflection.Types.term",
"Pulse.Reflection.Util.mk_arrow",
"FStar.Pervasives.Native.Mktuple2",
"FStar.Reflection.V2.Data.aqualv",
"FStar.Reflection.V2.Data.Q_Explicit",
"Pulse.Reflection.Util.vprop_tm"
] | [] | module Pulse.Soundness.STT
module R = FStar.Reflection.V2
module RT = FStar.Reflection.Typing
open Pulse.Reflection.Util | false | true | Pulse.Soundness.STT.fsti | {
"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... | null | val post_type : t: FStar.Reflection.Types.term -> FStar.Reflection.Types.term | [] | Pulse.Soundness.STT.post_type | {
"file_name": "lib/steel/pulse/Pulse.Soundness.STT.fsti",
"git_rev": "7fbb54e94dd4f48ff7cb867d3bae6889a635541e",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | t: FStar.Reflection.Types.term -> FStar.Reflection.Types.term | {
"end_col": 53,
"end_line": 8,
"start_col": 18,
"start_line": 8
} | |
Prims.Tot | [
{
"abbrev": false,
"full_module": "Pulse.Reflection.Util",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.Reflection.Typing",
"short_module": "RT"
},
{
"abbrev": true,
"full_module": "FStar.Reflection.V2",
"short_module": "R"
},
{
"abbrev": false,... | false | let inames_tm = R.(pack_ln (Tv_FVar (pack_fv inames_lid))) | let inames_tm = | false | null | false | let open R in pack_ln (Tv_FVar (pack_fv inames_lid)) | {
"checked_file": "Pulse.Soundness.STT.fsti.checked",
"dependencies": [
"Pulse.Reflection.Util.fst.checked",
"prims.fst.checked",
"FStar.Reflection.V2.fst.checked",
"FStar.Reflection.Typing.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked"
],
"interfac... | [
"total"
] | [
"FStar.Reflection.V2.Builtins.pack_ln",
"FStar.Reflection.V2.Data.Tv_FVar",
"FStar.Reflection.V2.Builtins.pack_fv",
"Pulse.Reflection.Util.inames_lid"
] | [] | module Pulse.Soundness.STT
module R = FStar.Reflection.V2
module RT = FStar.Reflection.Typing
open Pulse.Reflection.Util | false | true | Pulse.Soundness.STT.fsti | {
"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... | null | val inames_tm : FStar.Reflection.Types.term | [] | Pulse.Soundness.STT.inames_tm | {
"file_name": "lib/steel/pulse/Pulse.Soundness.STT.fsti",
"git_rev": "7fbb54e94dd4f48ff7cb867d3bae6889a635541e",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | FStar.Reflection.Types.term | {
"end_col": 57,
"end_line": 9,
"start_col": 19,
"start_line": 9
} | |
Prims.Tot | [
{
"abbrev": true,
"full_module": "LowStar.Buffer",
"short_module": "B"
},
{
"abbrev": true,
"full_module": "LowStar.ImmutableBuffer",
"short_module": "I"
},
{
"abbrev": false,
"full_module": "FStar.HyperStack.ST",
"short_module": null
},
{
"abbrev": true,
"ful... | false | let qbuf a = (q:qual & qbuf_cases q a) | let qbuf a = | false | null | false | (q: qual & qbuf_cases q a) | {
"checked_file": "LowStar.ConstBuffer.fsti.checked",
"dependencies": [
"prims.fst.checked",
"LowStar.ImmutableBuffer.fst.checked",
"LowStar.Buffer.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.HyperStack.ST.fsti.checked",
... | [
"total"
] | [
"Prims.dtuple2",
"LowStar.ConstBuffer.qual",
"LowStar.ConstBuffer.qbuf_cases"
] | [] | (*
Copyright 2008-2019 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | false | true | LowStar.ConstBuffer.fsti | {
"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... | null | val qbuf : a: Type0 -> Type0 | [] | LowStar.ConstBuffer.qbuf | {
"file_name": "ulib/LowStar.ConstBuffer.fsti",
"git_rev": "f4cbb7a38d67eeb13fbdb2f4fb8a44a65cbcdc1f",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | a: Type0 -> Type0 | {
"end_col": 38,
"end_line": 75,
"start_col": 13,
"start_line": 75
} | |
Prims.Tot | [
{
"abbrev": true,
"full_module": "LowStar.Buffer",
"short_module": "B"
},
{
"abbrev": true,
"full_module": "LowStar.ImmutableBuffer",
"short_module": "I"
},
{
"abbrev": false,
"full_module": "FStar.HyperStack.ST",
"short_module": null
},
{
"abbrev": true,
"ful... | false | let qbuf_pre (c:qbuf 'a) = q_preorder (qbuf_qual c) 'a | let qbuf_pre (c: qbuf 'a) = | false | null | false | q_preorder (qbuf_qual c) 'a | {
"checked_file": "LowStar.ConstBuffer.fsti.checked",
"dependencies": [
"prims.fst.checked",
"LowStar.ImmutableBuffer.fst.checked",
"LowStar.Buffer.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.HyperStack.ST.fsti.checked",
... | [
"total"
] | [
"LowStar.ConstBuffer.qbuf",
"LowStar.ConstBuffer.q_preorder",
"LowStar.ConstBuffer.qbuf_qual",
"FStar.Preorder.preorder",
"FStar.Seq.Base.seq"
] | [] | (*
Copyright 2008-2019 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | false | false | LowStar.ConstBuffer.fsti | {
"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... | null | val qbuf_pre : c: LowStar.ConstBuffer.qbuf 'a -> FStar.Preorder.preorder (FStar.Seq.Base.seq 'a) | [] | LowStar.ConstBuffer.qbuf_pre | {
"file_name": "ulib/LowStar.ConstBuffer.fsti",
"git_rev": "f4cbb7a38d67eeb13fbdb2f4fb8a44a65cbcdc1f",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | c: LowStar.ConstBuffer.qbuf 'a -> FStar.Preorder.preorder (FStar.Seq.Base.seq 'a) | {
"end_col": 55,
"end_line": 81,
"start_col": 28,
"start_line": 81
} | |
Prims.Tot | [
{
"abbrev": true,
"full_module": "LowStar.Buffer",
"short_module": "B"
},
{
"abbrev": true,
"full_module": "LowStar.ImmutableBuffer",
"short_module": "I"
},
{
"abbrev": false,
"full_module": "FStar.HyperStack.ST",
"short_module": null
},
{
"abbrev": true,
"ful... | false | let live (h:HS.mem) (c:const_buffer 'a) = B.live h (as_mbuf c) | let live (h: HS.mem) (c: const_buffer 'a) = | false | null | false | B.live h (as_mbuf c) | {
"checked_file": "LowStar.ConstBuffer.fsti.checked",
"dependencies": [
"prims.fst.checked",
"LowStar.ImmutableBuffer.fst.checked",
"LowStar.Buffer.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.HyperStack.ST.fsti.checked",
... | [
"total"
] | [
"FStar.Monotonic.HyperStack.mem",
"LowStar.ConstBuffer.const_buffer",
"LowStar.Monotonic.Buffer.live",
"LowStar.ConstBuffer.qbuf_pre",
"LowStar.ConstBuffer.as_qbuf",
"LowStar.ConstBuffer.as_mbuf"
] | [] | (*
Copyright 2008-2019 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | false | false | LowStar.ConstBuffer.fsti | {
"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... | null | val live : h: FStar.Monotonic.HyperStack.mem -> c: LowStar.ConstBuffer.const_buffer 'a -> Type0 | [] | LowStar.ConstBuffer.live | {
"file_name": "ulib/LowStar.ConstBuffer.fsti",
"git_rev": "f4cbb7a38d67eeb13fbdb2f4fb8a44a65cbcdc1f",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | h: FStar.Monotonic.HyperStack.mem -> c: LowStar.ConstBuffer.const_buffer 'a -> Type0 | {
"end_col": 65,
"end_line": 107,
"start_col": 45,
"start_line": 107
} | |
Prims.Tot | val qual_of (#a: _) (c: const_buffer a) : Tot qual | [
{
"abbrev": true,
"full_module": "LowStar.Buffer",
"short_module": "B"
},
{
"abbrev": true,
"full_module": "LowStar.ImmutableBuffer",
"short_module": "I"
},
{
"abbrev": false,
"full_module": "FStar.HyperStack.ST",
"short_module": null
},
{
"abbrev": true,
"ful... | false | let qual_of (#a:_) (c:const_buffer a)
: Tot qual
= dfst (as_qbuf c) | val qual_of (#a: _) (c: const_buffer a) : Tot qual
let qual_of (#a: _) (c: const_buffer a) : Tot qual = | false | null | false | dfst (as_qbuf c) | {
"checked_file": "LowStar.ConstBuffer.fsti.checked",
"dependencies": [
"prims.fst.checked",
"LowStar.ImmutableBuffer.fst.checked",
"LowStar.Buffer.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.HyperStack.ST.fsti.checked",
... | [
"total"
] | [
"LowStar.ConstBuffer.const_buffer",
"FStar.Pervasives.dfst",
"LowStar.ConstBuffer.qual",
"LowStar.ConstBuffer.qbuf_cases",
"LowStar.ConstBuffer.as_qbuf"
] | [] | (*
Copyright 2008-2019 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | false | false | LowStar.ConstBuffer.fsti | {
"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... | null | val qual_of (#a: _) (c: const_buffer a) : Tot qual | [] | LowStar.ConstBuffer.qual_of | {
"file_name": "ulib/LowStar.ConstBuffer.fsti",
"git_rev": "f4cbb7a38d67eeb13fbdb2f4fb8a44a65cbcdc1f",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | c: LowStar.ConstBuffer.const_buffer a -> LowStar.ConstBuffer.qual | {
"end_col": 20,
"end_line": 99,
"start_col": 4,
"start_line": 99
} |
Prims.GTot | [
{
"abbrev": true,
"full_module": "LowStar.Buffer",
"short_module": "B"
},
{
"abbrev": true,
"full_module": "LowStar.ImmutableBuffer",
"short_module": "I"
},
{
"abbrev": false,
"full_module": "FStar.HyperStack.ST",
"short_module": null
},
{
"abbrev": true,
"ful... | false | let g_is_null (c:const_buffer 'a) = B.g_is_null (as_mbuf c) | let g_is_null (c: const_buffer 'a) = | false | null | false | B.g_is_null (as_mbuf c) | {
"checked_file": "LowStar.ConstBuffer.fsti.checked",
"dependencies": [
"prims.fst.checked",
"LowStar.ImmutableBuffer.fst.checked",
"LowStar.Buffer.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.HyperStack.ST.fsti.checked",
... | [
"sometrivial"
] | [
"LowStar.ConstBuffer.const_buffer",
"LowStar.Monotonic.Buffer.g_is_null",
"LowStar.ConstBuffer.qbuf_pre",
"LowStar.ConstBuffer.as_qbuf",
"LowStar.ConstBuffer.as_mbuf",
"Prims.bool"
] | [] | (*
Copyright 2008-2019 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | false | false | LowStar.ConstBuffer.fsti | {
"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... | null | val g_is_null : c: LowStar.ConstBuffer.const_buffer 'a -> Prims.GTot Prims.bool | [] | LowStar.ConstBuffer.g_is_null | {
"file_name": "ulib/LowStar.ConstBuffer.fsti",
"git_rev": "f4cbb7a38d67eeb13fbdb2f4fb8a44a65cbcdc1f",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | c: LowStar.ConstBuffer.const_buffer 'a -> Prims.GTot Prims.bool | {
"end_col": 68,
"end_line": 112,
"start_col": 45,
"start_line": 112
} | |
Prims.Tot | val qbuf_qual (c: qbuf 'a) : qual | [
{
"abbrev": true,
"full_module": "LowStar.Buffer",
"short_module": "B"
},
{
"abbrev": true,
"full_module": "LowStar.ImmutableBuffer",
"short_module": "I"
},
{
"abbrev": false,
"full_module": "FStar.HyperStack.ST",
"short_module": null
},
{
"abbrev": true,
"ful... | false | let qbuf_qual (c:qbuf 'a) : qual = dfst c | val qbuf_qual (c: qbuf 'a) : qual
let qbuf_qual (c: qbuf 'a) : qual = | false | null | false | dfst c | {
"checked_file": "LowStar.ConstBuffer.fsti.checked",
"dependencies": [
"prims.fst.checked",
"LowStar.ImmutableBuffer.fst.checked",
"LowStar.Buffer.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.HyperStack.ST.fsti.checked",
... | [
"total"
] | [
"LowStar.ConstBuffer.qbuf",
"FStar.Pervasives.dfst",
"LowStar.ConstBuffer.qual",
"LowStar.ConstBuffer.qbuf_cases"
] | [] | (*
Copyright 2008-2019 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | false | false | LowStar.ConstBuffer.fsti | {
"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... | null | val qbuf_qual (c: qbuf 'a) : qual | [] | LowStar.ConstBuffer.qbuf_qual | {
"file_name": "ulib/LowStar.ConstBuffer.fsti",
"git_rev": "f4cbb7a38d67eeb13fbdb2f4fb8a44a65cbcdc1f",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | c: LowStar.ConstBuffer.qbuf 'a -> LowStar.ConstBuffer.qual | {
"end_col": 41,
"end_line": 78,
"start_col": 35,
"start_line": 78
} |
Prims.GTot | [
{
"abbrev": true,
"full_module": "LowStar.Buffer",
"short_module": "B"
},
{
"abbrev": true,
"full_module": "LowStar.ImmutableBuffer",
"short_module": "I"
},
{
"abbrev": false,
"full_module": "FStar.HyperStack.ST",
"short_module": null
},
{
"abbrev": true,
"ful... | false | let length (c:const_buffer 'a) = B.length (as_mbuf c) | let length (c: const_buffer 'a) = | false | null | false | B.length (as_mbuf c) | {
"checked_file": "LowStar.ConstBuffer.fsti.checked",
"dependencies": [
"prims.fst.checked",
"LowStar.ImmutableBuffer.fst.checked",
"LowStar.Buffer.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.HyperStack.ST.fsti.checked",
... | [
"sometrivial"
] | [
"LowStar.ConstBuffer.const_buffer",
"LowStar.Monotonic.Buffer.length",
"LowStar.ConstBuffer.qbuf_pre",
"LowStar.ConstBuffer.as_qbuf",
"LowStar.ConstBuffer.as_mbuf",
"Prims.nat"
] | [] | (*
Copyright 2008-2019 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | false | false | LowStar.ConstBuffer.fsti | {
"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... | null | val length : c: LowStar.ConstBuffer.const_buffer 'a -> Prims.GTot Prims.nat | [] | LowStar.ConstBuffer.length | {
"file_name": "ulib/LowStar.ConstBuffer.fsti",
"git_rev": "f4cbb7a38d67eeb13fbdb2f4fb8a44a65cbcdc1f",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | c: LowStar.ConstBuffer.const_buffer 'a -> Prims.GTot Prims.nat | {
"end_col": 65,
"end_line": 108,
"start_col": 45,
"start_line": 108
} | |
Prims.GTot | [
{
"abbrev": true,
"full_module": "LowStar.Buffer",
"short_module": "B"
},
{
"abbrev": true,
"full_module": "LowStar.ImmutableBuffer",
"short_module": "I"
},
{
"abbrev": false,
"full_module": "FStar.HyperStack.ST",
"short_module": null
},
{
"abbrev": true,
"ful... | false | let as_seq (h:HS.mem) (c:const_buffer 'a) = B.as_seq h (as_mbuf c) | let as_seq (h: HS.mem) (c: const_buffer 'a) = | false | null | false | B.as_seq h (as_mbuf c) | {
"checked_file": "LowStar.ConstBuffer.fsti.checked",
"dependencies": [
"prims.fst.checked",
"LowStar.ImmutableBuffer.fst.checked",
"LowStar.Buffer.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.HyperStack.ST.fsti.checked",
... | [
"sometrivial"
] | [
"FStar.Monotonic.HyperStack.mem",
"LowStar.ConstBuffer.const_buffer",
"LowStar.Monotonic.Buffer.as_seq",
"LowStar.ConstBuffer.qbuf_pre",
"LowStar.ConstBuffer.as_qbuf",
"LowStar.ConstBuffer.as_mbuf",
"FStar.Seq.Base.seq"
] | [] | (*
Copyright 2008-2019 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | false | false | LowStar.ConstBuffer.fsti | {
"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... | null | val as_seq : h: FStar.Monotonic.HyperStack.mem -> c: LowStar.ConstBuffer.const_buffer 'a
-> Prims.GTot (FStar.Seq.Base.seq 'a) | [] | LowStar.ConstBuffer.as_seq | {
"file_name": "ulib/LowStar.ConstBuffer.fsti",
"git_rev": "f4cbb7a38d67eeb13fbdb2f4fb8a44a65cbcdc1f",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | h: FStar.Monotonic.HyperStack.mem -> c: LowStar.ConstBuffer.const_buffer 'a
-> Prims.GTot (FStar.Seq.Base.seq 'a) | {
"end_col": 67,
"end_line": 111,
"start_col": 45,
"start_line": 111
} | |
Prims.GTot | [
{
"abbrev": true,
"full_module": "LowStar.Buffer",
"short_module": "B"
},
{
"abbrev": true,
"full_module": "LowStar.ImmutableBuffer",
"short_module": "I"
},
{
"abbrev": false,
"full_module": "FStar.HyperStack.ST",
"short_module": null
},
{
"abbrev": true,
"ful... | false | let loc_buffer (c:const_buffer 'a) = B.loc_buffer (as_mbuf c) | let loc_buffer (c: const_buffer 'a) = | false | null | false | B.loc_buffer (as_mbuf c) | {
"checked_file": "LowStar.ConstBuffer.fsti.checked",
"dependencies": [
"prims.fst.checked",
"LowStar.ImmutableBuffer.fst.checked",
"LowStar.Buffer.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.HyperStack.ST.fsti.checked",
... | [
"sometrivial"
] | [
"LowStar.ConstBuffer.const_buffer",
"LowStar.Monotonic.Buffer.loc_buffer",
"LowStar.ConstBuffer.qbuf_pre",
"LowStar.ConstBuffer.as_qbuf",
"LowStar.ConstBuffer.as_mbuf",
"LowStar.Monotonic.Buffer.loc"
] | [] | (*
Copyright 2008-2019 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | false | false | LowStar.ConstBuffer.fsti | {
"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... | null | val loc_buffer : c: LowStar.ConstBuffer.const_buffer 'a -> Prims.GTot LowStar.Monotonic.Buffer.loc | [] | LowStar.ConstBuffer.loc_buffer | {
"file_name": "ulib/LowStar.ConstBuffer.fsti",
"git_rev": "f4cbb7a38d67eeb13fbdb2f4fb8a44a65cbcdc1f",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | c: LowStar.ConstBuffer.const_buffer 'a -> Prims.GTot LowStar.Monotonic.Buffer.loc | {
"end_col": 69,
"end_line": 109,
"start_col": 45,
"start_line": 109
} | |
Prims.GTot | [
{
"abbrev": true,
"full_module": "LowStar.Buffer",
"short_module": "B"
},
{
"abbrev": true,
"full_module": "LowStar.ImmutableBuffer",
"short_module": "I"
},
{
"abbrev": false,
"full_module": "FStar.HyperStack.ST",
"short_module": null
},
{
"abbrev": true,
"ful... | false | let loc_addr_of_buffer (c:const_buffer 'a) = B.loc_addr_of_buffer (as_mbuf c) | let loc_addr_of_buffer (c: const_buffer 'a) = | false | null | false | B.loc_addr_of_buffer (as_mbuf c) | {
"checked_file": "LowStar.ConstBuffer.fsti.checked",
"dependencies": [
"prims.fst.checked",
"LowStar.ImmutableBuffer.fst.checked",
"LowStar.Buffer.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.HyperStack.ST.fsti.checked",
... | [
"sometrivial"
] | [
"LowStar.ConstBuffer.const_buffer",
"LowStar.Monotonic.Buffer.loc_addr_of_buffer",
"LowStar.ConstBuffer.qbuf_pre",
"LowStar.ConstBuffer.as_qbuf",
"LowStar.ConstBuffer.as_mbuf",
"LowStar.Monotonic.Buffer.loc"
] | [] | (*
Copyright 2008-2019 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | false | false | LowStar.ConstBuffer.fsti | {
"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... | null | val loc_addr_of_buffer : c: LowStar.ConstBuffer.const_buffer 'a -> Prims.GTot LowStar.Monotonic.Buffer.loc | [] | LowStar.ConstBuffer.loc_addr_of_buffer | {
"file_name": "ulib/LowStar.ConstBuffer.fsti",
"git_rev": "f4cbb7a38d67eeb13fbdb2f4fb8a44a65cbcdc1f",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | c: LowStar.ConstBuffer.const_buffer 'a -> Prims.GTot LowStar.Monotonic.Buffer.loc | {
"end_col": 77,
"end_line": 110,
"start_col": 45,
"start_line": 110
} | |
Prims.Tot | [
{
"abbrev": true,
"full_module": "LowStar.Buffer",
"short_module": "B"
},
{
"abbrev": true,
"full_module": "LowStar.ImmutableBuffer",
"short_module": "I"
},
{
"abbrev": false,
"full_module": "FStar.HyperStack.ST",
"short_module": null
},
{
"abbrev": true,
"ful... | false | let const_sub_buffer (i:U32.t) (len:U32.t) (csub c:const_buffer 'a) =
let qc = as_qbuf c in
let qcsub = as_qbuf csub in
U32.v i + U32.v len <= length c /\
csub == gsub c i len | let const_sub_buffer (i len: U32.t) (csub c: const_buffer 'a) = | false | null | false | let qc = as_qbuf c in
let qcsub = as_qbuf csub in
U32.v i + U32.v len <= length c /\ csub == gsub c i len | {
"checked_file": "LowStar.ConstBuffer.fsti.checked",
"dependencies": [
"prims.fst.checked",
"LowStar.ImmutableBuffer.fst.checked",
"LowStar.Buffer.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.HyperStack.ST.fsti.checked",
... | [
"total"
] | [
"FStar.UInt32.t",
"LowStar.ConstBuffer.const_buffer",
"Prims.l_and",
"Prims.b2t",
"Prims.op_LessThanOrEqual",
"Prims.op_Addition",
"FStar.UInt32.v",
"LowStar.ConstBuffer.length",
"Prims.eq2",
"LowStar.ConstBuffer.gsub",
"LowStar.ConstBuffer.qbuf",
"LowStar.ConstBuffer.as_qbuf",
"Prims.logica... | [] | (*
Copyright 2008-2019 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | false | false | LowStar.ConstBuffer.fsti | {
"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... | null | val const_sub_buffer : i: FStar.UInt32.t ->
len: FStar.UInt32.t ->
csub: LowStar.ConstBuffer.const_buffer 'a ->
c: LowStar.ConstBuffer.const_buffer 'a
-> Prims.logical | [] | LowStar.ConstBuffer.const_sub_buffer | {
"file_name": "ulib/LowStar.ConstBuffer.fsti",
"git_rev": "f4cbb7a38d67eeb13fbdb2f4fb8a44a65cbcdc1f",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} |
i: FStar.UInt32.t ->
len: FStar.UInt32.t ->
csub: LowStar.ConstBuffer.const_buffer 'a ->
c: LowStar.ConstBuffer.const_buffer 'a
-> Prims.logical | {
"end_col": 22,
"end_line": 183,
"start_col": 69,
"start_line": 179
} | |
Prims.GTot | [
{
"abbrev": true,
"full_module": "LowStar.Buffer",
"short_module": "B"
},
{
"abbrev": true,
"full_module": "LowStar.ImmutableBuffer",
"short_module": "I"
},
{
"abbrev": false,
"full_module": "FStar.HyperStack.ST",
"short_module": null
},
{
"abbrev": true,
"ful... | false | let qbuf_cases (q:qual) (a:Type) =
match q with
| MUTABLE -> B.buffer a
| IMMUTABLE -> I.ibuffer a | let qbuf_cases (q: qual) (a: Type) = | false | null | false | match q with
| MUTABLE -> B.buffer a
| IMMUTABLE -> I.ibuffer a | {
"checked_file": "LowStar.ConstBuffer.fsti.checked",
"dependencies": [
"prims.fst.checked",
"LowStar.ImmutableBuffer.fst.checked",
"LowStar.Buffer.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.HyperStack.ST.fsti.checked",
... | [
"sometrivial"
] | [
"LowStar.ConstBuffer.qual",
"LowStar.Buffer.buffer",
"LowStar.ImmutableBuffer.ibuffer"
] | [] | (*
Copyright 2008-2019 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | false | false | LowStar.ConstBuffer.fsti | {
"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... | null | val qbuf_cases : q: LowStar.ConstBuffer.qual -> a: Type0 -> Prims.GTot Type0 | [] | LowStar.ConstBuffer.qbuf_cases | {
"file_name": "ulib/LowStar.ConstBuffer.fsti",
"git_rev": "f4cbb7a38d67eeb13fbdb2f4fb8a44a65cbcdc1f",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | q: LowStar.ConstBuffer.qual -> a: Type0 -> Prims.GTot Type0 | {
"end_col": 28,
"end_line": 61,
"start_col": 2,
"start_line": 59
} | |
Prims.Tot | val qbuf_mbuf (c: qbuf 'a) : B.mbuffer 'a (qbuf_pre c) (qbuf_pre c) | [
{
"abbrev": true,
"full_module": "LowStar.Buffer",
"short_module": "B"
},
{
"abbrev": true,
"full_module": "LowStar.ImmutableBuffer",
"short_module": "I"
},
{
"abbrev": false,
"full_module": "FStar.HyperStack.ST",
"short_module": null
},
{
"abbrev": true,
"ful... | false | let qbuf_mbuf (c:qbuf 'a) : B.mbuffer 'a (qbuf_pre c) (qbuf_pre c) = dsnd c | val qbuf_mbuf (c: qbuf 'a) : B.mbuffer 'a (qbuf_pre c) (qbuf_pre c)
let qbuf_mbuf (c: qbuf 'a) : B.mbuffer 'a (qbuf_pre c) (qbuf_pre c) = | false | null | false | dsnd c | {
"checked_file": "LowStar.ConstBuffer.fsti.checked",
"dependencies": [
"prims.fst.checked",
"LowStar.ImmutableBuffer.fst.checked",
"LowStar.Buffer.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.HyperStack.ST.fsti.checked",
... | [
"total"
] | [
"LowStar.ConstBuffer.qbuf",
"FStar.Pervasives.dsnd",
"LowStar.ConstBuffer.qual",
"LowStar.ConstBuffer.qbuf_cases",
"LowStar.Monotonic.Buffer.mbuffer",
"LowStar.ConstBuffer.qbuf_pre"
] | [] | (*
Copyright 2008-2019 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | false | false | LowStar.ConstBuffer.fsti | {
"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... | null | val qbuf_mbuf (c: qbuf 'a) : B.mbuffer 'a (qbuf_pre c) (qbuf_pre c) | [] | LowStar.ConstBuffer.qbuf_mbuf | {
"file_name": "ulib/LowStar.ConstBuffer.fsti",
"git_rev": "f4cbb7a38d67eeb13fbdb2f4fb8a44a65cbcdc1f",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | c: LowStar.ConstBuffer.qbuf 'a
-> LowStar.Monotonic.Buffer.mbuffer 'a
(LowStar.ConstBuffer.qbuf_pre c)
(LowStar.ConstBuffer.qbuf_pre c) | {
"end_col": 75,
"end_line": 84,
"start_col": 69,
"start_line": 84
} |
Prims.GTot | [
{
"abbrev": true,
"full_module": "LowStar.Buffer",
"short_module": "B"
},
{
"abbrev": true,
"full_module": "LowStar.ImmutableBuffer",
"short_module": "I"
},
{
"abbrev": false,
"full_module": "FStar.HyperStack.ST",
"short_module": null
},
{
"abbrev": true,
"ful... | false | let q_preorder (q:qual) (a:Type) =
match q with
| MUTABLE -> B.trivial_preorder a
| IMMUTABLE -> I.immutable_preorder a | let q_preorder (q: qual) (a: Type) = | false | null | false | match q with
| MUTABLE -> B.trivial_preorder a
| IMMUTABLE -> I.immutable_preorder a | {
"checked_file": "LowStar.ConstBuffer.fsti.checked",
"dependencies": [
"prims.fst.checked",
"LowStar.ImmutableBuffer.fst.checked",
"LowStar.Buffer.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.HyperStack.ST.fsti.checked",
... | [
"sometrivial"
] | [
"LowStar.ConstBuffer.qual",
"LowStar.Buffer.trivial_preorder",
"LowStar.ImmutableBuffer.immutable_preorder",
"LowStar.Monotonic.Buffer.srel"
] | [] | (*
Copyright 2008-2019 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | false | false | LowStar.ConstBuffer.fsti | {
"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... | null | val q_preorder : q: LowStar.ConstBuffer.qual -> a: Type0 -> Prims.GTot (LowStar.Monotonic.Buffer.srel a) | [] | LowStar.ConstBuffer.q_preorder | {
"file_name": "ulib/LowStar.ConstBuffer.fsti",
"git_rev": "f4cbb7a38d67eeb13fbdb2f4fb8a44a65cbcdc1f",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | q: LowStar.ConstBuffer.qual -> a: Type0 -> Prims.GTot (LowStar.Monotonic.Buffer.srel a) | {
"end_col": 39,
"end_line": 70,
"start_col": 2,
"start_line": 68
} | |
Prims.GTot | val gsub (c: const_buffer 'a) (i: U32.t) (len: U32.t{U32.v i + U32.v len <= length c})
: GTot (const_buffer 'a) | [
{
"abbrev": true,
"full_module": "LowStar.Buffer",
"short_module": "B"
},
{
"abbrev": true,
"full_module": "LowStar.ImmutableBuffer",
"short_module": "I"
},
{
"abbrev": false,
"full_module": "FStar.HyperStack.ST",
"short_module": null
},
{
"abbrev": true,
"ful... | false | let gsub (c:const_buffer 'a) (i:U32.t) (len:U32.t{U32.v i + U32.v len <= length c})
: GTot (const_buffer 'a)
= let qc = as_qbuf c in
of_qbuf (B.mgsub (qbuf_pre qc) (qbuf_mbuf qc) i len) | val gsub (c: const_buffer 'a) (i: U32.t) (len: U32.t{U32.v i + U32.v len <= length c})
: GTot (const_buffer 'a)
let gsub (c: const_buffer 'a) (i: U32.t) (len: U32.t{U32.v i + U32.v len <= length c})
: GTot (const_buffer 'a) = | false | null | false | let qc = as_qbuf c in
of_qbuf (B.mgsub (qbuf_pre qc) (qbuf_mbuf qc) i len) | {
"checked_file": "LowStar.ConstBuffer.fsti.checked",
"dependencies": [
"prims.fst.checked",
"LowStar.ImmutableBuffer.fst.checked",
"LowStar.Buffer.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.HyperStack.ST.fsti.checked",
... | [
"sometrivial"
] | [
"LowStar.ConstBuffer.const_buffer",
"FStar.UInt32.t",
"Prims.b2t",
"Prims.op_LessThanOrEqual",
"Prims.op_Addition",
"FStar.UInt32.v",
"LowStar.ConstBuffer.length",
"LowStar.ConstBuffer.of_qbuf",
"LowStar.ConstBuffer.qbuf_qual",
"LowStar.Monotonic.Buffer.mgsub",
"LowStar.ConstBuffer.qbuf_pre",
... | [] | (*
Copyright 2008-2019 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | false | false | LowStar.ConstBuffer.fsti | {
"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... | null | val gsub (c: const_buffer 'a) (i: U32.t) (len: U32.t{U32.v i + U32.v len <= length c})
: GTot (const_buffer 'a) | [] | LowStar.ConstBuffer.gsub | {
"file_name": "ulib/LowStar.ConstBuffer.fsti",
"git_rev": "f4cbb7a38d67eeb13fbdb2f4fb8a44a65cbcdc1f",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} |
c: LowStar.ConstBuffer.const_buffer 'a ->
i: FStar.UInt32.t ->
len: FStar.UInt32.t{FStar.UInt32.v i + FStar.UInt32.v len <= LowStar.ConstBuffer.length c}
-> Prims.GTot (LowStar.ConstBuffer.const_buffer 'a) | {
"end_col": 56,
"end_line": 176,
"start_col": 3,
"start_line": 175
} |
FStar.HyperStack.ST.Stack | val test (x: B.buffer U32.t) (y: I.ibuffer U32.t)
: Stack U32.t
(requires
fun h ->
B.live h x /\ B.live h y /\ B.length x > 0 /\ B.length y > 2 /\ B.get h y 0 == 1ul /\
B.get h y 1 == 2ul /\ B.disjoint x y)
(ensures fun h0 a h1 -> B.modifies (B.loc_buffer x) h0 h1 /\ a == 4ul... | [
{
"abbrev": true,
"full_module": "LowStar.Buffer",
"short_module": "B"
},
{
"abbrev": true,
"full_module": "LowStar.ImmutableBuffer",
"short_module": "I"
},
{
"abbrev": false,
"full_module": "FStar.HyperStack.ST",
"short_module": null
},
{
"abbrev": true,
"ful... | false | let test (x:B.buffer U32.t) (y:I.ibuffer U32.t)
: Stack U32.t
(requires fun h ->
B.live h x /\
B.live h y /\
B.length x > 0 /\
B.length y > 2 /\
B.get h y 0 == 1ul /\
B.get h y 1 == 2ul /\
B.disjoint x y)
(ensures fun h0 a h1 ->
B.modifies (B.loc_buffer x) h0 h1... | val test (x: B.buffer U32.t) (y: I.ibuffer U32.t)
: Stack U32.t
(requires
fun h ->
B.live h x /\ B.live h y /\ B.length x > 0 /\ B.length y > 2 /\ B.get h y 0 == 1ul /\
B.get h y 1 == 2ul /\ B.disjoint x y)
(ensures fun h0 a h1 -> B.modifies (B.loc_buffer x) h0 h1 /\ a == 4ul... | true | null | false | let c1 = of_buffer x in
let c2 = of_ibuffer y in
B.upd x 0ul 1ul;
let a = index c1 0ul in
assert (a == 1ul);
let a' = index c2 0ul in
assert (a' == 1ul);
let c3 = sub c2 1ul 1ul in
let a'' = index c3 0ul in
assert (a'' == 2ul);
let open U32 in a +^ a' +^ a'' | {
"checked_file": "LowStar.ConstBuffer.fsti.checked",
"dependencies": [
"prims.fst.checked",
"LowStar.ImmutableBuffer.fst.checked",
"LowStar.Buffer.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.HyperStack.ST.fsti.checked",
... | [] | [
"LowStar.Buffer.buffer",
"FStar.UInt32.t",
"LowStar.ImmutableBuffer.ibuffer",
"FStar.UInt32.op_Plus_Hat",
"Prims.unit",
"Prims._assert",
"Prims.eq2",
"FStar.UInt32.__uint_to_t",
"LowStar.ConstBuffer.index",
"LowStar.ConstBuffer.const_buffer",
"LowStar.ConstBuffer.sub",
"FStar.Ghost.hide",
"L... | [] | (*
Copyright 2008-2019 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | false | false | LowStar.ConstBuffer.fsti | {
"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... | null | val test (x: B.buffer U32.t) (y: I.ibuffer U32.t)
: Stack U32.t
(requires
fun h ->
B.live h x /\ B.live h y /\ B.length x > 0 /\ B.length y > 2 /\ B.get h y 0 == 1ul /\
B.get h y 1 == 2ul /\ B.disjoint x y)
(ensures fun h0 a h1 -> B.modifies (B.loc_buffer x) h0 h1 /\ a == 4ul... | [] | LowStar.ConstBuffer.test | {
"file_name": "ulib/LowStar.ConstBuffer.fsti",
"git_rev": "f4cbb7a38d67eeb13fbdb2f4fb8a44a65cbcdc1f",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | x: LowStar.Buffer.buffer FStar.UInt32.t -> y: LowStar.ImmutableBuffer.ibuffer FStar.UInt32.t
-> FStar.HyperStack.ST.Stack FStar.UInt32.t | {
"end_col": 24,
"end_line": 298,
"start_col": 3,
"start_line": 288
} |
Prims.Tot | val shuffle_core_pre_create8: a:sha2_alg -> k_t:word a -> ws_t:word a -> hash:words_state' a -> words_state' a | [
{
"abbrev": true,
"full_module": "Hacl.Spec.SHA2.Lemmas",
"short_module": "Lemmas"
},
{
"abbrev": true,
"full_module": "Lib.ByteSequence",
"short_module": "BSeq"
},
{
"abbrev": true,
"full_module": "Lib.Sequence",
"short_module": "LSeq"
},
{
"abbrev": true,
"f... | false | let shuffle_core_pre_create8 a k_t ws_t hash =
let a0 = Seq.index hash 0 in
let b0 = Seq.index hash 1 in
let c0 = Seq.index hash 2 in
let d0 = Seq.index hash 3 in
let e0 = Seq.index hash 4 in
let f0 = Seq.index hash 5 in
let g0 = Seq.index hash 6 in
let h0 = Seq.index hash 7 in
let t1 = h0 +. (Spec._... | val shuffle_core_pre_create8: a:sha2_alg -> k_t:word a -> ws_t:word a -> hash:words_state' a -> words_state' a
let shuffle_core_pre_create8 a k_t ws_t hash = | false | null | false | let a0 = Seq.index hash 0 in
let b0 = Seq.index hash 1 in
let c0 = Seq.index hash 2 in
let d0 = Seq.index hash 3 in
let e0 = Seq.index hash 4 in
let f0 = Seq.index hash 5 in
let g0 = Seq.index hash 6 in
let h0 = Seq.index hash 7 in
let t1 = h0 +. (Spec._Sigma1 a e0) +. (Spec._Ch a e0 f0 g0) +. k_t +. ws_t in
let t2 = (... | {
"checked_file": "Hacl.Spec.SHA2.Equiv.fst.checked",
"dependencies": [
"Spec.Hash.Definitions.fst.checked",
"Spec.Agile.Hash.fsti.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.NTuple.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntVector.Serialize.fsti.chec... | [
"total"
] | [
"Spec.Hash.Definitions.sha2_alg",
"Hacl.Spec.SHA2.Vec.word",
"Hacl.Spec.SHA2.Vec.words_state'",
"Lib.Sequence.create8",
"Lib.IntTypes.op_Plus_Dot",
"Spec.Hash.Definitions.word_t",
"Lib.IntTypes.SEC",
"Lib.IntTypes.int_t",
"Hacl.Spec.SHA2._Sigma0",
"Hacl.Spec.SHA2._Maj",
"Hacl.Spec.SHA2._Sigma1",... | [] | module Hacl.Spec.SHA2.Equiv
open FStar.Mul
open Lib.IntTypes
open Lib.NTuple
open Lib.Sequence
open Lib.IntVector
open Lib.IntVector.Serialize
open Lib.LoopCombinators
open Spec.Hash.Definitions
open Hacl.Spec.SHA2.Vec
module Spec = Hacl.Spec.SHA2
module LSeq = Lib.Sequence
module BSeq = Lib.ByteSequence
module Lemma... | false | false | Hacl.Spec.SHA2.Equiv.fst | {
"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... | null | val shuffle_core_pre_create8: a:sha2_alg -> k_t:word a -> ws_t:word a -> hash:words_state' a -> words_state' a | [] | Hacl.Spec.SHA2.Equiv.shuffle_core_pre_create8 | {
"file_name": "code/sha2-mb/Hacl.Spec.SHA2.Equiv.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} |
a: Spec.Hash.Definitions.sha2_alg ->
k_t: Hacl.Spec.SHA2.Vec.word a ->
ws_t: Hacl.Spec.SHA2.Vec.word a ->
hash: Hacl.Spec.SHA2.Vec.words_state' a
-> Hacl.Spec.SHA2.Vec.words_state' a | {
"end_col": 49,
"end_line": 92,
"start_col": 46,
"start_line": 80
} |
FStar.Pervasives.Lemma | val seq_of_list_is_create8: #a:Type -> x0:a -> x1:a -> x2:a -> x3:a -> x4:a -> x5:a -> x6:a -> x7:a ->
Lemma (create8 x0 x1 x2 x3 x4 x5 x6 x7 == Seq.seq_of_list [x0; x1; x2; x3; x4; x5; x6; x7]) | [
{
"abbrev": true,
"full_module": "Hacl.Spec.SHA2.Lemmas",
"short_module": "Lemmas"
},
{
"abbrev": true,
"full_module": "Lib.ByteSequence",
"short_module": "BSeq"
},
{
"abbrev": true,
"full_module": "Lib.Sequence",
"short_module": "LSeq"
},
{
"abbrev": true,
"f... | false | let seq_of_list_is_create8 #a x0 x1 x2 x3 x4 x5 x6 x7 =
let rp = Seq.seq_of_list [x0; x1; x2; x3; x4; x5; x6; x7] in
assert_norm (length rp == 8);
let lp = create8 x0 x1 x2 x3 x4 x5 x6 x7 in
let aux (i:nat{i < 8}) : Lemma (Seq.index lp i == Seq.index rp i) =
assert_norm (Seq.index lp i == Seq.index rp i) i... | val seq_of_list_is_create8: #a:Type -> x0:a -> x1:a -> x2:a -> x3:a -> x4:a -> x5:a -> x6:a -> x7:a ->
Lemma (create8 x0 x1 x2 x3 x4 x5 x6 x7 == Seq.seq_of_list [x0; x1; x2; x3; x4; x5; x6; x7])
let seq_of_list_is_create8 #a x0 x1 x2 x3 x4 x5 x6 x7 = | false | null | true | let rp = Seq.seq_of_list [x0; x1; x2; x3; x4; x5; x6; x7] in
assert_norm (length rp == 8);
let lp = create8 x0 x1 x2 x3 x4 x5 x6 x7 in
let aux (i: nat{i < 8}) : Lemma (Seq.index lp i == Seq.index rp i) =
assert_norm (Seq.index lp i == Seq.index rp i)
in
Classical.forall_intro aux;
eq_intro rp lp | {
"checked_file": "Hacl.Spec.SHA2.Equiv.fst.checked",
"dependencies": [
"Spec.Hash.Definitions.fst.checked",
"Spec.Agile.Hash.fsti.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.NTuple.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntVector.Serialize.fsti.chec... | [
"lemma"
] | [
"Lib.Sequence.eq_intro",
"Prims.unit",
"FStar.Classical.forall_intro",
"Prims.nat",
"Prims.b2t",
"Prims.op_LessThan",
"Prims.eq2",
"FStar.Seq.Base.index",
"Prims.l_True",
"Prims.squash",
"Prims.Nil",
"FStar.Pervasives.pattern",
"FStar.Pervasives.assert_norm",
"Lib.Sequence.lseq",
"Lib.Se... | [] | module Hacl.Spec.SHA2.Equiv
open FStar.Mul
open Lib.IntTypes
open Lib.NTuple
open Lib.Sequence
open Lib.IntVector
open Lib.IntVector.Serialize
open Lib.LoopCombinators
open Spec.Hash.Definitions
open Hacl.Spec.SHA2.Vec
module Spec = Hacl.Spec.SHA2
module LSeq = Lib.Sequence
module BSeq = Lib.ByteSequence
module Lemma... | false | false | Hacl.Spec.SHA2.Equiv.fst | {
"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... | null | val seq_of_list_is_create8: #a:Type -> x0:a -> x1:a -> x2:a -> x3:a -> x4:a -> x5:a -> x6:a -> x7:a ->
Lemma (create8 x0 x1 x2 x3 x4 x5 x6 x7 == Seq.seq_of_list [x0; x1; x2; x3; x4; x5; x6; x7]) | [] | Hacl.Spec.SHA2.Equiv.seq_of_list_is_create8 | {
"file_name": "code/sha2-mb/Hacl.Spec.SHA2.Equiv.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | x0: a -> x1: a -> x2: a -> x3: a -> x4: a -> x5: a -> x6: a -> x7: a
-> FStar.Pervasives.Lemma
(ensures
Lib.Sequence.create8 x0 x1 x2 x3 x4 x5 x6 x7 ==
FStar.Seq.Properties.seq_of_list [x0; x1; x2; x3; x4; x5; x6; x7]) | {
"end_col": 16,
"end_line": 76,
"start_col": 55,
"start_line": 67
} |
FStar.Pervasives.Lemma | val ws_next_lemma_l:
#a:sha2_alg
-> #m:m_spec
-> ws:ws_spec a m
-> l:nat{l < lanes a m} ->
Lemma ((ws_spec_v (ws_next #a #m ws)).[l] == Spec.ws_next a (ws_spec_v ws).[l]) | [
{
"abbrev": true,
"full_module": "Hacl.Spec.SHA2.Lemmas",
"short_module": "Lemmas"
},
{
"abbrev": true,
"full_module": "Lib.ByteSequence",
"short_module": "BSeq"
},
{
"abbrev": true,
"full_module": "Lib.Sequence",
"short_module": "LSeq"
},
{
"abbrev": true,
"f... | false | let ws_next_lemma_l #a #m ws l = ws_next_lemma_loop #a #m ws l 16 | val ws_next_lemma_l:
#a:sha2_alg
-> #m:m_spec
-> ws:ws_spec a m
-> l:nat{l < lanes a m} ->
Lemma ((ws_spec_v (ws_next #a #m ws)).[l] == Spec.ws_next a (ws_spec_v ws).[l])
let ws_next_lemma_l #a #m ws l = | false | null | true | ws_next_lemma_loop #a #m ws l 16 | {
"checked_file": "Hacl.Spec.SHA2.Equiv.fst.checked",
"dependencies": [
"Spec.Hash.Definitions.fst.checked",
"Spec.Agile.Hash.fsti.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.NTuple.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntVector.Serialize.fsti.chec... | [
"lemma"
] | [
"Spec.Hash.Definitions.sha2_alg",
"Hacl.Spec.SHA2.Vec.m_spec",
"Hacl.Spec.SHA2.Vec.ws_spec",
"Prims.nat",
"Prims.b2t",
"Prims.op_LessThan",
"Hacl.Spec.SHA2.Vec.lanes",
"Hacl.Spec.SHA2.Equiv.ws_next_lemma_loop",
"Prims.unit"
] | [] | module Hacl.Spec.SHA2.Equiv
open FStar.Mul
open Lib.IntTypes
open Lib.NTuple
open Lib.Sequence
open Lib.IntVector
open Lib.IntVector.Serialize
open Lib.LoopCombinators
open Spec.Hash.Definitions
open Hacl.Spec.SHA2.Vec
module Spec = Hacl.Spec.SHA2
module LSeq = Lib.Sequence
module BSeq = Lib.ByteSequence
module Lemma... | false | false | Hacl.Spec.SHA2.Equiv.fst | {
"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... | null | val ws_next_lemma_l:
#a:sha2_alg
-> #m:m_spec
-> ws:ws_spec a m
-> l:nat{l < lanes a m} ->
Lemma ((ws_spec_v (ws_next #a #m ws)).[l] == Spec.ws_next a (ws_spec_v ws).[l]) | [] | Hacl.Spec.SHA2.Equiv.ws_next_lemma_l | {
"file_name": "code/sha2-mb/Hacl.Spec.SHA2.Equiv.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | ws: Hacl.Spec.SHA2.Vec.ws_spec a m -> l: Prims.nat{l < Hacl.Spec.SHA2.Vec.lanes a m}
-> FStar.Pervasives.Lemma
(ensures
(Hacl.Spec.SHA2.Vec.ws_spec_v (Hacl.Spec.SHA2.Vec.ws_next ws)).[ l ] ==
Hacl.Spec.SHA2.ws_next a (Hacl.Spec.SHA2.Vec.ws_spec_v ws).[ l ]) | {
"end_col": 65,
"end_line": 183,
"start_col": 33,
"start_line": 183
} |
FStar.Pervasives.Lemma | val shuffle_inner_loop_lemma_l:
#a:sha2_alg
-> #m:m_spec
-> i:nat{i < Spec.num_rounds16 a}
-> ws_st:tuple2 (ws_spec a m) (state_spec a m)
-> l:nat{l < lanes a m} ->
Lemma
(let (ws1, st1) = shuffle_inner_loop i ws_st in
let (ws0, st0) = ws_st in
let (ws, st) = Spec.shuffle_inner_loop a i ((ws_spec_... | [
{
"abbrev": true,
"full_module": "Hacl.Spec.SHA2.Lemmas",
"short_module": "Lemmas"
},
{
"abbrev": true,
"full_module": "Lib.ByteSequence",
"short_module": "BSeq"
},
{
"abbrev": true,
"full_module": "Lib.Sequence",
"short_module": "LSeq"
},
{
"abbrev": true,
"f... | false | let shuffle_inner_loop_lemma_l #a #m i (ws0, st0) l =
shuffle_inner_loop_lemma #a #m i ws0 st0 l 16;
ws_next_lemma_l ws0 l | val shuffle_inner_loop_lemma_l:
#a:sha2_alg
-> #m:m_spec
-> i:nat{i < Spec.num_rounds16 a}
-> ws_st:tuple2 (ws_spec a m) (state_spec a m)
-> l:nat{l < lanes a m} ->
Lemma
(let (ws1, st1) = shuffle_inner_loop i ws_st in
let (ws0, st0) = ws_st in
let (ws, st) = Spec.shuffle_inner_loop a i ((ws_spec_... | false | null | true | shuffle_inner_loop_lemma #a #m i ws0 st0 l 16;
ws_next_lemma_l ws0 l | {
"checked_file": "Hacl.Spec.SHA2.Equiv.fst.checked",
"dependencies": [
"Spec.Hash.Definitions.fst.checked",
"Spec.Agile.Hash.fsti.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.NTuple.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntVector.Serialize.fsti.chec... | [
"lemma"
] | [
"Spec.Hash.Definitions.sha2_alg",
"Hacl.Spec.SHA2.Vec.m_spec",
"Prims.nat",
"Prims.b2t",
"Prims.op_LessThan",
"Hacl.Spec.SHA2.num_rounds16",
"FStar.Pervasives.Native.tuple2",
"Hacl.Spec.SHA2.Vec.ws_spec",
"Hacl.Spec.SHA2.Vec.state_spec",
"Hacl.Spec.SHA2.Vec.lanes",
"Hacl.Spec.SHA2.Equiv.ws_next_... | [] | module Hacl.Spec.SHA2.Equiv
open FStar.Mul
open Lib.IntTypes
open Lib.NTuple
open Lib.Sequence
open Lib.IntVector
open Lib.IntVector.Serialize
open Lib.LoopCombinators
open Spec.Hash.Definitions
open Hacl.Spec.SHA2.Vec
module Spec = Hacl.Spec.SHA2
module LSeq = Lib.Sequence
module BSeq = Lib.ByteSequence
module Lemma... | false | false | Hacl.Spec.SHA2.Equiv.fst | {
"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... | null | val shuffle_inner_loop_lemma_l:
#a:sha2_alg
-> #m:m_spec
-> i:nat{i < Spec.num_rounds16 a}
-> ws_st:tuple2 (ws_spec a m) (state_spec a m)
-> l:nat{l < lanes a m} ->
Lemma
(let (ws1, st1) = shuffle_inner_loop i ws_st in
let (ws0, st0) = ws_st in
let (ws, st) = Spec.shuffle_inner_loop a i ((ws_spec_... | [] | Hacl.Spec.SHA2.Equiv.shuffle_inner_loop_lemma_l | {
"file_name": "code/sha2-mb/Hacl.Spec.SHA2.Equiv.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} |
i: Prims.nat{i < Hacl.Spec.SHA2.num_rounds16 a} ->
ws_st: (Hacl.Spec.SHA2.Vec.ws_spec a m * Hacl.Spec.SHA2.Vec.state_spec a m) ->
l: Prims.nat{l < Hacl.Spec.SHA2.Vec.lanes a m}
-> FStar.Pervasives.Lemma
(ensures
(let _ = Hacl.Spec.SHA2.Vec.shuffle_inner_loop i ws_st in
(let FStar.Pervas... | {
"end_col": 23,
"end_line": 249,
"start_col": 2,
"start_line": 248
} |
FStar.Pervasives.Lemma | val shuffle_core_pre_create8_lemma: a:sha2_alg -> k_t:word a -> ws_t:word a -> hash:words_state' a ->
Lemma (Spec.shuffle_core_pre a k_t ws_t hash == shuffle_core_pre_create8 a k_t ws_t hash) | [
{
"abbrev": true,
"full_module": "Hacl.Spec.SHA2.Lemmas",
"short_module": "Lemmas"
},
{
"abbrev": true,
"full_module": "Lib.ByteSequence",
"short_module": "BSeq"
},
{
"abbrev": true,
"full_module": "Lib.Sequence",
"short_module": "LSeq"
},
{
"abbrev": true,
"f... | false | let shuffle_core_pre_create8_lemma a k_t ws_t hash =
let a0 = Seq.index hash 0 in
let b0 = Seq.index hash 1 in
let c0 = Seq.index hash 2 in
let d0 = Seq.index hash 3 in
let e0 = Seq.index hash 4 in
let f0 = Seq.index hash 5 in
let g0 = Seq.index hash 6 in
let h0 = Seq.index hash 7 in
let t1 = h0 +. (... | val shuffle_core_pre_create8_lemma: a:sha2_alg -> k_t:word a -> ws_t:word a -> hash:words_state' a ->
Lemma (Spec.shuffle_core_pre a k_t ws_t hash == shuffle_core_pre_create8 a k_t ws_t hash)
let shuffle_core_pre_create8_lemma a k_t ws_t hash = | false | null | true | let a0 = Seq.index hash 0 in
let b0 = Seq.index hash 1 in
let c0 = Seq.index hash 2 in
let d0 = Seq.index hash 3 in
let e0 = Seq.index hash 4 in
let f0 = Seq.index hash 5 in
let g0 = Seq.index hash 6 in
let h0 = Seq.index hash 7 in
let t1 = h0 +. (Spec._Sigma1 a e0) +. (Spec._Ch a e0 f0 g0) +. k_t +. ws_t in
let t2 = (... | {
"checked_file": "Hacl.Spec.SHA2.Equiv.fst.checked",
"dependencies": [
"Spec.Hash.Definitions.fst.checked",
"Spec.Agile.Hash.fsti.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.NTuple.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntVector.Serialize.fsti.chec... | [
"lemma"
] | [
"Spec.Hash.Definitions.sha2_alg",
"Hacl.Spec.SHA2.Vec.word",
"Hacl.Spec.SHA2.Vec.words_state'",
"Hacl.Spec.SHA2.Equiv.seq_of_list_is_create8",
"Lib.IntTypes.int_t",
"Spec.Hash.Definitions.word_t",
"Lib.IntTypes.SEC",
"Lib.IntTypes.op_Plus_Dot",
"Hacl.Spec.SHA2._Sigma0",
"Hacl.Spec.SHA2._Maj",
"H... | [] | module Hacl.Spec.SHA2.Equiv
open FStar.Mul
open Lib.IntTypes
open Lib.NTuple
open Lib.Sequence
open Lib.IntVector
open Lib.IntVector.Serialize
open Lib.LoopCombinators
open Spec.Hash.Definitions
open Hacl.Spec.SHA2.Vec
module Spec = Hacl.Spec.SHA2
module LSeq = Lib.Sequence
module BSeq = Lib.ByteSequence
module Lemma... | false | false | Hacl.Spec.SHA2.Equiv.fst | {
"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... | null | val shuffle_core_pre_create8_lemma: a:sha2_alg -> k_t:word a -> ws_t:word a -> hash:words_state' a ->
Lemma (Spec.shuffle_core_pre a k_t ws_t hash == shuffle_core_pre_create8 a k_t ws_t hash) | [] | Hacl.Spec.SHA2.Equiv.shuffle_core_pre_create8_lemma | {
"file_name": "code/sha2-mb/Hacl.Spec.SHA2.Equiv.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} |
a: Spec.Hash.Definitions.sha2_alg ->
k_t: Hacl.Spec.SHA2.Vec.word a ->
ws_t: Hacl.Spec.SHA2.Vec.word a ->
hash: Hacl.Spec.SHA2.Vec.words_state' a
-> FStar.Pervasives.Lemma
(ensures
Hacl.Spec.SHA2.shuffle_core_pre a k_t ws_t hash ==
Hacl.Spec.SHA2.Equiv.shuffle_core_pre_create8 a k_t w... | {
"end_col": 64,
"end_line": 109,
"start_col": 52,
"start_line": 97
} |
FStar.Pervasives.Lemma | val update_nblocks_lemma_l:
#a:sha2_alg
-> #m:m_spec{is_supported a m}
-> len:Spec.len_lt_max_a_t a
-> b:multiseq (lanes a m) len
-> st:state_spec a m
-> l:nat{l < lanes a m} ->
Lemma
((state_spec_v (update_nblocks len b st)).[l] ==
Spec.update_nblocks a len b.(|l|) (state_spec_v st).[l]) | [
{
"abbrev": true,
"full_module": "Hacl.Spec.SHA2.Lemmas",
"short_module": "Lemmas"
},
{
"abbrev": true,
"full_module": "Lib.ByteSequence",
"short_module": "BSeq"
},
{
"abbrev": true,
"full_module": "Lib.Sequence",
"short_module": "LSeq"
},
{
"abbrev": true,
"f... | false | let update_nblocks_lemma_l #a #m len b st l =
let blocks = len / block_length a in
update_nblocks_loop_lemma #a #m len b st l blocks | val update_nblocks_lemma_l:
#a:sha2_alg
-> #m:m_spec{is_supported a m}
-> len:Spec.len_lt_max_a_t a
-> b:multiseq (lanes a m) len
-> st:state_spec a m
-> l:nat{l < lanes a m} ->
Lemma
((state_spec_v (update_nblocks len b st)).[l] ==
Spec.update_nblocks a len b.(|l|) (state_spec_v st).[l])
let upd... | false | null | true | let blocks = len / block_length a in
update_nblocks_loop_lemma #a #m len b st l blocks | {
"checked_file": "Hacl.Spec.SHA2.Equiv.fst.checked",
"dependencies": [
"Spec.Hash.Definitions.fst.checked",
"Spec.Agile.Hash.fsti.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.NTuple.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntVector.Serialize.fsti.chec... | [
"lemma"
] | [
"Spec.Hash.Definitions.sha2_alg",
"Hacl.Spec.SHA2.Vec.m_spec",
"Hacl.Spec.SHA2.Vec.is_supported",
"Hacl.Spec.SHA2.len_lt_max_a_t",
"Hacl.Spec.SHA2.Vec.multiseq",
"Hacl.Spec.SHA2.Vec.lanes",
"Hacl.Spec.SHA2.Vec.state_spec",
"Prims.nat",
"Prims.b2t",
"Prims.op_LessThan",
"Hacl.Spec.SHA2.Equiv.upda... | [] | module Hacl.Spec.SHA2.Equiv
open FStar.Mul
open Lib.IntTypes
open Lib.NTuple
open Lib.Sequence
open Lib.IntVector
open Lib.IntVector.Serialize
open Lib.LoopCombinators
open Spec.Hash.Definitions
open Hacl.Spec.SHA2.Vec
module Spec = Hacl.Spec.SHA2
module LSeq = Lib.Sequence
module BSeq = Lib.ByteSequence
module Lemma... | false | false | Hacl.Spec.SHA2.Equiv.fst | {
"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... | null | val update_nblocks_lemma_l:
#a:sha2_alg
-> #m:m_spec{is_supported a m}
-> len:Spec.len_lt_max_a_t a
-> b:multiseq (lanes a m) len
-> st:state_spec a m
-> l:nat{l < lanes a m} ->
Lemma
((state_spec_v (update_nblocks len b st)).[l] ==
Spec.update_nblocks a len b.(|l|) (state_spec_v st).[l]) | [] | Hacl.Spec.SHA2.Equiv.update_nblocks_lemma_l | {
"file_name": "code/sha2-mb/Hacl.Spec.SHA2.Equiv.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} |
len: Hacl.Spec.SHA2.len_lt_max_a_t a ->
b: Hacl.Spec.SHA2.Vec.multiseq (Hacl.Spec.SHA2.Vec.lanes a m) len ->
st: Hacl.Spec.SHA2.Vec.state_spec a m ->
l: Prims.nat{l < Hacl.Spec.SHA2.Vec.lanes a m}
-> FStar.Pervasives.Lemma
(ensures
(Hacl.Spec.SHA2.Vec.state_spec_v (Hacl.Spec.SHA2.Vec.update... | {
"end_col": 51,
"end_line": 654,
"start_col": 45,
"start_line": 652
} |
FStar.Pervasives.Lemma | val hash_lemma:
#a:sha2_alg
-> #m:m_spec{is_supported a m}
-> len:Spec.len_lt_max_a_t a
-> b:multiseq (lanes a m) len ->
Lemma (forall (l:nat{l < lanes a m}).
(hash #a #m len b).(|l|) == Spec.hash len b.(|l|)) | [
{
"abbrev": true,
"full_module": "Hacl.Spec.SHA2.Lemmas",
"short_module": "Lemmas"
},
{
"abbrev": true,
"full_module": "Lib.ByteSequence",
"short_module": "BSeq"
},
{
"abbrev": true,
"full_module": "Lib.Sequence",
"short_module": "LSeq"
},
{
"abbrev": true,
"f... | false | let hash_lemma #a #m len b =
Classical.forall_intro (hash_lemma_l #a #m len b) | val hash_lemma:
#a:sha2_alg
-> #m:m_spec{is_supported a m}
-> len:Spec.len_lt_max_a_t a
-> b:multiseq (lanes a m) len ->
Lemma (forall (l:nat{l < lanes a m}).
(hash #a #m len b).(|l|) == Spec.hash len b.(|l|))
let hash_lemma #a #m len b = | false | null | true | Classical.forall_intro (hash_lemma_l #a #m len b) | {
"checked_file": "Hacl.Spec.SHA2.Equiv.fst.checked",
"dependencies": [
"Spec.Hash.Definitions.fst.checked",
"Spec.Agile.Hash.fsti.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.NTuple.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntVector.Serialize.fsti.chec... | [
"lemma"
] | [
"Spec.Hash.Definitions.sha2_alg",
"Hacl.Spec.SHA2.Vec.m_spec",
"Hacl.Spec.SHA2.Vec.is_supported",
"Hacl.Spec.SHA2.len_lt_max_a_t",
"Hacl.Spec.SHA2.Vec.multiseq",
"Hacl.Spec.SHA2.Vec.lanes",
"FStar.Classical.forall_intro",
"Prims.nat",
"Prims.b2t",
"Prims.op_LessThan",
"Prims.eq2",
"FStar.Seq.B... | [] | module Hacl.Spec.SHA2.Equiv
open FStar.Mul
open Lib.IntTypes
open Lib.NTuple
open Lib.Sequence
open Lib.IntVector
open Lib.IntVector.Serialize
open Lib.LoopCombinators
open Spec.Hash.Definitions
open Hacl.Spec.SHA2.Vec
module Spec = Hacl.Spec.SHA2
module LSeq = Lib.Sequence
module BSeq = Lib.ByteSequence
module Lemma... | false | false | Hacl.Spec.SHA2.Equiv.fst | {
"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... | null | val hash_lemma:
#a:sha2_alg
-> #m:m_spec{is_supported a m}
-> len:Spec.len_lt_max_a_t a
-> b:multiseq (lanes a m) len ->
Lemma (forall (l:nat{l < lanes a m}).
(hash #a #m len b).(|l|) == Spec.hash len b.(|l|)) | [] | Hacl.Spec.SHA2.Equiv.hash_lemma | {
"file_name": "code/sha2-mb/Hacl.Spec.SHA2.Equiv.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} |
len: Hacl.Spec.SHA2.len_lt_max_a_t a ->
b: Hacl.Spec.SHA2.Vec.multiseq (Hacl.Spec.SHA2.Vec.lanes a m) len
-> FStar.Pervasives.Lemma
(ensures
forall (l: Prims.nat{l < Hacl.Spec.SHA2.Vec.lanes a m}).
( .(||) ) (Hacl.Spec.SHA2.Vec.hash len b) l == Hacl.Spec.SHA2.hash len (( .(||) ) b l)) | {
"end_col": 51,
"end_line": 687,
"start_col": 2,
"start_line": 687
} |
FStar.Pervasives.Lemma | val hash_agile_lemma:
#a:sha2_alg
-> #m:m_spec{is_supported a m}
-> len:Spec.len_lt_max_a_t a
-> b:multiseq (lanes a m) len ->
Lemma (forall (l:nat{l < lanes a m}).
(hash #a #m len b).(|l|) == Spec.Agile.Hash.hash a b.(|l|)) | [
{
"abbrev": true,
"full_module": "Hacl.Spec.SHA2.Lemmas",
"short_module": "Lemmas"
},
{
"abbrev": true,
"full_module": "Lib.ByteSequence",
"short_module": "BSeq"
},
{
"abbrev": true,
"full_module": "Lib.Sequence",
"short_module": "LSeq"
},
{
"abbrev": true,
"f... | false | let hash_agile_lemma #a #m len b =
Classical.forall_intro (hash_agile_lemma_l #a #m len b) | val hash_agile_lemma:
#a:sha2_alg
-> #m:m_spec{is_supported a m}
-> len:Spec.len_lt_max_a_t a
-> b:multiseq (lanes a m) len ->
Lemma (forall (l:nat{l < lanes a m}).
(hash #a #m len b).(|l|) == Spec.Agile.Hash.hash a b.(|l|))
let hash_agile_lemma #a #m len b = | false | null | true | Classical.forall_intro (hash_agile_lemma_l #a #m len b) | {
"checked_file": "Hacl.Spec.SHA2.Equiv.fst.checked",
"dependencies": [
"Spec.Hash.Definitions.fst.checked",
"Spec.Agile.Hash.fsti.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.NTuple.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntVector.Serialize.fsti.chec... | [
"lemma"
] | [
"Spec.Hash.Definitions.sha2_alg",
"Hacl.Spec.SHA2.Vec.m_spec",
"Hacl.Spec.SHA2.Vec.is_supported",
"Hacl.Spec.SHA2.len_lt_max_a_t",
"Hacl.Spec.SHA2.Vec.multiseq",
"Hacl.Spec.SHA2.Vec.lanes",
"FStar.Classical.forall_intro",
"Prims.nat",
"Prims.b2t",
"Prims.op_LessThan",
"Prims.eq2",
"FStar.Seq.B... | [] | module Hacl.Spec.SHA2.Equiv
open FStar.Mul
open Lib.IntTypes
open Lib.NTuple
open Lib.Sequence
open Lib.IntVector
open Lib.IntVector.Serialize
open Lib.LoopCombinators
open Spec.Hash.Definitions
open Hacl.Spec.SHA2.Vec
module Spec = Hacl.Spec.SHA2
module LSeq = Lib.Sequence
module BSeq = Lib.ByteSequence
module Lemma... | false | false | Hacl.Spec.SHA2.Equiv.fst | {
"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... | null | val hash_agile_lemma:
#a:sha2_alg
-> #m:m_spec{is_supported a m}
-> len:Spec.len_lt_max_a_t a
-> b:multiseq (lanes a m) len ->
Lemma (forall (l:nat{l < lanes a m}).
(hash #a #m len b).(|l|) == Spec.Agile.Hash.hash a b.(|l|)) | [] | Hacl.Spec.SHA2.Equiv.hash_agile_lemma | {
"file_name": "code/sha2-mb/Hacl.Spec.SHA2.Equiv.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} |
len: Hacl.Spec.SHA2.len_lt_max_a_t a ->
b: Hacl.Spec.SHA2.Vec.multiseq (Hacl.Spec.SHA2.Vec.lanes a m) len
-> FStar.Pervasives.Lemma
(ensures
forall (l: Prims.nat{l < Hacl.Spec.SHA2.Vec.lanes a m}).
( .(||) ) (Hacl.Spec.SHA2.Vec.hash len b) l == Spec.Agile.Hash.hash a (( .(||) ) b l)) | {
"end_col": 57,
"end_line": 712,
"start_col": 2,
"start_line": 712
} |
FStar.Pervasives.Lemma | val update_block_lemma_l:
#a:sha2_alg
-> #m:m_spec{is_supported a m}
-> len:Spec.len_lt_max_a_t a
-> b:multiseq (lanes a m) len
-> i:nat{i < len / block_length a}
-> st:state_spec a m
-> l:nat{l < lanes a m} ->
Lemma
((state_spec_v (update_block len b i st)).[l] ==
Spec.update_block a len b.(|l... | [
{
"abbrev": true,
"full_module": "Hacl.Spec.SHA2.Lemmas",
"short_module": "Lemmas"
},
{
"abbrev": true,
"full_module": "Lib.ByteSequence",
"short_module": "BSeq"
},
{
"abbrev": true,
"full_module": "Lib.Sequence",
"short_module": "LSeq"
},
{
"abbrev": true,
"f... | false | let update_block_lemma_l #a #m len b i st l =
let mb = get_multiblock_spec len b i in
update_lemma_l mb st l | val update_block_lemma_l:
#a:sha2_alg
-> #m:m_spec{is_supported a m}
-> len:Spec.len_lt_max_a_t a
-> b:multiseq (lanes a m) len
-> i:nat{i < len / block_length a}
-> st:state_spec a m
-> l:nat{l < lanes a m} ->
Lemma
((state_spec_v (update_block len b i st)).[l] ==
Spec.update_block a len b.(|l... | false | null | true | let mb = get_multiblock_spec len b i in
update_lemma_l mb st l | {
"checked_file": "Hacl.Spec.SHA2.Equiv.fst.checked",
"dependencies": [
"Spec.Hash.Definitions.fst.checked",
"Spec.Agile.Hash.fsti.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.NTuple.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntVector.Serialize.fsti.chec... | [
"lemma"
] | [
"Spec.Hash.Definitions.sha2_alg",
"Hacl.Spec.SHA2.Vec.m_spec",
"Hacl.Spec.SHA2.Vec.is_supported",
"Hacl.Spec.SHA2.len_lt_max_a_t",
"Hacl.Spec.SHA2.Vec.multiseq",
"Hacl.Spec.SHA2.Vec.lanes",
"Prims.nat",
"Prims.b2t",
"Prims.op_LessThan",
"Prims.op_Division",
"Spec.Hash.Definitions.block_length",
... | [] | module Hacl.Spec.SHA2.Equiv
open FStar.Mul
open Lib.IntTypes
open Lib.NTuple
open Lib.Sequence
open Lib.IntVector
open Lib.IntVector.Serialize
open Lib.LoopCombinators
open Spec.Hash.Definitions
open Hacl.Spec.SHA2.Vec
module Spec = Hacl.Spec.SHA2
module LSeq = Lib.Sequence
module BSeq = Lib.ByteSequence
module Lemma... | false | false | Hacl.Spec.SHA2.Equiv.fst | {
"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... | null | val update_block_lemma_l:
#a:sha2_alg
-> #m:m_spec{is_supported a m}
-> len:Spec.len_lt_max_a_t a
-> b:multiseq (lanes a m) len
-> i:nat{i < len / block_length a}
-> st:state_spec a m
-> l:nat{l < lanes a m} ->
Lemma
((state_spec_v (update_block len b i st)).[l] ==
Spec.update_block a len b.(|l... | [] | Hacl.Spec.SHA2.Equiv.update_block_lemma_l | {
"file_name": "code/sha2-mb/Hacl.Spec.SHA2.Equiv.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} |
len: Hacl.Spec.SHA2.len_lt_max_a_t a ->
b: Hacl.Spec.SHA2.Vec.multiseq (Hacl.Spec.SHA2.Vec.lanes a m) len ->
i: Prims.nat{i < len / Spec.Hash.Definitions.block_length a} ->
st: Hacl.Spec.SHA2.Vec.state_spec a m ->
l: Prims.nat{l < Hacl.Spec.SHA2.Vec.lanes a m}
-> FStar.Pervasives.Lemma
(ensur... | {
"end_col": 24,
"end_line": 608,
"start_col": 45,
"start_line": 606
} |
FStar.Pervasives.Lemma | val init_lemma_l: a:sha2_alg -> m:m_spec -> l:nat{l < lanes a m} ->
Lemma ((state_spec_v (init a m)).[l] == Spec.init a) | [
{
"abbrev": true,
"full_module": "Hacl.Spec.SHA2.Lemmas",
"short_module": "Lemmas"
},
{
"abbrev": true,
"full_module": "Lib.ByteSequence",
"short_module": "BSeq"
},
{
"abbrev": true,
"full_module": "Lib.Sequence",
"short_module": "LSeq"
},
{
"abbrev": true,
"f... | false | let init_lemma_l a m l =
eq_intro #(word a) #(state_word_length a)
(state_spec_v (init a m)).[l] (Spec.init a) | val init_lemma_l: a:sha2_alg -> m:m_spec -> l:nat{l < lanes a m} ->
Lemma ((state_spec_v (init a m)).[l] == Spec.init a)
let init_lemma_l a m l = | false | null | true | eq_intro #(word a) #(state_word_length a) (state_spec_v (init a m)).[ l ] (Spec.init a) | {
"checked_file": "Hacl.Spec.SHA2.Equiv.fst.checked",
"dependencies": [
"Spec.Hash.Definitions.fst.checked",
"Spec.Agile.Hash.fsti.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.NTuple.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntVector.Serialize.fsti.chec... | [
"lemma"
] | [
"Spec.Hash.Definitions.sha2_alg",
"Hacl.Spec.SHA2.Vec.m_spec",
"Prims.nat",
"Prims.b2t",
"Prims.op_LessThan",
"Hacl.Spec.SHA2.Vec.lanes",
"Lib.Sequence.eq_intro",
"Hacl.Spec.SHA2.Vec.word",
"Spec.Hash.Definitions.state_word_length",
"Lib.Sequence.op_String_Access",
"Hacl.Spec.SHA2.Vec.words_stat... | [] | module Hacl.Spec.SHA2.Equiv
open FStar.Mul
open Lib.IntTypes
open Lib.NTuple
open Lib.Sequence
open Lib.IntVector
open Lib.IntVector.Serialize
open Lib.LoopCombinators
open Spec.Hash.Definitions
open Hacl.Spec.SHA2.Vec
module Spec = Hacl.Spec.SHA2
module LSeq = Lib.Sequence
module BSeq = Lib.ByteSequence
module Lemma... | false | false | Hacl.Spec.SHA2.Equiv.fst | {
"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... | null | val init_lemma_l: a:sha2_alg -> m:m_spec -> l:nat{l < lanes a m} ->
Lemma ((state_spec_v (init a m)).[l] == Spec.init a) | [] | Hacl.Spec.SHA2.Equiv.init_lemma_l | {
"file_name": "code/sha2-mb/Hacl.Spec.SHA2.Equiv.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} |
a: Spec.Hash.Definitions.sha2_alg ->
m: Hacl.Spec.SHA2.Vec.m_spec ->
l: Prims.nat{l < Hacl.Spec.SHA2.Vec.lanes a m}
-> FStar.Pervasives.Lemma
(ensures
(Hacl.Spec.SHA2.Vec.state_spec_v (Hacl.Spec.SHA2.Vec.init a m)).[ l ] == Hacl.Spec.SHA2.init a
) | {
"end_col": 47,
"end_line": 300,
"start_col": 2,
"start_line": 299
} |
FStar.Pervasives.Lemma | val update_last_lemma_l:
#a:sha2_alg
-> #m:m_spec{is_supported a m}
-> totlen:len_t a
-> len:nat{len <= block_length a}
-> b:multiseq (lanes a m) len
-> st:state_spec a m
-> l:nat{l < lanes a m} ->
Lemma ((state_spec_v (update_last totlen len b st)).[l] ==
Spec.update_last a totlen len b.(|l|) ((s... | [
{
"abbrev": true,
"full_module": "Hacl.Spec.SHA2.Lemmas",
"short_module": "Lemmas"
},
{
"abbrev": true,
"full_module": "Lib.ByteSequence",
"short_module": "BSeq"
},
{
"abbrev": true,
"full_module": "Lib.Sequence",
"short_module": "LSeq"
},
{
"abbrev": true,
"f... | false | let update_last_lemma_l #a #m totlen len b st0 l =
let blocks = padded_blocks a len in
let fin : nat = blocks * block_length a in
let total_len_bits = secret (shift_left #(len_int_type a) totlen 3ul) in
let totlen_seq = Lib.ByteSequence.uint_to_bytes_be #(len_int_type a) total_len_bits in
let (b0,b1) = load_l... | val update_last_lemma_l:
#a:sha2_alg
-> #m:m_spec{is_supported a m}
-> totlen:len_t a
-> len:nat{len <= block_length a}
-> b:multiseq (lanes a m) len
-> st:state_spec a m
-> l:nat{l < lanes a m} ->
Lemma ((state_spec_v (update_last totlen len b st)).[l] ==
Spec.update_last a totlen len b.(|l|) ((s... | false | null | true | let blocks = padded_blocks a len in
let fin:nat = blocks * block_length a in
let total_len_bits = secret (shift_left #(len_int_type a) totlen 3ul) in
let totlen_seq = Lib.ByteSequence.uint_to_bytes_be #(len_int_type a) total_len_bits in
let b0, b1 = load_last #a #m totlen_seq fin len b in
load_last_lemma_l #a #m totlen... | {
"checked_file": "Hacl.Spec.SHA2.Equiv.fst.checked",
"dependencies": [
"Spec.Hash.Definitions.fst.checked",
"Spec.Agile.Hash.fsti.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.NTuple.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntVector.Serialize.fsti.chec... | [
"lemma"
] | [
"Spec.Hash.Definitions.sha2_alg",
"Hacl.Spec.SHA2.Vec.m_spec",
"Hacl.Spec.SHA2.Vec.is_supported",
"Spec.Hash.Definitions.len_t",
"Prims.nat",
"Prims.b2t",
"Prims.op_LessThanOrEqual",
"Spec.Hash.Definitions.block_length",
"Hacl.Spec.SHA2.Vec.multiseq",
"Hacl.Spec.SHA2.Vec.lanes",
"Hacl.Spec.SHA2.... | [] | module Hacl.Spec.SHA2.Equiv
open FStar.Mul
open Lib.IntTypes
open Lib.NTuple
open Lib.Sequence
open Lib.IntVector
open Lib.IntVector.Serialize
open Lib.LoopCombinators
open Spec.Hash.Definitions
open Hacl.Spec.SHA2.Vec
module Spec = Hacl.Spec.SHA2
module LSeq = Lib.Sequence
module BSeq = Lib.ByteSequence
module Lemma... | false | false | Hacl.Spec.SHA2.Equiv.fst | {
"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... | null | val update_last_lemma_l:
#a:sha2_alg
-> #m:m_spec{is_supported a m}
-> totlen:len_t a
-> len:nat{len <= block_length a}
-> b:multiseq (lanes a m) len
-> st:state_spec a m
-> l:nat{l < lanes a m} ->
Lemma ((state_spec_v (update_last totlen len b st)).[l] ==
Spec.update_last a totlen len b.(|l|) ((s... | [] | Hacl.Spec.SHA2.Equiv.update_last_lemma_l | {
"file_name": "code/sha2-mb/Hacl.Spec.SHA2.Equiv.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} |
totlen: Spec.Hash.Definitions.len_t a ->
len: Prims.nat{len <= Spec.Hash.Definitions.block_length a} ->
b: Hacl.Spec.SHA2.Vec.multiseq (Hacl.Spec.SHA2.Vec.lanes a m) len ->
st: Hacl.Spec.SHA2.Vec.state_spec a m ->
l: Prims.nat{l < Hacl.Spec.SHA2.Vec.lanes a m}
-> FStar.Pervasives.Lemma
(ensur... | {
"end_col": 24,
"end_line": 494,
"start_col": 50,
"start_line": 485
} |
FStar.Pervasives.Lemma | val shuffle_lemma_l:
#a:sha2_alg
-> #m:m_spec
-> ws:ws_spec a m
-> st:state_spec a m
-> l:nat{l < lanes a m} ->
Lemma ((state_spec_v (shuffle ws st)).[l] ==
Spec.shuffle a (ws_spec_v ws).[l] (state_spec_v st).[l]) | [
{
"abbrev": true,
"full_module": "Hacl.Spec.SHA2.Lemmas",
"short_module": "Lemmas"
},
{
"abbrev": true,
"full_module": "Lib.ByteSequence",
"short_module": "BSeq"
},
{
"abbrev": true,
"full_module": "Lib.Sequence",
"short_module": "LSeq"
},
{
"abbrev": true,
"f... | false | let shuffle_lemma_l #a #m ws st l =
shuffle_loop_lemma #a #m ws st l (Spec.num_rounds16 a) | val shuffle_lemma_l:
#a:sha2_alg
-> #m:m_spec
-> ws:ws_spec a m
-> st:state_spec a m
-> l:nat{l < lanes a m} ->
Lemma ((state_spec_v (shuffle ws st)).[l] ==
Spec.shuffle a (ws_spec_v ws).[l] (state_spec_v st).[l])
let shuffle_lemma_l #a #m ws st l = | false | null | true | shuffle_loop_lemma #a #m ws st l (Spec.num_rounds16 a) | {
"checked_file": "Hacl.Spec.SHA2.Equiv.fst.checked",
"dependencies": [
"Spec.Hash.Definitions.fst.checked",
"Spec.Agile.Hash.fsti.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.NTuple.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntVector.Serialize.fsti.chec... | [
"lemma"
] | [
"Spec.Hash.Definitions.sha2_alg",
"Hacl.Spec.SHA2.Vec.m_spec",
"Hacl.Spec.SHA2.Vec.ws_spec",
"Hacl.Spec.SHA2.Vec.state_spec",
"Prims.nat",
"Prims.b2t",
"Prims.op_LessThan",
"Hacl.Spec.SHA2.Vec.lanes",
"Hacl.Spec.SHA2.Equiv.shuffle_loop_lemma",
"Hacl.Spec.SHA2.num_rounds16",
"Prims.unit"
] | [] | module Hacl.Spec.SHA2.Equiv
open FStar.Mul
open Lib.IntTypes
open Lib.NTuple
open Lib.Sequence
open Lib.IntVector
open Lib.IntVector.Serialize
open Lib.LoopCombinators
open Spec.Hash.Definitions
open Hacl.Spec.SHA2.Vec
module Spec = Hacl.Spec.SHA2
module LSeq = Lib.Sequence
module BSeq = Lib.ByteSequence
module Lemma... | false | false | Hacl.Spec.SHA2.Equiv.fst | {
"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... | null | val shuffle_lemma_l:
#a:sha2_alg
-> #m:m_spec
-> ws:ws_spec a m
-> st:state_spec a m
-> l:nat{l < lanes a m} ->
Lemma ((state_spec_v (shuffle ws st)).[l] ==
Spec.shuffle a (ws_spec_v ws).[l] (state_spec_v st).[l]) | [] | Hacl.Spec.SHA2.Equiv.shuffle_lemma_l | {
"file_name": "code/sha2-mb/Hacl.Spec.SHA2.Equiv.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} |
ws: Hacl.Spec.SHA2.Vec.ws_spec a m ->
st: Hacl.Spec.SHA2.Vec.state_spec a m ->
l: Prims.nat{l < Hacl.Spec.SHA2.Vec.lanes a m}
-> FStar.Pervasives.Lemma
(ensures
(Hacl.Spec.SHA2.Vec.state_spec_v (Hacl.Spec.SHA2.Vec.shuffle ws st)).[ l ] ==
Hacl.Spec.SHA2.shuffle a
(Hacl.Spec.SHA2.V... | {
"end_col": 56,
"end_line": 293,
"start_col": 2,
"start_line": 293
} |
FStar.Pervasives.Lemma | val hash_agile_lemma_l:
#a:sha2_alg
-> #m:m_spec{is_supported a m}
-> len:Spec.len_lt_max_a_t a
-> b:multiseq (lanes a m) len
-> l:nat{l < lanes a m} ->
Lemma ((hash #a #m len b).(|l|) == Spec.Agile.Hash.hash a b.(|l|)) | [
{
"abbrev": true,
"full_module": "Hacl.Spec.SHA2.Lemmas",
"short_module": "Lemmas"
},
{
"abbrev": true,
"full_module": "Lib.ByteSequence",
"short_module": "BSeq"
},
{
"abbrev": true,
"full_module": "Lib.Sequence",
"short_module": "LSeq"
},
{
"abbrev": true,
"f... | false | let hash_agile_lemma_l #a #m len b l =
hash_lemma_l #a #m len b l;
Hacl.Spec.SHA2.EquivScalar.hash_agile_lemma #a len b.(|l|) | val hash_agile_lemma_l:
#a:sha2_alg
-> #m:m_spec{is_supported a m}
-> len:Spec.len_lt_max_a_t a
-> b:multiseq (lanes a m) len
-> l:nat{l < lanes a m} ->
Lemma ((hash #a #m len b).(|l|) == Spec.Agile.Hash.hash a b.(|l|))
let hash_agile_lemma_l #a #m len b l = | false | null | true | hash_lemma_l #a #m len b l;
Hacl.Spec.SHA2.EquivScalar.hash_agile_lemma #a len b.(| l |) | {
"checked_file": "Hacl.Spec.SHA2.Equiv.fst.checked",
"dependencies": [
"Spec.Hash.Definitions.fst.checked",
"Spec.Agile.Hash.fsti.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.NTuple.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntVector.Serialize.fsti.chec... | [
"lemma"
] | [
"Spec.Hash.Definitions.sha2_alg",
"Hacl.Spec.SHA2.Vec.m_spec",
"Hacl.Spec.SHA2.Vec.is_supported",
"Hacl.Spec.SHA2.len_lt_max_a_t",
"Hacl.Spec.SHA2.Vec.multiseq",
"Hacl.Spec.SHA2.Vec.lanes",
"Prims.nat",
"Prims.b2t",
"Prims.op_LessThan",
"Hacl.Spec.SHA2.EquivScalar.hash_agile_lemma",
"Lib.NTuple.... | [] | module Hacl.Spec.SHA2.Equiv
open FStar.Mul
open Lib.IntTypes
open Lib.NTuple
open Lib.Sequence
open Lib.IntVector
open Lib.IntVector.Serialize
open Lib.LoopCombinators
open Spec.Hash.Definitions
open Hacl.Spec.SHA2.Vec
module Spec = Hacl.Spec.SHA2
module LSeq = Lib.Sequence
module BSeq = Lib.ByteSequence
module Lemma... | false | false | Hacl.Spec.SHA2.Equiv.fst | {
"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... | null | val hash_agile_lemma_l:
#a:sha2_alg
-> #m:m_spec{is_supported a m}
-> len:Spec.len_lt_max_a_t a
-> b:multiseq (lanes a m) len
-> l:nat{l < lanes a m} ->
Lemma ((hash #a #m len b).(|l|) == Spec.Agile.Hash.hash a b.(|l|)) | [] | Hacl.Spec.SHA2.Equiv.hash_agile_lemma_l | {
"file_name": "code/sha2-mb/Hacl.Spec.SHA2.Equiv.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} |
len: Hacl.Spec.SHA2.len_lt_max_a_t a ->
b: Hacl.Spec.SHA2.Vec.multiseq (Hacl.Spec.SHA2.Vec.lanes a m) len ->
l: Prims.nat{l < Hacl.Spec.SHA2.Vec.lanes a m}
-> FStar.Pervasives.Lemma
(ensures ( .(||) ) (Hacl.Spec.SHA2.Vec.hash len b) l == Spec.Agile.Hash.hash a (( .(||) ) b l)) | {
"end_col": 60,
"end_line": 700,
"start_col": 2,
"start_line": 699
} |
FStar.Pervasives.Lemma | val hash_lemma_l:
#a:sha2_alg
-> #m:m_spec{is_supported a m}
-> len:Spec.len_lt_max_a_t a
-> b:multiseq (lanes a m) len
-> l:nat{l < lanes a m} ->
Lemma ((hash #a #m len b).(|l|) == Spec.hash len b.(|l|)) | [
{
"abbrev": true,
"full_module": "Hacl.Spec.SHA2.Lemmas",
"short_module": "Lemmas"
},
{
"abbrev": true,
"full_module": "Lib.ByteSequence",
"short_module": "BSeq"
},
{
"abbrev": true,
"full_module": "Lib.Sequence",
"short_module": "LSeq"
},
{
"abbrev": true,
"f... | false | let hash_lemma_l #a #m len b l =
let len' : len_t a = Spec.mk_len_t a len in
let st0 = init a m in
init_lemma_l a m l;
let st1 = update_nblocks #a #m len b st0 in
update_nblocks_lemma_l #a #m len b st0 l;
let rem = len % block_length a in
let mb = get_multilast_spec #a #m len b in
let st = update_last l... | val hash_lemma_l:
#a:sha2_alg
-> #m:m_spec{is_supported a m}
-> len:Spec.len_lt_max_a_t a
-> b:multiseq (lanes a m) len
-> l:nat{l < lanes a m} ->
Lemma ((hash #a #m len b).(|l|) == Spec.hash len b.(|l|))
let hash_lemma_l #a #m len b l = | false | null | true | let len':len_t a = Spec.mk_len_t a len in
let st0 = init a m in
init_lemma_l a m l;
let st1 = update_nblocks #a #m len b st0 in
update_nblocks_lemma_l #a #m len b st0 l;
let rem = len % block_length a in
let mb = get_multilast_spec #a #m len b in
let st = update_last len' rem mb st1 in
update_last_lemma_l len' rem mb s... | {
"checked_file": "Hacl.Spec.SHA2.Equiv.fst.checked",
"dependencies": [
"Spec.Hash.Definitions.fst.checked",
"Spec.Agile.Hash.fsti.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.NTuple.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntVector.Serialize.fsti.chec... | [
"lemma"
] | [
"Spec.Hash.Definitions.sha2_alg",
"Hacl.Spec.SHA2.Vec.m_spec",
"Hacl.Spec.SHA2.Vec.is_supported",
"Hacl.Spec.SHA2.len_lt_max_a_t",
"Hacl.Spec.SHA2.Vec.multiseq",
"Hacl.Spec.SHA2.Vec.lanes",
"Prims.nat",
"Prims.b2t",
"Prims.op_LessThan",
"Hacl.Spec.SHA2.Equiv.finish_lemma_l",
"Prims.unit",
"Hac... | [] | module Hacl.Spec.SHA2.Equiv
open FStar.Mul
open Lib.IntTypes
open Lib.NTuple
open Lib.Sequence
open Lib.IntVector
open Lib.IntVector.Serialize
open Lib.LoopCombinators
open Spec.Hash.Definitions
open Hacl.Spec.SHA2.Vec
module Spec = Hacl.Spec.SHA2
module LSeq = Lib.Sequence
module BSeq = Lib.ByteSequence
module Lemma... | false | false | Hacl.Spec.SHA2.Equiv.fst | {
"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... | null | val hash_lemma_l:
#a:sha2_alg
-> #m:m_spec{is_supported a m}
-> len:Spec.len_lt_max_a_t a
-> b:multiseq (lanes a m) len
-> l:nat{l < lanes a m} ->
Lemma ((hash #a #m len b).(|l|) == Spec.hash len b.(|l|)) | [] | Hacl.Spec.SHA2.Equiv.hash_lemma_l | {
"file_name": "code/sha2-mb/Hacl.Spec.SHA2.Equiv.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} |
len: Hacl.Spec.SHA2.len_lt_max_a_t a ->
b: Hacl.Spec.SHA2.Vec.multiseq (Hacl.Spec.SHA2.Vec.lanes a m) len ->
l: Prims.nat{l < Hacl.Spec.SHA2.Vec.lanes a m}
-> FStar.Pervasives.Lemma
(ensures ( .(||) ) (Hacl.Spec.SHA2.Vec.hash len b) l == Hacl.Spec.SHA2.hash len (( .(||) ) b l)) | {
"end_col": 21,
"end_line": 675,
"start_col": 32,
"start_line": 665
} |
FStar.Pervasives.Lemma | val finish_lemma_l:
#a:sha2_alg
-> #m:m_spec{is_supported a m}
-> st:state_spec a m
-> l:nat{l < lanes a m} ->
Lemma ((finish st).(|l|) == Spec.finish a (state_spec_v st).[l]) | [
{
"abbrev": true,
"full_module": "Hacl.Spec.SHA2.Lemmas",
"short_module": "Lemmas"
},
{
"abbrev": true,
"full_module": "Lib.ByteSequence",
"short_module": "BSeq"
},
{
"abbrev": true,
"full_module": "Lib.Sequence",
"short_module": "LSeq"
},
{
"abbrev": true,
"f... | false | let finish_lemma_l #a #m st l =
store_state_lemma_l #a #m st l | val finish_lemma_l:
#a:sha2_alg
-> #m:m_spec{is_supported a m}
-> st:state_spec a m
-> l:nat{l < lanes a m} ->
Lemma ((finish st).(|l|) == Spec.finish a (state_spec_v st).[l])
let finish_lemma_l #a #m st l = | false | null | true | store_state_lemma_l #a #m st l | {
"checked_file": "Hacl.Spec.SHA2.Equiv.fst.checked",
"dependencies": [
"Spec.Hash.Definitions.fst.checked",
"Spec.Agile.Hash.fsti.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.NTuple.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntVector.Serialize.fsti.chec... | [
"lemma"
] | [
"Spec.Hash.Definitions.sha2_alg",
"Hacl.Spec.SHA2.Vec.m_spec",
"Hacl.Spec.SHA2.Vec.is_supported",
"Hacl.Spec.SHA2.Vec.state_spec",
"Prims.nat",
"Prims.b2t",
"Prims.op_LessThan",
"Hacl.Spec.SHA2.Vec.lanes",
"Hacl.Spec.SHA2.Equiv.store_state_lemma_l",
"Prims.unit"
] | [] | module Hacl.Spec.SHA2.Equiv
open FStar.Mul
open Lib.IntTypes
open Lib.NTuple
open Lib.Sequence
open Lib.IntVector
open Lib.IntVector.Serialize
open Lib.LoopCombinators
open Spec.Hash.Definitions
open Hacl.Spec.SHA2.Vec
module Spec = Hacl.Spec.SHA2
module LSeq = Lib.Sequence
module BSeq = Lib.ByteSequence
module Lemma... | false | false | Hacl.Spec.SHA2.Equiv.fst | {
"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... | null | val finish_lemma_l:
#a:sha2_alg
-> #m:m_spec{is_supported a m}
-> st:state_spec a m
-> l:nat{l < lanes a m} ->
Lemma ((finish st).(|l|) == Spec.finish a (state_spec_v st).[l]) | [] | Hacl.Spec.SHA2.Equiv.finish_lemma_l | {
"file_name": "code/sha2-mb/Hacl.Spec.SHA2.Equiv.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | st: Hacl.Spec.SHA2.Vec.state_spec a m -> l: Prims.nat{l < Hacl.Spec.SHA2.Vec.lanes a m}
-> FStar.Pervasives.Lemma
(ensures
( .(||) ) (Hacl.Spec.SHA2.Vec.finish st) l ==
Hacl.Spec.SHA2.finish a (Hacl.Spec.SHA2.Vec.state_spec_v st).[ l ]) | {
"end_col": 32,
"end_line": 591,
"start_col": 2,
"start_line": 591
} |
FStar.Pervasives.Lemma | val _Maj_lemma (#a #m x y z: _)
: Lemma
(vec_v (_Maj #a #m x y z) ==
LSeq.createi (lanes a m)
(fun i -> Spec._Maj a (vec_v x).[ i ] (vec_v y).[ i ] (vec_v z).[ i ]))
[SMTPat (_Maj x y z)] | [
{
"abbrev": true,
"full_module": "Hacl.Spec.SHA2.Lemmas",
"short_module": "Lemmas"
},
{
"abbrev": true,
"full_module": "Lib.ByteSequence",
"short_module": "BSeq"
},
{
"abbrev": true,
"full_module": "Lib.Sequence",
"short_module": "LSeq"
},
{
"abbrev": true,
"f... | false | let _Maj_lemma #a #m x y z :
Lemma (vec_v (_Maj #a #m x y z) ==
LSeq.createi (lanes a m) (fun i -> Spec._Maj a (vec_v x).[i] (vec_v y).[i] (vec_v z).[i]))
[SMTPat (_Maj x y z)]
=
LSeq.eq_intro (vec_v (_Maj #a #m x y z))
(LSeq.createi (lanes a m) (fun i -> Spec._Maj a (vec_v x).[i] (vec_v y).[i] (vec_v z)... | val _Maj_lemma (#a #m x y z: _)
: Lemma
(vec_v (_Maj #a #m x y z) ==
LSeq.createi (lanes a m)
(fun i -> Spec._Maj a (vec_v x).[ i ] (vec_v y).[ i ] (vec_v z).[ i ]))
[SMTPat (_Maj x y z)]
let _Maj_lemma #a #m x y z
: Lemma
(vec_v (_Maj #a #m x y z) ==
LSeq.createi (la... | false | null | true | LSeq.eq_intro (vec_v (_Maj #a #m x y z))
(LSeq.createi (lanes a m) (fun i -> Spec._Maj a (vec_v x).[ i ] (vec_v y).[ i ] (vec_v z).[ i ])) | {
"checked_file": "Hacl.Spec.SHA2.Equiv.fst.checked",
"dependencies": [
"Spec.Hash.Definitions.fst.checked",
"Spec.Agile.Hash.fsti.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.NTuple.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntVector.Serialize.fsti.chec... | [
"lemma"
] | [
"Spec.Hash.Definitions.sha2_alg",
"Hacl.Spec.SHA2.Vec.m_spec",
"Lib.IntVector.vec_t",
"Spec.Hash.Definitions.word_t",
"Hacl.Spec.SHA2.Vec.lanes",
"Lib.Sequence.eq_intro",
"Lib.IntTypes.uint_t",
"Lib.IntTypes.SEC",
"Lib.IntVector.vec_v",
"Hacl.Spec.SHA2.Vec._Maj",
"Lib.Sequence.createi",
"Spec.... | [] | module Hacl.Spec.SHA2.Equiv
open FStar.Mul
open Lib.IntTypes
open Lib.NTuple
open Lib.Sequence
open Lib.IntVector
open Lib.IntVector.Serialize
open Lib.LoopCombinators
open Spec.Hash.Definitions
open Hacl.Spec.SHA2.Vec
module Spec = Hacl.Spec.SHA2
module LSeq = Lib.Sequence
module BSeq = Lib.ByteSequence
module Lemma... | false | false | Hacl.Spec.SHA2.Equiv.fst | {
"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... | null | val _Maj_lemma (#a #m x y z: _)
: Lemma
(vec_v (_Maj #a #m x y z) ==
LSeq.createi (lanes a m)
(fun i -> Spec._Maj a (vec_v x).[ i ] (vec_v y).[ i ] (vec_v z).[ i ]))
[SMTPat (_Maj x y z)] | [] | Hacl.Spec.SHA2.Equiv._Maj_lemma | {
"file_name": "code/sha2-mb/Hacl.Spec.SHA2.Equiv.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} |
x: Lib.IntVector.vec_t (Spec.Hash.Definitions.word_t a) (Hacl.Spec.SHA2.Vec.lanes a m) ->
y: Lib.IntVector.vec_t (Spec.Hash.Definitions.word_t a) (Hacl.Spec.SHA2.Vec.lanes a m) ->
z: Lib.IntVector.vec_t (Spec.Hash.Definitions.word_t a) (Hacl.Spec.SHA2.Vec.lanes a m)
-> FStar.Pervasives.Lemma
(ensur... | {
"end_col": 95,
"end_line": 36,
"start_col": 2,
"start_line": 35
} |
FStar.Pervasives.Lemma | val _Ch_lemma (#a #m x y z: _)
: Lemma
(vec_v (_Ch #a #m x y z) ==
LSeq.createi (lanes a m)
(fun i -> Spec._Ch a (vec_v x).[ i ] (vec_v y).[ i ] (vec_v z).[ i ]))
[SMTPat (_Ch x y z)] | [
{
"abbrev": true,
"full_module": "Hacl.Spec.SHA2.Lemmas",
"short_module": "Lemmas"
},
{
"abbrev": true,
"full_module": "Lib.ByteSequence",
"short_module": "BSeq"
},
{
"abbrev": true,
"full_module": "Lib.Sequence",
"short_module": "LSeq"
},
{
"abbrev": true,
"f... | false | let _Ch_lemma #a #m x y z :
Lemma (vec_v (_Ch #a #m x y z) ==
LSeq.createi (lanes a m) (fun i -> Spec._Ch a (vec_v x).[i] (vec_v y).[i] (vec_v z).[i]))
[SMTPat (_Ch x y z)]
=
LSeq.eq_intro (vec_v (_Ch #a #m x y z))
(LSeq.createi (lanes a m) (fun i -> Spec._Ch a (vec_v x).[i] (vec_v y).[i] (vec_v z).[i])) | val _Ch_lemma (#a #m x y z: _)
: Lemma
(vec_v (_Ch #a #m x y z) ==
LSeq.createi (lanes a m)
(fun i -> Spec._Ch a (vec_v x).[ i ] (vec_v y).[ i ] (vec_v z).[ i ]))
[SMTPat (_Ch x y z)]
let _Ch_lemma #a #m x y z
: Lemma
(vec_v (_Ch #a #m x y z) ==
LSeq.createi (lanes a ... | false | null | true | LSeq.eq_intro (vec_v (_Ch #a #m x y z))
(LSeq.createi (lanes a m) (fun i -> Spec._Ch a (vec_v x).[ i ] (vec_v y).[ i ] (vec_v z).[ i ])) | {
"checked_file": "Hacl.Spec.SHA2.Equiv.fst.checked",
"dependencies": [
"Spec.Hash.Definitions.fst.checked",
"Spec.Agile.Hash.fsti.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.NTuple.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntVector.Serialize.fsti.chec... | [
"lemma"
] | [
"Spec.Hash.Definitions.sha2_alg",
"Hacl.Spec.SHA2.Vec.m_spec",
"Lib.IntVector.vec_t",
"Spec.Hash.Definitions.word_t",
"Hacl.Spec.SHA2.Vec.lanes",
"Lib.Sequence.eq_intro",
"Lib.IntTypes.uint_t",
"Lib.IntTypes.SEC",
"Lib.IntVector.vec_v",
"Hacl.Spec.SHA2.Vec._Ch",
"Lib.Sequence.createi",
"Spec.H... | [] | module Hacl.Spec.SHA2.Equiv
open FStar.Mul
open Lib.IntTypes
open Lib.NTuple
open Lib.Sequence
open Lib.IntVector
open Lib.IntVector.Serialize
open Lib.LoopCombinators
open Spec.Hash.Definitions
open Hacl.Spec.SHA2.Vec
module Spec = Hacl.Spec.SHA2
module LSeq = Lib.Sequence
module BSeq = Lib.ByteSequence
module Lemma... | false | false | Hacl.Spec.SHA2.Equiv.fst | {
"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... | null | val _Ch_lemma (#a #m x y z: _)
: Lemma
(vec_v (_Ch #a #m x y z) ==
LSeq.createi (lanes a m)
(fun i -> Spec._Ch a (vec_v x).[ i ] (vec_v y).[ i ] (vec_v z).[ i ]))
[SMTPat (_Ch x y z)] | [] | Hacl.Spec.SHA2.Equiv._Ch_lemma | {
"file_name": "code/sha2-mb/Hacl.Spec.SHA2.Equiv.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} |
x: Lib.IntVector.vec_t (Spec.Hash.Definitions.word_t a) (Hacl.Spec.SHA2.Vec.lanes a m) ->
y: Lib.IntVector.vec_t (Spec.Hash.Definitions.word_t a) (Hacl.Spec.SHA2.Vec.lanes a m) ->
z: Lib.IntVector.vec_t (Spec.Hash.Definitions.word_t a) (Hacl.Spec.SHA2.Vec.lanes a m)
-> FStar.Pervasives.Lemma
(ensur... | {
"end_col": 94,
"end_line": 27,
"start_col": 2,
"start_line": 26
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.