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.Map",
"short_module": "Map"
},
{
"abbrev": false,
"full_module": "FStar.Preorder",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Monotonic.HyperHeap",
"short_module": null
},
{
"abbrev": true,
"full_mo... | false | let modifies_one id h0 h1 = modifies_one id (get_hmap h0) (get_hmap h1) | let modifies_one id h0 h1 = | false | null | false | modifies_one id (get_hmap h0) (get_hmap h1) | {
"checked_file": "FStar.Monotonic.HyperStack.fsti.checked",
"dependencies": [
"prims.fst.checked",
"FStar.Set.fsti.checked",
"FStar.Preorder.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Monotonic.HyperHeap.fsti.checked",
"FStar.Monotonic.H... | [
"total"
] | [
"FStar.Monotonic.HyperHeap.rid",
"FStar.Monotonic.HyperStack.mem'",
"FStar.Monotonic.HyperHeap.modifies_one",
"FStar.Monotonic.HyperStack.get_hmap",
"Prims.logical"
] | [] | (*
Copyright 2008-2014 Aseem Rastogi, and 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 app... | false | true | FStar.Monotonic.HyperStack.fsti | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | null | val modifies_one : id: FStar.Monotonic.HyperHeap.rid ->
h0: FStar.Monotonic.HyperStack.mem' ->
h1: FStar.Monotonic.HyperStack.mem'
-> Prims.logical | [] | FStar.Monotonic.HyperStack.modifies_one | {
"file_name": "ulib/FStar.Monotonic.HyperStack.fsti",
"git_rev": "f4cbb7a38d67eeb13fbdb2f4fb8a44a65cbcdc1f",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} |
id: FStar.Monotonic.HyperHeap.rid ->
h0: FStar.Monotonic.HyperStack.mem' ->
h1: FStar.Monotonic.HyperStack.mem'
-> Prims.logical | {
"end_col": 71,
"end_line": 431,
"start_col": 28,
"start_line": 431
} | |
Prims.Tot | [
{
"abbrev": true,
"full_module": "FStar.Map",
"short_module": "Map"
},
{
"abbrev": false,
"full_module": "FStar.Preorder",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Monotonic.HyperHeap",
"short_module": null
},
{
"abbrev": true,
"full_mo... | false | let popped (m0 m1:mem) =
poppable m0 /\
(let h0, tip0, h1, tip1 = get_hmap m0, get_tip m0, get_hmap m1, get_tip m1 in
(parent tip0 = tip1 /\
Set.equal (Map.domain h1) (remove_elt (Map.domain h0) tip0) /\
Map.equal h1 (Map.restrict (Map.domain h1) h0))) | let popped (m0 m1: mem) = | false | null | false | poppable m0 /\
(let h0, tip0, h1, tip1 = get_hmap m0, get_tip m0, get_hmap m1, get_tip m1 in
(parent tip0 = tip1 /\ Set.equal (Map.domain h1) (remove_elt (Map.domain h0) tip0) /\
Map.equal h1 (Map.restrict (Map.domain h1) h0))) | {
"checked_file": "FStar.Monotonic.HyperStack.fsti.checked",
"dependencies": [
"prims.fst.checked",
"FStar.Set.fsti.checked",
"FStar.Preorder.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Monotonic.HyperHeap.fsti.checked",
"FStar.Monotonic.H... | [
"total"
] | [
"FStar.Monotonic.HyperStack.mem",
"Prims.l_and",
"FStar.Monotonic.HyperStack.poppable",
"FStar.Map.t",
"FStar.Monotonic.HyperHeap.rid",
"FStar.Monotonic.Heap.heap",
"Prims.l_not",
"Prims.eq2",
"FStar.Monotonic.HyperHeap.root",
"Prims.b2t",
"Prims.op_Equality",
"FStar.Monotonic.HyperHeap.parent... | [] | (*
Copyright 2008-2014 Aseem Rastogi, and 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 app... | false | true | FStar.Monotonic.HyperStack.fsti | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | null | val popped : m0: FStar.Monotonic.HyperStack.mem -> m1: FStar.Monotonic.HyperStack.mem -> Prims.logical | [] | FStar.Monotonic.HyperStack.popped | {
"file_name": "ulib/FStar.Monotonic.HyperStack.fsti",
"git_rev": "f4cbb7a38d67eeb13fbdb2f4fb8a44a65cbcdc1f",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | m0: FStar.Monotonic.HyperStack.mem -> m1: FStar.Monotonic.HyperStack.mem -> Prims.logical | {
"end_col": 52,
"end_line": 198,
"start_col": 2,
"start_line": 194
} | |
Prims.Tot | val empty_mem:mem | [
{
"abbrev": true,
"full_module": "FStar.Map",
"short_module": "Map"
},
{
"abbrev": false,
"full_module": "FStar.Preorder",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Monotonic.HyperHeap",
"short_module": null
},
{
"abbrev": true,
"full_mo... | false | let empty_mem : mem =
let empty_map = Map.restrict Set.empty (Map.const Heap.emp) in
let h = Map.upd empty_map root Heap.emp in
let tip = root in
root_last_component ();
lemma_is_wf_ctr_and_tip_intro h 1 tip;
mk_mem 1 h tip | val empty_mem:mem
let empty_mem:mem = | false | null | false | let empty_map = Map.restrict Set.empty (Map.const Heap.emp) in
let h = Map.upd empty_map root Heap.emp in
let tip = root in
root_last_component ();
lemma_is_wf_ctr_and_tip_intro h 1 tip;
mk_mem 1 h tip | {
"checked_file": "FStar.Monotonic.HyperStack.fsti.checked",
"dependencies": [
"prims.fst.checked",
"FStar.Set.fsti.checked",
"FStar.Preorder.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Monotonic.HyperHeap.fsti.checked",
"FStar.Monotonic.H... | [
"total"
] | [
"FStar.Monotonic.HyperStack.mk_mem",
"Prims.unit",
"FStar.Monotonic.HyperStack.lemma_is_wf_ctr_and_tip_intro",
"FStar.Monotonic.HyperHeap.root_last_component",
"FStar.Monotonic.HyperHeap.rid",
"Prims.l_and",
"Prims.eq2",
"Prims.int",
"FStar.Monotonic.HyperHeap.color",
"Prims.b2t",
"Prims.op_Nega... | [] | (*
Copyright 2008-2014 Aseem Rastogi, and 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 app... | false | true | FStar.Monotonic.HyperStack.fsti | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | null | val empty_mem:mem | [] | FStar.Monotonic.HyperStack.empty_mem | {
"file_name": "ulib/FStar.Monotonic.HyperStack.fsti",
"git_rev": "f4cbb7a38d67eeb13fbdb2f4fb8a44a65cbcdc1f",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | FStar.Monotonic.HyperStack.mem | {
"end_col": 16,
"end_line": 181,
"start_col": 21,
"start_line": 175
} |
FStar.Pervasives.Lemma | val heap_region_does_not_overlap_with_tip
(m: mem)
(r:
rid
{ is_heap_color (color r) /\ not (disjoint r (get_tip m)) /\ r =!= root /\
is_stack_region (get_tip m) })
: Lemma (requires True) (ensures (~(r `is_in` (get_hmap m)))) | [
{
"abbrev": true,
"full_module": "FStar.Map",
"short_module": "Map"
},
{
"abbrev": false,
"full_module": "FStar.Preorder",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Monotonic.HyperHeap",
"short_module": null
},
{
"abbrev": true,
"full_mo... | false | let heap_region_does_not_overlap_with_tip
(m:mem) (r:rid{is_heap_color (color r) /\ not (disjoint r (get_tip m)) /\ r =!= root /\ is_stack_region (get_tip m)})
: Lemma (requires True)
(ensures (~ (r `is_in` get_hmap m)))
= root_has_color_zero() | val heap_region_does_not_overlap_with_tip
(m: mem)
(r:
rid
{ is_heap_color (color r) /\ not (disjoint r (get_tip m)) /\ r =!= root /\
is_stack_region (get_tip m) })
: Lemma (requires True) (ensures (~(r `is_in` (get_hmap m))))
let heap_region_does_not_overlap_with_tip... | false | null | true | root_has_color_zero () | {
"checked_file": "FStar.Monotonic.HyperStack.fsti.checked",
"dependencies": [
"prims.fst.checked",
"FStar.Set.fsti.checked",
"FStar.Preorder.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Monotonic.HyperHeap.fsti.checked",
"FStar.Monotonic.H... | [
"lemma"
] | [
"FStar.Monotonic.HyperStack.mem",
"FStar.Monotonic.HyperHeap.rid",
"Prims.l_and",
"Prims.b2t",
"FStar.Monotonic.HyperStack.is_heap_color",
"FStar.Monotonic.HyperHeap.color",
"Prims.op_Negation",
"FStar.Monotonic.HyperHeap.disjoint",
"FStar.Monotonic.HyperStack.get_tip",
"Prims.l_not",
"Prims.eq2... | [] | (*
Copyright 2008-2014 Aseem Rastogi, and 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 app... | false | false | FStar.Monotonic.HyperStack.fsti | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | null | val heap_region_does_not_overlap_with_tip
(m: mem)
(r:
rid
{ is_heap_color (color r) /\ not (disjoint r (get_tip m)) /\ r =!= root /\
is_stack_region (get_tip m) })
: Lemma (requires True) (ensures (~(r `is_in` (get_hmap m)))) | [] | FStar.Monotonic.HyperStack.heap_region_does_not_overlap_with_tip | {
"file_name": "ulib/FStar.Monotonic.HyperStack.fsti",
"git_rev": "f4cbb7a38d67eeb13fbdb2f4fb8a44a65cbcdc1f",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} |
m: FStar.Monotonic.HyperStack.mem ->
r:
FStar.Monotonic.HyperHeap.rid
{ FStar.Monotonic.HyperStack.is_heap_color (FStar.Monotonic.HyperHeap.color r) /\
Prims.op_Negation (FStar.Monotonic.HyperHeap.disjoint r
(FStar.Monotonic.HyperStack.get_tip m)) /\ ~(r == FStar.Monoton... | {
"end_col": 25,
"end_line": 187,
"start_col": 4,
"start_line": 187
} |
Prims.Tot | [
{
"abbrev": true,
"full_module": "FStar.Map",
"short_module": "Map"
},
{
"abbrev": false,
"full_module": "FStar.Preorder",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Monotonic.HyperHeap",
"short_module": null
},
{
"abbrev": true,
"full_mo... | false | let fresh_frame (m0:mem) (m1:mem) =
not (get_hmap m0 `Map.contains` get_tip m1) /\
parent (get_tip m1) == get_tip m0 /\
get_hmap m1 == Map.upd (get_hmap m0) (get_tip m1) Heap.emp | let fresh_frame (m0 m1: mem) = | false | null | false | not ((get_hmap m0) `Map.contains` (get_tip m1)) /\ parent (get_tip m1) == get_tip m0 /\
get_hmap m1 == Map.upd (get_hmap m0) (get_tip m1) Heap.emp | {
"checked_file": "FStar.Monotonic.HyperStack.fsti.checked",
"dependencies": [
"prims.fst.checked",
"FStar.Set.fsti.checked",
"FStar.Preorder.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Monotonic.HyperHeap.fsti.checked",
"FStar.Monotonic.H... | [
"total"
] | [
"FStar.Monotonic.HyperStack.mem",
"Prims.l_and",
"Prims.b2t",
"Prims.op_Negation",
"FStar.Map.contains",
"FStar.Monotonic.HyperHeap.rid",
"FStar.Monotonic.Heap.heap",
"FStar.Monotonic.HyperStack.get_hmap",
"FStar.Monotonic.HyperStack.get_tip",
"Prims.eq2",
"FStar.Monotonic.HyperHeap.parent",
"... | [] | (*
Copyright 2008-2014 Aseem Rastogi, and 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 app... | false | true | FStar.Monotonic.HyperStack.fsti | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | null | val fresh_frame : m0: FStar.Monotonic.HyperStack.mem -> m1: FStar.Monotonic.HyperStack.mem -> Prims.logical | [] | FStar.Monotonic.HyperStack.fresh_frame | {
"file_name": "ulib/FStar.Monotonic.HyperStack.fsti",
"git_rev": "f4cbb7a38d67eeb13fbdb2f4fb8a44a65cbcdc1f",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | m0: FStar.Monotonic.HyperStack.mem -> m1: FStar.Monotonic.HyperStack.mem -> Prims.logical | {
"end_col": 60,
"end_line": 345,
"start_col": 2,
"start_line": 343
} | |
Prims.Tot | val pop (m0: mem{poppable m0}) : mem | [
{
"abbrev": true,
"full_module": "FStar.Map",
"short_module": "Map"
},
{
"abbrev": false,
"full_module": "FStar.Preorder",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Monotonic.HyperHeap",
"short_module": null
},
{
"abbrev": true,
"full_mo... | false | let pop (m0:mem{poppable m0}) :mem =
let h0, tip0, rid_ctr0 = get_hmap m0, get_tip m0, get_rid_ctr m0 in
root_has_color_zero();
lemma_is_wf_ctr_and_tip_elim m0;
let dom = remove_elt (Map.domain h0) tip0 in
let h1 = Map.restrict dom h0 in
let tip1 = parent tip0 in
lemma_is_wf_ctr_and_tip_intro h1 rid_ctr0 ... | val pop (m0: mem{poppable m0}) : mem
let pop (m0: mem{poppable m0}) : mem = | false | null | false | let h0, tip0, rid_ctr0 = get_hmap m0, get_tip m0, get_rid_ctr m0 in
root_has_color_zero ();
lemma_is_wf_ctr_and_tip_elim m0;
let dom = remove_elt (Map.domain h0) tip0 in
let h1 = Map.restrict dom h0 in
let tip1 = parent tip0 in
lemma_is_wf_ctr_and_tip_intro h1 rid_ctr0 tip1;
mk_mem rid_ctr0 h1 tip1 | {
"checked_file": "FStar.Monotonic.HyperStack.fsti.checked",
"dependencies": [
"prims.fst.checked",
"FStar.Set.fsti.checked",
"FStar.Preorder.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Monotonic.HyperHeap.fsti.checked",
"FStar.Monotonic.H... | [
"total"
] | [
"FStar.Monotonic.HyperStack.mem",
"FStar.Monotonic.HyperStack.poppable",
"FStar.Map.t",
"FStar.Monotonic.HyperHeap.rid",
"FStar.Monotonic.Heap.heap",
"Prims.l_not",
"Prims.eq2",
"FStar.Monotonic.HyperHeap.root",
"Prims.int",
"FStar.Monotonic.HyperStack.mk_mem",
"Prims.unit",
"FStar.Monotonic.H... | [] | (*
Copyright 2008-2014 Aseem Rastogi, and 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 app... | false | false | FStar.Monotonic.HyperStack.fsti | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | null | val pop (m0: mem{poppable m0}) : mem | [] | FStar.Monotonic.HyperStack.pop | {
"file_name": "ulib/FStar.Monotonic.HyperStack.fsti",
"git_rev": "f4cbb7a38d67eeb13fbdb2f4fb8a44a65cbcdc1f",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | m0: FStar.Monotonic.HyperStack.mem{FStar.Monotonic.HyperStack.poppable m0}
-> FStar.Monotonic.HyperStack.mem | {
"end_col": 25,
"end_line": 208,
"start_col": 36,
"start_line": 200
} |
Prims.GTot | val modifies_some_refs (i rs: some_refs) (h0 h1: mem) : GTot Type0 | [
{
"abbrev": true,
"full_module": "FStar.Map",
"short_module": "Map"
},
{
"abbrev": false,
"full_module": "FStar.Preorder",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Monotonic.HyperHeap",
"short_module": null
},
{
"abbrev": true,
"full_mo... | false | let rec modifies_some_refs (i:some_refs) (rs:some_refs) (h0:mem) (h1:mem) :GTot Type0 =
match i with
| [] -> True
| (Ref x)::tl ->
(modifies_ref (frameOf x) (refs_in_region (frameOf x) rs) h0 h1) /\
(modifies_some_refs tl rs h0 h1) | val modifies_some_refs (i rs: some_refs) (h0 h1: mem) : GTot Type0
let rec modifies_some_refs (i rs: some_refs) (h0 h1: mem) : GTot Type0 = | false | null | false | match i with
| [] -> True
| Ref x :: tl ->
(modifies_ref (frameOf x) (refs_in_region (frameOf x) rs) h0 h1) /\
(modifies_some_refs tl rs h0 h1) | {
"checked_file": "FStar.Monotonic.HyperStack.fsti.checked",
"dependencies": [
"prims.fst.checked",
"FStar.Set.fsti.checked",
"FStar.Preorder.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Monotonic.HyperHeap.fsti.checked",
"FStar.Monotonic.H... | [
"sometrivial"
] | [
"FStar.Monotonic.HyperStack.some_refs",
"FStar.Monotonic.HyperStack.mem",
"Prims.l_True",
"FStar.Preorder.preorder",
"FStar.Monotonic.HyperStack.mreference",
"Prims.list",
"FStar.Monotonic.HyperStack.some_ref",
"Prims.l_and",
"FStar.Monotonic.HyperStack.modifies_ref",
"FStar.Monotonic.HyperStack.f... | [] | (*
Copyright 2008-2014 Aseem Rastogi, and 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 app... | false | false | FStar.Monotonic.HyperStack.fsti | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | null | val modifies_some_refs (i rs: some_refs) (h0 h1: mem) : GTot Type0 | [
"recursion"
] | FStar.Monotonic.HyperStack.modifies_some_refs | {
"file_name": "ulib/FStar.Monotonic.HyperStack.fsti",
"git_rev": "f4cbb7a38d67eeb13fbdb2f4fb8a44a65cbcdc1f",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} |
i: FStar.Monotonic.HyperStack.some_refs ->
rs: FStar.Monotonic.HyperStack.some_refs ->
h0: FStar.Monotonic.HyperStack.mem ->
h1: FStar.Monotonic.HyperStack.mem
-> Prims.GTot Type0 | {
"end_col": 36,
"end_line": 463,
"start_col": 2,
"start_line": 459
} |
Prims.Tot | [
{
"abbrev": true,
"full_module": "FStar.Map",
"short_module": "Map"
},
{
"abbrev": false,
"full_module": "FStar.Preorder",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Monotonic.HyperHeap",
"short_module": null
},
{
"abbrev": true,
"full_mo... | false | let modifies_ref (id:rid) (s:Set.set nat) (h0:mem) (h1:mem) =
Heap.modifies s (get_hmap h0 `Map.sel` id) (get_hmap h1 `Map.sel` id) | let modifies_ref (id: rid) (s: Set.set nat) (h0 h1: mem) = | false | null | false | Heap.modifies s ((get_hmap h0) `Map.sel` id) ((get_hmap h1) `Map.sel` id) | {
"checked_file": "FStar.Monotonic.HyperStack.fsti.checked",
"dependencies": [
"prims.fst.checked",
"FStar.Set.fsti.checked",
"FStar.Preorder.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Monotonic.HyperHeap.fsti.checked",
"FStar.Monotonic.H... | [
"total"
] | [
"FStar.Monotonic.HyperHeap.rid",
"FStar.Set.set",
"Prims.nat",
"FStar.Monotonic.HyperStack.mem",
"FStar.Monotonic.Heap.modifies",
"FStar.Map.sel",
"FStar.Monotonic.Heap.heap",
"FStar.Monotonic.HyperStack.get_hmap",
"Prims.logical"
] | [] | (*
Copyright 2008-2014 Aseem Rastogi, and 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 app... | false | true | FStar.Monotonic.HyperStack.fsti | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | null | val modifies_ref : id: FStar.Monotonic.HyperHeap.rid ->
s: FStar.Set.set Prims.nat ->
h0: FStar.Monotonic.HyperStack.mem ->
h1: FStar.Monotonic.HyperStack.mem
-> Prims.logical | [] | FStar.Monotonic.HyperStack.modifies_ref | {
"file_name": "ulib/FStar.Monotonic.HyperStack.fsti",
"git_rev": "f4cbb7a38d67eeb13fbdb2f4fb8a44a65cbcdc1f",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} |
id: FStar.Monotonic.HyperHeap.rid ->
s: FStar.Set.set Prims.nat ->
h0: FStar.Monotonic.HyperStack.mem ->
h1: FStar.Monotonic.HyperStack.mem
-> Prims.logical | {
"end_col": 71,
"end_line": 433,
"start_col": 2,
"start_line": 433
} | |
Prims.Tot | val sel_tot (#a: Type) (#rel: preorder a) (m: mem) (r: mreference a rel {m `contains` r}) : Tot a | [
{
"abbrev": true,
"full_module": "FStar.Map",
"short_module": "Map"
},
{
"abbrev": false,
"full_module": "FStar.Preorder",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Monotonic.HyperHeap",
"short_module": null
},
{
"abbrev": true,
"full_mo... | false | let sel_tot (#a:Type) (#rel:preorder a) (m:mem) (r:mreference a rel{m `contains` r})
:Tot a
= Heap.sel_tot (get_hmap m `Map.sel` (frameOf r)) (as_ref r) | val sel_tot (#a: Type) (#rel: preorder a) (m: mem) (r: mreference a rel {m `contains` r}) : Tot a
let sel_tot (#a: Type) (#rel: preorder a) (m: mem) (r: mreference a rel {m `contains` r}) : Tot a = | false | null | false | Heap.sel_tot ((get_hmap m) `Map.sel` (frameOf r)) (as_ref r) | {
"checked_file": "FStar.Monotonic.HyperStack.fsti.checked",
"dependencies": [
"prims.fst.checked",
"FStar.Set.fsti.checked",
"FStar.Preorder.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Monotonic.HyperHeap.fsti.checked",
"FStar.Monotonic.H... | [
"total"
] | [
"FStar.Preorder.preorder",
"FStar.Monotonic.HyperStack.mem",
"FStar.Monotonic.HyperStack.mreference",
"FStar.Monotonic.HyperStack.contains",
"FStar.Monotonic.Heap.sel_tot",
"FStar.Map.sel",
"FStar.Monotonic.HyperHeap.rid",
"FStar.Monotonic.Heap.heap",
"FStar.Monotonic.HyperStack.get_hmap",
"FStar.... | [] | (*
Copyright 2008-2014 Aseem Rastogi, and 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 app... | false | false | FStar.Monotonic.HyperStack.fsti | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | null | val sel_tot (#a: Type) (#rel: preorder a) (m: mem) (r: mreference a rel {m `contains` r}) : Tot a | [] | FStar.Monotonic.HyperStack.sel_tot | {
"file_name": "ulib/FStar.Monotonic.HyperStack.fsti",
"git_rev": "f4cbb7a38d67eeb13fbdb2f4fb8a44a65cbcdc1f",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} |
m: FStar.Monotonic.HyperStack.mem ->
r: FStar.Monotonic.HyperStack.mreference a rel {FStar.Monotonic.HyperStack.contains m r}
-> a | {
"end_col": 62,
"end_line": 340,
"start_col": 4,
"start_line": 340
} |
Prims.Tot | val free_heap_region
(m0: mem)
(r: rid{is_heap_color (color r) /\ rid_freeable r /\ (get_hmap m0) `Map.contains` r})
: mem | [
{
"abbrev": true,
"full_module": "FStar.Map",
"short_module": "Map"
},
{
"abbrev": false,
"full_module": "FStar.Preorder",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Monotonic.HyperHeap",
"short_module": null
},
{
"abbrev": true,
"full_mo... | false | let free_heap_region
(m0:mem)
(r:rid{
is_heap_color (color r) /\
rid_freeable r /\
get_hmap m0 `Map.contains` r})
: mem
= let h0, rid_ctr0 = get_hmap m0, get_rid_ctr m0 in
lemma_is_wf_ctr_and_tip_elim m0;
let dom = remove_elt (Map.domain h0) r in
let h1 = Map.restrict dom h0 in
lemma_is_wf_ctr_a... | val free_heap_region
(m0: mem)
(r: rid{is_heap_color (color r) /\ rid_freeable r /\ (get_hmap m0) `Map.contains` r})
: mem
let free_heap_region
(m0: mem)
(r: rid{is_heap_color (color r) /\ rid_freeable r /\ (get_hmap m0) `Map.contains` r})
: mem = | false | null | false | let h0, rid_ctr0 = get_hmap m0, get_rid_ctr m0 in
lemma_is_wf_ctr_and_tip_elim m0;
let dom = remove_elt (Map.domain h0) r in
let h1 = Map.restrict dom h0 in
lemma_is_wf_ctr_and_tip_intro h1 rid_ctr0 (get_tip m0);
mk_mem (get_rid_ctr m0) h1 (get_tip m0) | {
"checked_file": "FStar.Monotonic.HyperStack.fsti.checked",
"dependencies": [
"prims.fst.checked",
"FStar.Set.fsti.checked",
"FStar.Preorder.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Monotonic.HyperHeap.fsti.checked",
"FStar.Monotonic.H... | [
"total"
] | [
"FStar.Monotonic.HyperStack.mem",
"FStar.Monotonic.HyperHeap.rid",
"Prims.l_and",
"Prims.b2t",
"FStar.Monotonic.HyperStack.is_heap_color",
"FStar.Monotonic.HyperHeap.color",
"FStar.Monotonic.HyperHeap.rid_freeable",
"FStar.Map.contains",
"FStar.Monotonic.Heap.heap",
"FStar.Monotonic.HyperStack.get... | [] | (*
Copyright 2008-2014 Aseem Rastogi, and 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 app... | false | false | FStar.Monotonic.HyperStack.fsti | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | null | val free_heap_region
(m0: mem)
(r: rid{is_heap_color (color r) /\ rid_freeable r /\ (get_hmap m0) `Map.contains` r})
: mem | [] | FStar.Monotonic.HyperStack.free_heap_region | {
"file_name": "ulib/FStar.Monotonic.HyperStack.fsti",
"git_rev": "f4cbb7a38d67eeb13fbdb2f4fb8a44a65cbcdc1f",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} |
m0: FStar.Monotonic.HyperStack.mem ->
r:
FStar.Monotonic.HyperHeap.rid
{ FStar.Monotonic.HyperStack.is_heap_color (FStar.Monotonic.HyperHeap.color r) /\
FStar.Monotonic.HyperHeap.rid_freeable r /\
FStar.Map.contains (FStar.Monotonic.HyperStack.get_hmap m0) r }
-> FStar.Monot... | {
"end_col": 41,
"end_line": 392,
"start_col": 1,
"start_line": 387
} |
Prims.GTot | val upd
(#a: Type)
(#rel: preorder a)
(m: mem)
(s: mreference a rel {live_region m (frameOf s)})
(v: a)
: GTot mem | [
{
"abbrev": true,
"full_module": "FStar.Map",
"short_module": "Map"
},
{
"abbrev": false,
"full_module": "FStar.Preorder",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Monotonic.HyperHeap",
"short_module": null
},
{
"abbrev": true,
"full_mo... | false | let upd (#a:Type) (#rel:preorder a) (m:mem) (s:mreference a rel{live_region m (frameOf s)}) (v:a)
:GTot mem
= let h, rid_ctr, tip = get_hmap m, get_rid_ctr m, get_tip m in
lemma_is_wf_ctr_and_tip_elim m;
let i = frameOf s in
let h = Map.upd h i (Heap.upd (Map.sel h i) (as_ref s) v) in
lemma_is_wf_ct... | val upd
(#a: Type)
(#rel: preorder a)
(m: mem)
(s: mreference a rel {live_region m (frameOf s)})
(v: a)
: GTot mem
let upd
(#a: Type)
(#rel: preorder a)
(m: mem)
(s: mreference a rel {live_region m (frameOf s)})
(v: a)
: GTot mem = | false | null | false | let h, rid_ctr, tip = get_hmap m, get_rid_ctr m, get_tip m in
lemma_is_wf_ctr_and_tip_elim m;
let i = frameOf s in
let h = Map.upd h i (Heap.upd (Map.sel h i) (as_ref s) v) in
lemma_is_wf_ctr_and_tip_intro h rid_ctr tip;
mk_mem rid_ctr h tip | {
"checked_file": "FStar.Monotonic.HyperStack.fsti.checked",
"dependencies": [
"prims.fst.checked",
"FStar.Set.fsti.checked",
"FStar.Preorder.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Monotonic.HyperHeap.fsti.checked",
"FStar.Monotonic.H... | [
"sometrivial"
] | [
"FStar.Preorder.preorder",
"FStar.Monotonic.HyperStack.mem",
"FStar.Monotonic.HyperStack.mreference",
"Prims.b2t",
"FStar.Monotonic.HyperStack.live_region",
"FStar.Monotonic.HyperStack.frameOf",
"FStar.Map.t",
"FStar.Monotonic.HyperHeap.rid",
"FStar.Monotonic.Heap.heap",
"Prims.int",
"FStar.Mono... | [] | (*
Copyright 2008-2014 Aseem Rastogi, and 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 app... | false | false | FStar.Monotonic.HyperStack.fsti | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | null | val upd
(#a: Type)
(#rel: preorder a)
(m: mem)
(s: mreference a rel {live_region m (frameOf s)})
(v: a)
: GTot mem | [] | FStar.Monotonic.HyperStack.upd | {
"file_name": "ulib/FStar.Monotonic.HyperStack.fsti",
"git_rev": "f4cbb7a38d67eeb13fbdb2f4fb8a44a65cbcdc1f",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} |
m: FStar.Monotonic.HyperStack.mem ->
s:
FStar.Monotonic.HyperStack.mreference a rel
{FStar.Monotonic.HyperStack.live_region m (FStar.Monotonic.HyperStack.frameOf s)} ->
v: a
-> Prims.GTot FStar.Monotonic.HyperStack.mem | {
"end_col": 24,
"end_line": 303,
"start_col": 3,
"start_line": 298
} |
Prims.Tot | val free (#a: Type0) (#rel: preorder a) (r: mreference a rel {is_mm r}) (m: mem{m `contains` r})
: Tot mem | [
{
"abbrev": true,
"full_module": "FStar.Map",
"short_module": "Map"
},
{
"abbrev": false,
"full_module": "FStar.Preorder",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Monotonic.HyperHeap",
"short_module": null
},
{
"abbrev": true,
"full_mo... | false | let free (#a:Type0) (#rel:preorder a) (r:mreference a rel{is_mm r}) (m:mem{m `contains` r})
:Tot mem
= let h, rid_ctr, tip = get_hmap m, get_rid_ctr m, get_tip m in
lemma_is_wf_ctr_and_tip_elim m;
let i = frameOf r in
let i_h = h `Map.sel` i in
let i_h = Heap.free_mm i_h (as_ref r) in
let h = Ma... | val free (#a: Type0) (#rel: preorder a) (r: mreference a rel {is_mm r}) (m: mem{m `contains` r})
: Tot mem
let free (#a: Type0) (#rel: preorder a) (r: mreference a rel {is_mm r}) (m: mem{m `contains` r})
: Tot mem = | false | null | false | let h, rid_ctr, tip = get_hmap m, get_rid_ctr m, get_tip m in
lemma_is_wf_ctr_and_tip_elim m;
let i = frameOf r in
let i_h = h `Map.sel` i in
let i_h = Heap.free_mm i_h (as_ref r) in
let h = Map.upd h i i_h in
lemma_is_wf_ctr_and_tip_intro h rid_ctr tip;
mk_mem rid_ctr h tip | {
"checked_file": "FStar.Monotonic.HyperStack.fsti.checked",
"dependencies": [
"prims.fst.checked",
"FStar.Set.fsti.checked",
"FStar.Preorder.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Monotonic.HyperHeap.fsti.checked",
"FStar.Monotonic.H... | [
"total"
] | [
"FStar.Preorder.preorder",
"FStar.Monotonic.HyperStack.mreference",
"Prims.b2t",
"FStar.Monotonic.HyperStack.is_mm",
"FStar.Monotonic.HyperStack.mem",
"FStar.Monotonic.HyperStack.contains",
"FStar.Map.t",
"FStar.Monotonic.HyperHeap.rid",
"FStar.Monotonic.Heap.heap",
"Prims.int",
"FStar.Monotonic... | [] | (*
Copyright 2008-2014 Aseem Rastogi, and 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 app... | false | false | FStar.Monotonic.HyperStack.fsti | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | null | val free (#a: Type0) (#rel: preorder a) (r: mreference a rel {is_mm r}) (m: mem{m `contains` r})
: Tot mem | [] | FStar.Monotonic.HyperStack.free | {
"file_name": "ulib/FStar.Monotonic.HyperStack.fsti",
"git_rev": "f4cbb7a38d67eeb13fbdb2f4fb8a44a65cbcdc1f",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} |
r: FStar.Monotonic.HyperStack.mreference a rel {FStar.Monotonic.HyperStack.is_mm r} ->
m: FStar.Monotonic.HyperStack.mem{FStar.Monotonic.HyperStack.contains m r}
-> FStar.Monotonic.HyperStack.mem | {
"end_col": 24,
"end_line": 325,
"start_col": 3,
"start_line": 318
} |
Prims.Tot | val regions_of_some_refs (rs: some_refs) : Tot (Set.set rid) | [
{
"abbrev": true,
"full_module": "FStar.Map",
"short_module": "Map"
},
{
"abbrev": false,
"full_module": "FStar.Preorder",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Monotonic.HyperHeap",
"short_module": null
},
{
"abbrev": true,
"full_mo... | false | let rec regions_of_some_refs (rs:some_refs) :Tot (Set.set rid) =
match rs with
| [] -> Set.empty
| (Ref r)::tl -> Set.union (Set.singleton (frameOf r)) (regions_of_some_refs tl) | val regions_of_some_refs (rs: some_refs) : Tot (Set.set rid)
let rec regions_of_some_refs (rs: some_refs) : Tot (Set.set rid) = | false | null | false | match rs with
| [] -> Set.empty
| Ref r :: tl -> Set.union (Set.singleton (frameOf r)) (regions_of_some_refs tl) | {
"checked_file": "FStar.Monotonic.HyperStack.fsti.checked",
"dependencies": [
"prims.fst.checked",
"FStar.Set.fsti.checked",
"FStar.Preorder.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Monotonic.HyperHeap.fsti.checked",
"FStar.Monotonic.H... | [
"total"
] | [
"FStar.Monotonic.HyperStack.some_refs",
"FStar.Set.empty",
"FStar.Monotonic.HyperHeap.rid",
"FStar.Preorder.preorder",
"FStar.Monotonic.HyperStack.mreference",
"Prims.list",
"FStar.Monotonic.HyperStack.some_ref",
"FStar.Set.union",
"FStar.Set.singleton",
"FStar.Monotonic.HyperStack.frameOf",
"FS... | [] | (*
Copyright 2008-2014 Aseem Rastogi, and 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 app... | false | true | FStar.Monotonic.HyperStack.fsti | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | null | val regions_of_some_refs (rs: some_refs) : Tot (Set.set rid) | [
"recursion"
] | FStar.Monotonic.HyperStack.regions_of_some_refs | {
"file_name": "ulib/FStar.Monotonic.HyperStack.fsti",
"git_rev": "f4cbb7a38d67eeb13fbdb2f4fb8a44a65cbcdc1f",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | rs: FStar.Monotonic.HyperStack.some_refs -> FStar.Set.set FStar.Monotonic.HyperHeap.rid | {
"end_col": 82,
"end_line": 447,
"start_col": 2,
"start_line": 445
} |
Prims.Tot | val alloc
(#a: Type0)
(rel: preorder a)
(id: rid)
(init: a)
(mm: bool)
(m: mem{(get_hmap m) `Map.contains` id})
: Tot
(p:
(mreference a rel * mem)
{ let r, h = Heap.alloc rel ((get_hmap m) `Map.sel` id) init mm in
as_ref (fst p) == r /\ get_hmap (snd p... | [
{
"abbrev": true,
"full_module": "FStar.Map",
"short_module": "Map"
},
{
"abbrev": false,
"full_module": "FStar.Preorder",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Monotonic.HyperHeap",
"short_module": null
},
{
"abbrev": true,
"full_mo... | false | let alloc (#a:Type0) (rel:preorder a) (id:rid) (init:a) (mm:bool) (m:mem{get_hmap m `Map.contains` id})
:Tot (p:(mreference a rel * mem){let (r, h) = Heap.alloc rel (get_hmap m `Map.sel` id) init mm in
as_ref (fst p) == r /\
get_hmap (snd p) == Map... | val alloc
(#a: Type0)
(rel: preorder a)
(id: rid)
(init: a)
(mm: bool)
(m: mem{(get_hmap m) `Map.contains` id})
: Tot
(p:
(mreference a rel * mem)
{ let r, h = Heap.alloc rel ((get_hmap m) `Map.sel` id) init mm in
as_ref (fst p) == r /\ get_hmap (snd p... | false | null | false | let h, rid_ctr, tip = get_hmap m, get_rid_ctr m, get_tip m in
lemma_is_wf_ctr_and_tip_elim m;
let r, id_h = Heap.alloc rel (Map.sel h id) init mm in
let h = Map.upd h id id_h in
lemma_is_wf_ctr_and_tip_intro h rid_ctr tip;
(mk_mreference id r), mk_mem rid_ctr h tip | {
"checked_file": "FStar.Monotonic.HyperStack.fsti.checked",
"dependencies": [
"prims.fst.checked",
"FStar.Set.fsti.checked",
"FStar.Preorder.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Monotonic.HyperHeap.fsti.checked",
"FStar.Monotonic.H... | [
"total"
] | [
"FStar.Preorder.preorder",
"FStar.Monotonic.HyperHeap.rid",
"Prims.bool",
"FStar.Monotonic.HyperStack.mem",
"Prims.b2t",
"FStar.Map.contains",
"FStar.Monotonic.Heap.heap",
"FStar.Monotonic.HyperStack.get_hmap",
"FStar.Map.t",
"Prims.int",
"FStar.Monotonic.Heap.mref",
"FStar.Pervasives.Native.M... | [] | (*
Copyright 2008-2014 Aseem Rastogi, and 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 app... | false | false | FStar.Monotonic.HyperStack.fsti | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | null | val alloc
(#a: Type0)
(rel: preorder a)
(id: rid)
(init: a)
(mm: bool)
(m: mem{(get_hmap m) `Map.contains` id})
: Tot
(p:
(mreference a rel * mem)
{ let r, h = Heap.alloc rel ((get_hmap m) `Map.sel` id) init mm in
as_ref (fst p) == r /\ get_hmap (snd p... | [] | FStar.Monotonic.HyperStack.alloc | {
"file_name": "ulib/FStar.Monotonic.HyperStack.fsti",
"git_rev": "f4cbb7a38d67eeb13fbdb2f4fb8a44a65cbcdc1f",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} |
rel: FStar.Preorder.preorder a ->
id: FStar.Monotonic.HyperHeap.rid ->
init: a ->
mm: Prims.bool ->
m: FStar.Monotonic.HyperStack.mem{FStar.Map.contains (FStar.Monotonic.HyperStack.get_hmap m) id}
-> p:
(FStar.Monotonic.HyperStack.mreference a rel * FStar.Monotonic.HyperStack.mem)
{ let... | {
"end_col": 46,
"end_line": 314,
"start_col": 3,
"start_line": 309
} |
Prims.Tot | val new_freeable_heap_region
(m: mem)
(parent: rid{is_eternal_region_hs parent /\ (get_hmap m) `Map.contains` parent})
: t: (rid * mem){fresh_region (fst t) m (snd t) /\ rid_freeable (fst t)} | [
{
"abbrev": true,
"full_module": "FStar.Map",
"short_module": "Map"
},
{
"abbrev": false,
"full_module": "FStar.Preorder",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Monotonic.HyperHeap",
"short_module": null
},
{
"abbrev": true,
"full_mo... | false | let new_freeable_heap_region
(m:mem)
(parent:rid{is_eternal_region_hs parent /\ get_hmap m `Map.contains` parent})
: t:(rid * mem){fresh_region (fst t) m (snd t) /\ rid_freeable (fst t)}
= let h, rid_ctr, tip = get_hmap m, get_rid_ctr m, get_tip m in
lemma_is_wf_ctr_and_tip_elim m;
let new_rid = extend_monoch... | val new_freeable_heap_region
(m: mem)
(parent: rid{is_eternal_region_hs parent /\ (get_hmap m) `Map.contains` parent})
: t: (rid * mem){fresh_region (fst t) m (snd t) /\ rid_freeable (fst t)}
let new_freeable_heap_region
(m: mem)
(parent: rid{is_eternal_region_hs parent /\ (get_hmap m) `Map.... | false | null | false | let h, rid_ctr, tip = get_hmap m, get_rid_ctr m, get_tip m in
lemma_is_wf_ctr_and_tip_elim m;
let new_rid = extend_monochrome_freeable parent rid_ctr true in
let h = Map.upd h new_rid Heap.emp in
lemma_is_wf_ctr_and_tip_intro h (rid_ctr + 1) tip;
new_rid, mk_mem (rid_ctr + 1) h tip | {
"checked_file": "FStar.Monotonic.HyperStack.fsti.checked",
"dependencies": [
"prims.fst.checked",
"FStar.Set.fsti.checked",
"FStar.Preorder.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Monotonic.HyperHeap.fsti.checked",
"FStar.Monotonic.H... | [
"total"
] | [
"FStar.Monotonic.HyperStack.mem",
"FStar.Monotonic.HyperHeap.rid",
"Prims.l_and",
"Prims.b2t",
"FStar.Monotonic.HyperStack.is_eternal_region_hs",
"FStar.Map.contains",
"FStar.Monotonic.Heap.heap",
"FStar.Monotonic.HyperStack.get_hmap",
"FStar.Map.t",
"Prims.int",
"FStar.Pervasives.Native.Mktuple... | [] | (*
Copyright 2008-2014 Aseem Rastogi, and 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 app... | false | false | FStar.Monotonic.HyperStack.fsti | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | null | val new_freeable_heap_region
(m: mem)
(parent: rid{is_eternal_region_hs parent /\ (get_hmap m) `Map.contains` parent})
: t: (rid * mem){fresh_region (fst t) m (snd t) /\ rid_freeable (fst t)} | [] | FStar.Monotonic.HyperStack.new_freeable_heap_region | {
"file_name": "ulib/FStar.Monotonic.HyperStack.fsti",
"git_rev": "f4cbb7a38d67eeb13fbdb2f4fb8a44a65cbcdc1f",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} |
m: FStar.Monotonic.HyperStack.mem ->
parent:
FStar.Monotonic.HyperHeap.rid
{ FStar.Monotonic.HyperStack.is_eternal_region_hs parent /\
FStar.Map.contains (FStar.Monotonic.HyperStack.get_hmap m) parent }
-> t:
(FStar.Monotonic.HyperHeap.rid * FStar.Monotonic.HyperStack.mem)
{... | {
"end_col": 37,
"end_line": 378,
"start_col": 1,
"start_line": 373
} |
Prims.Tot | val hs_push_frame (m: mem) : Tot (m': mem{fresh_frame m m'}) | [
{
"abbrev": true,
"full_module": "FStar.Map",
"short_module": "Map"
},
{
"abbrev": false,
"full_module": "FStar.Preorder",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Monotonic.HyperHeap",
"short_module": null
},
{
"abbrev": true,
"full_mo... | false | let hs_push_frame (m:mem) :Tot (m':mem{fresh_frame m m'})
= let h, rid_ctr, tip = get_hmap m, get_rid_ctr m, get_tip m in
lemma_is_wf_ctr_and_tip_elim m;
let new_tip_rid = extend tip rid_ctr 1 in
let h = Map.upd h new_tip_rid Heap.emp in
assert (forall (s:rid). (new_tip_rid `is_above` s /\ s `is_in` h... | val hs_push_frame (m: mem) : Tot (m': mem{fresh_frame m m'})
let hs_push_frame (m: mem) : Tot (m': mem{fresh_frame m m'}) = | false | null | false | let h, rid_ctr, tip = get_hmap m, get_rid_ctr m, get_tip m in
lemma_is_wf_ctr_and_tip_elim m;
let new_tip_rid = extend tip rid_ctr 1 in
let h = Map.upd h new_tip_rid Heap.emp in
assert (forall (s: rid). (new_tip_rid `is_above` s /\ s `is_in` h) ==> s = new_tip_rid);
lemma_is_wf_ctr_and_tip_intro h (rid_ctr + 1) new_tip... | {
"checked_file": "FStar.Monotonic.HyperStack.fsti.checked",
"dependencies": [
"prims.fst.checked",
"FStar.Set.fsti.checked",
"FStar.Preorder.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Monotonic.HyperHeap.fsti.checked",
"FStar.Monotonic.H... | [
"total"
] | [
"FStar.Monotonic.HyperStack.mem",
"FStar.Map.t",
"FStar.Monotonic.HyperHeap.rid",
"FStar.Monotonic.Heap.heap",
"Prims.int",
"FStar.Monotonic.HyperStack.mk_mem",
"Prims.op_Addition",
"Prims.unit",
"FStar.Monotonic.HyperStack.lemma_is_wf_ctr_and_tip_intro",
"Prims._assert",
"Prims.l_Forall",
"Pr... | [] | (*
Copyright 2008-2014 Aseem Rastogi, and 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 app... | false | false | FStar.Monotonic.HyperStack.fsti | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | null | val hs_push_frame (m: mem) : Tot (m': mem{fresh_frame m m'}) | [] | FStar.Monotonic.HyperStack.hs_push_frame | {
"file_name": "ulib/FStar.Monotonic.HyperStack.fsti",
"git_rev": "f4cbb7a38d67eeb13fbdb2f4fb8a44a65cbcdc1f",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | m: FStar.Monotonic.HyperStack.mem
-> m': FStar.Monotonic.HyperStack.mem{FStar.Monotonic.HyperStack.fresh_frame m m'} | {
"end_col": 38,
"end_line": 354,
"start_col": 3,
"start_line": 348
} |
Prims.GTot | val refs_in_region (r: rid) (rs: some_refs) : GTot (Set.set nat) | [
{
"abbrev": true,
"full_module": "FStar.Map",
"short_module": "Map"
},
{
"abbrev": false,
"full_module": "FStar.Preorder",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Monotonic.HyperHeap",
"short_module": null
},
{
"abbrev": true,
"full_mo... | false | let rec refs_in_region (r:rid) (rs:some_refs) :GTot (Set.set nat) =
match rs with
| [] -> Set.empty
| (Ref x)::tl ->
Set.union (if frameOf x = r then Set.singleton (as_addr x) else Set.empty)
(refs_in_region r tl) | val refs_in_region (r: rid) (rs: some_refs) : GTot (Set.set nat)
let rec refs_in_region (r: rid) (rs: some_refs) : GTot (Set.set nat) = | false | null | false | match rs with
| [] -> Set.empty
| Ref x :: tl ->
Set.union (if frameOf x = r then Set.singleton (as_addr x) else Set.empty) (refs_in_region r tl) | {
"checked_file": "FStar.Monotonic.HyperStack.fsti.checked",
"dependencies": [
"prims.fst.checked",
"FStar.Set.fsti.checked",
"FStar.Preorder.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Monotonic.HyperHeap.fsti.checked",
"FStar.Monotonic.H... | [
"sometrivial"
] | [
"FStar.Monotonic.HyperHeap.rid",
"FStar.Monotonic.HyperStack.some_refs",
"FStar.Set.empty",
"Prims.nat",
"FStar.Preorder.preorder",
"FStar.Monotonic.HyperStack.mreference",
"Prims.list",
"FStar.Monotonic.HyperStack.some_ref",
"FStar.Set.union",
"Prims.op_Equality",
"FStar.Monotonic.HyperStack.fr... | [] | (*
Copyright 2008-2014 Aseem Rastogi, and 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 app... | false | false | FStar.Monotonic.HyperStack.fsti | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | null | val refs_in_region (r: rid) (rs: some_refs) : GTot (Set.set nat) | [
"recursion"
] | FStar.Monotonic.HyperStack.refs_in_region | {
"file_name": "ulib/FStar.Monotonic.HyperStack.fsti",
"git_rev": "f4cbb7a38d67eeb13fbdb2f4fb8a44a65cbcdc1f",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | r: FStar.Monotonic.HyperHeap.rid -> rs: FStar.Monotonic.HyperStack.some_refs
-> Prims.GTot (FStar.Set.set Prims.nat) | {
"end_col": 35,
"end_line": 455,
"start_col": 2,
"start_line": 451
} |
Prims.Tot | val new_eternal_region
(m: mem)
(parent: rid{is_eternal_region_hs parent /\ (get_hmap m) `Map.contains` parent})
(c: option int {None? c \/ is_heap_color (Some?.v c)})
: Tot (t: (rid * mem){fresh_region (fst t) m (snd t)}) | [
{
"abbrev": true,
"full_module": "FStar.Map",
"short_module": "Map"
},
{
"abbrev": false,
"full_module": "FStar.Preorder",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Monotonic.HyperHeap",
"short_module": null
},
{
"abbrev": true,
"full_mo... | false | let new_eternal_region (m:mem) (parent:rid{is_eternal_region_hs parent /\ get_hmap m `Map.contains` parent})
(c:option int{None? c \/ is_heap_color (Some?.v c)})
:Tot (t:(rid * mem){fresh_region (fst t) m (snd t)})
= let h, rid_ctr, tip = get_hmap m, get_rid_ctr m, get_tip m in
lemma_is_w... | val new_eternal_region
(m: mem)
(parent: rid{is_eternal_region_hs parent /\ (get_hmap m) `Map.contains` parent})
(c: option int {None? c \/ is_heap_color (Some?.v c)})
: Tot (t: (rid * mem){fresh_region (fst t) m (snd t)})
let new_eternal_region
(m: mem)
(parent: rid{is_eternal_region_... | false | null | false | let h, rid_ctr, tip = get_hmap m, get_rid_ctr m, get_tip m in
lemma_is_wf_ctr_and_tip_elim m;
let new_rid =
if None? c then extend_monochrome parent rid_ctr else extend parent rid_ctr (Some?.v c)
in
let h = Map.upd h new_rid Heap.emp in
lemma_is_wf_ctr_and_tip_intro h (rid_ctr + 1) tip;
new_rid, mk_mem (rid_ctr + 1) ... | {
"checked_file": "FStar.Monotonic.HyperStack.fsti.checked",
"dependencies": [
"prims.fst.checked",
"FStar.Set.fsti.checked",
"FStar.Preorder.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Monotonic.HyperHeap.fsti.checked",
"FStar.Monotonic.H... | [
"total"
] | [
"FStar.Monotonic.HyperStack.mem",
"FStar.Monotonic.HyperHeap.rid",
"Prims.l_and",
"Prims.b2t",
"FStar.Monotonic.HyperStack.is_eternal_region_hs",
"FStar.Map.contains",
"FStar.Monotonic.Heap.heap",
"FStar.Monotonic.HyperStack.get_hmap",
"FStar.Pervasives.Native.option",
"Prims.int",
"Prims.l_or",... | [] | (*
Copyright 2008-2014 Aseem Rastogi, and 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 app... | false | false | FStar.Monotonic.HyperStack.fsti | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | null | val new_eternal_region
(m: mem)
(parent: rid{is_eternal_region_hs parent /\ (get_hmap m) `Map.contains` parent})
(c: option int {None? c \/ is_heap_color (Some?.v c)})
: Tot (t: (rid * mem){fresh_region (fst t) m (snd t)}) | [] | FStar.Monotonic.HyperStack.new_eternal_region | {
"file_name": "ulib/FStar.Monotonic.HyperStack.fsti",
"git_rev": "f4cbb7a38d67eeb13fbdb2f4fb8a44a65cbcdc1f",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} |
m: FStar.Monotonic.HyperStack.mem ->
parent:
FStar.Monotonic.HyperHeap.rid
{ FStar.Monotonic.HyperStack.is_eternal_region_hs parent /\
FStar.Map.contains (FStar.Monotonic.HyperStack.get_hmap m) parent } ->
c:
FStar.Pervasives.Native.option Prims.int
{None? c \/ FStar.M... | {
"end_col": 39,
"end_line": 367,
"start_col": 3,
"start_line": 359
} |
Prims.Tot | val upd_tot (#a: Type) (#rel: preorder a) (m: mem) (r: mreference a rel {m `contains` r}) (v: a)
: Tot mem | [
{
"abbrev": true,
"full_module": "FStar.Map",
"short_module": "Map"
},
{
"abbrev": false,
"full_module": "FStar.Preorder",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Monotonic.HyperHeap",
"short_module": null
},
{
"abbrev": true,
"full_mo... | false | let upd_tot (#a:Type) (#rel:preorder a) (m:mem) (r:mreference a rel{m `contains` r}) (v:a)
:Tot mem
= let h, rid_ctr, tip = get_hmap m, get_rid_ctr m, get_tip m in
lemma_is_wf_ctr_and_tip_elim m;
let i = frameOf r in
let i_h = h `Map.sel` i in
let i_h = Heap.upd_tot i_h (as_ref r) v in
let h = M... | val upd_tot (#a: Type) (#rel: preorder a) (m: mem) (r: mreference a rel {m `contains` r}) (v: a)
: Tot mem
let upd_tot (#a: Type) (#rel: preorder a) (m: mem) (r: mreference a rel {m `contains` r}) (v: a)
: Tot mem = | false | null | false | let h, rid_ctr, tip = get_hmap m, get_rid_ctr m, get_tip m in
lemma_is_wf_ctr_and_tip_elim m;
let i = frameOf r in
let i_h = h `Map.sel` i in
let i_h = Heap.upd_tot i_h (as_ref r) v in
let h = Map.upd h i i_h in
lemma_is_wf_ctr_and_tip_intro h rid_ctr tip;
mk_mem rid_ctr h tip | {
"checked_file": "FStar.Monotonic.HyperStack.fsti.checked",
"dependencies": [
"prims.fst.checked",
"FStar.Set.fsti.checked",
"FStar.Preorder.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Monotonic.HyperHeap.fsti.checked",
"FStar.Monotonic.H... | [
"total"
] | [
"FStar.Preorder.preorder",
"FStar.Monotonic.HyperStack.mem",
"FStar.Monotonic.HyperStack.mreference",
"FStar.Monotonic.HyperStack.contains",
"FStar.Map.t",
"FStar.Monotonic.HyperHeap.rid",
"FStar.Monotonic.Heap.heap",
"Prims.int",
"FStar.Monotonic.HyperStack.mk_mem",
"Prims.unit",
"FStar.Monoton... | [] | (*
Copyright 2008-2014 Aseem Rastogi, and 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 app... | false | false | FStar.Monotonic.HyperStack.fsti | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | null | val upd_tot (#a: Type) (#rel: preorder a) (m: mem) (r: mreference a rel {m `contains` r}) (v: a)
: Tot mem | [] | FStar.Monotonic.HyperStack.upd_tot | {
"file_name": "ulib/FStar.Monotonic.HyperStack.fsti",
"git_rev": "f4cbb7a38d67eeb13fbdb2f4fb8a44a65cbcdc1f",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} |
m: FStar.Monotonic.HyperStack.mem ->
r: FStar.Monotonic.HyperStack.mreference a rel {FStar.Monotonic.HyperStack.contains m r} ->
v: a
-> FStar.Monotonic.HyperStack.mem | {
"end_col": 24,
"end_line": 336,
"start_col": 3,
"start_line": 329
} |
FStar.HyperStack.ST.Stack | val has_adx_bmi2: Prims.unit
-> Stack bool
(fun _ -> True)
(ensures
(fun h0 b h1 ->
B.(modifies B.loc_none h0 h1) /\
(b ==> Vale.X64.CPU_Features_s.(adx_enabled /\ bmi2_enabled)))) | [
{
"abbrev": true,
"full_module": "LowStar.Buffer",
"short_module": "B"
},
{
"abbrev": false,
"full_module": "Lib.IntTypes",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.Buffer",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar... | false | let has_adx_bmi2 (): Stack bool
(fun _ -> True)
(ensures (fun h0 b h1 ->
B.(modifies B.loc_none h0 h1) /\
(b ==> Vale.X64.CPU_Features_s.(adx_enabled /\ bmi2_enabled))))
=
let has_bmi2 = EverCrypt.AutoConfig2.has_bmi2 () in
let has_adx = EverCrypt.AutoConfig2.has_adx () in
has_bmi2 && has_adx | val has_adx_bmi2: Prims.unit
-> Stack bool
(fun _ -> True)
(ensures
(fun h0 b h1 ->
B.(modifies B.loc_none h0 h1) /\
(b ==> Vale.X64.CPU_Features_s.(adx_enabled /\ bmi2_enabled))))
let has_adx_bmi2 ()
: Stack bool
(fun _ -> True)
(ensures
(fun h0 b h... | true | null | false | let has_bmi2 = EverCrypt.AutoConfig2.has_bmi2 () in
let has_adx = EverCrypt.AutoConfig2.has_adx () in
has_bmi2 && has_adx | {
"checked_file": "EverCrypt.Curve25519.fst.checked",
"dependencies": [
"Vale.X64.CPU_Features_s.fst.checked",
"prims.fst.checked",
"LowStar.Buffer.fst.checked",
"Hacl.Curve25519_64.fsti.checked",
"Hacl.Curve25519_51.fsti.checked",
"FStar.Pervasives.fsti.checked",
"EverCrypt.TargetConfig... | [] | [
"Prims.unit",
"Prims.op_AmpAmp",
"Prims.bool",
"EverCrypt.AutoConfig2.has_adx",
"EverCrypt.AutoConfig2.has_bmi2",
"FStar.Monotonic.HyperStack.mem",
"Prims.l_True",
"Prims.l_and",
"LowStar.Monotonic.Buffer.modifies",
"LowStar.Monotonic.Buffer.loc_none",
"Prims.l_imp",
"Prims.b2t",
"Vale.X64.C... | [] | module EverCrypt.Curve25519
module B = LowStar.Buffer
[@ CInline ]
let has_adx_bmi2 (): Stack bool
(fun _ -> True)
(ensures (fun h0 b h1 ->
B.(modifies B.loc_none h0 h1) /\ | false | false | EverCrypt.Curve25519.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 has_adx_bmi2: Prims.unit
-> Stack bool
(fun _ -> True)
(ensures
(fun h0 b h1 ->
B.(modifies B.loc_none h0 h1) /\
(b ==> Vale.X64.CPU_Features_s.(adx_enabled /\ bmi2_enabled)))) | [] | EverCrypt.Curve25519.has_adx_bmi2 | {
"file_name": "providers/evercrypt/fst/EverCrypt.Curve25519.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | _: Prims.unit -> FStar.HyperStack.ST.Stack Prims.bool | {
"end_col": 21,
"end_line": 14,
"start_col": 1,
"start_line": 11
} |
FStar.HyperStack.ST.Stack | val secret_to_public:
pub:lbuffer uint8 32ul
-> priv:lbuffer uint8 32ul
-> Stack unit
(requires fun h0 ->
live h0 pub /\ live h0 priv /\ disjoint pub priv)
(ensures fun h0 _ h1 -> modifies (loc pub) h0 h1 /\
as_seq h1 pub == Spec.Curve25519.secret_to_public (as_seq h0 priv)) | [
{
"abbrev": true,
"full_module": "LowStar.Buffer",
"short_module": "B"
},
{
"abbrev": false,
"full_module": "Lib.IntTypes",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.Buffer",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar... | false | let secret_to_public pub priv =
if EverCrypt.TargetConfig.hacl_can_compile_vale then
let has_bmi2 = EverCrypt.AutoConfig2.has_bmi2 () in
let has_adx = EverCrypt.AutoConfig2.has_adx () in
if (has_bmi2 && has_adx) then
Hacl.Curve25519_64.secret_to_public pub priv
else
Hacl.Curve25519_51.secr... | val secret_to_public:
pub:lbuffer uint8 32ul
-> priv:lbuffer uint8 32ul
-> Stack unit
(requires fun h0 ->
live h0 pub /\ live h0 priv /\ disjoint pub priv)
(ensures fun h0 _ h1 -> modifies (loc pub) h0 h1 /\
as_seq h1 pub == Spec.Curve25519.secret_to_public (as_seq h0 priv))
let secret_to_p... | true | null | false | if EverCrypt.TargetConfig.hacl_can_compile_vale
then
let has_bmi2 = EverCrypt.AutoConfig2.has_bmi2 () in
let has_adx = EverCrypt.AutoConfig2.has_adx () in
if (has_bmi2 && has_adx)
then Hacl.Curve25519_64.secret_to_public pub priv
else Hacl.Curve25519_51.secret_to_public pub priv
else Hacl.Curve25519_51.secret... | {
"checked_file": "EverCrypt.Curve25519.fst.checked",
"dependencies": [
"Vale.X64.CPU_Features_s.fst.checked",
"prims.fst.checked",
"LowStar.Buffer.fst.checked",
"Hacl.Curve25519_64.fsti.checked",
"Hacl.Curve25519_51.fsti.checked",
"FStar.Pervasives.fsti.checked",
"EverCrypt.TargetConfig... | [] | [
"Lib.Buffer.lbuffer",
"Lib.IntTypes.uint8",
"FStar.UInt32.__uint_to_t",
"EverCrypt.TargetConfig.hacl_can_compile_vale",
"Prims.op_AmpAmp",
"Hacl.Curve25519_64.secret_to_public",
"Prims.unit",
"Prims.bool",
"Hacl.Curve25519_51.secret_to_public",
"EverCrypt.AutoConfig2.has_adx",
"EverCrypt.AutoCon... | [] | module EverCrypt.Curve25519
module B = LowStar.Buffer
[@ CInline ]
let has_adx_bmi2 (): Stack bool
(fun _ -> True)
(ensures (fun h0 b h1 ->
B.(modifies B.loc_none h0 h1) /\
(b ==> Vale.X64.CPU_Features_s.(adx_enabled /\ bmi2_enabled))))
=
let has_bmi2 = EverCrypt.AutoConfig2.has_bmi2 () in
let has_adx... | false | false | EverCrypt.Curve25519.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | null | val secret_to_public:
pub:lbuffer uint8 32ul
-> priv:lbuffer uint8 32ul
-> Stack unit
(requires fun h0 ->
live h0 pub /\ live h0 priv /\ disjoint pub priv)
(ensures fun h0 _ h1 -> modifies (loc pub) h0 h1 /\
as_seq h1 pub == Spec.Curve25519.secret_to_public (as_seq h0 priv)) | [] | EverCrypt.Curve25519.secret_to_public | {
"file_name": "providers/evercrypt/fst/EverCrypt.Curve25519.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | pub: Lib.Buffer.lbuffer Lib.IntTypes.uint8 32ul -> priv: Lib.Buffer.lbuffer Lib.IntTypes.uint8 32ul
-> FStar.HyperStack.ST.Stack Prims.unit | {
"end_col": 48,
"end_line": 26,
"start_col": 2,
"start_line": 18
} |
FStar.HyperStack.ST.Stack | val scalarmult:
shared:lbuffer uint8 32ul
-> my_priv:lbuffer uint8 32ul
-> their_pub:lbuffer uint8 32ul
-> Stack unit
(requires fun h0 ->
live h0 shared /\ live h0 my_priv /\ live h0 their_pub /\
disjoint shared my_priv /\ disjoint shared their_pub)
(ensures fun h0 _ h1 -> modifies (loc s... | [
{
"abbrev": true,
"full_module": "LowStar.Buffer",
"short_module": "B"
},
{
"abbrev": false,
"full_module": "Lib.IntTypes",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.Buffer",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar... | false | let scalarmult shared my_priv their_pub =
if EverCrypt.TargetConfig.hacl_can_compile_vale then
let has_bmi2 = EverCrypt.AutoConfig2.has_bmi2 () in
let has_adx = EverCrypt.AutoConfig2.has_adx () in
if (has_bmi2 && has_adx) then
Hacl.Curve25519_64.scalarmult shared my_priv their_pub
else
Hac... | val scalarmult:
shared:lbuffer uint8 32ul
-> my_priv:lbuffer uint8 32ul
-> their_pub:lbuffer uint8 32ul
-> Stack unit
(requires fun h0 ->
live h0 shared /\ live h0 my_priv /\ live h0 their_pub /\
disjoint shared my_priv /\ disjoint shared their_pub)
(ensures fun h0 _ h1 -> modifies (loc s... | true | null | false | if EverCrypt.TargetConfig.hacl_can_compile_vale
then
let has_bmi2 = EverCrypt.AutoConfig2.has_bmi2 () in
let has_adx = EverCrypt.AutoConfig2.has_adx () in
if (has_bmi2 && has_adx)
then Hacl.Curve25519_64.scalarmult shared my_priv their_pub
else Hacl.Curve25519_51.scalarmult shared my_priv their_pub
else Hacl.... | {
"checked_file": "EverCrypt.Curve25519.fst.checked",
"dependencies": [
"Vale.X64.CPU_Features_s.fst.checked",
"prims.fst.checked",
"LowStar.Buffer.fst.checked",
"Hacl.Curve25519_64.fsti.checked",
"Hacl.Curve25519_51.fsti.checked",
"FStar.Pervasives.fsti.checked",
"EverCrypt.TargetConfig... | [] | [
"Lib.Buffer.lbuffer",
"Lib.IntTypes.uint8",
"FStar.UInt32.__uint_to_t",
"EverCrypt.TargetConfig.hacl_can_compile_vale",
"Prims.op_AmpAmp",
"Hacl.Curve25519_64.scalarmult",
"Prims.unit",
"Prims.bool",
"Hacl.Curve25519_51.scalarmult",
"EverCrypt.AutoConfig2.has_adx",
"EverCrypt.AutoConfig2.has_bmi... | [] | module EverCrypt.Curve25519
module B = LowStar.Buffer
[@ CInline ]
let has_adx_bmi2 (): Stack bool
(fun _ -> True)
(ensures (fun h0 b h1 ->
B.(modifies B.loc_none h0 h1) /\
(b ==> Vale.X64.CPU_Features_s.(adx_enabled /\ bmi2_enabled))))
=
let has_bmi2 = EverCrypt.AutoConfig2.has_bmi2 () in
let has_adx... | false | false | EverCrypt.Curve25519.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | null | val scalarmult:
shared:lbuffer uint8 32ul
-> my_priv:lbuffer uint8 32ul
-> their_pub:lbuffer uint8 32ul
-> Stack unit
(requires fun h0 ->
live h0 shared /\ live h0 my_priv /\ live h0 their_pub /\
disjoint shared my_priv /\ disjoint shared their_pub)
(ensures fun h0 _ h1 -> modifies (loc s... | [] | EverCrypt.Curve25519.scalarmult | {
"file_name": "providers/evercrypt/fst/EverCrypt.Curve25519.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} |
shared: Lib.Buffer.lbuffer Lib.IntTypes.uint8 32ul ->
my_priv: Lib.Buffer.lbuffer Lib.IntTypes.uint8 32ul ->
their_pub: Lib.Buffer.lbuffer Lib.IntTypes.uint8 32ul
-> FStar.HyperStack.ST.Stack Prims.unit | {
"end_col": 58,
"end_line": 37,
"start_col": 2,
"start_line": 29
} |
FStar.HyperStack.ST.Stack | val ecdh:
shared:lbuffer uint8 32ul
-> my_priv:lbuffer uint8 32ul
-> their_pub:lbuffer uint8 32ul
-> Stack bool
(requires fun h0 ->
live h0 shared /\ live h0 my_priv /\ live h0 their_pub /\
disjoint shared my_priv /\ disjoint shared their_pub)
(ensures fun h0 r h1 -> modifies (loc shared)... | [
{
"abbrev": true,
"full_module": "LowStar.Buffer",
"short_module": "B"
},
{
"abbrev": false,
"full_module": "Lib.IntTypes",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.Buffer",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar... | false | let ecdh shared my_priv their_pub =
if EverCrypt.TargetConfig.hacl_can_compile_vale then
let has_bmi2 = EverCrypt.AutoConfig2.has_bmi2 () in
let has_adx = EverCrypt.AutoConfig2.has_adx () in
if (has_bmi2 && has_adx) then
Hacl.Curve25519_64.ecdh shared my_priv their_pub
else
Hacl.Curve25519... | val ecdh:
shared:lbuffer uint8 32ul
-> my_priv:lbuffer uint8 32ul
-> their_pub:lbuffer uint8 32ul
-> Stack bool
(requires fun h0 ->
live h0 shared /\ live h0 my_priv /\ live h0 their_pub /\
disjoint shared my_priv /\ disjoint shared their_pub)
(ensures fun h0 r h1 -> modifies (loc shared)... | true | null | false | if EverCrypt.TargetConfig.hacl_can_compile_vale
then
let has_bmi2 = EverCrypt.AutoConfig2.has_bmi2 () in
let has_adx = EverCrypt.AutoConfig2.has_adx () in
if (has_bmi2 && has_adx)
then Hacl.Curve25519_64.ecdh shared my_priv their_pub
else Hacl.Curve25519_51.ecdh shared my_priv their_pub
else Hacl.Curve25519_5... | {
"checked_file": "EverCrypt.Curve25519.fst.checked",
"dependencies": [
"Vale.X64.CPU_Features_s.fst.checked",
"prims.fst.checked",
"LowStar.Buffer.fst.checked",
"Hacl.Curve25519_64.fsti.checked",
"Hacl.Curve25519_51.fsti.checked",
"FStar.Pervasives.fsti.checked",
"EverCrypt.TargetConfig... | [] | [
"Lib.Buffer.lbuffer",
"Lib.IntTypes.uint8",
"FStar.UInt32.__uint_to_t",
"EverCrypt.TargetConfig.hacl_can_compile_vale",
"Prims.op_AmpAmp",
"Hacl.Curve25519_64.ecdh",
"Prims.bool",
"Hacl.Curve25519_51.ecdh",
"EverCrypt.AutoConfig2.has_adx",
"EverCrypt.AutoConfig2.has_bmi2"
] | [] | module EverCrypt.Curve25519
module B = LowStar.Buffer
[@ CInline ]
let has_adx_bmi2 (): Stack bool
(fun _ -> True)
(ensures (fun h0 b h1 ->
B.(modifies B.loc_none h0 h1) /\
(b ==> Vale.X64.CPU_Features_s.(adx_enabled /\ bmi2_enabled))))
=
let has_bmi2 = EverCrypt.AutoConfig2.has_bmi2 () in
let has_adx... | false | false | EverCrypt.Curve25519.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | null | val ecdh:
shared:lbuffer uint8 32ul
-> my_priv:lbuffer uint8 32ul
-> their_pub:lbuffer uint8 32ul
-> Stack bool
(requires fun h0 ->
live h0 shared /\ live h0 my_priv /\ live h0 their_pub /\
disjoint shared my_priv /\ disjoint shared their_pub)
(ensures fun h0 r h1 -> modifies (loc shared)... | [] | EverCrypt.Curve25519.ecdh | {
"file_name": "providers/evercrypt/fst/EverCrypt.Curve25519.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} |
shared: Lib.Buffer.lbuffer Lib.IntTypes.uint8 32ul ->
my_priv: Lib.Buffer.lbuffer Lib.IntTypes.uint8 32ul ->
their_pub: Lib.Buffer.lbuffer Lib.IntTypes.uint8 32ul
-> FStar.HyperStack.ST.Stack Prims.bool | {
"end_col": 52,
"end_line": 48,
"start_col": 2,
"start_line": 40
} |
Prims.Tot | val sealBase: sealBase_st cs True | [
{
"abbrev": true,
"full_module": "Hacl.HPKE.Interface.AEAD",
"short_module": "IAEAD"
},
{
"abbrev": true,
"full_module": "Hacl.HPKE.Interface.Hash",
"short_module": "IHash"
},
{
"abbrev": true,
"full_module": "Hacl.HPKE.Interface.HKDF",
"short_module": "IHK"
},
{
... | false | let sealBase = hpke_sealBase_higher #cs True IAEAD.aead_encrypt_cp128 setupBaseS | val sealBase: sealBase_st cs True
let sealBase = | false | null | false | hpke_sealBase_higher #cs True IAEAD.aead_encrypt_cp128 setupBaseS | {
"checked_file": "Hacl.HPKE.Curve51_CP128_SHA512.fst.checked",
"dependencies": [
"prims.fst.checked",
"Hacl.Meta.HPKE.fst.checked",
"Hacl.Meta.HPKE.fst.checked",
"Hacl.HPKE.Interface.HKDF.fst.checked",
"Hacl.HPKE.Interface.Hash.fst.checked",
"Hacl.HPKE.Interface.DH.fst.checked",
"Hacl.H... | [
"total"
] | [
"Hacl.Meta.HPKE.hpke_sealBase_higher",
"Hacl.HPKE.Curve51_CP128_SHA512.cs",
"Prims.l_True",
"Hacl.HPKE.Interface.AEAD.aead_encrypt_cp128",
"Hacl.HPKE.Curve51_CP128_SHA512.setupBaseS"
] | [] | module Hacl.HPKE.Curve51_CP128_SHA512
open Hacl.Meta.HPKE
module IDH = Hacl.HPKE.Interface.DH
module IHK = Hacl.HPKE.Interface.HKDF
module IHash = Hacl.HPKE.Interface.Hash
module IAEAD = Hacl.HPKE.Interface.AEAD
friend Hacl.Meta.HPKE
#set-options "--fuel 0 --ifuel 0"
let setupBaseS = hpke_setupBaseS_higher #cs Tru... | false | true | Hacl.HPKE.Curve51_CP128_SHA512.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 0,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | null | val sealBase: sealBase_st cs True | [] | Hacl.HPKE.Curve51_CP128_SHA512.sealBase | {
"file_name": "code/hpke/Hacl.HPKE.Curve51_CP128_SHA512.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | Hacl.Impl.HPKE.sealBase_st Hacl.HPKE.Curve51_CP128_SHA512.cs Prims.l_True | {
"end_col": 80,
"end_line": 18,
"start_col": 15,
"start_line": 18
} |
Prims.Tot | val openBase: openBase_st cs True | [
{
"abbrev": true,
"full_module": "Hacl.HPKE.Interface.AEAD",
"short_module": "IAEAD"
},
{
"abbrev": true,
"full_module": "Hacl.HPKE.Interface.Hash",
"short_module": "IHash"
},
{
"abbrev": true,
"full_module": "Hacl.HPKE.Interface.HKDF",
"short_module": "IHK"
},
{
... | false | let openBase = hpke_openBase_higher #cs True IAEAD.aead_decrypt_cp128 setupBaseR | val openBase: openBase_st cs True
let openBase = | false | null | false | hpke_openBase_higher #cs True IAEAD.aead_decrypt_cp128 setupBaseR | {
"checked_file": "Hacl.HPKE.Curve51_CP128_SHA512.fst.checked",
"dependencies": [
"prims.fst.checked",
"Hacl.Meta.HPKE.fst.checked",
"Hacl.Meta.HPKE.fst.checked",
"Hacl.HPKE.Interface.HKDF.fst.checked",
"Hacl.HPKE.Interface.Hash.fst.checked",
"Hacl.HPKE.Interface.DH.fst.checked",
"Hacl.H... | [
"total"
] | [
"Hacl.Meta.HPKE.hpke_openBase_higher",
"Hacl.HPKE.Curve51_CP128_SHA512.cs",
"Prims.l_True",
"Hacl.HPKE.Interface.AEAD.aead_decrypt_cp128",
"Hacl.HPKE.Curve51_CP128_SHA512.setupBaseR"
] | [] | module Hacl.HPKE.Curve51_CP128_SHA512
open Hacl.Meta.HPKE
module IDH = Hacl.HPKE.Interface.DH
module IHK = Hacl.HPKE.Interface.HKDF
module IHash = Hacl.HPKE.Interface.Hash
module IAEAD = Hacl.HPKE.Interface.AEAD
friend Hacl.Meta.HPKE
#set-options "--fuel 0 --ifuel 0"
let setupBaseS = hpke_setupBaseS_higher #cs Tru... | false | true | Hacl.HPKE.Curve51_CP128_SHA512.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 0,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | null | val openBase: openBase_st cs True | [] | Hacl.HPKE.Curve51_CP128_SHA512.openBase | {
"file_name": "code/hpke/Hacl.HPKE.Curve51_CP128_SHA512.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | Hacl.Impl.HPKE.openBase_st Hacl.HPKE.Curve51_CP128_SHA512.cs Prims.l_True | {
"end_col": 80,
"end_line": 20,
"start_col": 15,
"start_line": 20
} |
Prims.Tot | val setupBaseS: setupBaseS_st cs True | [
{
"abbrev": true,
"full_module": "Hacl.HPKE.Interface.AEAD",
"short_module": "IAEAD"
},
{
"abbrev": true,
"full_module": "Hacl.HPKE.Interface.Hash",
"short_module": "IHash"
},
{
"abbrev": true,
"full_module": "Hacl.HPKE.Interface.HKDF",
"short_module": "IHK"
},
{
... | false | let setupBaseS = hpke_setupBaseS_higher #cs True IHK.hkdf_expand512 IHK.hkdf_extract512 IDH.secret_to_public_c51 IDH.dh_c51 IHK.hkdf_expand256 IHK.hkdf_extract256 | val setupBaseS: setupBaseS_st cs True
let setupBaseS = | false | null | false | hpke_setupBaseS_higher #cs
True
IHK.hkdf_expand512
IHK.hkdf_extract512
IDH.secret_to_public_c51
IDH.dh_c51
IHK.hkdf_expand256
IHK.hkdf_extract256 | {
"checked_file": "Hacl.HPKE.Curve51_CP128_SHA512.fst.checked",
"dependencies": [
"prims.fst.checked",
"Hacl.Meta.HPKE.fst.checked",
"Hacl.Meta.HPKE.fst.checked",
"Hacl.HPKE.Interface.HKDF.fst.checked",
"Hacl.HPKE.Interface.Hash.fst.checked",
"Hacl.HPKE.Interface.DH.fst.checked",
"Hacl.H... | [
"total"
] | [
"Hacl.Meta.HPKE.hpke_setupBaseS_higher",
"Hacl.HPKE.Curve51_CP128_SHA512.cs",
"Prims.l_True",
"Hacl.HPKE.Interface.HKDF.hkdf_expand512",
"Hacl.HPKE.Interface.HKDF.hkdf_extract512",
"Hacl.HPKE.Interface.DH.secret_to_public_c51",
"Hacl.HPKE.Interface.DH.dh_c51",
"Hacl.HPKE.Interface.HKDF.hkdf_expand256"... | [] | module Hacl.HPKE.Curve51_CP128_SHA512
open Hacl.Meta.HPKE
module IDH = Hacl.HPKE.Interface.DH
module IHK = Hacl.HPKE.Interface.HKDF
module IHash = Hacl.HPKE.Interface.Hash
module IAEAD = Hacl.HPKE.Interface.AEAD
friend Hacl.Meta.HPKE
#set-options "--fuel 0 --ifuel 0" | false | true | Hacl.HPKE.Curve51_CP128_SHA512.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 0,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | null | val setupBaseS: setupBaseS_st cs True | [] | Hacl.HPKE.Curve51_CP128_SHA512.setupBaseS | {
"file_name": "code/hpke/Hacl.HPKE.Curve51_CP128_SHA512.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | Hacl.Impl.HPKE.setupBaseS_st Hacl.HPKE.Curve51_CP128_SHA512.cs Prims.l_True | {
"end_col": 162,
"end_line": 14,
"start_col": 17,
"start_line": 14
} |
Prims.Tot | val setupBaseR: setupBaseR_st cs True | [
{
"abbrev": true,
"full_module": "Hacl.HPKE.Interface.AEAD",
"short_module": "IAEAD"
},
{
"abbrev": true,
"full_module": "Hacl.HPKE.Interface.Hash",
"short_module": "IHash"
},
{
"abbrev": true,
"full_module": "Hacl.HPKE.Interface.HKDF",
"short_module": "IHK"
},
{
... | false | let setupBaseR = hpke_setupBaseR_higher #cs True IHK.hkdf_expand512 IHK.hkdf_extract512 IDH.dh_c51 IHK.hkdf_expand256 IHK.hkdf_extract256 IDH.secret_to_public_c51 | val setupBaseR: setupBaseR_st cs True
let setupBaseR = | false | null | false | hpke_setupBaseR_higher #cs
True
IHK.hkdf_expand512
IHK.hkdf_extract512
IDH.dh_c51
IHK.hkdf_expand256
IHK.hkdf_extract256
IDH.secret_to_public_c51 | {
"checked_file": "Hacl.HPKE.Curve51_CP128_SHA512.fst.checked",
"dependencies": [
"prims.fst.checked",
"Hacl.Meta.HPKE.fst.checked",
"Hacl.Meta.HPKE.fst.checked",
"Hacl.HPKE.Interface.HKDF.fst.checked",
"Hacl.HPKE.Interface.Hash.fst.checked",
"Hacl.HPKE.Interface.DH.fst.checked",
"Hacl.H... | [
"total"
] | [
"Hacl.Meta.HPKE.hpke_setupBaseR_higher",
"Hacl.HPKE.Curve51_CP128_SHA512.cs",
"Prims.l_True",
"Hacl.HPKE.Interface.HKDF.hkdf_expand512",
"Hacl.HPKE.Interface.HKDF.hkdf_extract512",
"Hacl.HPKE.Interface.DH.dh_c51",
"Hacl.HPKE.Interface.HKDF.hkdf_expand256",
"Hacl.HPKE.Interface.HKDF.hkdf_extract256",
... | [] | module Hacl.HPKE.Curve51_CP128_SHA512
open Hacl.Meta.HPKE
module IDH = Hacl.HPKE.Interface.DH
module IHK = Hacl.HPKE.Interface.HKDF
module IHash = Hacl.HPKE.Interface.Hash
module IAEAD = Hacl.HPKE.Interface.AEAD
friend Hacl.Meta.HPKE
#set-options "--fuel 0 --ifuel 0"
let setupBaseS = hpke_setupBaseS_higher #cs Tru... | false | true | Hacl.HPKE.Curve51_CP128_SHA512.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 0,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | null | val setupBaseR: setupBaseR_st cs True | [] | Hacl.HPKE.Curve51_CP128_SHA512.setupBaseR | {
"file_name": "code/hpke/Hacl.HPKE.Curve51_CP128_SHA512.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | Hacl.Impl.HPKE.setupBaseR_st Hacl.HPKE.Curve51_CP128_SHA512.cs Prims.l_True | {
"end_col": 162,
"end_line": 16,
"start_col": 17,
"start_line": 16
} |
Prims.Tot | val modifies_stack (lo_r1 hi_r1: nat) (h h': vale_stack) : Vale.Def.Prop_s.prop0 | [
{
"abbrev": false,
"full_module": "Vale.Arch.MachineHeap",
"short_module": null
},
{
"abbrev": true,
"full_module": "Vale.PPC64LE.Semantics_s",
"short_module": "BS"
},
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
"f... | false | let modifies_stack (lo_r1 hi_r1:nat) (h h':vale_stack) : Vale.Def.Prop_s.prop0 =
forall addr . {:pattern (load_stack64 addr h') \/ (valid_src_stack64 addr h') }
valid_src_stack64 addr h /\ (addr + 8 <= lo_r1 || addr >= hi_r1) ==>
valid_src_stack64 addr h' /\
load_stack64 addr h == load_stack64 addr h' | val modifies_stack (lo_r1 hi_r1: nat) (h h': vale_stack) : Vale.Def.Prop_s.prop0
let modifies_stack (lo_r1 hi_r1: nat) (h h': vale_stack) : Vale.Def.Prop_s.prop0 = | false | null | false | forall addr. {:pattern (load_stack64 addr h')\/(valid_src_stack64 addr h')}
valid_src_stack64 addr h /\ (addr + 8 <= lo_r1 || addr >= hi_r1) ==>
valid_src_stack64 addr h' /\ load_stack64 addr h == load_stack64 addr h' | {
"checked_file": "Vale.PPC64LE.Stack_i.fsti.checked",
"dependencies": [
"Vale.PPC64LE.Memory.fsti.checked",
"Vale.PPC64LE.Machine_s.fst.checked",
"Vale.Def.Prop_s.fst.checked",
"prims.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul.fst.checked",
"FStar.Map.fsti.checked"
],
... | [
"total"
] | [
"Prims.nat",
"Vale.PPC64LE.Stack_i.vale_stack",
"Prims.l_Forall",
"Prims.int",
"Prims.l_imp",
"Prims.l_and",
"Prims.b2t",
"Vale.PPC64LE.Stack_i.valid_src_stack64",
"Prims.op_BarBar",
"Prims.op_LessThanOrEqual",
"Prims.op_Addition",
"Prims.op_GreaterThanOrEqual",
"Prims.eq2",
"Vale.PPC64LE.... | [] | module Vale.PPC64LE.Stack_i
open FStar.Mul
open Vale.PPC64LE.Machine_s
open Vale.PPC64LE.Memory
open Vale.Def.Prop_s
val vale_stack : Type u#0
val valid_src_stack64 (ptr:int) (h:vale_stack) : GTot bool
val load_stack64 (ptr:int) (h:vale_stack) : GTot nat64
val store_stack64 (ptr:int) (v:nat64) (h:vale_stack) : GTot ... | false | true | Vale.PPC64LE.Stack_i.fsti | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 1,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | null | val modifies_stack (lo_r1 hi_r1: nat) (h h': vale_stack) : Vale.Def.Prop_s.prop0 | [] | Vale.PPC64LE.Stack_i.modifies_stack | {
"file_name": "vale/code/arch/ppc64le/Vale.PPC64LE.Stack_i.fsti",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} |
lo_r1: Prims.nat ->
hi_r1: Prims.nat ->
h: Vale.PPC64LE.Stack_i.vale_stack ->
h': Vale.PPC64LE.Stack_i.vale_stack
-> Vale.Def.Prop_s.prop0 | {
"end_col": 49,
"end_line": 26,
"start_col": 2,
"start_line": 23
} |
Prims.Tot | val valid_src_stack64s (base num_slots: nat) (h: vale_stack) : Vale.Def.Prop_s.prop0 | [
{
"abbrev": false,
"full_module": "Vale.Arch.MachineHeap",
"short_module": null
},
{
"abbrev": true,
"full_module": "Vale.PPC64LE.Semantics_s",
"short_module": "BS"
},
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
"f... | false | let valid_src_stack64s (base num_slots:nat) (h:vale_stack) : Vale.Def.Prop_s.prop0 =
forall addr . {:pattern (valid_src_stack64 addr h)}
(base <= addr) && (addr < base + num_slots * 8) && (addr - base) % 8 = 0 ==>
valid_src_stack64 addr h | val valid_src_stack64s (base num_slots: nat) (h: vale_stack) : Vale.Def.Prop_s.prop0
let valid_src_stack64s (base num_slots: nat) (h: vale_stack) : Vale.Def.Prop_s.prop0 = | false | null | false | forall addr. {:pattern (valid_src_stack64 addr h)}
(base <= addr) && (addr < base + num_slots * 8) && (addr - base) % 8 = 0 ==>
valid_src_stack64 addr h | {
"checked_file": "Vale.PPC64LE.Stack_i.fsti.checked",
"dependencies": [
"Vale.PPC64LE.Memory.fsti.checked",
"Vale.PPC64LE.Machine_s.fst.checked",
"Vale.Def.Prop_s.fst.checked",
"prims.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul.fst.checked",
"FStar.Map.fsti.checked"
],
... | [
"total"
] | [
"Prims.nat",
"Vale.PPC64LE.Stack_i.vale_stack",
"Prims.l_Forall",
"Prims.int",
"Prims.l_imp",
"Prims.b2t",
"Prims.op_AmpAmp",
"Prims.op_LessThanOrEqual",
"Prims.op_LessThan",
"Prims.op_Addition",
"FStar.Mul.op_Star",
"Prims.op_Equality",
"Prims.op_Modulus",
"Prims.op_Subtraction",
"Vale.... | [] | module Vale.PPC64LE.Stack_i
open FStar.Mul
open Vale.PPC64LE.Machine_s
open Vale.PPC64LE.Memory
open Vale.Def.Prop_s
val vale_stack : Type u#0
val valid_src_stack64 (ptr:int) (h:vale_stack) : GTot bool
val load_stack64 (ptr:int) (h:vale_stack) : GTot nat64
val store_stack64 (ptr:int) (v:nat64) (h:vale_stack) : GTot ... | false | true | Vale.PPC64LE.Stack_i.fsti | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 1,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | null | val valid_src_stack64s (base num_slots: nat) (h: vale_stack) : Vale.Def.Prop_s.prop0 | [] | Vale.PPC64LE.Stack_i.valid_src_stack64s | {
"file_name": "vale/code/arch/ppc64le/Vale.PPC64LE.Stack_i.fsti",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | base: Prims.nat -> num_slots: Prims.nat -> h: Vale.PPC64LE.Stack_i.vale_stack
-> Vale.Def.Prop_s.prop0 | {
"end_col": 30,
"end_line": 31,
"start_col": 2,
"start_line": 29
} |
Prims.Tot | [
{
"abbrev": false,
"full_module": "Vale.Arch.MachineHeap",
"short_module": null
},
{
"abbrev": true,
"full_module": "Vale.PPC64LE.Semantics_s",
"short_module": "BS"
},
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
"f... | false | let valid_stack_slot64 (ptr:int) (h:vale_stack) (t:taint) (stackTaint:memtaint) =
valid_src_stack64 ptr h /\ valid_taint_stack64 ptr t stackTaint | let valid_stack_slot64 (ptr: int) (h: vale_stack) (t: taint) (stackTaint: memtaint) = | false | null | false | valid_src_stack64 ptr h /\ valid_taint_stack64 ptr t stackTaint | {
"checked_file": "Vale.PPC64LE.Stack_i.fsti.checked",
"dependencies": [
"Vale.PPC64LE.Memory.fsti.checked",
"Vale.PPC64LE.Machine_s.fst.checked",
"Vale.Def.Prop_s.fst.checked",
"prims.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul.fst.checked",
"FStar.Map.fsti.checked"
],
... | [
"total"
] | [
"Prims.int",
"Vale.PPC64LE.Stack_i.vale_stack",
"Vale.Arch.HeapTypes_s.taint",
"Vale.PPC64LE.Memory.memtaint",
"Prims.l_and",
"Prims.b2t",
"Vale.PPC64LE.Stack_i.valid_src_stack64",
"Vale.PPC64LE.Stack_i.valid_taint_stack64",
"Prims.logical"
] | [] | module Vale.PPC64LE.Stack_i
open FStar.Mul
open Vale.PPC64LE.Machine_s
open Vale.PPC64LE.Memory
open Vale.Def.Prop_s
val vale_stack : Type u#0
val valid_src_stack64 (ptr:int) (h:vale_stack) : GTot bool
val load_stack64 (ptr:int) (h:vale_stack) : GTot nat64
val store_stack64 (ptr:int) (v:nat64) (h:vale_stack) : GTot ... | false | true | Vale.PPC64LE.Stack_i.fsti | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 1,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | null | val valid_stack_slot64 : ptr: Prims.int ->
h: Vale.PPC64LE.Stack_i.vale_stack ->
t: Vale.Arch.HeapTypes_s.taint ->
stackTaint: Vale.PPC64LE.Memory.memtaint
-> Prims.logical | [] | Vale.PPC64LE.Stack_i.valid_stack_slot64 | {
"file_name": "vale/code/arch/ppc64le/Vale.PPC64LE.Stack_i.fsti",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} |
ptr: Prims.int ->
h: Vale.PPC64LE.Stack_i.vale_stack ->
t: Vale.Arch.HeapTypes_s.taint ->
stackTaint: Vale.PPC64LE.Memory.memtaint
-> Prims.logical | {
"end_col": 65,
"end_line": 168,
"start_col": 2,
"start_line": 168
} | |
Prims.Tot | val modifies_stacktaint (lo_r1 hi_r1: nat) (h h': memtaint) : Vale.Def.Prop_s.prop0 | [
{
"abbrev": false,
"full_module": "Vale.Arch.MachineHeap",
"short_module": null
},
{
"abbrev": true,
"full_module": "Vale.PPC64LE.Semantics_s",
"short_module": "BS"
},
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
"f... | false | let modifies_stacktaint (lo_r1 hi_r1:nat) (h h':memtaint) : Vale.Def.Prop_s.prop0 =
forall addr t. {:pattern (valid_taint_stack64 addr t h') }
(addr + 8 <= lo_r1 || addr >= hi_r1) ==>
valid_taint_stack64 addr t h == valid_taint_stack64 addr t h' | val modifies_stacktaint (lo_r1 hi_r1: nat) (h h': memtaint) : Vale.Def.Prop_s.prop0
let modifies_stacktaint (lo_r1 hi_r1: nat) (h h': memtaint) : Vale.Def.Prop_s.prop0 = | false | null | false | forall addr t. {:pattern (valid_taint_stack64 addr t h')}
(addr + 8 <= lo_r1 || addr >= hi_r1) ==>
valid_taint_stack64 addr t h == valid_taint_stack64 addr t h' | {
"checked_file": "Vale.PPC64LE.Stack_i.fsti.checked",
"dependencies": [
"Vale.PPC64LE.Memory.fsti.checked",
"Vale.PPC64LE.Machine_s.fst.checked",
"Vale.Def.Prop_s.fst.checked",
"prims.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul.fst.checked",
"FStar.Map.fsti.checked"
],
... | [
"total"
] | [
"Prims.nat",
"Vale.PPC64LE.Memory.memtaint",
"Prims.l_Forall",
"Prims.int",
"Vale.Arch.HeapTypes_s.taint",
"Prims.l_imp",
"Prims.b2t",
"Prims.op_BarBar",
"Prims.op_LessThanOrEqual",
"Prims.op_Addition",
"Prims.op_GreaterThanOrEqual",
"Prims.eq2",
"Vale.Def.Prop_s.prop0",
"Vale.PPC64LE.Stac... | [] | module Vale.PPC64LE.Stack_i
open FStar.Mul
open Vale.PPC64LE.Machine_s
open Vale.PPC64LE.Memory
open Vale.Def.Prop_s
val vale_stack : Type u#0
val valid_src_stack64 (ptr:int) (h:vale_stack) : GTot bool
val load_stack64 (ptr:int) (h:vale_stack) : GTot nat64
val store_stack64 (ptr:int) (v:nat64) (h:vale_stack) : GTot ... | false | true | Vale.PPC64LE.Stack_i.fsti | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 1,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | null | val modifies_stacktaint (lo_r1 hi_r1: nat) (h h': memtaint) : Vale.Def.Prop_s.prop0 | [] | Vale.PPC64LE.Stack_i.modifies_stacktaint | {
"file_name": "vale/code/arch/ppc64le/Vale.PPC64LE.Stack_i.fsti",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} |
lo_r1: Prims.nat ->
hi_r1: Prims.nat ->
h: Vale.PPC64LE.Memory.memtaint ->
h': Vale.PPC64LE.Memory.memtaint
-> Vale.Def.Prop_s.prop0 | {
"end_col": 67,
"end_line": 179,
"start_col": 2,
"start_line": 177
} |
Prims.Tot | val valid_stack_slot64s (base num_slots: nat) (h: vale_stack) (t: taint) (stackTaint: memtaint)
: Vale.Def.Prop_s.prop0 | [
{
"abbrev": false,
"full_module": "Vale.Arch.MachineHeap",
"short_module": null
},
{
"abbrev": true,
"full_module": "Vale.PPC64LE.Semantics_s",
"short_module": "BS"
},
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
"f... | false | let valid_stack_slot64s (base num_slots:nat) (h:vale_stack) (t:taint) (stackTaint:memtaint) : Vale.Def.Prop_s.prop0 =
forall addr . {:pattern (valid_src_stack64 addr h) \/ (valid_taint_stack64 addr t stackTaint) \/
(valid_stack_slot64 addr h t stackTaint)}
(base <= addr) && (addr < base + num_slots * 8) && (a... | val valid_stack_slot64s (base num_slots: nat) (h: vale_stack) (t: taint) (stackTaint: memtaint)
: Vale.Def.Prop_s.prop0
let valid_stack_slot64s (base num_slots: nat) (h: vale_stack) (t: taint) (stackTaint: memtaint)
: Vale.Def.Prop_s.prop0 = | false | null | false | forall addr.
{:pattern
(valid_src_stack64 addr h)\/(valid_taint_stack64 addr t stackTaint)\/(valid_stack_slot64 addr
h
t
stackTaint)}
(base <= addr) && (addr < base + num_slots * 8) && (addr - base) % 8 = 0 ==>
valid_src_stack64 addr h /\ valid_taint_stack64 addr t stackTaint | {
"checked_file": "Vale.PPC64LE.Stack_i.fsti.checked",
"dependencies": [
"Vale.PPC64LE.Memory.fsti.checked",
"Vale.PPC64LE.Machine_s.fst.checked",
"Vale.Def.Prop_s.fst.checked",
"prims.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul.fst.checked",
"FStar.Map.fsti.checked"
],
... | [
"total"
] | [
"Prims.nat",
"Vale.PPC64LE.Stack_i.vale_stack",
"Vale.Arch.HeapTypes_s.taint",
"Vale.PPC64LE.Memory.memtaint",
"Prims.l_Forall",
"Prims.int",
"Prims.l_imp",
"Prims.b2t",
"Prims.op_AmpAmp",
"Prims.op_LessThanOrEqual",
"Prims.op_LessThan",
"Prims.op_Addition",
"FStar.Mul.op_Star",
"Prims.op_... | [] | module Vale.PPC64LE.Stack_i
open FStar.Mul
open Vale.PPC64LE.Machine_s
open Vale.PPC64LE.Memory
open Vale.Def.Prop_s
val vale_stack : Type u#0
val valid_src_stack64 (ptr:int) (h:vale_stack) : GTot bool
val load_stack64 (ptr:int) (h:vale_stack) : GTot nat64
val store_stack64 (ptr:int) (v:nat64) (h:vale_stack) : GTot ... | false | true | Vale.PPC64LE.Stack_i.fsti | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 1,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | null | val valid_stack_slot64s (base num_slots: nat) (h: vale_stack) (t: taint) (stackTaint: memtaint)
: Vale.Def.Prop_s.prop0 | [] | Vale.PPC64LE.Stack_i.valid_stack_slot64s | {
"file_name": "vale/code/arch/ppc64le/Vale.PPC64LE.Stack_i.fsti",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} |
base: Prims.nat ->
num_slots: Prims.nat ->
h: Vale.PPC64LE.Stack_i.vale_stack ->
t: Vale.Arch.HeapTypes_s.taint ->
stackTaint: Vale.PPC64LE.Memory.memtaint
-> Vale.Def.Prop_s.prop0 | {
"end_col": 71,
"end_line": 174,
"start_col": 2,
"start_line": 171
} |
Prims.Tot | val sub_borrow_u64: sub_borrow_st U64 | [
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.Buffer",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.IntTypes",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.Hyp... | false | let sub_borrow_u64 cin x y r = sub_borrow_fallback #U64 cin x y r | val sub_borrow_u64: sub_borrow_st U64
let sub_borrow_u64 cin x y r = | false | null | false | sub_borrow_fallback #U64 cin x y r | {
"checked_file": "Hacl.IntTypes.Intrinsics.fst.checked",
"dependencies": [
"prims.fst.checked",
"Lib.IntTypes.fsti.checked",
"Lib.Buffer.fsti.checked",
"FStar.UInt32.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul.fst.checked",
"FStar.Math.Lemmas.... | [
"total"
] | [
"Lib.IntTypes.uint_t",
"Lib.IntTypes.U64",
"Lib.IntTypes.SEC",
"Lib.Buffer.lbuffer",
"Lib.IntTypes.size",
"Hacl.IntTypes.Intrinsics.sub_borrow_fallback"
] | [] | module Hacl.IntTypes.Intrinsics
open FStar.HyperStack.All
open FStar.HyperStack
module ST = FStar.HyperStack.ST
open Lib.IntTypes
open Lib.Buffer
open FStar.Mul
#set-options "--fuel 0 --ifuel 0 --z3rlimit 100"
inline_for_extraction noextract
let add_carry_st (t:inttype{t = U32 \/ t = U64}) =
cin:uint_t t SEC
... | false | true | Hacl.IntTypes.Intrinsics.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 sub_borrow_u64: sub_borrow_st U64 | [] | Hacl.IntTypes.Intrinsics.sub_borrow_u64 | {
"file_name": "code/fallback/Hacl.IntTypes.Intrinsics.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | Hacl.IntTypes.Intrinsics.sub_borrow_st Lib.IntTypes.U64 | {
"end_col": 65,
"end_line": 100,
"start_col": 31,
"start_line": 100
} |
Prims.Tot | val add_carry_u64: add_carry_st U64 | [
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.Buffer",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.IntTypes",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.Hyp... | false | let add_carry_u64 cin x y r = add_carry_fallback #U64 cin x y r | val add_carry_u64: add_carry_st U64
let add_carry_u64 cin x y r = | false | null | false | add_carry_fallback #U64 cin x y r | {
"checked_file": "Hacl.IntTypes.Intrinsics.fst.checked",
"dependencies": [
"prims.fst.checked",
"Lib.IntTypes.fsti.checked",
"Lib.Buffer.fsti.checked",
"FStar.UInt32.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul.fst.checked",
"FStar.Math.Lemmas.... | [
"total"
] | [
"Lib.IntTypes.uint_t",
"Lib.IntTypes.U64",
"Lib.IntTypes.SEC",
"Lib.Buffer.lbuffer",
"Lib.IntTypes.size",
"Hacl.IntTypes.Intrinsics.add_carry_fallback"
] | [] | module Hacl.IntTypes.Intrinsics
open FStar.HyperStack.All
open FStar.HyperStack
module ST = FStar.HyperStack.ST
open Lib.IntTypes
open Lib.Buffer
open FStar.Mul
#set-options "--fuel 0 --ifuel 0 --z3rlimit 100"
inline_for_extraction noextract
let add_carry_st (t:inttype{t = U32 \/ t = U64}) =
cin:uint_t t SEC
... | false | true | Hacl.IntTypes.Intrinsics.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 add_carry_u64: add_carry_st U64 | [] | Hacl.IntTypes.Intrinsics.add_carry_u64 | {
"file_name": "code/fallback/Hacl.IntTypes.Intrinsics.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | Hacl.IntTypes.Intrinsics.add_carry_st Lib.IntTypes.U64 | {
"end_col": 63,
"end_line": 86,
"start_col": 30,
"start_line": 86
} |
Prims.Tot | [
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.Buffer",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.IntTypes",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.Hyp... | false | let add_carry_st (t:inttype{t = U32 \/ t = U64}) =
cin:uint_t t SEC
-> x:uint_t t SEC
-> y:uint_t t SEC
-> r:lbuffer (uint_t t SEC) (size 1) ->
Stack (uint_t t SEC)
(requires fun h -> live h r /\ v cin <= 1)
(ensures fun h0 c h1 ->
modifies1 r h0 h1 /\ v c <= 1 /\
(let r = Seq.index (as_seq h1 ... | let add_carry_st (t: inttype{t = U32 \/ t = U64}) = | false | null | false | cin: uint_t t SEC -> x: uint_t t SEC -> y: uint_t t SEC -> r: lbuffer (uint_t t SEC) (size 1)
-> Stack (uint_t t SEC)
(requires fun h -> live h r /\ v cin <= 1)
(ensures
fun h0 c h1 ->
modifies1 r h0 h1 /\ v c <= 1 /\
(let r = Seq.index (as_seq h1 r) 0 in
v r + v c ... | {
"checked_file": "Hacl.IntTypes.Intrinsics.fst.checked",
"dependencies": [
"prims.fst.checked",
"Lib.IntTypes.fsti.checked",
"Lib.Buffer.fsti.checked",
"FStar.UInt32.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul.fst.checked",
"FStar.Math.Lemmas.... | [
"total"
] | [
"Lib.IntTypes.inttype",
"Prims.l_or",
"Prims.b2t",
"Prims.op_Equality",
"Lib.IntTypes.U32",
"Lib.IntTypes.U64",
"Lib.IntTypes.uint_t",
"Lib.IntTypes.SEC",
"Lib.Buffer.lbuffer",
"Lib.IntTypes.size",
"FStar.Monotonic.HyperStack.mem",
"Prims.l_and",
"Lib.Buffer.live",
"Lib.Buffer.MUT",
"Pri... | [] | module Hacl.IntTypes.Intrinsics
open FStar.HyperStack.All
open FStar.HyperStack
module ST = FStar.HyperStack.ST
open Lib.IntTypes
open Lib.Buffer
open FStar.Mul
#set-options "--fuel 0 --ifuel 0 --z3rlimit 100"
inline_for_extraction noextract | false | false | Hacl.IntTypes.Intrinsics.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 add_carry_st : t: Lib.IntTypes.inttype{t = Lib.IntTypes.U32 \/ t = Lib.IntTypes.U64} -> Type0 | [] | Hacl.IntTypes.Intrinsics.add_carry_st | {
"file_name": "code/fallback/Hacl.IntTypes.Intrinsics.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | t: Lib.IntTypes.inttype{t = Lib.IntTypes.U32 \/ t = Lib.IntTypes.U64} -> Type0 | {
"end_col": 52,
"end_line": 25,
"start_col": 4,
"start_line": 16
} | |
Prims.Tot | [
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.Buffer",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.IntTypes",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.Hyp... | false | let sub_borrow_st (t:inttype{t = U32 \/ t = U64}) =
cin:uint_t t SEC
-> x:uint_t t SEC
-> y:uint_t t SEC
-> r:lbuffer (uint_t t SEC) (size 1) ->
Stack (uint_t t SEC)
(requires fun h -> live h r /\ v cin <= 1)
(ensures fun h0 c h1 ->
modifies1 r h0 h1 /\ v c <= 1 /\
(let r = Seq.index (as_seq h1... | let sub_borrow_st (t: inttype{t = U32 \/ t = U64}) = | false | null | false | cin: uint_t t SEC -> x: uint_t t SEC -> y: uint_t t SEC -> r: lbuffer (uint_t t SEC) (size 1)
-> Stack (uint_t t SEC)
(requires fun h -> live h r /\ v cin <= 1)
(ensures
fun h0 c h1 ->
modifies1 r h0 h1 /\ v c <= 1 /\
(let r = Seq.index (as_seq h1 r) 0 in
v r - v c ... | {
"checked_file": "Hacl.IntTypes.Intrinsics.fst.checked",
"dependencies": [
"prims.fst.checked",
"Lib.IntTypes.fsti.checked",
"Lib.Buffer.fsti.checked",
"FStar.UInt32.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul.fst.checked",
"FStar.Math.Lemmas.... | [
"total"
] | [
"Lib.IntTypes.inttype",
"Prims.l_or",
"Prims.b2t",
"Prims.op_Equality",
"Lib.IntTypes.U32",
"Lib.IntTypes.U64",
"Lib.IntTypes.uint_t",
"Lib.IntTypes.SEC",
"Lib.Buffer.lbuffer",
"Lib.IntTypes.size",
"FStar.Monotonic.HyperStack.mem",
"Prims.l_and",
"Lib.Buffer.live",
"Lib.Buffer.MUT",
"Pri... | [] | module Hacl.IntTypes.Intrinsics
open FStar.HyperStack.All
open FStar.HyperStack
module ST = FStar.HyperStack.ST
open Lib.IntTypes
open Lib.Buffer
open FStar.Mul
#set-options "--fuel 0 --ifuel 0 --z3rlimit 100"
inline_for_extraction noextract
let add_carry_st (t:inttype{t = U32 \/ t = U64}) =
cin:uint_t t SEC
... | false | false | Hacl.IntTypes.Intrinsics.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 sub_borrow_st : t: Lib.IntTypes.inttype{t = Lib.IntTypes.U32 \/ t = Lib.IntTypes.U64} -> Type0 | [] | Hacl.IntTypes.Intrinsics.sub_borrow_st | {
"file_name": "code/fallback/Hacl.IntTypes.Intrinsics.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | t: Lib.IntTypes.inttype{t = Lib.IntTypes.U32 \/ t = Lib.IntTypes.U64} -> Type0 | {
"end_col": 52,
"end_line": 45,
"start_col": 4,
"start_line": 36
} | |
Prims.Tot | val sub_borrow_fallback: #t:inttype{t = U32 \/ t = U64} -> sub_borrow_st t | [
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.Buffer",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.IntTypes",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.Hyp... | false | let sub_borrow_fallback #t cin x y r =
let res = x -. y -. cin in
let c = logand (logor (gt_mask res x) (logand (eq_mask res x) cin)) (uint #t 1) in
logand_lemma (eq_mask res x) cin;
logor_lemma (gt_mask res x) (logand (eq_mask res x) cin);
logand_mask (logor (gt_mask res x) (logand (eq_mask res x) cin)) (uin... | val sub_borrow_fallback: #t:inttype{t = U32 \/ t = U64} -> sub_borrow_st t
let sub_borrow_fallback #t cin x y r = | false | null | false | let res = x -. y -. cin in
let c = logand (logor (gt_mask res x) (logand (eq_mask res x) cin)) (uint #t 1) in
logand_lemma (eq_mask res x) cin;
logor_lemma (gt_mask res x) (logand (eq_mask res x) cin);
logand_mask (logor (gt_mask res x) (logand (eq_mask res x) cin)) (uint #t 1) 1;
r.(0ul) <- res;
c | {
"checked_file": "Hacl.IntTypes.Intrinsics.fst.checked",
"dependencies": [
"prims.fst.checked",
"Lib.IntTypes.fsti.checked",
"Lib.Buffer.fsti.checked",
"FStar.UInt32.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul.fst.checked",
"FStar.Math.Lemmas.... | [
"total"
] | [
"Lib.IntTypes.inttype",
"Prims.l_or",
"Prims.b2t",
"Prims.op_Equality",
"Lib.IntTypes.U32",
"Lib.IntTypes.U64",
"Lib.IntTypes.uint_t",
"Lib.IntTypes.SEC",
"Lib.Buffer.lbuffer",
"Lib.IntTypes.size",
"Prims.unit",
"Lib.Buffer.op_Array_Assignment",
"FStar.UInt32.__uint_to_t",
"Lib.IntTypes.lo... | [] | module Hacl.IntTypes.Intrinsics
open FStar.HyperStack.All
open FStar.HyperStack
module ST = FStar.HyperStack.ST
open Lib.IntTypes
open Lib.Buffer
open FStar.Mul
#set-options "--fuel 0 --ifuel 0 --z3rlimit 100"
inline_for_extraction noextract
let add_carry_st (t:inttype{t = U32 \/ t = U64}) =
cin:uint_t t SEC
... | false | false | Hacl.IntTypes.Intrinsics.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 sub_borrow_fallback: #t:inttype{t = U32 \/ t = U64} -> sub_borrow_st t | [] | Hacl.IntTypes.Intrinsics.sub_borrow_fallback | {
"file_name": "code/fallback/Hacl.IntTypes.Intrinsics.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | Hacl.IntTypes.Intrinsics.sub_borrow_st t | {
"end_col": 3,
"end_line": 97,
"start_col": 38,
"start_line": 90
} |
Prims.Tot | val sub_borrow_u32: sub_borrow_st U32 | [
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.Buffer",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.IntTypes",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.Hyp... | false | let sub_borrow_u32 cin x y r =
let res = to_u64 x -. to_u64 y -. to_u64 cin in
assert (v res == ((v x - v y) % pow2 64 - v cin) % pow2 64);
Math.Lemmas.lemma_mod_add_distr (- v cin) (v x - v y) (pow2 64);
assert (v res == (v x - v y - v cin) % pow2 64);
assert (v res % pow2 32 = (v x - v y - v cin) % pow2 64... | val sub_borrow_u32: sub_borrow_st U32
let sub_borrow_u32 cin x y r = | false | null | false | let res = to_u64 x -. to_u64 y -. to_u64 cin in
assert (v res == ((v x - v y) % pow2 64 - v cin) % pow2 64);
Math.Lemmas.lemma_mod_add_distr (- v cin) (v x - v y) (pow2 64);
assert (v res == (v x - v y - v cin) % pow2 64);
assert (v res % pow2 32 = (v x - v y - v cin) % pow2 64 % pow2 32);
Math.Lemmas.pow2_modulo_modul... | {
"checked_file": "Hacl.IntTypes.Intrinsics.fst.checked",
"dependencies": [
"prims.fst.checked",
"Lib.IntTypes.fsti.checked",
"Lib.Buffer.fsti.checked",
"FStar.UInt32.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul.fst.checked",
"FStar.Math.Lemmas.... | [
"total"
] | [
"Lib.IntTypes.uint_t",
"Lib.IntTypes.U32",
"Lib.IntTypes.SEC",
"Lib.Buffer.lbuffer",
"Lib.IntTypes.size",
"Prims.unit",
"Prims._assert",
"Prims.b2t",
"Prims.op_Equality",
"Prims.int",
"Lib.IntTypes.v",
"Prims.op_LessThanOrEqual",
"Prims.op_Subtraction",
"Prims.bool",
"Lib.Buffer.op_Array... | [] | module Hacl.IntTypes.Intrinsics
open FStar.HyperStack.All
open FStar.HyperStack
module ST = FStar.HyperStack.ST
open Lib.IntTypes
open Lib.Buffer
open FStar.Mul
#set-options "--fuel 0 --ifuel 0 --z3rlimit 100"
inline_for_extraction noextract
let add_carry_st (t:inttype{t = U32 \/ t = U64}) =
cin:uint_t t SEC
... | false | true | Hacl.IntTypes.Intrinsics.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 sub_borrow_u32: sub_borrow_st U32 | [] | Hacl.IntTypes.Intrinsics.sub_borrow_u32 | {
"file_name": "code/fallback/Hacl.IntTypes.Intrinsics.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | Hacl.IntTypes.Intrinsics.sub_borrow_st Lib.IntTypes.U32 | {
"end_col": 3,
"end_line": 66,
"start_col": 30,
"start_line": 48
} |
Prims.Tot | val add_carry_fallback: #t:inttype{t = U32 \/ t = U64} -> add_carry_st t | [
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.Buffer",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.IntTypes",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.Hyp... | false | let add_carry_fallback #t cin x y r =
let res = x +. cin +. y in
let c = logand (logor (lt_mask res x) (logand (eq_mask res x) cin)) (uint #t 1) in
r.(0ul) <- res;
logand_lemma (eq_mask res x) cin;
logor_lemma (lt_mask res x) (logand (eq_mask res x) cin);
logand_mask (logor (lt_mask res x) (logand (eq_mask ... | val add_carry_fallback: #t:inttype{t = U32 \/ t = U64} -> add_carry_st t
let add_carry_fallback #t cin x y r = | false | null | false | let res = x +. cin +. y in
let c = logand (logor (lt_mask res x) (logand (eq_mask res x) cin)) (uint #t 1) in
r.(0ul) <- res;
logand_lemma (eq_mask res x) cin;
logor_lemma (lt_mask res x) (logand (eq_mask res x) cin);
logand_mask (logor (lt_mask res x) (logand (eq_mask res x) cin)) (uint #t 1) 1;
c | {
"checked_file": "Hacl.IntTypes.Intrinsics.fst.checked",
"dependencies": [
"prims.fst.checked",
"Lib.IntTypes.fsti.checked",
"Lib.Buffer.fsti.checked",
"FStar.UInt32.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul.fst.checked",
"FStar.Math.Lemmas.... | [
"total"
] | [
"Lib.IntTypes.inttype",
"Prims.l_or",
"Prims.b2t",
"Prims.op_Equality",
"Lib.IntTypes.U32",
"Lib.IntTypes.U64",
"Lib.IntTypes.uint_t",
"Lib.IntTypes.SEC",
"Lib.Buffer.lbuffer",
"Lib.IntTypes.size",
"Prims.unit",
"Lib.IntTypes.logand_mask",
"Lib.IntTypes.logor",
"Lib.IntTypes.lt_mask",
"L... | [] | module Hacl.IntTypes.Intrinsics
open FStar.HyperStack.All
open FStar.HyperStack
module ST = FStar.HyperStack.ST
open Lib.IntTypes
open Lib.Buffer
open FStar.Mul
#set-options "--fuel 0 --ifuel 0 --z3rlimit 100"
inline_for_extraction noextract
let add_carry_st (t:inttype{t = U32 \/ t = U64}) =
cin:uint_t t SEC
... | false | false | Hacl.IntTypes.Intrinsics.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 add_carry_fallback: #t:inttype{t = U32 \/ t = U64} -> add_carry_st t | [] | Hacl.IntTypes.Intrinsics.add_carry_fallback | {
"file_name": "code/fallback/Hacl.IntTypes.Intrinsics.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | Hacl.IntTypes.Intrinsics.add_carry_st t | {
"end_col": 3,
"end_line": 83,
"start_col": 37,
"start_line": 76
} |
Prims.Tot | val add_carry_u32: add_carry_st U32 | [
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.Buffer",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.IntTypes",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.Hyp... | false | let add_carry_u32 cin x y r =
let res = to_u64 x +. to_u64 cin +. to_u64 y in
let c = to_u32 (res >>. 32ul) in
r.(0ul) <- to_u32 res;
c | val add_carry_u32: add_carry_st U32
let add_carry_u32 cin x y r = | false | null | false | let res = to_u64 x +. to_u64 cin +. to_u64 y in
let c = to_u32 (res >>. 32ul) in
r.(0ul) <- to_u32 res;
c | {
"checked_file": "Hacl.IntTypes.Intrinsics.fst.checked",
"dependencies": [
"prims.fst.checked",
"Lib.IntTypes.fsti.checked",
"Lib.Buffer.fsti.checked",
"FStar.UInt32.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul.fst.checked",
"FStar.Math.Lemmas.... | [
"total"
] | [
"Lib.IntTypes.uint_t",
"Lib.IntTypes.U32",
"Lib.IntTypes.SEC",
"Lib.Buffer.lbuffer",
"Lib.IntTypes.size",
"Prims.unit",
"Lib.Buffer.op_Array_Assignment",
"FStar.UInt32.__uint_to_t",
"Lib.IntTypes.to_u32",
"Lib.IntTypes.U64",
"Lib.IntTypes.int_t",
"Lib.IntTypes.op_Greater_Greater_Dot",
"Lib.I... | [] | module Hacl.IntTypes.Intrinsics
open FStar.HyperStack.All
open FStar.HyperStack
module ST = FStar.HyperStack.ST
open Lib.IntTypes
open Lib.Buffer
open FStar.Mul
#set-options "--fuel 0 --ifuel 0 --z3rlimit 100"
inline_for_extraction noextract
let add_carry_st (t:inttype{t = U32 \/ t = U64}) =
cin:uint_t t SEC
... | false | true | Hacl.IntTypes.Intrinsics.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 add_carry_u32: add_carry_st U32 | [] | Hacl.IntTypes.Intrinsics.add_carry_u32 | {
"file_name": "code/fallback/Hacl.IntTypes.Intrinsics.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | Hacl.IntTypes.Intrinsics.add_carry_st Lib.IntTypes.U32 | {
"end_col": 3,
"end_line": 32,
"start_col": 29,
"start_line": 28
} |
FStar.Pervasives.Lemma | val addrs_set_lemma_all (_:unit) : Lemma
(forall (mem:interop_heap) (x:int).{:pattern (Set.mem x (addrs_set mem))}
let addrs = addrs_of_mem mem in
let ptrs = ptrs_of_mem mem in
valid_addr mem x <==>
(exists (b:b8{List.memP b ptrs}).{:pattern (addrs b)} addrs b <= x /\ x < addrs b + DV.length (get_down... | [
{
"abbrev": false,
"full_module": "Vale.Lib.BufferViewHelpers",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Arch.MachineHeap_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Interop.Heap_s",
"short_module": null
},
{
"abbrev"... | false | let addrs_set_lemma_all () =
FStar.Classical.forall_intro_2 addrs_set_lemma | val addrs_set_lemma_all (_:unit) : Lemma
(forall (mem:interop_heap) (x:int).{:pattern (Set.mem x (addrs_set mem))}
let addrs = addrs_of_mem mem in
let ptrs = ptrs_of_mem mem in
valid_addr mem x <==>
(exists (b:b8{List.memP b ptrs}).{:pattern (addrs b)} addrs b <= x /\ x < addrs b + DV.length (get_down... | false | null | true | FStar.Classical.forall_intro_2 addrs_set_lemma | {
"checked_file": "Vale.Interop.fst.checked",
"dependencies": [
"Vale.Lib.BufferViewHelpers.fst.checked",
"Vale.Def.Opaque_s.fsti.checked",
"prims.fst.checked",
"LowStar.Monotonic.Buffer.fsti.checked",
"LowStar.Modifies.fst.checked",
"LowStar.BufferView.Down.fsti.checked",
"FStar.UInt8.f... | [
"lemma"
] | [
"Prims.unit",
"FStar.Classical.forall_intro_2",
"Vale.Interop.Heap_s.interop_heap",
"Prims.int",
"Prims.l_iff",
"Prims.b2t",
"Vale.Interop.valid_addr",
"Prims.l_Exists",
"Vale.Interop.Types.b8",
"FStar.List.Tot.Base.memP",
"Vale.Interop.Heap_s.ptrs_of_mem",
"Prims.l_and",
"Prims.op_LessThanO... | [] | module Vale.Interop
open FStar.Mul
module List = FStar.List.Tot.Base
module HS = FStar.Monotonic.HyperStack
module HH = FStar.Monotonic.HyperHeap
module MB = LowStar.Monotonic.Buffer
module M = LowStar.Modifies
module DV = LowStar.BufferView.Down
open Vale.Def.Opaque_s
//open Vale.Interop.Base
open Vale.Lib.BufferVie... | false | false | Vale.Interop.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 2,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | null | val addrs_set_lemma_all (_:unit) : Lemma
(forall (mem:interop_heap) (x:int).{:pattern (Set.mem x (addrs_set mem))}
let addrs = addrs_of_mem mem in
let ptrs = ptrs_of_mem mem in
valid_addr mem x <==>
(exists (b:b8{List.memP b ptrs}).{:pattern (addrs b)} addrs b <= x /\ x < addrs b + DV.length (get_down... | [] | Vale.Interop.addrs_set_lemma_all | {
"file_name": "vale/code/arch/x64/Vale.Interop.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 (mem: Vale.Interop.Heap_s.interop_heap) (x: Prims.int).
{:pattern FStar.Set.mem x (Vale.Interop.Heap_s.addrs_set mem)}
let addrs = Vale.Interop.Heap_s.addrs_of_mem mem in
let ptrs = Vale.Interop.Heap_s.ptrs_of_mem mem in
... | {
"end_col": 48,
"end_line": 200,
"start_col": 2,
"start_line": 200
} |
Prims.GTot | [
{
"abbrev": false,
"full_module": "Vale.Lib.BufferViewHelpers",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Def.Opaque_s",
"short_module": null
},
{
"abbrev": true,
"full_module": "LowStar.BufferView.Down",
"short_module": "DV"
},
{
"abbrev": t... | false | let write_buffer_vale (a:b8) (heap:machine_heap) (mem:interop_heap) =
let b = get_downview a.bsrc in
let length = DV.length b in
let contents = DV.as_seq (hs_of_mem mem) b in
let addr = addrs_of_mem mem a in
write_vale_mem contents length addr 0 heap | let write_buffer_vale (a: b8) (heap: machine_heap) (mem: interop_heap) = | false | null | false | let b = get_downview a.bsrc in
let length = DV.length b in
let contents = DV.as_seq (hs_of_mem mem) b in
let addr = addrs_of_mem mem a in
write_vale_mem contents length addr 0 heap | {
"checked_file": "Vale.Interop.fst.checked",
"dependencies": [
"Vale.Lib.BufferViewHelpers.fst.checked",
"Vale.Def.Opaque_s.fsti.checked",
"prims.fst.checked",
"LowStar.Monotonic.Buffer.fsti.checked",
"LowStar.Modifies.fst.checked",
"LowStar.BufferView.Down.fsti.checked",
"FStar.UInt8.f... | [
"sometrivial"
] | [
"Vale.Interop.Types.b8",
"Vale.Arch.MachineHeap_s.machine_heap",
"Vale.Interop.Heap_s.interop_heap",
"Vale.Interop.write_vale_mem",
"Vale.Def.Words_s.nat64",
"Vale.Interop.Heap_s.addrs_of_mem",
"FStar.Seq.Properties.lseq",
"FStar.UInt8.t",
"LowStar.BufferView.Down.length",
"LowStar.BufferView.Down... | [] | module Vale.Interop
open FStar.Mul
module List = FStar.List.Tot.Base
module HS = FStar.Monotonic.HyperStack
module HH = FStar.Monotonic.HyperHeap
module MB = LowStar.Monotonic.Buffer
module M = LowStar.Modifies
module DV = LowStar.BufferView.Down
open Vale.Def.Opaque_s
//open Vale.Interop.Base
open Vale.Lib.BufferVie... | false | false | Vale.Interop.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 2,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | null | val write_buffer_vale : a: Vale.Interop.Types.b8 ->
heap: Vale.Arch.MachineHeap_s.machine_heap ->
mem: Vale.Interop.Heap_s.interop_heap
-> Prims.GTot Vale.Arch.MachineHeap_s.machine_heap | [] | Vale.Interop.write_buffer_vale | {
"file_name": "vale/code/arch/x64/Vale.Interop.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} |
a: Vale.Interop.Types.b8 ->
heap: Vale.Arch.MachineHeap_s.machine_heap ->
mem: Vale.Interop.Heap_s.interop_heap
-> Prims.GTot Vale.Arch.MachineHeap_s.machine_heap | {
"end_col": 44,
"end_line": 210,
"start_col": 69,
"start_line": 205
} | |
FStar.Pervasives.Lemma | val addrs_set_lemma (mem:interop_heap) (x:int)
: Lemma (let addrs = addrs_of_mem mem in
let ptrs = ptrs_of_mem mem in
valid_addr mem x <==>
(exists (b:b8{List.memP b ptrs}).{:pattern (addrs b)} addrs b <= x /\ x < addrs b + DV.length (get_downview b.bsrc))) | [
{
"abbrev": false,
"full_module": "Vale.Lib.BufferViewHelpers",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Arch.MachineHeap_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Interop.Heap_s",
"short_module": null
},
{
"abbrev"... | false | let addrs_set_lemma mem x =
addrs_set_lemma_aux (addrs_of_mem mem) (ptrs_of_mem mem) Set.empty x | val addrs_set_lemma (mem:interop_heap) (x:int)
: Lemma (let addrs = addrs_of_mem mem in
let ptrs = ptrs_of_mem mem in
valid_addr mem x <==>
(exists (b:b8{List.memP b ptrs}).{:pattern (addrs b)} addrs b <= x /\ x < addrs b + DV.length (get_downview b.bsrc)))
let addrs_set_lemma mem x = | false | null | true | addrs_set_lemma_aux (addrs_of_mem mem) (ptrs_of_mem mem) Set.empty x | {
"checked_file": "Vale.Interop.fst.checked",
"dependencies": [
"Vale.Lib.BufferViewHelpers.fst.checked",
"Vale.Def.Opaque_s.fsti.checked",
"prims.fst.checked",
"LowStar.Monotonic.Buffer.fsti.checked",
"LowStar.Modifies.fst.checked",
"LowStar.BufferView.Down.fsti.checked",
"FStar.UInt8.f... | [
"lemma"
] | [
"Vale.Interop.Heap_s.interop_heap",
"Prims.int",
"Vale.Interop.addrs_set_lemma_aux",
"Vale.Interop.Heap_s.addrs_of_mem",
"Vale.Interop.Heap_s.ptrs_of_mem",
"FStar.Set.empty",
"Prims.unit"
] | [] | module Vale.Interop
open FStar.Mul
module List = FStar.List.Tot.Base
module HS = FStar.Monotonic.HyperStack
module HH = FStar.Monotonic.HyperHeap
module MB = LowStar.Monotonic.Buffer
module M = LowStar.Modifies
module DV = LowStar.BufferView.Down
open Vale.Def.Opaque_s
//open Vale.Interop.Base
open Vale.Lib.BufferVie... | false | false | Vale.Interop.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 2,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | null | val addrs_set_lemma (mem:interop_heap) (x:int)
: Lemma (let addrs = addrs_of_mem mem in
let ptrs = ptrs_of_mem mem in
valid_addr mem x <==>
(exists (b:b8{List.memP b ptrs}).{:pattern (addrs b)} addrs b <= x /\ x < addrs b + DV.length (get_downview b.bsrc))) | [] | Vale.Interop.addrs_set_lemma | {
"file_name": "vale/code/arch/x64/Vale.Interop.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | mem: Vale.Interop.Heap_s.interop_heap -> x: Prims.int
-> FStar.Pervasives.Lemma
(ensures
(let addrs = Vale.Interop.Heap_s.addrs_of_mem mem in
let ptrs = Vale.Interop.Heap_s.ptrs_of_mem mem in
Vale.Interop.valid_addr mem x <==>
(exists (b: Vale.Interop.Types.b8{FStar.List.Tot.Base.mem... | {
"end_col": 70,
"end_line": 197,
"start_col": 2,
"start_line": 197
} |
FStar.Pervasives.Lemma | val addrs_set_mem (mem:interop_heap) (a:b8) (i:int)
: Lemma
(requires (let ptrs = ptrs_of_mem mem in
let addrs = addrs_of_mem mem in
List.memP a ptrs /\ i >= addrs a /\ i < addrs a + DV.length (get_downview a.bsrc)))
(ensures valid_addr mem i) | [
{
"abbrev": false,
"full_module": "Vale.Lib.BufferViewHelpers",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Arch.MachineHeap_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Interop.Heap_s",
"short_module": null
},
{
"abbrev"... | false | let addrs_set_mem mem a i =
addrs_set_lemma_all () | val addrs_set_mem (mem:interop_heap) (a:b8) (i:int)
: Lemma
(requires (let ptrs = ptrs_of_mem mem in
let addrs = addrs_of_mem mem in
List.memP a ptrs /\ i >= addrs a /\ i < addrs a + DV.length (get_downview a.bsrc)))
(ensures valid_addr mem i)
let addrs_set_mem mem a i = | false | null | true | addrs_set_lemma_all () | {
"checked_file": "Vale.Interop.fst.checked",
"dependencies": [
"Vale.Lib.BufferViewHelpers.fst.checked",
"Vale.Def.Opaque_s.fsti.checked",
"prims.fst.checked",
"LowStar.Monotonic.Buffer.fsti.checked",
"LowStar.Modifies.fst.checked",
"LowStar.BufferView.Down.fsti.checked",
"FStar.UInt8.f... | [
"lemma"
] | [
"Vale.Interop.Heap_s.interop_heap",
"Vale.Interop.Types.b8",
"Prims.int",
"Vale.Interop.addrs_set_lemma_all",
"Prims.unit"
] | [] | module Vale.Interop
open FStar.Mul
module List = FStar.List.Tot.Base
module HS = FStar.Monotonic.HyperStack
module HH = FStar.Monotonic.HyperHeap
module MB = LowStar.Monotonic.Buffer
module M = LowStar.Modifies
module DV = LowStar.BufferView.Down
open Vale.Def.Opaque_s
//open Vale.Interop.Base
open Vale.Lib.BufferVie... | false | false | Vale.Interop.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 2,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | null | val addrs_set_mem (mem:interop_heap) (a:b8) (i:int)
: Lemma
(requires (let ptrs = ptrs_of_mem mem in
let addrs = addrs_of_mem mem in
List.memP a ptrs /\ i >= addrs a /\ i < addrs a + DV.length (get_downview a.bsrc)))
(ensures valid_addr mem i) | [] | Vale.Interop.addrs_set_mem | {
"file_name": "vale/code/arch/x64/Vale.Interop.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | mem: Vale.Interop.Heap_s.interop_heap -> a: Vale.Interop.Types.b8 -> i: Prims.int
-> FStar.Pervasives.Lemma
(requires
(let ptrs = Vale.Interop.Heap_s.ptrs_of_mem mem in
let addrs = Vale.Interop.Heap_s.addrs_of_mem mem in
FStar.List.Tot.Base.memP a ptrs /\ i >= addrs a /\
i ... | {
"end_col": 24,
"end_line": 203,
"start_col": 2,
"start_line": 203
} |
Prims.GTot | val up_mem (heap:machine_heap) (mem:interop_heap{Set.equal (addrs_set mem) (Map.domain heap)})
: GTot (new_mem:interop_heap{ptrs_of_mem mem == ptrs_of_mem new_mem /\
correct_down new_mem heap}) | [
{
"abbrev": false,
"full_module": "Vale.Lib.BufferViewHelpers",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Arch.MachineHeap_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Interop.Heap_s",
"short_module": null
},
{
"abbrev"... | false | let up_mem heap mem = up_mem_aux heap (ptrs_of_mem mem) [] mem | val up_mem (heap:machine_heap) (mem:interop_heap{Set.equal (addrs_set mem) (Map.domain heap)})
: GTot (new_mem:interop_heap{ptrs_of_mem mem == ptrs_of_mem new_mem /\
correct_down new_mem heap})
let up_mem heap mem = | false | null | false | up_mem_aux heap (ptrs_of_mem mem) [] mem | {
"checked_file": "Vale.Interop.fst.checked",
"dependencies": [
"Vale.Lib.BufferViewHelpers.fst.checked",
"Vale.Def.Opaque_s.fsti.checked",
"prims.fst.checked",
"LowStar.Monotonic.Buffer.fsti.checked",
"LowStar.Modifies.fst.checked",
"LowStar.BufferView.Down.fsti.checked",
"FStar.UInt8.f... | [
"sometrivial"
] | [
"Vale.Arch.MachineHeap_s.machine_heap",
"Vale.Interop.Heap_s.interop_heap",
"FStar.Set.equal",
"Prims.int",
"Vale.Interop.Heap_s.addrs_set",
"FStar.Map.domain",
"Vale.Def.Types_s.nat8",
"Vale.Interop.up_mem_aux",
"Vale.Interop.Heap_s.ptrs_of_mem",
"Prims.Nil",
"Vale.Interop.Types.b8",
"Prims.l... | [] | module Vale.Interop
open FStar.Mul
module List = FStar.List.Tot.Base
module HS = FStar.Monotonic.HyperStack
module HH = FStar.Monotonic.HyperHeap
module MB = LowStar.Monotonic.Buffer
module M = LowStar.Modifies
module DV = LowStar.BufferView.Down
open Vale.Def.Opaque_s
//open Vale.Interop.Base
open Vale.Lib.BufferVie... | false | false | Vale.Interop.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 2,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | null | val up_mem (heap:machine_heap) (mem:interop_heap{Set.equal (addrs_set mem) (Map.domain heap)})
: GTot (new_mem:interop_heap{ptrs_of_mem mem == ptrs_of_mem new_mem /\
correct_down new_mem heap}) | [] | Vale.Interop.up_mem | {
"file_name": "vale/code/arch/x64/Vale.Interop.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} |
heap: Vale.Arch.MachineHeap_s.machine_heap ->
mem:
Vale.Interop.Heap_s.interop_heap
{FStar.Set.equal (Vale.Interop.Heap_s.addrs_set mem) (FStar.Map.domain heap)}
-> Prims.GTot
(new_mem:
Vale.Interop.Heap_s.interop_heap
{ Vale.Interop.Heap_s.ptrs_of_mem mem == Vale.Interop.Heap... | {
"end_col": 62,
"end_line": 382,
"start_col": 22,
"start_line": 382
} |
FStar.Pervasives.Lemma | val get_seq_heap_as_seq (heap1 heap2: machine_heap) (mem: interop_heap) (b: b8)
: Lemma
(requires
correct_down_p mem heap1 b /\
(forall x.
x >= addrs_of_mem mem b /\ x < addrs_of_mem mem b + DV.length (get_downview b.bsrc) ==>
heap1.[ x ] == heap2.[ x ]))
(ensures... | [
{
"abbrev": false,
"full_module": "Vale.Lib.BufferViewHelpers",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Def.Opaque_s",
"short_module": null
},
{
"abbrev": true,
"full_module": "LowStar.BufferView.Down",
"short_module": "DV"
},
{
"abbrev": t... | false | let get_seq_heap_as_seq (heap1 heap2:machine_heap) (mem:interop_heap) (b:b8) : Lemma
(requires correct_down_p mem heap1 b /\
(forall x. x >= addrs_of_mem mem b /\ x < addrs_of_mem mem b + DV.length (get_downview b.bsrc) ==> heap1.[x] == heap2.[x]))
(ensures DV.as_seq (hs_of_mem mem) (get_downview b.bsrc) == get... | val get_seq_heap_as_seq (heap1 heap2: machine_heap) (mem: interop_heap) (b: b8)
: Lemma
(requires
correct_down_p mem heap1 b /\
(forall x.
x >= addrs_of_mem mem b /\ x < addrs_of_mem mem b + DV.length (get_downview b.bsrc) ==>
heap1.[ x ] == heap2.[ x ]))
(ensures... | false | null | true | assert (Seq.equal (DV.as_seq (hs_of_mem mem) (get_downview b.bsrc))
(get_seq_heap heap2 (addrs_of_mem mem) b)) | {
"checked_file": "Vale.Interop.fst.checked",
"dependencies": [
"Vale.Lib.BufferViewHelpers.fst.checked",
"Vale.Def.Opaque_s.fsti.checked",
"prims.fst.checked",
"LowStar.Monotonic.Buffer.fsti.checked",
"LowStar.Modifies.fst.checked",
"LowStar.BufferView.Down.fsti.checked",
"FStar.UInt8.f... | [
"lemma"
] | [
"Vale.Arch.MachineHeap_s.machine_heap",
"Vale.Interop.Heap_s.interop_heap",
"Vale.Interop.Types.b8",
"Prims._assert",
"FStar.Seq.Base.equal",
"FStar.UInt8.t",
"LowStar.BufferView.Down.as_seq",
"Vale.Interop.Heap_s.hs_of_mem",
"Vale.Interop.Types.get_downview",
"Vale.Interop.Types.__proj__Buffer__i... | [] | module Vale.Interop
open FStar.Mul
module List = FStar.List.Tot.Base
module HS = FStar.Monotonic.HyperStack
module HH = FStar.Monotonic.HyperHeap
module MB = LowStar.Monotonic.Buffer
module M = LowStar.Modifies
module DV = LowStar.BufferView.Down
open Vale.Def.Opaque_s
//open Vale.Interop.Base
open Vale.Lib.BufferVie... | false | false | Vale.Interop.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 2,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | null | val get_seq_heap_as_seq (heap1 heap2: machine_heap) (mem: interop_heap) (b: b8)
: Lemma
(requires
correct_down_p mem heap1 b /\
(forall x.
x >= addrs_of_mem mem b /\ x < addrs_of_mem mem b + DV.length (get_downview b.bsrc) ==>
heap1.[ x ] == heap2.[ x ]))
(ensures... | [] | Vale.Interop.get_seq_heap_as_seq | {
"file_name": "vale/code/arch/x64/Vale.Interop.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} |
heap1: Vale.Arch.MachineHeap_s.machine_heap ->
heap2: Vale.Arch.MachineHeap_s.machine_heap ->
mem: Vale.Interop.Heap_s.interop_heap ->
b: Vale.Interop.Types.b8
-> FStar.Pervasives.Lemma
(requires
Vale.Interop.Heap_s.correct_down_p mem heap1 b /\
(forall (x: Prims.int).
... | {
"end_col": 112,
"end_line": 355,
"start_col": 2,
"start_line": 355
} |
FStar.Pervasives.Lemma | val addrs_ptr_lemma
(i: nat)
(addrs: addr_map)
(ptr: b8{i <= DV.length (get_downview ptr.bsrc)})
(acc: Set.set int)
(x: int)
: Lemma (requires True)
(ensures
Set.mem x (addrs_ptr i addrs ptr acc) <==>
((addrs ptr + i <= x /\ x < addrs ptr + DV.length (get_downview... | [
{
"abbrev": false,
"full_module": "Vale.Lib.BufferViewHelpers",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Def.Opaque_s",
"short_module": null
},
{
"abbrev": true,
"full_module": "LowStar.BufferView.Down",
"short_module": "DV"
},
{
"abbrev": t... | false | let rec addrs_ptr_lemma
(i:nat)
(addrs:addr_map)
(ptr:b8{i <= DV.length (get_downview ptr.bsrc)})
(acc:Set.set int)
(x:int) : Lemma
(requires True)
(ensures Set.mem x (addrs_ptr i addrs ptr acc) <==>
((addrs ptr + i <= x /\ x < addrs ptr + DV.length (get_downview ptr.bsrc)) \/ Set.mem x acc))
(decre... | val addrs_ptr_lemma
(i: nat)
(addrs: addr_map)
(ptr: b8{i <= DV.length (get_downview ptr.bsrc)})
(acc: Set.set int)
(x: int)
: Lemma (requires True)
(ensures
Set.mem x (addrs_ptr i addrs ptr acc) <==>
((addrs ptr + i <= x /\ x < addrs ptr + DV.length (get_downview... | false | null | true | if i = DV.length (get_downview ptr.bsrc)
then ()
else addrs_ptr_lemma (i + 1) addrs ptr (Set.union (Set.singleton (addrs ptr + i)) acc) x | {
"checked_file": "Vale.Interop.fst.checked",
"dependencies": [
"Vale.Lib.BufferViewHelpers.fst.checked",
"Vale.Def.Opaque_s.fsti.checked",
"prims.fst.checked",
"LowStar.Monotonic.Buffer.fsti.checked",
"LowStar.Modifies.fst.checked",
"LowStar.BufferView.Down.fsti.checked",
"FStar.UInt8.f... | [
"lemma",
""
] | [
"Prims.nat",
"Vale.Interop.Types.addr_map",
"Vale.Interop.Types.b8",
"Prims.b2t",
"Prims.op_LessThanOrEqual",
"LowStar.BufferView.Down.length",
"FStar.UInt8.t",
"Vale.Interop.Types.get_downview",
"Vale.Interop.Types.__proj__Buffer__item__src",
"Vale.Interop.Types.b8_preorder",
"Vale.Interop.Type... | [] | module Vale.Interop
open FStar.Mul
module List = FStar.List.Tot.Base
module HS = FStar.Monotonic.HyperStack
module HH = FStar.Monotonic.HyperHeap
module MB = LowStar.Monotonic.Buffer
module M = LowStar.Modifies
module DV = LowStar.BufferView.Down
open Vale.Def.Opaque_s
//open Vale.Interop.Base
open Vale.Lib.BufferVie... | false | false | Vale.Interop.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 2,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | null | val addrs_ptr_lemma
(i: nat)
(addrs: addr_map)
(ptr: b8{i <= DV.length (get_downview ptr.bsrc)})
(acc: Set.set int)
(x: int)
: Lemma (requires True)
(ensures
Set.mem x (addrs_ptr i addrs ptr acc) <==>
((addrs ptr + i <= x /\ x < addrs ptr + DV.length (get_downview... | [
"recursion"
] | Vale.Interop.addrs_ptr_lemma | {
"file_name": "vale/code/arch/x64/Vale.Interop.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} |
i: Prims.nat ->
addrs: Vale.Interop.Types.addr_map ->
ptr:
Vale.Interop.Types.b8
{i <= LowStar.BufferView.Down.length (Vale.Interop.Types.get_downview (Buffer?.bsrc ptr))} ->
acc: FStar.Set.set Prims.int ->
x: Prims.int
-> FStar.Pervasives.Lemma
(ensures
FStar.Set.mem ... | {
"end_col": 88,
"end_line": 182,
"start_col": 2,
"start_line": 181
} |
FStar.Pervasives.Lemma | val up_down_identity_aux
(mem: interop_heap)
(init_heap: machine_heap{correct_down mem init_heap})
(x: int)
: Lemma (requires Map.contains init_heap x)
(ensures Map.sel init_heap x == Map.sel (down_mem mem) x) | [
{
"abbrev": false,
"full_module": "Vale.Lib.BufferViewHelpers",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Def.Opaque_s",
"short_module": null
},
{
"abbrev": true,
"full_module": "LowStar.BufferView.Down",
"short_module": "DV"
},
{
"abbrev": t... | false | let up_down_identity_aux
(mem:interop_heap)
(init_heap:machine_heap{correct_down mem init_heap})
(x:int) : Lemma
(requires Map.contains init_heap x)
(ensures Map.sel init_heap x == Map.sel (down_mem mem) x) =
let ptrs = ptrs_of_mem mem in
let addrs = addrs_of_mem mem in
addrs_set_lemma_all ();
Classic... | val up_down_identity_aux
(mem: interop_heap)
(init_heap: machine_heap{correct_down mem init_heap})
(x: int)
: Lemma (requires Map.contains init_heap x)
(ensures Map.sel init_heap x == Map.sel (down_mem mem) x)
let up_down_identity_aux
(mem: interop_heap)
(init_heap: machine_heap{... | false | null | true | let ptrs = ptrs_of_mem mem in
let addrs = addrs_of_mem mem in
addrs_set_lemma_all ();
Classical.forall_intro (Classical.move_requires (correct_down_p_same_sel mem
(down_mem mem)
init_heap
x)) | {
"checked_file": "Vale.Interop.fst.checked",
"dependencies": [
"Vale.Lib.BufferViewHelpers.fst.checked",
"Vale.Def.Opaque_s.fsti.checked",
"prims.fst.checked",
"LowStar.Monotonic.Buffer.fsti.checked",
"LowStar.Modifies.fst.checked",
"LowStar.BufferView.Down.fsti.checked",
"FStar.UInt8.f... | [
"lemma"
] | [
"Vale.Interop.Heap_s.interop_heap",
"Vale.Arch.MachineHeap_s.machine_heap",
"Vale.Interop.Heap_s.correct_down",
"Prims.int",
"FStar.Classical.forall_intro",
"Vale.Interop.Types.b8",
"Prims.l_imp",
"Prims.l_and",
"Prims.b2t",
"Prims.op_GreaterThanOrEqual",
"Vale.Interop.Heap_s.addrs_of_mem",
"P... | [] | module Vale.Interop
open FStar.Mul
module List = FStar.List.Tot.Base
module HS = FStar.Monotonic.HyperStack
module HH = FStar.Monotonic.HyperHeap
module MB = LowStar.Monotonic.Buffer
module M = LowStar.Modifies
module DV = LowStar.BufferView.Down
open Vale.Def.Opaque_s
//open Vale.Interop.Base
open Vale.Lib.BufferVie... | false | false | Vale.Interop.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 2,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | null | val up_down_identity_aux
(mem: interop_heap)
(init_heap: machine_heap{correct_down mem init_heap})
(x: int)
: Lemma (requires Map.contains init_heap x)
(ensures Map.sel init_heap x == Map.sel (down_mem mem) x) | [] | Vale.Interop.up_down_identity_aux | {
"file_name": "vale/code/arch/x64/Vale.Interop.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} |
mem: Vale.Interop.Heap_s.interop_heap ->
init_heap: Vale.Arch.MachineHeap_s.machine_heap{Vale.Interop.Heap_s.correct_down mem init_heap} ->
x: Prims.int
-> FStar.Pervasives.Lemma (requires FStar.Map.contains init_heap x)
(ensures FStar.Map.sel init_heap x == FStar.Map.sel (Vale.Interop.down_mem mem... | {
"end_col": 5,
"end_line": 432,
"start_col": 61,
"start_line": 425
} |
FStar.Pervasives.Lemma | val correct_down_p_same_sel (mem: interop_heap) (heap1 heap2: machine_heap) (x: int) (b: b8)
: Lemma
(requires
(x >= addrs_of_mem mem b /\ x < addrs_of_mem mem b + DV.length (get_downview b.bsrc) /\
correct_down_p mem heap1 b /\ correct_down_p mem heap2 b))
(ensures Map.sel heap1 x == ... | [
{
"abbrev": false,
"full_module": "Vale.Lib.BufferViewHelpers",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Def.Opaque_s",
"short_module": null
},
{
"abbrev": true,
"full_module": "LowStar.BufferView.Down",
"short_module": "DV"
},
{
"abbrev": t... | false | let correct_down_p_same_sel
(mem:interop_heap)
(heap1 heap2:machine_heap)
(x:int)
(b:b8) : Lemma
(requires (x >= addrs_of_mem mem b /\ x < addrs_of_mem mem b + DV.length (get_downview b.bsrc)
/\ correct_down_p mem heap1 b /\ correct_down_p mem heap2 b))
(ensures Map.sel heap1 x == Map.sel heap2 x) =
... | val correct_down_p_same_sel (mem: interop_heap) (heap1 heap2: machine_heap) (x: int) (b: b8)
: Lemma
(requires
(x >= addrs_of_mem mem b /\ x < addrs_of_mem mem b + DV.length (get_downview b.bsrc) /\
correct_down_p mem heap1 b /\ correct_down_p mem heap2 b))
(ensures Map.sel heap1 x == ... | false | null | true | let addrs = addrs_of_mem mem in
let i = x - addrs b in
assert (heap1.[ x ] == UInt8.v (Seq.index (DV.as_seq (hs_of_mem mem) (get_downview b.bsrc)) i));
assert (heap2.[ x ] == UInt8.v (Seq.index (DV.as_seq (hs_of_mem mem) (get_downview b.bsrc)) i)) | {
"checked_file": "Vale.Interop.fst.checked",
"dependencies": [
"Vale.Lib.BufferViewHelpers.fst.checked",
"Vale.Def.Opaque_s.fsti.checked",
"prims.fst.checked",
"LowStar.Monotonic.Buffer.fsti.checked",
"LowStar.Modifies.fst.checked",
"LowStar.BufferView.Down.fsti.checked",
"FStar.UInt8.f... | [
"lemma"
] | [
"Vale.Interop.Heap_s.interop_heap",
"Vale.Arch.MachineHeap_s.machine_heap",
"Prims.int",
"Vale.Interop.Types.b8",
"Prims._assert",
"Prims.eq2",
"Prims.l_or",
"FStar.UInt.size",
"FStar.UInt8.n",
"Prims.l_and",
"Prims.b2t",
"Prims.op_GreaterThanOrEqual",
"Prims.op_LessThan",
"Vale.Def.Words_... | [] | module Vale.Interop
open FStar.Mul
module List = FStar.List.Tot.Base
module HS = FStar.Monotonic.HyperStack
module HH = FStar.Monotonic.HyperHeap
module MB = LowStar.Monotonic.Buffer
module M = LowStar.Modifies
module DV = LowStar.BufferView.Down
open Vale.Def.Opaque_s
//open Vale.Interop.Base
open Vale.Lib.BufferVie... | false | false | Vale.Interop.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 2,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | null | val correct_down_p_same_sel (mem: interop_heap) (heap1 heap2: machine_heap) (x: int) (b: b8)
: Lemma
(requires
(x >= addrs_of_mem mem b /\ x < addrs_of_mem mem b + DV.length (get_downview b.bsrc) /\
correct_down_p mem heap1 b /\ correct_down_p mem heap2 b))
(ensures Map.sel heap1 x == ... | [] | Vale.Interop.correct_down_p_same_sel | {
"file_name": "vale/code/arch/x64/Vale.Interop.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} |
mem: Vale.Interop.Heap_s.interop_heap ->
heap1: Vale.Arch.MachineHeap_s.machine_heap ->
heap2: Vale.Arch.MachineHeap_s.machine_heap ->
x: Prims.int ->
b: Vale.Interop.Types.b8
-> FStar.Pervasives.Lemma
(requires
x >= Vale.Interop.Heap_s.addrs_of_mem mem b /\
x <
Vale... | {
"end_col": 97,
"end_line": 418,
"start_col": 48,
"start_line": 414
} |
Prims.GTot | val down_mem_aux
(ptrs: list b8 {list_disjoint_or_eq ptrs})
(mem: interop_heap)
(ps: list b8)
(accu: list b8 {forall p. List.memP p ptrs <==> List.memP p ps \/ List.memP p accu})
(h:
machine_heap
{forall p. {:pattern List.memP p accu} List.memP p accu ==> correct_down... | [
{
"abbrev": false,
"full_module": "Vale.Lib.BufferViewHelpers",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Def.Opaque_s",
"short_module": null
},
{
"abbrev": true,
"full_module": "LowStar.BufferView.Down",
"short_module": "DV"
},
{
"abbrev": t... | false | let rec down_mem_aux
(ptrs:list b8{list_disjoint_or_eq ptrs})
(mem:interop_heap)
(ps:list b8)
(accu:list b8{forall p. List.memP p ptrs <==> List.memP p ps \/ List.memP p accu})
(h:machine_heap{forall p. {:pattern List.memP p accu}
List.memP p accu ==> correct_down_p mem h p}) : GTot
(heap:machine_heap{f... | val down_mem_aux
(ptrs: list b8 {list_disjoint_or_eq ptrs})
(mem: interop_heap)
(ps: list b8)
(accu: list b8 {forall p. List.memP p ptrs <==> List.memP p ps \/ List.memP p accu})
(h:
machine_heap
{forall p. {:pattern List.memP p accu} List.memP p accu ==> correct_down... | false | null | false | match ps with
| [] -> h
| a :: q ->
let new_heap = write_buffer_vale a h mem in
let b = get_downview a.bsrc in
let length = DV.length b in
let contents = DV.as_seq (hs_of_mem mem) b in
let addr = addrs_of_mem mem a in
load_store_write_vale_mem contents length addr 0 h;
correct_down_p_cancel mem h a;
cor... | {
"checked_file": "Vale.Interop.fst.checked",
"dependencies": [
"Vale.Lib.BufferViewHelpers.fst.checked",
"Vale.Def.Opaque_s.fsti.checked",
"prims.fst.checked",
"LowStar.Monotonic.Buffer.fsti.checked",
"LowStar.Modifies.fst.checked",
"LowStar.BufferView.Down.fsti.checked",
"FStar.UInt8.f... | [
"sometrivial"
] | [
"Prims.list",
"Vale.Interop.Types.b8",
"Vale.Interop.Heap_s.list_disjoint_or_eq",
"Vale.Interop.Heap_s.interop_heap",
"Prims.l_Forall",
"Prims.l_iff",
"FStar.List.Tot.Base.memP",
"Prims.l_or",
"Vale.Arch.MachineHeap_s.machine_heap",
"Prims.l_imp",
"Vale.Interop.Heap_s.correct_down_p",
"Vale.In... | [] | module Vale.Interop
open FStar.Mul
module List = FStar.List.Tot.Base
module HS = FStar.Monotonic.HyperStack
module HH = FStar.Monotonic.HyperHeap
module MB = LowStar.Monotonic.Buffer
module M = LowStar.Modifies
module DV = LowStar.BufferView.Down
open Vale.Def.Opaque_s
//open Vale.Interop.Base
open Vale.Lib.BufferVie... | false | false | Vale.Interop.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 2,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | null | val down_mem_aux
(ptrs: list b8 {list_disjoint_or_eq ptrs})
(mem: interop_heap)
(ps: list b8)
(accu: list b8 {forall p. List.memP p ptrs <==> List.memP p ps \/ List.memP p accu})
(h:
machine_heap
{forall p. {:pattern List.memP p accu} List.memP p accu ==> correct_down... | [
"recursion"
] | Vale.Interop.down_mem_aux | {
"file_name": "vale/code/arch/x64/Vale.Interop.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} |
ptrs: Prims.list Vale.Interop.Types.b8 {Vale.Interop.Heap_s.list_disjoint_or_eq ptrs} ->
mem: Vale.Interop.Heap_s.interop_heap ->
ps: Prims.list Vale.Interop.Types.b8 ->
accu:
Prims.list Vale.Interop.Types.b8
{ forall (p: Vale.Interop.Types.b8).
FStar.List.Tot.Base.memP p ptrs... | {
"end_col": 48,
"end_line": 233,
"start_col": 2,
"start_line": 221
} |
FStar.Pervasives.Lemma | val down_up_identity (mem:interop_heap)
: Lemma (mem == up_mem (down_mem mem) mem) | [
{
"abbrev": false,
"full_module": "Vale.Lib.BufferViewHelpers",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Arch.MachineHeap_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Interop.Heap_s",
"short_module": null
},
{
"abbrev"... | false | let down_up_identity mem =
let heap = down_mem mem in
down_up_identity_aux heap (ptrs_of_mem mem) [] mem | val down_up_identity (mem:interop_heap)
: Lemma (mem == up_mem (down_mem mem) mem)
let down_up_identity mem = | false | null | true | let heap = down_mem mem in
down_up_identity_aux heap (ptrs_of_mem mem) [] mem | {
"checked_file": "Vale.Interop.fst.checked",
"dependencies": [
"Vale.Lib.BufferViewHelpers.fst.checked",
"Vale.Def.Opaque_s.fsti.checked",
"prims.fst.checked",
"LowStar.Monotonic.Buffer.fsti.checked",
"LowStar.Modifies.fst.checked",
"LowStar.BufferView.Down.fsti.checked",
"FStar.UInt8.f... | [
"lemma"
] | [
"Vale.Interop.Heap_s.interop_heap",
"Vale.Interop.down_up_identity_aux",
"Vale.Interop.Heap_s.ptrs_of_mem",
"Prims.Nil",
"Vale.Interop.Types.b8",
"Vale.Arch.MachineHeap_s.machine_heap",
"Vale.Interop.Heap_s.correct_down",
"Vale.Interop.down_mem",
"Prims.unit"
] | [] | module Vale.Interop
open FStar.Mul
module List = FStar.List.Tot.Base
module HS = FStar.Monotonic.HyperStack
module HH = FStar.Monotonic.HyperHeap
module MB = LowStar.Monotonic.Buffer
module M = LowStar.Modifies
module DV = LowStar.BufferView.Down
open Vale.Def.Opaque_s
//open Vale.Interop.Base
open Vale.Lib.BufferVie... | false | false | Vale.Interop.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 2,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | null | val down_up_identity (mem:interop_heap)
: Lemma (mem == up_mem (down_mem mem) mem) | [] | Vale.Interop.down_up_identity | {
"file_name": "vale/code/arch/x64/Vale.Interop.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | mem: Vale.Interop.Heap_s.interop_heap
-> FStar.Pervasives.Lemma (ensures mem == Vale.Interop.up_mem (Vale.Interop.down_mem mem) mem) | {
"end_col": 52,
"end_line": 404,
"start_col": 26,
"start_line": 402
} |
FStar.Pervasives.Lemma | val same_unspecified_down
(hs1: HS.mem)
(hs2: HS.mem)
(ptrs:list b8{list_disjoint_or_eq ptrs /\ list_live hs1 ptrs /\ list_live hs2 ptrs})
: Lemma (
let mem1 = mem_of_hs_roots ptrs hs1 in
let mem2 = mem_of_hs_roots ptrs hs2 in
let addrs = addrs_of_mem mem1 in
let heap1 = down_mem mem1 in
... | [
{
"abbrev": false,
"full_module": "Vale.Lib.BufferViewHelpers",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Arch.MachineHeap_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Interop.Heap_s",
"short_module": null
},
{
"abbrev"... | false | let same_unspecified_down hs1 hs2 ptrs =
Classical.forall_intro (same_unspecified_down_aux hs1 hs2 ptrs) | val same_unspecified_down
(hs1: HS.mem)
(hs2: HS.mem)
(ptrs:list b8{list_disjoint_or_eq ptrs /\ list_live hs1 ptrs /\ list_live hs2 ptrs})
: Lemma (
let mem1 = mem_of_hs_roots ptrs hs1 in
let mem2 = mem_of_hs_roots ptrs hs2 in
let addrs = addrs_of_mem mem1 in
let heap1 = down_mem mem1 in
... | false | null | true | Classical.forall_intro (same_unspecified_down_aux hs1 hs2 ptrs) | {
"checked_file": "Vale.Interop.fst.checked",
"dependencies": [
"Vale.Lib.BufferViewHelpers.fst.checked",
"Vale.Def.Opaque_s.fsti.checked",
"prims.fst.checked",
"LowStar.Monotonic.Buffer.fsti.checked",
"LowStar.Modifies.fst.checked",
"LowStar.BufferView.Down.fsti.checked",
"FStar.UInt8.f... | [
"lemma"
] | [
"FStar.Monotonic.HyperStack.mem",
"Prims.list",
"Vale.Interop.Types.b8",
"Prims.l_and",
"Vale.Interop.Heap_s.list_disjoint_or_eq",
"Vale.Interop.Heap_s.list_live",
"FStar.Classical.forall_intro",
"Prims.int",
"Prims.l_imp",
"Prims.b2t",
"Prims.op_Negation",
"Vale.Interop.valid_addr",
"Vale.I... | [] | module Vale.Interop
open FStar.Mul
module List = FStar.List.Tot.Base
module HS = FStar.Monotonic.HyperStack
module HH = FStar.Monotonic.HyperHeap
module MB = LowStar.Monotonic.Buffer
module M = LowStar.Modifies
module DV = LowStar.BufferView.Down
open Vale.Def.Opaque_s
//open Vale.Interop.Base
open Vale.Lib.BufferVie... | false | false | Vale.Interop.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 2,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | null | val same_unspecified_down
(hs1: HS.mem)
(hs2: HS.mem)
(ptrs:list b8{list_disjoint_or_eq ptrs /\ list_live hs1 ptrs /\ list_live hs2 ptrs})
: Lemma (
let mem1 = mem_of_hs_roots ptrs hs1 in
let mem2 = mem_of_hs_roots ptrs hs2 in
let addrs = addrs_of_mem mem1 in
let heap1 = down_mem mem1 in
... | [] | Vale.Interop.same_unspecified_down | {
"file_name": "vale/code/arch/x64/Vale.Interop.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} |
hs1: FStar.Monotonic.HyperStack.mem ->
hs2: FStar.Monotonic.HyperStack.mem ->
ptrs:
Prims.list Vale.Interop.Types.b8
{ Vale.Interop.Heap_s.list_disjoint_or_eq ptrs /\ Vale.Interop.Heap_s.list_live hs1 ptrs /\
Vale.Interop.Heap_s.list_live hs2 ptrs }
-> FStar.Pervasives.Lemma
(... | {
"end_col": 65,
"end_line": 349,
"start_col": 2,
"start_line": 349
} |
Prims.Tot | val down_mem: down_mem_t | [
{
"abbrev": false,
"full_module": "Vale.Lib.BufferViewHelpers",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Arch.MachineHeap_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Interop.Heap_s",
"short_module": null
},
{
"abbrev"... | false | let down_mem mem =
(* Dummy heap *)
let heap = FStar.Map.const 0 in
let heap = Map.restrict Set.empty heap in
let ptrs = ptrs_of_mem mem in
let heap_f = down_mem_aux ptrs mem ptrs [] heap in
let aux (x:int) : Lemma (Set.mem x (addrs_set mem) <==> Set.mem x (Map.domain heap_f)) =
addrs_set_lemma_all ();
... | val down_mem: down_mem_t
let down_mem mem = | false | null | false | let heap = FStar.Map.const 0 in
let heap = Map.restrict Set.empty heap in
let ptrs = ptrs_of_mem mem in
let heap_f = down_mem_aux ptrs mem ptrs [] heap in
let aux (x: int) : Lemma (Set.mem x (addrs_set mem) <==> Set.mem x (Map.domain heap_f)) =
addrs_set_lemma_all ();
lemma_down_mem_aux_domain ptrs mem ptrs [] heap... | {
"checked_file": "Vale.Interop.fst.checked",
"dependencies": [
"Vale.Lib.BufferViewHelpers.fst.checked",
"Vale.Def.Opaque_s.fsti.checked",
"prims.fst.checked",
"LowStar.Monotonic.Buffer.fsti.checked",
"LowStar.Modifies.fst.checked",
"LowStar.BufferView.Down.fsti.checked",
"FStar.UInt8.f... | [
"total"
] | [
"Vale.Interop.Heap_s.interop_heap",
"Prims.unit",
"FStar.Classical.forall_intro",
"Prims.int",
"Prims.l_iff",
"Prims.b2t",
"FStar.Set.mem",
"Vale.Interop.Heap_s.addrs_set",
"FStar.Map.domain",
"Vale.Def.Types_s.nat8",
"Prims.l_True",
"Prims.squash",
"Vale.Def.Words_s.nat8",
"Prims.Nil",
... | [] | module Vale.Interop
open FStar.Mul
module List = FStar.List.Tot.Base
module HS = FStar.Monotonic.HyperStack
module HH = FStar.Monotonic.HyperHeap
module MB = LowStar.Monotonic.Buffer
module M = LowStar.Modifies
module DV = LowStar.BufferView.Down
open Vale.Def.Opaque_s
//open Vale.Interop.Base
open Vale.Lib.BufferVie... | false | true | Vale.Interop.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 2,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | null | val down_mem: down_mem_t | [] | Vale.Interop.down_mem | {
"file_name": "vale/code/arch/x64/Vale.Interop.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | Vale.Interop.Heap_s.down_mem_t | {
"end_col": 8,
"end_line": 293,
"start_col": 18,
"start_line": 283
} |
FStar.Pervasives.Lemma | val up_down_identity
(mem:interop_heap)
(heap:machine_heap{Set.equal (addrs_set mem) (Map.domain heap)})
: Lemma
(requires
(forall x.{:pattern Map.sel heap x \/ Map.sel (down_mem mem) x}
not (Map.contains heap x) ==> Map.sel heap x == Map.sel (down_mem mem) x))
(ensures (down_mem... | [
{
"abbrev": false,
"full_module": "Vale.Lib.BufferViewHelpers",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Arch.MachineHeap_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Interop.Heap_s",
"short_module": null
},
{
"abbrev"... | false | let up_down_identity mem heap =
let new_heap = down_mem (up_mem heap mem) in
same_unspecified_down (hs_of_mem mem) (hs_of_mem (up_mem heap mem)) (ptrs_of_mem mem);
let aux (x:int) : Lemma
(requires Map.contains heap x)
(ensures Map.sel heap x == Map.sel new_heap x) =
up_down_identity_aux (up_mem heap ... | val up_down_identity
(mem:interop_heap)
(heap:machine_heap{Set.equal (addrs_set mem) (Map.domain heap)})
: Lemma
(requires
(forall x.{:pattern Map.sel heap x \/ Map.sel (down_mem mem) x}
not (Map.contains heap x) ==> Map.sel heap x == Map.sel (down_mem mem) x))
(ensures (down_mem... | false | null | true | let new_heap = down_mem (up_mem heap mem) in
same_unspecified_down (hs_of_mem mem) (hs_of_mem (up_mem heap mem)) (ptrs_of_mem mem);
let aux (x: int)
: Lemma (requires Map.contains heap x) (ensures Map.sel heap x == Map.sel new_heap x) =
up_down_identity_aux (up_mem heap mem) heap x
in
Classical.forall_intro (Clas... | {
"checked_file": "Vale.Interop.fst.checked",
"dependencies": [
"Vale.Lib.BufferViewHelpers.fst.checked",
"Vale.Def.Opaque_s.fsti.checked",
"prims.fst.checked",
"LowStar.Monotonic.Buffer.fsti.checked",
"LowStar.Modifies.fst.checked",
"LowStar.BufferView.Down.fsti.checked",
"FStar.UInt8.f... | [
"lemma"
] | [
"Vale.Interop.Heap_s.interop_heap",
"Vale.Arch.MachineHeap_s.machine_heap",
"FStar.Set.equal",
"Prims.int",
"Vale.Interop.Heap_s.addrs_set",
"FStar.Map.domain",
"Vale.Def.Types_s.nat8",
"Prims._assert",
"FStar.Map.equal",
"Prims.unit",
"FStar.Classical.forall_intro",
"Prims.l_imp",
"Prims.b2... | [] | module Vale.Interop
open FStar.Mul
module List = FStar.List.Tot.Base
module HS = FStar.Monotonic.HyperStack
module HH = FStar.Monotonic.HyperHeap
module MB = LowStar.Monotonic.Buffer
module M = LowStar.Modifies
module DV = LowStar.BufferView.Down
open Vale.Def.Opaque_s
//open Vale.Interop.Base
open Vale.Lib.BufferVie... | false | false | Vale.Interop.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 2,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | null | val up_down_identity
(mem:interop_heap)
(heap:machine_heap{Set.equal (addrs_set mem) (Map.domain heap)})
: Lemma
(requires
(forall x.{:pattern Map.sel heap x \/ Map.sel (down_mem mem) x}
not (Map.contains heap x) ==> Map.sel heap x == Map.sel (down_mem mem) x))
(ensures (down_mem... | [] | Vale.Interop.up_down_identity | {
"file_name": "vale/code/arch/x64/Vale.Interop.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} |
mem: Vale.Interop.Heap_s.interop_heap ->
heap:
Vale.Arch.MachineHeap_s.machine_heap
{FStar.Set.equal (Vale.Interop.Heap_s.addrs_set mem) (FStar.Map.domain heap)}
-> FStar.Pervasives.Lemma
(requires
forall (x: Prims.int).
{:pattern FStar.Map.sel heap x\/FStar.Map.sel (Val... | {
"end_col": 34,
"end_line": 442,
"start_col": 31,
"start_line": 434
} |
FStar.Pervasives.Lemma | val lemma_write_buffer_domain (a: b8) (heap: machine_heap) (mem: interop_heap)
: Lemma
(Set.equal (Set.union (Map.domain heap) (addrs_ptr 0 (addrs_of_mem mem) a Set.empty))
(Map.domain (write_buffer_vale a heap mem))) | [
{
"abbrev": false,
"full_module": "Vale.Lib.BufferViewHelpers",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Def.Opaque_s",
"short_module": null
},
{
"abbrev": true,
"full_module": "LowStar.BufferView.Down",
"short_module": "DV"
},
{
"abbrev": t... | false | let lemma_write_buffer_domain (a:b8) (heap:machine_heap) (mem:interop_heap) : Lemma
(Set.equal
(Set.union (Map.domain heap) (addrs_ptr 0 (addrs_of_mem mem) a Set.empty))
(Map.domain (write_buffer_vale a heap mem))) =
let new_heap = write_buffer_vale a heap mem in
let s1 = Map.domain heap in
let s2... | val lemma_write_buffer_domain (a: b8) (heap: machine_heap) (mem: interop_heap)
: Lemma
(Set.equal (Set.union (Map.domain heap) (addrs_ptr 0 (addrs_of_mem mem) a Set.empty))
(Map.domain (write_buffer_vale a heap mem)))
let lemma_write_buffer_domain (a: b8) (heap: machine_heap) (mem: interop_heap)
: L... | false | null | true | let new_heap = write_buffer_vale a heap mem in
let s1 = Map.domain heap in
let s2 = addrs_ptr 0 (addrs_of_mem mem) a Set.empty in
let s3 = Map.domain new_heap in
let b = get_downview a.bsrc in
let length = DV.length b in
let contents = DV.as_seq (hs_of_mem mem) b in
let addr = addrs_of_mem mem a in
domain_write_vale_me... | {
"checked_file": "Vale.Interop.fst.checked",
"dependencies": [
"Vale.Lib.BufferViewHelpers.fst.checked",
"Vale.Def.Opaque_s.fsti.checked",
"prims.fst.checked",
"LowStar.Monotonic.Buffer.fsti.checked",
"LowStar.Modifies.fst.checked",
"LowStar.BufferView.Down.fsti.checked",
"FStar.UInt8.f... | [
"lemma"
] | [
"Vale.Interop.Types.b8",
"Vale.Arch.MachineHeap_s.machine_heap",
"Vale.Interop.Heap_s.interop_heap",
"Vale.Interop.monotone_domain_write_vale_mem",
"Prims.unit",
"FStar.Classical.forall_intro",
"Prims.int",
"Prims.l_iff",
"Prims.b2t",
"FStar.Set.mem",
"Vale.Interop.Heap_s.addrs_ptr",
"Vale.Int... | [] | module Vale.Interop
open FStar.Mul
module List = FStar.List.Tot.Base
module HS = FStar.Monotonic.HyperStack
module HH = FStar.Monotonic.HyperHeap
module MB = LowStar.Monotonic.Buffer
module M = LowStar.Modifies
module DV = LowStar.BufferView.Down
open Vale.Def.Opaque_s
//open Vale.Interop.Base
open Vale.Lib.BufferVie... | false | false | Vale.Interop.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 2,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | null | val lemma_write_buffer_domain (a: b8) (heap: machine_heap) (mem: interop_heap)
: Lemma
(Set.equal (Set.union (Map.domain heap) (addrs_ptr 0 (addrs_of_mem mem) a Set.empty))
(Map.domain (write_buffer_vale a heap mem))) | [] | Vale.Interop.lemma_write_buffer_domain | {
"file_name": "vale/code/arch/x64/Vale.Interop.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} |
a: Vale.Interop.Types.b8 ->
heap: Vale.Arch.MachineHeap_s.machine_heap ->
mem: Vale.Interop.Heap_s.interop_heap
-> FStar.Pervasives.Lemma
(ensures
FStar.Set.equal (FStar.Set.union (FStar.Map.domain heap)
(Vale.Interop.Heap_s.addrs_ptr 0
(Vale.Interop.Heap_s.addrs_of_... | {
"end_col": 61,
"end_line": 250,
"start_col": 51,
"start_line": 238
} |
FStar.Pervasives.Lemma | val update_buffer_up_mem
(mem:interop_heap)
(b:b8{List.memP b (ptrs_of_mem mem)})
(heap1:machine_heap{correct_down mem heap1})
(heap2:machine_heap{Set.equal (Map.domain heap1) (Map.domain heap2)})
: Lemma
(requires
(forall x.{:pattern heap1.[x] \/ heap2.[x]}
x < addrs_of_mem mem... | [
{
"abbrev": false,
"full_module": "Vale.Lib.BufferViewHelpers",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Arch.MachineHeap_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Interop.Heap_s",
"short_module": null
},
{
"abbrev"... | false | let update_buffer_up_mem m b h1 h2 =
let ptrs = ptrs_of_mem m in
update_buffer_up_mem_aux h1 h2 ptrs [] b m | val update_buffer_up_mem
(mem:interop_heap)
(b:b8{List.memP b (ptrs_of_mem mem)})
(heap1:machine_heap{correct_down mem heap1})
(heap2:machine_heap{Set.equal (Map.domain heap1) (Map.domain heap2)})
: Lemma
(requires
(forall x.{:pattern heap1.[x] \/ heap2.[x]}
x < addrs_of_mem mem... | false | null | true | let ptrs = ptrs_of_mem m in
update_buffer_up_mem_aux h1 h2 ptrs [] b m | {
"checked_file": "Vale.Interop.fst.checked",
"dependencies": [
"Vale.Lib.BufferViewHelpers.fst.checked",
"Vale.Def.Opaque_s.fsti.checked",
"prims.fst.checked",
"LowStar.Monotonic.Buffer.fsti.checked",
"LowStar.Modifies.fst.checked",
"LowStar.BufferView.Down.fsti.checked",
"FStar.UInt8.f... | [
"lemma"
] | [
"Vale.Interop.Heap_s.interop_heap",
"Vale.Interop.Types.b8",
"FStar.List.Tot.Base.memP",
"Vale.Interop.Heap_s.ptrs_of_mem",
"Vale.Arch.MachineHeap_s.machine_heap",
"Vale.Interop.Heap_s.correct_down",
"FStar.Set.equal",
"Prims.int",
"FStar.Map.domain",
"Vale.Def.Types_s.nat8",
"Vale.Interop.updat... | [] | module Vale.Interop
open FStar.Mul
module List = FStar.List.Tot.Base
module HS = FStar.Monotonic.HyperStack
module HH = FStar.Monotonic.HyperHeap
module MB = LowStar.Monotonic.Buffer
module M = LowStar.Modifies
module DV = LowStar.BufferView.Down
open Vale.Def.Opaque_s
//open Vale.Interop.Base
open Vale.Lib.BufferVie... | false | false | Vale.Interop.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 1,
"initial_ifuel": 1,
"max_fuel": 1,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | null | val update_buffer_up_mem
(mem:interop_heap)
(b:b8{List.memP b (ptrs_of_mem mem)})
(heap1:machine_heap{correct_down mem heap1})
(heap2:machine_heap{Set.equal (Map.domain heap1) (Map.domain heap2)})
: Lemma
(requires
(forall x.{:pattern heap1.[x] \/ heap2.[x]}
x < addrs_of_mem mem... | [] | Vale.Interop.update_buffer_up_mem | {
"file_name": "vale/code/arch/x64/Vale.Interop.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} |
mem: Vale.Interop.Heap_s.interop_heap ->
b: Vale.Interop.Types.b8{FStar.List.Tot.Base.memP b (Vale.Interop.Heap_s.ptrs_of_mem mem)} ->
heap1: Vale.Arch.MachineHeap_s.machine_heap{Vale.Interop.Heap_s.correct_down mem heap1} ->
heap2:
Vale.Arch.MachineHeap_s.machine_heap
{FStar.Set.equal (F... | {
"end_col": 44,
"end_line": 493,
"start_col": 36,
"start_line": 491
} |
Prims.Tot | val write_vale_mem
(contents: Seq.seq UInt8.t)
(length: nat{length = FStar.Seq.Base.length contents})
(addr: _)
(i: nat{i <= length})
(curr_heap:
machine_heap
{ forall j. {:pattern (Seq.index contents j)}
0 <= j /\ j < i ==> curr_heap.[ addr + j ] == U... | [
{
"abbrev": false,
"full_module": "Vale.Lib.BufferViewHelpers",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Def.Opaque_s",
"short_module": null
},
{
"abbrev": true,
"full_module": "LowStar.BufferView.Down",
"short_module": "DV"
},
{
"abbrev": t... | false | let rec write_vale_mem (contents:Seq.seq UInt8.t) (length:nat{length = FStar.Seq.Base.length contents}) addr (i:nat{i <= length})
(curr_heap:machine_heap{forall j. {:pattern (Seq.index contents j)}
0 <= j /\ j < i ==> curr_heap.[addr+j] == UInt8.v (Seq.index contents j)})
: Tot machine_heap (decreases (... | val write_vale_mem
(contents: Seq.seq UInt8.t)
(length: nat{length = FStar.Seq.Base.length contents})
(addr: _)
(i: nat{i <= length})
(curr_heap:
machine_heap
{ forall j. {:pattern (Seq.index contents j)}
0 <= j /\ j < i ==> curr_heap.[ addr + j ] == U... | false | null | false | if i >= length
then curr_heap
else
(let heap = curr_heap.[ addr + i ] <- UInt8.v (FStar.Seq.index contents i) in
write_vale_mem contents length addr (i + 1) heap) | {
"checked_file": "Vale.Interop.fst.checked",
"dependencies": [
"Vale.Lib.BufferViewHelpers.fst.checked",
"Vale.Def.Opaque_s.fsti.checked",
"prims.fst.checked",
"LowStar.Monotonic.Buffer.fsti.checked",
"LowStar.Modifies.fst.checked",
"LowStar.BufferView.Down.fsti.checked",
"FStar.UInt8.f... | [
"total",
""
] | [
"FStar.Seq.Base.seq",
"FStar.UInt8.t",
"Prims.nat",
"Prims.b2t",
"Prims.op_Equality",
"FStar.Seq.Base.length",
"Prims.int",
"Prims.op_LessThanOrEqual",
"Vale.Arch.MachineHeap_s.machine_heap",
"Prims.l_Forall",
"Prims.l_and",
"Prims.op_GreaterThanOrEqual",
"Prims.op_LessThan",
"Prims.l_imp"... | [] | module Vale.Interop
open FStar.Mul
module List = FStar.List.Tot.Base
module HS = FStar.Monotonic.HyperStack
module HH = FStar.Monotonic.HyperHeap
module MB = LowStar.Monotonic.Buffer
module M = LowStar.Modifies
module DV = LowStar.BufferView.Down
open Vale.Def.Opaque_s
//open Vale.Interop.Base
open Vale.Lib.BufferVie... | false | false | Vale.Interop.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 2,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | null | val write_vale_mem
(contents: Seq.seq UInt8.t)
(length: nat{length = FStar.Seq.Base.length contents})
(addr: _)
(i: nat{i <= length})
(curr_heap:
machine_heap
{ forall j. {:pattern (Seq.index contents j)}
0 <= j /\ j < i ==> curr_heap.[ addr + j ] == U... | [
"recursion"
] | Vale.Interop.write_vale_mem | {
"file_name": "vale/code/arch/x64/Vale.Interop.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} |
contents: FStar.Seq.Base.seq FStar.UInt8.t ->
length: Prims.nat{length = FStar.Seq.Base.length contents} ->
addr: Prims.int ->
i: Prims.nat{i <= length} ->
curr_heap:
Vale.Arch.MachineHeap_s.machine_heap
{ forall (j: i: Prims.int{i >= 0 /\ i < FStar.Seq.Base.length contents}).
... | {
"end_col": 3,
"end_line": 27,
"start_col": 2,
"start_line": 23
} |
FStar.Pervasives.Lemma | val frame_down_mem_aux
(ptrs: list b8 {list_disjoint_or_eq ptrs})
(mem: interop_heap)
(ps: list b8)
(accu: list b8 {forall p. List.memP p ptrs <==> List.memP p ps \/ List.memP p accu})
(h:
machine_heap
{forall p. {:pattern List.memP p accu} List.memP p accu ==> correc... | [
{
"abbrev": false,
"full_module": "Vale.Lib.BufferViewHelpers",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Def.Opaque_s",
"short_module": null
},
{
"abbrev": true,
"full_module": "LowStar.BufferView.Down",
"short_module": "DV"
},
{
"abbrev": t... | false | let rec frame_down_mem_aux (ptrs:list b8{list_disjoint_or_eq ptrs})
(mem:interop_heap)
(ps:list b8)
(accu:list b8{forall p. List.memP p ptrs <==> List.memP p ps \/ List.memP p accu})
(h:machine_heap{forall p. {:pattern List.memP p accu}
List.memP p accu ==> correct_down_p mem h p})
(i:int) : Lemma
(requ... | val frame_down_mem_aux
(ptrs: list b8 {list_disjoint_or_eq ptrs})
(mem: interop_heap)
(ps: list b8)
(accu: list b8 {forall p. List.memP p ptrs <==> List.memP p ps \/ List.memP p accu})
(h:
machine_heap
{forall p. {:pattern List.memP p accu} List.memP p accu ==> correc... | false | null | true | match ps with
| [] -> ()
| a :: q ->
let new_heap = write_buffer_vale a h mem in
let b = get_downview a.bsrc in
let length = DV.length b in
let contents = DV.as_seq (hs_of_mem mem) b in
let addr = addrs_of_mem mem a in
load_store_write_vale_mem contents length addr 0 h;
correct_down_p_cancel mem h a;
co... | {
"checked_file": "Vale.Interop.fst.checked",
"dependencies": [
"Vale.Lib.BufferViewHelpers.fst.checked",
"Vale.Def.Opaque_s.fsti.checked",
"prims.fst.checked",
"LowStar.Monotonic.Buffer.fsti.checked",
"LowStar.Modifies.fst.checked",
"LowStar.BufferView.Down.fsti.checked",
"FStar.UInt8.f... | [
"lemma"
] | [
"Prims.list",
"Vale.Interop.Types.b8",
"Vale.Interop.Heap_s.list_disjoint_or_eq",
"Vale.Interop.Heap_s.interop_heap",
"Prims.l_Forall",
"Prims.l_iff",
"FStar.List.Tot.Base.memP",
"Prims.l_or",
"Vale.Arch.MachineHeap_s.machine_heap",
"Prims.l_imp",
"Vale.Interop.Heap_s.correct_down_p",
"Prims.i... | [] | module Vale.Interop
open FStar.Mul
module List = FStar.List.Tot.Base
module HS = FStar.Monotonic.HyperStack
module HH = FStar.Monotonic.HyperHeap
module MB = LowStar.Monotonic.Buffer
module M = LowStar.Modifies
module DV = LowStar.BufferView.Down
open Vale.Def.Opaque_s
//open Vale.Interop.Base
open Vale.Lib.BufferVie... | false | false | Vale.Interop.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 2,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | null | val frame_down_mem_aux
(ptrs: list b8 {list_disjoint_or_eq ptrs})
(mem: interop_heap)
(ps: list b8)
(accu: list b8 {forall p. List.memP p ptrs <==> List.memP p ps \/ List.memP p accu})
(h:
machine_heap
{forall p. {:pattern List.memP p accu} List.memP p accu ==> correc... | [
"recursion"
] | Vale.Interop.frame_down_mem_aux | {
"file_name": "vale/code/arch/x64/Vale.Interop.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} |
ptrs: Prims.list Vale.Interop.Types.b8 {Vale.Interop.Heap_s.list_disjoint_or_eq ptrs} ->
mem: Vale.Interop.Heap_s.interop_heap ->
ps: Prims.list Vale.Interop.Types.b8 ->
accu:
Prims.list Vale.Interop.Types.b8
{ forall (p: Vale.Interop.Types.b8).
FStar.List.Tot.Base.memP p ptrs... | {
"end_col": 51,
"end_line": 320,
"start_col": 2,
"start_line": 307
} |
FStar.Pervasives.Lemma | val addrs_set_lemma_aux (addrs: addr_map) (ptrs: list b8) (acc: Set.set int) (x: int)
: Lemma (requires True)
(ensures
Set.mem x (List.fold_right_gtot ptrs (addrs_ptr 0 addrs) acc) <==>
((exists (b: b8{List.memP b ptrs}).
addrs b <= x /\ x < addrs b + DV.length (get_downview b.bs... | [
{
"abbrev": false,
"full_module": "Vale.Lib.BufferViewHelpers",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Def.Opaque_s",
"short_module": null
},
{
"abbrev": true,
"full_module": "LowStar.BufferView.Down",
"short_module": "DV"
},
{
"abbrev": t... | false | let rec addrs_set_lemma_aux (addrs:addr_map) (ptrs:list b8) (acc:Set.set int) (x:int) : Lemma
(requires True)
(ensures Set.mem x (List.fold_right_gtot ptrs (addrs_ptr 0 addrs) acc) <==>
((exists (b:b8{List.memP b ptrs}).
addrs b <= x /\ x < addrs b + DV.length (get_downview b.bsrc)) \/ Set.mem x acc)) =
... | val addrs_set_lemma_aux (addrs: addr_map) (ptrs: list b8) (acc: Set.set int) (x: int)
: Lemma (requires True)
(ensures
Set.mem x (List.fold_right_gtot ptrs (addrs_ptr 0 addrs) acc) <==>
((exists (b: b8{List.memP b ptrs}).
addrs b <= x /\ x < addrs b + DV.length (get_downview b.bs... | false | null | true | match ptrs with
| [] -> ()
| a :: q ->
let acc' = List.fold_right_gtot q (addrs_ptr 0 addrs) acc in
addrs_ptr_lemma 0 addrs a acc' x;
addrs_set_lemma_aux addrs q acc x | {
"checked_file": "Vale.Interop.fst.checked",
"dependencies": [
"Vale.Lib.BufferViewHelpers.fst.checked",
"Vale.Def.Opaque_s.fsti.checked",
"prims.fst.checked",
"LowStar.Monotonic.Buffer.fsti.checked",
"LowStar.Modifies.fst.checked",
"LowStar.BufferView.Down.fsti.checked",
"FStar.UInt8.f... | [
"lemma"
] | [
"Vale.Interop.Types.addr_map",
"Prims.list",
"Vale.Interop.Types.b8",
"FStar.Set.set",
"Prims.int",
"Vale.Interop.addrs_set_lemma_aux",
"Prims.unit",
"Vale.Interop.addrs_ptr_lemma",
"FStar.List.Tot.Base.fold_right_gtot",
"Vale.Interop.Heap_s.addrs_ptr",
"Prims.l_True",
"Prims.squash",
"Prims... | [] | module Vale.Interop
open FStar.Mul
module List = FStar.List.Tot.Base
module HS = FStar.Monotonic.HyperStack
module HH = FStar.Monotonic.HyperHeap
module MB = LowStar.Monotonic.Buffer
module M = LowStar.Modifies
module DV = LowStar.BufferView.Down
open Vale.Def.Opaque_s
//open Vale.Interop.Base
open Vale.Lib.BufferVie... | false | false | Vale.Interop.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 2,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | null | val addrs_set_lemma_aux (addrs: addr_map) (ptrs: list b8) (acc: Set.set int) (x: int)
: Lemma (requires True)
(ensures
Set.mem x (List.fold_right_gtot ptrs (addrs_ptr 0 addrs) acc) <==>
((exists (b: b8{List.memP b ptrs}).
addrs b <= x /\ x < addrs b + DV.length (get_downview b.bs... | [
"recursion"
] | Vale.Interop.addrs_set_lemma_aux | {
"file_name": "vale/code/arch/x64/Vale.Interop.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} |
addrs: Vale.Interop.Types.addr_map ->
ptrs: Prims.list Vale.Interop.Types.b8 ->
acc: FStar.Set.set Prims.int ->
x: Prims.int
-> FStar.Pervasives.Lemma
(ensures
FStar.Set.mem x
(FStar.List.Tot.Base.fold_right_gtot ptrs (Vale.Interop.Heap_s.addrs_ptr 0 addrs) acc) <==>
(exists (... | {
"end_col": 37,
"end_line": 194,
"start_col": 2,
"start_line": 189
} |
FStar.Pervasives.Lemma | val frame_write_vale_mem
(contents: Seq.seq UInt8.t)
(length: nat{length = FStar.Seq.Base.length contents})
(addr: _)
(i: nat{i <= length})
(curr_heap:
machine_heap
{ forall j. {:pattern (Seq.index contents j)}
0 <= j /\ j < i ==> curr_heap.[ addr + j ... | [
{
"abbrev": false,
"full_module": "Vale.Lib.BufferViewHelpers",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Def.Opaque_s",
"short_module": null
},
{
"abbrev": true,
"full_module": "LowStar.BufferView.Down",
"short_module": "DV"
},
{
"abbrev": t... | false | let rec frame_write_vale_mem
(contents:Seq.seq UInt8.t)
(length:nat{length = FStar.Seq.Base.length contents})
addr
(i:nat{i <= length})
(curr_heap:machine_heap{forall j. {:pattern (Seq.index contents j)}
0 <= j /\ j < i ==> curr_heap.[addr + j] == UInt8.v (Seq.index contents j)})
(j:int) : Lemma
(requ... | val frame_write_vale_mem
(contents: Seq.seq UInt8.t)
(length: nat{length = FStar.Seq.Base.length contents})
(addr: _)
(i: nat{i <= length})
(curr_heap:
machine_heap
{ forall j. {:pattern (Seq.index contents j)}
0 <= j /\ j < i ==> curr_heap.[ addr + j ... | false | null | true | if i >= length
then ()
else
(let heap = curr_heap.[ addr + i ] <- UInt8.v (FStar.Seq.index contents i) in
frame_write_vale_mem contents length addr (i + 1) heap j) | {
"checked_file": "Vale.Interop.fst.checked",
"dependencies": [
"Vale.Lib.BufferViewHelpers.fst.checked",
"Vale.Def.Opaque_s.fsti.checked",
"prims.fst.checked",
"LowStar.Monotonic.Buffer.fsti.checked",
"LowStar.Modifies.fst.checked",
"LowStar.BufferView.Down.fsti.checked",
"FStar.UInt8.f... | [
"lemma",
""
] | [
"FStar.Seq.Base.seq",
"FStar.UInt8.t",
"Prims.nat",
"Prims.b2t",
"Prims.op_Equality",
"FStar.Seq.Base.length",
"Prims.int",
"Prims.op_LessThanOrEqual",
"Vale.Arch.MachineHeap_s.machine_heap",
"Prims.l_Forall",
"Prims.l_and",
"Prims.op_GreaterThanOrEqual",
"Prims.op_LessThan",
"Prims.l_imp"... | [] | module Vale.Interop
open FStar.Mul
module List = FStar.List.Tot.Base
module HS = FStar.Monotonic.HyperStack
module HH = FStar.Monotonic.HyperHeap
module MB = LowStar.Monotonic.Buffer
module M = LowStar.Modifies
module DV = LowStar.BufferView.Down
open Vale.Def.Opaque_s
//open Vale.Interop.Base
open Vale.Lib.BufferVie... | false | false | Vale.Interop.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 2,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | null | val frame_write_vale_mem
(contents: Seq.seq UInt8.t)
(length: nat{length = FStar.Seq.Base.length contents})
(addr: _)
(i: nat{i <= length})
(curr_heap:
machine_heap
{ forall j. {:pattern (Seq.index contents j)}
0 <= j /\ j < i ==> curr_heap.[ addr + j ... | [
"recursion"
] | Vale.Interop.frame_write_vale_mem | {
"file_name": "vale/code/arch/x64/Vale.Interop.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} |
contents: FStar.Seq.Base.seq FStar.UInt8.t ->
length: Prims.nat{length = FStar.Seq.Base.length contents} ->
addr: Prims.int ->
i: Prims.nat{i <= length} ->
curr_heap:
Vale.Arch.MachineHeap_s.machine_heap
{ forall (j: i: Prims.int{i >= 0 /\ i < FStar.Seq.Base.length contents}).
... | {
"end_col": 5,
"end_line": 45,
"start_col": 4,
"start_line": 41
} |
FStar.Pervasives.Lemma | val correct_down_p_cancel (mem: interop_heap) (heap: _) (p: b8)
: Lemma
(forall p'.
p == p' ==>
(let b = get_downview p.bsrc in
let length = DV.length b in
let contents = DV.as_seq (hs_of_mem mem) b in
let addr = addrs_of_mem mem p in
let new_heap = write_... | [
{
"abbrev": false,
"full_module": "Vale.Lib.BufferViewHelpers",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Def.Opaque_s",
"short_module": null
},
{
"abbrev": true,
"full_module": "LowStar.BufferView.Down",
"short_module": "DV"
},
{
"abbrev": t... | false | let correct_down_p_cancel (mem:interop_heap) heap (p:b8) : Lemma
(forall p'. p == p' ==>
(let b = get_downview p.bsrc in
let length = DV.length b in
let contents = DV.as_seq (hs_of_mem mem) b in
let addr = addrs_of_mem mem p in
let new_heap = write_vale_mem contents length addr 0 heap in... | val correct_down_p_cancel (mem: interop_heap) (heap: _) (p: b8)
: Lemma
(forall p'.
p == p' ==>
(let b = get_downview p.bsrc in
let length = DV.length b in
let contents = DV.as_seq (hs_of_mem mem) b in
let addr = addrs_of_mem mem p in
let new_heap = write_... | false | null | true | let rec aux (p': b8)
: Lemma
(p == p' ==>
(let b = get_downview p.bsrc in
let length = DV.length b in
let contents = DV.as_seq (hs_of_mem mem) b in
let addr = addrs_of_mem mem p in
let new_heap = write_vale_mem contents length addr 0 heap in
correct_down_p mem new_h... | {
"checked_file": "Vale.Interop.fst.checked",
"dependencies": [
"Vale.Lib.BufferViewHelpers.fst.checked",
"Vale.Def.Opaque_s.fsti.checked",
"prims.fst.checked",
"LowStar.Monotonic.Buffer.fsti.checked",
"LowStar.Modifies.fst.checked",
"LowStar.BufferView.Down.fsti.checked",
"FStar.UInt8.f... | [
"lemma"
] | [
"Vale.Interop.Heap_s.interop_heap",
"Vale.Arch.MachineHeap_s.machine_heap",
"Vale.Interop.Types.b8",
"FStar.Classical.forall_intro",
"Prims.l_imp",
"Prims.eq2",
"Vale.Interop.Heap_s.correct_down_p",
"Vale.Interop.write_vale_mem",
"LowStar.BufferView.Down.as_seq",
"FStar.UInt8.t",
"Vale.Interop.H... | [] | module Vale.Interop
open FStar.Mul
module List = FStar.List.Tot.Base
module HS = FStar.Monotonic.HyperStack
module HH = FStar.Monotonic.HyperHeap
module MB = LowStar.Monotonic.Buffer
module M = LowStar.Modifies
module DV = LowStar.BufferView.Down
open Vale.Def.Opaque_s
//open Vale.Interop.Base
open Vale.Lib.BufferVie... | false | false | Vale.Interop.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 2,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | null | val correct_down_p_cancel (mem: interop_heap) (heap: _) (p: b8)
: Lemma
(forall p'.
p == p' ==>
(let b = get_downview p.bsrc in
let length = DV.length b in
let contents = DV.as_seq (hs_of_mem mem) b in
let addr = addrs_of_mem mem p in
let new_heap = write_... | [] | Vale.Interop.correct_down_p_cancel | {
"file_name": "vale/code/arch/x64/Vale.Interop.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} |
mem: Vale.Interop.Heap_s.interop_heap ->
heap: Vale.Arch.MachineHeap_s.machine_heap ->
p: Vale.Interop.Types.b8
-> FStar.Pervasives.Lemma
(ensures
forall (p': Vale.Interop.Types.b8).
p == p' ==>
(let b = Vale.Interop.Types.get_downview (Buffer?.bsrc p) in
let length = ... | {
"end_col": 28,
"end_line": 143,
"start_col": 40,
"start_line": 127
} |
FStar.Pervasives.Lemma | val domain_write_vale_mem
(contents: Seq.seq UInt8.t)
(length: nat{length = FStar.Seq.Base.length contents})
(addr: _)
(i: nat{i <= length})
(curr_heap:
machine_heap
{ forall j. {:pattern (Seq.index contents j)}
0 <= j /\ j < i ==> curr_heap.[ addr + j... | [
{
"abbrev": false,
"full_module": "Vale.Lib.BufferViewHelpers",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Def.Opaque_s",
"short_module": null
},
{
"abbrev": true,
"full_module": "LowStar.BufferView.Down",
"short_module": "DV"
},
{
"abbrev": t... | false | let rec domain_write_vale_mem
(contents:Seq.seq UInt8.t)
(length:nat{length = FStar.Seq.Base.length contents})
addr
(i:nat{i <= length})
(curr_heap:machine_heap{forall j. {:pattern (Seq.index contents j)} 0 <= j /\ j < i ==>
curr_heap.[addr + j] == UInt8.v (Seq.index contents j)}) : Lemma
(requires ... | val domain_write_vale_mem
(contents: Seq.seq UInt8.t)
(length: nat{length = FStar.Seq.Base.length contents})
(addr: _)
(i: nat{i <= length})
(curr_heap:
machine_heap
{ forall j. {:pattern (Seq.index contents j)}
0 <= j /\ j < i ==> curr_heap.[ addr + j... | false | null | true | if i >= length
then ()
else
let heap = curr_heap.[ addr + i ] <- UInt8.v (FStar.Seq.index contents i) in
domain_write_vale_mem contents length addr (i + 1) heap | {
"checked_file": "Vale.Interop.fst.checked",
"dependencies": [
"Vale.Lib.BufferViewHelpers.fst.checked",
"Vale.Def.Opaque_s.fsti.checked",
"prims.fst.checked",
"LowStar.Monotonic.Buffer.fsti.checked",
"LowStar.Modifies.fst.checked",
"LowStar.BufferView.Down.fsti.checked",
"FStar.UInt8.f... | [
"lemma",
""
] | [
"FStar.Seq.Base.seq",
"FStar.UInt8.t",
"Prims.nat",
"Prims.b2t",
"Prims.op_Equality",
"FStar.Seq.Base.length",
"Prims.int",
"Prims.op_LessThanOrEqual",
"Vale.Arch.MachineHeap_s.machine_heap",
"Prims.l_Forall",
"Prims.l_and",
"Prims.op_GreaterThanOrEqual",
"Prims.op_LessThan",
"Prims.l_imp"... | [] | module Vale.Interop
open FStar.Mul
module List = FStar.List.Tot.Base
module HS = FStar.Monotonic.HyperStack
module HH = FStar.Monotonic.HyperHeap
module MB = LowStar.Monotonic.Buffer
module M = LowStar.Modifies
module DV = LowStar.BufferView.Down
open Vale.Def.Opaque_s
//open Vale.Interop.Base
open Vale.Lib.BufferVie... | false | false | Vale.Interop.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 2,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | null | val domain_write_vale_mem
(contents: Seq.seq UInt8.t)
(length: nat{length = FStar.Seq.Base.length contents})
(addr: _)
(i: nat{i <= length})
(curr_heap:
machine_heap
{ forall j. {:pattern (Seq.index contents j)}
0 <= j /\ j < i ==> curr_heap.[ addr + j... | [
"recursion"
] | Vale.Interop.domain_write_vale_mem | {
"file_name": "vale/code/arch/x64/Vale.Interop.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} |
contents: FStar.Seq.Base.seq FStar.UInt8.t ->
length: Prims.nat{length = FStar.Seq.Base.length contents} ->
addr: Prims.int ->
i: Prims.nat{i <= length} ->
curr_heap:
Vale.Arch.MachineHeap_s.machine_heap
{ forall (j: i: Prims.int{i >= 0 /\ i < FStar.Seq.Base.length contents}).
... | {
"end_col": 7,
"end_line": 82,
"start_col": 3,
"start_line": 78
} |
FStar.Pervasives.Lemma | val correct_down_p_frame (mem: interop_heap) (heap: machine_heap) (p: b8)
: Lemma
(forall p'.
disjoint p p' /\ correct_down_p mem heap p' ==>
(let b = get_downview p.bsrc in
let length = DV.length b in
let contents = DV.as_seq (hs_of_mem mem) b in
let addr = addrs_o... | [
{
"abbrev": false,
"full_module": "Vale.Lib.BufferViewHelpers",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Def.Opaque_s",
"short_module": null
},
{
"abbrev": true,
"full_module": "LowStar.BufferView.Down",
"short_module": "DV"
},
{
"abbrev": t... | false | let correct_down_p_frame (mem:interop_heap) (heap:machine_heap) (p:b8) : Lemma
(forall p'. disjoint p p' /\ correct_down_p mem heap p' ==>
(let b = get_downview p.bsrc in
let length = DV.length b in
let contents = DV.as_seq (hs_of_mem mem) b in
let addr = addrs_of_mem mem p in
let new_he... | val correct_down_p_frame (mem: interop_heap) (heap: machine_heap) (p: b8)
: Lemma
(forall p'.
disjoint p p' /\ correct_down_p mem heap p' ==>
(let b = get_downview p.bsrc in
let length = DV.length b in
let contents = DV.as_seq (hs_of_mem mem) b in
let addr = addrs_o... | false | null | true | let rec aux (p': b8)
: Lemma
(disjoint p p' /\ correct_down_p mem heap p' ==>
(let b = get_downview p.bsrc in
let length = DV.length b in
let contents = DV.as_seq (hs_of_mem mem) b in
let addr = addrs_of_mem mem p in
let new_heap = write_vale_mem contents length addr 0 heap... | {
"checked_file": "Vale.Interop.fst.checked",
"dependencies": [
"Vale.Lib.BufferViewHelpers.fst.checked",
"Vale.Def.Opaque_s.fsti.checked",
"prims.fst.checked",
"LowStar.Monotonic.Buffer.fsti.checked",
"LowStar.Modifies.fst.checked",
"LowStar.BufferView.Down.fsti.checked",
"FStar.UInt8.f... | [
"lemma"
] | [
"Vale.Interop.Heap_s.interop_heap",
"Vale.Arch.MachineHeap_s.machine_heap",
"Vale.Interop.Types.b8",
"FStar.Classical.forall_intro",
"Prims.l_imp",
"Prims.l_and",
"Vale.Interop.disjoint",
"Vale.Interop.Heap_s.correct_down_p",
"Vale.Interop.write_vale_mem",
"LowStar.BufferView.Down.as_seq",
"FSta... | [] | module Vale.Interop
open FStar.Mul
module List = FStar.List.Tot.Base
module HS = FStar.Monotonic.HyperStack
module HH = FStar.Monotonic.HyperHeap
module MB = LowStar.Monotonic.Buffer
module M = LowStar.Modifies
module DV = LowStar.BufferView.Down
open Vale.Def.Opaque_s
//open Vale.Interop.Base
open Vale.Lib.BufferVie... | false | false | Vale.Interop.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 2,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | null | val correct_down_p_frame (mem: interop_heap) (heap: machine_heap) (p: b8)
: Lemma
(forall p'.
disjoint p p' /\ correct_down_p mem heap p' ==>
(let b = get_downview p.bsrc in
let length = DV.length b in
let contents = DV.as_seq (hs_of_mem mem) b in
let addr = addrs_o... | [] | Vale.Interop.correct_down_p_frame | {
"file_name": "vale/code/arch/x64/Vale.Interop.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} |
mem: Vale.Interop.Heap_s.interop_heap ->
heap: Vale.Arch.MachineHeap_s.machine_heap ->
p: Vale.Interop.Types.b8
-> FStar.Pervasives.Lemma
(ensures
forall (p': Vale.Interop.Types.b8).
Vale.Interop.disjoint p p' /\ Vale.Interop.Heap_s.correct_down_p mem heap p' ==>
(let b = Vale.I... | {
"end_col": 28,
"end_line": 169,
"start_col": 40,
"start_line": 152
} |
FStar.Pervasives.Lemma | val same_unspecified_down_aux:
(hs1: HS.mem) ->
(hs2: HS.mem) ->
(ptrs:list b8{list_disjoint_or_eq ptrs /\ list_live hs1 ptrs /\ list_live hs2 ptrs}) ->
(i:int) ->
Lemma (
let mem1 = mem_of_hs_roots ptrs hs1 in
let mem2 = mem_of_hs_roots ptrs hs2 in
let addrs = addrs_of_mem mem1 in
let heap1 =... | [
{
"abbrev": false,
"full_module": "Vale.Lib.BufferViewHelpers",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Def.Opaque_s",
"short_module": null
},
{
"abbrev": true,
"full_module": "LowStar.BufferView.Down",
"short_module": "DV"
},
{
"abbrev": t... | false | let same_unspecified_down_aux hs1 hs2 ptrs i =
addrs_set_lemma_all ();
let heap = Map.const 0 in
let heap = Map.restrict Set.empty heap in
let mem1 = mem_of_hs_roots ptrs hs1 in
let mem2 = mem_of_hs_roots ptrs hs2 in
let addrs = addrs_of_mem mem1 in
let heapf1 = down_mem_aux ptrs mem1 ptrs [] heap in
le... | val same_unspecified_down_aux:
(hs1: HS.mem) ->
(hs2: HS.mem) ->
(ptrs:list b8{list_disjoint_or_eq ptrs /\ list_live hs1 ptrs /\ list_live hs2 ptrs}) ->
(i:int) ->
Lemma (
let mem1 = mem_of_hs_roots ptrs hs1 in
let mem2 = mem_of_hs_roots ptrs hs2 in
let addrs = addrs_of_mem mem1 in
let heap1 =... | false | null | true | addrs_set_lemma_all ();
let heap = Map.const 0 in
let heap = Map.restrict Set.empty heap in
let mem1 = mem_of_hs_roots ptrs hs1 in
let mem2 = mem_of_hs_roots ptrs hs2 in
let addrs = addrs_of_mem mem1 in
let heapf1 = down_mem_aux ptrs mem1 ptrs [] heap in
let heapf2 = down_mem_aux ptrs mem2 ptrs [] heap in
Classical.mov... | {
"checked_file": "Vale.Interop.fst.checked",
"dependencies": [
"Vale.Lib.BufferViewHelpers.fst.checked",
"Vale.Def.Opaque_s.fsti.checked",
"prims.fst.checked",
"LowStar.Monotonic.Buffer.fsti.checked",
"LowStar.Modifies.fst.checked",
"LowStar.BufferView.Down.fsti.checked",
"FStar.UInt8.f... | [
"lemma"
] | [
"FStar.Monotonic.HyperStack.mem",
"Prims.list",
"Vale.Interop.Types.b8",
"Prims.l_and",
"Vale.Interop.Heap_s.list_disjoint_or_eq",
"Vale.Interop.Heap_s.list_live",
"Prims.int",
"FStar.Classical.move_requires",
"Prims.l_Forall",
"FStar.List.Tot.Base.memP",
"Prims.l_or",
"Prims.b2t",
"Prims.op... | [] | module Vale.Interop
open FStar.Mul
module List = FStar.List.Tot.Base
module HS = FStar.Monotonic.HyperStack
module HH = FStar.Monotonic.HyperHeap
module MB = LowStar.Monotonic.Buffer
module M = LowStar.Modifies
module DV = LowStar.BufferView.Down
open Vale.Def.Opaque_s
//open Vale.Interop.Base
open Vale.Lib.BufferVie... | false | false | Vale.Interop.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 2,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | null | val same_unspecified_down_aux:
(hs1: HS.mem) ->
(hs2: HS.mem) ->
(ptrs:list b8{list_disjoint_or_eq ptrs /\ list_live hs1 ptrs /\ list_live hs2 ptrs}) ->
(i:int) ->
Lemma (
let mem1 = mem_of_hs_roots ptrs hs1 in
let mem2 = mem_of_hs_roots ptrs hs2 in
let addrs = addrs_of_mem mem1 in
let heap1 =... | [] | Vale.Interop.same_unspecified_down_aux | {
"file_name": "vale/code/arch/x64/Vale.Interop.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} |
hs1: FStar.Monotonic.HyperStack.mem ->
hs2: FStar.Monotonic.HyperStack.mem ->
ptrs:
Prims.list Vale.Interop.Types.b8
{ Vale.Interop.Heap_s.list_disjoint_or_eq ptrs /\ Vale.Interop.Heap_s.list_live hs1 ptrs /\
Vale.Interop.Heap_s.list_live hs2 ptrs } ->
i: Prims.int
-> FStar.Pe... | {
"end_col": 71,
"end_line": 346,
"start_col": 2,
"start_line": 337
} |
FStar.Pervasives.Lemma | val domain2_write_vale_mem
(contents: Seq.seq UInt8.t)
(length: nat{length = FStar.Seq.Base.length contents})
(addr: _)
(i: nat{i <= length})
(curr_heap:
machine_heap
{ forall j. {:pattern (Seq.index contents j)}
0 <= j /\ j < i ==> curr_heap.[ addr + ... | [
{
"abbrev": false,
"full_module": "Vale.Lib.BufferViewHelpers",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Def.Opaque_s",
"short_module": null
},
{
"abbrev": true,
"full_module": "LowStar.BufferView.Down",
"short_module": "DV"
},
{
"abbrev": t... | false | let rec domain2_write_vale_mem
(contents:Seq.seq UInt8.t)
(length:nat{length = FStar.Seq.Base.length contents})
addr
(i:nat{i <= length})
(curr_heap:machine_heap{forall j. {:pattern (Seq.index contents j)} 0 <= j /\ j < i ==>
curr_heap.[addr + j] == UInt8.v (Seq.index contents j)}) : Lemma
(requires... | val domain2_write_vale_mem
(contents: Seq.seq UInt8.t)
(length: nat{length = FStar.Seq.Base.length contents})
(addr: _)
(i: nat{i <= length})
(curr_heap:
machine_heap
{ forall j. {:pattern (Seq.index contents j)}
0 <= j /\ j < i ==> curr_heap.[ addr + ... | false | null | true | if i >= length
then ()
else
let heap = curr_heap.[ addr + i ] <- UInt8.v (FStar.Seq.index contents i) in
domain2_write_vale_mem contents length addr (i + 1) heap | {
"checked_file": "Vale.Interop.fst.checked",
"dependencies": [
"Vale.Lib.BufferViewHelpers.fst.checked",
"Vale.Def.Opaque_s.fsti.checked",
"prims.fst.checked",
"LowStar.Monotonic.Buffer.fsti.checked",
"LowStar.Modifies.fst.checked",
"LowStar.BufferView.Down.fsti.checked",
"FStar.UInt8.f... | [
"lemma",
""
] | [
"FStar.Seq.Base.seq",
"FStar.UInt8.t",
"Prims.nat",
"Prims.b2t",
"Prims.op_Equality",
"FStar.Seq.Base.length",
"Prims.int",
"Prims.op_LessThanOrEqual",
"Vale.Arch.MachineHeap_s.machine_heap",
"Prims.l_Forall",
"Prims.l_and",
"Prims.op_GreaterThanOrEqual",
"Prims.op_LessThan",
"Prims.l_imp"... | [] | module Vale.Interop
open FStar.Mul
module List = FStar.List.Tot.Base
module HS = FStar.Monotonic.HyperStack
module HH = FStar.Monotonic.HyperHeap
module MB = LowStar.Monotonic.Buffer
module M = LowStar.Modifies
module DV = LowStar.BufferView.Down
open Vale.Def.Opaque_s
//open Vale.Interop.Base
open Vale.Lib.BufferVie... | false | false | Vale.Interop.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 2,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | null | val domain2_write_vale_mem
(contents: Seq.seq UInt8.t)
(length: nat{length = FStar.Seq.Base.length contents})
(addr: _)
(i: nat{i <= length})
(curr_heap:
machine_heap
{ forall j. {:pattern (Seq.index contents j)}
0 <= j /\ j < i ==> curr_heap.[ addr + ... | [
"recursion"
] | Vale.Interop.domain2_write_vale_mem | {
"file_name": "vale/code/arch/x64/Vale.Interop.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} |
contents: FStar.Seq.Base.seq FStar.UInt8.t ->
length: Prims.nat{length = FStar.Seq.Base.length contents} ->
addr: Prims.int ->
i: Prims.nat{i <= length} ->
curr_heap:
Vale.Arch.MachineHeap_s.machine_heap
{ forall (j: i: Prims.int{i >= 0 /\ i < FStar.Seq.Base.length contents}).
... | {
"end_col": 7,
"end_line": 99,
"start_col": 3,
"start_line": 95
} |
FStar.Pervasives.Lemma | val monotone_domain_write_vale_mem
(contents: Seq.seq UInt8.t)
(length: nat{length = FStar.Seq.Base.length contents})
(addr: _)
(i: nat{i <= length})
(curr_heap:
machine_heap
{ forall j. {:pattern (Seq.index contents j)}
0 <= j /\ j < i ==> curr_heap.[... | [
{
"abbrev": false,
"full_module": "Vale.Lib.BufferViewHelpers",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Def.Opaque_s",
"short_module": null
},
{
"abbrev": true,
"full_module": "LowStar.BufferView.Down",
"short_module": "DV"
},
{
"abbrev": t... | false | let rec monotone_domain_write_vale_mem
(contents:Seq.seq UInt8.t)
(length:nat{length = FStar.Seq.Base.length contents})
addr
(i:nat{i <= length})
(curr_heap:machine_heap{forall j. {:pattern (Seq.index contents j)} 0 <= j /\ j < i ==>
curr_heap.[addr + j] == UInt8.v (Seq.index contents j)}) : Lemma
(... | val monotone_domain_write_vale_mem
(contents: Seq.seq UInt8.t)
(length: nat{length = FStar.Seq.Base.length contents})
(addr: _)
(i: nat{i <= length})
(curr_heap:
machine_heap
{ forall j. {:pattern (Seq.index contents j)}
0 <= j /\ j < i ==> curr_heap.[... | false | null | true | if i >= length
then ()
else
let heap = curr_heap.[ addr + i ] <- UInt8.v (FStar.Seq.index contents i) in
monotone_domain_write_vale_mem contents length addr (i + 1) heap | {
"checked_file": "Vale.Interop.fst.checked",
"dependencies": [
"Vale.Lib.BufferViewHelpers.fst.checked",
"Vale.Def.Opaque_s.fsti.checked",
"prims.fst.checked",
"LowStar.Monotonic.Buffer.fsti.checked",
"LowStar.Modifies.fst.checked",
"LowStar.BufferView.Down.fsti.checked",
"FStar.UInt8.f... | [
"lemma",
""
] | [
"FStar.Seq.Base.seq",
"FStar.UInt8.t",
"Prims.nat",
"Prims.b2t",
"Prims.op_Equality",
"FStar.Seq.Base.length",
"Prims.int",
"Prims.op_LessThanOrEqual",
"Vale.Arch.MachineHeap_s.machine_heap",
"Prims.l_Forall",
"Prims.l_and",
"Prims.op_GreaterThanOrEqual",
"Prims.op_LessThan",
"Prims.l_imp"... | [] | module Vale.Interop
open FStar.Mul
module List = FStar.List.Tot.Base
module HS = FStar.Monotonic.HyperStack
module HH = FStar.Monotonic.HyperHeap
module MB = LowStar.Monotonic.Buffer
module M = LowStar.Modifies
module DV = LowStar.BufferView.Down
open Vale.Def.Opaque_s
//open Vale.Interop.Base
open Vale.Lib.BufferVie... | false | false | Vale.Interop.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 2,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | null | val monotone_domain_write_vale_mem
(contents: Seq.seq UInt8.t)
(length: nat{length = FStar.Seq.Base.length contents})
(addr: _)
(i: nat{i <= length})
(curr_heap:
machine_heap
{ forall j. {:pattern (Seq.index contents j)}
0 <= j /\ j < i ==> curr_heap.[... | [
"recursion"
] | Vale.Interop.monotone_domain_write_vale_mem | {
"file_name": "vale/code/arch/x64/Vale.Interop.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} |
contents: FStar.Seq.Base.seq FStar.UInt8.t ->
length: Prims.nat{length = FStar.Seq.Base.length contents} ->
addr: Prims.int ->
i: Prims.nat{i <= length} ->
curr_heap:
Vale.Arch.MachineHeap_s.machine_heap
{ forall (j: i: Prims.int{i >= 0 /\ i < FStar.Seq.Base.length contents}).
... | {
"end_col": 7,
"end_line": 116,
"start_col": 3,
"start_line": 112
} |
Prims.GTot | val up_mem_aux
(h: machine_heap)
(ps accu: list b8)
(m:
interop_heap
{ Set.equal (addrs_set m) (Map.domain h) /\
(forall p. List.memP p accu ==> correct_down_p m h p) /\
(forall p. List.memP p (ptrs_of_mem m) <==> List.memP p ps \/ List.memP p accu) })... | [
{
"abbrev": false,
"full_module": "Vale.Lib.BufferViewHelpers",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Def.Opaque_s",
"short_module": null
},
{
"abbrev": true,
"full_module": "LowStar.BufferView.Down",
"short_module": "DV"
},
{
"abbrev": t... | false | let rec up_mem_aux
(h:machine_heap)
(ps:list b8)
(accu:list b8)
(m:interop_heap{Set.equal (addrs_set m) (Map.domain h) /\
(forall p. List.memP p accu ==> correct_down_p m h p) /\
(forall p. List.memP p (ptrs_of_mem m) <==> List.memP p ps \/ List.memP p accu)}) : GTot
(m':interop_heap{ptrs_of_mem m == ... | val up_mem_aux
(h: machine_heap)
(ps accu: list b8)
(m:
interop_heap
{ Set.equal (addrs_set m) (Map.domain h) /\
(forall p. List.memP p accu ==> correct_down_p m h p) /\
(forall p. List.memP p (ptrs_of_mem m) <==> List.memP p ps \/ List.memP p accu) })... | false | null | false | match ps with
| [] -> m
| hd :: tl ->
let s = get_seq_heap h (addrs_of_mem m) hd in
let b = get_downview hd.bsrc in
DV.upd_seq_spec (hs_of_mem m) b s;
let m' = DV.upd_seq (hs_of_mem m) b s in
let aux1 (p: b8)
: Lemma
(requires
MB.live (hs_of_mem m) p.bsrc /\
MB.loc_disjoint (... | {
"checked_file": "Vale.Interop.fst.checked",
"dependencies": [
"Vale.Lib.BufferViewHelpers.fst.checked",
"Vale.Def.Opaque_s.fsti.checked",
"prims.fst.checked",
"LowStar.Monotonic.Buffer.fsti.checked",
"LowStar.Modifies.fst.checked",
"LowStar.BufferView.Down.fsti.checked",
"FStar.UInt8.f... | [
"sometrivial"
] | [
"Vale.Arch.MachineHeap_s.machine_heap",
"Prims.list",
"Vale.Interop.Types.b8",
"Vale.Interop.Heap_s.interop_heap",
"Prims.l_and",
"FStar.Set.equal",
"Prims.int",
"Vale.Interop.Heap_s.addrs_set",
"FStar.Map.domain",
"Vale.Def.Types_s.nat8",
"Prims.l_Forall",
"Prims.l_imp",
"FStar.List.Tot.Bas... | [] | module Vale.Interop
open FStar.Mul
module List = FStar.List.Tot.Base
module HS = FStar.Monotonic.HyperStack
module HH = FStar.Monotonic.HyperHeap
module MB = LowStar.Monotonic.Buffer
module M = LowStar.Modifies
module DV = LowStar.BufferView.Down
open Vale.Def.Opaque_s
//open Vale.Interop.Base
open Vale.Lib.BufferVie... | false | false | Vale.Interop.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 2,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | null | val up_mem_aux
(h: machine_heap)
(ps accu: list b8)
(m:
interop_heap
{ Set.equal (addrs_set m) (Map.domain h) /\
(forall p. List.memP p accu ==> correct_down_p m h p) /\
(forall p. List.memP p (ptrs_of_mem m) <==> List.memP p ps \/ List.memP p accu) })... | [
"recursion"
] | Vale.Interop.up_mem_aux | {
"file_name": "vale/code/arch/x64/Vale.Interop.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} |
h: Vale.Arch.MachineHeap_s.machine_heap ->
ps: Prims.list Vale.Interop.Types.b8 ->
accu: Prims.list Vale.Interop.Types.b8 ->
m:
Vale.Interop.Heap_s.interop_heap
{ FStar.Set.equal (Vale.Interop.Heap_s.addrs_set m) (FStar.Map.domain h) /\
(forall (p: Vale.Interop.Types.b8).
... | {
"end_col": 62,
"end_line": 380,
"start_col": 2,
"start_line": 366
} |
FStar.Pervasives.Lemma | val down_up_identity_aux
(h: machine_heap)
(ps accu: list b8)
(m:
interop_heap
{ correct_down m h /\
(forall p. List.memP p (ptrs_of_mem m) <==> List.memP p ps \/ List.memP p accu) })
: Lemma (m == up_mem_aux h ps accu m) | [
{
"abbrev": false,
"full_module": "Vale.Lib.BufferViewHelpers",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Def.Opaque_s",
"short_module": null
},
{
"abbrev": true,
"full_module": "LowStar.BufferView.Down",
"short_module": "DV"
},
{
"abbrev": t... | false | let rec down_up_identity_aux
(h:machine_heap)
(ps:list b8)
(accu:list b8)
(m:interop_heap{correct_down m h /\
(forall p. List.memP p (ptrs_of_mem m) <==> List.memP p ps \/ List.memP p accu)})
: Lemma (m == up_mem_aux h ps accu m) =
match ps with
| [] -> ()
| hd::tl ->
let s = get_seq_heap h (add... | val down_up_identity_aux
(h: machine_heap)
(ps accu: list b8)
(m:
interop_heap
{ correct_down m h /\
(forall p. List.memP p (ptrs_of_mem m) <==> List.memP p ps \/ List.memP p accu) })
: Lemma (m == up_mem_aux h ps accu m)
let rec down_up_identity_aux
(h: m... | false | null | true | match ps with
| [] -> ()
| hd :: tl ->
let s = get_seq_heap h (addrs_of_mem m) hd in
let b = get_downview hd.bsrc in
let m' = DV.upd_seq (hs_of_mem m) b s in
DV.upd_seq_spec (hs_of_mem m) b s;
assert (Seq.equal s (DV.as_seq (hs_of_mem m) b));
down_up_identity_aux h tl (hd :: accu) (InteropHeap m.ptrs m.addr... | {
"checked_file": "Vale.Interop.fst.checked",
"dependencies": [
"Vale.Lib.BufferViewHelpers.fst.checked",
"Vale.Def.Opaque_s.fsti.checked",
"prims.fst.checked",
"LowStar.Monotonic.Buffer.fsti.checked",
"LowStar.Modifies.fst.checked",
"LowStar.BufferView.Down.fsti.checked",
"FStar.UInt8.f... | [
"lemma"
] | [
"Vale.Arch.MachineHeap_s.machine_heap",
"Prims.list",
"Vale.Interop.Types.b8",
"Vale.Interop.Heap_s.interop_heap",
"Prims.l_and",
"Vale.Interop.Heap_s.correct_down",
"Prims.l_Forall",
"Prims.l_iff",
"FStar.List.Tot.Base.memP",
"Vale.Interop.Heap_s.ptrs_of_mem",
"Prims.l_or",
"Vale.Interop.down... | [] | module Vale.Interop
open FStar.Mul
module List = FStar.List.Tot.Base
module HS = FStar.Monotonic.HyperStack
module HH = FStar.Monotonic.HyperHeap
module MB = LowStar.Monotonic.Buffer
module M = LowStar.Modifies
module DV = LowStar.BufferView.Down
open Vale.Def.Opaque_s
//open Vale.Interop.Base
open Vale.Lib.BufferVie... | false | false | Vale.Interop.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 2,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | null | val down_up_identity_aux
(h: machine_heap)
(ps accu: list b8)
(m:
interop_heap
{ correct_down m h /\
(forall p. List.memP p (ptrs_of_mem m) <==> List.memP p ps \/ List.memP p accu) })
: Lemma (m == up_mem_aux h ps accu m) | [
"recursion"
] | Vale.Interop.down_up_identity_aux | {
"file_name": "vale/code/arch/x64/Vale.Interop.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} |
h: Vale.Arch.MachineHeap_s.machine_heap ->
ps: Prims.list Vale.Interop.Types.b8 ->
accu: Prims.list Vale.Interop.Types.b8 ->
m:
Vale.Interop.Heap_s.interop_heap
{ Vale.Interop.Heap_s.correct_down m h /\
(forall (p: Vale.Interop.Types.b8).
FStar.List.Tot.Base.memP p... | {
"end_col": 72,
"end_line": 400,
"start_col": 2,
"start_line": 391
} |
FStar.Pervasives.Lemma | val load_store_write_vale_mem
(contents: Seq.seq UInt8.t)
(length: nat{length = FStar.Seq.Base.length contents})
(addr: _)
(i: nat{i <= length})
(curr_heap:
machine_heap
{ forall j. {:pattern (Seq.index contents j)}
0 <= j /\ j < i ==> curr_heap.[ addr... | [
{
"abbrev": false,
"full_module": "Vale.Lib.BufferViewHelpers",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Def.Opaque_s",
"short_module": null
},
{
"abbrev": true,
"full_module": "LowStar.BufferView.Down",
"short_module": "DV"
},
{
"abbrev": t... | false | let rec load_store_write_vale_mem
(contents:Seq.seq UInt8.t)
(length:nat{length = FStar.Seq.Base.length contents})
addr
(i:nat{i <= length})
(curr_heap:machine_heap{forall j. {:pattern (Seq.index contents j)} 0 <= j /\ j < i ==>
curr_heap.[addr + j] == UInt8.v (Seq.index contents j)})
: Lemma
(requi... | val load_store_write_vale_mem
(contents: Seq.seq UInt8.t)
(length: nat{length = FStar.Seq.Base.length contents})
(addr: _)
(i: nat{i <= length})
(curr_heap:
machine_heap
{ forall j. {:pattern (Seq.index contents j)}
0 <= j /\ j < i ==> curr_heap.[ addr... | false | null | true | if i >= length
then ()
else
let heap = curr_heap.[ addr + i ] <- UInt8.v (FStar.Seq.index contents i) in
load_store_write_vale_mem contents length addr (i + 1) heap | {
"checked_file": "Vale.Interop.fst.checked",
"dependencies": [
"Vale.Lib.BufferViewHelpers.fst.checked",
"Vale.Def.Opaque_s.fsti.checked",
"prims.fst.checked",
"LowStar.Monotonic.Buffer.fsti.checked",
"LowStar.Modifies.fst.checked",
"LowStar.BufferView.Down.fsti.checked",
"FStar.UInt8.f... | [
"lemma",
""
] | [
"FStar.Seq.Base.seq",
"FStar.UInt8.t",
"Prims.nat",
"Prims.b2t",
"Prims.op_Equality",
"FStar.Seq.Base.length",
"Prims.int",
"Prims.op_LessThanOrEqual",
"Vale.Arch.MachineHeap_s.machine_heap",
"Prims.l_Forall",
"Prims.l_and",
"Prims.op_GreaterThanOrEqual",
"Prims.op_LessThan",
"Prims.l_imp"... | [] | module Vale.Interop
open FStar.Mul
module List = FStar.List.Tot.Base
module HS = FStar.Monotonic.HyperStack
module HH = FStar.Monotonic.HyperHeap
module MB = LowStar.Monotonic.Buffer
module M = LowStar.Modifies
module DV = LowStar.BufferView.Down
open Vale.Def.Opaque_s
//open Vale.Interop.Base
open Vale.Lib.BufferVie... | false | false | Vale.Interop.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 2,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | null | val load_store_write_vale_mem
(contents: Seq.seq UInt8.t)
(length: nat{length = FStar.Seq.Base.length contents})
(addr: _)
(i: nat{i <= length})
(curr_heap:
machine_heap
{ forall j. {:pattern (Seq.index contents j)}
0 <= j /\ j < i ==> curr_heap.[ addr... | [
"recursion"
] | Vale.Interop.load_store_write_vale_mem | {
"file_name": "vale/code/arch/x64/Vale.Interop.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} |
contents: FStar.Seq.Base.seq FStar.UInt8.t ->
length: Prims.nat{length = FStar.Seq.Base.length contents} ->
addr: Prims.int ->
i: Prims.nat{i <= length} ->
curr_heap:
Vale.Arch.MachineHeap_s.machine_heap
{ forall (j: i: Prims.int{i >= 0 /\ i < FStar.Seq.Base.length contents}).
... | {
"end_col": 5,
"end_line": 64,
"start_col": 2,
"start_line": 60
} |
FStar.Pervasives.Lemma | val lemma_down_mem_aux_domain
(ptrs: list b8 {list_disjoint_or_eq ptrs})
(mem: interop_heap)
(ps: list b8)
(accu: list b8 {forall p. List.memP p ptrs <==> List.memP p ps \/ List.memP p accu})
(h:
machine_heap
{ forall p. {:pattern correct_down_p mem h p}
... | [
{
"abbrev": false,
"full_module": "Vale.Lib.BufferViewHelpers",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Def.Opaque_s",
"short_module": null
},
{
"abbrev": true,
"full_module": "LowStar.BufferView.Down",
"short_module": "DV"
},
{
"abbrev": t... | false | let rec lemma_down_mem_aux_domain
(ptrs:list b8{list_disjoint_or_eq ptrs})
(mem:interop_heap)
(ps:list b8)
(accu:list b8{forall p. List.memP p ptrs <==> List.memP p ps \/ List.memP p accu})
(h:machine_heap{forall p. {:pattern correct_down_p mem h p}
List.memP p accu ==> correct_down_p mem h p})
(x:int) ... | val lemma_down_mem_aux_domain
(ptrs: list b8 {list_disjoint_or_eq ptrs})
(mem: interop_heap)
(ps: list b8)
(accu: list b8 {forall p. List.memP p ptrs <==> List.memP p ps \/ List.memP p accu})
(h:
machine_heap
{ forall p. {:pattern correct_down_p mem h p}
... | false | null | true | match ps with
| [] -> ()
| a :: tl ->
lemma_write_buffer_domain a h mem;
addrs_ptr_lemma 0 (addrs_of_mem mem) a Set.empty x;
let new_heap = write_buffer_vale a h mem in
let b = get_downview a.bsrc in
let length = DV.length b in
let contents = DV.as_seq (hs_of_mem mem) b in
let addr = addrs_of_mem mem a in... | {
"checked_file": "Vale.Interop.fst.checked",
"dependencies": [
"Vale.Lib.BufferViewHelpers.fst.checked",
"Vale.Def.Opaque_s.fsti.checked",
"prims.fst.checked",
"LowStar.Monotonic.Buffer.fsti.checked",
"LowStar.Modifies.fst.checked",
"LowStar.BufferView.Down.fsti.checked",
"FStar.UInt8.f... | [
"lemma"
] | [
"Prims.list",
"Vale.Interop.Types.b8",
"Vale.Interop.Heap_s.list_disjoint_or_eq",
"Vale.Interop.Heap_s.interop_heap",
"Prims.l_Forall",
"Prims.l_iff",
"FStar.List.Tot.Base.memP",
"Prims.l_or",
"Vale.Arch.MachineHeap_s.machine_heap",
"Prims.l_imp",
"Vale.Interop.Heap_s.correct_down_p",
"Prims.i... | [] | module Vale.Interop
open FStar.Mul
module List = FStar.List.Tot.Base
module HS = FStar.Monotonic.HyperStack
module HH = FStar.Monotonic.HyperHeap
module MB = LowStar.Monotonic.Buffer
module M = LowStar.Modifies
module DV = LowStar.BufferView.Down
open Vale.Def.Opaque_s
//open Vale.Interop.Base
open Vale.Lib.BufferVie... | false | false | Vale.Interop.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 2,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | null | val lemma_down_mem_aux_domain
(ptrs: list b8 {list_disjoint_or_eq ptrs})
(mem: interop_heap)
(ps: list b8)
(accu: list b8 {forall p. List.memP p ptrs <==> List.memP p ps \/ List.memP p accu})
(h:
machine_heap
{ forall p. {:pattern correct_down_p mem h p}
... | [
"recursion"
] | Vale.Interop.lemma_down_mem_aux_domain | {
"file_name": "vale/code/arch/x64/Vale.Interop.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} |
ptrs: Prims.list Vale.Interop.Types.b8 {Vale.Interop.Heap_s.list_disjoint_or_eq ptrs} ->
mem: Vale.Interop.Heap_s.interop_heap ->
ps: Prims.list Vale.Interop.Types.b8 ->
accu:
Prims.list Vale.Interop.Types.b8
{ forall (p: Vale.Interop.Types.b8).
FStar.List.Tot.Base.memP p ptrs... | {
"end_col": 62,
"end_line": 281,
"start_col": 6,
"start_line": 267
} |
FStar.Pervasives.Lemma | val update_buffer_up_mem_aux
(h1 h2: machine_heap)
(ps accu: list b8)
(b: b8)
(m:
interop_heap
{forall p. List.memP p (ptrs_of_mem m) <==> List.memP p ps \/ List.memP p accu})
: Lemma
(requires
List.memP b (ptrs_of_mem m) /\ Set.equal (Map.domain h1) (addr... | [
{
"abbrev": false,
"full_module": "Vale.Lib.BufferViewHelpers",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Def.Opaque_s",
"short_module": null
},
{
"abbrev": true,
"full_module": "LowStar.BufferView.Down",
"short_module": "DV"
},
{
"abbrev": t... | false | let rec update_buffer_up_mem_aux
(h1 h2:machine_heap)
(ps:list b8)
(accu:list b8)
(b:b8)
(m:interop_heap{forall p. List.memP p (ptrs_of_mem m) <==> List.memP p ps \/ List.memP p accu}) : Lemma
(requires
List.memP b (ptrs_of_mem m) /\
Set.equal (Map.domain h1) (addrs_set m) /\
Set.equal (Map.doma... | val update_buffer_up_mem_aux
(h1 h2: machine_heap)
(ps accu: list b8)
(b: b8)
(m:
interop_heap
{forall p. List.memP p (ptrs_of_mem m) <==> List.memP p ps \/ List.memP p accu})
: Lemma
(requires
List.memP b (ptrs_of_mem m) /\ Set.equal (Map.domain h1) (addr... | false | null | true | match ps with
| [] -> ()
| hd :: tl ->
let db = get_downview hd.bsrc in
let addrs = addrs_of_mem m in
let mem = hs_of_mem m in
let ptrs = ptrs_of_mem m in
let s = get_seq_heap h2 addrs hd in
DV.upd_seq_spec mem db s;
let m' = DV.upd_seq mem db s in
let aux1 (p: b8)
: Lemma
(requires
... | {
"checked_file": "Vale.Interop.fst.checked",
"dependencies": [
"Vale.Lib.BufferViewHelpers.fst.checked",
"Vale.Def.Opaque_s.fsti.checked",
"prims.fst.checked",
"LowStar.Monotonic.Buffer.fsti.checked",
"LowStar.Modifies.fst.checked",
"LowStar.BufferView.Down.fsti.checked",
"FStar.UInt8.f... | [
"lemma"
] | [
"Vale.Arch.MachineHeap_s.machine_heap",
"Prims.list",
"Vale.Interop.Types.b8",
"Vale.Interop.Heap_s.interop_heap",
"Prims.l_Forall",
"Prims.l_iff",
"FStar.List.Tot.Base.memP",
"Vale.Interop.Heap_s.ptrs_of_mem",
"Prims.l_or",
"Vale.Interop.update_buffer_up_mem_aux",
"Prims.Cons",
"Vale.Interop.... | [] | module Vale.Interop
open FStar.Mul
module List = FStar.List.Tot.Base
module HS = FStar.Monotonic.HyperStack
module HH = FStar.Monotonic.HyperHeap
module MB = LowStar.Monotonic.Buffer
module M = LowStar.Modifies
module DV = LowStar.BufferView.Down
open Vale.Def.Opaque_s
//open Vale.Interop.Base
open Vale.Lib.BufferVie... | false | false | Vale.Interop.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 1,
"initial_ifuel": 1,
"max_fuel": 1,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | null | val update_buffer_up_mem_aux
(h1 h2: machine_heap)
(ps accu: list b8)
(b: b8)
(m:
interop_heap
{forall p. List.memP p (ptrs_of_mem m) <==> List.memP p ps \/ List.memP p accu})
: Lemma
(requires
List.memP b (ptrs_of_mem m) /\ Set.equal (Map.domain h1) (addr... | [
"recursion"
] | Vale.Interop.update_buffer_up_mem_aux | {
"file_name": "vale/code/arch/x64/Vale.Interop.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} |
h1: Vale.Arch.MachineHeap_s.machine_heap ->
h2: Vale.Arch.MachineHeap_s.machine_heap ->
ps: Prims.list Vale.Interop.Types.b8 ->
accu: Prims.list Vale.Interop.Types.b8 ->
b: Vale.Interop.Types.b8 ->
m:
Vale.Interop.Heap_s.interop_heap
{ forall (p: Vale.Interop.Types.b8).
... | {
"end_col": 78,
"end_line": 489,
"start_col": 2,
"start_line": 466
} |
Prims.Tot | [
{
"abbrev": false,
"full_module": "Lib.NTuple",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.Buffer",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.Sequence",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.Int... | false | let live4 #a #len (h:mem) (b0 b1 b2 b3: lbuffer a len) =
live h b0 /\ live h b1 /\ live h b2 /\ live h b3 | let live4
#a
#len
(h: mem)
(b0: lbuffer a len)
(b1: lbuffer a len)
(b2: lbuffer a len)
(b3: lbuffer a len)
= | false | null | false | live h b0 /\ live h b1 /\ live h b2 /\ live h b3 | {
"checked_file": "Lib.MultiBuffer.fst.checked",
"dependencies": [
"prims.fst.checked",
"LowStar.Buffer.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.NTuple.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.Buffer.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.fsti.checke... | [
"total"
] | [
"Lib.IntTypes.size_t",
"FStar.Monotonic.HyperStack.mem",
"Lib.Buffer.lbuffer",
"Prims.l_and",
"Lib.Buffer.live",
"Lib.Buffer.MUT",
"Prims.logical"
] | [] | module Lib.MultiBuffer
open FStar.Mul
module ST = FStar.HyperStack.ST
open FStar.HyperStack
open FStar.HyperStack.All
open Lib.IntTypes
open Lib.Sequence
open Lib.Buffer
open Lib.NTuple
#set-options "--z3rlimit 30 --fuel 0 --ifuel 0" | false | false | Lib.MultiBuffer.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 live4 : h: FStar.Monotonic.HyperStack.mem ->
b0: Lib.Buffer.lbuffer a len ->
b1: Lib.Buffer.lbuffer a len ->
b2: Lib.Buffer.lbuffer a len ->
b3: Lib.Buffer.lbuffer a len
-> Prims.logical | [] | Lib.MultiBuffer.live4 | {
"file_name": "lib/Lib.MultiBuffer.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} |
h: FStar.Monotonic.HyperStack.mem ->
b0: Lib.Buffer.lbuffer a len ->
b1: Lib.Buffer.lbuffer a len ->
b2: Lib.Buffer.lbuffer a len ->
b3: Lib.Buffer.lbuffer a len
-> Prims.logical | {
"end_col": 50,
"end_line": 16,
"start_col": 2,
"start_line": 16
} | |
Prims.Tot | [
{
"abbrev": false,
"full_module": "Lib.NTuple",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.Buffer",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.Sequence",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.Int... | false | let internally_disjoint4 #len #a (b0 b1 b2 b3: lbuffer a len) =
disjoint b0 b1 /\ disjoint b0 b2 /\ disjoint b0 b3 /\
disjoint b1 b2 /\ disjoint b1 b3 /\ disjoint b2 b3 | let internally_disjoint4
#len
#a
(b0: lbuffer a len)
(b1: lbuffer a len)
(b2: lbuffer a len)
(b3: lbuffer a len)
= | false | null | false | disjoint b0 b1 /\ disjoint b0 b2 /\ disjoint b0 b3 /\ disjoint b1 b2 /\ disjoint b1 b3 /\
disjoint b2 b3 | {
"checked_file": "Lib.MultiBuffer.fst.checked",
"dependencies": [
"prims.fst.checked",
"LowStar.Buffer.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.NTuple.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.Buffer.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.fsti.checke... | [
"total"
] | [
"Lib.IntTypes.size_t",
"Lib.Buffer.lbuffer",
"Prims.l_and",
"Lib.Buffer.disjoint",
"Lib.Buffer.MUT",
"Prims.logical"
] | [] | module Lib.MultiBuffer
open FStar.Mul
module ST = FStar.HyperStack.ST
open FStar.HyperStack
open FStar.HyperStack.All
open Lib.IntTypes
open Lib.Sequence
open Lib.Buffer
open Lib.NTuple
#set-options "--z3rlimit 30 --fuel 0 --ifuel 0"
let live4 #a #len (h:mem) (b0 b1 b2 b3: lbuffer a len) =
live h b0 /\ live h b1 ... | false | false | Lib.MultiBuffer.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 internally_disjoint4 : b0: Lib.Buffer.lbuffer a len ->
b1: Lib.Buffer.lbuffer a len ->
b2: Lib.Buffer.lbuffer a len ->
b3: Lib.Buffer.lbuffer a len
-> Prims.logical | [] | Lib.MultiBuffer.internally_disjoint4 | {
"file_name": "lib/Lib.MultiBuffer.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} |
b0: Lib.Buffer.lbuffer a len ->
b1: Lib.Buffer.lbuffer a len ->
b2: Lib.Buffer.lbuffer a len ->
b3: Lib.Buffer.lbuffer a len
-> Prims.logical | {
"end_col": 52,
"end_line": 23,
"start_col": 2,
"start_line": 22
} | |
Prims.Tot | [
{
"abbrev": false,
"full_module": "Lib.NTuple",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.Buffer",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.Sequence",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.Int... | false | let disjoint_multi #lanes #len #a #len' (b:multibuf lanes len) (b':lbuffer a len') =
forall i. i < lanes ==> disjoint b.(|i|) b' | let disjoint_multi #lanes #len #a #len' (b: multibuf lanes len) (b': lbuffer a len') = | false | null | false | forall i. i < lanes ==> disjoint b.(| i |) b' | {
"checked_file": "Lib.MultiBuffer.fst.checked",
"dependencies": [
"prims.fst.checked",
"LowStar.Buffer.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.NTuple.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.Buffer.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.fsti.checke... | [
"total"
] | [
"Lib.NTuple.flen",
"Lib.IntTypes.size_t",
"Lib.MultiBuffer.multibuf",
"Lib.Buffer.lbuffer",
"Prims.l_Forall",
"Prims.int",
"Prims.l_and",
"Prims.b2t",
"Prims.op_GreaterThanOrEqual",
"Prims.op_LessThan",
"Prims.l_imp",
"Lib.Buffer.disjoint",
"Lib.Buffer.MUT",
"Lib.IntTypes.uint8",
"Lib.NT... | [] | module Lib.MultiBuffer
open FStar.Mul
module ST = FStar.HyperStack.ST
open FStar.HyperStack
open FStar.HyperStack.All
open Lib.IntTypes
open Lib.Sequence
open Lib.Buffer
open Lib.NTuple
#set-options "--z3rlimit 30 --fuel 0 --ifuel 0"
let live4 #a #len (h:mem) (b0 b1 b2 b3: lbuffer a len) =
live h b0 /\ live h b1 ... | false | false | Lib.MultiBuffer.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 disjoint_multi : b: Lib.MultiBuffer.multibuf lanes len -> b': Lib.Buffer.lbuffer a len' -> Prims.logical | [] | Lib.MultiBuffer.disjoint_multi | {
"file_name": "lib/Lib.MultiBuffer.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | b: Lib.MultiBuffer.multibuf lanes len -> b': Lib.Buffer.lbuffer a len' -> Prims.logical | {
"end_col": 45,
"end_line": 41,
"start_col": 2,
"start_line": 41
} | |
Prims.Tot | [
{
"abbrev": false,
"full_module": "Lib.NTuple",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.Buffer",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.Sequence",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.Int... | false | let modifies_multi #lanes #len (b:multibuf lanes len) (h0:mem) (h1:mem) =
modifies (loc_multi b) h0 h1 | let modifies_multi #lanes #len (b: multibuf lanes len) (h0: mem) (h1: mem) = | false | null | false | modifies (loc_multi b) h0 h1 | {
"checked_file": "Lib.MultiBuffer.fst.checked",
"dependencies": [
"prims.fst.checked",
"LowStar.Buffer.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.NTuple.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.Buffer.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.fsti.checke... | [
"total"
] | [
"Lib.NTuple.flen",
"Lib.IntTypes.size_t",
"Lib.MultiBuffer.multibuf",
"FStar.Monotonic.HyperStack.mem",
"Lib.Buffer.modifies",
"Lib.MultiBuffer.loc_multi"
] | [] | module Lib.MultiBuffer
open FStar.Mul
module ST = FStar.HyperStack.ST
open FStar.HyperStack
open FStar.HyperStack.All
open Lib.IntTypes
open Lib.Sequence
open Lib.Buffer
open Lib.NTuple
#set-options "--z3rlimit 30 --fuel 0 --ifuel 0"
let live4 #a #len (h:mem) (b0 b1 b2 b3: lbuffer a len) =
live h b0 /\ live h b1 ... | false | false | Lib.MultiBuffer.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 modifies_multi : b: Lib.MultiBuffer.multibuf lanes len ->
h0: FStar.Monotonic.HyperStack.mem ->
h1: FStar.Monotonic.HyperStack.mem
-> Type0 | [] | Lib.MultiBuffer.modifies_multi | {
"file_name": "lib/Lib.MultiBuffer.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} |
b: Lib.MultiBuffer.multibuf lanes len ->
h0: FStar.Monotonic.HyperStack.mem ->
h1: FStar.Monotonic.HyperStack.mem
-> Type0 | {
"end_col": 30,
"end_line": 74,
"start_col": 2,
"start_line": 74
} | |
Prims.Tot | [
{
"abbrev": false,
"full_module": "Lib.NTuple",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.Buffer",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.Sequence",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.Int... | false | let multibuf (lanes:flen) (len:size_t) =
ntuple (lbuffer uint8 len) lanes | let multibuf (lanes: flen) (len: size_t) = | false | null | false | ntuple (lbuffer uint8 len) lanes | {
"checked_file": "Lib.MultiBuffer.fst.checked",
"dependencies": [
"prims.fst.checked",
"LowStar.Buffer.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.NTuple.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.Buffer.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.fsti.checke... | [
"total"
] | [
"Lib.NTuple.flen",
"Lib.IntTypes.size_t",
"Lib.NTuple.ntuple",
"Lib.Buffer.lbuffer",
"Lib.IntTypes.uint8"
] | [] | module Lib.MultiBuffer
open FStar.Mul
module ST = FStar.HyperStack.ST
open FStar.HyperStack
open FStar.HyperStack.All
open Lib.IntTypes
open Lib.Sequence
open Lib.Buffer
open Lib.NTuple
#set-options "--z3rlimit 30 --fuel 0 --ifuel 0"
let live4 #a #len (h:mem) (b0 b1 b2 b3: lbuffer a len) =
live h b0 /\ live h b1 ... | false | true | Lib.MultiBuffer.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 multibuf : lanes: Lib.NTuple.flen -> len: Lib.IntTypes.size_t -> Type0 | [] | Lib.MultiBuffer.multibuf | {
"file_name": "lib/Lib.MultiBuffer.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | lanes: Lib.NTuple.flen -> len: Lib.IntTypes.size_t -> Type0 | {
"end_col": 34,
"end_line": 35,
"start_col": 2,
"start_line": 35
} | |
Prims.Tot | [
{
"abbrev": false,
"full_module": "Lib.NTuple",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.Buffer",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.Sequence",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.Int... | false | let live8 #a #len (h:mem) (b0 b1 b2 b3 b4 b5 b6 b7: lbuffer a len) =
live h b0 /\ live h b1 /\ live h b2 /\ live h b3 /\ live h b4 /\ live h b5 /\ live h b6 /\ live h b7 | let live8
#a
#len
(h: mem)
(b0: lbuffer a len)
(b1: lbuffer a len)
(b2: lbuffer a len)
(b3: lbuffer a len)
(b4: lbuffer a len)
(b5: lbuffer a len)
(b6: lbuffer a len)
(b7: lbuffer a len)
= | false | null | false | live h b0 /\ live h b1 /\ live h b2 /\ live h b3 /\ live h b4 /\ live h b5 /\ live h b6 /\ live h b7 | {
"checked_file": "Lib.MultiBuffer.fst.checked",
"dependencies": [
"prims.fst.checked",
"LowStar.Buffer.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.NTuple.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.Buffer.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.fsti.checke... | [
"total"
] | [
"Lib.IntTypes.size_t",
"FStar.Monotonic.HyperStack.mem",
"Lib.Buffer.lbuffer",
"Prims.l_and",
"Lib.Buffer.live",
"Lib.Buffer.MUT",
"Prims.logical"
] | [] | module Lib.MultiBuffer
open FStar.Mul
module ST = FStar.HyperStack.ST
open FStar.HyperStack
open FStar.HyperStack.All
open Lib.IntTypes
open Lib.Sequence
open Lib.Buffer
open Lib.NTuple
#set-options "--z3rlimit 30 --fuel 0 --ifuel 0"
let live4 #a #len (h:mem) (b0 b1 b2 b3: lbuffer a len) =
live h b0 /\ live h b1 ... | false | false | Lib.MultiBuffer.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 live8 : h: FStar.Monotonic.HyperStack.mem ->
b0: Lib.Buffer.lbuffer a len ->
b1: Lib.Buffer.lbuffer a len ->
b2: Lib.Buffer.lbuffer a len ->
b3: Lib.Buffer.lbuffer a len ->
b4: Lib.Buffer.lbuffer a len ->
b5: Lib.Buffer.lbuffer a len ->
b6: Lib.Buffer.lbuffer a len ->
b7: Lib.Buffer.... | [] | Lib.MultiBuffer.live8 | {
"file_name": "lib/Lib.MultiBuffer.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} |
h: FStar.Monotonic.HyperStack.mem ->
b0: Lib.Buffer.lbuffer a len ->
b1: Lib.Buffer.lbuffer a len ->
b2: Lib.Buffer.lbuffer a len ->
b3: Lib.Buffer.lbuffer a len ->
b4: Lib.Buffer.lbuffer a len ->
b5: Lib.Buffer.lbuffer a len ->
b6: Lib.Buffer.lbuffer a len ->
b7: Lib.Buffer.lbuffer... | {
"end_col": 102,
"end_line": 19,
"start_col": 2,
"start_line": 19
} | |
Prims.Tot | [
{
"abbrev": false,
"full_module": "Lib.NTuple",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.Buffer",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.Sequence",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.Int... | false | let op_Lens_Assignment #a #len = upd #a #len | let op_Lens_Assignment #a #len = | false | null | false | upd #a #len | {
"checked_file": "Lib.MultiBuffer.fst.checked",
"dependencies": [
"prims.fst.checked",
"LowStar.Buffer.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.NTuple.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.Buffer.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.fsti.checke... | [
"total"
] | [
"Lib.NTuple.flen",
"Lib.NTuple.upd",
"Lib.NTuple.ntuple",
"Prims.nat",
"Prims.b2t",
"Prims.op_LessThan"
] | [] | module Lib.MultiBuffer
open FStar.Mul
module ST = FStar.HyperStack.ST
open FStar.HyperStack
open FStar.HyperStack.All
open Lib.IntTypes
open Lib.Sequence
open Lib.Buffer
open Lib.NTuple
#set-options "--z3rlimit 30 --fuel 0 --ifuel 0"
let live4 #a #len (h:mem) (b0 b1 b2 b3: lbuffer a len) =
live h b0 /\ live h b1 ... | false | false | Lib.MultiBuffer.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 op_Lens_Assignment : s: Lib.NTuple.ntuple a len -> i: Prims.nat{i < len} -> x: a -> Lib.NTuple.ntuple a len | [] | Lib.MultiBuffer.op_Lens_Assignment | {
"file_name": "lib/Lib.MultiBuffer.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | s: Lib.NTuple.ntuple a len -> i: Prims.nat{i < len} -> x: a -> Lib.NTuple.ntuple a len | {
"end_col": 51,
"end_line": 92,
"start_col": 40,
"start_line": 92
} | |
Prims.Tot | [
{
"abbrev": false,
"full_module": "Lib.NTuple",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.Buffer",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.Sequence",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.Int... | false | let multiseq (lanes:flen) (len:nat) =
ntuple (Seq.lseq uint8 len) lanes | let multiseq (lanes: flen) (len: nat) = | false | null | false | ntuple (Seq.lseq uint8 len) lanes | {
"checked_file": "Lib.MultiBuffer.fst.checked",
"dependencies": [
"prims.fst.checked",
"LowStar.Buffer.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.NTuple.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.Buffer.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.fsti.checke... | [
"total"
] | [
"Lib.NTuple.flen",
"Prims.nat",
"Lib.NTuple.ntuple",
"FStar.Seq.Properties.lseq",
"Lib.IntTypes.uint8"
] | [] | module Lib.MultiBuffer
open FStar.Mul
module ST = FStar.HyperStack.ST
open FStar.HyperStack
open FStar.HyperStack.All
open Lib.IntTypes
open Lib.Sequence
open Lib.Buffer
open Lib.NTuple
#set-options "--z3rlimit 30 --fuel 0 --ifuel 0"
let live4 #a #len (h:mem) (b0 b1 b2 b3: lbuffer a len) =
live h b0 /\ live h b1 ... | false | true | Lib.MultiBuffer.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 multiseq : lanes: Lib.NTuple.flen -> len: Prims.nat -> Type0 | [] | Lib.MultiBuffer.multiseq | {
"file_name": "lib/Lib.MultiBuffer.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | lanes: Lib.NTuple.flen -> len: Prims.nat -> Type0 | {
"end_col": 35,
"end_line": 80,
"start_col": 2,
"start_line": 80
} | |
Prims.Tot | [
{
"abbrev": false,
"full_module": "Lib.NTuple",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.Buffer",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.Sequence",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.Int... | false | let op_Lens_Access #a #len = index #a #len | let op_Lens_Access #a #len = | false | null | false | index #a #len | {
"checked_file": "Lib.MultiBuffer.fst.checked",
"dependencies": [
"prims.fst.checked",
"LowStar.Buffer.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.NTuple.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.Buffer.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.fsti.checke... | [
"total"
] | [
"Lib.NTuple.flen",
"Lib.NTuple.index",
"Lib.NTuple.ntuple",
"Prims.nat",
"Prims.b2t",
"Prims.op_LessThan"
] | [] | module Lib.MultiBuffer
open FStar.Mul
module ST = FStar.HyperStack.ST
open FStar.HyperStack
open FStar.HyperStack.All
open Lib.IntTypes
open Lib.Sequence
open Lib.Buffer
open Lib.NTuple
#set-options "--z3rlimit 30 --fuel 0 --ifuel 0"
let live4 #a #len (h:mem) (b0 b1 b2 b3: lbuffer a len) =
live h b0 /\ live h b1 ... | false | false | Lib.MultiBuffer.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 op_Lens_Access : s: Lib.NTuple.ntuple a len -> i: Prims.nat{i < len} -> a | [] | Lib.MultiBuffer.op_Lens_Access | {
"file_name": "lib/Lib.MultiBuffer.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | s: Lib.NTuple.ntuple a len -> i: Prims.nat{i < len} -> a | {
"end_col": 49,
"end_line": 91,
"start_col": 36,
"start_line": 91
} | |
Prims.Tot | [
{
"abbrev": false,
"full_module": "Lib.NTuple",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.Buffer",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.Sequence",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.Int... | false | let live_multi #lanes #len (h:mem) (b:multibuf lanes len) =
forall i. i < lanes ==> live h b.(|i|) | let live_multi #lanes #len (h: mem) (b: multibuf lanes len) = | false | null | false | forall i. i < lanes ==> live h b.(| i |) | {
"checked_file": "Lib.MultiBuffer.fst.checked",
"dependencies": [
"prims.fst.checked",
"LowStar.Buffer.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.NTuple.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.Buffer.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.fsti.checke... | [
"total"
] | [
"Lib.NTuple.flen",
"Lib.IntTypes.size_t",
"FStar.Monotonic.HyperStack.mem",
"Lib.MultiBuffer.multibuf",
"Prims.l_Forall",
"Prims.int",
"Prims.l_and",
"Prims.b2t",
"Prims.op_GreaterThanOrEqual",
"Prims.op_LessThan",
"Prims.l_imp",
"Lib.Buffer.live",
"Lib.Buffer.MUT",
"Lib.IntTypes.uint8",
... | [] | module Lib.MultiBuffer
open FStar.Mul
module ST = FStar.HyperStack.ST
open FStar.HyperStack
open FStar.HyperStack.All
open Lib.IntTypes
open Lib.Sequence
open Lib.Buffer
open Lib.NTuple
#set-options "--z3rlimit 30 --fuel 0 --ifuel 0"
let live4 #a #len (h:mem) (b0 b1 b2 b3: lbuffer a len) =
live h b0 /\ live h b1 ... | false | false | Lib.MultiBuffer.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 live_multi : h: FStar.Monotonic.HyperStack.mem -> b: Lib.MultiBuffer.multibuf lanes len -> Prims.logical | [] | Lib.MultiBuffer.live_multi | {
"file_name": "lib/Lib.MultiBuffer.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | h: FStar.Monotonic.HyperStack.mem -> b: Lib.MultiBuffer.multibuf lanes len -> Prims.logical | {
"end_col": 40,
"end_line": 71,
"start_col": 2,
"start_line": 71
} | |
Prims.Tot | [
{
"abbrev": false,
"full_module": "Lib.NTuple",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.Buffer",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.Sequence",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.Int... | false | let internally_disjoint8 #len #a (b0 b1 b2 b3 b4 b5 b6 b7: lbuffer a len) =
disjoint b0 b1 /\ disjoint b0 b2 /\ disjoint b0 b3 /\ disjoint b0 b4 /\ disjoint b0 b5 /\ disjoint b0 b6 /\ disjoint b0 b7 /\
disjoint b1 b2 /\ disjoint b1 b3 /\ disjoint b1 b4 /\ disjoint b1 b5 /\ disjoint b1 b6 /\ disjoint b1 b7 /\
disj... | let internally_disjoint8
#len
#a
(b0: lbuffer a len)
(b1: lbuffer a len)
(b2: lbuffer a len)
(b3: lbuffer a len)
(b4: lbuffer a len)
(b5: lbuffer a len)
(b6: lbuffer a len)
(b7: lbuffer a len)
= | false | null | false | disjoint b0 b1 /\ disjoint b0 b2 /\ disjoint b0 b3 /\ disjoint b0 b4 /\ disjoint b0 b5 /\
disjoint b0 b6 /\ disjoint b0 b7 /\ disjoint b1 b2 /\ disjoint b1 b3 /\ disjoint b1 b4 /\
disjoint b1 b5 /\ disjoint b1 b6 /\ disjoint b1 b7 /\ disjoint b2 b3 /\ disjoint b2 b4 /\
disjoint b2 b5 /\ disjoint b2 b6 /\ disjoint b2 b7... | {
"checked_file": "Lib.MultiBuffer.fst.checked",
"dependencies": [
"prims.fst.checked",
"LowStar.Buffer.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.NTuple.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.Buffer.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.fsti.checke... | [
"total"
] | [
"Lib.IntTypes.size_t",
"Lib.Buffer.lbuffer",
"Prims.l_and",
"Lib.Buffer.disjoint",
"Lib.Buffer.MUT",
"Prims.logical"
] | [] | module Lib.MultiBuffer
open FStar.Mul
module ST = FStar.HyperStack.ST
open FStar.HyperStack
open FStar.HyperStack.All
open Lib.IntTypes
open Lib.Sequence
open Lib.Buffer
open Lib.NTuple
#set-options "--z3rlimit 30 --fuel 0 --ifuel 0"
let live4 #a #len (h:mem) (b0 b1 b2 b3: lbuffer a len) =
live h b0 /\ live h b1 ... | false | false | Lib.MultiBuffer.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 internally_disjoint8 : b0: Lib.Buffer.lbuffer a len ->
b1: Lib.Buffer.lbuffer a len ->
b2: Lib.Buffer.lbuffer a len ->
b3: Lib.Buffer.lbuffer a len ->
b4: Lib.Buffer.lbuffer a len ->
b5: Lib.Buffer.lbuffer a len ->
b6: Lib.Buffer.lbuffer a len ->
b7: Lib.Buffer.lbuffer a len
-> Prims.l... | [] | Lib.MultiBuffer.internally_disjoint8 | {
"file_name": "lib/Lib.MultiBuffer.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} |
b0: Lib.Buffer.lbuffer a len ->
b1: Lib.Buffer.lbuffer a len ->
b2: Lib.Buffer.lbuffer a len ->
b3: Lib.Buffer.lbuffer a len ->
b4: Lib.Buffer.lbuffer a len ->
b5: Lib.Buffer.lbuffer a len ->
b6: Lib.Buffer.lbuffer a len ->
b7: Lib.Buffer.lbuffer a len
-> Prims.logical | {
"end_col": 16,
"end_line": 32,
"start_col": 2,
"start_line": 26
} | |
Prims.Tot | [
{
"abbrev": false,
"full_module": "Lib.NTuple",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.Buffer",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.Sequence",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.Int... | false | let internally_disjoint #lanes #len (b:multibuf lanes len) =
forall i j. (i < lanes /\ j < lanes /\ i <> j) ==> disjoint b.(|i|) b.(|j|) | let internally_disjoint #lanes #len (b: multibuf lanes len) = | false | null | false | forall i j. (i < lanes /\ j < lanes /\ i <> j) ==> disjoint b.(| i |) b.(| j |) | {
"checked_file": "Lib.MultiBuffer.fst.checked",
"dependencies": [
"prims.fst.checked",
"LowStar.Buffer.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.NTuple.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.Buffer.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.fsti.checke... | [
"total"
] | [
"Lib.NTuple.flen",
"Lib.IntTypes.size_t",
"Lib.MultiBuffer.multibuf",
"Prims.l_Forall",
"Prims.int",
"Prims.l_and",
"Prims.b2t",
"Prims.op_GreaterThanOrEqual",
"Prims.op_LessThan",
"Prims.l_imp",
"Prims.op_disEquality",
"Prims.l_or",
"Lib.Buffer.disjoint",
"Lib.Buffer.MUT",
"Lib.IntTypes... | [] | module Lib.MultiBuffer
open FStar.Mul
module ST = FStar.HyperStack.ST
open FStar.HyperStack
open FStar.HyperStack.All
open Lib.IntTypes
open Lib.Sequence
open Lib.Buffer
open Lib.NTuple
#set-options "--z3rlimit 30 --fuel 0 --ifuel 0"
let live4 #a #len (h:mem) (b0 b1 b2 b3: lbuffer a len) =
live h b0 /\ live h b1 ... | false | false | Lib.MultiBuffer.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 internally_disjoint : b: Lib.MultiBuffer.multibuf lanes len -> Prims.logical | [] | Lib.MultiBuffer.internally_disjoint | {
"file_name": "lib/Lib.MultiBuffer.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | b: Lib.MultiBuffer.multibuf lanes len -> Prims.logical | {
"end_col": 77,
"end_line": 38,
"start_col": 2,
"start_line": 38
} | |
Prims.GTot | [
{
"abbrev": false,
"full_module": "Lib.NTuple",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.Buffer",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.Sequence",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.Int... | false | let loc_multi #lanes #len b = normalize_term (loc_multi_ #lanes #len 0 b) | let loc_multi #lanes #len b = | false | null | false | normalize_term (loc_multi_ #lanes #len 0 b) | {
"checked_file": "Lib.MultiBuffer.fst.checked",
"dependencies": [
"prims.fst.checked",
"LowStar.Buffer.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.NTuple.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.Buffer.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.fsti.checke... | [
"sometrivial"
] | [
"Lib.NTuple.flen",
"Lib.IntTypes.size_t",
"Lib.MultiBuffer.multibuf",
"FStar.Pervasives.normalize_term",
"LowStar.Monotonic.Buffer.loc",
"Lib.MultiBuffer.loc_multi_"
] | [] | module Lib.MultiBuffer
open FStar.Mul
module ST = FStar.HyperStack.ST
open FStar.HyperStack
open FStar.HyperStack.All
open Lib.IntTypes
open Lib.Sequence
open Lib.Buffer
open Lib.NTuple
#set-options "--z3rlimit 30 --fuel 0 --ifuel 0"
let live4 #a #len (h:mem) (b0 b1 b2 b3: lbuffer a len) =
live h b0 /\ live h b1 ... | false | false | Lib.MultiBuffer.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 loc_multi : b: Lib.MultiBuffer.multibuf lanes len -> Prims.GTot LowStar.Monotonic.Buffer.loc | [] | Lib.MultiBuffer.loc_multi | {
"file_name": "lib/Lib.MultiBuffer.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | b: Lib.MultiBuffer.multibuf lanes len -> Prims.GTot LowStar.Monotonic.Buffer.loc | {
"end_col": 73,
"end_line": 49,
"start_col": 30,
"start_line": 49
} | |
Prims.Tot | [
{
"abbrev": false,
"full_module": "Lib.NTuple",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.Buffer",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.Sequence",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.Int... | false | let disjoint_multi_multi #lanes #len #len' (b:multibuf lanes len) (b':multibuf lanes len') =
forall i. i < lanes ==> disjoint b.(|i|) b'.(|i|) | let disjoint_multi_multi #lanes #len #len' (b: multibuf lanes len) (b': multibuf lanes len') = | false | null | false | forall i. i < lanes ==> disjoint b.(| i |) b'.(| i |) | {
"checked_file": "Lib.MultiBuffer.fst.checked",
"dependencies": [
"prims.fst.checked",
"LowStar.Buffer.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.NTuple.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.Buffer.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.fsti.checke... | [
"total"
] | [
"Lib.NTuple.flen",
"Lib.IntTypes.size_t",
"Lib.MultiBuffer.multibuf",
"Prims.l_Forall",
"Prims.int",
"Prims.l_and",
"Prims.b2t",
"Prims.op_GreaterThanOrEqual",
"Prims.op_LessThan",
"Prims.l_imp",
"Lib.Buffer.disjoint",
"Lib.Buffer.MUT",
"Lib.IntTypes.uint8",
"Lib.NTuple.op_Lens_Access",
... | [] | module Lib.MultiBuffer
open FStar.Mul
module ST = FStar.HyperStack.ST
open FStar.HyperStack
open FStar.HyperStack.All
open Lib.IntTypes
open Lib.Sequence
open Lib.Buffer
open Lib.NTuple
#set-options "--z3rlimit 30 --fuel 0 --ifuel 0"
let live4 #a #len (h:mem) (b0 b1 b2 b3: lbuffer a len) =
live h b0 /\ live h b1 ... | false | false | Lib.MultiBuffer.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 disjoint_multi_multi : b: Lib.MultiBuffer.multibuf lanes len -> b': Lib.MultiBuffer.multibuf lanes len' -> Prims.logical | [] | Lib.MultiBuffer.disjoint_multi_multi | {
"file_name": "lib/Lib.MultiBuffer.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | b: Lib.MultiBuffer.multibuf lanes len -> b': Lib.MultiBuffer.multibuf lanes len' -> Prims.logical | {
"end_col": 51,
"end_line": 68,
"start_col": 2,
"start_line": 68
} | |
Prims.GTot | val loc_multi_ (#lanes: flen) (#len: _) (i: nat{i < lanes}) (b: multibuf lanes len)
: GTot LowStar.Buffer.loc (decreases (lanes - i)) | [
{
"abbrev": false,
"full_module": "Lib.NTuple",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.Buffer",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.Sequence",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.Int... | false | let rec loc_multi_ (#lanes:flen) #len (i:nat{i < lanes}) (b:multibuf lanes len)
: GTot LowStar.Buffer.loc (decreases (lanes - i)) =
if i = lanes - 1 then loc (b.(|i|))
else loc b.(|i|) |+| loc_multi_ (i+1) b | val loc_multi_ (#lanes: flen) (#len: _) (i: nat{i < lanes}) (b: multibuf lanes len)
: GTot LowStar.Buffer.loc (decreases (lanes - i))
let rec loc_multi_ (#lanes: flen) #len (i: nat{i < lanes}) (b: multibuf lanes len)
: GTot LowStar.Buffer.loc (decreases (lanes - i)) = | false | null | false | if i = lanes - 1 then loc (b.(| i |)) else loc b.(| i |) |+| loc_multi_ (i + 1) b | {
"checked_file": "Lib.MultiBuffer.fst.checked",
"dependencies": [
"prims.fst.checked",
"LowStar.Buffer.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.NTuple.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.Buffer.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.fsti.checke... | [
"sometrivial",
""
] | [
"Lib.NTuple.flen",
"Lib.IntTypes.size_t",
"Prims.nat",
"Prims.b2t",
"Prims.op_LessThan",
"Lib.MultiBuffer.multibuf",
"Prims.op_Equality",
"Prims.int",
"Prims.op_Subtraction",
"Lib.Buffer.loc",
"Lib.Buffer.MUT",
"Lib.IntTypes.uint8",
"Lib.NTuple.op_Lens_Access",
"Lib.Buffer.lbuffer",
"Pri... | [] | module Lib.MultiBuffer
open FStar.Mul
module ST = FStar.HyperStack.ST
open FStar.HyperStack
open FStar.HyperStack.All
open Lib.IntTypes
open Lib.Sequence
open Lib.Buffer
open Lib.NTuple
#set-options "--z3rlimit 30 --fuel 0 --ifuel 0"
let live4 #a #len (h:mem) (b0 b1 b2 b3: lbuffer a len) =
live h b0 /\ live h b1 ... | false | false | Lib.MultiBuffer.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 loc_multi_ (#lanes: flen) (#len: _) (i: nat{i < lanes}) (b: multibuf lanes len)
: GTot LowStar.Buffer.loc (decreases (lanes - i)) | [
"recursion"
] | Lib.MultiBuffer.loc_multi_ | {
"file_name": "lib/Lib.MultiBuffer.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | i: Prims.nat{i < lanes} -> b: Lib.MultiBuffer.multibuf lanes len
-> Prims.GTot LowStar.Monotonic.Buffer.loc | {
"end_col": 41,
"end_line": 47,
"start_col": 2,
"start_line": 46
} |
Prims.Tot | [
{
"abbrev": false,
"full_module": "Lib.NTuple",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.Buffer",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.Sequence",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.Int... | false | let stack_allocated_multi #lanes #len (b:multibuf lanes len) (h0:mem) (h1:mem) (s:lseq uint8 (v len)) =
forall i. i < lanes ==> stack_allocated b.(|i|) h0 h1 s | let stack_allocated_multi
#lanes
#len
(b: multibuf lanes len)
(h0: mem)
(h1: mem)
(s: lseq uint8 (v len))
= | false | null | false | forall i. i < lanes ==> stack_allocated b.(| i |) h0 h1 s | {
"checked_file": "Lib.MultiBuffer.fst.checked",
"dependencies": [
"prims.fst.checked",
"LowStar.Buffer.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.NTuple.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.Buffer.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.fsti.checke... | [
"total"
] | [
"Lib.NTuple.flen",
"Lib.IntTypes.size_t",
"Lib.MultiBuffer.multibuf",
"FStar.Monotonic.HyperStack.mem",
"Lib.Sequence.lseq",
"Lib.IntTypes.uint8",
"Lib.IntTypes.v",
"Lib.IntTypes.U32",
"Lib.IntTypes.PUB",
"Prims.l_Forall",
"Prims.int",
"Prims.l_and",
"Prims.b2t",
"Prims.op_GreaterThanOrEqu... | [] | module Lib.MultiBuffer
open FStar.Mul
module ST = FStar.HyperStack.ST
open FStar.HyperStack
open FStar.HyperStack.All
open Lib.IntTypes
open Lib.Sequence
open Lib.Buffer
open Lib.NTuple
#set-options "--z3rlimit 30 --fuel 0 --ifuel 0"
let live4 #a #len (h:mem) (b0 b1 b2 b3: lbuffer a len) =
live h b0 /\ live h b1 ... | false | false | Lib.MultiBuffer.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 stack_allocated_multi : b: Lib.MultiBuffer.multibuf lanes len ->
h0: FStar.Monotonic.HyperStack.mem ->
h1: FStar.Monotonic.HyperStack.mem ->
s: Lib.Sequence.lseq Lib.IntTypes.uint8 (Lib.IntTypes.v len)
-> Prims.logical | [] | Lib.MultiBuffer.stack_allocated_multi | {
"file_name": "lib/Lib.MultiBuffer.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} |
b: Lib.MultiBuffer.multibuf lanes len ->
h0: FStar.Monotonic.HyperStack.mem ->
h1: FStar.Monotonic.HyperStack.mem ->
s: Lib.Sequence.lseq Lib.IntTypes.uint8 (Lib.IntTypes.v len)
-> Prims.logical | {
"end_col": 57,
"end_line": 77,
"start_col": 2,
"start_line": 77
} | |
Prims.GTot | val as_seq_multi (#lanes #len: _) (h: mem) (b: multibuf lanes len) : GTot (multiseq lanes (v len)) | [
{
"abbrev": false,
"full_module": "Lib.NTuple",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.Buffer",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.Sequence",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.Int... | false | let as_seq_multi #lanes #len (h:mem) (b:multibuf lanes len) : GTot (multiseq lanes (v len)) =
gmap (as_seq h) b | val as_seq_multi (#lanes #len: _) (h: mem) (b: multibuf lanes len) : GTot (multiseq lanes (v len))
let as_seq_multi #lanes #len (h: mem) (b: multibuf lanes len) : GTot (multiseq lanes (v len)) = | false | null | false | gmap (as_seq h) b | {
"checked_file": "Lib.MultiBuffer.fst.checked",
"dependencies": [
"prims.fst.checked",
"LowStar.Buffer.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.NTuple.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.Buffer.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.fsti.checke... | [
"sometrivial"
] | [
"Lib.NTuple.flen",
"Lib.IntTypes.size_t",
"FStar.Monotonic.HyperStack.mem",
"Lib.MultiBuffer.multibuf",
"Lib.NTuple.gmap",
"Lib.Buffer.lbuffer",
"Lib.IntTypes.uint8",
"FStar.Seq.Properties.lseq",
"Lib.IntTypes.v",
"Lib.IntTypes.U32",
"Lib.IntTypes.PUB",
"Lib.Buffer.as_seq",
"Lib.Buffer.MUT",... | [] | module Lib.MultiBuffer
open FStar.Mul
module ST = FStar.HyperStack.ST
open FStar.HyperStack
open FStar.HyperStack.All
open Lib.IntTypes
open Lib.Sequence
open Lib.Buffer
open Lib.NTuple
#set-options "--z3rlimit 30 --fuel 0 --ifuel 0"
let live4 #a #len (h:mem) (b0 b1 b2 b3: lbuffer a len) =
live h b0 /\ live h b1 ... | false | false | Lib.MultiBuffer.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 as_seq_multi (#lanes #len: _) (h: mem) (b: multibuf lanes len) : GTot (multiseq lanes (v len)) | [] | Lib.MultiBuffer.as_seq_multi | {
"file_name": "lib/Lib.MultiBuffer.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | h: FStar.Monotonic.HyperStack.mem -> b: Lib.MultiBuffer.multibuf lanes len
-> Prims.GTot (Lib.MultiBuffer.multiseq lanes (Lib.IntTypes.v len)) | {
"end_col": 19,
"end_line": 83,
"start_col": 2,
"start_line": 83
} |
FStar.Pervasives.Lemma | val as_seq_multi_lemma (#lanes: flen) (#len h b: _) (i: nat{i < lanes})
: Lemma ((as_seq_multi #lanes #len h b).(| i |) == as_seq h b.(| i |))
[SMTPat (as_seq_multi #lanes #len h b).(| i |)] | [
{
"abbrev": false,
"full_module": "Lib.NTuple",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.Buffer",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.Sequence",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.Int... | false | let as_seq_multi_lemma (#lanes:flen) #len h b (i:nat{i < lanes}):
Lemma ((as_seq_multi #lanes #len h b).(|i|) == as_seq h b.(|i|))
[SMTPat (as_seq_multi #lanes #len h b).(|i|)]
=
index_gmap_lemma (as_seq h) b i | val as_seq_multi_lemma (#lanes: flen) (#len h b: _) (i: nat{i < lanes})
: Lemma ((as_seq_multi #lanes #len h b).(| i |) == as_seq h b.(| i |))
[SMTPat (as_seq_multi #lanes #len h b).(| i |)]
let as_seq_multi_lemma (#lanes: flen) #len h b (i: nat{i < lanes})
: Lemma ((as_seq_multi #lanes #len h b).(| i |) ... | false | null | true | index_gmap_lemma (as_seq h) b i | {
"checked_file": "Lib.MultiBuffer.fst.checked",
"dependencies": [
"prims.fst.checked",
"LowStar.Buffer.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.NTuple.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.Buffer.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.fsti.checke... | [
"lemma"
] | [
"Lib.NTuple.flen",
"Lib.IntTypes.size_t",
"FStar.Monotonic.HyperStack.mem",
"Lib.NTuple.ntuple",
"Lib.Buffer.lbuffer_t",
"Lib.Buffer.MUT",
"Lib.IntTypes.uint8",
"Prims.nat",
"Prims.b2t",
"Prims.op_LessThan",
"Lib.NTuple.index_gmap_lemma",
"Lib.Sequence.lseq",
"Lib.IntTypes.v",
"Lib.IntType... | [] | module Lib.MultiBuffer
open FStar.Mul
module ST = FStar.HyperStack.ST
open FStar.HyperStack
open FStar.HyperStack.All
open Lib.IntTypes
open Lib.Sequence
open Lib.Buffer
open Lib.NTuple
#set-options "--z3rlimit 30 --fuel 0 --ifuel 0"
let live4 #a #len (h:mem) (b0 b1 b2 b3: lbuffer a len) =
live h b0 /\ live h b1 ... | false | false | Lib.MultiBuffer.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 as_seq_multi_lemma (#lanes: flen) (#len h b: _) (i: nat{i < lanes})
: Lemma ((as_seq_multi #lanes #len h b).(| i |) == as_seq h b.(| i |))
[SMTPat (as_seq_multi #lanes #len h b).(| i |)] | [] | Lib.MultiBuffer.as_seq_multi_lemma | {
"file_name": "lib/Lib.MultiBuffer.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} |
h: FStar.Monotonic.HyperStack.mem ->
b: Lib.NTuple.ntuple (Lib.Buffer.lbuffer_t Lib.Buffer.MUT Lib.IntTypes.uint8 len) lanes ->
i: Prims.nat{i < lanes}
-> FStar.Pervasives.Lemma
(ensures ( .(||) ) (Lib.MultiBuffer.as_seq_multi h b) i == Lib.Buffer.as_seq h (( .(||) ) b i)
) [SMTPat (( .(||) )... | {
"end_col": 33,
"end_line": 89,
"start_col": 2,
"start_line": 89
} |
Prims.Tot | val pts_to (#a: Type) (#p: Preorder.preorder a) (r: ref a p) (f: perm) (v: erased a) : vprop | [
{
"abbrev": true,
"full_module": "FStar.Preorder",
"short_module": "Preorder"
},
{
"abbrev": false,
"full_module": "Steel.Effect",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel.Effect.Atomic",
"short_module": null
},
{
"abbrev": false,
"full... | false | let pts_to (#a:Type) (#p:Preorder.preorder a) (r:ref a p) (f:perm) (v:erased a) : vprop =
to_vprop (pts_to_sl r f v) | val pts_to (#a: Type) (#p: Preorder.preorder a) (r: ref a p) (f: perm) (v: erased a) : vprop
let pts_to (#a: Type) (#p: Preorder.preorder a) (r: ref a p) (f: perm) (v: erased a) : vprop = | false | null | false | to_vprop (pts_to_sl r f v) | {
"checked_file": "Steel.MonotonicHigherReference.fsti.checked",
"dependencies": [
"Steel.Memory.fsti.checked",
"Steel.FractionalPermission.fst.checked",
"Steel.Effect.Atomic.fsti.checked",
"Steel.Effect.fsti.checked",
"prims.fst.checked",
"FStar.Preorder.fst.checked",
"FStar.Pervasives.... | [
"total"
] | [
"FStar.Preorder.preorder",
"Steel.MonotonicHigherReference.ref",
"Steel.FractionalPermission.perm",
"FStar.Ghost.erased",
"Steel.Effect.Common.to_vprop",
"Steel.MonotonicHigherReference.pts_to_sl",
"Steel.Effect.Common.vprop"
] | [] | (*
Copyright 2020 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to... | false | false | Steel.MonotonicHigherReference.fsti | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | null | val pts_to (#a: Type) (#p: Preorder.preorder a) (r: ref a p) (f: perm) (v: erased a) : vprop | [] | Steel.MonotonicHigherReference.pts_to | {
"file_name": "lib/steel/Steel.MonotonicHigherReference.fsti",
"git_rev": "7fbb54e94dd4f48ff7cb867d3bae6889a635541e",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} |
r: Steel.MonotonicHigherReference.ref a p ->
f: Steel.FractionalPermission.perm ->
v: FStar.Ghost.erased a
-> Steel.Effect.Common.vprop | {
"end_col": 28,
"end_line": 43,
"start_col": 2,
"start_line": 43
} |
Prims.Tot | [
{
"abbrev": true,
"full_module": "FStar.Preorder",
"short_module": "Preorder"
},
{
"abbrev": false,
"full_module": "Steel.Effect",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel.Effect.Atomic",
"short_module": null
},
{
"abbrev": false,
"full... | false | let property (a:Type)
= a -> prop | let property (a: Type) = | false | null | false | a -> prop | {
"checked_file": "Steel.MonotonicHigherReference.fsti.checked",
"dependencies": [
"Steel.Memory.fsti.checked",
"Steel.FractionalPermission.fst.checked",
"Steel.Effect.Atomic.fsti.checked",
"Steel.Effect.fsti.checked",
"prims.fst.checked",
"FStar.Preorder.fst.checked",
"FStar.Pervasives.... | [
"total"
] | [
"Prims.prop"
] | [] | (*
Copyright 2020 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to... | false | true | Steel.MonotonicHigherReference.fsti | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | null | val property : a: Type -> Type | [] | Steel.MonotonicHigherReference.property | {
"file_name": "lib/steel/Steel.MonotonicHigherReference.fsti",
"git_rev": "7fbb54e94dd4f48ff7cb867d3bae6889a635541e",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | a: Type -> Type | {
"end_col": 13,
"end_line": 67,
"start_col": 4,
"start_line": 67
} | |
Prims.Tot | [
{
"abbrev": true,
"full_module": "FStar.Preorder",
"short_module": "Preorder"
},
{
"abbrev": false,
"full_module": "Steel.Effect",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel.Effect.Atomic",
"short_module": null
},
{
"abbrev": false,
"full... | false | let stable_property (#a:Type) (p:Preorder.preorder a)
= fact:property a { Preorder.stable fact p } | let stable_property (#a: Type) (p: Preorder.preorder a) = | false | null | false | fact: property a {Preorder.stable fact p} | {
"checked_file": "Steel.MonotonicHigherReference.fsti.checked",
"dependencies": [
"Steel.Memory.fsti.checked",
"Steel.FractionalPermission.fst.checked",
"Steel.Effect.Atomic.fsti.checked",
"Steel.Effect.fsti.checked",
"prims.fst.checked",
"FStar.Preorder.fst.checked",
"FStar.Pervasives.... | [
"total"
] | [
"FStar.Preorder.preorder",
"Steel.MonotonicHigherReference.property",
"FStar.Preorder.stable"
] | [] | (*
Copyright 2020 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to... | false | false | Steel.MonotonicHigherReference.fsti | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | null | val stable_property : p: FStar.Preorder.preorder a -> Type | [] | Steel.MonotonicHigherReference.stable_property | {
"file_name": "lib/steel/Steel.MonotonicHigherReference.fsti",
"git_rev": "7fbb54e94dd4f48ff7cb867d3bae6889a635541e",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | p: FStar.Preorder.preorder a -> Type | {
"end_col": 46,
"end_line": 77,
"start_col": 4,
"start_line": 77
} | |
Prims.Tot | val va_code_Gctr_blocks128_1way_body0 : alg:algorithm -> Tot va_code | [
{
"abbrev": false,
"full_module": "Vale.Lib.Basic",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.AES.Types_helpers",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.PPC64LE.QuickCodes",
"short_module": null
},
{
"abbrev": false,
... | false | let va_code_Gctr_blocks128_1way_body0 alg =
(va_Block (va_CCons (va_code_Mod_cr0 ()) (va_CCons (va_code_Gctr_blocks128_body_1way alg)
(va_CCons (va_code_AddImm (va_op_reg_opr_reg 8) (va_op_reg_opr_reg 8) 1) (va_CCons
(va_code_AddImm (va_op_reg_opr_reg 9) (va_op_reg_opr_reg 9) 16) (va_CCons (va_code_Vadduwm
... | val va_code_Gctr_blocks128_1way_body0 : alg:algorithm -> Tot va_code
let va_code_Gctr_blocks128_1way_body0 alg = | false | null | false | (va_Block (va_CCons (va_code_Mod_cr0 ())
(va_CCons (va_code_Gctr_blocks128_body_1way alg)
(va_CCons (va_code_AddImm (va_op_reg_opr_reg 8) (va_op_reg_opr_reg 8) 1)
(va_CCons (va_code_AddImm (va_op_reg_opr_reg 9) (va_op_reg_opr_reg 9) 16)
(va_CCons (va_code_Vadduwm ... | {
"checked_file": "Vale.AES.PPC64LE.GCTR.fst.checked",
"dependencies": [
"Vale.PPC64LE.State.fsti.checked",
"Vale.PPC64LE.QuickCodes.fsti.checked",
"Vale.PPC64LE.QuickCode.fst.checked",
"Vale.PPC64LE.Memory.fsti.checked",
"Vale.PPC64LE.Machine_s.fst.checked",
"Vale.PPC64LE.InsVector.fsti.che... | [
"total"
] | [
"Vale.AES.AES_common_s.algorithm",
"Vale.PPC64LE.Decls.va_Block",
"Vale.PPC64LE.Decls.va_CCons",
"Vale.AES.PPC64LE.GCTR.va_code_Mod_cr0",
"Vale.AES.PPC64LE.GCTR.va_code_Gctr_blocks128_body_1way",
"Vale.PPC64LE.InsBasic.va_code_AddImm",
"Vale.PPC64LE.Decls.va_op_reg_opr_reg",
"Vale.PPC64LE.InsVector.va... | [] | module Vale.AES.PPC64LE.GCTR
open Vale.Def.Prop_s
open Vale.Def.Opaque_s
open Vale.Def.Words_s
open Vale.Def.Types_s
open Vale.Arch.Types
open Vale.Arch.HeapImpl
open FStar.Seq
open Vale.AES.AES_BE_s
open Vale.AES.PPC64LE.AES
open Vale.AES.GCTR_BE_s
open Vale.AES.GCTR_BE
open Vale.AES.GCM_helpers_BE
open Vale.Poly1305.... | false | true | Vale.AES.PPC64LE.GCTR.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 va_code_Gctr_blocks128_1way_body0 : alg:algorithm -> Tot va_code | [] | Vale.AES.PPC64LE.GCTR.va_code_Gctr_blocks128_1way_body0 | {
"file_name": "obj/Vale.AES.PPC64LE.GCTR.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | alg: Vale.AES.AES_common_s.algorithm -> Vale.PPC64LE.Decls.va_code | {
"end_col": 89,
"end_line": 365,
"start_col": 2,
"start_line": 362
} |
Prims.Tot | val va_code_Gctr_register : alg:algorithm -> Tot va_code | [
{
"abbrev": false,
"full_module": "Vale.Lib.Basic",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.AES.Types_helpers",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.PPC64LE.QuickCodes",
"short_module": null
},
{
"abbrev": false,
... | false | let va_code_Gctr_register alg =
(va_Block (va_CCons (va_code_Vmr (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 7)) (va_CCons
(va_code_AESEncryptBlock alg) (va_CCons (va_Block (va_CNil ())) (va_CCons (va_code_Vxor
(va_op_vec_opr_vec 1) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 0)) (va_CNil ())))))) | val va_code_Gctr_register : alg:algorithm -> Tot va_code
let va_code_Gctr_register alg = | false | null | false | (va_Block (va_CCons (va_code_Vmr (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 7))
(va_CCons (va_code_AESEncryptBlock alg)
(va_CCons (va_Block (va_CNil ()))
(va_CCons (va_code_Vxor (va_op_vec_opr_vec 1)
(va_op_vec_opr_vec 1)
(va_op_vec_opr_v... | {
"checked_file": "Vale.AES.PPC64LE.GCTR.fst.checked",
"dependencies": [
"Vale.PPC64LE.State.fsti.checked",
"Vale.PPC64LE.QuickCodes.fsti.checked",
"Vale.PPC64LE.QuickCode.fst.checked",
"Vale.PPC64LE.Memory.fsti.checked",
"Vale.PPC64LE.Machine_s.fst.checked",
"Vale.PPC64LE.InsVector.fsti.che... | [
"total"
] | [
"Vale.AES.AES_common_s.algorithm",
"Vale.PPC64LE.Decls.va_Block",
"Vale.PPC64LE.Decls.va_CCons",
"Vale.PPC64LE.InsVector.va_code_Vmr",
"Vale.PPC64LE.Decls.va_op_vec_opr_vec",
"Vale.AES.PPC64LE.AES.va_code_AESEncryptBlock",
"Vale.PPC64LE.Decls.va_CNil",
"Vale.PPC64LE.InsVector.va_code_Vxor",
"Vale.PP... | [] | module Vale.AES.PPC64LE.GCTR
open Vale.Def.Prop_s
open Vale.Def.Opaque_s
open Vale.Def.Words_s
open Vale.Def.Types_s
open Vale.Arch.Types
open Vale.Arch.HeapImpl
open FStar.Seq
open Vale.AES.AES_BE_s
open Vale.AES.PPC64LE.AES
open Vale.AES.GCTR_BE_s
open Vale.AES.GCTR_BE
open Vale.AES.GCM_helpers_BE
open Vale.Poly1305.... | false | true | Vale.AES.PPC64LE.GCTR.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 va_code_Gctr_register : alg:algorithm -> Tot va_code | [] | Vale.AES.PPC64LE.GCTR.va_code_Gctr_register | {
"file_name": "obj/Vale.AES.PPC64LE.GCTR.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | alg: Vale.AES.AES_common_s.algorithm -> Vale.PPC64LE.Decls.va_code | {
"end_col": 88,
"end_line": 36,
"start_col": 2,
"start_line": 34
} |
Prims.Tot | val va_wp_Mod_cr0 (va_s0: va_state) (va_k: (va_state -> unit -> Type0)) : Type0 | [
{
"abbrev": false,
"full_module": "Vale.Lib.Basic",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.AES.Types_helpers",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.PPC64LE.QuickCodes",
"short_module": null
},
{
"abbrev": false,
... | false | let va_wp_Mod_cr0 (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 =
(va_get_ok va_s0 /\ (forall (va_x_cr0:cr0_t) . let va_sM = va_upd_cr0 va_x_cr0 va_s0 in va_get_ok
va_sM ==> va_k va_sM (()))) | val va_wp_Mod_cr0 (va_s0: va_state) (va_k: (va_state -> unit -> Type0)) : Type0
let va_wp_Mod_cr0 (va_s0: va_state) (va_k: (va_state -> unit -> Type0)) : Type0 = | false | null | false | (va_get_ok va_s0 /\
(forall (va_x_cr0: cr0_t).
let va_sM = va_upd_cr0 va_x_cr0 va_s0 in
va_get_ok va_sM ==> va_k va_sM (()))) | {
"checked_file": "Vale.AES.PPC64LE.GCTR.fst.checked",
"dependencies": [
"Vale.PPC64LE.State.fsti.checked",
"Vale.PPC64LE.QuickCodes.fsti.checked",
"Vale.PPC64LE.QuickCode.fst.checked",
"Vale.PPC64LE.Memory.fsti.checked",
"Vale.PPC64LE.Machine_s.fst.checked",
"Vale.PPC64LE.InsVector.fsti.che... | [
"total"
] | [
"Vale.PPC64LE.Decls.va_state",
"Prims.unit",
"Prims.l_and",
"Prims.b2t",
"Vale.PPC64LE.Decls.va_get_ok",
"Prims.l_Forall",
"Vale.PPC64LE.Machine_s.cr0_t",
"Prims.l_imp",
"Vale.PPC64LE.Machine_s.state",
"Vale.PPC64LE.Decls.va_upd_cr0"
] | [] | module Vale.AES.PPC64LE.GCTR
open Vale.Def.Prop_s
open Vale.Def.Opaque_s
open Vale.Def.Words_s
open Vale.Def.Types_s
open Vale.Arch.Types
open Vale.Arch.HeapImpl
open FStar.Seq
open Vale.AES.AES_BE_s
open Vale.AES.PPC64LE.AES
open Vale.AES.GCTR_BE_s
open Vale.AES.GCTR_BE
open Vale.AES.GCM_helpers_BE
open Vale.Poly1305.... | false | true | Vale.AES.PPC64LE.GCTR.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 va_wp_Mod_cr0 (va_s0: va_state) (va_k: (va_state -> unit -> Type0)) : Type0 | [] | Vale.AES.PPC64LE.GCTR.va_wp_Mod_cr0 | {
"file_name": "obj/Vale.AES.PPC64LE.GCTR.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} |
va_s0: Vale.PPC64LE.Decls.va_state ->
va_k: (_: Vale.PPC64LE.Decls.va_state -> _: Prims.unit -> Type0)
-> Type0 | {
"end_col": 31,
"end_line": 335,
"start_col": 2,
"start_line": 334
} |
Prims.Tot | val va_codegen_success_Gctr_blocks128_body_1way : alg:algorithm -> Tot va_pbool | [
{
"abbrev": false,
"full_module": "Vale.Lib.Basic",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.AES.Types_helpers",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.PPC64LE.QuickCodes",
"short_module": null
},
{
"abbrev": false,
... | false | let va_codegen_success_Gctr_blocks128_body_1way alg =
(va_pbool_and (va_codegen_success_Vmr (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 7)) (va_pbool_and
(va_codegen_success_AESEncryptBlock alg) (va_pbool_and
(va_codegen_success_Load128_byte16_buffer_index (va_op_heaplet_mem_heaplet 1)
(va_op_vec_opr_vec 2) ... | val va_codegen_success_Gctr_blocks128_body_1way : alg:algorithm -> Tot va_pbool
let va_codegen_success_Gctr_blocks128_body_1way alg = | false | null | false | (va_pbool_and (va_codegen_success_Vmr (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 7))
(va_pbool_and (va_codegen_success_AESEncryptBlock alg)
(va_pbool_and (va_codegen_success_Load128_byte16_buffer_index (va_op_heaplet_mem_heaplet 1)
(va_op_vec_opr_vec 2)
(va_op_reg_opr_reg 3)
... | {
"checked_file": "Vale.AES.PPC64LE.GCTR.fst.checked",
"dependencies": [
"Vale.PPC64LE.State.fsti.checked",
"Vale.PPC64LE.QuickCodes.fsti.checked",
"Vale.PPC64LE.QuickCode.fst.checked",
"Vale.PPC64LE.Memory.fsti.checked",
"Vale.PPC64LE.Machine_s.fst.checked",
"Vale.PPC64LE.InsVector.fsti.che... | [
"total"
] | [
"Vale.AES.AES_common_s.algorithm",
"Vale.PPC64LE.Decls.va_pbool_and",
"Vale.PPC64LE.InsVector.va_codegen_success_Vmr",
"Vale.PPC64LE.Decls.va_op_vec_opr_vec",
"Vale.AES.PPC64LE.AES.va_codegen_success_AESEncryptBlock",
"Vale.PPC64LE.InsVector.va_codegen_success_Load128_byte16_buffer_index",
"Vale.PPC64LE... | [] | module Vale.AES.PPC64LE.GCTR
open Vale.Def.Prop_s
open Vale.Def.Opaque_s
open Vale.Def.Words_s
open Vale.Def.Types_s
open Vale.Arch.Types
open Vale.Arch.HeapImpl
open FStar.Seq
open Vale.AES.AES_BE_s
open Vale.AES.PPC64LE.AES
open Vale.AES.GCTR_BE_s
open Vale.AES.GCTR_BE
open Vale.AES.GCM_helpers_BE
open Vale.Poly1305.... | false | true | Vale.AES.PPC64LE.GCTR.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 va_codegen_success_Gctr_blocks128_body_1way : alg:algorithm -> Tot va_pbool | [] | Vale.AES.PPC64LE.GCTR.va_codegen_success_Gctr_blocks128_body_1way | {
"file_name": "obj/Vale.AES.PPC64LE.GCTR.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | alg: Vale.AES.AES_common_s.algorithm -> Vale.PPC64LE.Decls.va_pbool | {
"end_col": 96,
"end_line": 130,
"start_col": 2,
"start_line": 124
} |
Prims.Tot | val va_code_Gctr_blocks128_1way_while0 : alg:algorithm -> Tot va_code | [
{
"abbrev": false,
"full_module": "Vale.Lib.Basic",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.AES.Types_helpers",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.PPC64LE.QuickCodes",
"short_module": null
},
{
"abbrev": false,
... | false | let va_code_Gctr_blocks128_1way_while0 alg =
(va_Block (va_CCons (va_While (va_cmp_ne (va_op_cmp_reg 8) (va_op_cmp_reg 26)) (va_Block
(va_CCons (va_code_Gctr_blocks128_1way_body0 alg) (va_CNil ())))) (va_CNil ()))) | val va_code_Gctr_blocks128_1way_while0 : alg:algorithm -> Tot va_code
let va_code_Gctr_blocks128_1way_while0 alg = | false | null | false | (va_Block (va_CCons (va_While (va_cmp_ne (va_op_cmp_reg 8) (va_op_cmp_reg 26))
(va_Block (va_CCons (va_code_Gctr_blocks128_1way_body0 alg) (va_CNil ()))))
(va_CNil ()))) | {
"checked_file": "Vale.AES.PPC64LE.GCTR.fst.checked",
"dependencies": [
"Vale.PPC64LE.State.fsti.checked",
"Vale.PPC64LE.QuickCodes.fsti.checked",
"Vale.PPC64LE.QuickCode.fst.checked",
"Vale.PPC64LE.Memory.fsti.checked",
"Vale.PPC64LE.Machine_s.fst.checked",
"Vale.PPC64LE.InsVector.fsti.che... | [
"total"
] | [
"Vale.AES.AES_common_s.algorithm",
"Vale.PPC64LE.Decls.va_Block",
"Vale.PPC64LE.Decls.va_CCons",
"Vale.PPC64LE.Decls.va_While",
"Vale.PPC64LE.Decls.va_cmp_ne",
"Vale.PPC64LE.Decls.va_op_cmp_reg",
"Vale.AES.PPC64LE.GCTR.va_code_Gctr_blocks128_1way_body0",
"Vale.PPC64LE.Decls.va_CNil",
"Vale.PPC64LE.D... | [] | module Vale.AES.PPC64LE.GCTR
open Vale.Def.Prop_s
open Vale.Def.Opaque_s
open Vale.Def.Words_s
open Vale.Def.Types_s
open Vale.Arch.Types
open Vale.Arch.HeapImpl
open FStar.Seq
open Vale.AES.AES_BE_s
open Vale.AES.PPC64LE.AES
open Vale.AES.GCTR_BE_s
open Vale.AES.GCTR_BE
open Vale.AES.GCM_helpers_BE
open Vale.Poly1305.... | false | true | Vale.AES.PPC64LE.GCTR.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 va_code_Gctr_blocks128_1way_while0 : alg:algorithm -> Tot va_code | [] | Vale.AES.PPC64LE.GCTR.va_code_Gctr_blocks128_1way_while0 | {
"file_name": "obj/Vale.AES.PPC64LE.GCTR.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | alg: Vale.AES.AES_common_s.algorithm -> Vale.PPC64LE.Decls.va_code | {
"end_col": 84,
"end_line": 640,
"start_col": 2,
"start_line": 639
} |
Prims.Tot | val va_qcode_Store_3blocks128_2 (va_mods: va_mods_t) (out_b: buffer128)
: (va_quickCode unit (va_code_Store_3blocks128_2 ())) | [
{
"abbrev": false,
"full_module": "Vale.Lib.Basic",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.AES.Types_helpers",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.PPC64LE.QuickCodes",
"short_module": null
},
{
"abbrev": false,
... | false | let va_qcode_Store_3blocks128_2 (va_mods:va_mods_t) (out_b:buffer128) : (va_quickCode unit
(va_code_Store_3blocks128_2 ())) =
(qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QBind va_range1
"***** PRECONDITION NOT MET AT line 313 column 33 of file /home/gebner/everest/hacl-star/vale... | val va_qcode_Store_3blocks128_2 (va_mods: va_mods_t) (out_b: buffer128)
: (va_quickCode unit (va_code_Store_3blocks128_2 ()))
let va_qcode_Store_3blocks128_2 (va_mods: va_mods_t) (out_b: buffer128)
: (va_quickCode unit (va_code_Store_3blocks128_2 ())) = | false | null | false | (qblock va_mods
(fun (va_s: va_state) ->
let va_old_s:va_state = va_s in
va_QBind va_range1
"***** PRECONDITION NOT MET AT line 313 column 33 of file /home/gebner/everest/hacl-star/vale/code/crypto/aes/ppc64le/Vale.AES.PPC64LE.GCTR.vaf *****"
(va_quick_Store128_byte16_buffer_inde... | {
"checked_file": "Vale.AES.PPC64LE.GCTR.fst.checked",
"dependencies": [
"Vale.PPC64LE.State.fsti.checked",
"Vale.PPC64LE.QuickCodes.fsti.checked",
"Vale.PPC64LE.QuickCode.fst.checked",
"Vale.PPC64LE.Memory.fsti.checked",
"Vale.PPC64LE.Machine_s.fst.checked",
"Vale.PPC64LE.InsVector.fsti.che... | [
"total"
] | [
"Vale.PPC64LE.QuickCode.va_mods_t",
"Vale.PPC64LE.Memory.buffer128",
"Vale.PPC64LE.QuickCodes.qblock",
"Prims.unit",
"Prims.Cons",
"Vale.PPC64LE.Decls.va_code",
"Vale.PPC64LE.InsVector.va_code_Store128_byte16_buffer_index",
"Vale.PPC64LE.Decls.va_op_heaplet_mem_heaplet",
"Vale.PPC64LE.Decls.va_op_ve... | [] | module Vale.AES.PPC64LE.GCTR
open Vale.Def.Prop_s
open Vale.Def.Opaque_s
open Vale.Def.Words_s
open Vale.Def.Types_s
open Vale.Arch.Types
open Vale.Arch.HeapImpl
open FStar.Seq
open Vale.AES.AES_BE_s
open Vale.AES.PPC64LE.AES
open Vale.AES.GCTR_BE_s
open Vale.AES.GCTR_BE
open Vale.AES.GCM_helpers_BE
open Vale.Poly1305.... | false | false | Vale.AES.PPC64LE.GCTR.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 va_qcode_Store_3blocks128_2 (va_mods: va_mods_t) (out_b: buffer128)
: (va_quickCode unit (va_code_Store_3blocks128_2 ())) | [] | Vale.AES.PPC64LE.GCTR.va_qcode_Store_3blocks128_2 | {
"file_name": "obj/Vale.AES.PPC64LE.GCTR.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | va_mods: Vale.PPC64LE.QuickCode.va_mods_t -> out_b: Vale.PPC64LE.Memory.buffer128
-> Vale.PPC64LE.QuickCode.va_quickCode Prims.unit
(Vale.AES.PPC64LE.GCTR.va_code_Store_3blocks128_2 ()) | {
"end_col": 13,
"end_line": 1261,
"start_col": 2,
"start_line": 1249
} |
Prims.Tot | val va_codegen_success_Gctr_blocks128_1way_while0 : alg:algorithm -> Tot va_pbool | [
{
"abbrev": false,
"full_module": "Vale.Lib.Basic",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.AES.Types_helpers",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.PPC64LE.QuickCodes",
"short_module": null
},
{
"abbrev": false,
... | false | let va_codegen_success_Gctr_blocks128_1way_while0 alg =
(va_pbool_and (va_codegen_success_Gctr_blocks128_1way_body0 alg) (va_ttrue ())) | val va_codegen_success_Gctr_blocks128_1way_while0 : alg:algorithm -> Tot va_pbool
let va_codegen_success_Gctr_blocks128_1way_while0 alg = | false | null | false | (va_pbool_and (va_codegen_success_Gctr_blocks128_1way_body0 alg) (va_ttrue ())) | {
"checked_file": "Vale.AES.PPC64LE.GCTR.fst.checked",
"dependencies": [
"Vale.PPC64LE.State.fsti.checked",
"Vale.PPC64LE.QuickCodes.fsti.checked",
"Vale.PPC64LE.QuickCode.fst.checked",
"Vale.PPC64LE.Memory.fsti.checked",
"Vale.PPC64LE.Machine_s.fst.checked",
"Vale.PPC64LE.InsVector.fsti.che... | [
"total"
] | [
"Vale.AES.AES_common_s.algorithm",
"Vale.PPC64LE.Decls.va_pbool_and",
"Vale.AES.PPC64LE.GCTR.va_codegen_success_Gctr_blocks128_1way_body0",
"Vale.PPC64LE.Decls.va_ttrue",
"Vale.PPC64LE.Decls.va_pbool"
] | [] | module Vale.AES.PPC64LE.GCTR
open Vale.Def.Prop_s
open Vale.Def.Opaque_s
open Vale.Def.Words_s
open Vale.Def.Types_s
open Vale.Arch.Types
open Vale.Arch.HeapImpl
open FStar.Seq
open Vale.AES.AES_BE_s
open Vale.AES.PPC64LE.AES
open Vale.AES.GCTR_BE_s
open Vale.AES.GCTR_BE
open Vale.AES.GCM_helpers_BE
open Vale.Poly1305.... | false | true | Vale.AES.PPC64LE.GCTR.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 va_codegen_success_Gctr_blocks128_1way_while0 : alg:algorithm -> Tot va_pbool | [] | Vale.AES.PPC64LE.GCTR.va_codegen_success_Gctr_blocks128_1way_while0 | {
"file_name": "obj/Vale.AES.PPC64LE.GCTR.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | alg: Vale.AES.AES_common_s.algorithm -> Vale.PPC64LE.Decls.va_pbool | {
"end_col": 81,
"end_line": 645,
"start_col": 2,
"start_line": 645
} |
Prims.Tot | val va_codegen_success_Gctr_blocks128_6way_body : alg:algorithm -> Tot va_pbool | [
{
"abbrev": false,
"full_module": "Vale.Lib.Basic",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.AES.Types_helpers",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.PPC64LE.QuickCodes",
"short_module": null
},
{
"abbrev": false,
... | false | let va_codegen_success_Gctr_blocks128_6way_body alg =
(va_pbool_and (va_codegen_success_Vmr (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 7)) (va_pbool_and
(va_codegen_success_Vadduwm (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 8))
(va_pbool_and (va_codegen_success_Vadduwm (va_op_vec_opr_vec 2) ... | val va_codegen_success_Gctr_blocks128_6way_body : alg:algorithm -> Tot va_pbool
let va_codegen_success_Gctr_blocks128_6way_body alg = | false | null | false | (va_pbool_and (va_codegen_success_Vmr (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 7))
(va_pbool_and (va_codegen_success_Vadduwm (va_op_vec_opr_vec 1)
(va_op_vec_opr_vec 7)
(va_op_vec_opr_vec 8))
(va_pbool_and (va_codegen_success_Vadduwm (va_op_vec_opr_vec 2)
(va_op_vec_o... | {
"checked_file": "Vale.AES.PPC64LE.GCTR.fst.checked",
"dependencies": [
"Vale.PPC64LE.State.fsti.checked",
"Vale.PPC64LE.QuickCodes.fsti.checked",
"Vale.PPC64LE.QuickCode.fst.checked",
"Vale.PPC64LE.Memory.fsti.checked",
"Vale.PPC64LE.Machine_s.fst.checked",
"Vale.PPC64LE.InsVector.fsti.che... | [
"total"
] | [
"Vale.AES.AES_common_s.algorithm",
"Vale.PPC64LE.Decls.va_pbool_and",
"Vale.PPC64LE.InsVector.va_codegen_success_Vmr",
"Vale.PPC64LE.Decls.va_op_vec_opr_vec",
"Vale.PPC64LE.InsVector.va_codegen_success_Vadduwm",
"Vale.AES.PPC64LE.AES.va_codegen_success_AESEncryptBlock_6way",
"Vale.PPC64LE.InsVector.va_c... | [] | module Vale.AES.PPC64LE.GCTR
open Vale.Def.Prop_s
open Vale.Def.Opaque_s
open Vale.Def.Words_s
open Vale.Def.Types_s
open Vale.Arch.Types
open Vale.Arch.HeapImpl
open FStar.Seq
open Vale.AES.AES_BE_s
open Vale.AES.PPC64LE.AES
open Vale.AES.GCTR_BE_s
open Vale.AES.GCTR_BE
open Vale.AES.GCM_helpers_BE
open Vale.Poly1305.... | false | true | Vale.AES.PPC64LE.GCTR.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 va_codegen_success_Gctr_blocks128_6way_body : alg:algorithm -> Tot va_pbool | [] | Vale.AES.PPC64LE.GCTR.va_codegen_success_Gctr_blocks128_6way_body | {
"file_name": "obj/Vale.AES.PPC64LE.GCTR.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | alg: Vale.AES.AES_common_s.algorithm -> Vale.PPC64LE.Decls.va_pbool | {
"end_col": 32,
"end_line": 1421,
"start_col": 2,
"start_line": 1388
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.