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 | [
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": false,
"full_module": "FStar.Ghost",
"short_module": null
},
{
"abbrev": false,
"full_modu... | false | let disjoint_1 a b = disjoint a b | let disjoint_1 a b = | false | null | false | disjoint a b | {
"checked_file": "FStar.Buffer.fst.checked",
"dependencies": [
"prims.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.UInt.fsti.checked",
"FStar.TSet.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.che... | [
"total"
] | [
"FStar.Buffer.buffer",
"FStar.Buffer.disjoint"
] | [] | (*
Copyright 2008-2018 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | false | false | FStar.Buffer.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 1,
"max_fuel": 0,
"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 disjoint_1 : a: FStar.Buffer.buffer _ -> b: FStar.Buffer.buffer _ -> Type0 | [] | FStar.Buffer.disjoint_1 | {
"file_name": "ulib/legacy/FStar.Buffer.fst",
"git_rev": "f4cbb7a38d67eeb13fbdb2f4fb8a44a65cbcdc1f",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | a: FStar.Buffer.buffer _ -> b: FStar.Buffer.buffer _ -> Type0 | {
"end_col": 33,
"end_line": 199,
"start_col": 21,
"start_line": 199
} | |
FStar.Pervasives.Lemma | val eq_lemma2:
#a:eqtype
-> b1:buffer a
-> b2:buffer a
-> len:UInt32.t{v len <= length b1 /\ v len <= length b2}
-> h:mem
-> Lemma
(requires equal h (sub b1 0ul len) h (sub b2 0ul len))
(ensures (forall (j:nat). j < v len ==> get h b1 j == get h b2 j))
[SMTPat (equal h (sub b1 0ul len) h (sub... | [
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": false,
"full_module": "FStar.Ghost",
"short_module": null
},
{
"abbrev": false,
"full_modu... | false | let eq_lemma2 #a b1 b2 len h =
let s1 = as_seq h (sub b1 0ul len) in
let s2 = as_seq h (sub b2 0ul len) in
cut (forall (j:nat). j < v len ==> get h b1 j == Seq.index s1 j);
cut (forall (j:nat). j < v len ==> get h b2 j == Seq.index s2 j) | val eq_lemma2:
#a:eqtype
-> b1:buffer a
-> b2:buffer a
-> len:UInt32.t{v len <= length b1 /\ v len <= length b2}
-> h:mem
-> Lemma
(requires equal h (sub b1 0ul len) h (sub b2 0ul len))
(ensures (forall (j:nat). j < v len ==> get h b1 j == get h b2 j))
[SMTPat (equal h (sub b1 0ul len) h (sub... | false | null | true | let s1 = as_seq h (sub b1 0ul len) in
let s2 = as_seq h (sub b2 0ul len) in
cut (forall (j: nat). j < v len ==> get h b1 j == Seq.index s1 j);
cut (forall (j: nat). j < v len ==> get h b2 j == Seq.index s2 j) | {
"checked_file": "FStar.Buffer.fst.checked",
"dependencies": [
"prims.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.UInt.fsti.checked",
"FStar.TSet.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.che... | [
"lemma"
] | [
"Prims.eqtype",
"FStar.Buffer.buffer",
"FStar.UInt32.t",
"Prims.l_and",
"Prims.b2t",
"Prims.op_LessThanOrEqual",
"FStar.UInt32.v",
"FStar.Buffer.length",
"FStar.Monotonic.HyperStack.mem",
"Prims.cut",
"Prims.l_Forall",
"Prims.nat",
"Prims.l_imp",
"Prims.op_LessThan",
"Prims.eq2",
"FSta... | [] | (*
Copyright 2008-2018 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | false | false | FStar.Buffer.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 eq_lemma2:
#a:eqtype
-> b1:buffer a
-> b2:buffer a
-> len:UInt32.t{v len <= length b1 /\ v len <= length b2}
-> h:mem
-> Lemma
(requires equal h (sub b1 0ul len) h (sub b2 0ul len))
(ensures (forall (j:nat). j < v len ==> get h b1 j == get h b2 j))
[SMTPat (equal h (sub b1 0ul len) h (sub... | [] | FStar.Buffer.eq_lemma2 | {
"file_name": "ulib/legacy/FStar.Buffer.fst",
"git_rev": "f4cbb7a38d67eeb13fbdb2f4fb8a44a65cbcdc1f",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} |
b1: FStar.Buffer.buffer a ->
b2: FStar.Buffer.buffer a ->
len:
FStar.UInt32.t
{ FStar.UInt32.v len <= FStar.Buffer.length b1 /\
FStar.UInt32.v len <= FStar.Buffer.length b2 } ->
h: FStar.Monotonic.HyperStack.mem
-> FStar.Pervasives.Lemma
(requires FStar.Buffer.equal h (F... | {
"end_col": 66,
"end_line": 1112,
"start_col": 30,
"start_line": 1108
} |
FStar.HyperStack.ST.ST | val rcreate_common (#a: Type) (r: rid) (init: a) (len: UInt32.t) (mm: bool)
: ST (buffer a)
(requires (fun h0 -> is_eternal_region r))
(ensures (fun h0 b h1 -> rcreate_post_common r init len b h0 h1 /\ is_mm b.content == mm)) | [
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": false,
"full_module": "FStar.Ghost",
"short_module": null
},
{
"abbrev": false,
"full_modu... | false | let rcreate_common (#a:Type) (r:rid) (init:a) (len:UInt32.t) (mm:bool)
:ST (buffer a) (requires (fun h0 -> is_eternal_region r))
(ensures (fun h0 b h1 -> rcreate_post_common r init len b h0 h1 /\
is_mm b.content == mm))
= let h0 = HST.get() in
let s = Seq.create ... | val rcreate_common (#a: Type) (r: rid) (init: a) (len: UInt32.t) (mm: bool)
: ST (buffer a)
(requires (fun h0 -> is_eternal_region r))
(ensures (fun h0 b h1 -> rcreate_post_common r init len b h0 h1 /\ is_mm b.content == mm))
let rcreate_common (#a: Type) (r: rid) (init: a) (len: UInt32.t) (mm: bool)
... | true | null | false | let h0 = HST.get () in
let s = Seq.create (v len) init in
let content:reference (lseq a (v len)) = if mm then ralloc_mm r s else ralloc r s in
let b = MkBuffer len content 0ul len in
let h1 = HST.get () in
assert (Seq.equal (as_seq h1 b) (sel h1 b));
lemma_upd h0 content s;
b | {
"checked_file": "FStar.Buffer.fst.checked",
"dependencies": [
"prims.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.UInt.fsti.checked",
"FStar.TSet.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.che... | [] | [
"FStar.Monotonic.HyperHeap.rid",
"FStar.UInt32.t",
"Prims.bool",
"Prims.unit",
"FStar.Buffer.lemma_upd",
"FStar.Buffer.lseq",
"FStar.UInt32.v",
"Prims._assert",
"FStar.Seq.Base.equal",
"FStar.Buffer.as_seq",
"FStar.Buffer.sel",
"FStar.Buffer.buffer",
"FStar.Monotonic.HyperStack.mem",
"FSta... | [] | (*
Copyright 2008-2018 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | false | false | FStar.Buffer.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 1,
"max_fuel": 0,
"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 rcreate_common (#a: Type) (r: rid) (init: a) (len: UInt32.t) (mm: bool)
: ST (buffer a)
(requires (fun h0 -> is_eternal_region r))
(ensures (fun h0 b h1 -> rcreate_post_common r init len b h0 h1 /\ is_mm b.content == mm)) | [] | FStar.Buffer.rcreate_common | {
"file_name": "ulib/legacy/FStar.Buffer.fst",
"git_rev": "f4cbb7a38d67eeb13fbdb2f4fb8a44a65cbcdc1f",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | r: FStar.Monotonic.HyperHeap.rid -> init: a -> len: FStar.UInt32.t -> mm: Prims.bool
-> FStar.HyperStack.ST.ST (FStar.Buffer.buffer a) | {
"end_col": 5,
"end_line": 889,
"start_col": 3,
"start_line": 880
} |
Prims.Tot | [
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": false,
"full_module": "FStar.Ghost",
"short_module": null
},
{
"abbrev": false,
"full_modu... | false | let disjoint_2 a b b' = disjoint a b /\ disjoint a b' | let disjoint_2 a b b' = | false | null | false | disjoint a b /\ disjoint a b' | {
"checked_file": "FStar.Buffer.fst.checked",
"dependencies": [
"prims.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.UInt.fsti.checked",
"FStar.TSet.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.che... | [
"total"
] | [
"FStar.Buffer.buffer",
"Prims.l_and",
"FStar.Buffer.disjoint",
"Prims.logical"
] | [] | (*
Copyright 2008-2018 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | false | false | FStar.Buffer.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 1,
"max_fuel": 0,
"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 disjoint_2 : a: FStar.Buffer.buffer _ -> b: FStar.Buffer.buffer _ -> b': FStar.Buffer.buffer _ -> Prims.logical | [] | FStar.Buffer.disjoint_2 | {
"file_name": "ulib/legacy/FStar.Buffer.fst",
"git_rev": "f4cbb7a38d67eeb13fbdb2f4fb8a44a65cbcdc1f",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | a: FStar.Buffer.buffer _ -> b: FStar.Buffer.buffer _ -> b': FStar.Buffer.buffer _ -> Prims.logical | {
"end_col": 53,
"end_line": 200,
"start_col": 24,
"start_line": 200
} | |
Prims.Tot | [
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": false,
"full_module": "FStar.Ghost",
"short_module": null
},
{
"abbrev": false,
"full_modu... | false | let disjoint_3 a b b' b'' = disjoint a b /\ disjoint a b' /\ disjoint a b'' | let disjoint_3 a b b' b'' = | false | null | false | disjoint a b /\ disjoint a b' /\ disjoint a b'' | {
"checked_file": "FStar.Buffer.fst.checked",
"dependencies": [
"prims.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.UInt.fsti.checked",
"FStar.TSet.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.che... | [
"total"
] | [
"FStar.Buffer.buffer",
"Prims.l_and",
"FStar.Buffer.disjoint",
"Prims.logical"
] | [] | (*
Copyright 2008-2018 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | false | false | FStar.Buffer.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 1,
"max_fuel": 0,
"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 disjoint_3 : a: FStar.Buffer.buffer _ ->
b: FStar.Buffer.buffer _ ->
b': FStar.Buffer.buffer _ ->
b'': FStar.Buffer.buffer _
-> Prims.logical | [] | FStar.Buffer.disjoint_3 | {
"file_name": "ulib/legacy/FStar.Buffer.fst",
"git_rev": "f4cbb7a38d67eeb13fbdb2f4fb8a44a65cbcdc1f",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} |
a: FStar.Buffer.buffer _ ->
b: FStar.Buffer.buffer _ ->
b': FStar.Buffer.buffer _ ->
b'': FStar.Buffer.buffer _
-> Prims.logical | {
"end_col": 75,
"end_line": 201,
"start_col": 28,
"start_line": 201
} | |
Prims.Tot | [
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": false,
"full_module": "FStar.Ghost",
"short_module": null
},
{
"abbrev": false,
"full_modu... | false | let disjoint_5 a b b' b'' b''' b'''' = disjoint a b /\ disjoint a b' /\ disjoint a b'' /\ disjoint a b''' /\ disjoint a b'''' | let disjoint_5 a b b' b'' b''' b'''' = | false | null | false | disjoint a b /\ disjoint a b' /\ disjoint a b'' /\ disjoint a b''' /\ disjoint a b'''' | {
"checked_file": "FStar.Buffer.fst.checked",
"dependencies": [
"prims.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.UInt.fsti.checked",
"FStar.TSet.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.che... | [
"total"
] | [
"FStar.Buffer.buffer",
"Prims.l_and",
"FStar.Buffer.disjoint",
"Prims.logical"
] | [] | (*
Copyright 2008-2018 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | false | false | FStar.Buffer.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 1,
"max_fuel": 0,
"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 disjoint_5 : a: FStar.Buffer.buffer _ ->
b: FStar.Buffer.buffer _ ->
b': FStar.Buffer.buffer _ ->
b'': FStar.Buffer.buffer _ ->
b''': FStar.Buffer.buffer _ ->
b'''': FStar.Buffer.buffer _
-> Prims.logical | [] | FStar.Buffer.disjoint_5 | {
"file_name": "ulib/legacy/FStar.Buffer.fst",
"git_rev": "f4cbb7a38d67eeb13fbdb2f4fb8a44a65cbcdc1f",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} |
a: FStar.Buffer.buffer _ ->
b: FStar.Buffer.buffer _ ->
b': FStar.Buffer.buffer _ ->
b'': FStar.Buffer.buffer _ ->
b''': FStar.Buffer.buffer _ ->
b'''': FStar.Buffer.buffer _
-> Prims.logical | {
"end_col": 125,
"end_line": 203,
"start_col": 39,
"start_line": 203
} | |
Prims.Tot | [
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": false,
"full_module": "FStar.Ghost",
"short_module": null
},
{
"abbrev": false,
"full_modu... | false | let disjoint_4 a b b' b'' b''' = disjoint a b /\ disjoint a b' /\ disjoint a b'' /\ disjoint a b''' | let disjoint_4 a b b' b'' b''' = | false | null | false | disjoint a b /\ disjoint a b' /\ disjoint a b'' /\ disjoint a b''' | {
"checked_file": "FStar.Buffer.fst.checked",
"dependencies": [
"prims.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.UInt.fsti.checked",
"FStar.TSet.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.che... | [
"total"
] | [
"FStar.Buffer.buffer",
"Prims.l_and",
"FStar.Buffer.disjoint",
"Prims.logical"
] | [] | (*
Copyright 2008-2018 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | false | false | FStar.Buffer.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 1,
"max_fuel": 0,
"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 disjoint_4 : a: FStar.Buffer.buffer _ ->
b: FStar.Buffer.buffer _ ->
b': FStar.Buffer.buffer _ ->
b'': FStar.Buffer.buffer _ ->
b''': FStar.Buffer.buffer _
-> Prims.logical | [] | FStar.Buffer.disjoint_4 | {
"file_name": "ulib/legacy/FStar.Buffer.fst",
"git_rev": "f4cbb7a38d67eeb13fbdb2f4fb8a44a65cbcdc1f",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} |
a: FStar.Buffer.buffer _ ->
b: FStar.Buffer.buffer _ ->
b': FStar.Buffer.buffer _ ->
b'': FStar.Buffer.buffer _ ->
b''': FStar.Buffer.buffer _
-> Prims.logical | {
"end_col": 99,
"end_line": 202,
"start_col": 33,
"start_line": 202
} | |
Prims.Tot | [
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": false,
"full_module": "FStar.Ghost",
"short_module": null
},
{
"abbrev": false,
"full_modu... | false | let disjoint_ref_1 (#t:Type) (#u:Type) (a:buffer t) (r:reference u) =
frameOf a =!= HS.frameOf r \/ as_addr a =!= HS.as_addr r | let disjoint_ref_1 (#t #u: Type) (a: buffer t) (r: reference u) = | false | null | false | frameOf a =!= HS.frameOf r \/ as_addr a =!= HS.as_addr r | {
"checked_file": "FStar.Buffer.fst.checked",
"dependencies": [
"prims.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.UInt.fsti.checked",
"FStar.TSet.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.che... | [
"total"
] | [
"FStar.Buffer.buffer",
"FStar.HyperStack.ST.reference",
"Prims.l_or",
"Prims.l_not",
"Prims.eq2",
"FStar.Monotonic.HyperHeap.rid",
"FStar.Buffer.frameOf",
"FStar.Monotonic.HyperStack.frameOf",
"FStar.Heap.trivial_preorder",
"Prims.pos",
"FStar.Buffer.as_addr",
"FStar.Monotonic.HyperStack.as_ad... | [] | (*
Copyright 2008-2018 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | false | false | FStar.Buffer.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 1,
"max_fuel": 0,
"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 disjoint_ref_1 : a: FStar.Buffer.buffer t -> r: FStar.HyperStack.ST.reference u169 -> Prims.logical | [] | FStar.Buffer.disjoint_ref_1 | {
"file_name": "ulib/legacy/FStar.Buffer.fst",
"git_rev": "f4cbb7a38d67eeb13fbdb2f4fb8a44a65cbcdc1f",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | a: FStar.Buffer.buffer t -> r: FStar.HyperStack.ST.reference u169 -> Prims.logical | {
"end_col": 58,
"end_line": 206,
"start_col": 2,
"start_line": 206
} | |
Prims.Tot | [
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": false,
"full_module": "FStar.Ghost",
"short_module": null
},
{
"abbrev": false,
"full_modu... | false | let disjoint_ref_2 a r r' = disjoint_ref_1 a r /\ disjoint_ref_1 a r' | let disjoint_ref_2 a r r' = | false | null | false | disjoint_ref_1 a r /\ disjoint_ref_1 a r' | {
"checked_file": "FStar.Buffer.fst.checked",
"dependencies": [
"prims.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.UInt.fsti.checked",
"FStar.TSet.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.che... | [
"total"
] | [
"FStar.Buffer.buffer",
"FStar.HyperStack.ST.reference",
"Prims.l_and",
"FStar.Buffer.disjoint_ref_1",
"Prims.logical"
] | [] | (*
Copyright 2008-2018 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | false | false | FStar.Buffer.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 1,
"max_fuel": 0,
"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 disjoint_ref_2 : a: FStar.Buffer.buffer _ ->
r: FStar.HyperStack.ST.reference _ ->
r': FStar.HyperStack.ST.reference _
-> Prims.logical | [] | FStar.Buffer.disjoint_ref_2 | {
"file_name": "ulib/legacy/FStar.Buffer.fst",
"git_rev": "f4cbb7a38d67eeb13fbdb2f4fb8a44a65cbcdc1f",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} |
a: FStar.Buffer.buffer _ ->
r: FStar.HyperStack.ST.reference _ ->
r': FStar.HyperStack.ST.reference _
-> Prims.logical | {
"end_col": 69,
"end_line": 207,
"start_col": 28,
"start_line": 207
} | |
Prims.Tot | [
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": false,
"full_module": "FStar.Ghost",
"short_module": null
},
{
"abbrev": false,
"full_modu... | false | let disjoint_ref_4 a r r' r'' r''' = disjoint_ref_1 a r /\ disjoint_ref_3 a r' r'' r''' | let disjoint_ref_4 a r r' r'' r''' = | false | null | false | disjoint_ref_1 a r /\ disjoint_ref_3 a r' r'' r''' | {
"checked_file": "FStar.Buffer.fst.checked",
"dependencies": [
"prims.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.UInt.fsti.checked",
"FStar.TSet.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.che... | [
"total"
] | [
"FStar.Buffer.buffer",
"FStar.HyperStack.ST.reference",
"Prims.l_and",
"FStar.Buffer.disjoint_ref_1",
"FStar.Buffer.disjoint_ref_3",
"Prims.logical"
] | [] | (*
Copyright 2008-2018 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | false | false | FStar.Buffer.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 1,
"max_fuel": 0,
"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 disjoint_ref_4 : a: FStar.Buffer.buffer _ ->
r: FStar.HyperStack.ST.reference _ ->
r': FStar.HyperStack.ST.reference _ ->
r'': FStar.HyperStack.ST.reference _ ->
r''': FStar.HyperStack.ST.reference _
-> Prims.logical | [] | FStar.Buffer.disjoint_ref_4 | {
"file_name": "ulib/legacy/FStar.Buffer.fst",
"git_rev": "f4cbb7a38d67eeb13fbdb2f4fb8a44a65cbcdc1f",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} |
a: FStar.Buffer.buffer _ ->
r: FStar.HyperStack.ST.reference _ ->
r': FStar.HyperStack.ST.reference _ ->
r'': FStar.HyperStack.ST.reference _ ->
r''': FStar.HyperStack.ST.reference _
-> Prims.logical | {
"end_col": 87,
"end_line": 209,
"start_col": 37,
"start_line": 209
} | |
Prims.Tot | [
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": false,
"full_module": "FStar.Ghost",
"short_module": null
},
{
"abbrev": false,
"full_modu... | false | let disjoint_ref_5 a r r' r'' r''' r'''' = disjoint_ref_1 a r /\ disjoint_ref_4 a r' r'' r''' r'''' | let disjoint_ref_5 a r r' r'' r''' r'''' = | false | null | false | disjoint_ref_1 a r /\ disjoint_ref_4 a r' r'' r''' r'''' | {
"checked_file": "FStar.Buffer.fst.checked",
"dependencies": [
"prims.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.UInt.fsti.checked",
"FStar.TSet.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.che... | [
"total"
] | [
"FStar.Buffer.buffer",
"FStar.HyperStack.ST.reference",
"Prims.l_and",
"FStar.Buffer.disjoint_ref_1",
"FStar.Buffer.disjoint_ref_4",
"Prims.logical"
] | [] | (*
Copyright 2008-2018 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | false | false | FStar.Buffer.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 1,
"max_fuel": 0,
"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 disjoint_ref_5 : a: FStar.Buffer.buffer _ ->
r: FStar.HyperStack.ST.reference _ ->
r': FStar.HyperStack.ST.reference _ ->
r'': FStar.HyperStack.ST.reference _ ->
r''': FStar.HyperStack.ST.reference _ ->
r'''': FStar.HyperStack.ST.reference _
-> Prims.logical | [] | FStar.Buffer.disjoint_ref_5 | {
"file_name": "ulib/legacy/FStar.Buffer.fst",
"git_rev": "f4cbb7a38d67eeb13fbdb2f4fb8a44a65cbcdc1f",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} |
a: FStar.Buffer.buffer _ ->
r: FStar.HyperStack.ST.reference _ ->
r': FStar.HyperStack.ST.reference _ ->
r'': FStar.HyperStack.ST.reference _ ->
r''': FStar.HyperStack.ST.reference _ ->
r'''': FStar.HyperStack.ST.reference _
-> Prims.logical | {
"end_col": 99,
"end_line": 210,
"start_col": 43,
"start_line": 210
} | |
Prims.Tot | [
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": false,
"full_module": "FStar.Ghost",
"short_module": null
},
{
"abbrev": false,
"full_modu... | false | let modifies_none h h' =
HS.get_tip h' == HS.get_tip h /\ HS.modifies_transitively Set.empty h h' | let modifies_none h h' = | false | null | false | HS.get_tip h' == HS.get_tip h /\ HS.modifies_transitively Set.empty h h' | {
"checked_file": "FStar.Buffer.fst.checked",
"dependencies": [
"prims.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.UInt.fsti.checked",
"FStar.TSet.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.che... | [
"total"
] | [
"FStar.Monotonic.HyperStack.mem'",
"FStar.Monotonic.HyperStack.is_wf_with_ctr_and_tip",
"FStar.Monotonic.HyperStack.get_hmap",
"FStar.Monotonic.HyperStack.get_rid_ctr",
"FStar.Monotonic.HyperStack.get_tip",
"Prims.l_and",
"Prims.eq2",
"FStar.Monotonic.HyperHeap.rid",
"FStar.Monotonic.HyperStack.modi... | [] | (*
Copyright 2008-2018 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | false | false | FStar.Buffer.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 1,
"max_fuel": 0,
"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 modifies_none : h:
m:
FStar.Monotonic.HyperStack.mem'
{ FStar.Monotonic.HyperStack.is_wf_with_ctr_and_tip (FStar.Monotonic.HyperStack.get_hmap m)
(FStar.Monotonic.HyperStack.get_rid_ctr m)
(FStar.Monotonic.HyperStack.get_tip m) } ->
h':
m:
FStar.Monotonic.... | [] | FStar.Buffer.modifies_none | {
"file_name": "ulib/legacy/FStar.Buffer.fst",
"git_rev": "f4cbb7a38d67eeb13fbdb2f4fb8a44a65cbcdc1f",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} |
h:
m:
FStar.Monotonic.HyperStack.mem'
{ FStar.Monotonic.HyperStack.is_wf_with_ctr_and_tip (FStar.Monotonic.HyperStack.get_hmap m)
(FStar.Monotonic.HyperStack.get_rid_ctr m)
(FStar.Monotonic.HyperStack.get_tip m) } ->
h':
m:
FStar.Monotonic.HyperStack.mem'... | {
"end_col": 74,
"end_line": 237,
"start_col": 2,
"start_line": 237
} | |
Prims.Tot | [
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": false,
"full_module": "FStar.Ghost",
"short_module": null
},
{
"abbrev": false,
"full_modu... | false | let modifies_bufs rid buffs h h' =
modifies_ref rid (arefs buffs) h h'
/\ (forall (#a:Type) (b:buffer a). (frameOf b == rid /\ live h b /\ disjoint_from_bufs b buffs) ==> equal h b h' b /\ live h' b) | let modifies_bufs rid buffs h h' = | false | null | false | modifies_ref rid (arefs buffs) h h' /\
(forall (#a: Type) (b: buffer a).
(frameOf b == rid /\ live h b /\ disjoint_from_bufs b buffs) ==> equal h b h' b /\ live h' b) | {
"checked_file": "FStar.Buffer.fst.checked",
"dependencies": [
"prims.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.UInt.fsti.checked",
"FStar.TSet.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.che... | [
"total"
] | [
"FStar.Monotonic.HyperHeap.rid",
"FStar.TSet.set",
"FStar.Buffer.abuffer",
"FStar.Monotonic.HyperStack.mem",
"Prims.l_and",
"FStar.Monotonic.HyperStack.modifies_ref",
"FStar.Buffer.arefs",
"Prims.l_Forall",
"FStar.Buffer.buffer",
"Prims.l_imp",
"Prims.eq2",
"FStar.Buffer.frameOf",
"FStar.Buf... | [] | (*
Copyright 2008-2018 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | false | true | FStar.Buffer.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 1,
"max_fuel": 0,
"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 modifies_bufs : rid: FStar.Monotonic.HyperHeap.rid ->
buffs: FStar.TSet.set FStar.Buffer.abuffer ->
h: FStar.Monotonic.HyperStack.mem ->
h': FStar.Monotonic.HyperStack.mem
-> Prims.logical | [] | FStar.Buffer.modifies_bufs | {
"file_name": "ulib/legacy/FStar.Buffer.fst",
"git_rev": "f4cbb7a38d67eeb13fbdb2f4fb8a44a65cbcdc1f",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} |
rid: FStar.Monotonic.HyperHeap.rid ->
buffs: FStar.TSet.set FStar.Buffer.abuffer ->
h: FStar.Monotonic.HyperStack.mem ->
h': FStar.Monotonic.HyperStack.mem
-> Prims.logical | {
"end_col": 130,
"end_line": 234,
"start_col": 2,
"start_line": 233
} | |
Prims.GTot | val includes (#a: _) (x y: buffer a) : GTot Type0 | [
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": false,
"full_module": "FStar.Ghost",
"short_module": null
},
{
"abbrev": false,
"full_modu... | false | let includes #a (x:buffer a) (y:buffer a) : GTot Type0 =
x.max_length == y.max_length /\
x.content === y.content /\
idx y >= idx x /\
idx x + length x >= idx y + length y | val includes (#a: _) (x y: buffer a) : GTot Type0
let includes #a (x: buffer a) (y: buffer a) : GTot Type0 = | false | null | false | x.max_length == y.max_length /\ x.content === y.content /\ idx y >= idx x /\
idx x + length x >= idx y + length y | {
"checked_file": "FStar.Buffer.fst.checked",
"dependencies": [
"prims.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.UInt.fsti.checked",
"FStar.TSet.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.che... | [
"sometrivial"
] | [
"FStar.Buffer.buffer",
"Prims.l_and",
"Prims.eq2",
"FStar.UInt32.t",
"FStar.Buffer.__proj__MkBuffer__item__max_length",
"Prims.op_Equals_Equals_Equals",
"FStar.HyperStack.ST.reference",
"FStar.Buffer.lseq",
"FStar.UInt32.v",
"FStar.Buffer.__proj__MkBuffer__item__content",
"Prims.b2t",
"Prims.o... | [] | (*
Copyright 2008-2018 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | false | false | FStar.Buffer.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 1,
"max_fuel": 0,
"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 includes (#a: _) (x y: buffer a) : GTot Type0 | [] | FStar.Buffer.includes | {
"file_name": "ulib/legacy/FStar.Buffer.fst",
"git_rev": "f4cbb7a38d67eeb13fbdb2f4fb8a44a65cbcdc1f",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | x: FStar.Buffer.buffer a -> y: FStar.Buffer.buffer a -> Prims.GTot Type0 | {
"end_col": 38,
"end_line": 99,
"start_col": 2,
"start_line": 96
} |
FStar.HyperStack.ST.Stack | val recall: #a:Type
-> b:buffer a{is_eternal_region (frameOf b) /\ not (is_mm b.content)} -> Stack unit
(requires (fun m -> True))
(ensures (fun m0 _ m1 -> m0 == m1 /\ live m1 b)) | [
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": false,
"full_module": "FStar.Ghost",
"short_module": null
},
{
"abbrev": false,
"full_modu... | false | let recall #a b = recall b.content | val recall: #a:Type
-> b:buffer a{is_eternal_region (frameOf b) /\ not (is_mm b.content)} -> Stack unit
(requires (fun m -> True))
(ensures (fun m0 _ m1 -> m0 == m1 /\ live m1 b))
let recall #a b = | true | null | false | recall b.content | {
"checked_file": "FStar.Buffer.fst.checked",
"dependencies": [
"prims.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.UInt.fsti.checked",
"FStar.TSet.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.che... | [] | [
"FStar.Buffer.buffer",
"Prims.l_and",
"FStar.HyperStack.ST.is_eternal_region",
"FStar.Buffer.frameOf",
"Prims.b2t",
"Prims.op_Negation",
"FStar.Monotonic.HyperStack.is_mm",
"FStar.Buffer.lseq",
"FStar.UInt32.v",
"FStar.Buffer.__proj__MkBuffer__item__max_length",
"FStar.Heap.trivial_preorder",
... | [] | (*
Copyright 2008-2018 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | false | false | FStar.Buffer.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 1,
"max_fuel": 0,
"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 recall: #a:Type
-> b:buffer a{is_eternal_region (frameOf b) /\ not (is_mm b.content)} -> Stack unit
(requires (fun m -> True))
(ensures (fun m0 _ m1 -> m0 == m1 /\ live m1 b)) | [] | FStar.Buffer.recall | {
"file_name": "ulib/legacy/FStar.Buffer.fst",
"git_rev": "f4cbb7a38d67eeb13fbdb2f4fb8a44a65cbcdc1f",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} |
b:
FStar.Buffer.buffer a
{ FStar.HyperStack.ST.is_eternal_region (FStar.Buffer.frameOf b) /\
Prims.op_Negation (FStar.Monotonic.HyperStack.is_mm (MkBuffer?.content b)) }
-> FStar.HyperStack.ST.Stack Prims.unit | {
"end_col": 34,
"end_line": 80,
"start_col": 18,
"start_line": 80
} |
Prims.Tot | val modifies_0 (h0 h1: mem) : Type0 | [
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": false,
"full_module": "FStar.Ghost",
"short_module": null
},
{
"abbrev": false,
"full_modu... | false | let modifies_0 (h0 h1:mem) :Type0 =
modifies_one (HS.get_tip h0) h0 h1
/\ modifies_buf_0 (HS.get_tip h0) h0 h1
/\ HS.get_tip h0 == HS.get_tip h1 | val modifies_0 (h0 h1: mem) : Type0
let modifies_0 (h0 h1: mem) : Type0 = | false | null | false | modifies_one (HS.get_tip h0) h0 h1 /\ modifies_buf_0 (HS.get_tip h0) h0 h1 /\
HS.get_tip h0 == HS.get_tip h1 | {
"checked_file": "FStar.Buffer.fst.checked",
"dependencies": [
"prims.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.UInt.fsti.checked",
"FStar.TSet.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.che... | [
"total"
] | [
"FStar.Monotonic.HyperStack.mem",
"Prims.l_and",
"FStar.Monotonic.HyperStack.modifies_one",
"FStar.Monotonic.HyperStack.get_tip",
"FStar.Buffer.modifies_buf_0",
"Prims.eq2",
"FStar.Monotonic.HyperHeap.rid"
] | [] | (*
Copyright 2008-2018 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | false | true | FStar.Buffer.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 1,
"max_fuel": 0,
"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 modifies_0 (h0 h1: mem) : Type0 | [] | FStar.Buffer.modifies_0 | {
"file_name": "ulib/legacy/FStar.Buffer.fst",
"git_rev": "f4cbb7a38d67eeb13fbdb2f4fb8a44a65cbcdc1f",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | h0: FStar.Monotonic.HyperStack.mem -> h1: FStar.Monotonic.HyperStack.mem -> Type0 | {
"end_col": 35,
"end_line": 385,
"start_col": 2,
"start_line": 383
} |
Prims.Tot | val modifies_1 (#a: Type) (b: buffer a) (h0 h1: mem) : Type0 | [
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": false,
"full_module": "FStar.Ghost",
"short_module": null
},
{
"abbrev": false,
"full_modu... | false | let modifies_1 (#a:Type) (b:buffer a) (h0 h1:mem) :Type0 =
let rid = frameOf b in
modifies_one rid h0 h1 /\ modifies_buf_1 rid b h0 h1 /\ HS.get_tip h0 == HS.get_tip h1 | val modifies_1 (#a: Type) (b: buffer a) (h0 h1: mem) : Type0
let modifies_1 (#a: Type) (b: buffer a) (h0 h1: mem) : Type0 = | false | null | false | let rid = frameOf b in
modifies_one rid h0 h1 /\ modifies_buf_1 rid b h0 h1 /\ HS.get_tip h0 == HS.get_tip h1 | {
"checked_file": "FStar.Buffer.fst.checked",
"dependencies": [
"prims.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.UInt.fsti.checked",
"FStar.TSet.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.che... | [
"total"
] | [
"FStar.Buffer.buffer",
"FStar.Monotonic.HyperStack.mem",
"Prims.l_and",
"FStar.Monotonic.HyperStack.modifies_one",
"FStar.Buffer.modifies_buf_1",
"Prims.eq2",
"FStar.Monotonic.HyperHeap.rid",
"FStar.Monotonic.HyperStack.get_tip",
"FStar.Buffer.frameOf"
] | [] | (*
Copyright 2008-2018 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | false | false | FStar.Buffer.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 1,
"max_fuel": 0,
"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 modifies_1 (#a: Type) (b: buffer a) (h0 h1: mem) : Type0 | [] | FStar.Buffer.modifies_1 | {
"file_name": "ulib/legacy/FStar.Buffer.fst",
"git_rev": "f4cbb7a38d67eeb13fbdb2f4fb8a44a65cbcdc1f",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | b: FStar.Buffer.buffer a -> h0: FStar.Monotonic.HyperStack.mem -> h1: FStar.Monotonic.HyperStack.mem
-> Type0 | {
"end_col": 88,
"end_line": 392,
"start_col": 58,
"start_line": 390
} |
Prims.Tot | val modifies_2_1 (#a: Type) (b: buffer a) (h0 h1: mem) : Type0 | [
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": false,
"full_module": "FStar.Ghost",
"short_module": null
},
{
"abbrev": false,
"full_modu... | false | let modifies_2_1 (#a:Type) (b:buffer a) (h0 h1:mem) :Type0 =
HS.get_tip h0 == HS.get_tip h1 /\
(let rid = frameOf b in
((rid == HS.get_tip h0 /\ modifies_buf_1 rid b h0 h1 /\ modifies_one rid h0 h1)
\/ (rid =!= HS.get_tip h0 /\ HS.modifies (Set.union (Set.singleton rid) (Set.singleton (HS.get_tip h0))) h0 h1
... | val modifies_2_1 (#a: Type) (b: buffer a) (h0 h1: mem) : Type0
let modifies_2_1 (#a: Type) (b: buffer a) (h0 h1: mem) : Type0 = | false | null | false | HS.get_tip h0 == HS.get_tip h1 /\
(let rid = frameOf b in
((rid == HS.get_tip h0 /\ modifies_buf_1 rid b h0 h1 /\ modifies_one rid h0 h1) \/
(rid =!= HS.get_tip h0 /\
HS.modifies (Set.union (Set.singleton rid) (Set.singleton (HS.get_tip h0))) h0 h1 /\
modifies_buf_1 rid b h0 h1 /\ modifies_buf_0 (HS.g... | {
"checked_file": "FStar.Buffer.fst.checked",
"dependencies": [
"prims.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.UInt.fsti.checked",
"FStar.TSet.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.che... | [
"total"
] | [
"FStar.Buffer.buffer",
"FStar.Monotonic.HyperStack.mem",
"Prims.l_and",
"Prims.eq2",
"FStar.Monotonic.HyperHeap.rid",
"FStar.Monotonic.HyperStack.get_tip",
"Prims.l_or",
"FStar.Buffer.modifies_buf_1",
"FStar.Monotonic.HyperStack.modifies_one",
"Prims.l_not",
"FStar.Monotonic.HyperStack.modifies"... | [] | (*
Copyright 2008-2018 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | false | false | FStar.Buffer.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 1,
"max_fuel": 0,
"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 modifies_2_1 (#a: Type) (b: buffer a) (h0 h1: mem) : Type0 | [] | FStar.Buffer.modifies_2_1 | {
"file_name": "ulib/legacy/FStar.Buffer.fst",
"git_rev": "f4cbb7a38d67eeb13fbdb2f4fb8a44a65cbcdc1f",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | b: FStar.Buffer.buffer a -> h0: FStar.Monotonic.HyperStack.mem -> h1: FStar.Monotonic.HyperStack.mem
-> Type0 | {
"end_col": 80,
"end_line": 399,
"start_col": 2,
"start_line": 395
} |
FStar.HyperStack.ST.Stack | val assignL (#a: _) (l: list a) (b: buffer a)
: Stack unit
(requires (fun h0 -> live h0 b /\ length b = List.Tot.length l))
(ensures (fun h0 _ h1 -> live h1 b /\ modifies_1 b h0 h1 /\ as_seq h1 b == Seq.seq_of_list l)) | [
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": false,
"full_module": "FStar.Ghost",
"short_module": null
},
{
"abbrev": false,
"full_modu... | false | let rec assignL #a (l: list a) (b: buffer a): Stack unit
(requires (fun h0 ->
live h0 b /\
length b = List.Tot.length l))
(ensures (fun h0 _ h1 ->
live h1 b /\
modifies_1 b h0 h1 /\
as_seq h1 b == Seq.seq_of_list l))
= lemma_seq_of_list_induction l;
match l with
| [] -> ()
| hd :: tl ->
... | val assignL (#a: _) (l: list a) (b: buffer a)
: Stack unit
(requires (fun h0 -> live h0 b /\ length b = List.Tot.length l))
(ensures (fun h0 _ h1 -> live h1 b /\ modifies_1 b h0 h1 /\ as_seq h1 b == Seq.seq_of_list l))
let rec assignL #a (l: list a) (b: buffer a)
: Stack unit
(requires (fun h0... | true | null | false | lemma_seq_of_list_induction l;
match l with
| [] -> ()
| hd :: tl ->
let b_hd = sub b 0ul 1ul in
let b_tl = offset b 1ul in
b_hd.(0ul) <- hd;
assignL tl b_tl;
let h = HST.get () in
assert (get h b_hd 0 == hd);
assert (as_seq h b_tl == Seq.seq_of_list tl);
assert (Seq.equal (as_seq h b) (Seq.append (as_s... | {
"checked_file": "FStar.Buffer.fst.checked",
"dependencies": [
"prims.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.UInt.fsti.checked",
"FStar.TSet.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.che... | [] | [
"Prims.list",
"FStar.Buffer.buffer",
"Prims.unit",
"Prims._assert",
"FStar.Seq.Base.equal",
"FStar.Buffer.as_seq",
"FStar.Seq.Properties.seq_of_list",
"FStar.Seq.Base.append",
"Prims.eq2",
"FStar.Seq.Base.seq",
"Prims.l_or",
"Prims.b2t",
"Prims.op_Equality",
"Prims.nat",
"FStar.List.Tot.... | [] | (*
Copyright 2008-2018 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | false | false | FStar.Buffer.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 assignL (#a: _) (l: list a) (b: buffer a)
: Stack unit
(requires (fun h0 -> live h0 b /\ length b = List.Tot.length l))
(ensures (fun h0 _ h1 -> live h1 b /\ modifies_1 b h0 h1 /\ as_seq h1 b == Seq.seq_of_list l)) | [
"recursion"
] | FStar.Buffer.assignL | {
"file_name": "ulib/legacy/FStar.Buffer.fst",
"git_rev": "f4cbb7a38d67eeb13fbdb2f4fb8a44a65cbcdc1f",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | l: Prims.list a -> b: FStar.Buffer.buffer a -> FStar.HyperStack.ST.Stack Prims.unit | {
"end_col": 57,
"end_line": 1464,
"start_col": 2,
"start_line": 1452
} |
Prims.Tot | val modifies_2 (#a #a': Type) (b: buffer a) (b': buffer a') (h0 h1: mem) : Type0 | [
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": false,
"full_module": "FStar.Ghost",
"short_module": null
},
{
"abbrev": false,
"full_modu... | false | let modifies_2 (#a:Type) (#a':Type) (b:buffer a) (b':buffer a') (h0 h1:mem) :Type0 =
HS.get_tip h0 == HS.get_tip h1 /\
(let rid = frameOf b in let rid' = frameOf b' in
((rid == rid' /\ modifies_buf_2 rid b b' h0 h1 /\ modifies_one rid h0 h1)
\/ (rid =!= rid' /\ HS.modifies (Set.union (Set.singleton rid) (Set.... | val modifies_2 (#a #a': Type) (b: buffer a) (b': buffer a') (h0 h1: mem) : Type0
let modifies_2 (#a #a': Type) (b: buffer a) (b': buffer a') (h0 h1: mem) : Type0 = | false | null | false | HS.get_tip h0 == HS.get_tip h1 /\
(let rid = frameOf b in
let rid' = frameOf b' in
((rid == rid' /\ modifies_buf_2 rid b b' h0 h1 /\ modifies_one rid h0 h1) \/
(rid =!= rid' /\ HS.modifies (Set.union (Set.singleton rid) (Set.singleton rid')) h0 h1 /\
modifies_buf_1 rid b h0 h1 /\ modifies_buf_1 rid' b' h0... | {
"checked_file": "FStar.Buffer.fst.checked",
"dependencies": [
"prims.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.UInt.fsti.checked",
"FStar.TSet.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.che... | [
"total"
] | [
"FStar.Buffer.buffer",
"FStar.Monotonic.HyperStack.mem",
"Prims.l_and",
"Prims.eq2",
"FStar.Monotonic.HyperHeap.rid",
"FStar.Monotonic.HyperStack.get_tip",
"Prims.l_or",
"FStar.Buffer.modifies_buf_2",
"FStar.Monotonic.HyperStack.modifies_one",
"Prims.l_not",
"FStar.Monotonic.HyperStack.modifies"... | [] | (*
Copyright 2008-2018 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | false | false | FStar.Buffer.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 1,
"max_fuel": 0,
"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 modifies_2 (#a #a': Type) (b: buffer a) (b': buffer a') (h0 h1: mem) : Type0 | [] | FStar.Buffer.modifies_2 | {
"file_name": "ulib/legacy/FStar.Buffer.fst",
"git_rev": "f4cbb7a38d67eeb13fbdb2f4fb8a44a65cbcdc1f",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} |
b: FStar.Buffer.buffer a ->
b': FStar.Buffer.buffer a' ->
h0: FStar.Monotonic.HyperStack.mem ->
h1: FStar.Monotonic.HyperStack.mem
-> Type0 | {
"end_col": 72,
"end_line": 406,
"start_col": 2,
"start_line": 402
} |
Prims.Tot | val modifies_region (rid: rid) (bufs: TSet.set abuffer) (h0 h1: mem) : Type0 | [
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": false,
"full_module": "FStar.Ghost",
"short_module": null
},
{
"abbrev": false,
"full_modu... | false | let modifies_region (rid:rid) (bufs:TSet.set abuffer) (h0 h1:mem) :Type0 =
modifies_one rid h0 h1 /\ modifies_bufs rid bufs h0 h1 /\ HS.get_tip h0 == HS.get_tip h1 | val modifies_region (rid: rid) (bufs: TSet.set abuffer) (h0 h1: mem) : Type0
let modifies_region (rid: rid) (bufs: TSet.set abuffer) (h0 h1: mem) : Type0 = | false | null | false | modifies_one rid h0 h1 /\ modifies_bufs rid bufs h0 h1 /\ HS.get_tip h0 == HS.get_tip h1 | {
"checked_file": "FStar.Buffer.fst.checked",
"dependencies": [
"prims.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.UInt.fsti.checked",
"FStar.TSet.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.che... | [
"total"
] | [
"FStar.Monotonic.HyperHeap.rid",
"FStar.TSet.set",
"FStar.Buffer.abuffer",
"FStar.Monotonic.HyperStack.mem",
"Prims.l_and",
"FStar.Monotonic.HyperStack.modifies_one",
"FStar.Buffer.modifies_bufs",
"Prims.eq2",
"FStar.Monotonic.HyperStack.get_tip"
] | [] | (*
Copyright 2008-2018 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | false | true | FStar.Buffer.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 1,
"max_fuel": 0,
"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 modifies_region (rid: rid) (bufs: TSet.set abuffer) (h0 h1: mem) : Type0 | [] | FStar.Buffer.modifies_region | {
"file_name": "ulib/legacy/FStar.Buffer.fst",
"git_rev": "f4cbb7a38d67eeb13fbdb2f4fb8a44a65cbcdc1f",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} |
rid: FStar.Monotonic.HyperHeap.rid ->
bufs: FStar.TSet.set FStar.Buffer.abuffer ->
h0: FStar.Monotonic.HyperStack.mem ->
h1: FStar.Monotonic.HyperStack.mem
-> Type0 | {
"end_col": 90,
"end_line": 437,
"start_col": 2,
"start_line": 437
} |
Prims.Tot | val modifies_3_2 (#a #a': Type) (b: buffer a) (b': buffer a') (h0 h1: mem) : Type0 | [
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": false,
"full_module": "FStar.Ghost",
"short_module": null
},
{
"abbrev": false,
"full_modu... | false | let modifies_3_2 (#a:Type) (#a':Type) (b:buffer a) (b':buffer a') (h0 h1:mem) :Type0 =
HS.get_tip h0 == HS.get_tip h1 /\
(let rid = frameOf b in let rid' = frameOf b' in
((rid == rid' /\ rid' == HS.get_tip h0 /\ modifies_buf_2 rid b b' h0 h1 /\ modifies_one rid h0 h1)
\/ (rid == rid' /\ rid' =!= HS.get_tip h0... | val modifies_3_2 (#a #a': Type) (b: buffer a) (b': buffer a') (h0 h1: mem) : Type0
let modifies_3_2 (#a #a': Type) (b: buffer a) (b': buffer a') (h0 h1: mem) : Type0 = | false | null | false | HS.get_tip h0 == HS.get_tip h1 /\
(let rid = frameOf b in
let rid' = frameOf b' in
((rid == rid' /\ rid' == HS.get_tip h0 /\ modifies_buf_2 rid b b' h0 h1 /\ modifies_one rid h0 h1) \/
(rid == rid' /\ rid' =!= HS.get_tip h0 /\ modifies_buf_2 rid b b' h0 h1 /\
modifies_buf_0 (HS.get_tip h0) h0 h1 /\
... | {
"checked_file": "FStar.Buffer.fst.checked",
"dependencies": [
"prims.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.UInt.fsti.checked",
"FStar.TSet.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.che... | [
"total"
] | [
"FStar.Buffer.buffer",
"FStar.Monotonic.HyperStack.mem",
"Prims.l_and",
"Prims.eq2",
"FStar.Monotonic.HyperHeap.rid",
"FStar.Monotonic.HyperStack.get_tip",
"Prims.l_or",
"FStar.Buffer.modifies_buf_2",
"FStar.Monotonic.HyperStack.modifies_one",
"Prims.l_not",
"FStar.Buffer.modifies_buf_0",
"FSt... | [] | (*
Copyright 2008-2018 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | false | false | FStar.Buffer.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 1,
"max_fuel": 0,
"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 modifies_3_2 (#a #a': Type) (b: buffer a) (b': buffer a') (h0 h1: mem) : Type0 | [] | FStar.Buffer.modifies_3_2 | {
"file_name": "ulib/legacy/FStar.Buffer.fst",
"git_rev": "f4cbb7a38d67eeb13fbdb2f4fb8a44a65cbcdc1f",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} |
b: FStar.Buffer.buffer a ->
b': FStar.Buffer.buffer a' ->
h0: FStar.Monotonic.HyperStack.mem ->
h1: FStar.Monotonic.HyperStack.mem
-> Type0 | {
"end_col": 111,
"end_line": 434,
"start_col": 2,
"start_line": 423
} |
FStar.Pervasives.Lemma | val lemma_arefs_1: s:TSet.set abuffer -> Lemma
(requires (s == TSet.empty #abuffer))
(ensures (arefs s == Set.empty #nat))
[SMTPat (arefs s)] | [
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": false,
"full_module": "FStar.Ghost",
"short_module": null
},
{
"abbrev": false,
"full_modu... | false | let lemma_arefs_1 s = Set.lemma_equal_intro (arefs s) (Set.empty) | val lemma_arefs_1: s:TSet.set abuffer -> Lemma
(requires (s == TSet.empty #abuffer))
(ensures (arefs s == Set.empty #nat))
[SMTPat (arefs s)]
let lemma_arefs_1 s = | false | null | true | Set.lemma_equal_intro (arefs s) (Set.empty) | {
"checked_file": "FStar.Buffer.fst.checked",
"dependencies": [
"prims.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.UInt.fsti.checked",
"FStar.TSet.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.che... | [
"lemma"
] | [
"FStar.TSet.set",
"FStar.Buffer.abuffer",
"FStar.Set.lemma_equal_intro",
"Prims.nat",
"FStar.Buffer.arefs",
"FStar.Set.empty",
"Prims.unit"
] | [] | (*
Copyright 2008-2018 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | false | false | FStar.Buffer.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 1,
"max_fuel": 0,
"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 lemma_arefs_1: s:TSet.set abuffer -> Lemma
(requires (s == TSet.empty #abuffer))
(ensures (arefs s == Set.empty #nat))
[SMTPat (arefs s)] | [] | FStar.Buffer.lemma_arefs_1 | {
"file_name": "ulib/legacy/FStar.Buffer.fst",
"git_rev": "f4cbb7a38d67eeb13fbdb2f4fb8a44a65cbcdc1f",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | s: FStar.TSet.set FStar.Buffer.abuffer
-> FStar.Pervasives.Lemma (requires s == FStar.TSet.empty)
(ensures FStar.Buffer.arefs s == FStar.Set.empty)
[SMTPat (FStar.Buffer.arefs s)] | {
"end_col": 65,
"end_line": 172,
"start_col": 22,
"start_line": 172
} |
Prims.Tot | [
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": false,
"full_module": "FStar.Ghost",
"short_module": null
},
{
"abbrev": false,
"full_modu... | false | let disjoint_from_refs #a (b:buffer a) (set:Set.set nat) =
~(Set.mem (as_addr b) set) | let disjoint_from_refs #a (b: buffer a) (set: Set.set nat) = | false | null | false | ~(Set.mem (as_addr b) set) | {
"checked_file": "FStar.Buffer.fst.checked",
"dependencies": [
"prims.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.UInt.fsti.checked",
"FStar.TSet.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.che... | [
"total"
] | [
"FStar.Buffer.buffer",
"FStar.Set.set",
"Prims.nat",
"Prims.l_not",
"Prims.b2t",
"FStar.Set.mem",
"FStar.Buffer.as_addr",
"Prims.logical"
] | [] | (*
Copyright 2008-2018 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | false | false | FStar.Buffer.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 1,
"max_fuel": 0,
"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 disjoint_from_refs : b: FStar.Buffer.buffer a -> set: FStar.Set.set Prims.nat -> Prims.logical | [] | FStar.Buffer.disjoint_from_refs | {
"file_name": "ulib/legacy/FStar.Buffer.fst",
"git_rev": "f4cbb7a38d67eeb13fbdb2f4fb8a44a65cbcdc1f",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | b: FStar.Buffer.buffer a -> set: FStar.Set.set Prims.nat -> Prims.logical | {
"end_col": 28,
"end_line": 195,
"start_col": 2,
"start_line": 195
} | |
FStar.Pervasives.Lemma | val lemma_arefs_2: s1:TSet.set abuffer -> s2:TSet.set abuffer -> Lemma
(requires True)
(ensures (arefs (s1 ++ s2) == Set.union (arefs s1) (arefs s2)))
[SMTPatOr [
[SMTPat (arefs (s2 ++ s1))];
[SMTPat (arefs (s1 ++ s2))]
]] | [
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": false,
"full_module": "FStar.Ghost",
"short_module": null
},
{
"abbrev": false,
"full_modu... | false | let lemma_arefs_2 s1 s2 =
Set.lemma_equal_intro (arefs (s1 ++ s2)) (Set.union (arefs s1) (arefs s2)) | val lemma_arefs_2: s1:TSet.set abuffer -> s2:TSet.set abuffer -> Lemma
(requires True)
(ensures (arefs (s1 ++ s2) == Set.union (arefs s1) (arefs s2)))
[SMTPatOr [
[SMTPat (arefs (s2 ++ s1))];
[SMTPat (arefs (s1 ++ s2))]
]]
let lemma_arefs_2 s1 s2 = | false | null | true | Set.lemma_equal_intro (arefs (s1 ++ s2)) (Set.union (arefs s1) (arefs s2)) | {
"checked_file": "FStar.Buffer.fst.checked",
"dependencies": [
"prims.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.UInt.fsti.checked",
"FStar.TSet.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.che... | [
"lemma"
] | [
"FStar.TSet.set",
"FStar.Buffer.abuffer",
"FStar.Set.lemma_equal_intro",
"Prims.nat",
"FStar.Buffer.arefs",
"FStar.Buffer.op_Plus_Plus",
"FStar.Set.union",
"Prims.unit"
] | [] | (*
Copyright 2008-2018 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | false | false | FStar.Buffer.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 1,
"max_fuel": 0,
"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 lemma_arefs_2: s1:TSet.set abuffer -> s2:TSet.set abuffer -> Lemma
(requires True)
(ensures (arefs (s1 ++ s2) == Set.union (arefs s1) (arefs s2)))
[SMTPatOr [
[SMTPat (arefs (s2 ++ s1))];
[SMTPat (arefs (s1 ++ s2))]
]] | [] | FStar.Buffer.lemma_arefs_2 | {
"file_name": "ulib/legacy/FStar.Buffer.fst",
"git_rev": "f4cbb7a38d67eeb13fbdb2f4fb8a44a65cbcdc1f",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | s1: FStar.TSet.set FStar.Buffer.abuffer -> s2: FStar.TSet.set FStar.Buffer.abuffer
-> FStar.Pervasives.Lemma
(ensures
FStar.Buffer.arefs (s1 ++ s2) ==
FStar.Set.union (FStar.Buffer.arefs s1) (FStar.Buffer.arefs s2))
[
SMTPatOr [
[SMTPat (FStar.Buffer.arefs (s2 ++ s1))];... | {
"end_col": 76,
"end_line": 182,
"start_col": 2,
"start_line": 182
} |
Prims.Tot | [
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": false,
"full_module": "FStar.Ghost",
"short_module": null
},
{
"abbrev": false,
"full_modu... | false | let modifies_buf_0 rid h h' =
modifies_ref rid (Set.empty #nat) h h'
/\ (forall (#tt:Type) (bb:buffer tt). (frameOf bb == rid /\ live h bb) ==> equal h bb h' bb /\ live h' bb) | let modifies_buf_0 rid h h' = | false | null | false | modifies_ref rid (Set.empty #nat) h h' /\
(forall (#tt: Type) (bb: buffer tt).
(frameOf bb == rid /\ live h bb) ==> equal h bb h' bb /\ live h' bb) | {
"checked_file": "FStar.Buffer.fst.checked",
"dependencies": [
"prims.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.UInt.fsti.checked",
"FStar.TSet.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.che... | [
"total"
] | [
"FStar.Monotonic.HyperHeap.rid",
"FStar.Monotonic.HyperStack.mem",
"Prims.l_and",
"FStar.Monotonic.HyperStack.modifies_ref",
"FStar.Set.empty",
"Prims.nat",
"Prims.l_Forall",
"FStar.Buffer.buffer",
"Prims.l_imp",
"Prims.eq2",
"FStar.Buffer.frameOf",
"FStar.Buffer.live",
"FStar.Buffer.equal",... | [] | (*
Copyright 2008-2018 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | false | true | FStar.Buffer.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 1,
"max_fuel": 0,
"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 modifies_buf_0 : rid: FStar.Monotonic.HyperHeap.rid ->
h: FStar.Monotonic.HyperStack.mem ->
h': FStar.Monotonic.HyperStack.mem
-> Prims.logical | [] | FStar.Buffer.modifies_buf_0 | {
"file_name": "ulib/legacy/FStar.Buffer.fst",
"git_rev": "f4cbb7a38d67eeb13fbdb2f4fb8a44a65cbcdc1f",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} |
rid: FStar.Monotonic.HyperHeap.rid ->
h: FStar.Monotonic.HyperStack.mem ->
h': FStar.Monotonic.HyperStack.mem
-> Prims.logical | {
"end_col": 108,
"end_line": 242,
"start_col": 2,
"start_line": 241
} | |
Prims.Tot | [
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": false,
"full_module": "FStar.Ghost",
"short_module": null
},
{
"abbrev": false,
"full_modu... | false | let modifies_buf_1 (#t:Type) rid (b:buffer t) h h' = //would be good to drop the rid argument on these, since they can be computed from the buffers
modifies_ref rid (Set.singleton (Heap.addr_of (as_ref b))) h h'
/\ (forall (#tt:Type) (bb:buffer tt). (frameOf bb == rid /\ live h bb /\ disjoint b bb) ==> equal h bb h... | let modifies_buf_1 (#t: Type) rid (b: buffer t) h h' = | false | null | false | modifies_ref rid (Set.singleton (Heap.addr_of (as_ref b))) h h' /\
(forall (#tt: Type) (bb: buffer tt).
(frameOf bb == rid /\ live h bb /\ disjoint b bb) ==> equal h bb h' bb /\ live h' bb) | {
"checked_file": "FStar.Buffer.fst.checked",
"dependencies": [
"prims.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.UInt.fsti.checked",
"FStar.TSet.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.che... | [
"total"
] | [
"FStar.Monotonic.HyperHeap.rid",
"FStar.Buffer.buffer",
"FStar.Monotonic.HyperStack.mem",
"Prims.l_and",
"FStar.Monotonic.HyperStack.modifies_ref",
"FStar.Set.singleton",
"Prims.nat",
"FStar.Monotonic.Heap.addr_of",
"FStar.Buffer.lseq",
"FStar.Buffer.max_length",
"FStar.Heap.trivial_preorder",
... | [] | (*
Copyright 2008-2018 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | false | false | FStar.Buffer.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 1,
"max_fuel": 0,
"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 modifies_buf_1 : rid: FStar.Monotonic.HyperHeap.rid ->
b: FStar.Buffer.buffer t ->
h: FStar.Monotonic.HyperStack.mem ->
h': FStar.Monotonic.HyperStack.mem
-> Prims.logical | [] | FStar.Buffer.modifies_buf_1 | {
"file_name": "ulib/legacy/FStar.Buffer.fst",
"git_rev": "f4cbb7a38d67eeb13fbdb2f4fb8a44a65cbcdc1f",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} |
rid: FStar.Monotonic.HyperHeap.rid ->
b: FStar.Buffer.buffer t ->
h: FStar.Monotonic.HyperStack.mem ->
h': FStar.Monotonic.HyperStack.mem
-> Prims.logical | {
"end_col": 125,
"end_line": 246,
"start_col": 2,
"start_line": 245
} | |
Prims.Tot | val to_set_3 (n1 n2 n3: nat) : Set.set nat | [
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": false,
"full_module": "FStar.Ghost",
"short_module": null
},
{
"abbrev": false,
"full_modu... | false | let to_set_3 (n1:nat) (n2:nat) (n3:nat) :Set.set nat = Set.union (Set.union (Set.singleton n1) (Set.singleton n2)) (Set.singleton n3) | val to_set_3 (n1 n2 n3: nat) : Set.set nat
let to_set_3 (n1 n2 n3: nat) : Set.set nat = | false | null | false | Set.union (Set.union (Set.singleton n1) (Set.singleton n2)) (Set.singleton n3) | {
"checked_file": "FStar.Buffer.fst.checked",
"dependencies": [
"prims.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.UInt.fsti.checked",
"FStar.TSet.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.che... | [
"total"
] | [
"Prims.nat",
"FStar.Set.union",
"FStar.Set.singleton",
"FStar.Set.set"
] | [] | (*
Copyright 2008-2018 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | false | true | FStar.Buffer.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 1,
"max_fuel": 0,
"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 to_set_3 (n1 n2 n3: nat) : Set.set nat | [] | FStar.Buffer.to_set_3 | {
"file_name": "ulib/legacy/FStar.Buffer.fst",
"git_rev": "f4cbb7a38d67eeb13fbdb2f4fb8a44a65cbcdc1f",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | n1: Prims.nat -> n2: Prims.nat -> n3: Prims.nat -> FStar.Set.set Prims.nat | {
"end_col": 133,
"end_line": 255,
"start_col": 55,
"start_line": 255
} |
Prims.Tot | val to_set_4 (n1 n2 n3 n4: nat) : Set.set nat | [
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": false,
"full_module": "FStar.Ghost",
"short_module": null
},
{
"abbrev": false,
"full_modu... | false | let to_set_4 (n1:nat) (n2:nat) (n3:nat) (n4:nat) :Set.set nat =
Set.union (Set.union (Set.union (Set.singleton n1) (Set.singleton n2)) (Set.singleton n3)) (Set.singleton n4) | val to_set_4 (n1 n2 n3 n4: nat) : Set.set nat
let to_set_4 (n1 n2 n3 n4: nat) : Set.set nat = | false | null | false | Set.union (Set.union (Set.union (Set.singleton n1) (Set.singleton n2)) (Set.singleton n3))
(Set.singleton n4) | {
"checked_file": "FStar.Buffer.fst.checked",
"dependencies": [
"prims.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.UInt.fsti.checked",
"FStar.TSet.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.che... | [
"total"
] | [
"Prims.nat",
"FStar.Set.union",
"FStar.Set.singleton",
"FStar.Set.set"
] | [] | (*
Copyright 2008-2018 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | false | true | FStar.Buffer.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 1,
"max_fuel": 0,
"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 to_set_4 (n1 n2 n3 n4: nat) : Set.set nat | [] | FStar.Buffer.to_set_4 | {
"file_name": "ulib/legacy/FStar.Buffer.fst",
"git_rev": "f4cbb7a38d67eeb13fbdb2f4fb8a44a65cbcdc1f",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | n1: Prims.nat -> n2: Prims.nat -> n3: Prims.nat -> n4: Prims.nat -> FStar.Set.set Prims.nat | {
"end_col": 111,
"end_line": 263,
"start_col": 2,
"start_line": 263
} |
Prims.Tot | val to_set_2 (n1 n2: nat) : Set.set nat | [
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": false,
"full_module": "FStar.Ghost",
"short_module": null
},
{
"abbrev": false,
"full_modu... | false | let to_set_2 (n1:nat) (n2:nat) :Set.set nat = Set.union (Set.singleton n1) (Set.singleton n2) | val to_set_2 (n1 n2: nat) : Set.set nat
let to_set_2 (n1 n2: nat) : Set.set nat = | false | null | false | Set.union (Set.singleton n1) (Set.singleton n2) | {
"checked_file": "FStar.Buffer.fst.checked",
"dependencies": [
"prims.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.UInt.fsti.checked",
"FStar.TSet.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.che... | [
"total"
] | [
"Prims.nat",
"FStar.Set.union",
"FStar.Set.singleton",
"FStar.Set.set"
] | [] | (*
Copyright 2008-2018 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | false | true | FStar.Buffer.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 1,
"max_fuel": 0,
"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 to_set_2 (n1 n2: nat) : Set.set nat | [] | FStar.Buffer.to_set_2 | {
"file_name": "ulib/legacy/FStar.Buffer.fst",
"git_rev": "f4cbb7a38d67eeb13fbdb2f4fb8a44a65cbcdc1f",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | n1: Prims.nat -> n2: Prims.nat -> FStar.Set.set Prims.nat | {
"end_col": 93,
"end_line": 248,
"start_col": 46,
"start_line": 248
} |
Prims.GTot | val p (#a: Type0) (init: list a) : GTot Type0 | [
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": false,
"full_module": "FStar.Ghost",
"short_module": null
},
{
"abbrev": false,
"full_modu... | false | let p (#a:Type0) (init:list a) : GTot Type0 =
normalize (0 < FStar.List.Tot.length init) /\
normalize (FStar.List.Tot.length init <= UInt.max_int 32) | val p (#a: Type0) (init: list a) : GTot Type0
let p (#a: Type0) (init: list a) : GTot Type0 = | false | null | false | normalize (0 < FStar.List.Tot.length init) /\
normalize (FStar.List.Tot.length init <= UInt.max_int 32) | {
"checked_file": "FStar.Buffer.fst.checked",
"dependencies": [
"prims.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.UInt.fsti.checked",
"FStar.TSet.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.che... | [
"sometrivial"
] | [
"Prims.list",
"Prims.l_and",
"FStar.Pervasives.normalize",
"Prims.b2t",
"Prims.op_LessThan",
"FStar.List.Tot.Base.length",
"Prims.op_LessThanOrEqual",
"FStar.UInt.max_int"
] | [] | (*
Copyright 2008-2018 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | false | false | FStar.Buffer.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 1,
"max_fuel": 0,
"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 p (#a: Type0) (init: list a) : GTot Type0 | [] | FStar.Buffer.p | {
"file_name": "ulib/legacy/FStar.Buffer.fst",
"git_rev": "f4cbb7a38d67eeb13fbdb2f4fb8a44a65cbcdc1f",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | init: Prims.list a -> Prims.GTot Type0 | {
"end_col": 59,
"end_line": 828,
"start_col": 2,
"start_line": 827
} |
Prims.GTot | val q (#a: Type0) (len: nat) (buf: buffer a) : GTot Type0 | [
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": false,
"full_module": "FStar.Ghost",
"short_module": null
},
{
"abbrev": false,
"full_modu... | false | let q (#a:Type0) (len:nat) (buf:buffer a) : GTot Type0 =
normalize (length buf == len) | val q (#a: Type0) (len: nat) (buf: buffer a) : GTot Type0
let q (#a: Type0) (len: nat) (buf: buffer a) : GTot Type0 = | false | null | false | normalize (length buf == len) | {
"checked_file": "FStar.Buffer.fst.checked",
"dependencies": [
"prims.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.UInt.fsti.checked",
"FStar.TSet.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.che... | [
"sometrivial"
] | [
"Prims.nat",
"FStar.Buffer.buffer",
"FStar.Pervasives.normalize",
"Prims.eq2",
"FStar.Buffer.length"
] | [] | (*
Copyright 2008-2018 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | false | false | FStar.Buffer.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 1,
"max_fuel": 0,
"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 (#a: Type0) (len: nat) (buf: buffer a) : GTot Type0 | [] | FStar.Buffer.q | {
"file_name": "ulib/legacy/FStar.Buffer.fst",
"git_rev": "f4cbb7a38d67eeb13fbdb2f4fb8a44a65cbcdc1f",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | len: Prims.nat -> buf: FStar.Buffer.buffer a -> Prims.GTot Type0 | {
"end_col": 31,
"end_line": 831,
"start_col": 2,
"start_line": 831
} |
FStar.Pervasives.Lemma | val lemma_modifies_1_1 (#a #a': Type) (b: buffer a) (b': buffer a') (h0 h1 h2: _)
: Lemma (requires (live h0 b /\ live h0 b' /\ modifies_1 b h0 h1 /\ modifies_1 b' h1 h2))
(ensures (modifies_2 b b' h0 h2 /\ modifies_2 b' b h0 h2))
[SMTPat (modifies_1 b h0 h1); SMTPat (modifies_1 b' h1 h2)] | [
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": false,
"full_module": "FStar.Ghost",
"short_module": null
},
{
"abbrev": false,
"full_modu... | false | let lemma_modifies_1_1 (#a:Type) (#a':Type) (b:buffer a) (b':buffer a') h0 h1 h2 : Lemma
(requires (live h0 b /\ live h0 b' /\ modifies_1 b h0 h1 /\ modifies_1 b' h1 h2))
(ensures (modifies_2 b b' h0 h2 /\ modifies_2 b' b h0 h2))
[SMTPat (modifies_1 b h0 h1); SMTPat (modifies_1 b' h1 h2)]
= if frameOf b = fram... | val lemma_modifies_1_1 (#a #a': Type) (b: buffer a) (b': buffer a') (h0 h1 h2: _)
: Lemma (requires (live h0 b /\ live h0 b' /\ modifies_1 b h0 h1 /\ modifies_1 b' h1 h2))
(ensures (modifies_2 b b' h0 h2 /\ modifies_2 b' b h0 h2))
[SMTPat (modifies_1 b h0 h1); SMTPat (modifies_1 b' h1 h2)]
let lemma_mod... | false | null | true | if frameOf b = frameOf b' then modifies_trans_1_1' (frameOf b) b b' h0 h1 h2 | {
"checked_file": "FStar.Buffer.fst.checked",
"dependencies": [
"prims.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.UInt.fsti.checked",
"FStar.TSet.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.che... | [
"lemma"
] | [
"FStar.Buffer.buffer",
"FStar.Monotonic.HyperStack.mem",
"Prims.op_Equality",
"FStar.Monotonic.HyperHeap.rid",
"FStar.Buffer.frameOf",
"FStar.Buffer.modifies_trans_1_1'",
"Prims.bool",
"Prims.unit",
"Prims.l_and",
"FStar.Buffer.live",
"FStar.Buffer.modifies_1",
"Prims.squash",
"FStar.Buffer.... | [] | (*
Copyright 2008-2018 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | false | false | FStar.Buffer.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 1,
"max_fuel": 0,
"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 lemma_modifies_1_1 (#a #a': Type) (b: buffer a) (b': buffer a') (h0 h1 h2: _)
: Lemma (requires (live h0 b /\ live h0 b' /\ modifies_1 b h0 h1 /\ modifies_1 b' h1 h2))
(ensures (modifies_2 b b' h0 h2 /\ modifies_2 b' b h0 h2))
[SMTPat (modifies_1 b h0 h1); SMTPat (modifies_1 b' h1 h2)] | [] | FStar.Buffer.lemma_modifies_1_1 | {
"file_name": "ulib/legacy/FStar.Buffer.fst",
"git_rev": "f4cbb7a38d67eeb13fbdb2f4fb8a44a65cbcdc1f",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} |
b: FStar.Buffer.buffer a ->
b': FStar.Buffer.buffer a' ->
h0: FStar.Monotonic.HyperStack.mem ->
h1: FStar.Monotonic.HyperStack.mem ->
h2: FStar.Monotonic.HyperStack.mem
-> FStar.Pervasives.Lemma
(requires
FStar.Buffer.live h0 b /\ FStar.Buffer.live h0 b' /\ FStar.Buffer.modifies_1 b... | {
"end_col": 11,
"end_line": 713,
"start_col": 4,
"start_line": 712
} |
FStar.Pervasives.Lemma | val lemma_upd (#a: Type) (h: mem) (x: reference a {live_region h (HS.frameOf x)}) (v: a)
: Lemma (requires True)
(ensures (Map.domain (HS.get_hmap h) == Map.domain (HS.get_hmap (upd h x v)))) | [
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": false,
"full_module": "FStar.Ghost",
"short_module": null
},
{
"abbrev": false,
"full_modu... | false | let lemma_upd (#a:Type) (h:mem) (x:reference a{live_region h (HS.frameOf x)}) (v:a) : Lemma
(requires True)
(ensures (Map.domain (HS.get_hmap h) == Map.domain (HS.get_hmap (upd h x v))))
= let m = HS.get_hmap h in
let m' = Map.upd m (HS.frameOf x) (Heap.upd (Map.sel m (HS.frameOf x)) (HS.as_ref x) v) in
... | val lemma_upd (#a: Type) (h: mem) (x: reference a {live_region h (HS.frameOf x)}) (v: a)
: Lemma (requires True)
(ensures (Map.domain (HS.get_hmap h) == Map.domain (HS.get_hmap (upd h x v))))
let lemma_upd (#a: Type) (h: mem) (x: reference a {live_region h (HS.frameOf x)}) (v: a)
: Lemma (requires True)
... | false | null | true | let m = HS.get_hmap h in
let m' = Map.upd m (HS.frameOf x) (Heap.upd (Map.sel m (HS.frameOf x)) (HS.as_ref x) v) in
Set.lemma_equal_intro (Map.domain m) (Map.domain m') | {
"checked_file": "FStar.Buffer.fst.checked",
"dependencies": [
"prims.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.UInt.fsti.checked",
"FStar.TSet.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.che... | [
"lemma"
] | [
"FStar.Monotonic.HyperStack.mem",
"FStar.HyperStack.ST.reference",
"Prims.b2t",
"FStar.Monotonic.HyperStack.live_region",
"FStar.Monotonic.HyperStack.frameOf",
"FStar.Heap.trivial_preorder",
"FStar.Set.lemma_equal_intro",
"FStar.Monotonic.HyperHeap.rid",
"FStar.Map.domain",
"FStar.Monotonic.Heap.h... | [] | (*
Copyright 2008-2018 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | false | false | FStar.Buffer.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 1,
"max_fuel": 0,
"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 lemma_upd (#a: Type) (h: mem) (x: reference a {live_region h (HS.frameOf x)}) (v: a)
: Lemma (requires True)
(ensures (Map.domain (HS.get_hmap h) == Map.domain (HS.get_hmap (upd h x v)))) | [] | FStar.Buffer.lemma_upd | {
"file_name": "ulib/legacy/FStar.Buffer.fst",
"git_rev": "f4cbb7a38d67eeb13fbdb2f4fb8a44a65cbcdc1f",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} |
h: FStar.Monotonic.HyperStack.mem ->
x:
FStar.HyperStack.ST.reference a
{FStar.Monotonic.HyperStack.live_region h (FStar.Monotonic.HyperStack.frameOf x)} ->
v: a
-> FStar.Pervasives.Lemma
(ensures
FStar.Map.domain (FStar.Monotonic.HyperStack.get_hmap h) ==
FStar.Map.domain (... | {
"end_col": 56,
"end_line": 865,
"start_col": 3,
"start_line": 863
} |
Prims.Tot | val rcreate_post_common (#a: Type) (r: rid) (init: a) (len: UInt32.t) (b: buffer a) (h0 h1: mem)
: Type0 | [
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": false,
"full_module": "FStar.Ghost",
"short_module": null
},
{
"abbrev": false,
"full_modu... | false | let rcreate_post_common (#a:Type) (r:rid) (init:a) (len:UInt32.t) (b:buffer a) (h0 h1:mem) :Type0
= b `unused_in` h0
/\ live h1 b /\ idx b == 0 /\ length b == v len
/\ Map.domain (HS.get_hmap h1) == Map.domain (HS.get_hmap h0)
/\ HS.get_tip h1 == HS.get_tip h0
/\ modifies (Set.singleton r) h0 h1
/... | val rcreate_post_common (#a: Type) (r: rid) (init: a) (len: UInt32.t) (b: buffer a) (h0 h1: mem)
: Type0
let rcreate_post_common (#a: Type) (r: rid) (init: a) (len: UInt32.t) (b: buffer a) (h0 h1: mem)
: Type0 = | false | null | false | b `unused_in` h0 /\ live h1 b /\ idx b == 0 /\ length b == v len /\
Map.domain (HS.get_hmap h1) == Map.domain (HS.get_hmap h0) /\ HS.get_tip h1 == HS.get_tip h0 /\
modifies (Set.singleton r) h0 h1 /\ modifies_ref r Set.empty h0 h1 /\
as_seq h1 b == Seq.create (v len) init | {
"checked_file": "FStar.Buffer.fst.checked",
"dependencies": [
"prims.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.UInt.fsti.checked",
"FStar.TSet.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.che... | [
"total"
] | [
"FStar.Monotonic.HyperHeap.rid",
"FStar.UInt32.t",
"FStar.Buffer.buffer",
"FStar.Monotonic.HyperStack.mem",
"Prims.l_and",
"FStar.Buffer.unused_in",
"FStar.Buffer.live",
"Prims.eq2",
"Prims.int",
"FStar.Buffer.idx",
"Prims.l_or",
"Prims.b2t",
"Prims.op_GreaterThanOrEqual",
"FStar.UInt.size... | [] | (*
Copyright 2008-2018 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | false | false | FStar.Buffer.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 1,
"max_fuel": 0,
"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 rcreate_post_common (#a: Type) (r: rid) (init: a) (len: UInt32.t) (b: buffer a) (h0 h1: mem)
: Type0 | [] | FStar.Buffer.rcreate_post_common | {
"file_name": "ulib/legacy/FStar.Buffer.fst",
"git_rev": "f4cbb7a38d67eeb13fbdb2f4fb8a44a65cbcdc1f",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} |
r: FStar.Monotonic.HyperHeap.rid ->
init: a ->
len: FStar.UInt32.t ->
b: FStar.Buffer.buffer a ->
h0: FStar.Monotonic.HyperStack.mem ->
h1: FStar.Monotonic.HyperStack.mem
-> Type0 | {
"end_col": 45,
"end_line": 874,
"start_col": 4,
"start_line": 868
} |
FStar.HyperStack.ST.ST | val rcreate_mm (#a: Type) (r: rid) (init: a) (len: UInt32.t)
: ST (buffer a)
(requires (fun h0 -> is_eternal_region r))
(ensures
(fun h0 b h1 -> rcreate_post_common r init len b h0 h1 /\ is_mm (content b) /\ freeable b)) | [
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": false,
"full_module": "FStar.Ghost",
"short_module": null
},
{
"abbrev": false,
"full_modu... | false | let rcreate_mm (#a:Type) (r:rid) (init:a) (len:UInt32.t)
:ST (buffer a) (requires (fun h0 -> is_eternal_region r))
(ensures (fun h0 b h1 -> rcreate_post_common r init len b h0 h1 /\ is_mm (content b) /\ freeable b))
= rcreate_common r init len true | val rcreate_mm (#a: Type) (r: rid) (init: a) (len: UInt32.t)
: ST (buffer a)
(requires (fun h0 -> is_eternal_region r))
(ensures
(fun h0 b h1 -> rcreate_post_common r init len b h0 h1 /\ is_mm (content b) /\ freeable b))
let rcreate_mm (#a: Type) (r: rid) (init: a) (len: UInt32.t)
: ST (buff... | true | null | false | rcreate_common r init len true | {
"checked_file": "FStar.Buffer.fst.checked",
"dependencies": [
"prims.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.UInt.fsti.checked",
"FStar.TSet.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.che... | [] | [
"FStar.Monotonic.HyperHeap.rid",
"FStar.UInt32.t",
"FStar.Buffer.rcreate_common",
"FStar.Buffer.buffer",
"FStar.Monotonic.HyperStack.mem",
"FStar.HyperStack.ST.is_eternal_region",
"Prims.l_and",
"FStar.Buffer.rcreate_post_common",
"Prims.b2t",
"FStar.Monotonic.HyperStack.is_mm",
"FStar.Buffer.ls... | [] | (*
Copyright 2008-2018 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | false | false | FStar.Buffer.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 1,
"max_fuel": 0,
"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 rcreate_mm (#a: Type) (r: rid) (init: a) (len: UInt32.t)
: ST (buffer a)
(requires (fun h0 -> is_eternal_region r))
(ensures
(fun h0 b h1 -> rcreate_post_common r init len b h0 h1 /\ is_mm (content b) /\ freeable b)) | [] | FStar.Buffer.rcreate_mm | {
"file_name": "ulib/legacy/FStar.Buffer.fst",
"git_rev": "f4cbb7a38d67eeb13fbdb2f4fb8a44a65cbcdc1f",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | r: FStar.Monotonic.HyperHeap.rid -> init: a -> len: FStar.UInt32.t
-> FStar.HyperStack.ST.ST (FStar.Buffer.buffer a) | {
"end_col": 34,
"end_line": 913,
"start_col": 4,
"start_line": 913
} |
FStar.HyperStack.ST.StackInline | val createL: #a:Type0 -> init:list a -> StackInline (buffer a)
(requires (fun h -> p #a init))
(ensures (fun (h0:mem) b h1 ->
let len = FStar.List.Tot.length init in
len > 0
/\ b `unused_in` h0
/\ live h1 b /\ idx b == 0 /\ length b == len
/\ frameOf b == (HS.get_tip h0)
/\ Map.domain ... | [
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": false,
"full_module": "FStar.Ghost",
"short_module": null
},
{
"abbrev": false,
"full_modu... | false | let createL #a init =
let len = UInt32.uint_to_t (FStar.List.Tot.length init) in
let s = Seq.seq_of_list init in
let content: reference (lseq a (v len)) =
salloc (Seq.seq_of_list init) in
let b = MkBuffer len content 0ul len in
let h = HST.get() in
assert (Seq.equal (as_seq h b) (sel h b));
b | val createL: #a:Type0 -> init:list a -> StackInline (buffer a)
(requires (fun h -> p #a init))
(ensures (fun (h0:mem) b h1 ->
let len = FStar.List.Tot.length init in
len > 0
/\ b `unused_in` h0
/\ live h1 b /\ idx b == 0 /\ length b == len
/\ frameOf b == (HS.get_tip h0)
/\ Map.domain ... | true | null | false | let len = UInt32.uint_to_t (FStar.List.Tot.length init) in
let s = Seq.seq_of_list init in
let content:reference (lseq a (v len)) = salloc (Seq.seq_of_list init) in
let b = MkBuffer len content 0ul len in
let h = HST.get () in
assert (Seq.equal (as_seq h b) (sel h b));
b | {
"checked_file": "FStar.Buffer.fst.checked",
"dependencies": [
"prims.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.UInt.fsti.checked",
"FStar.TSet.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.che... | [] | [
"Prims.list",
"Prims.unit",
"Prims._assert",
"FStar.Seq.Base.equal",
"FStar.Buffer.as_seq",
"FStar.Buffer.sel",
"FStar.Buffer.buffer",
"FStar.Monotonic.HyperStack.mem",
"FStar.HyperStack.ST.get",
"FStar.Buffer._buffer",
"FStar.Buffer.MkBuffer",
"FStar.UInt32.__uint_to_t",
"FStar.HyperStack.S... | [] | (*
Copyright 2008-2018 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | false | false | FStar.Buffer.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 1,
"initial_ifuel": 1,
"max_fuel": 1,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | null | val createL: #a:Type0 -> init:list a -> StackInline (buffer a)
(requires (fun h -> p #a init))
(ensures (fun (h0:mem) b h1 ->
let len = FStar.List.Tot.length init in
len > 0
/\ b `unused_in` h0
/\ live h1 b /\ idx b == 0 /\ length b == len
/\ frameOf b == (HS.get_tip h0)
/\ Map.domain ... | [] | FStar.Buffer.createL | {
"file_name": "ulib/legacy/FStar.Buffer.fst",
"git_rev": "f4cbb7a38d67eeb13fbdb2f4fb8a44a65cbcdc1f",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | init: Prims.list a -> FStar.HyperStack.ST.StackInline (FStar.Buffer.buffer a) | {
"end_col": 3,
"end_line": 856,
"start_col": 21,
"start_line": 848
} |
FStar.HyperStack.ST.ST | val to_seq_full: #a:Type -> b:buffer a -> ST (seq a)
(requires (fun h -> live h b))
(ensures (fun h0 r h1 -> h0 == h1 /\ live h1 b /\
r == as_seq #a h1 b )) | [
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": false,
"full_module": "FStar.Ghost",
"short_module": null
},
{
"abbrev": false,
"full_modu... | false | let to_seq_full #a b =
let s = !b.content in
let i = v b.idx in
Seq.slice s i (i + v b.length) | val to_seq_full: #a:Type -> b:buffer a -> ST (seq a)
(requires (fun h -> live h b))
(ensures (fun h0 r h1 -> h0 == h1 /\ live h1 b /\
r == as_seq #a h1 b ))
let to_seq_full #a b = | true | null | false | let s = !b.content in
let i = v b.idx in
Seq.slice s i (i + v b.length) | {
"checked_file": "FStar.Buffer.fst.checked",
"dependencies": [
"prims.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.UInt.fsti.checked",
"FStar.TSet.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.che... | [] | [
"FStar.Buffer.buffer",
"FStar.Seq.Base.slice",
"Prims.op_Addition",
"FStar.UInt32.v",
"FStar.Buffer.__proj__MkBuffer__item__length",
"FStar.UInt.uint_t",
"FStar.Buffer.__proj__MkBuffer__item__idx",
"FStar.Seq.Base.seq",
"FStar.Buffer.lseq",
"FStar.Buffer.__proj__MkBuffer__item__max_length",
"FSt... | [] | (*
Copyright 2008-2018 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | false | false | FStar.Buffer.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 1,
"max_fuel": 0,
"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 to_seq_full: #a:Type -> b:buffer a -> ST (seq a)
(requires (fun h -> live h b))
(ensures (fun h0 r h1 -> h0 == h1 /\ live h1 b /\
r == as_seq #a h1 b )) | [] | FStar.Buffer.to_seq_full | {
"file_name": "ulib/legacy/FStar.Buffer.fst",
"git_rev": "f4cbb7a38d67eeb13fbdb2f4fb8a44a65cbcdc1f",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | b: FStar.Buffer.buffer a -> FStar.HyperStack.ST.ST (FStar.Seq.Base.seq a) | {
"end_col": 32,
"end_line": 956,
"start_col": 22,
"start_line": 953
} |
FStar.HyperStack.ST.STL | val to_seq: #a:Type -> b:buffer a -> l:UInt32.t{v l <= length b} -> STL (seq a)
(requires (fun h -> live h b))
(ensures (fun h0 r h1 -> h0 == h1 /\ live h1 b /\ Seq.length r == v l
(*/\ r == as_seq #a h1 b *) )) | [
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": false,
"full_module": "FStar.Ghost",
"short_module": null
},
{
"abbrev": false,
"full_modu... | false | let to_seq #a b l =
let s = !b.content in
let i = v b.idx in
Seq.slice s i (i + v l) | val to_seq: #a:Type -> b:buffer a -> l:UInt32.t{v l <= length b} -> STL (seq a)
(requires (fun h -> live h b))
(ensures (fun h0 r h1 -> h0 == h1 /\ live h1 b /\ Seq.length r == v l
(*/\ r == as_seq #a h1 b *) ))
let to_seq #a b l = | true | null | false | let s = !b.content in
let i = v b.idx in
Seq.slice s i (i + v l) | {
"checked_file": "FStar.Buffer.fst.checked",
"dependencies": [
"prims.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.UInt.fsti.checked",
"FStar.TSet.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.che... | [] | [
"FStar.Buffer.buffer",
"FStar.UInt32.t",
"Prims.b2t",
"Prims.op_LessThanOrEqual",
"FStar.UInt32.v",
"FStar.Buffer.length",
"FStar.Seq.Base.slice",
"Prims.op_Addition",
"FStar.UInt.uint_t",
"FStar.Buffer.__proj__MkBuffer__item__idx",
"FStar.Seq.Base.seq",
"FStar.Buffer.lseq",
"FStar.Buffer.__... | [] | (*
Copyright 2008-2018 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | false | false | FStar.Buffer.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 1,
"max_fuel": 0,
"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 to_seq: #a:Type -> b:buffer a -> l:UInt32.t{v l <= length b} -> STL (seq a)
(requires (fun h -> live h b))
(ensures (fun h0 r h1 -> h0 == h1 /\ live h1 b /\ Seq.length r == v l
(*/\ r == as_seq #a h1 b *) )) | [] | FStar.Buffer.to_seq | {
"file_name": "ulib/legacy/FStar.Buffer.fst",
"git_rev": "f4cbb7a38d67eeb13fbdb2f4fb8a44a65cbcdc1f",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | b: FStar.Buffer.buffer a -> l: FStar.UInt32.t{FStar.UInt32.v l <= FStar.Buffer.length b}
-> FStar.HyperStack.ST.STL (FStar.Seq.Base.seq a) | {
"end_col": 25,
"end_line": 945,
"start_col": 19,
"start_line": 942
} |
FStar.HyperStack.ST.ST | val rfree (#a: Type) (b: buffer a)
: ST unit
(requires (fun h0 -> live h0 b /\ freeable b))
(ensures
(fun h0 _ h1 ->
is_mm (content b) /\ is_eternal_region (frameOf b) /\ h1 == HS.free (content b) h0)) | [
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": false,
"full_module": "FStar.Ghost",
"short_module": null
},
{
"abbrev": false,
"full_modu... | false | let rfree (#a:Type) (b:buffer a)
:ST unit (requires (fun h0 -> live h0 b /\ freeable b))
(ensures (fun h0 _ h1 -> is_mm (content b) /\ is_eternal_region (frameOf b) /\ h1 == HS.free (content b) h0))
= rfree b.content | val rfree (#a: Type) (b: buffer a)
: ST unit
(requires (fun h0 -> live h0 b /\ freeable b))
(ensures
(fun h0 _ h1 ->
is_mm (content b) /\ is_eternal_region (frameOf b) /\ h1 == HS.free (content b) h0))
let rfree (#a: Type) (b: buffer a)
: ST unit
(requires (fun h0 -> live h... | true | null | false | rfree b.content | {
"checked_file": "FStar.Buffer.fst.checked",
"dependencies": [
"prims.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.UInt.fsti.checked",
"FStar.TSet.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.che... | [] | [
"FStar.Buffer.buffer",
"FStar.HyperStack.ST.rfree",
"FStar.Buffer.lseq",
"FStar.UInt32.v",
"FStar.Buffer.__proj__MkBuffer__item__max_length",
"FStar.Heap.trivial_preorder",
"FStar.Buffer.__proj__MkBuffer__item__content",
"Prims.unit",
"FStar.Monotonic.HyperStack.mem",
"Prims.l_and",
"FStar.Buffe... | [] | (*
Copyright 2008-2018 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | false | false | FStar.Buffer.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 rfree (#a: Type) (b: buffer a)
: ST unit
(requires (fun h0 -> live h0 b /\ freeable b))
(ensures
(fun h0 _ h1 ->
is_mm (content b) /\ is_eternal_region (frameOf b) /\ h1 == HS.free (content b) h0)) | [] | FStar.Buffer.rfree | {
"file_name": "ulib/legacy/FStar.Buffer.fst",
"git_rev": "f4cbb7a38d67eeb13fbdb2f4fb8a44a65cbcdc1f",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | b: FStar.Buffer.buffer a -> FStar.HyperStack.ST.ST Prims.unit | {
"end_col": 19,
"end_line": 921,
"start_col": 4,
"start_line": 921
} |
Prims.Tot | val sub: #a:Type -> b:buffer a -> i:UInt32.t
-> len:UInt32.t{v i + v len <= length b}
-> Tot (b':buffer a{b `includes` b' /\ length b' == v len}) | [
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": false,
"full_module": "FStar.Ghost",
"short_module": null
},
{
"abbrev": false,
"full_modu... | false | let sub #a b i len =
assert (v i + v b.idx < pow2 n); // was formerly a precondition
MkBuffer b.max_length b.content (i +^ b.idx) len | val sub: #a:Type -> b:buffer a -> i:UInt32.t
-> len:UInt32.t{v i + v len <= length b}
-> Tot (b':buffer a{b `includes` b' /\ length b' == v len})
let sub #a b i len = | false | null | false | assert (v i + v b.idx < pow2 n);
MkBuffer b.max_length b.content (i +^ b.idx) len | {
"checked_file": "FStar.Buffer.fst.checked",
"dependencies": [
"prims.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.UInt.fsti.checked",
"FStar.TSet.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.che... | [
"total"
] | [
"FStar.Buffer.buffer",
"FStar.UInt32.t",
"Prims.b2t",
"Prims.op_LessThanOrEqual",
"Prims.op_Addition",
"FStar.UInt32.v",
"FStar.Buffer.length",
"FStar.Buffer.MkBuffer",
"FStar.Buffer.__proj__MkBuffer__item__max_length",
"FStar.Buffer.__proj__MkBuffer__item__content",
"FStar.UInt32.op_Plus_Hat",
... | [] | (*
Copyright 2008-2018 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | false | false | FStar.Buffer.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 1,
"max_fuel": 0,
"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 sub: #a:Type -> b:buffer a -> i:UInt32.t
-> len:UInt32.t{v i + v len <= length b}
-> Tot (b':buffer a{b `includes` b' /\ length b' == v len}) | [] | FStar.Buffer.sub | {
"file_name": "ulib/legacy/FStar.Buffer.fst",
"git_rev": "f4cbb7a38d67eeb13fbdb2f4fb8a44a65cbcdc1f",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} |
b: FStar.Buffer.buffer a ->
i: FStar.UInt32.t ->
len: FStar.UInt32.t{FStar.UInt32.v i + FStar.UInt32.v len <= FStar.Buffer.length b}
-> b':
FStar.Buffer.buffer a
{FStar.Buffer.includes b b' /\ FStar.Buffer.length b' == FStar.UInt32.v len} | {
"end_col": 50,
"end_line": 1028,
"start_col": 2,
"start_line": 1027
} |
FStar.HyperStack.ST.Stack | val index: #a:Type -> b:buffer a -> n:UInt32.t{v n < length b} -> Stack a
(requires (fun h -> live h b))
(ensures (fun h0 z h1 -> live h0 b /\ h1 == h0
/\ z == Seq.index (as_seq h0 b) (v n))) | [
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": false,
"full_module": "FStar.Ghost",
"short_module": null
},
{
"abbrev": false,
"full_modu... | false | let index #a b n =
let s = !b.content in
Seq.index s (v b.idx + v n) | val index: #a:Type -> b:buffer a -> n:UInt32.t{v n < length b} -> Stack a
(requires (fun h -> live h b))
(ensures (fun h0 z h1 -> live h0 b /\ h1 == h0
/\ z == Seq.index (as_seq h0 b) (v n)))
let index #a b n = | true | null | false | let s = !b.content in
Seq.index s (v b.idx + v n) | {
"checked_file": "FStar.Buffer.fst.checked",
"dependencies": [
"prims.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.UInt.fsti.checked",
"FStar.TSet.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.che... | [] | [
"FStar.Buffer.buffer",
"FStar.UInt32.t",
"Prims.b2t",
"Prims.op_LessThan",
"FStar.UInt32.v",
"FStar.Buffer.length",
"FStar.Seq.Base.index",
"Prims.op_Addition",
"FStar.Buffer.__proj__MkBuffer__item__idx",
"FStar.Buffer.lseq",
"FStar.Buffer.__proj__MkBuffer__item__max_length",
"FStar.HyperStack... | [] | (*
Copyright 2008-2018 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | false | false | FStar.Buffer.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 1,
"max_fuel": 0,
"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 index: #a:Type -> b:buffer a -> n:UInt32.t{v n < length b} -> Stack a
(requires (fun h -> live h b))
(ensures (fun h0 z h1 -> live h0 b /\ h1 == h0
/\ z == Seq.index (as_seq h0 b) (v n))) | [] | FStar.Buffer.index | {
"file_name": "ulib/legacy/FStar.Buffer.fst",
"git_rev": "f4cbb7a38d67eeb13fbdb2f4fb8a44a65cbcdc1f",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | b: FStar.Buffer.buffer a -> n: FStar.UInt32.t{FStar.UInt32.v n < FStar.Buffer.length b}
-> FStar.HyperStack.ST.Stack a | {
"end_col": 29,
"end_line": 964,
"start_col": 18,
"start_line": 962
} |
FStar.HyperStack.ST.Stack | val upd: #a:Type -> b:buffer a -> n:UInt32.t -> z:a -> Stack unit
(requires (fun h -> live h b /\ v n < length b))
(ensures (fun h0 _ h1 -> live h0 b /\ live h1 b /\ v n < length b
/\ modifies_1 b h0 h1
/\ as_seq h1 b == Seq.upd (as_seq h0 b) (v n) z )) | [
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": false,
"full_module": "FStar.Ghost",
"short_module": null
},
{
"abbrev": false,
"full_modu... | false | let upd #a b n z =
let h0 = HST.get () in
let s0 = !b.content in
let s = Seq.upd s0 (v b.idx + v n) z in
b.content := s;
lemma_aux b n z h0;
let h = HST.get() in
Seq.lemma_eq_intro (as_seq h b) (Seq.slice s (idx b) (idx b + length b));
Seq.upd_slice s0 (idx b) (idx b + length b) (v n) z | val upd: #a:Type -> b:buffer a -> n:UInt32.t -> z:a -> Stack unit
(requires (fun h -> live h b /\ v n < length b))
(ensures (fun h0 _ h1 -> live h0 b /\ live h1 b /\ v n < length b
/\ modifies_1 b h0 h1
/\ as_seq h1 b == Seq.upd (as_seq h0 b) (v n) z ))
let upd #a b n z = | true | null | false | let h0 = HST.get () in
let s0 = !b.content in
let s = Seq.upd s0 (v b.idx + v n) z in
b.content := s;
lemma_aux b n z h0;
let h = HST.get () in
Seq.lemma_eq_intro (as_seq h b) (Seq.slice s (idx b) (idx b + length b));
Seq.upd_slice s0 (idx b) (idx b + length b) (v n) z | {
"checked_file": "FStar.Buffer.fst.checked",
"dependencies": [
"prims.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.UInt.fsti.checked",
"FStar.TSet.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.che... | [] | [
"FStar.Buffer.buffer",
"FStar.UInt32.t",
"FStar.Seq.Properties.upd_slice",
"FStar.Buffer.idx",
"Prims.op_Addition",
"FStar.Buffer.length",
"FStar.UInt32.v",
"Prims.unit",
"FStar.Seq.Base.lemma_eq_intro",
"FStar.Buffer.as_seq",
"FStar.Seq.Base.slice",
"FStar.Monotonic.HyperStack.mem",
"FStar.... | [] | (*
Copyright 2008-2018 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | false | false | FStar.Buffer.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 1,
"max_fuel": 0,
"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 upd: #a:Type -> b:buffer a -> n:UInt32.t -> z:a -> Stack unit
(requires (fun h -> live h b /\ v n < length b))
(ensures (fun h0 _ h1 -> live h0 b /\ live h1 b /\ v n < length b
/\ modifies_1 b h0 h1
/\ as_seq h1 b == Seq.upd (as_seq h0 b) (v n) z )) | [] | FStar.Buffer.upd | {
"file_name": "ulib/legacy/FStar.Buffer.fst",
"git_rev": "f4cbb7a38d67eeb13fbdb2f4fb8a44a65cbcdc1f",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | b: FStar.Buffer.buffer a -> n: FStar.UInt32.t -> z: a -> FStar.HyperStack.ST.Stack Prims.unit | {
"end_col": 53,
"end_line": 1021,
"start_col": 18,
"start_line": 1013
} |
FStar.Pervasives.Lemma | val lemma_aux_0
(#a: Type)
(b: buffer a)
(n: UInt32.t{v n < length b})
(z: a)
(h0: mem)
(tt: Type)
(bb: buffer tt)
: Lemma (requires (live h0 b /\ live h0 bb /\ disjoint b bb))
(ensures
(live h0 b /\ live h0 bb /\
(let h1 = HS.upd h0 b.content (Seq.u... | [
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": false,
"full_module": "FStar.Ghost",
"short_module": null
},
{
"abbrev": false,
"full_modu... | false | let lemma_aux_0
(#a:Type) (b:buffer a) (n:UInt32.t{v n < length b}) (z:a) (h0:mem) (tt:Type) (bb:buffer tt)
:Lemma (requires (live h0 b /\ live h0 bb /\ disjoint b bb))
(ensures (live h0 b /\ live h0 bb /\
(let h1 = HS.upd h0 b.content (Seq.upd (sel h0 b) (idx b + v n) z) in
as_seq h0 ... | val lemma_aux_0
(#a: Type)
(b: buffer a)
(n: UInt32.t{v n < length b})
(z: a)
(h0: mem)
(tt: Type)
(bb: buffer tt)
: Lemma (requires (live h0 b /\ live h0 bb /\ disjoint b bb))
(ensures
(live h0 b /\ live h0 bb /\
(let h1 = HS.upd h0 b.content (Seq.u... | false | null | true | Heap.lemma_distinct_addrs_distinct_preorders ();
Heap.lemma_distinct_addrs_distinct_mm () | {
"checked_file": "FStar.Buffer.fst.checked",
"dependencies": [
"prims.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.UInt.fsti.checked",
"FStar.TSet.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.che... | [
"lemma"
] | [
"FStar.Buffer.buffer",
"FStar.UInt32.t",
"Prims.b2t",
"Prims.op_LessThan",
"FStar.UInt32.v",
"FStar.Buffer.length",
"FStar.Monotonic.HyperStack.mem",
"FStar.Monotonic.Heap.lemma_distinct_addrs_distinct_mm",
"Prims.unit",
"FStar.Monotonic.Heap.lemma_distinct_addrs_distinct_preorders",
"Prims.l_an... | [] | (*
Copyright 2008-2018 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | false | false | FStar.Buffer.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 1,
"max_fuel": 0,
"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 lemma_aux_0
(#a: Type)
(b: buffer a)
(n: UInt32.t{v n < length b})
(z: a)
(h0: mem)
(tt: Type)
(bb: buffer tt)
: Lemma (requires (live h0 b /\ live h0 bb /\ disjoint b bb))
(ensures
(live h0 b /\ live h0 bb /\
(let h1 = HS.upd h0 b.content (Seq.u... | [] | FStar.Buffer.lemma_aux_0 | {
"file_name": "ulib/legacy/FStar.Buffer.fst",
"git_rev": "f4cbb7a38d67eeb13fbdb2f4fb8a44a65cbcdc1f",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} |
b: FStar.Buffer.buffer a ->
n: FStar.UInt32.t{FStar.UInt32.v n < FStar.Buffer.length b} ->
z: a ->
h0: FStar.Monotonic.HyperStack.mem ->
tt: Type0 ->
bb: FStar.Buffer.buffer tt
-> FStar.Pervasives.Lemma
(requires FStar.Buffer.live h0 b /\ FStar.Buffer.live h0 bb /\ FStar.Buffer.disjoint... | {
"end_col": 44,
"end_line": 975,
"start_col": 4,
"start_line": 974
} |
Prims.Tot | val offset: #a:Type -> b:buffer a
-> i:UInt32.t{v i + v b.idx < pow2 n /\ v i <= v b.length}
-> Tot (b':buffer a{b `includes` b'}) | [
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": false,
"full_module": "FStar.Ghost",
"short_module": null
},
{
"abbrev": false,
"full_modu... | false | let offset #a b i =
MkBuffer b.max_length b.content (i +^ b.idx) (b.length -^ i) | val offset: #a:Type -> b:buffer a
-> i:UInt32.t{v i + v b.idx < pow2 n /\ v i <= v b.length}
-> Tot (b':buffer a{b `includes` b'})
let offset #a b i = | false | null | false | MkBuffer b.max_length b.content (i +^ b.idx) (b.length -^ i) | {
"checked_file": "FStar.Buffer.fst.checked",
"dependencies": [
"prims.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.UInt.fsti.checked",
"FStar.TSet.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.che... | [
"total"
] | [
"FStar.Buffer.buffer",
"FStar.UInt32.t",
"Prims.l_and",
"Prims.b2t",
"Prims.op_LessThan",
"Prims.op_Addition",
"FStar.UInt32.v",
"FStar.Buffer.__proj__MkBuffer__item__idx",
"Prims.pow2",
"FStar.UInt32.n",
"Prims.op_LessThanOrEqual",
"FStar.Buffer.__proj__MkBuffer__item__length",
"FStar.Buffe... | [] | (*
Copyright 2008-2018 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | false | false | FStar.Buffer.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 1,
"max_fuel": 0,
"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 offset: #a:Type -> b:buffer a
-> i:UInt32.t{v i + v b.idx < pow2 n /\ v i <= v b.length}
-> Tot (b':buffer a{b `includes` b'}) | [] | FStar.Buffer.offset | {
"file_name": "ulib/legacy/FStar.Buffer.fst",
"git_rev": "f4cbb7a38d67eeb13fbdb2f4fb8a44a65cbcdc1f",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} |
b: FStar.Buffer.buffer a ->
i:
FStar.UInt32.t
{ FStar.UInt32.v i + FStar.UInt32.v (MkBuffer?.idx b) < Prims.pow2 FStar.UInt32.n /\
FStar.UInt32.v i <= FStar.UInt32.v (MkBuffer?.length b) }
-> b': FStar.Buffer.buffer a {FStar.Buffer.includes b b'} | {
"end_col": 62,
"end_line": 1072,
"start_col": 2,
"start_line": 1072
} |
FStar.Pervasives.Lemma | val lemma_sub_spec'
(#a: Type)
(b: buffer a)
(i: UInt32.t)
(len: UInt32.t{v len <= length b /\ v i + v len <= length b})
(h: _)
: Lemma (requires (live h b))
(ensures
(live h (sub b i len) /\
as_seq h (sub b i len) == Seq.slice (as_seq h b) (v i) (v i + v len)))... | [
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": false,
"full_module": "FStar.Ghost",
"short_module": null
},
{
"abbrev": false,
"full_modu... | false | let lemma_sub_spec' (#a:Type) (b:buffer a)
(i:UInt32.t)
(len:UInt32.t{v len <= length b /\ v i + v len <= length b})
h : Lemma
(requires (live h b))
(ensures (live h (sub b i len) /\
as_seq h (sub b i len) == Seq.slice (as_seq h b) (v i) (v i + v len)))
[SMTPat (live h (sub b i len))]... | val lemma_sub_spec'
(#a: Type)
(b: buffer a)
(i: UInt32.t)
(len: UInt32.t{v len <= length b /\ v i + v len <= length b})
(h: _)
: Lemma (requires (live h b))
(ensures
(live h (sub b i len) /\
as_seq h (sub b i len) == Seq.slice (as_seq h b) (v i) (v i + v len)))... | false | null | true | lemma_sub_spec b i len h | {
"checked_file": "FStar.Buffer.fst.checked",
"dependencies": [
"prims.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.UInt.fsti.checked",
"FStar.TSet.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.che... | [
"lemma"
] | [
"FStar.Buffer.buffer",
"FStar.UInt32.t",
"Prims.l_and",
"Prims.b2t",
"Prims.op_LessThanOrEqual",
"FStar.UInt32.v",
"FStar.Buffer.length",
"Prims.op_Addition",
"FStar.Monotonic.HyperStack.mem",
"FStar.Buffer.lemma_sub_spec",
"Prims.unit",
"FStar.Buffer.live",
"Prims.squash",
"FStar.Buffer.s... | [] | (*
Copyright 2008-2018 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | false | false | FStar.Buffer.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 1,
"max_fuel": 0,
"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 lemma_sub_spec'
(#a: Type)
(b: buffer a)
(i: UInt32.t)
(len: UInt32.t{v len <= length b /\ v i + v len <= length b})
(h: _)
: Lemma (requires (live h b))
(ensures
(live h (sub b i len) /\
as_seq h (sub b i len) == Seq.slice (as_seq h b) (v i) (v i + v len)))... | [] | FStar.Buffer.lemma_sub_spec' | {
"file_name": "ulib/legacy/FStar.Buffer.fst",
"git_rev": "f4cbb7a38d67eeb13fbdb2f4fb8a44a65cbcdc1f",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} |
b: FStar.Buffer.buffer a ->
i: FStar.UInt32.t ->
len:
FStar.UInt32.t
{ FStar.UInt32.v len <= FStar.Buffer.length b /\
FStar.UInt32.v i + FStar.UInt32.v len <= FStar.Buffer.length b } ->
h: FStar.Monotonic.HyperStack.mem
-> FStar.Pervasives.Lemma (requires FStar.Buffer.live h b... | {
"end_col": 28,
"end_line": 1066,
"start_col": 4,
"start_line": 1066
} |
FStar.Pervasives.Lemma | val lemma_aux: #a:Type -> b:buffer a -> n:UInt32.t{v n < length b} -> z:a
-> h0:mem -> Lemma
(requires (live h0 b))
(ensures (live h0 b
/\ modifies_1 b h0 (HS.upd h0 b.content (Seq.upd (sel h0 b) (idx b + v n) z)) ))
[SMTPat (HS.upd h0 b.content (Seq.upd (sel h0 b) (idx b + v n) z))] | [
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": false,
"full_module": "FStar.Ghost",
"short_module": null
},
{
"abbrev": false,
"full_modu... | false | let lemma_aux #a b n z h0 = lemma_aux_2 b n z h0 | val lemma_aux: #a:Type -> b:buffer a -> n:UInt32.t{v n < length b} -> z:a
-> h0:mem -> Lemma
(requires (live h0 b))
(ensures (live h0 b
/\ modifies_1 b h0 (HS.upd h0 b.content (Seq.upd (sel h0 b) (idx b + v n) z)) ))
[SMTPat (HS.upd h0 b.content (Seq.upd (sel h0 b) (idx b + v n) z))]
let lemma_aux #a b n z ... | false | null | true | lemma_aux_2 b n z h0 | {
"checked_file": "FStar.Buffer.fst.checked",
"dependencies": [
"prims.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.UInt.fsti.checked",
"FStar.TSet.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.che... | [
"lemma"
] | [
"FStar.Buffer.buffer",
"FStar.UInt32.t",
"Prims.b2t",
"Prims.op_LessThan",
"FStar.UInt32.v",
"FStar.Buffer.length",
"FStar.Monotonic.HyperStack.mem",
"FStar.Buffer.lemma_aux_2",
"Prims.unit"
] | [] | (*
Copyright 2008-2018 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | false | false | FStar.Buffer.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 1,
"max_fuel": 0,
"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 lemma_aux: #a:Type -> b:buffer a -> n:UInt32.t{v n < length b} -> z:a
-> h0:mem -> Lemma
(requires (live h0 b))
(ensures (live h0 b
/\ modifies_1 b h0 (HS.upd h0 b.content (Seq.upd (sel h0 b) (idx b + v n) z)) ))
[SMTPat (HS.upd h0 b.content (Seq.upd (sel h0 b) (idx b + v n) z))] | [] | FStar.Buffer.lemma_aux | {
"file_name": "ulib/legacy/FStar.Buffer.fst",
"git_rev": "f4cbb7a38d67eeb13fbdb2f4fb8a44a65cbcdc1f",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} |
b: FStar.Buffer.buffer a ->
n: FStar.UInt32.t{FStar.UInt32.v n < FStar.Buffer.length b} ->
z: a ->
h0: FStar.Monotonic.HyperStack.mem
-> FStar.Pervasives.Lemma (requires FStar.Buffer.live h0 b)
(ensures
FStar.Buffer.live h0 b /\
FStar.Buffer.modifies_1 b
h0
(... | {
"end_col": 48,
"end_line": 1006,
"start_col": 28,
"start_line": 1006
} |
FStar.Pervasives.Lemma | val lemma_aux_1 (#a: Type) (b: buffer a) (n: UInt32.t{v n < length b}) (z: a) (h0: mem) (tt: Type)
: Lemma (requires (live h0 b))
(ensures
(live h0 b /\
(forall (bb: buffer tt).
(live h0 bb /\ disjoint b bb) ==>
(let h1 = HS.upd h0 b.content (Seq.upd (sel h0 b) (i... | [
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": false,
"full_module": "FStar.Ghost",
"short_module": null
},
{
"abbrev": false,
"full_modu... | false | let lemma_aux_1
(#a:Type) (b:buffer a) (n:UInt32.t{v n < length b}) (z:a) (h0:mem) (tt:Type)
:Lemma (requires (live h0 b))
(ensures (live h0 b /\
(forall (bb:buffer tt). (live h0 bb /\ disjoint b bb) ==>
(let h1 = HS.upd h0 b.content (Seq.upd (sel h0 b) (idx b + v n) ... | val lemma_aux_1 (#a: Type) (b: buffer a) (n: UInt32.t{v n < length b}) (z: a) (h0: mem) (tt: Type)
: Lemma (requires (live h0 b))
(ensures
(live h0 b /\
(forall (bb: buffer tt).
(live h0 bb /\ disjoint b bb) ==>
(let h1 = HS.upd h0 b.content (Seq.upd (sel h0 b) (i... | false | null | true | let open FStar.Classical in forall_intro (move_requires (lemma_aux_0 b n z h0 tt)) | {
"checked_file": "FStar.Buffer.fst.checked",
"dependencies": [
"prims.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.UInt.fsti.checked",
"FStar.TSet.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.che... | [
"lemma"
] | [
"FStar.Buffer.buffer",
"FStar.UInt32.t",
"Prims.b2t",
"Prims.op_LessThan",
"FStar.UInt32.v",
"FStar.Buffer.length",
"FStar.Monotonic.HyperStack.mem",
"FStar.Classical.forall_intro",
"Prims.l_imp",
"Prims.l_and",
"FStar.Buffer.live",
"FStar.Buffer.disjoint",
"Prims.eq2",
"FStar.Seq.Base.seq... | [] | (*
Copyright 2008-2018 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | false | false | FStar.Buffer.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 1,
"max_fuel": 0,
"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 lemma_aux_1 (#a: Type) (b: buffer a) (n: UInt32.t{v n < length b}) (z: a) (h0: mem) (tt: Type)
: Lemma (requires (live h0 b))
(ensures
(live h0 b /\
(forall (bb: buffer tt).
(live h0 bb /\ disjoint b bb) ==>
(let h1 = HS.upd h0 b.content (Seq.upd (sel h0 b) (i... | [] | FStar.Buffer.lemma_aux_1 | {
"file_name": "ulib/legacy/FStar.Buffer.fst",
"git_rev": "f4cbb7a38d67eeb13fbdb2f4fb8a44a65cbcdc1f",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} |
b: FStar.Buffer.buffer a ->
n: FStar.UInt32.t{FStar.UInt32.v n < FStar.Buffer.length b} ->
z: a ->
h0: FStar.Monotonic.HyperStack.mem ->
tt: Type0
-> FStar.Pervasives.Lemma (requires FStar.Buffer.live h0 b)
(ensures
FStar.Buffer.live h0 b /\
(forall (bb: FStar.Buffer.buffer ... | {
"end_col": 58,
"end_line": 986,
"start_col": 4,
"start_line": 985
} |
FStar.HyperStack.ST.Stack | val op_Array_Assignment: #a:Type -> b:buffer a -> n:UInt32.t -> z:a -> Stack unit
(requires (fun h -> live h b /\ v n < length b))
(ensures (fun h0 _ h1 -> live h0 b /\ live h1 b /\ v n < length b
/\ modifies_1 b h0 h1
/\ as_seq h1 b == Seq.upd (as_seq h0 b) (v n) z )) | [
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": false,
"full_module": "FStar.Ghost",
"short_module": null
},
{
"abbrev": false,
"full_modu... | false | let op_Array_Assignment #a b n z = upd #a b n z | val op_Array_Assignment: #a:Type -> b:buffer a -> n:UInt32.t -> z:a -> Stack unit
(requires (fun h -> live h b /\ v n < length b))
(ensures (fun h0 _ h1 -> live h0 b /\ live h1 b /\ v n < length b
/\ modifies_1 b h0 h1
/\ as_seq h1 b == Seq.upd (as_seq h0 b) (v n) z ))
let op_Array_Assignment #a b n z = | true | null | false | upd #a b n z | {
"checked_file": "FStar.Buffer.fst.checked",
"dependencies": [
"prims.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.UInt.fsti.checked",
"FStar.TSet.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.che... | [] | [
"FStar.Buffer.buffer",
"FStar.UInt32.t",
"FStar.Buffer.upd",
"Prims.unit"
] | [] | (*
Copyright 2008-2018 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | false | false | FStar.Buffer.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 op_Array_Assignment: #a:Type -> b:buffer a -> n:UInt32.t -> z:a -> Stack unit
(requires (fun h -> live h b /\ v n < length b))
(ensures (fun h0 _ h1 -> live h0 b /\ live h1 b /\ v n < length b
/\ modifies_1 b h0 h1
/\ as_seq h1 b == Seq.upd (as_seq h0 b) (v n) z )) | [] | FStar.Buffer.op_Array_Assignment | {
"file_name": "ulib/legacy/FStar.Buffer.fst",
"git_rev": "f4cbb7a38d67eeb13fbdb2f4fb8a44a65cbcdc1f",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | b: FStar.Buffer.buffer a -> n: FStar.UInt32.t -> z: a -> FStar.HyperStack.ST.Stack Prims.unit | {
"end_col": 47,
"end_line": 1147,
"start_col": 35,
"start_line": 1147
} |
FStar.Pervasives.Lemma | val lemma_sub_spec
(#a: Type)
(b: buffer a)
(i: UInt32.t)
(len: UInt32.t{v len <= length b /\ v i + v len <= length b})
(h: _)
: Lemma (requires (live h b))
(ensures
(live h (sub b i len) /\
as_seq h (sub b i len) == Seq.slice (as_seq h b) (v i) (v i + v len)))
... | [
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": false,
"full_module": "FStar.Ghost",
"short_module": null
},
{
"abbrev": false,
"full_modu... | false | let lemma_sub_spec (#a:Type) (b:buffer a)
(i:UInt32.t)
(len:UInt32.t{v len <= length b /\ v i + v len <= length b})
h : Lemma
(requires (live h b))
(ensures (live h (sub b i len) /\
as_seq h (sub b i len) == Seq.slice (as_seq h b) (v i) (v i + v len)))
[SMTPat (sub b i len); SMTPat (l... | val lemma_sub_spec
(#a: Type)
(b: buffer a)
(i: UInt32.t)
(len: UInt32.t{v len <= length b /\ v i + v len <= length b})
(h: _)
: Lemma (requires (live h b))
(ensures
(live h (sub b i len) /\
as_seq h (sub b i len) == Seq.slice (as_seq h b) (v i) (v i + v len)))
... | false | null | true | Seq.lemma_eq_intro (as_seq h (sub b i len)) (Seq.slice (as_seq h b) (v i) (v i + v len)) | {
"checked_file": "FStar.Buffer.fst.checked",
"dependencies": [
"prims.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.UInt.fsti.checked",
"FStar.TSet.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.che... | [
"lemma"
] | [
"FStar.Buffer.buffer",
"FStar.UInt32.t",
"Prims.l_and",
"Prims.b2t",
"Prims.op_LessThanOrEqual",
"FStar.UInt32.v",
"FStar.Buffer.length",
"Prims.op_Addition",
"FStar.Monotonic.HyperStack.mem",
"FStar.Seq.Base.lemma_eq_intro",
"FStar.Buffer.as_seq",
"FStar.Buffer.sub",
"FStar.Seq.Base.slice",... | [] | (*
Copyright 2008-2018 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | false | false | FStar.Buffer.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 1,
"max_fuel": 0,
"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 lemma_sub_spec
(#a: Type)
(b: buffer a)
(i: UInt32.t)
(len: UInt32.t{v len <= length b /\ v i + v len <= length b})
(h: _)
: Lemma (requires (live h b))
(ensures
(live h (sub b i len) /\
as_seq h (sub b i len) == Seq.slice (as_seq h b) (v i) (v i + v len)))
... | [] | FStar.Buffer.lemma_sub_spec | {
"file_name": "ulib/legacy/FStar.Buffer.fst",
"git_rev": "f4cbb7a38d67eeb13fbdb2f4fb8a44a65cbcdc1f",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} |
b: FStar.Buffer.buffer a ->
i: FStar.UInt32.t ->
len:
FStar.UInt32.t
{ FStar.UInt32.v len <= FStar.Buffer.length b /\
FStar.UInt32.v i + FStar.UInt32.v len <= FStar.Buffer.length b } ->
h: FStar.Monotonic.HyperStack.mem
-> FStar.Pervasives.Lemma (requires FStar.Buffer.live h b... | {
"end_col": 92,
"end_line": 1056,
"start_col": 4,
"start_line": 1056
} |
Prims.Tot | val split (#t: _) (b: buffer t) (i: UInt32.t{v i <= length b}) : Tot (buffer t * buffer t) | [
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": false,
"full_module": "FStar.Ghost",
"short_module": null
},
{
"abbrev": false,
"full_modu... | false | let split #t (b:buffer t) (i:UInt32.t{v i <= length b}) : Tot (buffer t * buffer t)
= sub b 0ul i, offset b i | val split (#t: _) (b: buffer t) (i: UInt32.t{v i <= length b}) : Tot (buffer t * buffer t)
let split #t (b: buffer t) (i: UInt32.t{v i <= length b}) : Tot (buffer t * buffer t) = | false | null | false | sub b 0ul i, offset b i | {
"checked_file": "FStar.Buffer.fst.checked",
"dependencies": [
"prims.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.UInt.fsti.checked",
"FStar.TSet.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.che... | [
"total"
] | [
"FStar.Buffer.buffer",
"FStar.UInt32.t",
"Prims.b2t",
"Prims.op_LessThanOrEqual",
"FStar.UInt32.v",
"FStar.Buffer.length",
"FStar.Pervasives.Native.Mktuple2",
"FStar.Buffer.sub",
"FStar.UInt32.__uint_to_t",
"FStar.Buffer.offset",
"FStar.Pervasives.Native.tuple2"
] | [] | (*
Copyright 2008-2018 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | false | false | FStar.Buffer.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 split (#t: _) (b: buffer t) (i: UInt32.t{v i <= length b}) : Tot (buffer t * buffer t) | [] | FStar.Buffer.split | {
"file_name": "ulib/legacy/FStar.Buffer.fst",
"git_rev": "f4cbb7a38d67eeb13fbdb2f4fb8a44a65cbcdc1f",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | b: FStar.Buffer.buffer t -> i: FStar.UInt32.t{FStar.UInt32.v i <= FStar.Buffer.length b}
-> FStar.Buffer.buffer t * FStar.Buffer.buffer t | {
"end_col": 27,
"end_line": 1216,
"start_col": 4,
"start_line": 1216
} |
FStar.Pervasives.Lemma | val lemma_aux_2 (#a: Type) (b: buffer a) (n: UInt32.t{v n < length b}) (z: a) (h0: mem)
: Lemma (requires (live h0 b))
(ensures
(live h0 b /\
(forall (tt: Type) (bb: buffer tt).
(live h0 bb /\ disjoint b bb) ==>
(let h1 = HS.upd h0 b.content (Seq.upd (sel h0 b) (i... | [
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": false,
"full_module": "FStar.Ghost",
"short_module": null
},
{
"abbrev": false,
"full_modu... | false | let lemma_aux_2
(#a:Type) (b:buffer a) (n:UInt32.t{v n < length b}) (z:a) (h0:mem)
:Lemma (requires (live h0 b))
(ensures (live h0 b /\
(forall (tt:Type) (bb:buffer tt). (live h0 bb /\ disjoint b bb) ==>
(let h1 = HS.upd h0 b.content (Seq.upd (sel h0 b) (idx... | val lemma_aux_2 (#a: Type) (b: buffer a) (n: UInt32.t{v n < length b}) (z: a) (h0: mem)
: Lemma (requires (live h0 b))
(ensures
(live h0 b /\
(forall (tt: Type) (bb: buffer tt).
(live h0 bb /\ disjoint b bb) ==>
(let h1 = HS.upd h0 b.content (Seq.upd (sel h0 b) (i... | false | null | true | let open FStar.Classical in forall_intro (move_requires (lemma_aux_1 b n z h0)) | {
"checked_file": "FStar.Buffer.fst.checked",
"dependencies": [
"prims.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.UInt.fsti.checked",
"FStar.TSet.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.che... | [
"lemma"
] | [
"FStar.Buffer.buffer",
"FStar.UInt32.t",
"Prims.b2t",
"Prims.op_LessThan",
"FStar.UInt32.v",
"FStar.Buffer.length",
"FStar.Monotonic.HyperStack.mem",
"FStar.Classical.forall_intro",
"Prims.l_imp",
"FStar.Buffer.live",
"Prims.l_and",
"Prims.l_Forall",
"FStar.Buffer.disjoint",
"Prims.eq2",
... | [] | (*
Copyright 2008-2018 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | false | false | FStar.Buffer.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 1,
"max_fuel": 0,
"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 lemma_aux_2 (#a: Type) (b: buffer a) (n: UInt32.t{v n < length b}) (z: a) (h0: mem)
: Lemma (requires (live h0 b))
(ensures
(live h0 b /\
(forall (tt: Type) (bb: buffer tt).
(live h0 bb /\ disjoint b bb) ==>
(let h1 = HS.upd h0 b.content (Seq.upd (sel h0 b) (i... | [] | FStar.Buffer.lemma_aux_2 | {
"file_name": "ulib/legacy/FStar.Buffer.fst",
"git_rev": "f4cbb7a38d67eeb13fbdb2f4fb8a44a65cbcdc1f",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} |
b: FStar.Buffer.buffer a ->
n: FStar.UInt32.t{FStar.UInt32.v n < FStar.Buffer.length b} ->
z: a ->
h0: FStar.Monotonic.HyperStack.mem
-> FStar.Pervasives.Lemma (requires FStar.Buffer.live h0 b)
(ensures
FStar.Buffer.live h0 b /\
(forall (tt: Type0) (bb: FStar.Buffer.buffer tt).
... | {
"end_col": 55,
"end_line": 998,
"start_col": 4,
"start_line": 997
} |
FStar.Pervasives.Lemma | val eq_lemma1:
#a:eqtype
-> b1:buffer a
-> b2:buffer a
-> len:UInt32.t{v len <= length b1 /\ v len <= length b2}
-> h:mem
-> Lemma
(requires (forall (j:nat). j < v len ==> get h b1 j == get h b2 j))
(ensures equal h (sub b1 0ul len) h (sub b2 0ul len))
[SMTPat (equal h (sub b1 0ul len) h (sub... | [
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": false,
"full_module": "FStar.Ghost",
"short_module": null
},
{
"abbrev": false,
"full_modu... | false | let eq_lemma1 #a b1 b2 len h =
Seq.lemma_eq_intro (as_seq h (sub b1 0ul len)) (as_seq h (sub b2 0ul len)) | val eq_lemma1:
#a:eqtype
-> b1:buffer a
-> b2:buffer a
-> len:UInt32.t{v len <= length b1 /\ v len <= length b2}
-> h:mem
-> Lemma
(requires (forall (j:nat). j < v len ==> get h b1 j == get h b2 j))
(ensures equal h (sub b1 0ul len) h (sub b2 0ul len))
[SMTPat (equal h (sub b1 0ul len) h (sub... | false | null | true | Seq.lemma_eq_intro (as_seq h (sub b1 0ul len)) (as_seq h (sub b2 0ul len)) | {
"checked_file": "FStar.Buffer.fst.checked",
"dependencies": [
"prims.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.UInt.fsti.checked",
"FStar.TSet.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.che... | [
"lemma"
] | [
"Prims.eqtype",
"FStar.Buffer.buffer",
"FStar.UInt32.t",
"Prims.l_and",
"Prims.b2t",
"Prims.op_LessThanOrEqual",
"FStar.UInt32.v",
"FStar.Buffer.length",
"FStar.Monotonic.HyperStack.mem",
"FStar.Seq.Base.lemma_eq_intro",
"FStar.Buffer.as_seq",
"FStar.Buffer.sub",
"FStar.UInt32.__uint_to_t",
... | [] | (*
Copyright 2008-2018 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | false | false | FStar.Buffer.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 1,
"max_fuel": 0,
"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 eq_lemma1:
#a:eqtype
-> b1:buffer a
-> b2:buffer a
-> len:UInt32.t{v len <= length b1 /\ v len <= length b2}
-> h:mem
-> Lemma
(requires (forall (j:nat). j < v len ==> get h b1 j == get h b2 j))
(ensures equal h (sub b1 0ul len) h (sub b2 0ul len))
[SMTPat (equal h (sub b1 0ul len) h (sub... | [] | FStar.Buffer.eq_lemma1 | {
"file_name": "ulib/legacy/FStar.Buffer.fst",
"git_rev": "f4cbb7a38d67eeb13fbdb2f4fb8a44a65cbcdc1f",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} |
b1: FStar.Buffer.buffer a ->
b2: FStar.Buffer.buffer a ->
len:
FStar.UInt32.t
{ FStar.UInt32.v len <= FStar.Buffer.length b1 /\
FStar.UInt32.v len <= FStar.Buffer.length b2 } ->
h: FStar.Monotonic.HyperStack.mem
-> FStar.Pervasives.Lemma
(requires
forall (j: Prim... | {
"end_col": 76,
"end_line": 1094,
"start_col": 2,
"start_line": 1094
} |
FStar.HyperStack.ST.Stack | val fill: #t:Type
-> b:buffer t
-> z:t
-> len:UInt32.t{v len <= length b}
-> Stack unit
(requires (fun h -> live h b))
(ensures (fun h0 _ h1 -> live h0 b /\ live h1 b /\ modifies_1 b h0 h1
/\ Seq.slice (as_seq h1 b) 0 (v len) == Seq.create (v len) z
/\ Seq.slice (as_seq h1 b) (v len) (lengt... | [
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": false,
"full_module": "FStar.Ghost",
"short_module": null
},
{
"abbrev": false,
"full_modu... | false | let rec fill #t b z len =
let h0 = HST.get () in
if len =^ 0ul then ()
else
begin
let len' = len -^ 1ul in
fill #t b z len';
b.(len') <- z;
let h = HST.get() in
Seq.snoc_slice_index (as_seq h b) 0 (v len');
Seq.lemma_tail_slice (as_seq h b) (v len') (length b)
end;
let h1 = HST.g... | val fill: #t:Type
-> b:buffer t
-> z:t
-> len:UInt32.t{v len <= length b}
-> Stack unit
(requires (fun h -> live h b))
(ensures (fun h0 _ h1 -> live h0 b /\ live h1 b /\ modifies_1 b h0 h1
/\ Seq.slice (as_seq h1 b) 0 (v len) == Seq.create (v len) z
/\ Seq.slice (as_seq h1 b) (v len) (lengt... | true | null | false | let h0 = HST.get () in
if len =^ 0ul
then ()
else
(let len' = len -^ 1ul in
fill #t b z len';
b.(len') <- z;
let h = HST.get () in
Seq.snoc_slice_index (as_seq h b) 0 (v len');
Seq.lemma_tail_slice (as_seq h b) (v len') (length b));
let h1 = HST.get () in
Seq.lemma_eq_intro (Seq.slice (as_seq h1 b... | {
"checked_file": "FStar.Buffer.fst.checked",
"dependencies": [
"prims.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.UInt.fsti.checked",
"FStar.TSet.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.che... | [] | [
"FStar.Buffer.buffer",
"FStar.UInt32.t",
"Prims.b2t",
"Prims.op_LessThanOrEqual",
"FStar.UInt32.v",
"FStar.Buffer.length",
"FStar.Seq.Base.lemma_eq_intro",
"FStar.Seq.Base.slice",
"FStar.Buffer.as_seq",
"FStar.Seq.Base.create",
"Prims.unit",
"FStar.Monotonic.HyperStack.mem",
"FStar.HyperStac... | [] | (*
Copyright 2008-2018 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | false | false | FStar.Buffer.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 fill: #t:Type
-> b:buffer t
-> z:t
-> len:UInt32.t{v len <= length b}
-> Stack unit
(requires (fun h -> live h b))
(ensures (fun h0 _ h1 -> live h0 b /\ live h1 b /\ modifies_1 b h0 h1
/\ Seq.slice (as_seq h1 b) 0 (v len) == Seq.create (v len) z
/\ Seq.slice (as_seq h1 b) (v len) (lengt... | [
"recursion"
] | FStar.Buffer.fill | {
"file_name": "ulib/legacy/FStar.Buffer.fst",
"git_rev": "f4cbb7a38d67eeb13fbdb2f4fb8a44a65cbcdc1f",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | b: FStar.Buffer.buffer t -> z: t -> len: FStar.UInt32.t{FStar.UInt32.v len <= FStar.Buffer.length b}
-> FStar.HyperStack.ST.Stack Prims.unit | {
"end_col": 79,
"end_line": 1212,
"start_col": 25,
"start_line": 1199
} |
FStar.HyperStack.ST.ST | val eqb: #a:eqtype -> b1:buffer a -> b2:buffer a
-> len:UInt32.t{v len <= length b1 /\ v len <= length b2}
-> ST bool
(requires (fun h -> live h b1 /\ live h b2))
(ensures (fun h0 z h1 -> h1 == h0 /\
(z <==> equal h0 (sub b1 0ul len) h0 (sub b2 0ul len)))) | [
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": false,
"full_module": "FStar.Ghost",
"short_module": null
},
{
"abbrev": false,
"full_modu... | false | let rec eqb #a b1 b2 len =
if len =^ 0ul then true
else
let len' = len -^ 1ul in
if index b1 len' = index b2 len' then
eqb b1 b2 len'
else
false | val eqb: #a:eqtype -> b1:buffer a -> b2:buffer a
-> len:UInt32.t{v len <= length b1 /\ v len <= length b2}
-> ST bool
(requires (fun h -> live h b1 /\ live h b2))
(ensures (fun h0 z h1 -> h1 == h0 /\
(z <==> equal h0 (sub b1 0ul len) h0 (sub b2 0ul len))))
let rec eqb #a b1 b2 len = | true | null | false | if len =^ 0ul
then true
else
let len' = len -^ 1ul in
if index b1 len' = index b2 len' then eqb b1 b2 len' else false | {
"checked_file": "FStar.Buffer.fst.checked",
"dependencies": [
"prims.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.UInt.fsti.checked",
"FStar.TSet.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.che... | [] | [
"Prims.eqtype",
"FStar.Buffer.buffer",
"FStar.UInt32.t",
"Prims.l_and",
"Prims.b2t",
"Prims.op_LessThanOrEqual",
"FStar.UInt32.v",
"FStar.Buffer.length",
"FStar.UInt32.op_Equals_Hat",
"FStar.UInt32.__uint_to_t",
"Prims.bool",
"FStar.Buffer.eqb",
"Prims.op_Equality",
"FStar.Buffer.index",
... | [] | (*
Copyright 2008-2018 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | false | false | FStar.Buffer.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 eqb: #a:eqtype -> b1:buffer a -> b2:buffer a
-> len:UInt32.t{v len <= length b1 /\ v len <= length b2}
-> ST bool
(requires (fun h -> live h b1 /\ live h b2))
(ensures (fun h0 z h1 -> h1 == h0 /\
(z <==> equal h0 (sub b1 0ul len) h0 (sub b2 0ul len)))) | [
"recursion"
] | FStar.Buffer.eqb | {
"file_name": "ulib/legacy/FStar.Buffer.fst",
"git_rev": "f4cbb7a38d67eeb13fbdb2f4fb8a44a65cbcdc1f",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} |
b1: FStar.Buffer.buffer a ->
b2: FStar.Buffer.buffer a ->
len:
FStar.UInt32.t
{ FStar.UInt32.v len <= FStar.Buffer.length b1 /\
FStar.UInt32.v len <= FStar.Buffer.length b2 }
-> FStar.HyperStack.ST.ST Prims.bool | {
"end_col": 11,
"end_line": 1128,
"start_col": 2,
"start_line": 1122
} |
Prims.Tot | val create5 (x0 x1 x2 x3 x4: uint64) : list uint64 | [
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "FL"
},
{
"abbrev": true,
"full_module": "Spec.Curve25519",
"short_module": "SC"
},
{
"abbrev": true,
"full_module": "Spec.Ed25519",
"short_module": "S"
},
{
"abbrev": true,
"full_module": "Hac... | false | let create5 (x0 x1 x2 x3 x4:uint64) : list uint64 = [x0; x1; x2; x3; x4] | val create5 (x0 x1 x2 x3 x4: uint64) : list uint64
let create5 (x0 x1 x2 x3 x4: uint64) : list uint64 = | false | null | false | [x0; x1; x2; x3; x4] | {
"checked_file": "Hacl.Spec.Ed25519.PrecompTable.fsti.checked",
"dependencies": [
"Spec.Ed25519.fst.checked",
"Spec.Curve25519.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Hacl.Spec.Curve25519.Field51.Definition.fst.checked",
"Hacl.Impl.E... | [
"total"
] | [
"Lib.IntTypes.uint64",
"Prims.Cons",
"Prims.Nil",
"Prims.list"
] | [] | module Hacl.Spec.Ed25519.PrecompTable
open FStar.Mul
open Lib.IntTypes
open Lib.Sequence
module F51 = Hacl.Impl.Ed25519.Field51
module SF51 = Hacl.Spec.Curve25519.Field51.Definition
module S = Spec.Ed25519
module SC = Spec.Curve25519
module FL = FStar.List.Tot
#set-options "--z3rlimit 50 --fuel 0 --ifuel 0" | false | true | Hacl.Spec.Ed25519.PrecompTable.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 create5 (x0 x1 x2 x3 x4: uint64) : list uint64 | [] | Hacl.Spec.Ed25519.PrecompTable.create5 | {
"file_name": "code/ed25519/Hacl.Spec.Ed25519.PrecompTable.fsti",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} |
x0: Lib.IntTypes.uint64 ->
x1: Lib.IntTypes.uint64 ->
x2: Lib.IntTypes.uint64 ->
x3: Lib.IntTypes.uint64 ->
x4: Lib.IntTypes.uint64
-> Prims.list Lib.IntTypes.uint64 | {
"end_col": 72,
"end_line": 17,
"start_col": 52,
"start_line": 17
} |
Prims.Tot | [
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "FL"
},
{
"abbrev": true,
"full_module": "Spec.Curve25519",
"short_module": "SC"
},
{
"abbrev": true,
"full_module": "Spec.Ed25519",
"short_module": "S"
},
{
"abbrev": true,
"full_module": "Hac... | false | let felem_list = x:list uint64{FL.length x == 5} | let felem_list = | false | null | false | x: list uint64 {FL.length x == 5} | {
"checked_file": "Hacl.Spec.Ed25519.PrecompTable.fsti.checked",
"dependencies": [
"Spec.Ed25519.fst.checked",
"Spec.Curve25519.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Hacl.Spec.Curve25519.Field51.Definition.fst.checked",
"Hacl.Impl.E... | [
"total"
] | [
"Prims.list",
"Lib.IntTypes.uint64",
"Prims.eq2",
"Prims.int",
"FStar.List.Tot.Base.length"
] | [] | module Hacl.Spec.Ed25519.PrecompTable
open FStar.Mul
open Lib.IntTypes
open Lib.Sequence
module F51 = Hacl.Impl.Ed25519.Field51
module SF51 = Hacl.Spec.Curve25519.Field51.Definition
module S = Spec.Ed25519
module SC = Spec.Curve25519
module FL = FStar.List.Tot
#set-options "--z3rlimit 50 --fuel 0 --ifuel 0"
unfold... | false | true | Hacl.Spec.Ed25519.PrecompTable.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 felem_list : Type0 | [] | Hacl.Spec.Ed25519.PrecompTable.felem_list | {
"file_name": "code/ed25519/Hacl.Spec.Ed25519.PrecompTable.fsti",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | Type0 | {
"end_col": 48,
"end_line": 20,
"start_col": 17,
"start_line": 20
} | |
Prims.Tot | [
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "FL"
},
{
"abbrev": true,
"full_module": "Spec.Curve25519",
"short_module": "SC"
},
{
"abbrev": true,
"full_module": "Spec.Ed25519",
"short_module": "S"
},
{
"abbrev": true,
"full_module": "Hac... | false | let point_list = x:list uint64{FL.length x == 20} | let point_list = | false | null | false | x: list uint64 {FL.length x == 20} | {
"checked_file": "Hacl.Spec.Ed25519.PrecompTable.fsti.checked",
"dependencies": [
"Spec.Ed25519.fst.checked",
"Spec.Curve25519.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Hacl.Spec.Curve25519.Field51.Definition.fst.checked",
"Hacl.Impl.E... | [
"total"
] | [
"Prims.list",
"Lib.IntTypes.uint64",
"Prims.eq2",
"Prims.int",
"FStar.List.Tot.Base.length"
] | [] | module Hacl.Spec.Ed25519.PrecompTable
open FStar.Mul
open Lib.IntTypes
open Lib.Sequence
module F51 = Hacl.Impl.Ed25519.Field51
module SF51 = Hacl.Spec.Curve25519.Field51.Definition
module S = Spec.Ed25519
module SC = Spec.Curve25519
module FL = FStar.List.Tot
#set-options "--z3rlimit 50 --fuel 0 --ifuel 0"
unfold... | false | true | Hacl.Spec.Ed25519.PrecompTable.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 point_list : Type0 | [] | Hacl.Spec.Ed25519.PrecompTable.point_list | {
"file_name": "code/ed25519/Hacl.Spec.Ed25519.PrecompTable.fsti",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | Type0 | {
"end_col": 49,
"end_line": 22,
"start_col": 17,
"start_line": 22
} | |
Prims.Tot | [
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "FL"
},
{
"abbrev": true,
"full_module": "Spec.Curve25519",
"short_module": "SC"
},
{
"abbrev": true,
"full_module": "Spec.Ed25519",
"short_module": "S"
},
{
"abbrev": true,
"full_module": "Hac... | false | let pow51 = SF51.pow51 | let pow51 = | false | null | false | SF51.pow51 | {
"checked_file": "Hacl.Spec.Ed25519.PrecompTable.fsti.checked",
"dependencies": [
"Spec.Ed25519.fst.checked",
"Spec.Curve25519.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Hacl.Spec.Curve25519.Field51.Definition.fst.checked",
"Hacl.Impl.E... | [
"total"
] | [
"Hacl.Spec.Curve25519.Field51.Definition.pow51"
] | [] | module Hacl.Spec.Ed25519.PrecompTable
open FStar.Mul
open Lib.IntTypes
open Lib.Sequence
module F51 = Hacl.Impl.Ed25519.Field51
module SF51 = Hacl.Spec.Curve25519.Field51.Definition
module S = Spec.Ed25519
module SC = Spec.Curve25519
module FL = FStar.List.Tot
#set-options "--z3rlimit 50 --fuel 0 --ifuel 0"
unfold... | false | false | Hacl.Spec.Ed25519.PrecompTable.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 pow51 : pow51:
Prims.pos
{ Prims.pow2 64 == 8192 * pow51 /\ Prims.pow2 128 == (67108864 * pow51) * pow51 /\
pow51 == Prims.pow2 51 } | [] | Hacl.Spec.Ed25519.PrecompTable.pow51 | {
"file_name": "code/ed25519/Hacl.Spec.Ed25519.PrecompTable.fsti",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | pow51:
Prims.pos
{ Prims.pow2 64 == 8192 * pow51 /\ Prims.pow2 128 == (67108864 * pow51) * pow51 /\
pow51 == Prims.pow2 51 } | {
"end_col": 22,
"end_line": 25,
"start_col": 12,
"start_line": 25
} | |
Prims.Tot | val ext_point_to_list (p: S.ext_point) : point_list | [
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "FL"
},
{
"abbrev": true,
"full_module": "Spec.Curve25519",
"short_module": "SC"
},
{
"abbrev": true,
"full_module": "Spec.Ed25519",
"short_module": "S"
},
{
"abbrev": true,
"full_module": "Hac... | false | let ext_point_to_list (p:S.ext_point) : point_list =
[@inline_let] let (px, py, pz, pt) = p in
FL.(felem_to_list px @ felem_to_list py @ felem_to_list pz @ felem_to_list pt) | val ext_point_to_list (p: S.ext_point) : point_list
let ext_point_to_list (p: S.ext_point) : point_list = | false | null | false | [@@ inline_let ]let px, py, pz, pt = p in
let open FL in felem_to_list px @ felem_to_list py @ felem_to_list pz @ felem_to_list pt | {
"checked_file": "Hacl.Spec.Ed25519.PrecompTable.fsti.checked",
"dependencies": [
"Spec.Ed25519.fst.checked",
"Spec.Curve25519.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Hacl.Spec.Curve25519.Field51.Definition.fst.checked",
"Hacl.Impl.E... | [
"total"
] | [
"Spec.Ed25519.PointOps.ext_point",
"Spec.Curve25519.elem",
"FStar.List.Tot.Base.op_At",
"Lib.IntTypes.uint64",
"Hacl.Spec.Ed25519.PrecompTable.felem_to_list",
"Hacl.Spec.Ed25519.PrecompTable.point_list"
] | [] | module Hacl.Spec.Ed25519.PrecompTable
open FStar.Mul
open Lib.IntTypes
open Lib.Sequence
module F51 = Hacl.Impl.Ed25519.Field51
module SF51 = Hacl.Spec.Curve25519.Field51.Definition
module S = Spec.Ed25519
module SC = Spec.Curve25519
module FL = FStar.List.Tot
#set-options "--z3rlimit 50 --fuel 0 --ifuel 0"
unfold... | false | true | Hacl.Spec.Ed25519.PrecompTable.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 ext_point_to_list (p: S.ext_point) : point_list | [] | Hacl.Spec.Ed25519.PrecompTable.ext_point_to_list | {
"file_name": "code/ed25519/Hacl.Spec.Ed25519.PrecompTable.fsti",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | p: Spec.Ed25519.PointOps.ext_point -> Hacl.Spec.Ed25519.PrecompTable.point_list | {
"end_col": 80,
"end_line": 68,
"start_col": 2,
"start_line": 67
} |
Prims.Tot | val pow102:(pow102: pos{pow2 102 == pow102 /\ pow102 = pow51 * pow51}) | [
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "FL"
},
{
"abbrev": true,
"full_module": "Spec.Curve25519",
"short_module": "SC"
},
{
"abbrev": true,
"full_module": "Spec.Ed25519",
"short_module": "S"
},
{
"abbrev": true,
"full_module": "Hac... | false | let pow102: (pow102:pos{pow2 102 == pow102 /\ pow102 = pow51 * pow51}) =
let pow102:pos = normalize_term (pow2 102) in
normalize_term_spec (pow2 102);
Math.Lemmas.pow2_plus 51 51;
pow102 | val pow102:(pow102: pos{pow2 102 == pow102 /\ pow102 = pow51 * pow51})
let pow102:(pow102: pos{pow2 102 == pow102 /\ pow102 = pow51 * pow51}) = | false | null | false | let pow102:pos = normalize_term (pow2 102) in
normalize_term_spec (pow2 102);
Math.Lemmas.pow2_plus 51 51;
pow102 | {
"checked_file": "Hacl.Spec.Ed25519.PrecompTable.fsti.checked",
"dependencies": [
"Spec.Ed25519.fst.checked",
"Spec.Curve25519.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Hacl.Spec.Curve25519.Field51.Definition.fst.checked",
"Hacl.Impl.E... | [
"total"
] | [
"Prims.unit",
"FStar.Math.Lemmas.pow2_plus",
"FStar.Pervasives.normalize_term_spec",
"Prims.pos",
"Prims.pow2",
"FStar.Pervasives.normalize_term"
] | [] | module Hacl.Spec.Ed25519.PrecompTable
open FStar.Mul
open Lib.IntTypes
open Lib.Sequence
module F51 = Hacl.Impl.Ed25519.Field51
module SF51 = Hacl.Spec.Curve25519.Field51.Definition
module S = Spec.Ed25519
module SC = Spec.Curve25519
module FL = FStar.List.Tot
#set-options "--z3rlimit 50 --fuel 0 --ifuel 0"
unfold... | false | false | Hacl.Spec.Ed25519.PrecompTable.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 pow102:(pow102: pos{pow2 102 == pow102 /\ pow102 = pow51 * pow51}) | [] | Hacl.Spec.Ed25519.PrecompTable.pow102 | {
"file_name": "code/ed25519/Hacl.Spec.Ed25519.PrecompTable.fsti",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | pow102:
Prims.pos
{ Prims.pow2 102 == pow102 /\
pow102 = Hacl.Spec.Ed25519.PrecompTable.pow51 * Hacl.Spec.Ed25519.PrecompTable.pow51 } | {
"end_col": 8,
"end_line": 32,
"start_col": 72,
"start_line": 28
} |
Prims.Tot | val pow153:(pow153: pos{pow2 153 == pow153 /\ pow153 = pow51 * pow51 * pow51}) | [
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "FL"
},
{
"abbrev": true,
"full_module": "Spec.Curve25519",
"short_module": "SC"
},
{
"abbrev": true,
"full_module": "Spec.Ed25519",
"short_module": "S"
},
{
"abbrev": true,
"full_module": "Hac... | false | let pow153: (pow153:pos{pow2 153 == pow153 /\ pow153 = pow51 * pow51 * pow51}) =
let pow153:pos = normalize_term (pow2 153) in
normalize_term_spec (pow2 153);
Math.Lemmas.pow2_plus 51 51;
Math.Lemmas.pow2_plus 102 51;
pow153 | val pow153:(pow153: pos{pow2 153 == pow153 /\ pow153 = pow51 * pow51 * pow51})
let pow153:(pow153: pos{pow2 153 == pow153 /\ pow153 = pow51 * pow51 * pow51}) = | false | null | false | let pow153:pos = normalize_term (pow2 153) in
normalize_term_spec (pow2 153);
Math.Lemmas.pow2_plus 51 51;
Math.Lemmas.pow2_plus 102 51;
pow153 | {
"checked_file": "Hacl.Spec.Ed25519.PrecompTable.fsti.checked",
"dependencies": [
"Spec.Ed25519.fst.checked",
"Spec.Curve25519.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Hacl.Spec.Curve25519.Field51.Definition.fst.checked",
"Hacl.Impl.E... | [
"total"
] | [
"Prims.unit",
"FStar.Math.Lemmas.pow2_plus",
"FStar.Pervasives.normalize_term_spec",
"Prims.pos",
"Prims.pow2",
"FStar.Pervasives.normalize_term"
] | [] | module Hacl.Spec.Ed25519.PrecompTable
open FStar.Mul
open Lib.IntTypes
open Lib.Sequence
module F51 = Hacl.Impl.Ed25519.Field51
module SF51 = Hacl.Spec.Curve25519.Field51.Definition
module S = Spec.Ed25519
module SC = Spec.Curve25519
module FL = FStar.List.Tot
#set-options "--z3rlimit 50 --fuel 0 --ifuel 0"
unfold... | false | false | Hacl.Spec.Ed25519.PrecompTable.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 pow153:(pow153: pos{pow2 153 == pow153 /\ pow153 = pow51 * pow51 * pow51}) | [] | Hacl.Spec.Ed25519.PrecompTable.pow153 | {
"file_name": "code/ed25519/Hacl.Spec.Ed25519.PrecompTable.fsti",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | pow153:
Prims.pos
{ Prims.pow2 153 == pow153 /\
pow153 =
(Hacl.Spec.Ed25519.PrecompTable.pow51 * Hacl.Spec.Ed25519.PrecompTable.pow51) *
Hacl.Spec.Ed25519.PrecompTable.pow51 } | {
"end_col": 8,
"end_line": 40,
"start_col": 80,
"start_line": 35
} |
Prims.Tot | val pow204:(pow204: pos{pow2 204 == pow204 /\ pow204 = pow51 * pow51 * pow51 * pow51}) | [
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "FL"
},
{
"abbrev": true,
"full_module": "Spec.Curve25519",
"short_module": "SC"
},
{
"abbrev": true,
"full_module": "Spec.Ed25519",
"short_module": "S"
},
{
"abbrev": true,
"full_module": "Hac... | false | let pow204: (pow204:pos{pow2 204 == pow204 /\ pow204 = pow51 * pow51 * pow51 * pow51}) =
let pow204:pos = normalize_term (pow2 204) in
normalize_term_spec (pow2 204);
Math.Lemmas.pow2_plus 51 51;
Math.Lemmas.pow2_plus 102 51;
Math.Lemmas.pow2_plus 153 51;
pow204 | val pow204:(pow204: pos{pow2 204 == pow204 /\ pow204 = pow51 * pow51 * pow51 * pow51})
let pow204:(pow204: pos{pow2 204 == pow204 /\ pow204 = pow51 * pow51 * pow51 * pow51}) = | false | null | false | let pow204:pos = normalize_term (pow2 204) in
normalize_term_spec (pow2 204);
Math.Lemmas.pow2_plus 51 51;
Math.Lemmas.pow2_plus 102 51;
Math.Lemmas.pow2_plus 153 51;
pow204 | {
"checked_file": "Hacl.Spec.Ed25519.PrecompTable.fsti.checked",
"dependencies": [
"Spec.Ed25519.fst.checked",
"Spec.Curve25519.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Hacl.Spec.Curve25519.Field51.Definition.fst.checked",
"Hacl.Impl.E... | [
"total"
] | [
"Prims.unit",
"FStar.Math.Lemmas.pow2_plus",
"FStar.Pervasives.normalize_term_spec",
"Prims.pos",
"Prims.pow2",
"FStar.Pervasives.normalize_term"
] | [] | module Hacl.Spec.Ed25519.PrecompTable
open FStar.Mul
open Lib.IntTypes
open Lib.Sequence
module F51 = Hacl.Impl.Ed25519.Field51
module SF51 = Hacl.Spec.Curve25519.Field51.Definition
module S = Spec.Ed25519
module SC = Spec.Curve25519
module FL = FStar.List.Tot
#set-options "--z3rlimit 50 --fuel 0 --ifuel 0"
unfold... | false | false | Hacl.Spec.Ed25519.PrecompTable.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 pow204:(pow204: pos{pow2 204 == pow204 /\ pow204 = pow51 * pow51 * pow51 * pow51}) | [] | Hacl.Spec.Ed25519.PrecompTable.pow204 | {
"file_name": "code/ed25519/Hacl.Spec.Ed25519.PrecompTable.fsti",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | pow204:
Prims.pos
{ Prims.pow2 204 == pow204 /\
pow204 =
((Hacl.Spec.Ed25519.PrecompTable.pow51 * Hacl.Spec.Ed25519.PrecompTable.pow51) *
Hacl.Spec.Ed25519.PrecompTable.pow51) *
Hacl.Spec.Ed25519.PrecompTable.pow51 } | {
"end_col": 8,
"end_line": 49,
"start_col": 88,
"start_line": 43
} |
Prims.Tot | [
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "FL"
},
{
"abbrev": true,
"full_module": "Spec.Curve25519",
"short_module": "SC"
},
{
"abbrev": true,
"full_module": "Spec.Ed25519",
"short_module": "S"
},
{
"abbrev": true,
"full_module": "Hac... | false | let point_inv_list (p:point_list) =
let x = Seq.seq_of_list p <: lseq uint64 20 in
//F51.inv_ext_point x
F51.linv x | let point_inv_list (p: point_list) = | false | null | false | let x = Seq.seq_of_list p <: lseq uint64 20 in
F51.linv x | {
"checked_file": "Hacl.Spec.Ed25519.PrecompTable.fsti.checked",
"dependencies": [
"Spec.Ed25519.fst.checked",
"Spec.Curve25519.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Hacl.Spec.Curve25519.Field51.Definition.fst.checked",
"Hacl.Impl.E... | [
"total"
] | [
"Hacl.Spec.Ed25519.PrecompTable.point_list",
"Hacl.Impl.Ed25519.Field51.linv",
"Lib.Sequence.lseq",
"Lib.IntTypes.int_t",
"Lib.IntTypes.U64",
"Lib.IntTypes.SEC",
"FStar.Seq.Properties.seq_of_list",
"Lib.IntTypes.uint64"
] | [] | module Hacl.Spec.Ed25519.PrecompTable
open FStar.Mul
open Lib.IntTypes
open Lib.Sequence
module F51 = Hacl.Impl.Ed25519.Field51
module SF51 = Hacl.Spec.Curve25519.Field51.Definition
module S = Spec.Ed25519
module SC = Spec.Curve25519
module FL = FStar.List.Tot
#set-options "--z3rlimit 50 --fuel 0 --ifuel 0"
unfold... | false | true | Hacl.Spec.Ed25519.PrecompTable.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 point_inv_list : p: Hacl.Spec.Ed25519.PrecompTable.point_list -> Type0 | [] | Hacl.Spec.Ed25519.PrecompTable.point_inv_list | {
"file_name": "code/ed25519/Hacl.Spec.Ed25519.PrecompTable.fsti",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | p: Hacl.Spec.Ed25519.PrecompTable.point_list -> Type0 | {
"end_col": 12,
"end_line": 75,
"start_col": 35,
"start_line": 72
} | |
Prims.GTot | val point_eval_list (p: point_list) : GTot S.ext_point | [
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "FL"
},
{
"abbrev": true,
"full_module": "Spec.Curve25519",
"short_module": "SC"
},
{
"abbrev": true,
"full_module": "Spec.Ed25519",
"short_module": "S"
},
{
"abbrev": true,
"full_module": "Hac... | false | let point_eval_list (p:point_list) : GTot S.ext_point =
let x = Seq.seq_of_list p <: lseq uint64 20 in
F51.refl_ext_point x | val point_eval_list (p: point_list) : GTot S.ext_point
let point_eval_list (p: point_list) : GTot S.ext_point = | false | null | false | let x = Seq.seq_of_list p <: lseq uint64 20 in
F51.refl_ext_point x | {
"checked_file": "Hacl.Spec.Ed25519.PrecompTable.fsti.checked",
"dependencies": [
"Spec.Ed25519.fst.checked",
"Spec.Curve25519.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Hacl.Spec.Curve25519.Field51.Definition.fst.checked",
"Hacl.Impl.E... | [
"sometrivial"
] | [
"Hacl.Spec.Ed25519.PrecompTable.point_list",
"Hacl.Impl.Ed25519.Field51.refl_ext_point",
"Lib.Sequence.lseq",
"Lib.IntTypes.int_t",
"Lib.IntTypes.U64",
"Lib.IntTypes.SEC",
"FStar.Seq.Properties.seq_of_list",
"Lib.IntTypes.uint64",
"Spec.Ed25519.PointOps.ext_point"
] | [] | module Hacl.Spec.Ed25519.PrecompTable
open FStar.Mul
open Lib.IntTypes
open Lib.Sequence
module F51 = Hacl.Impl.Ed25519.Field51
module SF51 = Hacl.Spec.Curve25519.Field51.Definition
module S = Spec.Ed25519
module SC = Spec.Curve25519
module FL = FStar.List.Tot
#set-options "--z3rlimit 50 --fuel 0 --ifuel 0"
unfold... | false | false | Hacl.Spec.Ed25519.PrecompTable.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 point_eval_list (p: point_list) : GTot S.ext_point | [] | Hacl.Spec.Ed25519.PrecompTable.point_eval_list | {
"file_name": "code/ed25519/Hacl.Spec.Ed25519.PrecompTable.fsti",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | p: Hacl.Spec.Ed25519.PrecompTable.point_list -> Prims.GTot Spec.Ed25519.PointOps.ext_point | {
"end_col": 22,
"end_line": 80,
"start_col": 55,
"start_line": 78
} |
Prims.Tot | val felem_to_list (x: SC.elem) : felem_list | [
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "FL"
},
{
"abbrev": true,
"full_module": "Spec.Curve25519",
"short_module": "SC"
},
{
"abbrev": true,
"full_module": "Spec.Ed25519",
"short_module": "S"
},
{
"abbrev": true,
"full_module": "Hac... | false | let felem_to_list (x:SC.elem) : felem_list =
[@inline_let] let x0 = x % pow51 in
[@inline_let] let x1 = x / pow51 % pow51 in
[@inline_let] let x2 = x / pow102 % pow51 in
[@inline_let] let x3 = x / pow153 % pow51 in
[@inline_let] let x4 = x / pow204 in
Math.Lemmas.lemma_div_lt_nat x 255 204;
[@inline_let] ... | val felem_to_list (x: SC.elem) : felem_list
let felem_to_list (x: SC.elem) : felem_list = | false | null | false | [@@ inline_let ]let x0 = x % pow51 in
[@@ inline_let ]let x1 = x / pow51 % pow51 in
[@@ inline_let ]let x2 = x / pow102 % pow51 in
[@@ inline_let ]let x3 = x / pow153 % pow51 in
[@@ inline_let ]let x4 = x / pow204 in
Math.Lemmas.lemma_div_lt_nat x 255 204;
[@@ inline_let ]let r = create5 (u64 x0) (u64 x1) (u64 x2) (u64... | {
"checked_file": "Hacl.Spec.Ed25519.PrecompTable.fsti.checked",
"dependencies": [
"Spec.Ed25519.fst.checked",
"Spec.Curve25519.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Hacl.Spec.Curve25519.Field51.Definition.fst.checked",
"Hacl.Impl.E... | [
"total"
] | [
"Spec.Curve25519.elem",
"Prims.unit",
"FStar.Pervasives.assert_norm",
"Prims.b2t",
"Prims.op_Equality",
"Prims.int",
"FStar.List.Tot.Base.length",
"Lib.IntTypes.uint64",
"Prims.list",
"Lib.IntTypes.int_t",
"Lib.IntTypes.U64",
"Lib.IntTypes.SEC",
"Hacl.Spec.Ed25519.PrecompTable.create5",
"L... | [] | module Hacl.Spec.Ed25519.PrecompTable
open FStar.Mul
open Lib.IntTypes
open Lib.Sequence
module F51 = Hacl.Impl.Ed25519.Field51
module SF51 = Hacl.Spec.Curve25519.Field51.Definition
module S = Spec.Ed25519
module SC = Spec.Curve25519
module FL = FStar.List.Tot
#set-options "--z3rlimit 50 --fuel 0 --ifuel 0"
unfold... | false | true | Hacl.Spec.Ed25519.PrecompTable.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 felem_to_list (x: SC.elem) : felem_list | [] | Hacl.Spec.Ed25519.PrecompTable.felem_to_list | {
"file_name": "code/ed25519/Hacl.Spec.Ed25519.PrecompTable.fsti",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | x: Spec.Curve25519.elem -> Hacl.Spec.Ed25519.PrecompTable.felem_list | {
"end_col": 3,
"end_line": 62,
"start_col": 2,
"start_line": 54
} |
Prims.Tot | val point_mul_g (a: qelem) : proj_point | [
{
"abbrev": false,
"full_module": "Spec.P256.PointOps",
"short_module": null
},
{
"abbrev": true,
"full_module": "Spec.P256.Lemmas",
"short_module": "PL"
},
{
"abbrev": true,
"full_module": "Spec.Exponentiation",
"short_module": "SE"
},
{
"abbrev": true,
"full... | false | let point_mul_g (a:qelem) : proj_point = point_mul a base_point | val point_mul_g (a: qelem) : proj_point
let point_mul_g (a: qelem) : proj_point = | false | null | false | point_mul a base_point | {
"checked_file": "Spec.P256.fst.checked",
"dependencies": [
"Spec.P256.PointOps.fst.checked",
"Spec.P256.Lemmas.fsti.checked",
"Spec.Hash.Definitions.fst.checked",
"Spec.Exponentiation.fsti.checked",
"Spec.Agile.Hash.fsti.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"... | [
"total"
] | [
"Spec.P256.PointOps.qelem",
"Spec.P256.point_mul",
"Spec.P256.PointOps.base_point",
"Spec.P256.PointOps.proj_point"
] | [] | module Spec.P256
open FStar.Mul
open Lib.IntTypes
open Lib.Sequence
open Lib.ByteSequence
open Spec.Hash.Definitions
module M = Lib.NatMod
module LE = Lib.Exponentiation
module SE = Spec.Exponentiation
module PL = Spec.P256.Lemmas
include Spec.P256.PointOps
#set-options "--z3rlimit 50 --fuel 0 --ifuel 0"
(** https... | false | true | Spec.P256.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 point_mul_g (a: qelem) : proj_point | [] | Spec.P256.point_mul_g | {
"file_name": "specs/Spec.P256.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | a: Spec.P256.PointOps.qelem -> Spec.P256.PointOps.proj_point | {
"end_col": 63,
"end_line": 63,
"start_col": 41,
"start_line": 63
} |
Prims.Tot | val point_mul (a: qelem) (p: proj_point) : proj_point | [
{
"abbrev": false,
"full_module": "Spec.P256.PointOps",
"short_module": null
},
{
"abbrev": true,
"full_module": "Spec.P256.Lemmas",
"short_module": "PL"
},
{
"abbrev": true,
"full_module": "Spec.Exponentiation",
"short_module": "SE"
},
{
"abbrev": true,
"full... | false | let point_mul (a:qelem) (p:proj_point) : proj_point =
SE.exp_fw mk_p256_concrete_ops p 256 a 4 | val point_mul (a: qelem) (p: proj_point) : proj_point
let point_mul (a: qelem) (p: proj_point) : proj_point = | false | null | false | SE.exp_fw mk_p256_concrete_ops p 256 a 4 | {
"checked_file": "Spec.P256.fst.checked",
"dependencies": [
"Spec.P256.PointOps.fst.checked",
"Spec.P256.Lemmas.fsti.checked",
"Spec.Hash.Definitions.fst.checked",
"Spec.Exponentiation.fsti.checked",
"Spec.Agile.Hash.fsti.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"... | [
"total"
] | [
"Spec.P256.PointOps.qelem",
"Spec.P256.PointOps.proj_point",
"Spec.Exponentiation.exp_fw",
"Spec.P256.mk_p256_concrete_ops"
] | [] | module Spec.P256
open FStar.Mul
open Lib.IntTypes
open Lib.Sequence
open Lib.ByteSequence
open Spec.Hash.Definitions
module M = Lib.NatMod
module LE = Lib.Exponentiation
module SE = Spec.Exponentiation
module PL = Spec.P256.Lemmas
include Spec.P256.PointOps
#set-options "--z3rlimit 50 --fuel 0 --ifuel 0"
(** https... | false | true | Spec.P256.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 point_mul (a: qelem) (p: proj_point) : proj_point | [] | Spec.P256.point_mul | {
"file_name": "specs/Spec.P256.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | a: Spec.P256.PointOps.qelem -> p: Spec.P256.PointOps.proj_point -> Spec.P256.PointOps.proj_point | {
"end_col": 42,
"end_line": 60,
"start_col": 2,
"start_line": 60
} |
Prims.Tot | val point_mul_double_g (a1 a2: qelem) (p: proj_point) : proj_point | [
{
"abbrev": false,
"full_module": "Spec.P256.PointOps",
"short_module": null
},
{
"abbrev": true,
"full_module": "Spec.P256.Lemmas",
"short_module": "PL"
},
{
"abbrev": true,
"full_module": "Spec.Exponentiation",
"short_module": "SE"
},
{
"abbrev": true,
"full... | false | let point_mul_double_g (a1 a2:qelem) (p:proj_point) : proj_point =
SE.exp_double_fw mk_p256_concrete_ops base_point 256 a1 p a2 5 | val point_mul_double_g (a1 a2: qelem) (p: proj_point) : proj_point
let point_mul_double_g (a1 a2: qelem) (p: proj_point) : proj_point = | false | null | false | SE.exp_double_fw mk_p256_concrete_ops base_point 256 a1 p a2 5 | {
"checked_file": "Spec.P256.fst.checked",
"dependencies": [
"Spec.P256.PointOps.fst.checked",
"Spec.P256.Lemmas.fsti.checked",
"Spec.Hash.Definitions.fst.checked",
"Spec.Exponentiation.fsti.checked",
"Spec.Agile.Hash.fsti.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"... | [
"total"
] | [
"Spec.P256.PointOps.qelem",
"Spec.P256.PointOps.proj_point",
"Spec.Exponentiation.exp_double_fw",
"Spec.P256.mk_p256_concrete_ops",
"Spec.P256.PointOps.base_point"
] | [] | module Spec.P256
open FStar.Mul
open Lib.IntTypes
open Lib.Sequence
open Lib.ByteSequence
open Spec.Hash.Definitions
module M = Lib.NatMod
module LE = Lib.Exponentiation
module SE = Spec.Exponentiation
module PL = Spec.P256.Lemmas
include Spec.P256.PointOps
#set-options "--z3rlimit 50 --fuel 0 --ifuel 0"
(** https... | false | true | Spec.P256.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 point_mul_double_g (a1 a2: qelem) (p: proj_point) : proj_point | [] | Spec.P256.point_mul_double_g | {
"file_name": "specs/Spec.P256.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | a1: Spec.P256.PointOps.qelem -> a2: Spec.P256.PointOps.qelem -> p: Spec.P256.PointOps.proj_point
-> Spec.P256.PointOps.proj_point | {
"end_col": 64,
"end_line": 67,
"start_col": 2,
"start_line": 67
} |
Prims.Tot | val mk_p256_comm_monoid:LE.comm_monoid aff_point | [
{
"abbrev": false,
"full_module": "Spec.P256.PointOps",
"short_module": null
},
{
"abbrev": true,
"full_module": "Spec.P256.Lemmas",
"short_module": "PL"
},
{
"abbrev": true,
"full_module": "Spec.Exponentiation",
"short_module": "SE"
},
{
"abbrev": true,
"full... | false | let mk_p256_comm_monoid : LE.comm_monoid aff_point = {
LE.one = aff_point_at_inf;
LE.mul = aff_point_add;
LE.lemma_one = PL.aff_point_at_inf_lemma;
LE.lemma_mul_assoc = PL.aff_point_add_assoc_lemma;
LE.lemma_mul_comm = PL.aff_point_add_comm_lemma;
} | val mk_p256_comm_monoid:LE.comm_monoid aff_point
let mk_p256_comm_monoid:LE.comm_monoid aff_point = | false | null | false | {
LE.one = aff_point_at_inf;
LE.mul = aff_point_add;
LE.lemma_one = PL.aff_point_at_inf_lemma;
LE.lemma_mul_assoc = PL.aff_point_add_assoc_lemma;
LE.lemma_mul_comm = PL.aff_point_add_comm_lemma
} | {
"checked_file": "Spec.P256.fst.checked",
"dependencies": [
"Spec.P256.PointOps.fst.checked",
"Spec.P256.Lemmas.fsti.checked",
"Spec.Hash.Definitions.fst.checked",
"Spec.Exponentiation.fsti.checked",
"Spec.Agile.Hash.fsti.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"... | [
"total"
] | [
"Lib.Exponentiation.Definition.Mkcomm_monoid",
"Spec.P256.PointOps.aff_point",
"Spec.P256.PointOps.aff_point_at_inf",
"Spec.P256.PointOps.aff_point_add",
"Spec.P256.Lemmas.aff_point_at_inf_lemma",
"Spec.P256.Lemmas.aff_point_add_assoc_lemma",
"Spec.P256.Lemmas.aff_point_add_comm_lemma"
] | [] | module Spec.P256
open FStar.Mul
open Lib.IntTypes
open Lib.Sequence
open Lib.ByteSequence
open Spec.Hash.Definitions
module M = Lib.NatMod
module LE = Lib.Exponentiation
module SE = Spec.Exponentiation
module PL = Spec.P256.Lemmas
include Spec.P256.PointOps
#set-options "--z3rlimit 50 --fuel 0 --ifuel 0"
(** https... | false | true | Spec.P256.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_p256_comm_monoid:LE.comm_monoid aff_point | [] | Spec.P256.mk_p256_comm_monoid | {
"file_name": "specs/Spec.P256.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | Lib.Exponentiation.Definition.comm_monoid Spec.P256.PointOps.aff_point | {
"end_col": 50,
"end_line": 27,
"start_col": 2,
"start_line": 23
} |
Prims.Tot | val min_input_length (a: hash_alg_ecdsa) : nat | [
{
"abbrev": false,
"full_module": "Spec.P256.PointOps",
"short_module": null
},
{
"abbrev": true,
"full_module": "Spec.P256.Lemmas",
"short_module": "PL"
},
{
"abbrev": true,
"full_module": "Spec.Exponentiation",
"short_module": "SE"
},
{
"abbrev": true,
"full... | false | let min_input_length (a:hash_alg_ecdsa) : nat =
match a with | NoHash -> 32 | Hash a -> 0 | val min_input_length (a: hash_alg_ecdsa) : nat
let min_input_length (a: hash_alg_ecdsa) : nat = | false | null | false | match a with
| NoHash -> 32
| Hash a -> 0 | {
"checked_file": "Spec.P256.fst.checked",
"dependencies": [
"Spec.P256.PointOps.fst.checked",
"Spec.P256.Lemmas.fsti.checked",
"Spec.Hash.Definitions.fst.checked",
"Spec.Exponentiation.fsti.checked",
"Spec.Agile.Hash.fsti.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"... | [
"total"
] | [
"Spec.P256.hash_alg_ecdsa",
"Spec.Hash.Definitions.hash_alg",
"Prims.l_or",
"Prims.eq2",
"Spec.Hash.Definitions.SHA2_256",
"Spec.Hash.Definitions.SHA2_384",
"Spec.Hash.Definitions.SHA2_512",
"Prims.nat"
] | [] | module Spec.P256
open FStar.Mul
open Lib.IntTypes
open Lib.Sequence
open Lib.ByteSequence
open Spec.Hash.Definitions
module M = Lib.NatMod
module LE = Lib.Exponentiation
module SE = Spec.Exponentiation
module PL = Spec.P256.Lemmas
include Spec.P256.PointOps
#set-options "--z3rlimit 50 --fuel 0 --ifuel 0"
(** https... | false | true | Spec.P256.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 min_input_length (a: hash_alg_ecdsa) : nat | [] | Spec.P256.min_input_length | {
"file_name": "specs/Spec.P256.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | a: Spec.P256.hash_alg_ecdsa -> Prims.nat | {
"end_col": 43,
"end_line": 84,
"start_col": 2,
"start_line": 84
} |
Prims.Tot | val point_double_c : SE.sqr_st proj_point mk_to_p256_comm_monoid | [
{
"abbrev": false,
"full_module": "Spec.P256.PointOps",
"short_module": null
},
{
"abbrev": true,
"full_module": "Spec.P256.Lemmas",
"short_module": "PL"
},
{
"abbrev": true,
"full_module": "Spec.Exponentiation",
"short_module": "SE"
},
{
"abbrev": true,
"full... | false | let point_double_c p =
PL.to_aff_point_double_lemma p;
point_double p | val point_double_c : SE.sqr_st proj_point mk_to_p256_comm_monoid
let point_double_c p = | false | null | false | PL.to_aff_point_double_lemma p;
point_double p | {
"checked_file": "Spec.P256.fst.checked",
"dependencies": [
"Spec.P256.PointOps.fst.checked",
"Spec.P256.Lemmas.fsti.checked",
"Spec.Hash.Definitions.fst.checked",
"Spec.Exponentiation.fsti.checked",
"Spec.Agile.Hash.fsti.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"... | [
"total"
] | [
"Spec.P256.PointOps.proj_point",
"Spec.P256.PointOps.point_double",
"Prims.unit",
"Spec.P256.Lemmas.to_aff_point_double_lemma"
] | [] | module Spec.P256
open FStar.Mul
open Lib.IntTypes
open Lib.Sequence
open Lib.ByteSequence
open Spec.Hash.Definitions
module M = Lib.NatMod
module LE = Lib.Exponentiation
module SE = Spec.Exponentiation
module PL = Spec.P256.Lemmas
include Spec.P256.PointOps
#set-options "--z3rlimit 50 --fuel 0 --ifuel 0"
(** https... | false | true | Spec.P256.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 point_double_c : SE.sqr_st proj_point mk_to_p256_comm_monoid | [] | Spec.P256.point_double_c | {
"file_name": "specs/Spec.P256.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | Spec.Exponentiation.sqr_st Spec.P256.PointOps.proj_point Spec.P256.mk_to_p256_comm_monoid | {
"end_col": 16,
"end_line": 49,
"start_col": 2,
"start_line": 48
} |
Prims.Tot | val point_add_c : SE.mul_st proj_point mk_to_p256_comm_monoid | [
{
"abbrev": false,
"full_module": "Spec.P256.PointOps",
"short_module": null
},
{
"abbrev": true,
"full_module": "Spec.P256.Lemmas",
"short_module": "PL"
},
{
"abbrev": true,
"full_module": "Spec.Exponentiation",
"short_module": "SE"
},
{
"abbrev": true,
"full... | false | let point_add_c p q =
PL.to_aff_point_add_lemma p q;
point_add p q | val point_add_c : SE.mul_st proj_point mk_to_p256_comm_monoid
let point_add_c p q = | false | null | false | PL.to_aff_point_add_lemma p q;
point_add p q | {
"checked_file": "Spec.P256.fst.checked",
"dependencies": [
"Spec.P256.PointOps.fst.checked",
"Spec.P256.Lemmas.fsti.checked",
"Spec.Hash.Definitions.fst.checked",
"Spec.Exponentiation.fsti.checked",
"Spec.Agile.Hash.fsti.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"... | [
"total"
] | [
"Spec.P256.PointOps.proj_point",
"Spec.P256.PointOps.point_add",
"Prims.unit",
"Spec.P256.Lemmas.to_aff_point_add_lemma"
] | [] | module Spec.P256
open FStar.Mul
open Lib.IntTypes
open Lib.Sequence
open Lib.ByteSequence
open Spec.Hash.Definitions
module M = Lib.NatMod
module LE = Lib.Exponentiation
module SE = Spec.Exponentiation
module PL = Spec.P256.Lemmas
include Spec.P256.PointOps
#set-options "--z3rlimit 50 --fuel 0 --ifuel 0"
(** https... | false | true | Spec.P256.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 point_add_c : SE.mul_st proj_point mk_to_p256_comm_monoid | [] | Spec.P256.point_add_c | {
"file_name": "specs/Spec.P256.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | Spec.Exponentiation.mul_st Spec.P256.PointOps.proj_point Spec.P256.mk_to_p256_comm_monoid | {
"end_col": 15,
"end_line": 44,
"start_col": 2,
"start_line": 43
} |
Prims.Tot | val point_at_inf_c: SE.one_st proj_point mk_to_p256_comm_monoid | [
{
"abbrev": false,
"full_module": "Spec.P256.PointOps",
"short_module": null
},
{
"abbrev": true,
"full_module": "Spec.P256.Lemmas",
"short_module": "PL"
},
{
"abbrev": true,
"full_module": "Spec.Exponentiation",
"short_module": "SE"
},
{
"abbrev": true,
"full... | false | let point_at_inf_c _ =
PL.to_aff_point_at_infinity_lemma ();
point_at_inf | val point_at_inf_c: SE.one_st proj_point mk_to_p256_comm_monoid
let point_at_inf_c _ = | false | null | false | PL.to_aff_point_at_infinity_lemma ();
point_at_inf | {
"checked_file": "Spec.P256.fst.checked",
"dependencies": [
"Spec.P256.PointOps.fst.checked",
"Spec.P256.Lemmas.fsti.checked",
"Spec.Hash.Definitions.fst.checked",
"Spec.Exponentiation.fsti.checked",
"Spec.Agile.Hash.fsti.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"... | [
"total"
] | [
"Prims.unit",
"Spec.P256.PointOps.point_at_inf",
"Spec.P256.Lemmas.to_aff_point_at_infinity_lemma",
"Spec.P256.PointOps.proj_point"
] | [] | module Spec.P256
open FStar.Mul
open Lib.IntTypes
open Lib.Sequence
open Lib.ByteSequence
open Spec.Hash.Definitions
module M = Lib.NatMod
module LE = Lib.Exponentiation
module SE = Spec.Exponentiation
module PL = Spec.P256.Lemmas
include Spec.P256.PointOps
#set-options "--z3rlimit 50 --fuel 0 --ifuel 0"
(** https... | false | true | Spec.P256.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 point_at_inf_c: SE.one_st proj_point mk_to_p256_comm_monoid | [] | Spec.P256.point_at_inf_c | {
"file_name": "specs/Spec.P256.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | Spec.Exponentiation.one_st Spec.P256.PointOps.proj_point Spec.P256.mk_to_p256_comm_monoid | {
"end_col": 14,
"end_line": 39,
"start_col": 2,
"start_line": 38
} |
Prims.Tot | val hash_ecdsa:
a:hash_alg_ecdsa
-> msg_len:size_nat{msg_len >= min_input_length a}
-> msg:lseq uint8 msg_len ->
Tot (r:lbytes
(if Hash? a then hash_length (match a with Hash a -> a) else msg_len){length r >= 32}) | [
{
"abbrev": false,
"full_module": "Spec.P256.PointOps",
"short_module": null
},
{
"abbrev": true,
"full_module": "Spec.P256.Lemmas",
"short_module": "PL"
},
{
"abbrev": true,
"full_module": "Spec.Exponentiation",
"short_module": "SE"
},
{
"abbrev": true,
"full... | false | let hash_ecdsa a msg_len msg =
match a with | NoHash -> msg | Hash a -> Spec.Agile.Hash.hash a msg | val hash_ecdsa:
a:hash_alg_ecdsa
-> msg_len:size_nat{msg_len >= min_input_length a}
-> msg:lseq uint8 msg_len ->
Tot (r:lbytes
(if Hash? a then hash_length (match a with Hash a -> a) else msg_len){length r >= 32})
let hash_ecdsa a msg_len msg = | false | null | false | match a with
| NoHash -> msg
| Hash a -> Spec.Agile.Hash.hash a msg | {
"checked_file": "Spec.P256.fst.checked",
"dependencies": [
"Spec.P256.PointOps.fst.checked",
"Spec.P256.Lemmas.fsti.checked",
"Spec.Hash.Definitions.fst.checked",
"Spec.Exponentiation.fsti.checked",
"Spec.Agile.Hash.fsti.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"... | [
"total"
] | [
"Spec.P256.hash_alg_ecdsa",
"Lib.IntTypes.size_nat",
"Prims.b2t",
"Prims.op_GreaterThanOrEqual",
"Spec.P256.min_input_length",
"Lib.Sequence.lseq",
"Lib.IntTypes.uint8",
"Spec.Hash.Definitions.hash_alg",
"Prims.l_or",
"Prims.eq2",
"Spec.Hash.Definitions.SHA2_256",
"Spec.Hash.Definitions.SHA2_3... | [] | module Spec.P256
open FStar.Mul
open Lib.IntTypes
open Lib.Sequence
open Lib.ByteSequence
open Spec.Hash.Definitions
module M = Lib.NatMod
module LE = Lib.Exponentiation
module SE = Spec.Exponentiation
module PL = Spec.P256.Lemmas
include Spec.P256.PointOps
#set-options "--z3rlimit 50 --fuel 0 --ifuel 0"
(** https... | false | false | Spec.P256.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_ecdsa:
a:hash_alg_ecdsa
-> msg_len:size_nat{msg_len >= min_input_length a}
-> msg:lseq uint8 msg_len ->
Tot (r:lbytes
(if Hash? a then hash_length (match a with Hash a -> a) else msg_len){length r >= 32}) | [] | Spec.P256.hash_ecdsa | {
"file_name": "specs/Spec.P256.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} |
a: Spec.P256.hash_alg_ecdsa ->
msg_len: Lib.IntTypes.size_nat{msg_len >= Spec.P256.min_input_length a} ->
msg: Lib.Sequence.lseq Lib.IntTypes.uint8 msg_len
-> r:
Lib.ByteSequence.lbytes (match Hash? a with
| true ->
Spec.Hash.Definitions.hash_length (let Spec.P256.Hash a = a in
... | {
"end_col": 69,
"end_line": 95,
"start_col": 2,
"start_line": 95
} |
Prims.Tot | val validate_public_key (pk: lbytes 64) : bool | [
{
"abbrev": false,
"full_module": "Spec.P256.PointOps",
"short_module": null
},
{
"abbrev": true,
"full_module": "Spec.P256.Lemmas",
"short_module": "PL"
},
{
"abbrev": true,
"full_module": "Spec.Exponentiation",
"short_module": "SE"
},
{
"abbrev": true,
"full... | false | let validate_public_key (pk:lbytes 64) : bool =
Some? (load_point pk) | val validate_public_key (pk: lbytes 64) : bool
let validate_public_key (pk: lbytes 64) : bool = | false | null | false | Some? (load_point pk) | {
"checked_file": "Spec.P256.fst.checked",
"dependencies": [
"Spec.P256.PointOps.fst.checked",
"Spec.P256.Lemmas.fsti.checked",
"Spec.Hash.Definitions.fst.checked",
"Spec.Exponentiation.fsti.checked",
"Spec.Agile.Hash.fsti.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"... | [
"total"
] | [
"Lib.ByteSequence.lbytes",
"FStar.Pervasives.Native.uu___is_Some",
"Spec.P256.PointOps.proj_point",
"Spec.P256.PointOps.load_point",
"Prims.bool"
] | [] | module Spec.P256
open FStar.Mul
open Lib.IntTypes
open Lib.Sequence
open Lib.ByteSequence
open Spec.Hash.Definitions
module M = Lib.NatMod
module LE = Lib.Exponentiation
module SE = Spec.Exponentiation
module PL = Spec.P256.Lemmas
include Spec.P256.PointOps
#set-options "--z3rlimit 50 --fuel 0 --ifuel 0"
(** https... | false | false | Spec.P256.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 validate_public_key (pk: lbytes 64) : bool | [] | Spec.P256.validate_public_key | {
"file_name": "specs/Spec.P256.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | pk: Lib.ByteSequence.lbytes 64 -> Prims.bool | {
"end_col": 23,
"end_line": 202,
"start_col": 2,
"start_line": 202
} |
Prims.Tot | val ecdsa_verify_msg_as_qelem (m: qelem) (public_key: lbytes 64) (sign_r sign_s: lbytes 32) : bool | [
{
"abbrev": false,
"full_module": "Spec.P256.PointOps",
"short_module": null
},
{
"abbrev": true,
"full_module": "Spec.P256.Lemmas",
"short_module": "PL"
},
{
"abbrev": true,
"full_module": "Spec.Exponentiation",
"short_module": "SE"
},
{
"abbrev": true,
"full... | false | let ecdsa_verify_msg_as_qelem (m:qelem) (public_key:lbytes 64) (sign_r sign_s:lbytes 32) : bool =
let pk = load_point public_key in
let r = nat_from_bytes_be sign_r in
let s = nat_from_bytes_be sign_s in
let is_r_valid = 0 < r && r < order in
let is_s_valid = 0 < s && s < order in
if not (Some? pk && is_r_... | val ecdsa_verify_msg_as_qelem (m: qelem) (public_key: lbytes 64) (sign_r sign_s: lbytes 32) : bool
let ecdsa_verify_msg_as_qelem (m: qelem) (public_key: lbytes 64) (sign_r sign_s: lbytes 32) : bool = | false | null | false | let pk = load_point public_key in
let r = nat_from_bytes_be sign_r in
let s = nat_from_bytes_be sign_s in
let is_r_valid = 0 < r && r < order in
let is_s_valid = 0 < s && s < order in
if not (Some? pk && is_r_valid && is_s_valid)
then false
else
let sinv = qinv s in
let u1 = sinv *^ m in
let u2 = sinv *^ r in
l... | {
"checked_file": "Spec.P256.fst.checked",
"dependencies": [
"Spec.P256.PointOps.fst.checked",
"Spec.P256.Lemmas.fsti.checked",
"Spec.Hash.Definitions.fst.checked",
"Spec.Exponentiation.fsti.checked",
"Spec.Agile.Hash.fsti.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"... | [
"total"
] | [
"Spec.P256.PointOps.qelem",
"Lib.ByteSequence.lbytes",
"Prims.op_Negation",
"Prims.op_AmpAmp",
"FStar.Pervasives.Native.uu___is_Some",
"Spec.P256.PointOps.proj_point",
"Prims.bool",
"Prims.nat",
"Spec.P256.PointOps.is_point_at_inf",
"FStar.Pervasives.Native.Mktuple3",
"Prims.op_Equality",
"Pri... | [] | module Spec.P256
open FStar.Mul
open Lib.IntTypes
open Lib.Sequence
open Lib.ByteSequence
open Spec.Hash.Definitions
module M = Lib.NatMod
module LE = Lib.Exponentiation
module SE = Spec.Exponentiation
module PL = Spec.P256.Lemmas
include Spec.P256.PointOps
#set-options "--z3rlimit 50 --fuel 0 --ifuel 0"
(** https... | false | false | Spec.P256.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 ecdsa_verify_msg_as_qelem (m: qelem) (public_key: lbytes 64) (sign_r sign_s: lbytes 32) : bool | [] | Spec.P256.ecdsa_verify_msg_as_qelem | {
"file_name": "specs/Spec.P256.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} |
m: Spec.P256.PointOps.qelem ->
public_key: Lib.ByteSequence.lbytes 64 ->
sign_r: Lib.ByteSequence.lbytes 32 ->
sign_s: Lib.ByteSequence.lbytes 32
-> Prims.bool | {
"end_col": 5,
"end_line": 134,
"start_col": 97,
"start_line": 117
} |
Prims.Tot | val secret_to_public (private_key: lbytes 32) : option (lbytes 64) | [
{
"abbrev": false,
"full_module": "Spec.P256.PointOps",
"short_module": null
},
{
"abbrev": true,
"full_module": "Spec.P256.Lemmas",
"short_module": "PL"
},
{
"abbrev": true,
"full_module": "Spec.Exponentiation",
"short_module": "SE"
},
{
"abbrev": true,
"full... | false | let secret_to_public (private_key:lbytes 32) : option (lbytes 64) =
let sk = nat_from_bytes_be private_key in
let is_sk_valid = 0 < sk && sk < order in
if is_sk_valid then
let pk = point_mul_g sk in
Some (point_store pk)
else None | val secret_to_public (private_key: lbytes 32) : option (lbytes 64)
let secret_to_public (private_key: lbytes 32) : option (lbytes 64) = | false | null | false | let sk = nat_from_bytes_be private_key in
let is_sk_valid = 0 < sk && sk < order in
if is_sk_valid
then
let pk = point_mul_g sk in
Some (point_store pk)
else None | {
"checked_file": "Spec.P256.fst.checked",
"dependencies": [
"Spec.P256.PointOps.fst.checked",
"Spec.P256.Lemmas.fsti.checked",
"Spec.Hash.Definitions.fst.checked",
"Spec.Exponentiation.fsti.checked",
"Spec.Agile.Hash.fsti.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"... | [
"total"
] | [
"Lib.ByteSequence.lbytes",
"FStar.Pervasives.Native.Some",
"Spec.P256.PointOps.point_store",
"Spec.P256.PointOps.proj_point",
"Spec.P256.point_mul_g",
"Prims.bool",
"FStar.Pervasives.Native.None",
"FStar.Pervasives.Native.option",
"Prims.op_AmpAmp",
"Prims.op_LessThan",
"Spec.P256.PointOps.order... | [] | module Spec.P256
open FStar.Mul
open Lib.IntTypes
open Lib.Sequence
open Lib.ByteSequence
open Spec.Hash.Definitions
module M = Lib.NatMod
module LE = Lib.Exponentiation
module SE = Spec.Exponentiation
module PL = Spec.P256.Lemmas
include Spec.P256.PointOps
#set-options "--z3rlimit 50 --fuel 0 --ifuel 0"
(** https... | false | false | Spec.P256.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 secret_to_public (private_key: lbytes 32) : option (lbytes 64) | [] | Spec.P256.secret_to_public | {
"file_name": "specs/Spec.P256.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | private_key: Lib.ByteSequence.lbytes 32
-> FStar.Pervasives.Native.option (Lib.ByteSequence.lbytes 64) | {
"end_col": 11,
"end_line": 182,
"start_col": 67,
"start_line": 176
} |
Prims.Tot | val ecdh (their_public_key: lbytes 64) (private_key: lbytes 32) : option (lbytes 64) | [
{
"abbrev": false,
"full_module": "Spec.P256.PointOps",
"short_module": null
},
{
"abbrev": true,
"full_module": "Spec.P256.Lemmas",
"short_module": "PL"
},
{
"abbrev": true,
"full_module": "Spec.Exponentiation",
"short_module": "SE"
},
{
"abbrev": true,
"full... | false | let ecdh (their_public_key:lbytes 64) (private_key:lbytes 32) : option (lbytes 64) =
let pk = load_point their_public_key in
let sk = nat_from_bytes_be private_key in
let is_sk_valid = 0 < sk && sk < order in
if Some? pk && is_sk_valid then
let ss = point_mul sk (Some?.v pk) in
Some (point_store ss)
e... | val ecdh (their_public_key: lbytes 64) (private_key: lbytes 32) : option (lbytes 64)
let ecdh (their_public_key: lbytes 64) (private_key: lbytes 32) : option (lbytes 64) = | false | null | false | let pk = load_point their_public_key in
let sk = nat_from_bytes_be private_key in
let is_sk_valid = 0 < sk && sk < order in
if Some? pk && is_sk_valid
then
let ss = point_mul sk (Some?.v pk) in
Some (point_store ss)
else None | {
"checked_file": "Spec.P256.fst.checked",
"dependencies": [
"Spec.P256.PointOps.fst.checked",
"Spec.P256.Lemmas.fsti.checked",
"Spec.Hash.Definitions.fst.checked",
"Spec.Exponentiation.fsti.checked",
"Spec.Agile.Hash.fsti.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"... | [
"total"
] | [
"Lib.ByteSequence.lbytes",
"Prims.op_AmpAmp",
"FStar.Pervasives.Native.uu___is_Some",
"Spec.P256.PointOps.proj_point",
"FStar.Pervasives.Native.Some",
"Spec.P256.PointOps.point_store",
"Spec.P256.point_mul",
"FStar.Pervasives.Native.__proj__Some__item__v",
"Prims.bool",
"FStar.Pervasives.Native.No... | [] | module Spec.P256
open FStar.Mul
open Lib.IntTypes
open Lib.Sequence
open Lib.ByteSequence
open Spec.Hash.Definitions
module M = Lib.NatMod
module LE = Lib.Exponentiation
module SE = Spec.Exponentiation
module PL = Spec.P256.Lemmas
include Spec.P256.PointOps
#set-options "--z3rlimit 50 --fuel 0 --ifuel 0"
(** https... | false | false | Spec.P256.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 ecdh (their_public_key: lbytes 64) (private_key: lbytes 32) : option (lbytes 64) | [] | Spec.P256.ecdh | {
"file_name": "specs/Spec.P256.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | their_public_key: Lib.ByteSequence.lbytes 64 -> private_key: Lib.ByteSequence.lbytes 32
-> FStar.Pervasives.Native.option (Lib.ByteSequence.lbytes 64) | {
"end_col": 11,
"end_line": 192,
"start_col": 84,
"start_line": 185
} |
Prims.Tot | val pk_uncompressed_from_raw (pk: lbytes 64) : lbytes 65 | [
{
"abbrev": false,
"full_module": "Spec.P256.PointOps",
"short_module": null
},
{
"abbrev": true,
"full_module": "Spec.P256.Lemmas",
"short_module": "PL"
},
{
"abbrev": true,
"full_module": "Spec.Exponentiation",
"short_module": "SE"
},
{
"abbrev": true,
"full... | false | let pk_uncompressed_from_raw (pk:lbytes 64) : lbytes 65 =
concat (create 1 (u8 0x04)) pk | val pk_uncompressed_from_raw (pk: lbytes 64) : lbytes 65
let pk_uncompressed_from_raw (pk: lbytes 64) : lbytes 65 = | false | null | false | concat (create 1 (u8 0x04)) pk | {
"checked_file": "Spec.P256.fst.checked",
"dependencies": [
"Spec.P256.PointOps.fst.checked",
"Spec.P256.Lemmas.fsti.checked",
"Spec.Hash.Definitions.fst.checked",
"Spec.Exponentiation.fsti.checked",
"Spec.Agile.Hash.fsti.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"... | [
"total"
] | [
"Lib.ByteSequence.lbytes",
"Lib.Sequence.concat",
"Lib.IntTypes.uint_t",
"Lib.IntTypes.U8",
"Lib.IntTypes.SEC",
"Lib.Sequence.create",
"Lib.IntTypes.u8"
] | [] | module Spec.P256
open FStar.Mul
open Lib.IntTypes
open Lib.Sequence
open Lib.ByteSequence
open Spec.Hash.Definitions
module M = Lib.NatMod
module LE = Lib.Exponentiation
module SE = Spec.Exponentiation
module PL = Spec.P256.Lemmas
include Spec.P256.PointOps
#set-options "--z3rlimit 50 --fuel 0 --ifuel 0"
(** https... | false | false | Spec.P256.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 pk_uncompressed_from_raw (pk: lbytes 64) : lbytes 65 | [] | Spec.P256.pk_uncompressed_from_raw | {
"file_name": "specs/Spec.P256.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | pk: Lib.ByteSequence.lbytes 64 -> Lib.ByteSequence.lbytes 65 | {
"end_col": 32,
"end_line": 208,
"start_col": 2,
"start_line": 208
} |
Prims.Tot | val ecdsa_verification_agile:
alg:hash_alg_ecdsa
-> msg_len:size_nat{msg_len >= min_input_length alg}
-> msg:lbytes msg_len
-> public_key:lbytes 64
-> signature_r:lbytes 32
-> signature_s:lbytes 32 ->
bool | [
{
"abbrev": false,
"full_module": "Spec.P256.PointOps",
"short_module": null
},
{
"abbrev": true,
"full_module": "Spec.P256.Lemmas",
"short_module": "PL"
},
{
"abbrev": true,
"full_module": "Spec.Exponentiation",
"short_module": "SE"
},
{
"abbrev": true,
"full... | false | let ecdsa_verification_agile alg msg_len msg public_key signature_r signature_s =
let hashM = hash_ecdsa alg msg_len msg in
let m_q = nat_from_bytes_be (sub hashM 0 32) % order in
ecdsa_verify_msg_as_qelem m_q public_key signature_r signature_s | val ecdsa_verification_agile:
alg:hash_alg_ecdsa
-> msg_len:size_nat{msg_len >= min_input_length alg}
-> msg:lbytes msg_len
-> public_key:lbytes 64
-> signature_r:lbytes 32
-> signature_s:lbytes 32 ->
bool
let ecdsa_verification_agile alg msg_len msg public_key signature_r signature_s = | false | null | false | let hashM = hash_ecdsa alg msg_len msg in
let m_q = nat_from_bytes_be (sub hashM 0 32) % order in
ecdsa_verify_msg_as_qelem m_q public_key signature_r signature_s | {
"checked_file": "Spec.P256.fst.checked",
"dependencies": [
"Spec.P256.PointOps.fst.checked",
"Spec.P256.Lemmas.fsti.checked",
"Spec.Hash.Definitions.fst.checked",
"Spec.Exponentiation.fsti.checked",
"Spec.Agile.Hash.fsti.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"... | [
"total"
] | [
"Spec.P256.hash_alg_ecdsa",
"Lib.IntTypes.size_nat",
"Prims.b2t",
"Prims.op_GreaterThanOrEqual",
"Spec.P256.min_input_length",
"Lib.ByteSequence.lbytes",
"Spec.P256.ecdsa_verify_msg_as_qelem",
"Prims.int",
"Prims.op_Modulus",
"Lib.ByteSequence.nat_from_bytes_be",
"Lib.IntTypes.SEC",
"Lib.Seque... | [] | module Spec.P256
open FStar.Mul
open Lib.IntTypes
open Lib.Sequence
open Lib.ByteSequence
open Spec.Hash.Definitions
module M = Lib.NatMod
module LE = Lib.Exponentiation
module SE = Spec.Exponentiation
module PL = Spec.P256.Lemmas
include Spec.P256.PointOps
#set-options "--z3rlimit 50 --fuel 0 --ifuel 0"
(** https... | false | false | Spec.P256.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 ecdsa_verification_agile:
alg:hash_alg_ecdsa
-> msg_len:size_nat{msg_len >= min_input_length alg}
-> msg:lbytes msg_len
-> public_key:lbytes 64
-> signature_r:lbytes 32
-> signature_s:lbytes 32 ->
bool | [] | Spec.P256.ecdsa_verification_agile | {
"file_name": "specs/Spec.P256.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} |
alg: Spec.P256.hash_alg_ecdsa ->
msg_len: Lib.IntTypes.size_nat{msg_len >= Spec.P256.min_input_length alg} ->
msg: Lib.ByteSequence.lbytes msg_len ->
public_key: Lib.ByteSequence.lbytes 64 ->
signature_r: Lib.ByteSequence.lbytes 32 ->
signature_s: Lib.ByteSequence.lbytes 32
-> Prims.bool | {
"end_col": 66,
"end_line": 171,
"start_col": 81,
"start_line": 168
} |
Prims.Tot | val ecdsa_signature_agile:
alg:hash_alg_ecdsa
-> msg_len:size_nat{msg_len >= min_input_length alg}
-> msg:lbytes msg_len
-> private_key:lbytes 32
-> nonce:lbytes 32 ->
option (lbytes 64) | [
{
"abbrev": false,
"full_module": "Spec.P256.PointOps",
"short_module": null
},
{
"abbrev": true,
"full_module": "Spec.P256.Lemmas",
"short_module": "PL"
},
{
"abbrev": true,
"full_module": "Spec.Exponentiation",
"short_module": "SE"
},
{
"abbrev": true,
"full... | false | let ecdsa_signature_agile alg msg_len msg private_key nonce =
let hashM = hash_ecdsa alg msg_len msg in
let m_q = nat_from_bytes_be (sub hashM 0 32) % order in
ecdsa_sign_msg_as_qelem m_q private_key nonce | val ecdsa_signature_agile:
alg:hash_alg_ecdsa
-> msg_len:size_nat{msg_len >= min_input_length alg}
-> msg:lbytes msg_len
-> private_key:lbytes 32
-> nonce:lbytes 32 ->
option (lbytes 64)
let ecdsa_signature_agile alg msg_len msg private_key nonce = | false | null | false | let hashM = hash_ecdsa alg msg_len msg in
let m_q = nat_from_bytes_be (sub hashM 0 32) % order in
ecdsa_sign_msg_as_qelem m_q private_key nonce | {
"checked_file": "Spec.P256.fst.checked",
"dependencies": [
"Spec.P256.PointOps.fst.checked",
"Spec.P256.Lemmas.fsti.checked",
"Spec.Hash.Definitions.fst.checked",
"Spec.Exponentiation.fsti.checked",
"Spec.Agile.Hash.fsti.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"... | [
"total"
] | [
"Spec.P256.hash_alg_ecdsa",
"Lib.IntTypes.size_nat",
"Prims.b2t",
"Prims.op_GreaterThanOrEqual",
"Spec.P256.min_input_length",
"Lib.ByteSequence.lbytes",
"Spec.P256.ecdsa_sign_msg_as_qelem",
"Prims.int",
"Prims.op_Modulus",
"Lib.ByteSequence.nat_from_bytes_be",
"Lib.IntTypes.SEC",
"Lib.Sequenc... | [] | module Spec.P256
open FStar.Mul
open Lib.IntTypes
open Lib.Sequence
open Lib.ByteSequence
open Spec.Hash.Definitions
module M = Lib.NatMod
module LE = Lib.Exponentiation
module SE = Spec.Exponentiation
module PL = Spec.P256.Lemmas
include Spec.P256.PointOps
#set-options "--z3rlimit 50 --fuel 0 --ifuel 0"
(** https... | false | false | Spec.P256.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 ecdsa_signature_agile:
alg:hash_alg_ecdsa
-> msg_len:size_nat{msg_len >= min_input_length alg}
-> msg:lbytes msg_len
-> private_key:lbytes 32
-> nonce:lbytes 32 ->
option (lbytes 64) | [] | Spec.P256.ecdsa_signature_agile | {
"file_name": "specs/Spec.P256.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} |
alg: Spec.P256.hash_alg_ecdsa ->
msg_len: Lib.IntTypes.size_nat{msg_len >= Spec.P256.min_input_length alg} ->
msg: Lib.ByteSequence.lbytes msg_len ->
private_key: Lib.ByteSequence.lbytes 32 ->
nonce: Lib.ByteSequence.lbytes 32
-> FStar.Pervasives.Native.option (Lib.ByteSequence.lbytes 64) | {
"end_col": 47,
"end_line": 156,
"start_col": 61,
"start_line": 153
} |
Prims.Tot | val pk_compressed_to_raw (pk: lbytes 33) : option (lbytes 64) | [
{
"abbrev": false,
"full_module": "Spec.P256.PointOps",
"short_module": null
},
{
"abbrev": true,
"full_module": "Spec.P256.Lemmas",
"short_module": "PL"
},
{
"abbrev": true,
"full_module": "Spec.Exponentiation",
"short_module": "SE"
},
{
"abbrev": true,
"full... | false | let pk_compressed_to_raw (pk:lbytes 33) : option (lbytes 64) =
let pk_x = sub pk 1 32 in
match (aff_point_decompress pk) with
| Some (x, y) -> Some (concat #_ #32 #32 pk_x (nat_to_bytes_be 32 y))
| None -> None | val pk_compressed_to_raw (pk: lbytes 33) : option (lbytes 64)
let pk_compressed_to_raw (pk: lbytes 33) : option (lbytes 64) = | false | null | false | let pk_x = sub pk 1 32 in
match (aff_point_decompress pk) with
| Some (x, y) -> Some (concat #_ #32 #32 pk_x (nat_to_bytes_be 32 y))
| None -> None | {
"checked_file": "Spec.P256.fst.checked",
"dependencies": [
"Spec.P256.PointOps.fst.checked",
"Spec.P256.Lemmas.fsti.checked",
"Spec.Hash.Definitions.fst.checked",
"Spec.Exponentiation.fsti.checked",
"Spec.Agile.Hash.fsti.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"... | [
"total"
] | [
"Lib.ByteSequence.lbytes",
"Spec.P256.PointOps.aff_point_decompress",
"Prims.nat",
"FStar.Pervasives.Native.Some",
"Lib.Sequence.concat",
"Lib.IntTypes.uint_t",
"Lib.IntTypes.U8",
"Lib.IntTypes.SEC",
"Lib.ByteSequence.nat_to_bytes_be",
"FStar.Pervasives.Native.None",
"FStar.Pervasives.Native.opt... | [] | module Spec.P256
open FStar.Mul
open Lib.IntTypes
open Lib.Sequence
open Lib.ByteSequence
open Spec.Hash.Definitions
module M = Lib.NatMod
module LE = Lib.Exponentiation
module SE = Spec.Exponentiation
module PL = Spec.P256.Lemmas
include Spec.P256.PointOps
#set-options "--z3rlimit 50 --fuel 0 --ifuel 0"
(** https... | false | false | Spec.P256.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 pk_compressed_to_raw (pk: lbytes 33) : option (lbytes 64) | [] | Spec.P256.pk_compressed_to_raw | {
"file_name": "specs/Spec.P256.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | pk: Lib.ByteSequence.lbytes 33 -> FStar.Pervasives.Native.option (Lib.ByteSequence.lbytes 64) | {
"end_col": 16,
"end_line": 214,
"start_col": 62,
"start_line": 210
} |
Prims.Tot | val pk_uncompressed_to_raw (pk: lbytes 65) : option (lbytes 64) | [
{
"abbrev": false,
"full_module": "Spec.P256.PointOps",
"short_module": null
},
{
"abbrev": true,
"full_module": "Spec.P256.Lemmas",
"short_module": "PL"
},
{
"abbrev": true,
"full_module": "Spec.Exponentiation",
"short_module": "SE"
},
{
"abbrev": true,
"full... | false | let pk_uncompressed_to_raw (pk:lbytes 65) : option (lbytes 64) =
if Lib.RawIntTypes.u8_to_UInt8 pk.[0] <> 0x04uy then None else Some (sub pk 1 64) | val pk_uncompressed_to_raw (pk: lbytes 65) : option (lbytes 64)
let pk_uncompressed_to_raw (pk: lbytes 65) : option (lbytes 64) = | false | null | false | if Lib.RawIntTypes.u8_to_UInt8 pk.[ 0 ] <> 0x04uy then None else Some (sub pk 1 64) | {
"checked_file": "Spec.P256.fst.checked",
"dependencies": [
"Spec.P256.PointOps.fst.checked",
"Spec.P256.Lemmas.fsti.checked",
"Spec.Hash.Definitions.fst.checked",
"Spec.Exponentiation.fsti.checked",
"Spec.Agile.Hash.fsti.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"... | [
"total"
] | [
"Lib.ByteSequence.lbytes",
"Prims.op_disEquality",
"FStar.UInt8.t",
"Lib.RawIntTypes.u8_to_UInt8",
"Lib.Sequence.op_String_Access",
"Lib.IntTypes.uint_t",
"Lib.IntTypes.U8",
"Lib.IntTypes.SEC",
"FStar.UInt8.__uint_to_t",
"FStar.Pervasives.Native.None",
"Prims.bool",
"FStar.Pervasives.Native.So... | [] | module Spec.P256
open FStar.Mul
open Lib.IntTypes
open Lib.Sequence
open Lib.ByteSequence
open Spec.Hash.Definitions
module M = Lib.NatMod
module LE = Lib.Exponentiation
module SE = Spec.Exponentiation
module PL = Spec.P256.Lemmas
include Spec.P256.PointOps
#set-options "--z3rlimit 50 --fuel 0 --ifuel 0"
(** https... | false | false | Spec.P256.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 pk_uncompressed_to_raw (pk: lbytes 65) : option (lbytes 64) | [] | Spec.P256.pk_uncompressed_to_raw | {
"file_name": "specs/Spec.P256.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | pk: Lib.ByteSequence.lbytes 65 -> FStar.Pervasives.Native.option (Lib.ByteSequence.lbytes 64) | {
"end_col": 83,
"end_line": 205,
"start_col": 2,
"start_line": 205
} |
Prims.Tot | val ecdsa_sign_msg_as_qelem (m: qelem) (private_key nonce: lbytes 32) : option (lbytes 64) | [
{
"abbrev": false,
"full_module": "Spec.P256.PointOps",
"short_module": null
},
{
"abbrev": true,
"full_module": "Spec.P256.Lemmas",
"short_module": "PL"
},
{
"abbrev": true,
"full_module": "Spec.Exponentiation",
"short_module": "SE"
},
{
"abbrev": true,
"full... | false | let ecdsa_sign_msg_as_qelem (m:qelem) (private_key nonce:lbytes 32) : option (lbytes 64) =
let k_q = nat_from_bytes_be nonce in
let d_a = nat_from_bytes_be private_key in
let is_privkey_valid = 0 < d_a && d_a < order in
let is_nonce_valid = 0 < k_q && k_q < order in
if not (is_privkey_valid && is_nonce_valid... | val ecdsa_sign_msg_as_qelem (m: qelem) (private_key nonce: lbytes 32) : option (lbytes 64)
let ecdsa_sign_msg_as_qelem (m: qelem) (private_key nonce: lbytes 32) : option (lbytes 64) = | false | null | false | let k_q = nat_from_bytes_be nonce in
let d_a = nat_from_bytes_be private_key in
let is_privkey_valid = 0 < d_a && d_a < order in
let is_nonce_valid = 0 < k_q && k_q < order in
if not (is_privkey_valid && is_nonce_valid)
then None
else
let _X, _Y, _Z = point_mul_g k_q in
let x = _X /% _Z in
let r = x % order in
... | {
"checked_file": "Spec.P256.fst.checked",
"dependencies": [
"Spec.P256.PointOps.fst.checked",
"Spec.P256.Lemmas.fsti.checked",
"Spec.Hash.Definitions.fst.checked",
"Spec.Exponentiation.fsti.checked",
"Spec.Agile.Hash.fsti.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"... | [
"total"
] | [
"Spec.P256.PointOps.qelem",
"Lib.ByteSequence.lbytes",
"Prims.op_Negation",
"Prims.op_AmpAmp",
"FStar.Pervasives.Native.None",
"Prims.bool",
"Prims.nat",
"Prims.op_BarBar",
"Prims.op_Equality",
"Prims.int",
"FStar.Pervasives.Native.Some",
"Lib.Sequence.concat",
"Lib.IntTypes.uint_t",
"Lib.... | [] | module Spec.P256
open FStar.Mul
open Lib.IntTypes
open Lib.Sequence
open Lib.ByteSequence
open Spec.Hash.Definitions
module M = Lib.NatMod
module LE = Lib.Exponentiation
module SE = Spec.Exponentiation
module PL = Spec.P256.Lemmas
include Spec.P256.PointOps
#set-options "--z3rlimit 50 --fuel 0 --ifuel 0"
(** https... | false | false | Spec.P256.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 ecdsa_sign_msg_as_qelem (m: qelem) (private_key nonce: lbytes 32) : option (lbytes 64) | [] | Spec.P256.ecdsa_sign_msg_as_qelem | {
"file_name": "specs/Spec.P256.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} |
m: Spec.P256.PointOps.qelem ->
private_key: Lib.ByteSequence.lbytes 32 ->
nonce: Lib.ByteSequence.lbytes 32
-> FStar.Pervasives.Native.option (Lib.ByteSequence.lbytes 64) | {
"end_col": 71,
"end_line": 114,
"start_col": 90,
"start_line": 98
} |
Prims.Tot | val pk_compressed_from_raw (pk: lbytes 64) : lbytes 33 | [
{
"abbrev": false,
"full_module": "Spec.P256.PointOps",
"short_module": null
},
{
"abbrev": true,
"full_module": "Spec.P256.Lemmas",
"short_module": "PL"
},
{
"abbrev": true,
"full_module": "Spec.Exponentiation",
"short_module": "SE"
},
{
"abbrev": true,
"full... | false | let pk_compressed_from_raw (pk:lbytes 64) : lbytes 33 =
let pk_x = sub pk 0 32 in
let pk_y = sub pk 32 32 in
let is_pk_y_odd = nat_from_bytes_be pk_y % 2 = 1 in // <==> pk_y % 2 = 1
let pk0 = if is_pk_y_odd then u8 0x03 else u8 0x02 in
concat (create 1 pk0) pk_x | val pk_compressed_from_raw (pk: lbytes 64) : lbytes 33
let pk_compressed_from_raw (pk: lbytes 64) : lbytes 33 = | false | null | false | let pk_x = sub pk 0 32 in
let pk_y = sub pk 32 32 in
let is_pk_y_odd = nat_from_bytes_be pk_y % 2 = 1 in
let pk0 = if is_pk_y_odd then u8 0x03 else u8 0x02 in
concat (create 1 pk0) pk_x | {
"checked_file": "Spec.P256.fst.checked",
"dependencies": [
"Spec.P256.PointOps.fst.checked",
"Spec.P256.Lemmas.fsti.checked",
"Spec.Hash.Definitions.fst.checked",
"Spec.Exponentiation.fsti.checked",
"Spec.Agile.Hash.fsti.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"... | [
"total"
] | [
"Lib.ByteSequence.lbytes",
"Lib.Sequence.concat",
"Lib.IntTypes.uint_t",
"Lib.IntTypes.U8",
"Lib.IntTypes.SEC",
"Lib.Sequence.create",
"Lib.IntTypes.int_t",
"Lib.IntTypes.u8",
"Prims.bool",
"Prims.op_Equality",
"Prims.int",
"Prims.op_Modulus",
"Lib.ByteSequence.nat_from_bytes_be",
"Lib.Seq... | [] | module Spec.P256
open FStar.Mul
open Lib.IntTypes
open Lib.Sequence
open Lib.ByteSequence
open Spec.Hash.Definitions
module M = Lib.NatMod
module LE = Lib.Exponentiation
module SE = Spec.Exponentiation
module PL = Spec.P256.Lemmas
include Spec.P256.PointOps
#set-options "--z3rlimit 50 --fuel 0 --ifuel 0"
(** https... | false | false | Spec.P256.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 pk_compressed_from_raw (pk: lbytes 64) : lbytes 33 | [] | Spec.P256.pk_compressed_from_raw | {
"file_name": "specs/Spec.P256.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | pk: Lib.ByteSequence.lbytes 64 -> Lib.ByteSequence.lbytes 33 | {
"end_col": 28,
"end_line": 221,
"start_col": 55,
"start_line": 216
} |
Prims.Tot | [
{
"abbrev": false,
"full_module": "LowParse.Tot.Int",
"short_module": null
},
{
"abbrev": false,
"full_module": "LowParse.Tot.Combinators",
"short_module": null
},
{
"abbrev": false,
"full_module": "LowParse.Spec.Bytes",
"short_module": null
},
{
"abbrev": false,
... | false | let parse_all_bytes = tot_parse_all_bytes | let parse_all_bytes = | false | null | false | tot_parse_all_bytes | {
"checked_file": "LowParse.Tot.Bytes.fst.checked",
"dependencies": [
"prims.fst.checked",
"LowParse.Tot.Int.fst.checked",
"LowParse.Tot.Combinators.fst.checked",
"LowParse.Spec.Bytes.fst.checked",
"FStar.Pervasives.fsti.checked"
],
"interface_file": false,
"source_file": "LowParse.Tot.Byt... | [
"total"
] | [
"LowParse.Spec.Bytes.tot_parse_all_bytes"
] | [] | module LowParse.Tot.Bytes
include LowParse.Spec.Bytes
include LowParse.Tot.Combinators
include LowParse.Tot.Int | false | true | LowParse.Tot.Bytes.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 parse_all_bytes : LowParse.Spec.Base.tot_parser LowParse.Spec.Bytes.parse_all_bytes_kind FStar.Bytes.bytes | [] | LowParse.Tot.Bytes.parse_all_bytes | {
"file_name": "src/lowparse/LowParse.Tot.Bytes.fst",
"git_rev": "446a08ce38df905547cf20f28c43776b22b8087a",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | LowParse.Spec.Base.tot_parser LowParse.Spec.Bytes.parse_all_bytes_kind FStar.Bytes.bytes | {
"end_col": 41,
"end_line": 7,
"start_col": 22,
"start_line": 7
} | |
FStar.HyperStack.ST.Stack | val clear_matrix2:
a:FP.frodo_alg
-> s_matrix:matrix_t (params_n a) params_nbar
-> e_matrix:matrix_t (params_n a) params_nbar
-> Stack unit
(requires fun h ->
live h s_matrix /\ live h e_matrix /\
disjoint s_matrix e_matrix)
(ensures fun h0 _ h1 ->
modifies (loc s_matrix |+| loc e_m... | [
{
"abbrev": true,
"full_module": "Spec.Frodo.KEM.KeyGen",
"short_module": "S"
},
{
"abbrev": true,
"full_module": "Spec.Frodo.Params",
"short_module": "FP"
},
{
"abbrev": true,
"full_module": "Spec.Matrix",
"short_module": "M"
},
{
"abbrev": true,
"full_module... | false | let clear_matrix2 a s_matrix e_matrix =
clear_matrix s_matrix;
clear_matrix e_matrix | val clear_matrix2:
a:FP.frodo_alg
-> s_matrix:matrix_t (params_n a) params_nbar
-> e_matrix:matrix_t (params_n a) params_nbar
-> Stack unit
(requires fun h ->
live h s_matrix /\ live h e_matrix /\
disjoint s_matrix e_matrix)
(ensures fun h0 _ h1 ->
modifies (loc s_matrix |+| loc e_m... | true | null | false | clear_matrix s_matrix;
clear_matrix e_matrix | {
"checked_file": "Hacl.Impl.Frodo.KEM.KeyGen.fst.checked",
"dependencies": [
"Spec.Matrix.fst.checked",
"Spec.Frodo.Params.fst.checked",
"Spec.Frodo.KEM.KeyGen.fst.checked",
"prims.fst.checked",
"LowStar.Buffer.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.IntTypes.fsti.checked",
... | [] | [
"Spec.Frodo.Params.frodo_alg",
"Hacl.Impl.Matrix.matrix_t",
"Hacl.Impl.Frodo.Params.params_n",
"Hacl.Impl.Frodo.Params.params_nbar",
"Hacl.Impl.Frodo.KEM.clear_matrix",
"Prims.unit"
] | [] | module Hacl.Impl.Frodo.KEM.KeyGen
open FStar.HyperStack
open FStar.HyperStack.ST
open FStar.Mul
open LowStar.Buffer
open Lib.IntTypes
open Lib.Buffer
open Hacl.Impl.Matrix
open Hacl.Impl.Frodo.Params
open Hacl.Impl.Frodo.KEM
open Hacl.Impl.Frodo.Pack
open Hacl.Impl.Frodo.Sample
open Hacl.Frodo.Random
module ST = F... | false | false | Hacl.Impl.Frodo.KEM.KeyGen.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 clear_matrix2:
a:FP.frodo_alg
-> s_matrix:matrix_t (params_n a) params_nbar
-> e_matrix:matrix_t (params_n a) params_nbar
-> Stack unit
(requires fun h ->
live h s_matrix /\ live h e_matrix /\
disjoint s_matrix e_matrix)
(ensures fun h0 _ h1 ->
modifies (loc s_matrix |+| loc e_m... | [] | Hacl.Impl.Frodo.KEM.KeyGen.clear_matrix2 | {
"file_name": "code/frodo/Hacl.Impl.Frodo.KEM.KeyGen.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} |
a: Spec.Frodo.Params.frodo_alg ->
s_matrix:
Hacl.Impl.Matrix.matrix_t (Hacl.Impl.Frodo.Params.params_n a)
Hacl.Impl.Frodo.Params.params_nbar ->
e_matrix:
Hacl.Impl.Matrix.matrix_t (Hacl.Impl.Frodo.Params.params_n a)
Hacl.Impl.Frodo.Params.params_nbar
-> FStar.HyperStack.ST.Sta... | {
"end_col": 23,
"end_line": 147,
"start_col": 2,
"start_line": 146
} |
FStar.HyperStack.ST.Stack | val frodo_shake_r:
a:FP.frodo_alg
-> c:uint8
-> seed_se:lbytes (crypto_bytes a)
-> output_len:size_t
-> r:lbytes output_len
-> Stack unit
(requires fun h ->
live h seed_se /\ live h r /\ disjoint seed_se r)
(ensures fun h0 _ h1 -> modifies (loc r) h0 h1 /\
as_seq h1 r == S.frodo_shake... | [
{
"abbrev": true,
"full_module": "Spec.Frodo.KEM.KeyGen",
"short_module": "S"
},
{
"abbrev": true,
"full_module": "Spec.Frodo.Params",
"short_module": "FP"
},
{
"abbrev": true,
"full_module": "Spec.Matrix",
"short_module": "M"
},
{
"abbrev": true,
"full_module... | false | let frodo_shake_r a c seed_se output_len r =
push_frame ();
let h0 = ST.get () in
let shake_input_seed_se = create (1ul +! crypto_bytes a) (u8 0) in
shake_input_seed_se.(0ul) <- c;
update_sub shake_input_seed_se 1ul (crypto_bytes a) seed_se;
let h2 = ST.get () in
LSeq.eq_intro (LSeq.sub (as_seq h2 shake_i... | val frodo_shake_r:
a:FP.frodo_alg
-> c:uint8
-> seed_se:lbytes (crypto_bytes a)
-> output_len:size_t
-> r:lbytes output_len
-> Stack unit
(requires fun h ->
live h seed_se /\ live h r /\ disjoint seed_se r)
(ensures fun h0 _ h1 -> modifies (loc r) h0 h1 /\
as_seq h1 r == S.frodo_shake... | true | null | false | push_frame ();
let h0 = ST.get () in
let shake_input_seed_se = create (1ul +! crypto_bytes a) (u8 0) in
shake_input_seed_se.(0ul) <- c;
update_sub shake_input_seed_se 1ul (crypto_bytes a) seed_se;
let h2 = ST.get () in
LSeq.eq_intro (LSeq.sub (as_seq h2 shake_input_seed_se) 0 1) (LSeq.create 1 c);
LSeq.eq_intro (LSeq.s... | {
"checked_file": "Hacl.Impl.Frodo.KEM.KeyGen.fst.checked",
"dependencies": [
"Spec.Matrix.fst.checked",
"Spec.Frodo.Params.fst.checked",
"Spec.Frodo.KEM.KeyGen.fst.checked",
"prims.fst.checked",
"LowStar.Buffer.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.IntTypes.fsti.checked",
... | [] | [
"Spec.Frodo.Params.frodo_alg",
"Lib.IntTypes.uint8",
"Hacl.Impl.Matrix.lbytes",
"Hacl.Impl.Frodo.Params.crypto_bytes",
"Lib.IntTypes.size_t",
"FStar.HyperStack.ST.pop_frame",
"Prims.unit",
"Hacl.Impl.Frodo.KEM.clear_words_u8",
"Lib.IntTypes.op_Plus_Bang",
"Lib.IntTypes.U32",
"Lib.IntTypes.PUB",
... | [] | module Hacl.Impl.Frodo.KEM.KeyGen
open FStar.HyperStack
open FStar.HyperStack.ST
open FStar.Mul
open LowStar.Buffer
open Lib.IntTypes
open Lib.Buffer
open Hacl.Impl.Matrix
open Hacl.Impl.Frodo.Params
open Hacl.Impl.Frodo.KEM
open Hacl.Impl.Frodo.Pack
open Hacl.Impl.Frodo.Sample
open Hacl.Frodo.Random
module ST = F... | false | false | Hacl.Impl.Frodo.KEM.KeyGen.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 frodo_shake_r:
a:FP.frodo_alg
-> c:uint8
-> seed_se:lbytes (crypto_bytes a)
-> output_len:size_t
-> r:lbytes output_len
-> Stack unit
(requires fun h ->
live h seed_se /\ live h r /\ disjoint seed_se r)
(ensures fun h0 _ h1 -> modifies (loc r) h0 h1 /\
as_seq h1 r == S.frodo_shake... | [] | Hacl.Impl.Frodo.KEM.KeyGen.frodo_shake_r | {
"file_name": "code/frodo/Hacl.Impl.Frodo.KEM.KeyGen.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} |
a: Spec.Frodo.Params.frodo_alg ->
c: Lib.IntTypes.uint8 ->
seed_se: Hacl.Impl.Matrix.lbytes (Hacl.Impl.Frodo.Params.crypto_bytes a) ->
output_len: Lib.IntTypes.size_t ->
r: Hacl.Impl.Matrix.lbytes output_len
-> FStar.HyperStack.ST.Stack Prims.unit | {
"end_col": 14,
"end_line": 53,
"start_col": 2,
"start_line": 42
} |
FStar.HyperStack.ST.Stack | val crypto_kem_sk:
a:FP.frodo_alg
-> s:lbytes (crypto_bytes a)
-> pk:lbytes (crypto_publickeybytes a)
-> sk:lbytes (crypto_secretkeybytes a)
-> Stack unit
(requires fun h ->
live h pk /\ live h sk /\ live h s /\
disjoint pk sk /\ disjoint sk s)
(ensures fun h0 _ h1 -> modifies (loc sk) ... | [
{
"abbrev": true,
"full_module": "Spec.Frodo.KEM.KeyGen",
"short_module": "S"
},
{
"abbrev": true,
"full_module": "Spec.Frodo.Params",
"short_module": "FP"
},
{
"abbrev": true,
"full_module": "Spec.Matrix",
"short_module": "M"
},
{
"abbrev": true,
"full_module... | false | let crypto_kem_sk a s pk sk =
FP.expand_crypto_secretkeybytes a;
let slen1 = crypto_secretkeybytes a -! bytes_pkhash a in
let sk_p = sub sk 0ul slen1 in
crypto_kem_sk1 a s pk sk_p;
let h0 = ST.get () in
update_sub_f h0 sk slen1 (bytes_pkhash a)
(fun h -> FP.frodo_shake a (v (crypto_publickeybytes a)) (as... | val crypto_kem_sk:
a:FP.frodo_alg
-> s:lbytes (crypto_bytes a)
-> pk:lbytes (crypto_publickeybytes a)
-> sk:lbytes (crypto_secretkeybytes a)
-> Stack unit
(requires fun h ->
live h pk /\ live h sk /\ live h s /\
disjoint pk sk /\ disjoint sk s)
(ensures fun h0 _ h1 -> modifies (loc sk) ... | true | null | false | FP.expand_crypto_secretkeybytes a;
let slen1 = crypto_secretkeybytes a -! bytes_pkhash a in
let sk_p = sub sk 0ul slen1 in
crypto_kem_sk1 a s pk sk_p;
let h0 = ST.get () in
update_sub_f h0
sk
slen1
(bytes_pkhash a)
(fun h -> FP.frodo_shake a (v (crypto_publickeybytes a)) (as_seq h0 pk) (v (bytes_pkhash a)))
(... | {
"checked_file": "Hacl.Impl.Frodo.KEM.KeyGen.fst.checked",
"dependencies": [
"Spec.Matrix.fst.checked",
"Spec.Frodo.Params.fst.checked",
"Spec.Frodo.KEM.KeyGen.fst.checked",
"prims.fst.checked",
"LowStar.Buffer.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.IntTypes.fsti.checked",
... | [] | [
"Spec.Frodo.Params.frodo_alg",
"Hacl.Impl.Matrix.lbytes",
"Hacl.Impl.Frodo.Params.crypto_bytes",
"Hacl.Impl.Frodo.Params.crypto_publickeybytes",
"Hacl.Impl.Frodo.Params.crypto_secretkeybytes",
"Lib.Sequence.lemma_concat2",
"Lib.IntTypes.uint8",
"Lib.IntTypes.v",
"Lib.IntTypes.U32",
"Lib.IntTypes.P... | [] | module Hacl.Impl.Frodo.KEM.KeyGen
open FStar.HyperStack
open FStar.HyperStack.ST
open FStar.Mul
open LowStar.Buffer
open Lib.IntTypes
open Lib.Buffer
open Hacl.Impl.Matrix
open Hacl.Impl.Frodo.Params
open Hacl.Impl.Frodo.KEM
open Hacl.Impl.Frodo.Pack
open Hacl.Impl.Frodo.Sample
open Hacl.Frodo.Random
module ST = F... | false | false | Hacl.Impl.Frodo.KEM.KeyGen.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 crypto_kem_sk:
a:FP.frodo_alg
-> s:lbytes (crypto_bytes a)
-> pk:lbytes (crypto_publickeybytes a)
-> sk:lbytes (crypto_secretkeybytes a)
-> Stack unit
(requires fun h ->
live h pk /\ live h sk /\ live h s /\
disjoint pk sk /\ disjoint sk s)
(ensures fun h0 _ h1 -> modifies (loc sk) ... | [] | Hacl.Impl.Frodo.KEM.KeyGen.crypto_kem_sk | {
"file_name": "code/frodo/Hacl.Impl.Frodo.KEM.KeyGen.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} |
a: Spec.Frodo.Params.frodo_alg ->
s: Hacl.Impl.Matrix.lbytes (Hacl.Impl.Frodo.Params.crypto_bytes a) ->
pk: Hacl.Impl.Matrix.lbytes (Hacl.Impl.Frodo.Params.crypto_publickeybytes a) ->
sk: Hacl.Impl.Matrix.lbytes (Hacl.Impl.Frodo.Params.crypto_secretkeybytes a)
-> FStar.HyperStack.ST.Stack Prims.unit | {
"end_col": 96,
"end_line": 246,
"start_col": 2,
"start_line": 233
} |
FStar.HyperStack.ST.Stack | val frodo_mul_add_as_plus_e:
a:FP.frodo_alg
-> gen_a:FP.frodo_gen_a{is_supported gen_a}
-> seed_a:lbytes bytes_seed_a
-> s_matrix:matrix_t (params_n a) params_nbar
-> e_matrix:matrix_t (params_n a) params_nbar
-> b_matrix:matrix_t (params_n a) params_nbar
-> Stack unit
(requires fun h ->
live ... | [
{
"abbrev": true,
"full_module": "Spec.Frodo.KEM.KeyGen",
"short_module": "S"
},
{
"abbrev": true,
"full_module": "Spec.Frodo.Params",
"short_module": "FP"
},
{
"abbrev": true,
"full_module": "Spec.Matrix",
"short_module": "M"
},
{
"abbrev": true,
"full_module... | false | let frodo_mul_add_as_plus_e a gen_a seed_a s_matrix e_matrix b_matrix =
FP.params_n_sqr a;
push_frame();
let a_matrix = matrix_create (params_n a) (params_n a) in
frodo_gen_matrix gen_a (params_n a) seed_a a_matrix;
matrix_mul_s a_matrix s_matrix b_matrix;
matrix_add b_matrix e_matrix;
pop_frame() | val frodo_mul_add_as_plus_e:
a:FP.frodo_alg
-> gen_a:FP.frodo_gen_a{is_supported gen_a}
-> seed_a:lbytes bytes_seed_a
-> s_matrix:matrix_t (params_n a) params_nbar
-> e_matrix:matrix_t (params_n a) params_nbar
-> b_matrix:matrix_t (params_n a) params_nbar
-> Stack unit
(requires fun h ->
live ... | true | null | false | FP.params_n_sqr a;
push_frame ();
let a_matrix = matrix_create (params_n a) (params_n a) in
frodo_gen_matrix gen_a (params_n a) seed_a a_matrix;
matrix_mul_s a_matrix s_matrix b_matrix;
matrix_add b_matrix e_matrix;
pop_frame () | {
"checked_file": "Hacl.Impl.Frodo.KEM.KeyGen.fst.checked",
"dependencies": [
"Spec.Matrix.fst.checked",
"Spec.Frodo.Params.fst.checked",
"Spec.Frodo.KEM.KeyGen.fst.checked",
"prims.fst.checked",
"LowStar.Buffer.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.IntTypes.fsti.checked",
... | [] | [
"Spec.Frodo.Params.frodo_alg",
"Spec.Frodo.Params.frodo_gen_a",
"Prims.b2t",
"Hacl.Impl.Frodo.Params.is_supported",
"Hacl.Impl.Matrix.lbytes",
"Hacl.Impl.Frodo.Params.bytes_seed_a",
"Hacl.Impl.Matrix.matrix_t",
"Hacl.Impl.Frodo.Params.params_n",
"Hacl.Impl.Frodo.Params.params_nbar",
"FStar.HyperSt... | [] | module Hacl.Impl.Frodo.KEM.KeyGen
open FStar.HyperStack
open FStar.HyperStack.ST
open FStar.Mul
open LowStar.Buffer
open Lib.IntTypes
open Lib.Buffer
open Hacl.Impl.Matrix
open Hacl.Impl.Frodo.Params
open Hacl.Impl.Frodo.KEM
open Hacl.Impl.Frodo.Pack
open Hacl.Impl.Frodo.Sample
open Hacl.Frodo.Random
module ST = F... | false | false | Hacl.Impl.Frodo.KEM.KeyGen.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 frodo_mul_add_as_plus_e:
a:FP.frodo_alg
-> gen_a:FP.frodo_gen_a{is_supported gen_a}
-> seed_a:lbytes bytes_seed_a
-> s_matrix:matrix_t (params_n a) params_nbar
-> e_matrix:matrix_t (params_n a) params_nbar
-> b_matrix:matrix_t (params_n a) params_nbar
-> Stack unit
(requires fun h ->
live ... | [] | Hacl.Impl.Frodo.KEM.KeyGen.frodo_mul_add_as_plus_e | {
"file_name": "code/frodo/Hacl.Impl.Frodo.KEM.KeyGen.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} |
a: Spec.Frodo.Params.frodo_alg ->
gen_a: Spec.Frodo.Params.frodo_gen_a{Hacl.Impl.Frodo.Params.is_supported gen_a} ->
seed_a: Hacl.Impl.Matrix.lbytes Hacl.Impl.Frodo.Params.bytes_seed_a ->
s_matrix:
Hacl.Impl.Matrix.matrix_t (Hacl.Impl.Frodo.Params.params_n a)
Hacl.Impl.Frodo.Params.params... | {
"end_col": 13,
"end_line": 80,
"start_col": 2,
"start_line": 74
} |
FStar.HyperStack.ST.Stack | val crypto_kem_keypair_:
a:FP.frodo_alg
-> gen_a:FP.frodo_gen_a{is_supported gen_a}
-> coins:lbytes (size 2 *! crypto_bytes a +! bytes_seed_a)
-> pk:lbytes (crypto_publickeybytes a)
-> sk:lbytes (crypto_secretkeybytes a)
-> Stack unit
(requires fun h ->
live h pk /\ live h sk /\ live h coins /\
... | [
{
"abbrev": true,
"full_module": "Spec.Frodo.KEM.KeyGen",
"short_module": "S"
},
{
"abbrev": true,
"full_module": "Spec.Frodo.Params",
"short_module": "FP"
},
{
"abbrev": true,
"full_module": "Spec.Matrix",
"short_module": "M"
},
{
"abbrev": true,
"full_module... | false | let crypto_kem_keypair_ a gen_a coins pk sk =
FP.expand_crypto_secretkeybytes a;
FP.expand_crypto_secretkeybytes a;
let h0 = ST.get () in
let s = sub coins 0ul (crypto_bytes a) in
let seed_se = sub coins (crypto_bytes a) (crypto_bytes a) in
let z = sub coins (2ul *! crypto_bytes a) bytes_seed_a in
let se... | val crypto_kem_keypair_:
a:FP.frodo_alg
-> gen_a:FP.frodo_gen_a{is_supported gen_a}
-> coins:lbytes (size 2 *! crypto_bytes a +! bytes_seed_a)
-> pk:lbytes (crypto_publickeybytes a)
-> sk:lbytes (crypto_secretkeybytes a)
-> Stack unit
(requires fun h ->
live h pk /\ live h sk /\ live h coins /\
... | true | null | false | FP.expand_crypto_secretkeybytes a;
FP.expand_crypto_secretkeybytes a;
let h0 = ST.get () in
let s = sub coins 0ul (crypto_bytes a) in
let seed_se = sub coins (crypto_bytes a) (crypto_bytes a) in
let z = sub coins (2ul *! crypto_bytes a) bytes_seed_a in
let seed_a = sub pk 0ul bytes_seed_a in
frodo_shake a bytes_seed_a ... | {
"checked_file": "Hacl.Impl.Frodo.KEM.KeyGen.fst.checked",
"dependencies": [
"Spec.Matrix.fst.checked",
"Spec.Frodo.Params.fst.checked",
"Spec.Frodo.KEM.KeyGen.fst.checked",
"prims.fst.checked",
"LowStar.Buffer.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.IntTypes.fsti.checked",
... | [] | [
"Spec.Frodo.Params.frodo_alg",
"Spec.Frodo.Params.frodo_gen_a",
"Prims.b2t",
"Hacl.Impl.Frodo.Params.is_supported",
"Hacl.Impl.Matrix.lbytes",
"Lib.IntTypes.op_Plus_Bang",
"Lib.IntTypes.U32",
"Lib.IntTypes.PUB",
"Lib.IntTypes.op_Star_Bang",
"Lib.IntTypes.size",
"Hacl.Impl.Frodo.Params.crypto_byt... | [] | module Hacl.Impl.Frodo.KEM.KeyGen
open FStar.HyperStack
open FStar.HyperStack.ST
open FStar.Mul
open LowStar.Buffer
open Lib.IntTypes
open Lib.Buffer
open Hacl.Impl.Matrix
open Hacl.Impl.Frodo.Params
open Hacl.Impl.Frodo.KEM
open Hacl.Impl.Frodo.Pack
open Hacl.Impl.Frodo.Sample
open Hacl.Frodo.Random
module ST = F... | false | false | Hacl.Impl.Frodo.KEM.KeyGen.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 crypto_kem_keypair_:
a:FP.frodo_alg
-> gen_a:FP.frodo_gen_a{is_supported gen_a}
-> coins:lbytes (size 2 *! crypto_bytes a +! bytes_seed_a)
-> pk:lbytes (crypto_publickeybytes a)
-> sk:lbytes (crypto_secretkeybytes a)
-> Stack unit
(requires fun h ->
live h pk /\ live h sk /\ live h coins /\
... | [] | Hacl.Impl.Frodo.KEM.KeyGen.crypto_kem_keypair_ | {
"file_name": "code/frodo/Hacl.Impl.Frodo.KEM.KeyGen.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} |
a: Spec.Frodo.Params.frodo_alg ->
gen_a: Spec.Frodo.Params.frodo_gen_a{Hacl.Impl.Frodo.Params.is_supported gen_a} ->
coins:
Hacl.Impl.Matrix.lbytes (Lib.IntTypes.size 2 *! Hacl.Impl.Frodo.Params.crypto_bytes a +!
Hacl.Impl.Frodo.Params.bytes_seed_a) ->
pk: Hacl.Impl.Matrix.lbytes (Hacl.... | {
"end_col": 25,
"end_line": 280,
"start_col": 2,
"start_line": 264
} |
FStar.HyperStack.ST.Stack | val get_s_e_matrices:
a:FP.frodo_alg
-> seed_se:lbytes (crypto_bytes a)
-> s_matrix:matrix_t (params_n a) params_nbar
-> e_matrix:matrix_t (params_n a) params_nbar
-> Stack unit
(requires fun h ->
live h seed_se /\ live h s_matrix /\ live h e_matrix /\
disjoint seed_se s_matrix /\ disjoint s... | [
{
"abbrev": true,
"full_module": "Spec.Frodo.KEM.KeyGen",
"short_module": "S"
},
{
"abbrev": true,
"full_module": "Spec.Frodo.Params",
"short_module": "FP"
},
{
"abbrev": true,
"full_module": "Spec.Matrix",
"short_module": "M"
},
{
"abbrev": true,
"full_module... | false | let get_s_e_matrices a seed_se s_matrix e_matrix =
push_frame ();
[@inline_let] let s_bytes_len = secretmatrixbytes_len a in
let r = create (2ul *! s_bytes_len) (u8 0) in
frodo_shake_r a (u8 0x5f) seed_se (2ul *! s_bytes_len) r;
frodo_sample_matrix a (params_n a) params_nbar (sub r 0ul s_bytes_len) s_matrix;
... | val get_s_e_matrices:
a:FP.frodo_alg
-> seed_se:lbytes (crypto_bytes a)
-> s_matrix:matrix_t (params_n a) params_nbar
-> e_matrix:matrix_t (params_n a) params_nbar
-> Stack unit
(requires fun h ->
live h seed_se /\ live h s_matrix /\ live h e_matrix /\
disjoint seed_se s_matrix /\ disjoint s... | true | null | false | push_frame ();
[@@ inline_let ]let s_bytes_len = secretmatrixbytes_len a in
let r = create (2ul *! s_bytes_len) (u8 0) in
frodo_shake_r a (u8 0x5f) seed_se (2ul *! s_bytes_len) r;
frodo_sample_matrix a (params_n a) params_nbar (sub r 0ul s_bytes_len) s_matrix;
frodo_sample_matrix a (params_n a) params_nbar (sub r s_byt... | {
"checked_file": "Hacl.Impl.Frodo.KEM.KeyGen.fst.checked",
"dependencies": [
"Spec.Matrix.fst.checked",
"Spec.Frodo.Params.fst.checked",
"Spec.Frodo.KEM.KeyGen.fst.checked",
"prims.fst.checked",
"LowStar.Buffer.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.IntTypes.fsti.checked",
... | [] | [
"Spec.Frodo.Params.frodo_alg",
"Hacl.Impl.Matrix.lbytes",
"Hacl.Impl.Frodo.Params.crypto_bytes",
"Hacl.Impl.Matrix.matrix_t",
"Hacl.Impl.Frodo.Params.params_n",
"Hacl.Impl.Frodo.Params.params_nbar",
"FStar.HyperStack.ST.pop_frame",
"Prims.unit",
"Hacl.Impl.Frodo.Sample.frodo_sample_matrix",
"Lib.B... | [] | module Hacl.Impl.Frodo.KEM.KeyGen
open FStar.HyperStack
open FStar.HyperStack.ST
open FStar.Mul
open LowStar.Buffer
open Lib.IntTypes
open Lib.Buffer
open Hacl.Impl.Matrix
open Hacl.Impl.Frodo.Params
open Hacl.Impl.Frodo.KEM
open Hacl.Impl.Frodo.Pack
open Hacl.Impl.Frodo.Sample
open Hacl.Frodo.Random
module ST = F... | false | false | Hacl.Impl.Frodo.KEM.KeyGen.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 get_s_e_matrices:
a:FP.frodo_alg
-> seed_se:lbytes (crypto_bytes a)
-> s_matrix:matrix_t (params_n a) params_nbar
-> e_matrix:matrix_t (params_n a) params_nbar
-> Stack unit
(requires fun h ->
live h seed_se /\ live h s_matrix /\ live h e_matrix /\
disjoint seed_se s_matrix /\ disjoint s... | [] | Hacl.Impl.Frodo.KEM.KeyGen.get_s_e_matrices | {
"file_name": "code/frodo/Hacl.Impl.Frodo.KEM.KeyGen.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} |
a: Spec.Frodo.Params.frodo_alg ->
seed_se: Hacl.Impl.Matrix.lbytes (Hacl.Impl.Frodo.Params.crypto_bytes a) ->
s_matrix:
Hacl.Impl.Matrix.matrix_t (Hacl.Impl.Frodo.Params.params_n a)
Hacl.Impl.Frodo.Params.params_nbar ->
e_matrix:
Hacl.Impl.Matrix.matrix_t (Hacl.Impl.Frodo.Params.par... | {
"end_col": 14,
"end_line": 130,
"start_col": 2,
"start_line": 124
} |
FStar.HyperStack.ST.Stack | val crypto_kem_sk1:
a:FP.frodo_alg
-> s:lbytes (crypto_bytes a)
-> pk:lbytes (crypto_publickeybytes a)
-> sk:lbytes (crypto_secretkeybytes a -! bytes_pkhash a)
-> Stack unit
(requires fun h ->
live h pk /\ live h sk /\ live h s /\
disjoint pk sk /\ disjoint sk s)
(ensures fun h0 _ h1 ->... | [
{
"abbrev": true,
"full_module": "Spec.Frodo.KEM.KeyGen",
"short_module": "S"
},
{
"abbrev": true,
"full_module": "Spec.Frodo.Params",
"short_module": "FP"
},
{
"abbrev": true,
"full_module": "Spec.Matrix",
"short_module": "M"
},
{
"abbrev": true,
"full_module... | false | let crypto_kem_sk1 a s pk sk =
let h1 = ST.get () in
FP.expand_crypto_secretkeybytes a;
let s_pk_len = crypto_bytes a +! crypto_publickeybytes a in
[@inline_let] let sm_len = secretmatrixbytes_len a in
let slen1 = crypto_secretkeybytes a -! bytes_pkhash a in
let s_bytes = sub sk s_pk_len sm_len in
update... | val crypto_kem_sk1:
a:FP.frodo_alg
-> s:lbytes (crypto_bytes a)
-> pk:lbytes (crypto_publickeybytes a)
-> sk:lbytes (crypto_secretkeybytes a -! bytes_pkhash a)
-> Stack unit
(requires fun h ->
live h pk /\ live h sk /\ live h s /\
disjoint pk sk /\ disjoint sk s)
(ensures fun h0 _ h1 ->... | true | null | false | let h1 = ST.get () in
FP.expand_crypto_secretkeybytes a;
let s_pk_len = crypto_bytes a +! crypto_publickeybytes a in
[@@ inline_let ]let sm_len = secretmatrixbytes_len a in
let slen1 = crypto_secretkeybytes a -! bytes_pkhash a in
let s_bytes = sub sk s_pk_len sm_len in
update_sub sk 0ul (crypto_bytes a) s;
let h2 = ST.... | {
"checked_file": "Hacl.Impl.Frodo.KEM.KeyGen.fst.checked",
"dependencies": [
"Spec.Matrix.fst.checked",
"Spec.Frodo.Params.fst.checked",
"Spec.Frodo.KEM.KeyGen.fst.checked",
"prims.fst.checked",
"LowStar.Buffer.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.IntTypes.fsti.checked",
... | [] | [
"Spec.Frodo.Params.frodo_alg",
"Hacl.Impl.Matrix.lbytes",
"Hacl.Impl.Frodo.Params.crypto_bytes",
"Hacl.Impl.Frodo.Params.crypto_publickeybytes",
"Lib.IntTypes.op_Subtraction_Bang",
"Lib.IntTypes.U32",
"Lib.IntTypes.PUB",
"Hacl.Impl.Frodo.Params.crypto_secretkeybytes",
"Hacl.Impl.Frodo.Params.bytes_p... | [] | module Hacl.Impl.Frodo.KEM.KeyGen
open FStar.HyperStack
open FStar.HyperStack.ST
open FStar.Mul
open LowStar.Buffer
open Lib.IntTypes
open Lib.Buffer
open Hacl.Impl.Matrix
open Hacl.Impl.Frodo.Params
open Hacl.Impl.Frodo.KEM
open Hacl.Impl.Frodo.Pack
open Hacl.Impl.Frodo.Sample
open Hacl.Frodo.Random
module ST = F... | false | false | Hacl.Impl.Frodo.KEM.KeyGen.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 crypto_kem_sk1:
a:FP.frodo_alg
-> s:lbytes (crypto_bytes a)
-> pk:lbytes (crypto_publickeybytes a)
-> sk:lbytes (crypto_secretkeybytes a -! bytes_pkhash a)
-> Stack unit
(requires fun h ->
live h pk /\ live h sk /\ live h s /\
disjoint pk sk /\ disjoint sk s)
(ensures fun h0 _ h1 ->... | [] | Hacl.Impl.Frodo.KEM.KeyGen.crypto_kem_sk1 | {
"file_name": "code/frodo/Hacl.Impl.Frodo.KEM.KeyGen.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} |
a: Spec.Frodo.Params.frodo_alg ->
s: Hacl.Impl.Matrix.lbytes (Hacl.Impl.Frodo.Params.crypto_bytes a) ->
pk: Hacl.Impl.Matrix.lbytes (Hacl.Impl.Frodo.Params.crypto_publickeybytes a) ->
sk:
Hacl.Impl.Matrix.lbytes (Hacl.Impl.Frodo.Params.crypto_secretkeybytes a -!
Hacl.Impl.Frodo.Params.b... | {
"end_col": 18,
"end_line": 215,
"start_col": 30,
"start_line": 194
} |
FStar.HyperStack.ST.Stack | val crypto_kem_keypair:
a:FP.frodo_alg
-> gen_a:FP.frodo_gen_a{is_supported gen_a}
-> pk:lbytes (crypto_publickeybytes a)
-> sk:lbytes (crypto_secretkeybytes a)
-> Stack uint32
(requires fun h ->
live h pk /\ live h sk /\
disjoint state pk /\ disjoint state sk /\ disjoint pk sk)
(ensures... | [
{
"abbrev": true,
"full_module": "Spec.Frodo.KEM.KeyGen",
"short_module": "S"
},
{
"abbrev": true,
"full_module": "Spec.Frodo.Params",
"short_module": "FP"
},
{
"abbrev": true,
"full_module": "Spec.Matrix",
"short_module": "M"
},
{
"abbrev": true,
"full_module... | false | let crypto_kem_keypair a gen_a pk sk =
recall state;
push_frame();
let coins = create (size 2 *! crypto_bytes a +! bytes_seed_a) (u8 0) in
randombytes_ (size 2 *! crypto_bytes a +! bytes_seed_a) coins;
crypto_kem_keypair_ a gen_a coins pk sk;
clear_words_u8 coins;
pop_frame();
u32 0 | val crypto_kem_keypair:
a:FP.frodo_alg
-> gen_a:FP.frodo_gen_a{is_supported gen_a}
-> pk:lbytes (crypto_publickeybytes a)
-> sk:lbytes (crypto_secretkeybytes a)
-> Stack uint32
(requires fun h ->
live h pk /\ live h sk /\
disjoint state pk /\ disjoint state sk /\ disjoint pk sk)
(ensures... | true | null | false | recall state;
push_frame ();
let coins = create (size 2 *! crypto_bytes a +! bytes_seed_a) (u8 0) in
randombytes_ (size 2 *! crypto_bytes a +! bytes_seed_a) coins;
crypto_kem_keypair_ a gen_a coins pk sk;
clear_words_u8 coins;
pop_frame ();
u32 0 | {
"checked_file": "Hacl.Impl.Frodo.KEM.KeyGen.fst.checked",
"dependencies": [
"Spec.Matrix.fst.checked",
"Spec.Frodo.Params.fst.checked",
"Spec.Frodo.KEM.KeyGen.fst.checked",
"prims.fst.checked",
"LowStar.Buffer.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.IntTypes.fsti.checked",
... | [] | [
"Spec.Frodo.Params.frodo_alg",
"Spec.Frodo.Params.frodo_gen_a",
"Prims.b2t",
"Hacl.Impl.Frodo.Params.is_supported",
"Hacl.Impl.Matrix.lbytes",
"Hacl.Impl.Frodo.Params.crypto_publickeybytes",
"Hacl.Impl.Frodo.Params.crypto_secretkeybytes",
"Lib.IntTypes.u32",
"Lib.IntTypes.uint32",
"Prims.unit",
... | [] | module Hacl.Impl.Frodo.KEM.KeyGen
open FStar.HyperStack
open FStar.HyperStack.ST
open FStar.Mul
open LowStar.Buffer
open Lib.IntTypes
open Lib.Buffer
open Hacl.Impl.Matrix
open Hacl.Impl.Frodo.Params
open Hacl.Impl.Frodo.KEM
open Hacl.Impl.Frodo.Pack
open Hacl.Impl.Frodo.Sample
open Hacl.Frodo.Random
module ST = F... | false | false | Hacl.Impl.Frodo.KEM.KeyGen.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 crypto_kem_keypair:
a:FP.frodo_alg
-> gen_a:FP.frodo_gen_a{is_supported gen_a}
-> pk:lbytes (crypto_publickeybytes a)
-> sk:lbytes (crypto_secretkeybytes a)
-> Stack uint32
(requires fun h ->
live h pk /\ live h sk /\
disjoint state pk /\ disjoint state sk /\ disjoint pk sk)
(ensures... | [] | Hacl.Impl.Frodo.KEM.KeyGen.crypto_kem_keypair | {
"file_name": "code/frodo/Hacl.Impl.Frodo.KEM.KeyGen.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} |
a: Spec.Frodo.Params.frodo_alg ->
gen_a: Spec.Frodo.Params.frodo_gen_a{Hacl.Impl.Frodo.Params.is_supported gen_a} ->
pk: Hacl.Impl.Matrix.lbytes (Hacl.Impl.Frodo.Params.crypto_publickeybytes a) ->
sk: Hacl.Impl.Matrix.lbytes (Hacl.Impl.Frodo.Params.crypto_secretkeybytes a)
-> FStar.HyperStack.ST.Stac... | {
"end_col": 7,
"end_line": 304,
"start_col": 2,
"start_line": 297
} |
FStar.HyperStack.ST.Stack | val frodo_mul_add_as_plus_e_pack_shake:
a:FP.frodo_alg
-> gen_a:FP.frodo_gen_a{is_supported gen_a}
-> seed_a:lbytes bytes_seed_a
-> seed_se:lbytes (crypto_bytes a)
-> b:lbytes (publicmatrixbytes_len a)
-> s:lbytes (secretmatrixbytes_len a)
-> Stack unit
(requires fun h ->
live h seed_a /\ live... | [
{
"abbrev": true,
"full_module": "Spec.Frodo.KEM.KeyGen",
"short_module": "S"
},
{
"abbrev": true,
"full_module": "Spec.Frodo.Params",
"short_module": "FP"
},
{
"abbrev": true,
"full_module": "Spec.Matrix",
"short_module": "M"
},
{
"abbrev": true,
"full_module... | false | let frodo_mul_add_as_plus_e_pack_shake a gen_a seed_a seed_se b s =
push_frame ();
let s_matrix = matrix_create (params_n a) params_nbar in
let e_matrix = matrix_create (params_n a) params_nbar in
get_s_e_matrices a seed_se s_matrix e_matrix;
frodo_mul_add_as_plus_e_pack a gen_a seed_a s_matrix e_matrix b;
... | val frodo_mul_add_as_plus_e_pack_shake:
a:FP.frodo_alg
-> gen_a:FP.frodo_gen_a{is_supported gen_a}
-> seed_a:lbytes bytes_seed_a
-> seed_se:lbytes (crypto_bytes a)
-> b:lbytes (publicmatrixbytes_len a)
-> s:lbytes (secretmatrixbytes_len a)
-> Stack unit
(requires fun h ->
live h seed_a /\ live... | true | null | false | push_frame ();
let s_matrix = matrix_create (params_n a) params_nbar in
let e_matrix = matrix_create (params_n a) params_nbar in
get_s_e_matrices a seed_se s_matrix e_matrix;
frodo_mul_add_as_plus_e_pack a gen_a seed_a s_matrix e_matrix b;
matrix_to_lbytes s_matrix s;
clear_matrix2 a s_matrix e_matrix;
pop_frame () | {
"checked_file": "Hacl.Impl.Frodo.KEM.KeyGen.fst.checked",
"dependencies": [
"Spec.Matrix.fst.checked",
"Spec.Frodo.Params.fst.checked",
"Spec.Frodo.KEM.KeyGen.fst.checked",
"prims.fst.checked",
"LowStar.Buffer.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.IntTypes.fsti.checked",
... | [] | [
"Spec.Frodo.Params.frodo_alg",
"Spec.Frodo.Params.frodo_gen_a",
"Prims.b2t",
"Hacl.Impl.Frodo.Params.is_supported",
"Hacl.Impl.Matrix.lbytes",
"Hacl.Impl.Frodo.Params.bytes_seed_a",
"Hacl.Impl.Frodo.Params.crypto_bytes",
"Hacl.Impl.Frodo.Params.publicmatrixbytes_len",
"Hacl.Impl.Frodo.Params.secretm... | [] | module Hacl.Impl.Frodo.KEM.KeyGen
open FStar.HyperStack
open FStar.HyperStack.ST
open FStar.Mul
open LowStar.Buffer
open Lib.IntTypes
open Lib.Buffer
open Hacl.Impl.Matrix
open Hacl.Impl.Frodo.Params
open Hacl.Impl.Frodo.KEM
open Hacl.Impl.Frodo.Pack
open Hacl.Impl.Frodo.Sample
open Hacl.Frodo.Random
module ST = F... | false | false | Hacl.Impl.Frodo.KEM.KeyGen.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 frodo_mul_add_as_plus_e_pack_shake:
a:FP.frodo_alg
-> gen_a:FP.frodo_gen_a{is_supported gen_a}
-> seed_a:lbytes bytes_seed_a
-> seed_se:lbytes (crypto_bytes a)
-> b:lbytes (publicmatrixbytes_len a)
-> s:lbytes (secretmatrixbytes_len a)
-> Stack unit
(requires fun h ->
live h seed_a /\ live... | [] | Hacl.Impl.Frodo.KEM.KeyGen.frodo_mul_add_as_plus_e_pack_shake | {
"file_name": "code/frodo/Hacl.Impl.Frodo.KEM.KeyGen.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} |
a: Spec.Frodo.Params.frodo_alg ->
gen_a: Spec.Frodo.Params.frodo_gen_a{Hacl.Impl.Frodo.Params.is_supported gen_a} ->
seed_a: Hacl.Impl.Matrix.lbytes Hacl.Impl.Frodo.Params.bytes_seed_a ->
seed_se: Hacl.Impl.Matrix.lbytes (Hacl.Impl.Frodo.Params.crypto_bytes a) ->
b: Hacl.Impl.Matrix.lbytes (Hacl.Im... | {
"end_col": 14,
"end_line": 177,
"start_col": 2,
"start_line": 168
} |
FStar.HyperStack.ST.Stack | val frodo_mul_add_as_plus_e_pack:
a:FP.frodo_alg
-> gen_a:FP.frodo_gen_a{is_supported gen_a}
-> seed_a:lbytes bytes_seed_a
-> s_matrix:matrix_t (params_n a) params_nbar
-> e_matrix:matrix_t (params_n a) params_nbar
-> b:lbytes (publicmatrixbytes_len a)
-> Stack unit
(requires fun h ->
live h s... | [
{
"abbrev": true,
"full_module": "Spec.Frodo.KEM.KeyGen",
"short_module": "S"
},
{
"abbrev": true,
"full_module": "Spec.Frodo.Params",
"short_module": "FP"
},
{
"abbrev": true,
"full_module": "Spec.Matrix",
"short_module": "M"
},
{
"abbrev": true,
"full_module... | false | let frodo_mul_add_as_plus_e_pack a gen_a seed_a s_matrix e_matrix b =
push_frame ();
let b_matrix = matrix_create (params_n a) params_nbar in
frodo_mul_add_as_plus_e a gen_a seed_a s_matrix e_matrix b_matrix;
frodo_pack (params_logq a) b_matrix b;
pop_frame () | val frodo_mul_add_as_plus_e_pack:
a:FP.frodo_alg
-> gen_a:FP.frodo_gen_a{is_supported gen_a}
-> seed_a:lbytes bytes_seed_a
-> s_matrix:matrix_t (params_n a) params_nbar
-> e_matrix:matrix_t (params_n a) params_nbar
-> b:lbytes (publicmatrixbytes_len a)
-> Stack unit
(requires fun h ->
live h s... | true | null | false | push_frame ();
let b_matrix = matrix_create (params_n a) params_nbar in
frodo_mul_add_as_plus_e a gen_a seed_a s_matrix e_matrix b_matrix;
frodo_pack (params_logq a) b_matrix b;
pop_frame () | {
"checked_file": "Hacl.Impl.Frodo.KEM.KeyGen.fst.checked",
"dependencies": [
"Spec.Matrix.fst.checked",
"Spec.Frodo.Params.fst.checked",
"Spec.Frodo.KEM.KeyGen.fst.checked",
"prims.fst.checked",
"LowStar.Buffer.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.IntTypes.fsti.checked",
... | [] | [
"Spec.Frodo.Params.frodo_alg",
"Spec.Frodo.Params.frodo_gen_a",
"Prims.b2t",
"Hacl.Impl.Frodo.Params.is_supported",
"Hacl.Impl.Matrix.lbytes",
"Hacl.Impl.Frodo.Params.bytes_seed_a",
"Hacl.Impl.Matrix.matrix_t",
"Hacl.Impl.Frodo.Params.params_n",
"Hacl.Impl.Frodo.Params.params_nbar",
"Hacl.Impl.Fro... | [] | module Hacl.Impl.Frodo.KEM.KeyGen
open FStar.HyperStack
open FStar.HyperStack.ST
open FStar.Mul
open LowStar.Buffer
open Lib.IntTypes
open Lib.Buffer
open Hacl.Impl.Matrix
open Hacl.Impl.Frodo.Params
open Hacl.Impl.Frodo.KEM
open Hacl.Impl.Frodo.Pack
open Hacl.Impl.Frodo.Sample
open Hacl.Frodo.Random
module ST = F... | false | false | Hacl.Impl.Frodo.KEM.KeyGen.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 frodo_mul_add_as_plus_e_pack:
a:FP.frodo_alg
-> gen_a:FP.frodo_gen_a{is_supported gen_a}
-> seed_a:lbytes bytes_seed_a
-> s_matrix:matrix_t (params_n a) params_nbar
-> e_matrix:matrix_t (params_n a) params_nbar
-> b:lbytes (publicmatrixbytes_len a)
-> Stack unit
(requires fun h ->
live h s... | [] | Hacl.Impl.Frodo.KEM.KeyGen.frodo_mul_add_as_plus_e_pack | {
"file_name": "code/frodo/Hacl.Impl.Frodo.KEM.KeyGen.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} |
a: Spec.Frodo.Params.frodo_alg ->
gen_a: Spec.Frodo.Params.frodo_gen_a{Hacl.Impl.Frodo.Params.is_supported gen_a} ->
seed_a: Hacl.Impl.Matrix.lbytes Hacl.Impl.Frodo.Params.bytes_seed_a ->
s_matrix:
Hacl.Impl.Matrix.matrix_t (Hacl.Impl.Frodo.Params.params_n a)
Hacl.Impl.Frodo.Params.params... | {
"end_col": 14,
"end_line": 106,
"start_col": 2,
"start_line": 102
} |
FStar.Pervasives.Lemma | val two_to_nat_to_two (n:nat64) : Lemma
(two_to_nat 32 (nat_to_two 32 n) == n)
[SMTPat (two_to_nat 32 (nat_to_two 32 n))] | [
{
"abbrev": false,
"full_module": "Vale.Lib.Meta",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Def.Words.Two_s",
"short_module": null
},
{
"abbrev": false,
"full_module"... | false | let two_to_nat_to_two (n:nat64) =
let n1 = n % (pow2_32) in
let n2 = (n/(pow2_32)) % (pow2_32) in
let n_f = two_to_nat 32 (Mktwo n1 n2) in
assert_norm (n == n1 + n2 * pow2_32) | val two_to_nat_to_two (n:nat64) : Lemma
(two_to_nat 32 (nat_to_two 32 n) == n)
[SMTPat (two_to_nat 32 (nat_to_two 32 n))]
let two_to_nat_to_two (n: nat64) = | false | null | true | let n1 = n % (pow2_32) in
let n2 = (n / (pow2_32)) % (pow2_32) in
let n_f = two_to_nat 32 (Mktwo n1 n2) in
assert_norm (n == n1 + n2 * pow2_32) | {
"checked_file": "Vale.Def.Words.Two.fst.checked",
"dependencies": [
"Vale.Lib.Meta.fsti.checked",
"prims.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul.fst.checked"
],
"interface_file": true,
"source_file": "Vale.Def.Words.Two.fst"
} | [
"lemma"
] | [
"Vale.Def.Words_s.nat64",
"FStar.Pervasives.assert_norm",
"Prims.eq2",
"Prims.int",
"Prims.op_Addition",
"FStar.Mul.op_Star",
"Vale.Def.Words_s.pow2_32",
"Vale.Def.Words_s.natN",
"Prims.pow2",
"Prims.op_Multiply",
"Vale.Def.Words.Two_s.two_to_nat",
"Vale.Def.Words_s.Mktwo",
"Prims.op_Modulus... | [] | module Vale.Def.Words.Two
open FStar.Mul
open Vale.Lib.Meta
let lemma_fundamental_div_mod (x:nat64) :
Lemma (x = x % pow2_32 + pow2_32 * ((x / pow2_32) % pow2_32))
=
()
let nat_to_two_to_nat (n1 n2:nat32) : Lemma
(nat_to_two 32 (two_to_nat 32 (Mktwo n1 n2)) == Mktwo n1 n2)
=
let n = n1 + n2 * pow2_32 in
... | false | false | Vale.Def.Words.Two.fst | {
"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 two_to_nat_to_two (n:nat64) : Lemma
(two_to_nat 32 (nat_to_two 32 n) == n)
[SMTPat (two_to_nat 32 (nat_to_two 32 n))] | [] | Vale.Def.Words.Two.two_to_nat_to_two | {
"file_name": "vale/code/lib/util/Vale.Def.Words.Two.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | n: Vale.Def.Words_s.nat64
-> FStar.Pervasives.Lemma
(ensures Vale.Def.Words.Two_s.two_to_nat 32 (Vale.Def.Words.Two_s.nat_to_two 32 n) == n)
[SMTPat (Vale.Def.Words.Two_s.two_to_nat 32 (Vale.Def.Words.Two_s.nat_to_two 32 n))] | {
"end_col": 38,
"end_line": 28,
"start_col": 33,
"start_line": 24
} |
FStar.Pervasives.Lemma | val two_to_nat_32_injective (_:unit) : Lemma
(forall (x x':two (natN (pow2_norm 32))).{:pattern two_to_nat 32 x; two_to_nat 32 x'}
two_to_nat 32 x == two_to_nat 32 x' ==> x == x') | [
{
"abbrev": false,
"full_module": "Vale.Lib.Meta",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Def.Words.Two_s",
"short_module": null
},
{
"abbrev": false,
"full_module"... | false | let two_to_nat_32_injective () =
generic_injective_proof (two_to_nat 32) (nat_to_two 32) (fun x -> nat_to_two_to_nat x.lo x.hi) | val two_to_nat_32_injective (_:unit) : Lemma
(forall (x x':two (natN (pow2_norm 32))).{:pattern two_to_nat 32 x; two_to_nat 32 x'}
two_to_nat 32 x == two_to_nat 32 x' ==> x == x')
let two_to_nat_32_injective () = | false | null | true | generic_injective_proof (two_to_nat 32) (nat_to_two 32) (fun x -> nat_to_two_to_nat x.lo x.hi) | {
"checked_file": "Vale.Def.Words.Two.fst.checked",
"dependencies": [
"Vale.Lib.Meta.fsti.checked",
"prims.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul.fst.checked"
],
"interface_file": true,
"source_file": "Vale.Def.Words.Two.fst"
} | [
"lemma"
] | [
"Prims.unit",
"Vale.Lib.Meta.generic_injective_proof",
"Vale.Def.Words_s.two",
"Vale.Def.Words_s.nat32",
"Vale.Def.Words_s.natN",
"Prims.pow2",
"FStar.Mul.op_Star",
"Vale.Def.Words.Two_s.two_to_nat",
"Vale.Def.Words.Two_s.nat_to_two",
"Vale.Def.Words.Two.nat_to_two_to_nat",
"Vale.Def.Words_s.__p... | [] | module Vale.Def.Words.Two
open FStar.Mul
open Vale.Lib.Meta
let lemma_fundamental_div_mod (x:nat64) :
Lemma (x = x % pow2_32 + pow2_32 * ((x / pow2_32) % pow2_32))
=
()
let nat_to_two_to_nat (n1 n2:nat32) : Lemma
(nat_to_two 32 (two_to_nat 32 (Mktwo n1 n2)) == Mktwo n1 n2)
=
let n = n1 + n2 * pow2_32 in
... | false | false | Vale.Def.Words.Two.fst | {
"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 two_to_nat_32_injective (_:unit) : Lemma
(forall (x x':two (natN (pow2_norm 32))).{:pattern two_to_nat 32 x; two_to_nat 32 x'}
two_to_nat 32 x == two_to_nat 32 x' ==> x == x') | [] | Vale.Def.Words.Two.two_to_nat_32_injective | {
"file_name": "vale/code/lib/util/Vale.Def.Words.Two.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | _: Prims.unit
-> FStar.Pervasives.Lemma
(ensures
forall (x: Vale.Def.Words_s.two (Vale.Def.Words_s.natN (Vale.Def.Words_s.pow2_norm 32)))
(x': Vale.Def.Words_s.two (Vale.Def.Words_s.natN (Vale.Def.Words_s.pow2_norm 32))).
{:pattern Vale.Def.Words.Two_s.two_to_nat 32 x; Vale.Def.Words.Two_s.t... | {
"end_col": 96,
"end_line": 31,
"start_col": 2,
"start_line": 31
} |
FStar.Pervasives.Lemma | val nat_to_two_to_nat (n1 n2:nat32) : Lemma
(nat_to_two 32 (two_to_nat 32 (Mktwo n1 n2)) == Mktwo n1 n2)
[SMTPat (nat_to_two 32 (two_to_nat 32 (Mktwo n1 n2)))] | [
{
"abbrev": false,
"full_module": "Vale.Lib.Meta",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Def.Words.Two_s",
"short_module": null
},
{
"abbrev": false,
"full_module"... | false | let nat_to_two_to_nat (n1 n2:nat32) : Lemma
(nat_to_two 32 (two_to_nat 32 (Mktwo n1 n2)) == Mktwo n1 n2)
=
let n = n1 + n2 * pow2_32 in
assert_norm (two_to_nat 32 (Mktwo n1 n2) == int_to_natN pow2_64 n);
assert (0 <= n);
assert (n < pow2_64);
assert (two_to_nat 32 (Mktwo n1 n2) == n);
assert_norm (pow2_... | val nat_to_two_to_nat (n1 n2:nat32) : Lemma
(nat_to_two 32 (two_to_nat 32 (Mktwo n1 n2)) == Mktwo n1 n2)
[SMTPat (nat_to_two 32 (two_to_nat 32 (Mktwo n1 n2)))]
let nat_to_two_to_nat (n1 n2: nat32)
: Lemma (nat_to_two 32 (two_to_nat 32 (Mktwo n1 n2)) == Mktwo n1 n2) = | false | null | true | let n = n1 + n2 * pow2_32 in
assert_norm (two_to_nat 32 (Mktwo n1 n2) == int_to_natN pow2_64 n);
assert (0 <= n);
assert (n < pow2_64);
assert (two_to_nat 32 (Mktwo n1 n2) == n);
assert_norm (pow2_norm 32 == pow2_32);
assert_norm (nat_to_two 32 n == Mktwo (n % pow2_32) ((n / pow2_32) % pow2_32));
lemma_fundamental_div_... | {
"checked_file": "Vale.Def.Words.Two.fst.checked",
"dependencies": [
"Vale.Lib.Meta.fsti.checked",
"prims.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul.fst.checked"
],
"interface_file": true,
"source_file": "Vale.Def.Words.Two.fst"
} | [
"lemma"
] | [
"Vale.Def.Words_s.nat32",
"Prims.unit",
"Vale.Def.Words.Two.lemma_fundamental_div_mod",
"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_s.Mktwo",
"Prims.op_Modulus",
"Vale.Def.Words_s... | [] | module Vale.Def.Words.Two
open FStar.Mul
open Vale.Lib.Meta
let lemma_fundamental_div_mod (x:nat64) :
Lemma (x = x % pow2_32 + pow2_32 * ((x / pow2_32) % pow2_32))
=
()
let nat_to_two_to_nat (n1 n2:nat32) : Lemma | false | false | Vale.Def.Words.Two.fst | {
"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 nat_to_two_to_nat (n1 n2:nat32) : Lemma
(nat_to_two 32 (two_to_nat 32 (Mktwo n1 n2)) == Mktwo n1 n2)
[SMTPat (nat_to_two 32 (two_to_nat 32 (Mktwo n1 n2)))] | [] | Vale.Def.Words.Two.nat_to_two_to_nat | {
"file_name": "vale/code/lib/util/Vale.Def.Words.Two.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | n1: Vale.Def.Words_s.nat32 -> n2: Vale.Def.Words_s.nat32
-> FStar.Pervasives.Lemma
(ensures
Vale.Def.Words.Two_s.nat_to_two 32
(Vale.Def.Words.Two_s.two_to_nat 32 (Vale.Def.Words_s.Mktwo n1 n2)) ==
Vale.Def.Words_s.Mktwo n1 n2)
[
SMTPat (Vale.Def.Words.Two_s.nat_to_two 32... | {
"end_col": 4,
"end_line": 22,
"start_col": 3,
"start_line": 12
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.