file_name stringlengths 5 52 | name stringlengths 4 95 | original_source_type stringlengths 0 23k | source_type stringlengths 9 23k | source_definition stringlengths 9 57.9k | source dict | source_range dict | file_context stringlengths 0 721k | dependencies dict | opens_and_abbrevs listlengths 2 94 | vconfig dict | interleaved bool 1
class | verbose_type stringlengths 1 7.42k | effect stringclasses 118
values | effect_flags listlengths 0 2 | mutual_with listlengths 0 11 | ideal_premises listlengths 0 236 | proof_features listlengths 0 1 | is_simple_lemma bool 2
classes | is_div bool 2
classes | is_proof bool 2
classes | is_simply_typed bool 2
classes | is_type bool 2
classes | partial_definition stringlengths 5 3.99k | completed_definiton stringlengths 1 1.63M | isa_cross_project_example bool 1
class |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Steel.Memory.fst | Steel.Memory.disjoint | val disjoint (m0 m1:mem u#h) : prop | val disjoint (m0 m1:mem u#h) : prop | let disjoint (m0 m1:mem u#h)
: prop
= m0.ctr == m1.ctr /\
H.disjoint m0.heap m1.heap /\
m0.locks == m1.locks | {
"file_name": "lib/steel/Steel.Memory.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 24,
"end_line": 58,
"start_col": 0,
"start_line": 54
} | (*
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... | {
"checked_file": "/",
"dependencies": [
"Steel.Preorder.fst.checked",
"Steel.Heap.fsti.checked",
"prims.fst.checked",
"FStar.Witnessed.Core.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Preorder.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
... | [
{
"abbrev": true,
"full_module": "Steel.Heap",
"short_module": "H"
},
{
"abbrev": false,
"full_module": "FStar.FunctionalExtensionality",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.FunctionalExtensionality",
"short_module": "F"
},
{
"abbrev": ... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | m0: Steel.Memory.mem -> m1: Steel.Memory.mem -> Prims.prop | Prims.Tot | [
"total"
] | [] | [
"Steel.Memory.mem",
"Prims.l_and",
"Prims.eq2",
"Prims.nat",
"Steel.Memory.__proj__Mkmem__item__ctr",
"Steel.Heap.disjoint",
"Steel.Memory.__proj__Mkmem__item__heap",
"Steel.Memory.lock_store",
"Steel.Memory.__proj__Mkmem__item__locks",
"Prims.prop"
] | [] | false | false | false | true | true | let disjoint (m0 m1: mem u#h) : prop =
| m0.ctr == m1.ctr /\ H.disjoint m0.heap m1.heap /\ m0.locks == m1.locks | false |
Hacl.Spec.Poly1305.Field32xN.Lemmas.fst | Hacl.Spec.Poly1305.Field32xN.Lemmas.load_acc5_2_lemma | val load_acc5_2_lemma:
f:felem5 2{felem_fits5 f (2, 2, 2, 2, 2)}
-> e:felem5 2{felem_fits5 e (1, 1, 1, 1, 1)} ->
Lemma
(let res = load_acc5_2 f e in
felem_fits5 res (3, 3, 3, 3, 3) /\
feval5 res == Vec.fadd (create2 (feval5 f).[0] 0) (feval5 e))
[SMTPat (load_acc5_2 f e)] | val load_acc5_2_lemma:
f:felem5 2{felem_fits5 f (2, 2, 2, 2, 2)}
-> e:felem5 2{felem_fits5 e (1, 1, 1, 1, 1)} ->
Lemma
(let res = load_acc5_2 f e in
felem_fits5 res (3, 3, 3, 3, 3) /\
feval5 res == Vec.fadd (create2 (feval5 f).[0] 0) (feval5 e))
[SMTPat (load_acc5_2 f e)] | let load_acc5_2_lemma f e =
let (f0, f1, f2, f3, f4) = f in
let r0 = vec_set f0 1ul (u64 0) in
let r1 = vec_set f1 1ul (u64 0) in
let r2 = vec_set f2 1ul (u64 0) in
let r3 = vec_set f3 1ul (u64 0) in
let r4 = vec_set f4 1ul (u64 0) in
let r = (r0, r1, r2, r3, r4) in
//assert ((feval5 r).[0] == (feval5 f... | {
"file_name": "code/poly1305/Hacl.Spec.Poly1305.Field32xN.Lemmas.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 48,
"end_line": 786,
"start_col": 0,
"start_line": 776
} | module Hacl.Spec.Poly1305.Field32xN.Lemmas
open Lib.IntTypes
open Lib.IntVector
open Lib.Sequence
open FStar.Mul
open Hacl.Spec.Poly1305.Field32xN
open Hacl.Poly1305.Field32xN.Lemmas0
open Hacl.Poly1305.Field32xN.Lemmas1
open Hacl.Poly1305.Field32xN.Lemmas2
module Vec = Hacl.Spec.Poly1305.Vec
#set-options "--z3rlim... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.IntVector.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Hacl.Spec.Poly1305.Vec.fst.checked",
"Hacl.Spec.Poly1305.Field32xN.fst.checked",
"Hacl.Poly1305.Field32xN.Lemmas2.fst.checked",
"Hacl... | [
{
"abbrev": true,
"full_module": "Hacl.Spec.Poly1305.Vec",
"short_module": "Vec"
},
{
"abbrev": false,
"full_module": "Hacl.Poly1305.Field32xN.Lemmas2",
"short_module": null
},
{
"abbrev": false,
"full_module": "Hacl.Poly1305.Field32xN.Lemmas1",
"short_module": null
},
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
f:
Hacl.Spec.Poly1305.Field32xN.felem5 2
{Hacl.Spec.Poly1305.Field32xN.felem_fits5 f (2, 2, 2, 2, 2)} ->
e:
Hacl.Spec.Poly1305.Field32xN.felem5 2
{Hacl.Spec.Poly1305.Field32xN.felem_fits5 e (1, 1, 1, 1, 1)}
-> FStar.Pervasives.Lemma
(ensures
(let res = Hacl.Spec.Poly... | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"Hacl.Spec.Poly1305.Field32xN.felem5",
"Hacl.Spec.Poly1305.Field32xN.felem_fits5",
"FStar.Pervasives.Native.Mktuple5",
"Prims.nat",
"Hacl.Spec.Poly1305.Field32xN.uint64xN",
"Lib.Sequence.eq_intro",
"Hacl.Spec.Poly1305.Vec.pfelem",
"Hacl.Spec.Poly1305.Field32xN.feval5",
"Lib.Sequence.create2",
"Lib... | [] | false | false | true | false | false | let load_acc5_2_lemma f e =
| let f0, f1, f2, f3, f4 = f in
let r0 = vec_set f0 1ul (u64 0) in
let r1 = vec_set f1 1ul (u64 0) in
let r2 = vec_set f2 1ul (u64 0) in
let r3 = vec_set f3 1ul (u64 0) in
let r4 = vec_set f4 1ul (u64 0) in
let r = (r0, r1, r2, r3, r4) in
assert ((feval5 r).[ 1 ] == 0);
eq_intro (feval5 r) (create2 (feval5 f).[ 0 ] 0) | false |
Steel.Memory.fst | Steel.Memory.interp | val interp (p:slprop u#a) (m:mem u#a) : prop | val interp (p:slprop u#a) (m:mem u#a) : prop | let interp p m = H.interp p m.heap | {
"file_name": "lib/steel/Steel.Memory.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 34,
"end_line": 79,
"start_col": 0,
"start_line": 79
} | (*
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... | {
"checked_file": "/",
"dependencies": [
"Steel.Preorder.fst.checked",
"Steel.Heap.fsti.checked",
"prims.fst.checked",
"FStar.Witnessed.Core.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Preorder.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
... | [
{
"abbrev": true,
"full_module": "Steel.Heap",
"short_module": "H"
},
{
"abbrev": false,
"full_module": "FStar.FunctionalExtensionality",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.FunctionalExtensionality",
"short_module": "F"
},
{
"abbrev": ... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | p: Steel.Memory.slprop -> m: Steel.Memory.mem -> Prims.prop | Prims.Tot | [
"total"
] | [] | [
"Steel.Memory.slprop",
"Steel.Memory.mem",
"Steel.Heap.interp",
"Steel.Memory.__proj__Mkmem__item__heap",
"Prims.prop"
] | [] | false | false | false | true | true | let interp p m =
| H.interp p m.heap | false |
Steel.Memory.fst | Steel.Memory.slprop | val slprop : Type u#(a + 1) | val slprop : Type u#(a + 1) | let slprop = H.slprop | {
"file_name": "lib/steel/Steel.Memory.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 21,
"end_line": 77,
"start_col": 0,
"start_line": 77
} | (*
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... | {
"checked_file": "/",
"dependencies": [
"Steel.Preorder.fst.checked",
"Steel.Heap.fsti.checked",
"prims.fst.checked",
"FStar.Witnessed.Core.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Preorder.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
... | [
{
"abbrev": true,
"full_module": "Steel.Heap",
"short_module": "H"
},
{
"abbrev": false,
"full_module": "FStar.FunctionalExtensionality",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.FunctionalExtensionality",
"short_module": "F"
},
{
"abbrev": ... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | Type | Prims.Tot | [
"total"
] | [] | [
"Steel.Heap.slprop"
] | [] | false | false | false | true | true | let slprop =
| H.slprop | false |
Steel.Memory.fst | Steel.Memory.equiv | val equiv (p1 p2:slprop u#a) : prop | val equiv (p1 p2:slprop u#a) : prop | let equiv p1 p2 = forall m. interp p1 m <==> interp p2 m | {
"file_name": "lib/steel/Steel.Memory.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 56,
"end_line": 81,
"start_col": 0,
"start_line": 81
} | (*
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... | {
"checked_file": "/",
"dependencies": [
"Steel.Preorder.fst.checked",
"Steel.Heap.fsti.checked",
"prims.fst.checked",
"FStar.Witnessed.Core.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Preorder.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
... | [
{
"abbrev": true,
"full_module": "Steel.Heap",
"short_module": "H"
},
{
"abbrev": false,
"full_module": "FStar.FunctionalExtensionality",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.FunctionalExtensionality",
"short_module": "F"
},
{
"abbrev": ... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | p1: Steel.Memory.slprop -> p2: Steel.Memory.slprop -> Prims.prop | Prims.Tot | [
"total"
] | [] | [
"Steel.Memory.slprop",
"Prims.l_Forall",
"Steel.Memory.mem",
"Prims.l_iff",
"Steel.Memory.interp",
"Prims.prop"
] | [] | false | false | false | true | true | let equiv p1 p2 =
| forall m. interp p1 m <==> interp p2 m | false |
Vale.Poly1305.Equiv.fst | Vale.Poly1305.Equiv.lemma_poly1305_equiv_rec | val lemma_poly1305_equiv_rec (text: bytes) (acc0 r: felem) (k: nat)
: Lemma (requires k <= length text / size_block)
(ensures
(let f = S.poly1305_update1 r size_block in
let repeat_f = repeat_blocks_f size_block text f (length text / size_block) in
let pad = pow2 (8 * size_block) i... | val lemma_poly1305_equiv_rec (text: bytes) (acc0 r: felem) (k: nat)
: Lemma (requires k <= length text / size_block)
(ensures
(let f = S.poly1305_update1 r size_block in
let repeat_f = repeat_blocks_f size_block text f (length text / size_block) in
let pad = pow2 (8 * size_block) i... | let rec lemma_poly1305_equiv_rec (text:bytes) (acc0:felem) (r:felem) (k:nat) : Lemma
(requires k <= length text / size_block)
(ensures (
let f = S.poly1305_update1 r size_block in
let repeat_f = repeat_blocks_f size_block text f (length text / size_block) in
let pad = pow2 (8 * size_block) in
V.poly... | {
"file_name": "vale/code/crypto/poly1305/Vale.Poly1305.Equiv.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 3,
"end_line": 84,
"start_col": 0,
"start_line": 33
} | module Vale.Poly1305.Equiv
open FStar.Mul
module BSeq = Lib.ByteSequence
// REVIEW: S and V use different smtencoding flags,
// so some equalities between S and V definitions aren't as obvious to Z3 as we might want.
unfold let pow2_128 = Vale.Def.Words_s.pow2_128
unfold let nat64 = Vale.Def.Words_s.nat64
unfold let... | {
"checked_file": "/",
"dependencies": [
"Vale.Poly1305.Math.fsti.checked",
"Vale.Def.Words_s.fsti.checked",
"Vale.Def.Types_s.fst.checked",
"Vale.Arch.TypesNative.fsti.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntTypes.fsti.... | [
{
"abbrev": true,
"full_module": "Lib.ByteSequence",
"short_module": "BSeq"
},
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": true,
"full_module": "Vale.Poly1305.Spec_s",
"short_module": "V"
},
{
"abbrev": true,
"full_module... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 1,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
text: Vale.Poly1305.Equiv.bytes ->
acc0: Vale.Poly1305.Equiv.felem ->
r: Vale.Poly1305.Equiv.felem ->
k: Prims.nat
-> FStar.Pervasives.Lemma
(requires k <= FStar.Seq.Base.length text / Vale.Poly1305.Equiv.size_block)
(ensures
(let f = Spec.Poly1305.poly1305_update1 r Vale.Poly1305... | FStar.Pervasives.Lemma | [
"lemma",
""
] | [] | [
"Vale.Poly1305.Equiv.bytes",
"Vale.Poly1305.Equiv.felem",
"Prims.nat",
"Prims.op_Equality",
"Prims.int",
"Lib.LoopCombinators.eq_repeati0",
"Spec.Poly1305.felem",
"Prims.bool",
"FStar.Calc.calc_finish",
"Prims.eq2",
"Spec.Poly1305.poly1305_update1",
"Vale.Poly1305.Equiv.size_block",
"Vale.Po... | [
"recursion"
] | false | false | true | false | false | let rec lemma_poly1305_equiv_rec (text: bytes) (acc0 r: felem) (k: nat)
: Lemma (requires k <= length text / size_block)
(ensures
(let f = S.poly1305_update1 r size_block in
let repeat_f = repeat_blocks_f size_block text f (length text / size_block) in
let pad = pow2 (8 * size_bloc... | let inp = block_fun text in
let f = S.poly1305_update1 r size_block in
let len = length text in
let nb = len / size_block in
let repeat_f = repeat_blocks_f size_block text f nb in
let pad = pow2 (8 * size_block) in
assert_norm (pow2 128 + pow2 128 < prime);
if k = 0
then Lib.LoopCombinators.eq_repeati0 nb repeat_f acc0... | false |
Selectors.LList2.fst | Selectors.LList2.llist0_of_nllist | val llist0_of_nllist (#opened: _) (#a: Type0) (n: Ghost.erased nat) (r: t a)
: SteelGhost unit
opened
(nllist a n r)
(fun _ -> llist0 r)
(fun _ -> True)
(fun h0 res h1 -> h1 (llist0 r) == h0 (nllist a n r)) | val llist0_of_nllist (#opened: _) (#a: Type0) (n: Ghost.erased nat) (r: t a)
: SteelGhost unit
opened
(nllist a n r)
(fun _ -> llist0 r)
(fun _ -> True)
(fun h0 res h1 -> h1 (llist0 r) == h0 (nllist a n r)) | let llist0_of_nllist
(#opened: _)
(#a: Type0)
(n: Ghost.erased nat)
(r: t a)
: SteelGhost unit opened
(nllist a n r)
(fun _ -> llist0 r)
(fun _ -> True)
(fun h0 res h1 ->
h1 (llist0 r) == h0 (nllist a n r)
)
=
if is_null r
then begin
change_equal_slprop
(nllist a n r)
... | {
"file_name": "share/steel/examples/steel/Selectors.LList2.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 5,
"end_line": 185,
"start_col": 0,
"start_line": 150
} | module Selectors.LList2
open Steel.FractionalPermission
module Mem = Steel.Memory
#push-options "--__no_positivity"
noeq
type cell (a: Type0) = {
tail_fuel: Ghost.erased nat;
next: ref (cell a);
data: a;
}
#pop-options
let next #a (c:cell a) : t a = c.next
let data #a (c:cell a) : a = c.data
let mk_cell #a (n:... | {
"checked_file": "/",
"dependencies": [
"Steel.Memory.fsti.checked",
"Steel.FractionalPermission.fst.checked",
"prims.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Ghost.fsti.checked"
],
"interface_file": true,
"source_file": "Selectors.LList2.fst"
} | [
{
"abbrev": true,
"full_module": "Steel.Memory",
"short_module": "Mem"
},
{
"abbrev": false,
"full_module": "Steel.FractionalPermission",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": false,
"full... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | n: FStar.Ghost.erased Prims.nat -> r: Selectors.LList2.t a
-> Steel.Effect.Atomic.SteelGhost Prims.unit | Steel.Effect.Atomic.SteelGhost | [] | [] | [
"Steel.Memory.inames",
"FStar.Ghost.erased",
"Prims.nat",
"Selectors.LList2.t",
"Selectors.LList2.is_null",
"Prims.unit",
"Steel.Effect.Atomic.change_equal_slprop",
"Selectors.LList2.nllist",
"Selectors.LList2.llist0",
"Prims.bool",
"Steel.Effect.Common.vrewrite",
"Steel.Effect.Common.vdep",
... | [] | false | true | false | false | false | let llist0_of_nllist (#opened: _) (#a: Type0) (n: Ghost.erased nat) (r: t a)
: SteelGhost unit
opened
(nllist a n r)
(fun _ -> llist0 r)
(fun _ -> True)
(fun h0 res h1 -> h1 (llist0 r) == h0 (nllist a n r)) =
| if is_null r
then
(change_equal_slprop (nllist a n r) (llist0 r);
())
else
(nllist_eq_not_null a n r;
change_equal_slprop (nllist a n r)
((((vptr r) `vrefine` (v_c n r)) `vdep` (v_c_dep n r (nllist a)))
`vrewrite`
(v_c_l_rewrite n r (nllist a)));
elim_vrewrite (((vptr r) `vrefine` ... | false |
Steel.Memory.fst | Steel.Memory.core_ref | val core_ref : Type u#0 | val core_ref : Type u#0 | let core_ref = H.core_ref | {
"file_name": "lib/steel/Steel.Memory.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 25,
"end_line": 96,
"start_col": 0,
"start_line": 96
} | (*
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... | {
"checked_file": "/",
"dependencies": [
"Steel.Preorder.fst.checked",
"Steel.Heap.fsti.checked",
"prims.fst.checked",
"FStar.Witnessed.Core.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Preorder.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
... | [
{
"abbrev": true,
"full_module": "Steel.Heap",
"short_module": "H"
},
{
"abbrev": false,
"full_module": "FStar.FunctionalExtensionality",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.FunctionalExtensionality",
"short_module": "F"
},
{
"abbrev": ... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | Type0 | Prims.Tot | [
"total"
] | [] | [
"Steel.Heap.core_ref"
] | [] | false | false | false | true | true | let core_ref =
| H.core_ref | false |
Steel.Memory.fst | Steel.Memory.disjoint_join | val disjoint_join (m0 m1 m2:mem)
: Lemma (disjoint m1 m2 /\
disjoint m0 (join m1 m2) ==>
disjoint m0 m1 /\
disjoint m0 m2 /\
disjoint (join m0 m1) m2 /\
disjoint (join m0 m2) m1) | val disjoint_join (m0 m1 m2:mem)
: Lemma (disjoint m1 m2 /\
disjoint m0 (join m1 m2) ==>
disjoint m0 m1 /\
disjoint m0 m2 /\
disjoint (join m0 m1) m2 /\
disjoint (join m0 m2) m1) | let disjoint_join m0 m1 m2 =
H.disjoint_join m0.heap m1.heap m2.heap | {
"file_name": "lib/steel/Steel.Memory.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 41,
"end_line": 72,
"start_col": 0,
"start_line": 71
} | (*
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... | {
"checked_file": "/",
"dependencies": [
"Steel.Preorder.fst.checked",
"Steel.Heap.fsti.checked",
"prims.fst.checked",
"FStar.Witnessed.Core.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Preorder.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
... | [
{
"abbrev": true,
"full_module": "Steel.Heap",
"short_module": "H"
},
{
"abbrev": false,
"full_module": "FStar.FunctionalExtensionality",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.FunctionalExtensionality",
"short_module": "F"
},
{
"abbrev": ... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | m0: Steel.Memory.mem -> m1: Steel.Memory.mem -> m2: Steel.Memory.mem
-> FStar.Pervasives.Lemma
(ensures
Steel.Memory.disjoint m1 m2 /\ Steel.Memory.disjoint m0 (Steel.Memory.join m1 m2) ==>
Steel.Memory.disjoint m0 m1 /\ Steel.Memory.disjoint m0 m2 /\
Steel.Memory.disjoint (Steel.Memory.join m0 ... | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"Steel.Memory.mem",
"Steel.Heap.disjoint_join",
"Steel.Memory.__proj__Mkmem__item__heap",
"Prims.unit"
] | [] | true | false | true | false | false | let disjoint_join m0 m1 m2 =
| H.disjoint_join m0.heap m1.heap m2.heap | false |
Steel.Memory.fst | Steel.Memory.pts_to | val pts_to (#a:Type u#a) (#pcm:_) (r:ref a pcm) (v:a) : slprop u#a | val pts_to (#a:Type u#a) (#pcm:_) (r:ref a pcm) (v:a) : slprop u#a | let pts_to = H.pts_to | {
"file_name": "lib/steel/Steel.Memory.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 21,
"end_line": 102,
"start_col": 0,
"start_line": 102
} | (*
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... | {
"checked_file": "/",
"dependencies": [
"Steel.Preorder.fst.checked",
"Steel.Heap.fsti.checked",
"prims.fst.checked",
"FStar.Witnessed.Core.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Preorder.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
... | [
{
"abbrev": true,
"full_module": "Steel.Heap",
"short_module": "H"
},
{
"abbrev": false,
"full_module": "FStar.FunctionalExtensionality",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.FunctionalExtensionality",
"short_module": "F"
},
{
"abbrev": ... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | r: Steel.Memory.ref a pcm -> v: a -> Steel.Memory.slprop | Prims.Tot | [
"total"
] | [] | [
"Steel.Heap.pts_to"
] | [] | false | false | false | false | false | let pts_to =
| H.pts_to | false |
Steel.Memory.fst | Steel.Memory.join | val join (m0:mem u#h) (m1:mem u#h{disjoint m0 m1}) : mem u#h | val join (m0:mem u#h) (m1:mem u#h{disjoint m0 m1}) : mem u#h | let join m0 m1 = {
ctr = m0.ctr;
heap = H.join m0.heap m1.heap;
locks = m0.locks
} | {
"file_name": "lib/steel/Steel.Memory.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 1,
"end_line": 66,
"start_col": 0,
"start_line": 62
} | (*
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... | {
"checked_file": "/",
"dependencies": [
"Steel.Preorder.fst.checked",
"Steel.Heap.fsti.checked",
"prims.fst.checked",
"FStar.Witnessed.Core.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Preorder.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
... | [
{
"abbrev": true,
"full_module": "Steel.Heap",
"short_module": "H"
},
{
"abbrev": false,
"full_module": "FStar.FunctionalExtensionality",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.FunctionalExtensionality",
"short_module": "F"
},
{
"abbrev": ... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | m0: Steel.Memory.mem -> m1: Steel.Memory.mem{Steel.Memory.disjoint m0 m1} -> Steel.Memory.mem | Prims.Tot | [
"total"
] | [] | [
"Steel.Memory.mem",
"Steel.Memory.disjoint",
"Steel.Memory.Mkmem",
"Steel.Memory.__proj__Mkmem__item__ctr",
"Steel.Heap.join",
"Steel.Memory.__proj__Mkmem__item__heap",
"Steel.Memory.__proj__Mkmem__item__locks"
] | [] | false | false | false | false | false | let join m0 m1 =
| { ctr = m0.ctr; heap = H.join m0.heap m1.heap; locks = m0.locks } | false |
Steel.Memory.fst | Steel.Memory.join_commutative | val join_commutative (m0 m1:mem)
: Lemma
(requires
disjoint m0 m1)
(ensures
(disjoint m0 m1 /\
disjoint m1 m0 /\
join m0 m1 == join m1 m0)) | val join_commutative (m0 m1:mem)
: Lemma
(requires
disjoint m0 m1)
(ensures
(disjoint m0 m1 /\
disjoint m1 m0 /\
join m0 m1 == join m1 m0)) | let join_commutative m0 m1 =
H.join_commutative m0.heap m1.heap | {
"file_name": "lib/steel/Steel.Memory.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 36,
"end_line": 69,
"start_col": 0,
"start_line": 68
} | (*
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... | {
"checked_file": "/",
"dependencies": [
"Steel.Preorder.fst.checked",
"Steel.Heap.fsti.checked",
"prims.fst.checked",
"FStar.Witnessed.Core.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Preorder.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
... | [
{
"abbrev": true,
"full_module": "Steel.Heap",
"short_module": "H"
},
{
"abbrev": false,
"full_module": "FStar.FunctionalExtensionality",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.FunctionalExtensionality",
"short_module": "F"
},
{
"abbrev": ... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | m0: Steel.Memory.mem -> m1: Steel.Memory.mem
-> FStar.Pervasives.Lemma (requires Steel.Memory.disjoint m0 m1)
(ensures
Steel.Memory.disjoint m0 m1 /\ Steel.Memory.disjoint m1 m0 /\
Steel.Memory.join m0 m1 == Steel.Memory.join m1 m0) | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"Steel.Memory.mem",
"Steel.Heap.join_commutative",
"Steel.Memory.__proj__Mkmem__item__heap",
"Prims.unit"
] | [] | true | false | true | false | false | let join_commutative m0 m1 =
| H.join_commutative m0.heap m1.heap | false |
Steel.Memory.fst | Steel.Memory.core_ref_null | val core_ref_null : core_ref | val core_ref_null : core_ref | let core_ref_null = H.core_ref_null | {
"file_name": "lib/steel/Steel.Memory.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 35,
"end_line": 97,
"start_col": 0,
"start_line": 97
} | (*
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... | {
"checked_file": "/",
"dependencies": [
"Steel.Preorder.fst.checked",
"Steel.Heap.fsti.checked",
"prims.fst.checked",
"FStar.Witnessed.Core.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Preorder.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
... | [
{
"abbrev": true,
"full_module": "Steel.Heap",
"short_module": "H"
},
{
"abbrev": false,
"full_module": "FStar.FunctionalExtensionality",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.FunctionalExtensionality",
"short_module": "F"
},
{
"abbrev": ... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | Steel.Memory.core_ref | Prims.Tot | [
"total"
] | [] | [
"Steel.Heap.core_ref_null"
] | [] | false | false | false | true | false | let core_ref_null =
| H.core_ref_null | false |
Steel.Memory.fst | Steel.Memory.emp | val emp : slprop u#a | val emp : slprop u#a | let emp : slprop u#a = H.emp | {
"file_name": "lib/steel/Steel.Memory.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 28,
"end_line": 100,
"start_col": 0,
"start_line": 100
} | (*
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... | {
"checked_file": "/",
"dependencies": [
"Steel.Preorder.fst.checked",
"Steel.Heap.fsti.checked",
"prims.fst.checked",
"FStar.Witnessed.Core.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Preorder.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
... | [
{
"abbrev": true,
"full_module": "Steel.Heap",
"short_module": "H"
},
{
"abbrev": false,
"full_module": "FStar.FunctionalExtensionality",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.FunctionalExtensionality",
"short_module": "F"
},
{
"abbrev": ... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | Steel.Memory.slprop | Prims.Tot | [
"total"
] | [] | [
"Steel.Heap.emp",
"Steel.Memory.slprop"
] | [] | false | false | false | true | false | let emp:slprop u#a =
| H.emp | false |
Steel.Memory.fst | Steel.Memory.pure | val pure (p:prop) : slprop u#a | val pure (p:prop) : slprop u#a | let pure = H.pure | {
"file_name": "lib/steel/Steel.Memory.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 17,
"end_line": 101,
"start_col": 0,
"start_line": 101
} | (*
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... | {
"checked_file": "/",
"dependencies": [
"Steel.Preorder.fst.checked",
"Steel.Heap.fsti.checked",
"prims.fst.checked",
"FStar.Witnessed.Core.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Preorder.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
... | [
{
"abbrev": true,
"full_module": "Steel.Heap",
"short_module": "H"
},
{
"abbrev": false,
"full_module": "FStar.FunctionalExtensionality",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.FunctionalExtensionality",
"short_module": "F"
},
{
"abbrev": ... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | p: Prims.prop -> Steel.Memory.slprop | Prims.Tot | [
"total"
] | [] | [
"Steel.Heap.pure"
] | [] | false | false | false | true | false | let pure =
| H.pure | false |
Steel.Memory.fst | Steel.Memory.star | val star (p1 p2:slprop u#a) : slprop u#a | val star (p1 p2:slprop u#a) : slprop u#a | let star = H.star | {
"file_name": "lib/steel/Steel.Memory.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 17,
"end_line": 105,
"start_col": 0,
"start_line": 105
} | (*
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... | {
"checked_file": "/",
"dependencies": [
"Steel.Preorder.fst.checked",
"Steel.Heap.fsti.checked",
"prims.fst.checked",
"FStar.Witnessed.Core.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Preorder.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
... | [
{
"abbrev": true,
"full_module": "Steel.Heap",
"short_module": "H"
},
{
"abbrev": false,
"full_module": "FStar.FunctionalExtensionality",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.FunctionalExtensionality",
"short_module": "F"
},
{
"abbrev": ... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | p1: Steel.Memory.slprop -> p2: Steel.Memory.slprop -> Steel.Memory.slprop | Prims.Tot | [
"total"
] | [] | [
"Steel.Heap.star"
] | [] | false | false | false | true | false | let star =
| H.star | false |
Steel.Memory.fst | Steel.Memory.h_and | val h_and (p1 p2:slprop u#a) : slprop u#a | val h_and (p1 p2:slprop u#a) : slprop u#a | let h_and = H.h_and | {
"file_name": "lib/steel/Steel.Memory.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 19,
"end_line": 103,
"start_col": 0,
"start_line": 103
} | (*
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... | {
"checked_file": "/",
"dependencies": [
"Steel.Preorder.fst.checked",
"Steel.Heap.fsti.checked",
"prims.fst.checked",
"FStar.Witnessed.Core.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Preorder.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
... | [
{
"abbrev": true,
"full_module": "Steel.Heap",
"short_module": "H"
},
{
"abbrev": false,
"full_module": "FStar.FunctionalExtensionality",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.FunctionalExtensionality",
"short_module": "F"
},
{
"abbrev": ... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | p1: Steel.Memory.slprop -> p2: Steel.Memory.slprop -> Steel.Memory.slprop | Prims.Tot | [
"total"
] | [] | [
"Steel.Heap.h_and"
] | [] | false | false | false | true | false | let h_and =
| H.h_and | false |
Steel.Memory.fst | Steel.Memory.wand | val wand (p1 p2:slprop u#a) : slprop u#a | val wand (p1 p2:slprop u#a) : slprop u#a | let wand = H.wand | {
"file_name": "lib/steel/Steel.Memory.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 17,
"end_line": 106,
"start_col": 0,
"start_line": 106
} | (*
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... | {
"checked_file": "/",
"dependencies": [
"Steel.Preorder.fst.checked",
"Steel.Heap.fsti.checked",
"prims.fst.checked",
"FStar.Witnessed.Core.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Preorder.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
... | [
{
"abbrev": true,
"full_module": "Steel.Heap",
"short_module": "H"
},
{
"abbrev": false,
"full_module": "FStar.FunctionalExtensionality",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.FunctionalExtensionality",
"short_module": "F"
},
{
"abbrev": ... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | p1: Steel.Memory.slprop -> p2: Steel.Memory.slprop -> Steel.Memory.slprop | Prims.Tot | [
"total"
] | [] | [
"Steel.Heap.wand"
] | [] | false | false | false | true | false | let wand =
| H.wand | false |
Steel.Memory.fst | Steel.Memory.h_forall | val h_forall (#a:Type u#b) (f: (a -> slprop u#a)) : slprop u#a | val h_forall (#a:Type u#b) (f: (a -> slprop u#a)) : slprop u#a | let h_forall = H.h_forall | {
"file_name": "lib/steel/Steel.Memory.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 25,
"end_line": 108,
"start_col": 0,
"start_line": 108
} | (*
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... | {
"checked_file": "/",
"dependencies": [
"Steel.Preorder.fst.checked",
"Steel.Heap.fsti.checked",
"prims.fst.checked",
"FStar.Witnessed.Core.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Preorder.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
... | [
{
"abbrev": true,
"full_module": "Steel.Heap",
"short_module": "H"
},
{
"abbrev": false,
"full_module": "FStar.FunctionalExtensionality",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.FunctionalExtensionality",
"short_module": "F"
},
{
"abbrev": ... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | f: (_: a -> Steel.Memory.slprop) -> Steel.Memory.slprop | Prims.Tot | [
"total"
] | [] | [
"Steel.Heap.h_forall"
] | [] | false | false | false | true | false | let h_forall =
| H.h_forall | false |
Steel.Memory.fst | Steel.Memory.h_exists | val h_exists (#a:Type u#b) (f: (a -> slprop u#a)) : slprop u#a | val h_exists (#a:Type u#b) (f: (a -> slprop u#a)) : slprop u#a | let h_exists = H.h_exists | {
"file_name": "lib/steel/Steel.Memory.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 25,
"end_line": 107,
"start_col": 0,
"start_line": 107
} | (*
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... | {
"checked_file": "/",
"dependencies": [
"Steel.Preorder.fst.checked",
"Steel.Heap.fsti.checked",
"prims.fst.checked",
"FStar.Witnessed.Core.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Preorder.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
... | [
{
"abbrev": true,
"full_module": "Steel.Heap",
"short_module": "H"
},
{
"abbrev": false,
"full_module": "FStar.FunctionalExtensionality",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.FunctionalExtensionality",
"short_module": "F"
},
{
"abbrev": ... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | f: (_: a -> Steel.Memory.slprop) -> Steel.Memory.slprop | Prims.Tot | [
"total"
] | [] | [
"Steel.Heap.h_exists"
] | [] | false | false | false | true | false | let h_exists =
| H.h_exists | false |
Steel.Memory.fst | Steel.Memory.h_or | val h_or (p1 p2:slprop u#a) : slprop u#a | val h_or (p1 p2:slprop u#a) : slprop u#a | let h_or = H.h_or | {
"file_name": "lib/steel/Steel.Memory.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 17,
"end_line": 104,
"start_col": 0,
"start_line": 104
} | (*
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... | {
"checked_file": "/",
"dependencies": [
"Steel.Preorder.fst.checked",
"Steel.Heap.fsti.checked",
"prims.fst.checked",
"FStar.Witnessed.Core.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Preorder.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
... | [
{
"abbrev": true,
"full_module": "Steel.Heap",
"short_module": "H"
},
{
"abbrev": false,
"full_module": "FStar.FunctionalExtensionality",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.FunctionalExtensionality",
"short_module": "F"
},
{
"abbrev": ... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | p1: Steel.Memory.slprop -> p2: Steel.Memory.slprop -> Steel.Memory.slprop | Prims.Tot | [
"total"
] | [] | [
"Steel.Heap.h_or"
] | [] | false | false | false | true | false | let h_or =
| H.h_or | false |
Steel.Memory.fst | Steel.Memory.join_associative | val join_associative (m0 m1 m2:mem)
: Lemma
(requires
disjoint m1 m2 /\
disjoint m0 (join m1 m2))
(ensures
(disjoint_join m0 m1 m2;
join m0 (join m1 m2) == join (join m0 m1) m2)) | val join_associative (m0 m1 m2:mem)
: Lemma
(requires
disjoint m1 m2 /\
disjoint m0 (join m1 m2))
(ensures
(disjoint_join m0 m1 m2;
join m0 (join m1 m2) == join (join m0 m1) m2)) | let join_associative m0 m1 m2 =
H.join_associative m0.heap m1.heap m2.heap | {
"file_name": "lib/steel/Steel.Memory.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 44,
"end_line": 75,
"start_col": 0,
"start_line": 74
} | (*
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... | {
"checked_file": "/",
"dependencies": [
"Steel.Preorder.fst.checked",
"Steel.Heap.fsti.checked",
"prims.fst.checked",
"FStar.Witnessed.Core.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Preorder.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
... | [
{
"abbrev": true,
"full_module": "Steel.Heap",
"short_module": "H"
},
{
"abbrev": false,
"full_module": "FStar.FunctionalExtensionality",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.FunctionalExtensionality",
"short_module": "F"
},
{
"abbrev": ... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | m0: Steel.Memory.mem -> m1: Steel.Memory.mem -> m2: Steel.Memory.mem
-> FStar.Pervasives.Lemma
(requires Steel.Memory.disjoint m1 m2 /\ Steel.Memory.disjoint m0 (Steel.Memory.join m1 m2))
(ensures
(Steel.Memory.disjoint_join m0 m1 m2;
Steel.Memory.join m0 (Steel.Memory.join m1 m2) ==
... | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"Steel.Memory.mem",
"Steel.Heap.join_associative",
"Steel.Memory.__proj__Mkmem__item__heap",
"Prims.unit"
] | [] | true | false | true | false | false | let join_associative m0 m1 m2 =
| H.join_associative m0.heap m1.heap m2.heap | false |
Steel.Memory.fst | Steel.Memory.slprop_extensionality | val slprop_extensionality (p q:slprop)
: Lemma
(requires p `equiv` q)
(ensures p == q) | val slprop_extensionality (p q:slprop)
: Lemma
(requires p `equiv` q)
(ensures p == q) | let slprop_extensionality p q =
assert (forall m. interp p m <==> interp q m);
let aux (h:H.heap)
: Lemma (H.interp p h <==> H.interp q h)
[SMTPat (H.interp p h)]
= let m : mem = { ctr = 0; heap = h; locks = [] } in
assert (interp p m <==> interp q m)
in
assert (forall h. H.interp p h ... | {
"file_name": "lib/steel/Steel.Memory.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 38,
"end_line": 92,
"start_col": 0,
"start_line": 83
} | (*
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... | {
"checked_file": "/",
"dependencies": [
"Steel.Preorder.fst.checked",
"Steel.Heap.fsti.checked",
"prims.fst.checked",
"FStar.Witnessed.Core.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Preorder.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
... | [
{
"abbrev": true,
"full_module": "Steel.Heap",
"short_module": "H"
},
{
"abbrev": false,
"full_module": "FStar.FunctionalExtensionality",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.FunctionalExtensionality",
"short_module": "F"
},
{
"abbrev": ... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | p: Steel.Memory.slprop -> q: Steel.Memory.slprop
-> FStar.Pervasives.Lemma (requires Steel.Memory.equiv p q) (ensures p == q) | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"Steel.Memory.slprop",
"Steel.Heap.slprop_extensionality",
"Prims.unit",
"Prims._assert",
"Prims.l_Forall",
"Steel.Heap.heap",
"Prims.l_iff",
"Steel.Heap.interp",
"Prims.l_True",
"Prims.squash",
"Prims.Cons",
"FStar.Pervasives.pattern",
"FStar.Pervasives.smt_pat",
"Prims.prop",
"Prims.Ni... | [] | false | false | true | false | false | let slprop_extensionality p q =
| assert (forall m. interp p m <==> interp q m);
let aux (h: H.heap) : Lemma (H.interp p h <==> H.interp q h) [SMTPat (H.interp p h)] =
let m:mem = { ctr = 0; heap = h; locks = [] } in
assert (interp p m <==> interp q m)
in
assert (forall h. H.interp p h <==> H.interp q h);
Steel.Heap.slprop_extensionality p q | false |
Hacl.Spec.Poly1305.Field32xN.Lemmas.fst | Hacl.Spec.Poly1305.Field32xN.Lemmas.load_felem5_4_interleave | val load_felem5_4_interleave: lo:uint64xN 4 -> hi:uint64xN 4 -> Lemma
(let m0 = vec_interleave_low_n 2 lo hi in
let m1 = vec_interleave_high_n 2 lo hi in
let m2 = cast U64 4 (vec_shift_right (cast U128 2 m0) 48ul) in
let m3 = cast U64 4 (vec_shift_right (cast U128 2 m1) 48ul) in
let m4 = vec_interleave_hi... | val load_felem5_4_interleave: lo:uint64xN 4 -> hi:uint64xN 4 -> Lemma
(let m0 = vec_interleave_low_n 2 lo hi in
let m1 = vec_interleave_high_n 2 lo hi in
let m2 = cast U64 4 (vec_shift_right (cast U128 2 m0) 48ul) in
let m3 = cast U64 4 (vec_shift_right (cast U128 2 m1) 48ul) in
let m4 = vec_interleave_hi... | let load_felem5_4_interleave lo hi =
let m0 = vec_interleave_low_n 2 lo hi in
vec_interleave_low_n_lemma_uint64_4_2 lo hi;
//assert (vec_v m0 == create4 (vec_v lo).[0] (vec_v lo).[1] (vec_v hi).[0] (vec_v hi).[1]);
let m1 = vec_interleave_high_n 2 lo hi in
vec_interleave_high_n_lemma_uint64_4_2 lo hi;
//ass... | {
"file_name": "code/poly1305/Hacl.Spec.Poly1305.Field32xN.Lemmas.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 84,
"end_line": 697,
"start_col": 0,
"start_line": 668
} | module Hacl.Spec.Poly1305.Field32xN.Lemmas
open Lib.IntTypes
open Lib.IntVector
open Lib.Sequence
open FStar.Mul
open Hacl.Spec.Poly1305.Field32xN
open Hacl.Poly1305.Field32xN.Lemmas0
open Hacl.Poly1305.Field32xN.Lemmas1
open Hacl.Poly1305.Field32xN.Lemmas2
module Vec = Hacl.Spec.Poly1305.Vec
#set-options "--z3rlim... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.IntVector.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Hacl.Spec.Poly1305.Vec.fst.checked",
"Hacl.Spec.Poly1305.Field32xN.fst.checked",
"Hacl.Poly1305.Field32xN.Lemmas2.fst.checked",
"Hacl... | [
{
"abbrev": true,
"full_module": "Hacl.Spec.Poly1305.Vec",
"short_module": "Vec"
},
{
"abbrev": false,
"full_module": "Hacl.Poly1305.Field32xN.Lemmas2",
"short_module": null
},
{
"abbrev": false,
"full_module": "Hacl.Poly1305.Field32xN.Lemmas1",
"short_module": null
},
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | lo: Hacl.Spec.Poly1305.Field32xN.uint64xN 4 -> hi: Hacl.Spec.Poly1305.Field32xN.uint64xN 4
-> FStar.Pervasives.Lemma
(ensures
(let m0 = Lib.IntVector.vec_interleave_low_n 2 lo hi in
let m1 = Lib.IntVector.vec_interleave_high_n 2 lo hi in
let m2 =
Lib.IntVector.cast Lib.IntTypes.U64... | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"Hacl.Spec.Poly1305.Field32xN.uint64xN",
"Lib.IntVector.vecv_extensionality",
"Lib.IntTypes.U64",
"Lib.IntVector.vec_or",
"Lib.IntVector.vec_shift_right",
"FStar.UInt32.__uint_to_t",
"Lib.IntVector.vec_shift_left",
"Prims.unit",
"Lib.Sequence.eq_intro",
"Lib.IntTypes.uint_t",
"Lib.IntTypes.SEC",... | [] | true | false | true | false | false | let load_felem5_4_interleave lo hi =
| let m0 = vec_interleave_low_n 2 lo hi in
vec_interleave_low_n_lemma_uint64_4_2 lo hi;
let m1 = vec_interleave_high_n 2 lo hi in
vec_interleave_high_n_lemma_uint64_4_2 lo hi;
let m4 = vec_interleave_high m0 m1 in
vec_interleave_high_lemma_uint64_4 m0 m1;
assert (vec_v m4 == create4 (vec_v lo).[ 1 ] (vec_v lo).[ 3 ] (vec... | false |
Steel.Memory.fst | Steel.Memory.core_ref_is_null | val core_ref_is_null (r:core_ref) : b:bool { b <==> r == core_ref_null } | val core_ref_is_null (r:core_ref) : b:bool { b <==> r == core_ref_null } | let core_ref_is_null r = H.core_ref_is_null r | {
"file_name": "lib/steel/Steel.Memory.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 45,
"end_line": 98,
"start_col": 0,
"start_line": 98
} | (*
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... | {
"checked_file": "/",
"dependencies": [
"Steel.Preorder.fst.checked",
"Steel.Heap.fsti.checked",
"prims.fst.checked",
"FStar.Witnessed.Core.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Preorder.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
... | [
{
"abbrev": true,
"full_module": "Steel.Heap",
"short_module": "H"
},
{
"abbrev": false,
"full_module": "FStar.FunctionalExtensionality",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.FunctionalExtensionality",
"short_module": "F"
},
{
"abbrev": ... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | r: Steel.Memory.core_ref -> b: Prims.bool{b <==> r == Steel.Memory.core_ref_null} | Prims.Tot | [
"total"
] | [] | [
"Steel.Memory.core_ref",
"Steel.Heap.core_ref_is_null",
"Prims.bool",
"Prims.l_iff",
"Prims.b2t",
"Prims.eq2",
"Steel.Memory.core_ref_null"
] | [] | false | false | false | false | false | let core_ref_is_null r =
| H.core_ref_is_null r | false |
Steel.Memory.fst | Steel.Memory.equiv_symmetric | val equiv_symmetric (p1 p2:slprop)
: squash (p1 `equiv` p2 ==> p2 `equiv` p1) | val equiv_symmetric (p1 p2:slprop)
: squash (p1 `equiv` p2 ==> p2 `equiv` p1) | let equiv_symmetric (p1 p2:slprop u#a) = H.equiv_symmetric p1 p2 | {
"file_name": "lib/steel/Steel.Memory.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 64,
"end_line": 114,
"start_col": 0,
"start_line": 114
} | (*
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... | {
"checked_file": "/",
"dependencies": [
"Steel.Preorder.fst.checked",
"Steel.Heap.fsti.checked",
"prims.fst.checked",
"FStar.Witnessed.Core.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Preorder.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
... | [
{
"abbrev": true,
"full_module": "Steel.Heap",
"short_module": "H"
},
{
"abbrev": false,
"full_module": "FStar.FunctionalExtensionality",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.FunctionalExtensionality",
"short_module": "F"
},
{
"abbrev": ... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | p1: Steel.Memory.slprop -> p2: Steel.Memory.slprop
-> Prims.squash (Steel.Memory.equiv p1 p2 ==> Steel.Memory.equiv p2 p1) | Prims.Tot | [
"total"
] | [] | [
"Steel.Memory.slprop",
"Steel.Heap.equiv_symmetric",
"Prims.squash",
"Prims.l_imp",
"Steel.Memory.equiv"
] | [] | false | false | true | false | false | let equiv_symmetric (p1 p2: slprop u#a) =
| H.equiv_symmetric p1 p2 | false |
Hacl.Spec.Poly1305.Field32xN.Lemmas.fst | Hacl.Spec.Poly1305.Field32xN.Lemmas.load_acc5_4_lemma | val load_acc5_4_lemma:
f:felem5 4{felem_fits5 f (2, 2, 2, 2, 2)}
-> e:felem5 4{felem_fits5 e (1, 1, 1, 1, 1)} ->
Lemma
(let res = load_acc5_4 f e in
felem_fits5 res (3, 3, 3, 3, 3) /\
feval5 res == Vec.fadd (create4 (feval5 f).[0] 0 0 0) (feval5 e))
[SMTPat (load_acc5_4 f e)] | val load_acc5_4_lemma:
f:felem5 4{felem_fits5 f (2, 2, 2, 2, 2)}
-> e:felem5 4{felem_fits5 e (1, 1, 1, 1, 1)} ->
Lemma
(let res = load_acc5_4 f e in
felem_fits5 res (3, 3, 3, 3, 3) /\
feval5 res == Vec.fadd (create4 (feval5 f).[0] 0 0 0) (feval5 e))
[SMTPat (load_acc5_4 f e)] | let load_acc5_4_lemma f e =
let (f0, f1, f2, f3, f4) = f in
let (r0, r1, r2, r3, r4) = (zero 4, zero 4, zero 4, zero 4, zero 4) in
let r = (r0, r1, r2, r3, r4) in
assert ((feval5 r).[1] == 0);
assert ((feval5 r).[2] == 0);
assert ((feval5 r).[3] == 0);
let r0 = vec_set r0 0ul (vec_get f0 0ul) in
let r1 ... | {
"file_name": "code/poly1305/Hacl.Spec.Poly1305.Field32xN.Lemmas.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 52,
"end_line": 815,
"start_col": 0,
"start_line": 798
} | module Hacl.Spec.Poly1305.Field32xN.Lemmas
open Lib.IntTypes
open Lib.IntVector
open Lib.Sequence
open FStar.Mul
open Hacl.Spec.Poly1305.Field32xN
open Hacl.Poly1305.Field32xN.Lemmas0
open Hacl.Poly1305.Field32xN.Lemmas1
open Hacl.Poly1305.Field32xN.Lemmas2
module Vec = Hacl.Spec.Poly1305.Vec
#set-options "--z3rlim... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.IntVector.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Hacl.Spec.Poly1305.Vec.fst.checked",
"Hacl.Spec.Poly1305.Field32xN.fst.checked",
"Hacl.Poly1305.Field32xN.Lemmas2.fst.checked",
"Hacl... | [
{
"abbrev": true,
"full_module": "Hacl.Spec.Poly1305.Vec",
"short_module": "Vec"
},
{
"abbrev": false,
"full_module": "Hacl.Poly1305.Field32xN.Lemmas2",
"short_module": null
},
{
"abbrev": false,
"full_module": "Hacl.Poly1305.Field32xN.Lemmas1",
"short_module": null
},
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
f:
Hacl.Spec.Poly1305.Field32xN.felem5 4
{Hacl.Spec.Poly1305.Field32xN.felem_fits5 f (2, 2, 2, 2, 2)} ->
e:
Hacl.Spec.Poly1305.Field32xN.felem5 4
{Hacl.Spec.Poly1305.Field32xN.felem_fits5 e (1, 1, 1, 1, 1)}
-> FStar.Pervasives.Lemma
(ensures
(let res = Hacl.Spec.Poly... | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"Hacl.Spec.Poly1305.Field32xN.felem5",
"Hacl.Spec.Poly1305.Field32xN.felem_fits5",
"FStar.Pervasives.Native.Mktuple5",
"Prims.nat",
"Hacl.Spec.Poly1305.Field32xN.uint64xN",
"Lib.IntVector.vec_t",
"Lib.IntTypes.U64",
"Lib.Sequence.eq_intro",
"Hacl.Spec.Poly1305.Vec.pfelem",
"Hacl.Spec.Poly1305.Fiel... | [] | false | false | true | false | false | let load_acc5_4_lemma f e =
| let f0, f1, f2, f3, f4 = f in
let r0, r1, r2, r3, r4 = (zero 4, zero 4, zero 4, zero 4, zero 4) in
let r = (r0, r1, r2, r3, r4) in
assert ((feval5 r).[ 1 ] == 0);
assert ((feval5 r).[ 2 ] == 0);
assert ((feval5 r).[ 3 ] == 0);
let r0 = vec_set r0 0ul (vec_get f0 0ul) in
let r1 = vec_set r1 0ul (vec_get f1 0ul) in
let r... | false |
Steel.Memory.fst | Steel.Memory.equiv_heap_iff_equiv | val equiv_heap_iff_equiv (p1 p2: slprop u#a)
: Lemma (ensures (H.equiv p1 p2 <==> equiv p1 p2)) [SMTPat (equiv p1 p2)] | val equiv_heap_iff_equiv (p1 p2: slprop u#a)
: Lemma (ensures (H.equiv p1 p2 <==> equiv p1 p2)) [SMTPat (equiv p1 p2)] | let equiv_heap_iff_equiv (p1 p2:slprop u#a)
: Lemma (ensures (H.equiv p1 p2 <==> equiv p1 p2))
[SMTPat (equiv p1 p2)]
= let aux_lr ()
: Lemma
(requires H.equiv p1 p2)
(ensures equiv p1 p2)
[SMTPat ()]
= ()
in
let aux_rl_helper1 (h:H.heap)
: Lemma
(... | {
"file_name": "lib/steel/Steel.Memory.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 6,
"end_line": 147,
"start_col": 0,
"start_line": 117
} | (*
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... | {
"checked_file": "/",
"dependencies": [
"Steel.Preorder.fst.checked",
"Steel.Heap.fsti.checked",
"prims.fst.checked",
"FStar.Witnessed.Core.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Preorder.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
... | [
{
"abbrev": true,
"full_module": "Steel.Heap",
"short_module": "H"
},
{
"abbrev": false,
"full_module": "FStar.PCM",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.FunctionalExtensionality",
"short_module": null
},
{
"abbrev": true,
"full_mod... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | p1: Steel.Memory.slprop -> p2: Steel.Memory.slprop
-> FStar.Pervasives.Lemma (ensures Steel.Heap.equiv p1 p2 <==> Steel.Memory.equiv p1 p2)
[SMTPat (Steel.Memory.equiv p1 p2)] | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"Steel.Memory.slprop",
"Prims.unit",
"Steel.Memory.equiv",
"Prims.squash",
"Steel.Heap.equiv",
"Prims.Cons",
"FStar.Pervasives.pattern",
"FStar.Pervasives.smt_pat",
"Prims.Nil",
"Steel.Heap.heap",
"Prims.l_and",
"Steel.Heap.interp",
"Prims._assert",
"Steel.Memory.interp",
"Steel.Memory.m... | [] | false | false | true | false | false | let equiv_heap_iff_equiv (p1 p2: slprop u#a)
: Lemma (ensures (H.equiv p1 p2 <==> equiv p1 p2)) [SMTPat (equiv p1 p2)] =
| let aux_lr () : Lemma (requires H.equiv p1 p2) (ensures equiv p1 p2) [SMTPat ()] = () in
let aux_rl_helper1 (h: H.heap)
: Lemma (requires equiv p1 p2 /\ H.interp p1 h) (ensures H.interp p2 h) [SMTPat ()] =
assert (interp p2 (mem_of_heap h))
in
let aux_rl_helper2 (h: H.heap)
: Lemma (requires equiv p1 p2 /\ H.... | false |
Steel.Memory.fst | Steel.Memory.equiv_extensional_on_star | val equiv_extensional_on_star (p1 p2 p3:slprop)
: squash (p1 `equiv` p2 ==> (p1 `star` p3) `equiv` (p2 `star` p3)) | val equiv_extensional_on_star (p1 p2 p3:slprop)
: squash (p1 `equiv` p2 ==> (p1 `star` p3) `equiv` (p2 `star` p3)) | let equiv_extensional_on_star (p1 p2 p3:slprop u#a) =
equiv_heap_iff_equiv_forall ();
H.equiv_extensional_on_star p1 p2 p3 | {
"file_name": "lib/steel/Steel.Memory.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 38,
"end_line": 161,
"start_col": 0,
"start_line": 159
} | (*
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... | {
"checked_file": "/",
"dependencies": [
"Steel.Preorder.fst.checked",
"Steel.Heap.fsti.checked",
"prims.fst.checked",
"FStar.Witnessed.Core.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Preorder.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
... | [
{
"abbrev": true,
"full_module": "Steel.Heap",
"short_module": "H"
},
{
"abbrev": false,
"full_module": "FStar.FunctionalExtensionality",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.FunctionalExtensionality",
"short_module": "F"
},
{
"abbrev": ... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | p1: Steel.Memory.slprop -> p2: Steel.Memory.slprop -> p3: Steel.Memory.slprop
-> Prims.squash (Steel.Memory.equiv p1 p2 ==>
Steel.Memory.equiv (Steel.Memory.star p1 p3) (Steel.Memory.star p2 p3)) | Prims.Tot | [
"total"
] | [] | [
"Steel.Memory.slprop",
"Steel.Heap.equiv_extensional_on_star",
"Prims.unit",
"Steel.Memory.equiv_heap_iff_equiv_forall",
"Prims.squash",
"Prims.l_imp",
"Steel.Memory.equiv",
"Steel.Memory.star"
] | [] | false | false | true | false | false | let equiv_extensional_on_star (p1 p2 p3: slprop u#a) =
| equiv_heap_iff_equiv_forall ();
H.equiv_extensional_on_star p1 p2 p3 | false |
Steel.Memory.fst | Steel.Memory.inames_in | val inames_in (e: inames) (l: lock_store) : prop | val inames_in (e: inames) (l: lock_store) : prop | let inames_in (e:inames) (l:lock_store) : prop = forall i. Set.mem i e ==> i < L.length l | {
"file_name": "lib/steel/Steel.Memory.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 89,
"end_line": 280,
"start_col": 0,
"start_line": 280
} | (*
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... | {
"checked_file": "/",
"dependencies": [
"Steel.Preorder.fst.checked",
"Steel.Heap.fsti.checked",
"prims.fst.checked",
"FStar.Witnessed.Core.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Preorder.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
... | [
{
"abbrev": true,
"full_module": "FStar.Witnessed.Core",
"short_module": "W"
},
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": true,
"full_module": "FStar.Set",
"short_module": "S"
},
{
"abbrev": true,
"full_module": "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... | false | e: Steel.Memory.inames -> l: Steel.Memory.lock_store -> Prims.prop | Prims.Tot | [
"total"
] | [] | [
"Steel.Memory.inames",
"Steel.Memory.lock_store",
"Prims.l_Forall",
"Prims.int",
"Prims.b2t",
"Prims.op_GreaterThanOrEqual",
"Prims.l_imp",
"FStar.Set.mem",
"Steel.Memory.iname",
"FStar.Ghost.reveal",
"FStar.Set.set",
"Prims.op_LessThan",
"FStar.List.Tot.Base.length",
"Steel.Memory.lock_st... | [] | false | false | false | true | true | let inames_in (e: inames) (l: lock_store) : prop =
| forall i. Set.mem i e ==> i < L.length l | false |
Steel.Memory.fst | Steel.Memory.pure_interp | val pure_interp (q:prop) (m:mem)
: Lemma (interp (pure q) m <==> q) | val pure_interp (q:prop) (m:mem)
: Lemma (interp (pure q) m <==> q) | let pure_interp q m = H.pure_interp q (heap_of_mem m) | {
"file_name": "lib/steel/Steel.Memory.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 53,
"end_line": 168,
"start_col": 0,
"start_line": 168
} | (*
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... | {
"checked_file": "/",
"dependencies": [
"Steel.Preorder.fst.checked",
"Steel.Heap.fsti.checked",
"prims.fst.checked",
"FStar.Witnessed.Core.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Preorder.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
... | [
{
"abbrev": true,
"full_module": "Steel.Heap",
"short_module": "H"
},
{
"abbrev": false,
"full_module": "FStar.FunctionalExtensionality",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.FunctionalExtensionality",
"short_module": "F"
},
{
"abbrev": ... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | q: Prims.prop -> m: Steel.Memory.mem
-> FStar.Pervasives.Lemma (ensures Steel.Memory.interp (Steel.Memory.pure q) m <==> q) | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"Prims.prop",
"Steel.Memory.mem",
"Steel.Heap.pure_interp",
"Steel.Memory.heap_of_mem",
"Prims.unit"
] | [] | true | false | true | false | false | let pure_interp q m =
| H.pure_interp q (heap_of_mem m) | false |
Steel.Memory.fst | Steel.Memory.pure_equiv | val pure_equiv (p q:prop)
: Lemma ((p <==> q) ==> (pure p `equiv` pure q)) | val pure_equiv (p q:prop)
: Lemma ((p <==> q) ==> (pure p `equiv` pure q)) | let pure_equiv p q = H.pure_equiv p q | {
"file_name": "lib/steel/Steel.Memory.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 37,
"end_line": 167,
"start_col": 0,
"start_line": 167
} | (*
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... | {
"checked_file": "/",
"dependencies": [
"Steel.Preorder.fst.checked",
"Steel.Heap.fsti.checked",
"prims.fst.checked",
"FStar.Witnessed.Core.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Preorder.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
... | [
{
"abbrev": true,
"full_module": "Steel.Heap",
"short_module": "H"
},
{
"abbrev": false,
"full_module": "FStar.FunctionalExtensionality",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.FunctionalExtensionality",
"short_module": "F"
},
{
"abbrev": ... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | p: Prims.prop -> q: Prims.prop
-> FStar.Pervasives.Lemma
(ensures (p <==> q) ==> Steel.Memory.equiv (Steel.Memory.pure p) (Steel.Memory.pure q)) | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"Prims.prop",
"Steel.Heap.pure_equiv",
"Prims.unit"
] | [] | true | false | true | false | false | let pure_equiv p q =
| H.pure_equiv p q | false |
Steel.Memory.fst | Steel.Memory.equiv_heap_iff_equiv_forall | val equiv_heap_iff_equiv_forall: Prims.unit
-> Lemma (ensures (forall p1 p2. H.equiv p1 p2 <==> equiv p1 p2)) | val equiv_heap_iff_equiv_forall: Prims.unit
-> Lemma (ensures (forall p1 p2. H.equiv p1 p2 <==> equiv p1 p2)) | let equiv_heap_iff_equiv_forall ()
: Lemma (ensures (forall p1 p2. H.equiv p1 p2 <==> equiv p1 p2))
= let aux p1 p2
: Lemma (ensures (H.equiv p1 p2 <==> equiv p1 p2))
[SMTPat ()]
= equiv_heap_iff_equiv p1 p2
in
() | {
"file_name": "lib/steel/Steel.Memory.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 6,
"end_line": 156,
"start_col": 0,
"start_line": 149
} | (*
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... | {
"checked_file": "/",
"dependencies": [
"Steel.Preorder.fst.checked",
"Steel.Heap.fsti.checked",
"prims.fst.checked",
"FStar.Witnessed.Core.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Preorder.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
... | [
{
"abbrev": true,
"full_module": "Steel.Heap",
"short_module": "H"
},
{
"abbrev": false,
"full_module": "FStar.PCM",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.FunctionalExtensionality",
"short_module": null
},
{
"abbrev": true,
"full_mod... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | _: Prims.unit
-> FStar.Pervasives.Lemma
(ensures
forall (p1: Steel.Heap.slprop) (p2: Steel.Heap.slprop).
Steel.Heap.equiv p1 p2 <==> Steel.Memory.equiv p1 p2) | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"Prims.unit",
"Steel.Heap.slprop",
"Prims.l_True",
"Prims.squash",
"Prims.l_iff",
"Steel.Heap.equiv",
"Steel.Memory.equiv",
"Prims.Cons",
"FStar.Pervasives.pattern",
"FStar.Pervasives.smt_pat",
"Prims.Nil",
"Steel.Memory.equiv_heap_iff_equiv",
"Prims.l_Forall"
] | [] | false | false | true | false | false | let equiv_heap_iff_equiv_forall () : Lemma (ensures (forall p1 p2. H.equiv p1 p2 <==> equiv p1 p2)) =
| let aux p1 p2 : Lemma (ensures (H.equiv p1 p2 <==> equiv p1 p2)) [SMTPat ()] =
equiv_heap_iff_equiv p1 p2
in
() | false |
Steel.Memory.fst | Steel.Memory.pts_to_not_null | val pts_to_not_null (#a:Type u#a)
(#pcm:_)
(x:ref a pcm)
(v:a)
(m:mem u#a)
: Lemma (requires interp (pts_to x v) m)
(ensures x =!= null) | val pts_to_not_null (#a:Type u#a)
(#pcm:_)
(x:ref a pcm)
(v:a)
(m:mem u#a)
: Lemma (requires interp (pts_to x v) m)
(ensures x =!= null) | let pts_to_not_null #a #pcm x v m
= H.pts_to_not_null #a #pcm x v (heap_of_mem m) | {
"file_name": "lib/steel/Steel.Memory.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 49,
"end_line": 180,
"start_col": 0,
"start_line": 179
} | (*
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... | {
"checked_file": "/",
"dependencies": [
"Steel.Preorder.fst.checked",
"Steel.Heap.fsti.checked",
"prims.fst.checked",
"FStar.Witnessed.Core.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Preorder.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
... | [
{
"abbrev": true,
"full_module": "Steel.Heap",
"short_module": "H"
},
{
"abbrev": false,
"full_module": "FStar.FunctionalExtensionality",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.FunctionalExtensionality",
"short_module": "F"
},
{
"abbrev": ... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | x: Steel.Memory.ref a pcm -> v: a -> m: Steel.Memory.mem
-> FStar.Pervasives.Lemma (requires Steel.Memory.interp (Steel.Memory.pts_to x v) m)
(ensures ~(x == Steel.Memory.null)) | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"FStar.PCM.pcm",
"Steel.Memory.ref",
"Steel.Memory.mem",
"Steel.Heap.pts_to_not_null",
"Steel.Memory.heap_of_mem",
"Prims.unit"
] | [] | true | false | true | false | false | let pts_to_not_null #a #pcm x v m =
| H.pts_to_not_null #a #pcm x v (heap_of_mem m) | false |
Steel.Memory.fst | Steel.Memory.inames_ok | val inames_ok (e:inames) (m:mem) : prop | val inames_ok (e:inames) (m:mem) : prop | let inames_ok e m = inames_in e m.locks | {
"file_name": "lib/steel/Steel.Memory.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 39,
"end_line": 282,
"start_col": 0,
"start_line": 282
} | (*
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... | {
"checked_file": "/",
"dependencies": [
"Steel.Preorder.fst.checked",
"Steel.Heap.fsti.checked",
"prims.fst.checked",
"FStar.Witnessed.Core.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Preorder.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
... | [
{
"abbrev": true,
"full_module": "FStar.Witnessed.Core",
"short_module": "W"
},
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": true,
"full_module": "Steel.Heap",
"short_module": "H"
},
{
"abbrev": false,
"full_module": "F... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | e: Steel.Memory.inames -> m: Steel.Memory.mem -> Prims.prop | Prims.Tot | [
"total"
] | [] | [
"Steel.Memory.inames",
"Steel.Memory.mem",
"Steel.Memory.inames_in",
"Steel.Memory.__proj__Mkmem__item__locks",
"Prims.prop"
] | [] | false | false | false | true | true | let inames_ok e m =
| inames_in e m.locks | false |
Steel.Memory.fst | Steel.Memory.star_commutative | val star_commutative (p1 p2:slprop)
: Lemma ((p1 `star` p2) `equiv` (p2 `star` p1)) | val star_commutative (p1 p2:slprop)
: Lemma ((p1 `star` p2) `equiv` (p2 `star` p1)) | let star_commutative (p1 p2:slprop) =
H.star_commutative p1 p2 | {
"file_name": "lib/steel/Steel.Memory.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 26,
"end_line": 234,
"start_col": 0,
"start_line": 233
} | (*
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... | {
"checked_file": "/",
"dependencies": [
"Steel.Preorder.fst.checked",
"Steel.Heap.fsti.checked",
"prims.fst.checked",
"FStar.Witnessed.Core.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Preorder.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
... | [
{
"abbrev": true,
"full_module": "Steel.Heap",
"short_module": "H"
},
{
"abbrev": false,
"full_module": "FStar.FunctionalExtensionality",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.FunctionalExtensionality",
"short_module": "F"
},
{
"abbrev": ... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | p1: Steel.Memory.slprop -> p2: Steel.Memory.slprop
-> FStar.Pervasives.Lemma
(ensures Steel.Memory.equiv (Steel.Memory.star p1 p2) (Steel.Memory.star p2 p1)) | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"Steel.Memory.slprop",
"Steel.Heap.star_commutative",
"Prims.unit"
] | [] | true | false | true | false | false | let star_commutative (p1 p2: slprop) =
| H.star_commutative p1 p2 | false |
Steel.Memory.fst | Steel.Memory.intro_star | val intro_star (p q:slprop) (mp:hmem p) (mq:hmem q)
: Lemma
(requires
disjoint mp mq)
(ensures
interp (p `star` q) (join mp mq)) | val intro_star (p q:slprop) (mp:hmem p) (mq:hmem q)
: Lemma
(requires
disjoint mp mq)
(ensures
interp (p `star` q) (join mp mq)) | let intro_star p q mp mq =
H.intro_star p q (heap_of_mem mp) (heap_of_mem mq) | {
"file_name": "lib/steel/Steel.Memory.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 52,
"end_line": 187,
"start_col": 0,
"start_line": 186
} | (*
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... | {
"checked_file": "/",
"dependencies": [
"Steel.Preorder.fst.checked",
"Steel.Heap.fsti.checked",
"prims.fst.checked",
"FStar.Witnessed.Core.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Preorder.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
... | [
{
"abbrev": true,
"full_module": "Steel.Heap",
"short_module": "H"
},
{
"abbrev": false,
"full_module": "FStar.FunctionalExtensionality",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.FunctionalExtensionality",
"short_module": "F"
},
{
"abbrev": ... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
p: Steel.Memory.slprop ->
q: Steel.Memory.slprop ->
mp: Steel.Memory.hmem p ->
mq: Steel.Memory.hmem q
-> FStar.Pervasives.Lemma (requires Steel.Memory.disjoint mp mq)
(ensures Steel.Memory.interp (Steel.Memory.star p q) (Steel.Memory.join mp mq)) | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"Steel.Memory.slprop",
"Steel.Memory.hmem",
"Steel.Heap.intro_star",
"Steel.Memory.heap_of_mem",
"Prims.unit"
] | [] | true | false | true | false | false | let intro_star p q mp mq =
| H.intro_star p q (heap_of_mem mp) (heap_of_mem mq) | false |
Steel.Memory.fst | Steel.Memory.pure_star_interp | val pure_star_interp (p:slprop u#a) (q:prop) (m:mem)
: Lemma (interp (p `star` pure q) m <==>
interp (p `star` emp) m /\ q) | val pure_star_interp (p:slprop u#a) (q:prop) (m:mem)
: Lemma (interp (p `star` pure q) m <==>
interp (p `star` emp) m /\ q) | let pure_star_interp p q m = H.pure_star_interp p q (heap_of_mem m) | {
"file_name": "lib/steel/Steel.Memory.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 67,
"end_line": 169,
"start_col": 0,
"start_line": 169
} | (*
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... | {
"checked_file": "/",
"dependencies": [
"Steel.Preorder.fst.checked",
"Steel.Heap.fsti.checked",
"prims.fst.checked",
"FStar.Witnessed.Core.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Preorder.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
... | [
{
"abbrev": true,
"full_module": "Steel.Heap",
"short_module": "H"
},
{
"abbrev": false,
"full_module": "FStar.FunctionalExtensionality",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.FunctionalExtensionality",
"short_module": "F"
},
{
"abbrev": ... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | p: Steel.Memory.slprop -> q: Prims.prop -> m: Steel.Memory.mem
-> FStar.Pervasives.Lemma
(ensures
Steel.Memory.interp (Steel.Memory.star p (Steel.Memory.pure q)) m <==>
Steel.Memory.interp (Steel.Memory.star p Steel.Memory.emp) m /\ q) | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"Steel.Memory.slprop",
"Prims.prop",
"Steel.Memory.mem",
"Steel.Heap.pure_star_interp",
"Steel.Memory.heap_of_mem",
"Prims.unit"
] | [] | true | false | true | false | false | let pure_star_interp p q m =
| H.pure_star_interp p q (heap_of_mem m) | false |
Steel.Memory.fst | Steel.Memory.set_add | val set_add : i: Steel.Memory.iname -> s: Steel.Memory.inames -> Prims.GTot (FStar.Set.set Steel.Memory.iname) | let set_add (i:iname) (s:inames) = Set.union (Set.singleton i) s | {
"file_name": "lib/steel/Steel.Memory.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 64,
"end_line": 294,
"start_col": 0,
"start_line": 294
} | (*
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... | {
"checked_file": "/",
"dependencies": [
"Steel.Preorder.fst.checked",
"Steel.Heap.fsti.checked",
"prims.fst.checked",
"FStar.Witnessed.Core.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Preorder.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
... | [
{
"abbrev": true,
"full_module": "FStar.Witnessed.Core",
"short_module": "W"
},
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": true,
"full_module": "FStar.Set",
"short_module": "S"
},
{
"abbrev": true,
"full_module": "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... | false | i: Steel.Memory.iname -> s: Steel.Memory.inames -> Prims.GTot (FStar.Set.set Steel.Memory.iname) | Prims.GTot | [
"sometrivial"
] | [] | [
"Steel.Memory.iname",
"Steel.Memory.inames",
"FStar.Set.union",
"FStar.Set.singleton",
"FStar.Ghost.reveal",
"FStar.Set.set"
] | [] | false | false | false | false | false | let set_add (i: iname) (s: inames) =
| Set.union (Set.singleton i) s | false | |
Steel.Memory.fst | Steel.Memory.emp_unit | val emp_unit (p:slprop)
: Lemma (p `equiv` (p `star` emp)) | val emp_unit (p:slprop)
: Lemma (p `equiv` (p `star` emp)) | let emp_unit p = H.emp_unit p | {
"file_name": "lib/steel/Steel.Memory.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 29,
"end_line": 163,
"start_col": 0,
"start_line": 163
} | (*
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... | {
"checked_file": "/",
"dependencies": [
"Steel.Preorder.fst.checked",
"Steel.Heap.fsti.checked",
"prims.fst.checked",
"FStar.Witnessed.Core.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Preorder.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
... | [
{
"abbrev": true,
"full_module": "Steel.Heap",
"short_module": "H"
},
{
"abbrev": false,
"full_module": "FStar.FunctionalExtensionality",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.FunctionalExtensionality",
"short_module": "F"
},
{
"abbrev": ... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | p: Steel.Memory.slprop
-> FStar.Pervasives.Lemma (ensures Steel.Memory.equiv p (Steel.Memory.star p Steel.Memory.emp)) | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"Steel.Memory.slprop",
"Steel.Heap.emp_unit",
"Prims.unit"
] | [] | true | false | true | false | false | let emp_unit p =
| H.emp_unit p | false |
Steel.Memory.fst | Steel.Memory.star_associative | val star_associative (p1 p2 p3:slprop)
: Lemma ((p1 `star` (p2 `star` p3))
`equiv`
((p1 `star` p2) `star` p3)) | val star_associative (p1 p2 p3:slprop)
: Lemma ((p1 `star` (p2 `star` p3))
`equiv`
((p1 `star` p2) `star` p3)) | let star_associative (p1 p2 p3:slprop) =
H.star_associative p1 p2 p3 | {
"file_name": "lib/steel/Steel.Memory.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 29,
"end_line": 237,
"start_col": 0,
"start_line": 236
} | (*
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... | {
"checked_file": "/",
"dependencies": [
"Steel.Preorder.fst.checked",
"Steel.Heap.fsti.checked",
"prims.fst.checked",
"FStar.Witnessed.Core.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Preorder.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
... | [
{
"abbrev": true,
"full_module": "Steel.Heap",
"short_module": "H"
},
{
"abbrev": false,
"full_module": "FStar.FunctionalExtensionality",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.FunctionalExtensionality",
"short_module": "F"
},
{
"abbrev": ... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | p1: Steel.Memory.slprop -> p2: Steel.Memory.slprop -> p3: Steel.Memory.slprop
-> FStar.Pervasives.Lemma
(ensures
Steel.Memory.equiv (Steel.Memory.star p1 (Steel.Memory.star p2 p3))
(Steel.Memory.star (Steel.Memory.star p1 p2) p3)) | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"Steel.Memory.slprop",
"Steel.Heap.star_associative",
"Prims.unit"
] | [] | true | false | true | false | false | let star_associative (p1 p2 p3: slprop) =
| H.star_associative p1 p2 p3 | false |
Steel.Memory.fst | Steel.Memory.intro_emp | val intro_emp (m:mem)
: Lemma (interp emp m) | val intro_emp (m:mem)
: Lemma (interp emp m) | let intro_emp m = H.intro_emp (heap_of_mem m) | {
"file_name": "lib/steel/Steel.Memory.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 45,
"end_line": 165,
"start_col": 0,
"start_line": 165
} | (*
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... | {
"checked_file": "/",
"dependencies": [
"Steel.Preorder.fst.checked",
"Steel.Heap.fsti.checked",
"prims.fst.checked",
"FStar.Witnessed.Core.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Preorder.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
... | [
{
"abbrev": true,
"full_module": "Steel.Heap",
"short_module": "H"
},
{
"abbrev": false,
"full_module": "FStar.FunctionalExtensionality",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.FunctionalExtensionality",
"short_module": "F"
},
{
"abbrev": ... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | m: Steel.Memory.mem -> FStar.Pervasives.Lemma (ensures Steel.Memory.interp Steel.Memory.emp m) | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"Steel.Memory.mem",
"Steel.Heap.intro_emp",
"Steel.Memory.heap_of_mem",
"Prims.unit"
] | [] | true | false | true | false | false | let intro_emp m =
| H.intro_emp (heap_of_mem m) | false |
Steel.Memory.fst | Steel.Memory.locks_invariant | val locks_invariant (e:inames) (m:mem u#a) : slprop u#a | val locks_invariant (e:inames) (m:mem u#a) : slprop u#a | let locks_invariant (e:inames) (m:mem u#a) : slprop u#a =
lock_store_invariant e m.locks
`star`
ctr_validity m.ctr (heap_of_mem m) | {
"file_name": "lib/steel/Steel.Memory.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 37,
"end_line": 347,
"start_col": 0,
"start_line": 344
} | (*
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... | {
"checked_file": "/",
"dependencies": [
"Steel.Preorder.fst.checked",
"Steel.Heap.fsti.checked",
"prims.fst.checked",
"FStar.Witnessed.Core.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Preorder.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
... | [
{
"abbrev": true,
"full_module": "FStar.Witnessed.Core",
"short_module": "W"
},
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": true,
"full_module": "Steel.Heap",
"short_module": "H"
},
{
"abbrev": false,
"full_module": "F... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | e: Steel.Memory.inames -> m: Steel.Memory.mem -> Steel.Memory.slprop | Prims.Tot | [
"total"
] | [] | [
"Steel.Memory.inames",
"Steel.Memory.mem",
"Steel.Memory.star",
"Steel.Memory.lock_store_invariant",
"Steel.Memory.__proj__Mkmem__item__locks",
"Steel.Memory.ctr_validity",
"Steel.Memory.__proj__Mkmem__item__ctr",
"Steel.Memory.heap_of_mem",
"Steel.Memory.slprop"
] | [] | false | false | false | true | false | let locks_invariant (e: inames) (m: mem u#a) : slprop u#a =
| (lock_store_invariant e m.locks) `star` (ctr_validity m.ctr (heap_of_mem m)) | false |
Steel.Memory.fst | Steel.Memory.heap_ctr_valid | val heap_ctr_valid (ctr: nat) (h: H.heap u#a) : prop | val heap_ctr_valid (ctr: nat) (h: H.heap u#a) : prop | let heap_ctr_valid (ctr:nat) (h:H.heap u#a) : prop =
h `H.free_above_addr` ctr | {
"file_name": "lib/steel/Steel.Memory.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 29,
"end_line": 339,
"start_col": 0,
"start_line": 338
} | (*
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... | {
"checked_file": "/",
"dependencies": [
"Steel.Preorder.fst.checked",
"Steel.Heap.fsti.checked",
"prims.fst.checked",
"FStar.Witnessed.Core.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Preorder.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
... | [
{
"abbrev": true,
"full_module": "FStar.Witnessed.Core",
"short_module": "W"
},
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": true,
"full_module": "FStar.Set",
"short_module": "S"
},
{
"abbrev": true,
"full_module": "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... | false | ctr: Prims.nat -> h: Steel.Heap.heap -> Prims.prop | Prims.Tot | [
"total"
] | [] | [
"Prims.nat",
"Steel.Heap.heap",
"Steel.Heap.free_above_addr",
"Prims.prop"
] | [] | false | false | false | true | true | let heap_ctr_valid (ctr: nat) (h: H.heap u#a) : prop =
| h `H.free_above_addr` ctr | false |
Steel.Memory.fst | Steel.Memory.elim_star | val elim_star (p q:slprop) (m:hmem (p `star` q))
: Lemma
(requires
interp (p `star` q) m)
(ensures exists ml mr.
disjoint ml mr /\ m == join ml mr /\ interp p ml /\ interp q mr) | val elim_star (p q:slprop) (m:hmem (p `star` q))
: Lemma
(requires
interp (p `star` q) m)
(ensures exists ml mr.
disjoint ml mr /\ m == join ml mr /\ interp p ml /\ interp q mr) | let elim_star p q m =
let h = heap_of_mem m in
H.elim_star p q h;
assert (exists hl hr. H.disjoint hl hr /\ H.join hl hr == h /\ H.interp p hl /\ H.interp q hr);
let hl = FStar.IndefiniteDescription.indefinite_description_tot H.heap (fun hl ->
exists hr. H.disjoint hl hr /\ H.join hl hr == h /\ H.interp p ... | {
"file_name": "lib/steel/Steel.Memory.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 4,
"end_line": 203,
"start_col": 0,
"start_line": 189
} | (*
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... | {
"checked_file": "/",
"dependencies": [
"Steel.Preorder.fst.checked",
"Steel.Heap.fsti.checked",
"prims.fst.checked",
"FStar.Witnessed.Core.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Preorder.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
... | [
{
"abbrev": true,
"full_module": "Steel.Heap",
"short_module": "H"
},
{
"abbrev": false,
"full_module": "FStar.FunctionalExtensionality",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.FunctionalExtensionality",
"short_module": "F"
},
{
"abbrev": ... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | p: Steel.Memory.slprop -> q: Steel.Memory.slprop -> m: Steel.Memory.hmem (Steel.Memory.star p q)
-> FStar.Pervasives.Lemma (requires Steel.Memory.interp (Steel.Memory.star p q) m)
(ensures
exists (ml: Steel.Memory.mem) (mr: m1: Steel.Memory.mem{Steel.Memory.disjoint ml m1}).
Steel.Memory.disjo... | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"Steel.Memory.slprop",
"Steel.Memory.hmem",
"Steel.Memory.star",
"Prims.unit",
"Prims._assert",
"Steel.Memory.interp",
"Prims.eq2",
"Steel.Memory.mem",
"Steel.Memory.join",
"Steel.Memory.disjoint",
"Steel.Memory.mem_set_heap",
"FStar.Ghost.reveal",
"Steel.Heap.heap",
"FStar.Ghost.erased",
... | [] | false | false | true | false | false | let elim_star p q m =
| let h = heap_of_mem m in
H.elim_star p q h;
assert (exists hl hr. H.disjoint hl hr /\ H.join hl hr == h /\ H.interp p hl /\ H.interp q hr);
let hl =
FStar.IndefiniteDescription.indefinite_description_tot H.heap
(fun hl -> exists hr. H.disjoint hl hr /\ H.join hl hr == h /\ H.interp p hl /\ H.interp q hr)
in
let h... | false |
Steel.Memory.fst | Steel.Memory.pts_to_compatible | val pts_to_compatible
(#a:Type u#a)
(#pcm:pcm a)
(x:ref a pcm)
(v0 v1:a)
(m:mem u#a)
: Lemma
(interp (pts_to x v0 `star` pts_to x v1) m <==>
composable pcm v0 v1 /\ interp (pts_to x (op pcm v0 v1)) m) | val pts_to_compatible
(#a:Type u#a)
(#pcm:pcm a)
(x:ref a pcm)
(v0 v1:a)
(m:mem u#a)
: Lemma
(interp (pts_to x v0 `star` pts_to x v1) m <==>
composable pcm v0 v1 /\ interp (pts_to x (op pcm v0 v1)) m) | let pts_to_compatible #a #pcm x v0 v1 m
= H.pts_to_compatible #a #pcm x v0 v1 (heap_of_mem m) | {
"file_name": "lib/steel/Steel.Memory.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 55,
"end_line": 176,
"start_col": 0,
"start_line": 175
} | (*
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... | {
"checked_file": "/",
"dependencies": [
"Steel.Preorder.fst.checked",
"Steel.Heap.fsti.checked",
"prims.fst.checked",
"FStar.Witnessed.Core.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Preorder.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
... | [
{
"abbrev": true,
"full_module": "Steel.Heap",
"short_module": "H"
},
{
"abbrev": false,
"full_module": "FStar.FunctionalExtensionality",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.FunctionalExtensionality",
"short_module": "F"
},
{
"abbrev": ... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | x: Steel.Memory.ref a pcm -> v0: a -> v1: a -> m: Steel.Memory.mem
-> FStar.Pervasives.Lemma
(ensures
Steel.Memory.interp (Steel.Memory.star (Steel.Memory.pts_to x v0) (Steel.Memory.pts_to x v1))
m <==>
FStar.PCM.composable pcm v0 v1 /\
Steel.Memory.interp (Steel.Memory.pts_to x (FStar.P... | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"FStar.PCM.pcm",
"Steel.Memory.ref",
"Steel.Memory.mem",
"Steel.Heap.pts_to_compatible",
"Steel.Memory.heap_of_mem",
"Prims.unit"
] | [] | true | false | true | false | false | let pts_to_compatible #a #pcm x v0 v1 m =
| H.pts_to_compatible #a #pcm x v0 v1 (heap_of_mem m) | false |
Steel.Memory.fst | Steel.Memory.iname | val iname : eqtype | val iname : eqtype | let iname = nat | {
"file_name": "lib/steel/Steel.Memory.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 15,
"end_line": 250,
"start_col": 0,
"start_line": 250
} | (*
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... | {
"checked_file": "/",
"dependencies": [
"Steel.Preorder.fst.checked",
"Steel.Heap.fsti.checked",
"prims.fst.checked",
"FStar.Witnessed.Core.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Preorder.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
... | [
{
"abbrev": true,
"full_module": "Steel.Heap",
"short_module": "H"
},
{
"abbrev": false,
"full_module": "FStar.FunctionalExtensionality",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.FunctionalExtensionality",
"short_module": "F"
},
{
"abbrev": ... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | Prims.eqtype | Prims.Tot | [
"total"
] | [] | [
"Prims.nat"
] | [] | false | false | false | true | false | let iname =
| nat | false |
Steel.Memory.fst | Steel.Memory.lock_i | val lock_i : i: Steel.Memory.iname -> l: Steel.Memory.lock_store{i < FStar.List.Tot.Base.length l}
-> Steel.Memory.lock_state | let lock_i (i:iname) (l:lock_store { i < L.length l }) =
let ix = L.length l - i - 1 in
L.index l ix | {
"file_name": "lib/steel/Steel.Memory.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 14,
"end_line": 267,
"start_col": 0,
"start_line": 265
} | (*
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... | {
"checked_file": "/",
"dependencies": [
"Steel.Preorder.fst.checked",
"Steel.Heap.fsti.checked",
"prims.fst.checked",
"FStar.Witnessed.Core.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Preorder.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
... | [
{
"abbrev": true,
"full_module": "FStar.Witnessed.Core",
"short_module": "W"
},
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": true,
"full_module": "FStar.Set",
"short_module": "S"
},
{
"abbrev": true,
"full_module": "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... | false | i: Steel.Memory.iname -> l: Steel.Memory.lock_store{i < FStar.List.Tot.Base.length l}
-> Steel.Memory.lock_state | Prims.Tot | [
"total"
] | [] | [
"Steel.Memory.iname",
"Steel.Memory.lock_store",
"Prims.b2t",
"Prims.op_LessThan",
"FStar.List.Tot.Base.length",
"Steel.Memory.lock_state",
"FStar.List.Tot.Base.index",
"Prims.int",
"Prims.op_Subtraction"
] | [] | false | false | false | false | false | let lock_i (i: iname) (l: lock_store{i < L.length l}) =
| let ix = L.length l - i - 1 in
L.index l ix | false | |
Steel.Memory.fst | Steel.Memory.interp_star | val interp_star
(p q: slprop)
(m: mem)
: Lemma
(interp (p `star` q) m <==> (exists (mp: mem) (mq: mem) . disjoint mp mq /\ interp p mp /\ interp q mq /\ join mp mq == m)) | val interp_star
(p q: slprop)
(m: mem)
: Lemma
(interp (p `star` q) m <==> (exists (mp: mem) (mq: mem) . disjoint mp mq /\ interp p mp /\ interp q mq /\ join mp mq == m)) | let interp_star
(p q: slprop)
(m: mem)
: Lemma
(interp (p `star` q) m <==> (exists (mp: mem) (mq: mem) . disjoint mp mq /\ interp p mp /\ interp q mq /\ join mp mq == m))
= let left = interp (p `star` q) m in
let right = exists (mp: mem) (mq: mem) . disjoint mp mq /\ interp p mp /\ interp q mq /\ join mp mq == ... | {
"file_name": "lib/steel/Steel.Memory.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 30,
"end_line": 231,
"start_col": 0,
"start_line": 205
} | (*
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... | {
"checked_file": "/",
"dependencies": [
"Steel.Preorder.fst.checked",
"Steel.Heap.fsti.checked",
"prims.fst.checked",
"FStar.Witnessed.Core.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Preorder.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
... | [
{
"abbrev": true,
"full_module": "Steel.Heap",
"short_module": "H"
},
{
"abbrev": false,
"full_module": "FStar.FunctionalExtensionality",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.FunctionalExtensionality",
"short_module": "F"
},
{
"abbrev": ... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | p: Steel.Memory.slprop -> q: Steel.Memory.slprop -> m: Steel.Memory.mem
-> FStar.Pervasives.Lemma
(ensures
Steel.Memory.interp (Steel.Memory.star p q) m <==>
(exists (mp: Steel.Memory.mem) (mq: Steel.Memory.mem).
Steel.Memory.disjoint mp mq /\ Steel.Memory.interp p mp /\ Steel.Memory.interp ... | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"Steel.Memory.slprop",
"Steel.Memory.mem",
"FStar.Classical.move_requires",
"Prims.unit",
"Prims.squash",
"Prims.Nil",
"FStar.Pervasives.pattern",
"FStar.Classical.exists_elim",
"Prims.l_Exists",
"Prims.l_and",
"Steel.Memory.disjoint",
"Steel.Memory.interp",
"Prims.eq2",
"Steel.Memory.join... | [] | false | false | true | false | false | let interp_star (p q: slprop) (m: mem)
: Lemma
(interp (p `star` q) m <==>
(exists (mp: mem) (mq: mem). disjoint mp mq /\ interp p mp /\ interp q mq /\ join mp mq == m)) =
| let left = interp (p `star` q) m in
let right =
exists (mp: mem) (mq: mem). disjoint mp mq /\ interp p mp /\ interp q mq /\ join mp mq == m
in
let f () : Lemma (requires left) (ensures right) = elim_star p q m in
let g () : Lemma (requires right) (ensures left) =
Classical.exists_elim left
#_
#(fun mp -> ex... | false |
Steel.Memory.fst | Steel.Memory.pts_to_compatible_equiv | val pts_to_compatible_equiv (#a:Type)
(#pcm:_)
(x:ref a pcm)
(v0:a)
(v1:a{composable pcm v0 v1})
: Lemma (equiv (pts_to x v0 `star` pts_to x v1)
(pts_to x (op pcm v0 v1))) | val pts_to_compatible_equiv (#a:Type)
(#pcm:_)
(x:ref a pcm)
(v0:a)
(v1:a{composable pcm v0 v1})
: Lemma (equiv (pts_to x v0 `star` pts_to x v1)
(pts_to x (op pcm v0 v1))) | let pts_to_compatible_equiv #a #pcm x v0 v1
= H.pts_to_compatible_equiv #a #pcm x v0 v1 | {
"file_name": "lib/steel/Steel.Memory.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 45,
"end_line": 178,
"start_col": 0,
"start_line": 177
} | (*
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... | {
"checked_file": "/",
"dependencies": [
"Steel.Preorder.fst.checked",
"Steel.Heap.fsti.checked",
"prims.fst.checked",
"FStar.Witnessed.Core.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Preorder.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
... | [
{
"abbrev": true,
"full_module": "Steel.Heap",
"short_module": "H"
},
{
"abbrev": false,
"full_module": "FStar.FunctionalExtensionality",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.FunctionalExtensionality",
"short_module": "F"
},
{
"abbrev": ... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | x: Steel.Memory.ref a pcm -> v0: a -> v1: a{FStar.PCM.composable pcm v0 v1}
-> FStar.Pervasives.Lemma
(ensures
Steel.Memory.equiv (Steel.Memory.star (Steel.Memory.pts_to x v0) (Steel.Memory.pts_to x v1))
(Steel.Memory.pts_to x (FStar.PCM.op pcm v0 v1))) | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"FStar.PCM.pcm",
"Steel.Memory.ref",
"FStar.PCM.composable",
"Steel.Heap.pts_to_compatible_equiv",
"Prims.unit"
] | [] | true | false | true | false | false | let pts_to_compatible_equiv #a #pcm x v0 v1 =
| H.pts_to_compatible_equiv #a #pcm x v0 v1 | false |
Steel.Memory.fst | Steel.Memory.ctr_validity | val ctr_validity (ctr: nat) (h: H.heap) : slprop | val ctr_validity (ctr: nat) (h: H.heap) : slprop | let ctr_validity (ctr:nat) (h:H.heap) : slprop =
H.pure (heap_ctr_valid ctr h) | {
"file_name": "lib/steel/Steel.Memory.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 33,
"end_line": 342,
"start_col": 0,
"start_line": 341
} | (*
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... | {
"checked_file": "/",
"dependencies": [
"Steel.Preorder.fst.checked",
"Steel.Heap.fsti.checked",
"prims.fst.checked",
"FStar.Witnessed.Core.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Preorder.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
... | [
{
"abbrev": true,
"full_module": "FStar.Witnessed.Core",
"short_module": "W"
},
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": true,
"full_module": "FStar.Set",
"short_module": "S"
},
{
"abbrev": true,
"full_module": "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... | false | ctr: Prims.nat -> h: Steel.Heap.heap -> Steel.Memory.slprop | Prims.Tot | [
"total"
] | [] | [
"Prims.nat",
"Steel.Heap.heap",
"Steel.Heap.pure",
"Steel.Memory.heap_ctr_valid",
"Steel.Memory.slprop"
] | [] | false | false | false | true | false | let ctr_validity (ctr: nat) (h: H.heap) : slprop =
| H.pure (heap_ctr_valid ctr h) | false |
Steel.Memory.fst | Steel.Memory.affine_star | val affine_star (p q:slprop) (m:mem)
: Lemma ((interp (p `star` q) m ==> interp p m /\ interp q m)) | val affine_star (p q:slprop) (m:mem)
: Lemma ((interp (p `star` q) m ==> interp p m /\ interp q m)) | let affine_star (p q:slprop) (m:mem) =
H.affine_star p q (heap_of_mem m) | {
"file_name": "lib/steel/Steel.Memory.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 35,
"end_line": 244,
"start_col": 0,
"start_line": 243
} | (*
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... | {
"checked_file": "/",
"dependencies": [
"Steel.Preorder.fst.checked",
"Steel.Heap.fsti.checked",
"prims.fst.checked",
"FStar.Witnessed.Core.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Preorder.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
... | [
{
"abbrev": true,
"full_module": "Steel.Heap",
"short_module": "H"
},
{
"abbrev": false,
"full_module": "FStar.FunctionalExtensionality",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.FunctionalExtensionality",
"short_module": "F"
},
{
"abbrev": ... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | p: Steel.Memory.slprop -> q: Steel.Memory.slprop -> m: Steel.Memory.mem
-> FStar.Pervasives.Lemma
(ensures
Steel.Memory.interp (Steel.Memory.star p q) m ==>
Steel.Memory.interp p m /\ Steel.Memory.interp q m) | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"Steel.Memory.slprop",
"Steel.Memory.mem",
"Steel.Heap.affine_star",
"Steel.Memory.heap_of_mem",
"Prims.unit"
] | [] | true | false | true | false | false | let affine_star (p q: slprop) (m: mem) =
| H.affine_star p q (heap_of_mem m) | false |
Steel.Memory.fst | Steel.Memory.refine_slprop | val refine_slprop
(sl: slprop u#a)
(f: a_mem_prop sl)
: Tot (slprop u#a) | val refine_slprop
(sl: slprop u#a)
(f: a_mem_prop sl)
: Tot (slprop u#a) | let refine_slprop sl f = H.as_slprop (a_mem_prop_as_a_heap_prop sl f) | {
"file_name": "lib/steel/Steel.Memory.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 69,
"end_line": 377,
"start_col": 0,
"start_line": 377
} | (*
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... | {
"checked_file": "/",
"dependencies": [
"Steel.Preorder.fst.checked",
"Steel.Heap.fsti.checked",
"prims.fst.checked",
"FStar.Witnessed.Core.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Preorder.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
... | [
{
"abbrev": true,
"full_module": "FStar.Witnessed.Core",
"short_module": "W"
},
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": true,
"full_module": "Steel.Heap",
"short_module": "H"
},
{
"abbrev": false,
"full_module": "F... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | sl: Steel.Memory.slprop -> f: Steel.Memory.a_mem_prop sl -> Steel.Memory.slprop | Prims.Tot | [
"total"
] | [] | [
"Steel.Memory.slprop",
"Steel.Memory.a_mem_prop",
"Steel.Heap.as_slprop",
"Steel.Memory.a_mem_prop_as_a_heap_prop"
] | [] | false | false | false | false | false | let refine_slprop sl f =
| H.as_slprop (a_mem_prop_as_a_heap_prop sl f) | false |
Steel.Memory.fst | Steel.Memory.full_mem_pred | val full_mem_pred: mem -> prop | val full_mem_pred: mem -> prop | let full_mem_pred (m:mem) = H.full_heap_pred (heap_of_mem m) | {
"file_name": "lib/steel/Steel.Memory.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 60,
"end_line": 349,
"start_col": 0,
"start_line": 349
} | (*
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... | {
"checked_file": "/",
"dependencies": [
"Steel.Preorder.fst.checked",
"Steel.Heap.fsti.checked",
"prims.fst.checked",
"FStar.Witnessed.Core.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Preorder.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
... | [
{
"abbrev": true,
"full_module": "FStar.Witnessed.Core",
"short_module": "W"
},
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": true,
"full_module": "Steel.Heap",
"short_module": "H"
},
{
"abbrev": false,
"full_module": "F... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | m: Steel.Memory.mem -> Prims.prop | Prims.Tot | [
"total"
] | [] | [
"Steel.Memory.mem",
"Steel.Heap.full_heap_pred",
"Steel.Memory.heap_of_mem",
"Prims.prop"
] | [] | false | false | false | true | true | let full_mem_pred (m: mem) =
| H.full_heap_pred (heap_of_mem m) | false |
Steel.Memory.fst | Steel.Memory.lock_store_invariant | val lock_store_invariant (e: inames) (l: lock_store u#a) : slprop u#a | val lock_store_invariant (e: inames) (l: lock_store u#a) : slprop u#a | let rec lock_store_invariant (e:inames) (l:lock_store u#a) : slprop u#a =
let current_addr = L.length l - 1 in
match l with
| [] -> emp
| Invariant p :: tl ->
if current_addr `S.mem` e then
lock_store_invariant e tl
else
p `star` lock_store_invariant e tl | {
"file_name": "lib/steel/Steel.Memory.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 40,
"end_line": 263,
"start_col": 0,
"start_line": 255
} | (*
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... | {
"checked_file": "/",
"dependencies": [
"Steel.Preorder.fst.checked",
"Steel.Heap.fsti.checked",
"prims.fst.checked",
"FStar.Witnessed.Core.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Preorder.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
... | [
{
"abbrev": true,
"full_module": "FStar.Witnessed.Core",
"short_module": "W"
},
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": true,
"full_module": "FStar.Set",
"short_module": "S"
},
{
"abbrev": true,
"full_module": "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... | false | e: Steel.Memory.inames -> l: Steel.Memory.lock_store -> Steel.Memory.slprop | Prims.Tot | [
"total"
] | [] | [
"Steel.Memory.inames",
"Steel.Memory.lock_store",
"Steel.Memory.emp",
"Steel.Heap.slprop",
"Prims.list",
"Steel.Memory.lock_state",
"FStar.Set.mem",
"Steel.Memory.iname",
"FStar.Ghost.reveal",
"FStar.Set.set",
"Steel.Memory.lock_store_invariant",
"Prims.bool",
"Steel.Memory.star",
"Steel.M... | [
"recursion"
] | false | false | false | true | false | let rec lock_store_invariant (e: inames) (l: lock_store u#a) : slprop u#a =
| let current_addr = L.length l - 1 in
match l with
| [] -> emp
| Invariant p :: tl ->
if current_addr `S.mem` e then lock_store_invariant e tl else p `star` (lock_store_invariant e tl) | false |
Steel.Memory.fst | Steel.Memory.star_congruence | val star_congruence (p1 p2 p3 p4:slprop)
: Lemma (requires p1 `equiv` p3 /\ p2 `equiv` p4)
(ensures (p1 `star` p2) `equiv` (p3 `star` p4)) | val star_congruence (p1 p2 p3 p4:slprop)
: Lemma (requires p1 `equiv` p3 /\ p2 `equiv` p4)
(ensures (p1 `star` p2) `equiv` (p3 `star` p4)) | let star_congruence (p1 p2 p3 p4:slprop) =
equiv_heap_iff_equiv_forall ();
H.star_congruence p1 p2 p3 p4 | {
"file_name": "lib/steel/Steel.Memory.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 31,
"end_line": 241,
"start_col": 0,
"start_line": 239
} | (*
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... | {
"checked_file": "/",
"dependencies": [
"Steel.Preorder.fst.checked",
"Steel.Heap.fsti.checked",
"prims.fst.checked",
"FStar.Witnessed.Core.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Preorder.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
... | [
{
"abbrev": true,
"full_module": "Steel.Heap",
"short_module": "H"
},
{
"abbrev": false,
"full_module": "FStar.FunctionalExtensionality",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.FunctionalExtensionality",
"short_module": "F"
},
{
"abbrev": ... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
p1: Steel.Memory.slprop ->
p2: Steel.Memory.slprop ->
p3: Steel.Memory.slprop ->
p4: Steel.Memory.slprop
-> FStar.Pervasives.Lemma (requires Steel.Memory.equiv p1 p3 /\ Steel.Memory.equiv p2 p4)
(ensures Steel.Memory.equiv (Steel.Memory.star p1 p2) (Steel.Memory.star p3 p4)) | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"Steel.Memory.slprop",
"Steel.Heap.star_congruence",
"Prims.unit",
"Steel.Memory.equiv_heap_iff_equiv_forall"
] | [] | true | false | true | false | false | let star_congruence (p1 p2 p3 p4: slprop) =
| equiv_heap_iff_equiv_forall ();
H.star_congruence p1 p2 p3 p4 | false |
Steel.Memory.fst | Steel.Memory.lock_store_evolves | val lock_store_evolves:FStar.Preorder.preorder lock_store | val lock_store_evolves:FStar.Preorder.preorder lock_store | let lock_store_evolves : FStar.Preorder.preorder lock_store =
fun (l1 l2 : lock_store) ->
L.length l2 >= L.length l1 /\
(forall (i:nat{i < L.length l1}).
(lock_i i l1).inv == (lock_i i l2).inv) | {
"file_name": "lib/steel/Steel.Memory.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 46,
"end_line": 278,
"start_col": 0,
"start_line": 274
} | (*
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... | {
"checked_file": "/",
"dependencies": [
"Steel.Preorder.fst.checked",
"Steel.Heap.fsti.checked",
"prims.fst.checked",
"FStar.Witnessed.Core.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Preorder.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
... | [
{
"abbrev": true,
"full_module": "FStar.Witnessed.Core",
"short_module": "W"
},
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": true,
"full_module": "FStar.Set",
"short_module": "S"
},
{
"abbrev": true,
"full_module": "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... | false | FStar.Preorder.preorder Steel.Memory.lock_store | Prims.Tot | [
"total"
] | [] | [
"Steel.Memory.lock_store",
"Prims.l_and",
"Prims.b2t",
"Prims.op_GreaterThanOrEqual",
"FStar.List.Tot.Base.length",
"Steel.Memory.lock_state",
"Prims.l_Forall",
"Prims.nat",
"Prims.op_LessThan",
"Prims.eq2",
"Steel.Heap.slprop",
"Steel.Memory.__proj__Invariant__item__inv",
"Steel.Memory.lock... | [] | false | false | false | true | false | let lock_store_evolves:FStar.Preorder.preorder lock_store =
| fun (l1: lock_store) (l2: lock_store) ->
L.length l2 >= L.length l1 /\
(forall (i: nat{i < L.length l1}). (lock_i i l1).inv == (lock_i i l2).inv) | false |
Steel.Memory.fst | Steel.Memory.impl_intro_gen | val impl_intro_gen (#p #q: Type0) ($prf: (squash p -> Lemma (q))) : Lemma (p ==> q) | val impl_intro_gen (#p #q: Type0) ($prf: (squash p -> Lemma (q))) : Lemma (p ==> q) | let impl_intro_gen (#p: Type0) (#q: Type0) ($prf: (squash p -> Lemma (q )))
: Lemma (p ==> q)
= Classical.impl_intro_gen #p #(fun _ -> q) prf | {
"file_name": "lib/steel/Steel.Memory.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 47,
"end_line": 427,
"start_col": 0,
"start_line": 425
} | (*
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... | {
"checked_file": "/",
"dependencies": [
"Steel.Preorder.fst.checked",
"Steel.Heap.fsti.checked",
"prims.fst.checked",
"FStar.Witnessed.Core.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Preorder.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
... | [
{
"abbrev": true,
"full_module": "FStar.Witnessed.Core",
"short_module": "W"
},
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": true,
"full_module": "FStar.Set",
"short_module": "S"
},
{
"abbrev": true,
"full_module": "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... | false | $prf: (_: Prims.squash p -> FStar.Pervasives.Lemma (ensures q))
-> FStar.Pervasives.Lemma (ensures p ==> q) | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"Prims.squash",
"Prims.unit",
"Prims.l_True",
"Prims.Nil",
"FStar.Pervasives.pattern",
"FStar.Classical.impl_intro_gen",
"Prims.l_imp"
] | [] | false | false | true | false | false | let impl_intro_gen (#p #q: Type0) ($prf: (squash p -> Lemma (q))) : Lemma (p ==> q) =
| Classical.impl_intro_gen #p #(fun _ -> q) prf | false |
Hacl.Spec.Poly1305.Field32xN.Lemmas.fst | Hacl.Spec.Poly1305.Field32xN.Lemmas.load_felem5_4_lemma | val load_felem5_4_lemma: lo:uint64xN 4 -> hi:uint64xN 4 ->
Lemma
(let f = load_felem5_4_compact lo hi in
felem_fits5 f (1, 1, 1, 1, 1) /\
felem_less5 f (pow2 128) /\
feval5 f == createi #Vec.pfelem 4 (fun i -> (uint64xN_v hi).[i] * pow2 64 + (uint64xN_v lo).[i])) | val load_felem5_4_lemma: lo:uint64xN 4 -> hi:uint64xN 4 ->
Lemma
(let f = load_felem5_4_compact lo hi in
felem_fits5 f (1, 1, 1, 1, 1) /\
felem_less5 f (pow2 128) /\
feval5 f == createi #Vec.pfelem 4 (fun i -> (uint64xN_v hi).[i] * pow2 64 + (uint64xN_v lo).[i])) | let load_felem5_4_lemma lo hi =
let f = load_felem5_4_compact lo hi in
assert_norm (pow2 64 * pow2 64 = pow2 128);
assert_norm (pow2 128 < Vec.prime);
let res = createi #Vec.pfelem 4
(fun i -> (uint64xN_v hi).[i] * pow2 64 + (uint64xN_v lo).[i]) in
load_felem5_4_compact_lemma_i lo hi 0;
load_felem5_4_c... | {
"file_name": "code/poly1305/Hacl.Spec.Poly1305.Field32xN.Lemmas.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 25,
"end_line": 741,
"start_col": 0,
"start_line": 730
} | module Hacl.Spec.Poly1305.Field32xN.Lemmas
open Lib.IntTypes
open Lib.IntVector
open Lib.Sequence
open FStar.Mul
open Hacl.Spec.Poly1305.Field32xN
open Hacl.Poly1305.Field32xN.Lemmas0
open Hacl.Poly1305.Field32xN.Lemmas1
open Hacl.Poly1305.Field32xN.Lemmas2
module Vec = Hacl.Spec.Poly1305.Vec
#set-options "--z3rlim... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.IntVector.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Hacl.Spec.Poly1305.Vec.fst.checked",
"Hacl.Spec.Poly1305.Field32xN.fst.checked",
"Hacl.Poly1305.Field32xN.Lemmas2.fst.checked",
"Hacl... | [
{
"abbrev": true,
"full_module": "Hacl.Spec.Poly1305.Vec",
"short_module": "Vec"
},
{
"abbrev": false,
"full_module": "Hacl.Poly1305.Field32xN.Lemmas2",
"short_module": null
},
{
"abbrev": false,
"full_module": "Hacl.Poly1305.Field32xN.Lemmas1",
"short_module": null
},
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | lo: Hacl.Spec.Poly1305.Field32xN.uint64xN 4 -> hi: Hacl.Spec.Poly1305.Field32xN.uint64xN 4
-> FStar.Pervasives.Lemma
(ensures
(let f = Hacl.Spec.Poly1305.Field32xN.Lemmas.load_felem5_4_compact lo hi in
Hacl.Spec.Poly1305.Field32xN.felem_fits5 f (1, 1, 1, 1, 1) /\
Hacl.Spec.Poly1305.Field32xN... | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"Hacl.Spec.Poly1305.Field32xN.uint64xN",
"Lib.Sequence.eq_intro",
"Hacl.Spec.Poly1305.Vec.pfelem",
"Hacl.Spec.Poly1305.Field32xN.feval5",
"Prims.unit",
"Hacl.Spec.Poly1305.Field32xN.Lemmas.load_felem5_4_compact_lemma_i",
"Lib.Sequence.lseq",
"Prims.l_Forall",
"Prims.nat",
"Prims.l_imp",
"Prims.b... | [] | false | false | true | false | false | let load_felem5_4_lemma lo hi =
| let f = load_felem5_4_compact lo hi in
assert_norm (pow2 64 * pow2 64 = pow2 128);
assert_norm (pow2 128 < Vec.prime);
let res =
createi #Vec.pfelem 4 (fun i -> (uint64xN_v hi).[ i ] * pow2 64 + (uint64xN_v lo).[ i ])
in
load_felem5_4_compact_lemma_i lo hi 0;
load_felem5_4_compact_lemma_i lo hi 1;
load_felem5_4_compa... | false |
Steel.Memory.fst | Steel.Memory.extend_lock_store | val extend_lock_store (e: inames) (l: lock_store{e `inames_in` l}) (p: slprop)
: i: iname &
l':
lock_store
{lock_store_invariant e l' == p `star` (lock_store_invariant e l) /\ iname_for_p i p l'} | val extend_lock_store (e: inames) (l: lock_store{e `inames_in` l}) (p: slprop)
: i: iname &
l':
lock_store
{lock_store_invariant e l' == p `star` (lock_store_invariant e l) /\ iname_for_p i p l'} | let extend_lock_store (e:inames) (l:lock_store{e `inames_in` l}) (p:slprop)
: i:iname &
l':lock_store {
lock_store_invariant e l' == p `star` lock_store_invariant e l /\
iname_for_p i p l'
}
= (| L.length l, Invariant p :: l |) | {
"file_name": "lib/steel/Steel.Memory.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 38,
"end_line": 292,
"start_col": 0,
"start_line": 286
} | (*
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... | {
"checked_file": "/",
"dependencies": [
"Steel.Preorder.fst.checked",
"Steel.Heap.fsti.checked",
"prims.fst.checked",
"FStar.Witnessed.Core.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Preorder.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
... | [
{
"abbrev": true,
"full_module": "FStar.Witnessed.Core",
"short_module": "W"
},
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": true,
"full_module": "FStar.Set",
"short_module": "S"
},
{
"abbrev": true,
"full_module": "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... | false |
e: Steel.Memory.inames ->
l: Steel.Memory.lock_store{Steel.Memory.inames_in e l} ->
p: Steel.Memory.slprop
-> Prims.dtuple2 Steel.Memory.iname
(fun i ->
l':
Steel.Memory.lock_store
{ Steel.Memory.lock_store_invariant e l' ==
Steel.Memory.star p (Steel.M... | Prims.Tot | [
"total"
] | [] | [
"Steel.Memory.inames",
"Steel.Memory.lock_store",
"Steel.Memory.inames_in",
"Steel.Memory.slprop",
"Prims.Mkdtuple2",
"Steel.Memory.iname",
"Prims.l_and",
"Prims.eq2",
"Steel.Memory.lock_store_invariant",
"Steel.Memory.star",
"Steel.Memory.iname_for_p",
"FStar.List.Tot.Base.length",
"Steel.M... | [] | false | false | false | false | false | let extend_lock_store (e: inames) (l: lock_store{e `inames_in` l}) (p: slprop)
: i: iname &
l':
lock_store
{lock_store_invariant e l' == p `star` (lock_store_invariant e l) /\ iname_for_p i p l'} =
| (| L.length l, Invariant p :: l |) | false |
Steel.Memory.fst | Steel.Memory.a_mem_prop_as_a_heap_prop | val a_mem_prop_as_a_heap_prop (sl: slprop u#a) (f: a_mem_prop sl) : Tot (H.a_heap_prop u#a) | val a_mem_prop_as_a_heap_prop (sl: slprop u#a) (f: a_mem_prop sl) : Tot (H.a_heap_prop u#a) | let a_mem_prop_as_a_heap_prop
(sl: slprop u#a)
(f: a_mem_prop sl)
: Tot (H.a_heap_prop u#a)
=
let g (h: H.heap u#a) : Tot prop = interp sl (mem_of_heap h) /\ f (mem_of_heap h) in
let phi0 (h0 h1: H.heap u#a) : Lemma
(requires (g h0 /\ H.disjoint h0 h1))
(ensures (g h0 /\ H.disjoint h0 h1 /\ g (H.join h0... | {
"file_name": "lib/steel/Steel.Memory.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 3,
"end_line": 375,
"start_col": 0,
"start_line": 357
} | (*
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... | {
"checked_file": "/",
"dependencies": [
"Steel.Preorder.fst.checked",
"Steel.Heap.fsti.checked",
"prims.fst.checked",
"FStar.Witnessed.Core.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Preorder.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
... | [
{
"abbrev": true,
"full_module": "FStar.Witnessed.Core",
"short_module": "W"
},
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": true,
"full_module": "FStar.Set",
"short_module": "S"
},
{
"abbrev": true,
"full_module": "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... | false | sl: Steel.Memory.slprop -> f: Steel.Memory.a_mem_prop sl -> Steel.Heap.a_heap_prop | Prims.Tot | [
"total"
] | [] | [
"Steel.Memory.slprop",
"Steel.Memory.a_mem_prop",
"Prims.unit",
"FStar.Classical.forall_intro_2",
"Steel.Heap.heap",
"Prims.l_imp",
"Prims.l_and",
"Steel.Heap.disjoint",
"Steel.Heap.join",
"Prims.l_True",
"Prims.squash",
"Prims.Nil",
"FStar.Pervasives.pattern",
"FStar.Classical.move_requir... | [] | false | false | false | false | false | let a_mem_prop_as_a_heap_prop (sl: slprop u#a) (f: a_mem_prop sl) : Tot (H.a_heap_prop u#a) =
| let g (h: H.heap u#a) : Tot prop = interp sl (mem_of_heap h) /\ f (mem_of_heap h) in
let phi0 (h0 h1: H.heap u#a)
: Lemma (requires (g h0 /\ H.disjoint h0 h1))
(ensures (g h0 /\ H.disjoint h0 h1 /\ g (H.join h0 h1))) =
assert (mem_of_heap (H.join h0 h1) == (mem_of_heap h0) `join` (mem_of_heap h1));
interp... | false |
Steel.Memory.fst | Steel.Memory.interp_depends_only_on | val interp_depends_only_on (hp:slprop u#a)
: Lemma
(forall (m0:hmem hp) (m1:mem u#a{disjoint m0 m1}).
interp hp m0 <==> interp hp (join m0 m1)) | val interp_depends_only_on (hp:slprop u#a)
: Lemma
(forall (m0:hmem hp) (m1:mem u#a{disjoint m0 m1}).
interp hp m0 <==> interp hp (join m0 m1)) | let interp_depends_only_on (hp:slprop u#a) = H.interp_depends_only_on hp | {
"file_name": "lib/steel/Steel.Memory.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 72,
"end_line": 355,
"start_col": 0,
"start_line": 355
} | (*
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... | {
"checked_file": "/",
"dependencies": [
"Steel.Preorder.fst.checked",
"Steel.Heap.fsti.checked",
"prims.fst.checked",
"FStar.Witnessed.Core.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Preorder.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
... | [
{
"abbrev": true,
"full_module": "FStar.Witnessed.Core",
"short_module": "W"
},
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": true,
"full_module": "Steel.Heap",
"short_module": "H"
},
{
"abbrev": false,
"full_module": "F... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | hp: Steel.Memory.slprop
-> FStar.Pervasives.Lemma
(ensures
forall (m0: Steel.Memory.hmem hp) (m1: Steel.Memory.mem{Steel.Memory.disjoint m0 m1}).
Steel.Memory.interp hp m0 <==> Steel.Memory.interp hp (Steel.Memory.join m0 m1)) | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"Steel.Memory.slprop",
"Steel.Heap.interp_depends_only_on",
"Prims.unit"
] | [] | true | false | true | false | false | let interp_depends_only_on (hp: slprop u#a) =
| H.interp_depends_only_on hp | false |
Steel.Memory.fst | Steel.Memory.move_invariant | val move_invariant
(e: inames)
(l: lock_store)
(p: slprop)
(i: iname{iname_for_p i p l /\ ~(i `Set.mem` e)})
: Lemma (H.equiv (lock_store_invariant e l) (p `star` (lock_store_invariant (set_add i e) l))) | val move_invariant
(e: inames)
(l: lock_store)
(p: slprop)
(i: iname{iname_for_p i p l /\ ~(i `Set.mem` e)})
: Lemma (H.equiv (lock_store_invariant e l) (p `star` (lock_store_invariant (set_add i e) l))) | let rec move_invariant (e:inames) (l:lock_store) (p:slprop)
(i:iname{iname_for_p i p l /\ ~(i `Set.mem` e)})
: Lemma (H.equiv (lock_store_invariant e l)
(p `star` lock_store_invariant (set_add i e) l))
= let rec aux (i:iname) (m:lock_store)
: Lemma (requires i >= ... | {
"file_name": "lib/steel/Steel.Memory.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 10,
"end_line": 336,
"start_col": 0,
"start_line": 296
} | (*
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... | {
"checked_file": "/",
"dependencies": [
"Steel.Preorder.fst.checked",
"Steel.Heap.fsti.checked",
"prims.fst.checked",
"FStar.Witnessed.Core.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Preorder.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
... | [
{
"abbrev": true,
"full_module": "FStar.Witnessed.Core",
"short_module": "W"
},
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": true,
"full_module": "FStar.Set",
"short_module": "S"
},
{
"abbrev": true,
"full_module": "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... | false |
e: Steel.Memory.inames ->
l: Steel.Memory.lock_store ->
p: Steel.Memory.slprop ->
i:
Steel.Memory.iname
{Steel.Memory.iname_for_p i p l /\ ~(FStar.Set.mem i (FStar.Ghost.reveal e))}
-> FStar.Pervasives.Lemma
(ensures
Steel.Heap.equiv (Steel.Memory.lock_store_invariant e l)
... | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"Steel.Memory.inames",
"Steel.Memory.lock_store",
"Steel.Memory.slprop",
"Steel.Memory.iname",
"Prims.l_and",
"Steel.Memory.iname_for_p",
"Prims.l_not",
"Prims.b2t",
"FStar.Set.mem",
"FStar.Ghost.reveal",
"FStar.Set.set",
"Steel.Heap.slprop",
"Prims.list",
"Steel.Memory.lock_state",
"Pri... | [
"recursion"
] | false | false | true | false | false | let rec move_invariant
(e: inames)
(l: lock_store)
(p: slprop)
(i: iname{iname_for_p i p l /\ ~(i `Set.mem` e)})
: Lemma (H.equiv (lock_store_invariant e l) (p `star` (lock_store_invariant (set_add i e) l))) =
| let rec aux (i: iname) (m: lock_store)
: Lemma (requires i >= L.length m)
(ensures ((lock_store_invariant e m) `H.equiv` (lock_store_invariant (set_add i e) m))) =
match m with
| [] -> ()
| Invariant p :: tl ->
aux i tl;
H.star_congruence p (lock_store_invariant e tl) p (lock_store_invariant (se... | false |
Steel.Memory.fst | Steel.Memory.preserves_frame | val preserves_frame : e: Steel.Memory.inames ->
pre: Steel.Memory.slprop ->
post: Steel.Memory.slprop ->
m0: Steel.Memory.mem ->
m1: Steel.Memory.mem
-> Prims.logical | let preserves_frame (e:inames) (pre post:slprop) (m0 m1:mem) =
forall (frame:slprop).
interp ((pre `star` frame) `star` locks_invariant e m0) m0 ==>
(interp ((post `star` frame) `star` locks_invariant e m1) m1 /\
(forall (f_frame:mprop frame). f_frame (core_mem m0) == f_frame (core_mem m1))) | {
"file_name": "lib/steel/Steel.Memory.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 84,
"end_line": 555,
"start_col": 0,
"start_line": 551
} | (*
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... | {
"checked_file": "/",
"dependencies": [
"Steel.Preorder.fst.checked",
"Steel.Heap.fsti.checked",
"prims.fst.checked",
"FStar.Witnessed.Core.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Preorder.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
... | [
{
"abbrev": true,
"full_module": "Steel.Preorder",
"short_module": "PP"
},
{
"abbrev": true,
"full_module": "FStar.Witnessed.Core",
"short_module": "W"
},
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": true,
"full_module"... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
e: Steel.Memory.inames ->
pre: Steel.Memory.slprop ->
post: Steel.Memory.slprop ->
m0: Steel.Memory.mem ->
m1: Steel.Memory.mem
-> Prims.logical | Prims.Tot | [
"total"
] | [] | [
"Steel.Memory.inames",
"Steel.Memory.slprop",
"Steel.Memory.mem",
"Prims.l_Forall",
"Prims.l_imp",
"Steel.Memory.interp",
"Steel.Memory.star",
"Steel.Memory.locks_invariant",
"Prims.l_and",
"Steel.Memory.mprop",
"Prims.eq2",
"Prims.prop",
"Steel.Memory.core_mem",
"Prims.logical"
] | [] | false | false | false | true | true | let preserves_frame (e: inames) (pre post: slprop) (m0 m1: mem) =
| forall (frame: slprop).
interp ((pre `star` frame) `star` (locks_invariant e m0)) m0 ==>
(interp ((post `star` frame) `star` (locks_invariant e m1)) m1 /\
(forall (f_frame: mprop frame). f_frame (core_mem m0) == f_frame (core_mem m1))) | false | |
Steel.Memory.fst | Steel.Memory.tot_pre_action_nf | val tot_pre_action_nf : fp: Steel.Memory.slprop -> a: Type -> fp': (_: a -> Steel.Memory.slprop) -> Type | let tot_pre_action_nf = tot_pre_action_nf_except S.empty | {
"file_name": "lib/steel/Steel.Memory.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 56,
"end_line": 588,
"start_col": 0,
"start_line": 588
} | (*
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... | {
"checked_file": "/",
"dependencies": [
"Steel.Preorder.fst.checked",
"Steel.Heap.fsti.checked",
"prims.fst.checked",
"FStar.Witnessed.Core.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Preorder.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
... | [
{
"abbrev": true,
"full_module": "Steel.Preorder",
"short_module": "PP"
},
{
"abbrev": true,
"full_module": "FStar.Witnessed.Core",
"short_module": "W"
},
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": true,
"full_module"... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | fp: Steel.Memory.slprop -> a: Type -> fp': (_: a -> Steel.Memory.slprop) -> Type | Prims.Tot | [
"total"
] | [] | [
"Steel.Memory.tot_pre_action_nf_except",
"FStar.Ghost.hide",
"FStar.Set.set",
"Steel.Memory.iname",
"FStar.Set.empty"
] | [] | false | false | false | true | true | let tot_pre_action_nf =
| tot_pre_action_nf_except S.empty | false | |
Steel.Memory.fst | Steel.Memory.with_inv_except | val with_inv_except : m: Steel.Memory.mem -> e: Steel.Memory.inames -> fp: Steel.Memory.slprop -> Prims.prop | let with_inv_except (m:mem) e (fp:slprop) = interp (fp `star` locks_invariant e m) m | {
"file_name": "lib/steel/Steel.Memory.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 84,
"end_line": 663,
"start_col": 0,
"start_line": 663
} | (*
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... | {
"checked_file": "/",
"dependencies": [
"Steel.Preorder.fst.checked",
"Steel.Heap.fsti.checked",
"prims.fst.checked",
"FStar.Witnessed.Core.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Preorder.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
... | [
{
"abbrev": true,
"full_module": "Steel.Preorder",
"short_module": "PP"
},
{
"abbrev": true,
"full_module": "FStar.Witnessed.Core",
"short_module": "W"
},
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": true,
"full_module"... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | m: Steel.Memory.mem -> e: Steel.Memory.inames -> fp: Steel.Memory.slprop -> Prims.prop | Prims.Tot | [
"total"
] | [] | [
"Steel.Memory.mem",
"Steel.Memory.inames",
"Steel.Memory.slprop",
"Steel.Memory.interp",
"Steel.Memory.star",
"Steel.Memory.locks_invariant",
"Prims.prop"
] | [] | false | false | false | true | true | let with_inv_except (m: mem) e (fp: slprop) =
| interp (fp `star` (locks_invariant e m)) m | false | |
Steel.Memory.fst | Steel.Memory.tot_pre_action_nf_except | val tot_pre_action_nf_except : e: Steel.Memory.inames -> fp: Steel.Memory.slprop -> a: Type -> fp': (_: a -> Steel.Memory.slprop)
-> Type | let tot_pre_action_nf_except (e:inames) (fp:slprop u#a) (a:Type u#b) (fp':a -> slprop u#a) =
hmem_with_inv_except e fp ->
(x:a & hmem_with_inv_except e (fp' x)) | {
"file_name": "lib/steel/Steel.Memory.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 40,
"end_line": 586,
"start_col": 0,
"start_line": 584
} | (*
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... | {
"checked_file": "/",
"dependencies": [
"Steel.Preorder.fst.checked",
"Steel.Heap.fsti.checked",
"prims.fst.checked",
"FStar.Witnessed.Core.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Preorder.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
... | [
{
"abbrev": true,
"full_module": "Steel.Preorder",
"short_module": "PP"
},
{
"abbrev": true,
"full_module": "FStar.Witnessed.Core",
"short_module": "W"
},
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": true,
"full_module"... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | e: Steel.Memory.inames -> fp: Steel.Memory.slprop -> a: Type -> fp': (_: a -> Steel.Memory.slprop)
-> Type | Prims.Tot | [
"total"
] | [] | [
"Steel.Memory.inames",
"Steel.Memory.slprop",
"Steel.Memory.hmem_with_inv_except",
"Prims.dtuple2"
] | [] | false | false | false | true | true | let tot_pre_action_nf_except (e: inames) (fp: slprop u#a) (a: Type u#b) (fp': (a -> slprop u#a)) =
| hmem_with_inv_except e fp -> (x: a & hmem_with_inv_except e (fp' x)) | false | |
Steel.Memory.fst | Steel.Memory.linv | val linv : e: Steel.Memory.inames -> m: Steel.Memory.mem -> Steel.Memory.slprop | let linv e (m:mem) = locks_invariant e m | {
"file_name": "lib/steel/Steel.Memory.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 40,
"end_line": 624,
"start_col": 0,
"start_line": 624
} | (*
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... | {
"checked_file": "/",
"dependencies": [
"Steel.Preorder.fst.checked",
"Steel.Heap.fsti.checked",
"prims.fst.checked",
"FStar.Witnessed.Core.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Preorder.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
... | [
{
"abbrev": true,
"full_module": "Steel.Preorder",
"short_module": "PP"
},
{
"abbrev": true,
"full_module": "FStar.Witnessed.Core",
"short_module": "W"
},
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": true,
"full_module"... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | e: Steel.Memory.inames -> m: Steel.Memory.mem -> Steel.Memory.slprop | Prims.Tot | [
"total"
] | [] | [
"Steel.Memory.inames",
"Steel.Memory.mem",
"Steel.Memory.locks_invariant",
"Steel.Memory.slprop"
] | [] | false | false | false | true | false | let linv e (m: mem) =
| locks_invariant e m | false | |
Steel.Memory.fst | Steel.Memory.tot_action_nf | val tot_action_nf : fp: Steel.Memory.slprop -> a: Type -> fp': (_: a -> Steel.Memory.slprop) -> Type | let tot_action_nf = tot_action_nf_except S.empty | {
"file_name": "lib/steel/Steel.Memory.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 48,
"end_line": 622,
"start_col": 0,
"start_line": 622
} | (*
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... | {
"checked_file": "/",
"dependencies": [
"Steel.Preorder.fst.checked",
"Steel.Heap.fsti.checked",
"prims.fst.checked",
"FStar.Witnessed.Core.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Preorder.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
... | [
{
"abbrev": true,
"full_module": "Steel.Preorder",
"short_module": "PP"
},
{
"abbrev": true,
"full_module": "FStar.Witnessed.Core",
"short_module": "W"
},
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": true,
"full_module"... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | fp: Steel.Memory.slprop -> a: Type -> fp': (_: a -> Steel.Memory.slprop) -> Type | Prims.Tot | [
"total"
] | [] | [
"Steel.Memory.tot_action_nf_except",
"FStar.Ghost.hide",
"FStar.Set.set",
"Steel.Memory.iname",
"FStar.Set.empty"
] | [] | false | false | false | true | true | let tot_action_nf =
| tot_action_nf_except S.empty | false | |
Steel.HigherReference.fst | Steel.HigherReference.gather_atomic_raw | val gather_atomic_raw (#a: Type) (#uses: _) (#p0 #p1: perm) (r: ref a) (v0 v1: erased a)
: SteelGhostT (_: unit{v0 == v1 /\ perm_ok (sum_perm p0 p1)})
uses
((pts_to_raw r p0 v0) `star` (pts_to_raw r p1 v1))
(fun _ -> pts_to_raw r (sum_perm p0 p1) v0) | val gather_atomic_raw (#a: Type) (#uses: _) (#p0 #p1: perm) (r: ref a) (v0 v1: erased a)
: SteelGhostT (_: unit{v0 == v1 /\ perm_ok (sum_perm p0 p1)})
uses
((pts_to_raw r p0 v0) `star` (pts_to_raw r p1 v1))
(fun _ -> pts_to_raw r (sum_perm p0 p1) v0) | let gather_atomic_raw (#a:Type) (#uses:_) (#p0 #p1:perm) (r:ref a) (v0:erased a) (v1:erased a)
: SteelGhostT (_:unit{v0==v1 /\ perm_ok (sum_perm p0 p1)}) uses
(pts_to_raw r p0 v0 `star` pts_to_raw r p1 v1)
(fun _ -> pts_to_raw r (sum_perm p0 p1) v0)
=
rewrite_slprop
(pts... | {
"file_name": "lib/steel/Steel.HigherReference.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 19,
"end_line": 289,
"start_col": 0,
"start_line": 272
} | (*
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... | {
"checked_file": "/",
"dependencies": [
"Steel.PCMReference.fsti.checked",
"Steel.PCMFrac.fst.checked",
"Steel.Memory.fsti.checked",
"Steel.Effect.Atomic.fsti.checked",
"Steel.Effect.fsti.checked",
"prims.fst.checked",
"FStar.Real.fsti.checked",
"FStar.Pervasives.Native.fst.checked"... | [
{
"abbrev": true,
"full_module": "Steel.Memory",
"short_module": "Mem"
},
{
"abbrev": true,
"full_module": "Steel.PCMReference",
"short_module": "RP"
},
{
"abbrev": false,
"full_module": "FStar.Real",
"short_module": null
},
{
"abbrev": false,
"full_module": "... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | r: Steel.HigherReference.ref a -> v0: FStar.Ghost.erased a -> v1: FStar.Ghost.erased a
-> Steel.Effect.Atomic.SteelGhostT
(_:
Prims.unit
{v0 == v1 /\ Steel.HigherReference.perm_ok (Steel.FractionalPermission.sum_perm p0 p1)}) | Steel.Effect.Atomic.SteelGhostT | [] | [] | [
"Steel.Memory.inames",
"Steel.FractionalPermission.perm",
"Steel.HigherReference.ref",
"FStar.Ghost.erased",
"Steel.Effect.Atomic.rewrite_slprop",
"Steel.PCMReference.pts_to",
"Steel.PCMFrac.fractional",
"Steel.PCMFrac.pcm_frac",
"FStar.PCM.op",
"FStar.Pervasives.Native.Some",
"FStar.Pervasives.... | [] | false | true | false | false | false | let gather_atomic_raw (#a: Type) (#uses: _) (#p0 #p1: perm) (r: ref a) (v0 v1: erased a)
: SteelGhostT (_: unit{v0 == v1 /\ perm_ok (sum_perm p0 p1)})
uses
((pts_to_raw r p0 v0) `star` (pts_to_raw r p1 v1))
(fun _ -> pts_to_raw r (sum_perm p0 p1) v0) =
| rewrite_slprop (pts_to_raw r p0 v0)
(RP.pts_to r (Ghost.reveal (Some (Ghost.reveal v0, p0))))
(fun _ -> ());
rewrite_slprop (pts_to_raw r p1 v1)
(RP.pts_to r (Ghost.reveal (Some (Ghost.reveal v1, p1))))
(fun _ -> ());
let _ = RP.gather r (Some (Ghost.reveal v0, p0)) (Some (Ghost.reveal v1, p1)) in
rewrite_slpro... | false |
Steel.Memory.fst | Steel.Memory.interp_refine_slprop | val interp_refine_slprop
(sl: slprop u#a)
(f: a_mem_prop sl)
(m: mem u#a)
: Lemma
(interp (refine_slprop sl f) m <==> (interp sl m /\ f m))
[SMTPat (interp (refine_slprop sl f) m)] | val interp_refine_slprop
(sl: slprop u#a)
(f: a_mem_prop sl)
(m: mem u#a)
: Lemma
(interp (refine_slprop sl f) m <==> (interp sl m /\ f m))
[SMTPat (interp (refine_slprop sl f) m)] | let interp_refine_slprop sl f m =
assert ((interp sl m /\ f m) <==> interp sl (core_mem m) /\ f (core_mem m)) | {
"file_name": "lib/steel/Steel.Memory.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 77,
"end_line": 380,
"start_col": 0,
"start_line": 379
} | (*
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... | {
"checked_file": "/",
"dependencies": [
"Steel.Preorder.fst.checked",
"Steel.Heap.fsti.checked",
"prims.fst.checked",
"FStar.Witnessed.Core.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Preorder.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
... | [
{
"abbrev": true,
"full_module": "FStar.Witnessed.Core",
"short_module": "W"
},
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": true,
"full_module": "Steel.Heap",
"short_module": "H"
},
{
"abbrev": false,
"full_module": "F... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | sl: Steel.Memory.slprop -> f: Steel.Memory.a_mem_prop sl -> m: Steel.Memory.mem
-> FStar.Pervasives.Lemma
(ensures
Steel.Memory.interp (Steel.Memory.refine_slprop sl f) m <==> Steel.Memory.interp sl m /\ f m
) [SMTPat (Steel.Memory.interp (Steel.Memory.refine_slprop sl f) m)] | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"Steel.Memory.slprop",
"Steel.Memory.a_mem_prop",
"Steel.Memory.mem",
"Prims._assert",
"Prims.l_iff",
"Prims.l_and",
"Steel.Memory.interp",
"Steel.Memory.core_mem",
"Prims.unit"
] | [] | true | false | true | false | false | let interp_refine_slprop sl f m =
| assert ((interp sl m /\ f m) <==> interp sl (core_mem m) /\ f (core_mem m)) | false |
Steel.Memory.fst | Steel.Memory.h_exists_cong | val h_exists_cong (#a:Type) (p q : a -> slprop)
: Lemma
(requires (forall x. p x `equiv` q x))
(ensures (h_exists p `equiv` h_exists q)) | val h_exists_cong (#a:Type) (p q : a -> slprop)
: Lemma
(requires (forall x. p x `equiv` q x))
(ensures (h_exists p `equiv` h_exists q)) | let h_exists_cong (#a:Type) (p q : a -> slprop)
: Lemma
(requires (forall x. p x `equiv` q x))
(ensures (h_exists p `equiv` h_exists q))
= equiv_heap_iff_equiv_forall ();
H.h_exists_cong p q | {
"file_name": "lib/steel/Steel.Memory.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 25,
"end_line": 488,
"start_col": 0,
"start_line": 483
} | (*
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... | {
"checked_file": "/",
"dependencies": [
"Steel.Preorder.fst.checked",
"Steel.Heap.fsti.checked",
"prims.fst.checked",
"FStar.Witnessed.Core.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Preorder.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
... | [
{
"abbrev": true,
"full_module": "FStar.Witnessed.Core",
"short_module": "W"
},
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": true,
"full_module": "Steel.Heap",
"short_module": "H"
},
{
"abbrev": false,
"full_module": "F... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | p: (_: a -> Steel.Memory.slprop) -> q: (_: a -> Steel.Memory.slprop)
-> FStar.Pervasives.Lemma (requires forall (x: a). Steel.Memory.equiv (p x) (q x))
(ensures Steel.Memory.equiv (Steel.Memory.h_exists p) (Steel.Memory.h_exists q)) | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"Steel.Memory.slprop",
"Steel.Heap.h_exists_cong",
"Prims.unit",
"Steel.Memory.equiv_heap_iff_equiv_forall",
"Prims.l_Forall",
"Steel.Memory.equiv",
"Prims.squash",
"Steel.Memory.h_exists",
"Prims.Nil",
"FStar.Pervasives.pattern"
] | [] | true | false | true | false | false | let h_exists_cong (#a: Type) (p q: (a -> slprop))
: Lemma (requires (forall x. (p x) `equiv` (q x))) (ensures ((h_exists p) `equiv` (h_exists q))) =
| equiv_heap_iff_equiv_forall ();
H.h_exists_cong p q | false |
Steel.Memory.fst | Steel.Memory.intro_h_and | val intro_h_and (p q: slprop) (m:mem)
: Lemma (interp p m /\ interp q m ==> interp (h_and p q) m) | val intro_h_and (p q: slprop) (m:mem)
: Lemma (interp p m /\ interp q m ==> interp (h_and p q) m) | let intro_h_and (p q: slprop) (m:mem) = H.intro_h_and p q (heap_of_mem m) | {
"file_name": "lib/steel/Steel.Memory.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 73,
"end_line": 498,
"start_col": 0,
"start_line": 498
} | (*
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... | {
"checked_file": "/",
"dependencies": [
"Steel.Preorder.fst.checked",
"Steel.Heap.fsti.checked",
"prims.fst.checked",
"FStar.Witnessed.Core.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Preorder.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
... | [
{
"abbrev": true,
"full_module": "FStar.Witnessed.Core",
"short_module": "W"
},
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": true,
"full_module": "Steel.Heap",
"short_module": "H"
},
{
"abbrev": false,
"full_module": "F... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | p: Steel.Memory.slprop -> q: Steel.Memory.slprop -> m: Steel.Memory.mem
-> FStar.Pervasives.Lemma
(ensures
Steel.Memory.interp p m /\ Steel.Memory.interp q m ==>
Steel.Memory.interp (Steel.Memory.h_and p q) m) | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"Steel.Memory.slprop",
"Steel.Memory.mem",
"Steel.Heap.intro_h_and",
"Steel.Memory.heap_of_mem",
"Prims.unit"
] | [] | true | false | true | false | false | let intro_h_and (p q: slprop) (m: mem) =
| H.intro_h_and p q (heap_of_mem m) | false |
Steel.Memory.fst | Steel.Memory.tot_action_nf_except | val tot_action_nf_except : e: Steel.Memory.inames -> fp: Steel.Memory.slprop -> a: Type -> fp': (_: a -> Steel.Memory.slprop)
-> Type | let tot_action_nf_except (e:inames) (fp:slprop u#a) (a:Type u#b) (fp':a -> slprop u#a) =
f:tot_pre_action_nf_except e fp a fp'{ is_frame_preserving f } | {
"file_name": "lib/steel/Steel.Memory.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 64,
"end_line": 620,
"start_col": 0,
"start_line": 619
} | (*
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... | {
"checked_file": "/",
"dependencies": [
"Steel.Preorder.fst.checked",
"Steel.Heap.fsti.checked",
"prims.fst.checked",
"FStar.Witnessed.Core.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Preorder.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
... | [
{
"abbrev": true,
"full_module": "Steel.Preorder",
"short_module": "PP"
},
{
"abbrev": true,
"full_module": "FStar.Witnessed.Core",
"short_module": "W"
},
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": true,
"full_module"... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | e: Steel.Memory.inames -> fp: Steel.Memory.slprop -> a: Type -> fp': (_: a -> Steel.Memory.slprop)
-> Type | Prims.Tot | [
"total"
] | [] | [
"Steel.Memory.inames",
"Steel.Memory.slprop",
"Steel.Memory.tot_pre_action_nf_except",
"Steel.Memory.is_frame_preserving"
] | [] | false | false | false | true | true | let tot_action_nf_except (e: inames) (fp: slprop u#a) (a: Type u#b) (fp': (a -> slprop u#a)) =
| f: tot_pre_action_nf_except e fp a fp' {is_frame_preserving f} | false | |
Steel.Memory.fst | Steel.Memory.sdep | val sdep
(s: slprop u#a)
(f: (hmem s -> Tot (slprop u#a)))
: Tot (slprop u#a) | val sdep
(s: slprop u#a)
(f: (hmem s -> Tot (slprop u#a)))
: Tot (slprop u#a) | let sdep
(s: slprop)
(f: (hmem s -> Tot slprop))
: Tot slprop
=
dep_hprop_is_affine s f;
H.as_slprop (dep_hprop s f) | {
"file_name": "lib/steel/Steel.Memory.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 29,
"end_line": 450,
"start_col": 0,
"start_line": 444
} | (*
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... | {
"checked_file": "/",
"dependencies": [
"Steel.Preorder.fst.checked",
"Steel.Heap.fsti.checked",
"prims.fst.checked",
"FStar.Witnessed.Core.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Preorder.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
... | [
{
"abbrev": true,
"full_module": "FStar.Witnessed.Core",
"short_module": "W"
},
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": true,
"full_module": "Steel.Heap",
"short_module": "H"
},
{
"abbrev": false,
"full_module": "F... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | s: Steel.Memory.slprop -> f: (_: Steel.Memory.hmem s -> Steel.Memory.slprop) -> Steel.Memory.slprop | Prims.Tot | [
"total"
] | [] | [
"Steel.Memory.slprop",
"Steel.Memory.hmem",
"Steel.Heap.as_slprop",
"Steel.Memory.dep_hprop",
"Prims.unit",
"Steel.Memory.dep_hprop_is_affine"
] | [] | false | false | false | false | false | let sdep (s: slprop) (f: (hmem s -> Tot slprop)) : Tot slprop =
| dep_hprop_is_affine s f;
H.as_slprop (dep_hprop s f) | false |
Steel.Memory.fst | Steel.Memory.tot_action_with_frame_except | val tot_action_with_frame_except : e: Steel.Memory.inames -> fp: Steel.Memory.slprop -> a: Type -> fp': (_: a -> Steel.Memory.slprop)
-> Type | let tot_action_with_frame_except
(e:inames)
(fp:slprop u#a)
(a:Type u#b)
(fp':a -> slprop u#a)
= frame:slprop u#a ->
m0:hmem_with_inv_except e (fp `star` frame) ->
Pure (x:a & hmem_with_inv_except e (fp' x `star` frame))
(requires True)
(ensures fun (| x, m1 |) ->
mem_evolves m0 m1... | {
"file_name": "lib/steel/Steel.Memory.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 72,
"end_line": 785,
"start_col": 0,
"start_line": 774
} | (*
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... | {
"checked_file": "/",
"dependencies": [
"Steel.Preorder.fst.checked",
"Steel.Heap.fsti.checked",
"prims.fst.checked",
"FStar.Witnessed.Core.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Preorder.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
... | [
{
"abbrev": true,
"full_module": "Steel.Preorder",
"short_module": "PP"
},
{
"abbrev": true,
"full_module": "FStar.Witnessed.Core",
"short_module": "W"
},
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": true,
"full_module"... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | e: Steel.Memory.inames -> fp: Steel.Memory.slprop -> a: Type -> fp': (_: a -> Steel.Memory.slprop)
-> Type | Prims.Tot | [
"total"
] | [] | [
"Steel.Memory.inames",
"Steel.Memory.slprop",
"Steel.Memory.hmem_with_inv_except",
"Steel.Memory.star",
"Prims.dtuple2",
"Prims.l_True",
"Prims.l_and",
"Steel.Memory.mem_evolves",
"Prims.l_Forall",
"Steel.Memory.mprop",
"Prims.eq2",
"Prims.prop",
"Steel.Memory.core_mem"
] | [] | false | false | false | true | true | let tot_action_with_frame_except (e: inames) (fp: slprop u#a) (a: Type u#b) (fp': (a -> slprop u#a)) =
| frame: slprop u#a -> m0: hmem_with_inv_except e (fp `star` frame)
-> Pure (x: a & hmem_with_inv_except e ((fp' x) `star` frame))
(requires True)
(ensures
fun (| x , m1 |) ->
mem_evolves m0 m1 /\ (forall (mp: mprop frame). mp (core_mem m0) == mp (core_mem m1))) | false | |
Steel.Memory.fst | Steel.Memory.elim_h_exists | val elim_h_exists (#a:_) (p:a -> slprop) (m:mem)
: Lemma (interp (h_exists p) m ==> (exists x. interp (p x) m)) | val elim_h_exists (#a:_) (p:a -> slprop) (m:mem)
: Lemma (interp (h_exists p) m ==> (exists x. interp (p x) m)) | let elim_h_exists (#a:_) (p:a -> slprop) (m:mem) = H.elim_h_exists p (heap_of_mem m) | {
"file_name": "lib/steel/Steel.Memory.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 84,
"end_line": 492,
"start_col": 0,
"start_line": 492
} | (*
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... | {
"checked_file": "/",
"dependencies": [
"Steel.Preorder.fst.checked",
"Steel.Heap.fsti.checked",
"prims.fst.checked",
"FStar.Witnessed.Core.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Preorder.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
... | [
{
"abbrev": true,
"full_module": "FStar.Witnessed.Core",
"short_module": "W"
},
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": true,
"full_module": "Steel.Heap",
"short_module": "H"
},
{
"abbrev": false,
"full_module": "F... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | p: (_: a -> Steel.Memory.slprop) -> m: Steel.Memory.mem
-> FStar.Pervasives.Lemma
(ensures
Steel.Memory.interp (Steel.Memory.h_exists p) m ==>
(exists (x: a). Steel.Memory.interp (p x) m)) | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"Steel.Memory.slprop",
"Steel.Memory.mem",
"Steel.Heap.elim_h_exists",
"Steel.Memory.heap_of_mem",
"Prims.unit"
] | [] | true | false | true | false | false | let elim_h_exists (#a: _) (p: (a -> slprop)) (m: mem) =
| H.elim_h_exists p (heap_of_mem m) | false |
Steel.Memory.fst | Steel.Memory.intro_h_forall | val intro_h_forall (#a:_) (p:a -> slprop) (m:mem)
: Lemma ((forall x. interp (p x) m) ==> interp (h_forall p) m) | val intro_h_forall (#a:_) (p:a -> slprop) (m:mem)
: Lemma ((forall x. interp (p x) m) ==> interp (h_forall p) m) | let intro_h_forall (#a:_) (p:a -> slprop) (m:mem) = H.intro_h_forall p (heap_of_mem m) | {
"file_name": "lib/steel/Steel.Memory.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 86,
"end_line": 494,
"start_col": 0,
"start_line": 494
} | (*
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... | {
"checked_file": "/",
"dependencies": [
"Steel.Preorder.fst.checked",
"Steel.Heap.fsti.checked",
"prims.fst.checked",
"FStar.Witnessed.Core.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Preorder.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
... | [
{
"abbrev": true,
"full_module": "FStar.Witnessed.Core",
"short_module": "W"
},
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": true,
"full_module": "Steel.Heap",
"short_module": "H"
},
{
"abbrev": false,
"full_module": "F... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | p: (_: a -> Steel.Memory.slprop) -> m: Steel.Memory.mem
-> FStar.Pervasives.Lemma
(ensures
(forall (x: a). Steel.Memory.interp (p x) m) ==>
Steel.Memory.interp (Steel.Memory.h_forall p) m) | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"Steel.Memory.slprop",
"Steel.Memory.mem",
"Steel.Heap.intro_h_forall",
"Steel.Memory.heap_of_mem",
"Prims.unit"
] | [] | true | false | true | false | false | let intro_h_forall (#a: _) (p: (a -> slprop)) (m: mem) =
| H.intro_h_forall p (heap_of_mem m) | false |
Steel.Memory.fst | Steel.Memory.dep_hprop_is_affine1 | val dep_hprop_is_affine1 (s: slprop) (f: (hmem s -> Tot slprop)) (h0 h1: H.heap)
: Lemma
((dep_hprop s f h0 /\ H.disjoint h0 h1) ==> (H.disjoint h0 h1 /\ dep_hprop s f (H.join h0 h1))) | val dep_hprop_is_affine1 (s: slprop) (f: (hmem s -> Tot slprop)) (h0 h1: H.heap)
: Lemma
((dep_hprop s f h0 /\ H.disjoint h0 h1) ==> (H.disjoint h0 h1 /\ dep_hprop s f (H.join h0 h1))) | let dep_hprop_is_affine1
(s: slprop)
(f: (hmem s -> Tot slprop))
(h0 h1: H.heap)
: Lemma
((dep_hprop s f h0 /\ H.disjoint h0 h1) ==> (H.disjoint h0 h1 /\ dep_hprop s f (H.join h0 h1)))
= impl_intro_gen (dep_hprop_is_affine0 s f h0 h1) | {
"file_name": "lib/steel/Steel.Memory.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 49,
"end_line": 435,
"start_col": 0,
"start_line": 429
} | (*
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... | {
"checked_file": "/",
"dependencies": [
"Steel.Preorder.fst.checked",
"Steel.Heap.fsti.checked",
"prims.fst.checked",
"FStar.Witnessed.Core.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Preorder.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
... | [
{
"abbrev": true,
"full_module": "FStar.Witnessed.Core",
"short_module": "W"
},
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": true,
"full_module": "FStar.Set",
"short_module": "S"
},
{
"abbrev": true,
"full_module": "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... | false |
s: Steel.Memory.slprop ->
f: (_: Steel.Memory.hmem s -> Steel.Memory.slprop) ->
h0: Steel.Heap.heap ->
h1: Steel.Heap.heap
-> FStar.Pervasives.Lemma
(ensures
Steel.Memory.dep_hprop s f h0 /\ Steel.Heap.disjoint h0 h1 ==>
Steel.Heap.disjoint h0 h1 /\ Steel.Memory.dep_hprop s f (Steel.H... | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"Steel.Memory.slprop",
"Steel.Memory.hmem",
"Steel.Heap.heap",
"Steel.Memory.impl_intro_gen",
"Prims.l_and",
"Steel.Memory.dep_hprop",
"Steel.Heap.disjoint",
"Steel.Heap.join",
"Steel.Memory.dep_hprop_is_affine0",
"Prims.unit",
"Prims.l_True",
"Prims.squash",
"Prims.l_imp",
"Prims.Nil",
... | [] | true | false | true | false | false | let dep_hprop_is_affine1 (s: slprop) (f: (hmem s -> Tot slprop)) (h0 h1: H.heap)
: Lemma
((dep_hprop s f h0 /\ H.disjoint h0 h1) ==> (H.disjoint h0 h1 /\ dep_hprop s f (H.join h0 h1))) =
| impl_intro_gen (dep_hprop_is_affine0 s f h0 h1) | false |
Steel.Memory.fst | Steel.Memory.elim_h_forall | val elim_h_forall (#a:_) (p:a -> slprop) (m:mem) (x:a)
: Lemma (interp (h_forall p) m ==> interp (p x) m) | val elim_h_forall (#a:_) (p:a -> slprop) (m:mem) (x:a)
: Lemma (interp (h_forall p) m ==> interp (p x) m) | let elim_h_forall (#a:_) (p:a -> slprop) (m:mem) (x:a) = H.elim_h_forall p (heap_of_mem m) x | {
"file_name": "lib/steel/Steel.Memory.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 92,
"end_line": 496,
"start_col": 0,
"start_line": 496
} | (*
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... | {
"checked_file": "/",
"dependencies": [
"Steel.Preorder.fst.checked",
"Steel.Heap.fsti.checked",
"prims.fst.checked",
"FStar.Witnessed.Core.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Preorder.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
... | [
{
"abbrev": true,
"full_module": "FStar.Witnessed.Core",
"short_module": "W"
},
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": true,
"full_module": "Steel.Heap",
"short_module": "H"
},
{
"abbrev": false,
"full_module": "F... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | p: (_: a -> Steel.Memory.slprop) -> m: Steel.Memory.mem -> x: a
-> FStar.Pervasives.Lemma
(ensures Steel.Memory.interp (Steel.Memory.h_forall p) m ==> Steel.Memory.interp (p x) m) | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"Steel.Memory.slprop",
"Steel.Memory.mem",
"Steel.Heap.elim_h_forall",
"Steel.Memory.heap_of_mem",
"Prims.unit"
] | [] | true | false | true | false | false | let elim_h_forall (#a: _) (p: (a -> slprop)) (m: mem) (x: a) =
| H.elim_h_forall p (heap_of_mem m) x | false |
Steel.Memory.fst | Steel.Memory.intro_h_exists | val intro_h_exists (#a:_) (x:a) (p:a -> slprop) (m:mem)
: Lemma (interp (p x) m ==> interp (h_exists p) m) | val intro_h_exists (#a:_) (x:a) (p:a -> slprop) (m:mem)
: Lemma (interp (p x) m ==> interp (h_exists p) m) | let intro_h_exists #a x p m = H.intro_h_exists x p (heap_of_mem m) | {
"file_name": "lib/steel/Steel.Memory.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 66,
"end_line": 490,
"start_col": 0,
"start_line": 490
} | (*
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... | {
"checked_file": "/",
"dependencies": [
"Steel.Preorder.fst.checked",
"Steel.Heap.fsti.checked",
"prims.fst.checked",
"FStar.Witnessed.Core.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Preorder.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
... | [
{
"abbrev": true,
"full_module": "FStar.Witnessed.Core",
"short_module": "W"
},
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": true,
"full_module": "Steel.Heap",
"short_module": "H"
},
{
"abbrev": false,
"full_module": "F... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | x: a -> p: (_: a -> Steel.Memory.slprop) -> m: Steel.Memory.mem
-> FStar.Pervasives.Lemma
(ensures Steel.Memory.interp (p x) m ==> Steel.Memory.interp (Steel.Memory.h_exists p) m) | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"Steel.Memory.slprop",
"Steel.Memory.mem",
"Steel.Heap.intro_h_exists",
"Steel.Memory.heap_of_mem",
"Prims.unit"
] | [] | true | false | true | false | false | let intro_h_exists #a x p m =
| H.intro_h_exists x p (heap_of_mem m) | false |
Steel.Memory.fst | Steel.Memory.hheap_of_hmem | val hheap_of_hmem (#fp #e: _) (m: hmem_with_inv_except e fp)
: h: H.hheap (fp `star` (linv e m)) {h `H.free_above_addr` m.ctr} | val hheap_of_hmem (#fp #e: _) (m: hmem_with_inv_except e fp)
: h: H.hheap (fp `star` (linv e m)) {h `H.free_above_addr` m.ctr} | let hheap_of_hmem #fp #e (m:hmem_with_inv_except e fp)
: h:H.hheap (fp `star` linv e m) { h `H.free_above_addr` m.ctr}
= let h = heap_of_mem m in
H.pure_interp (heap_ctr_valid m.ctr (heap_of_mem m)) h;
h | {
"file_name": "lib/steel/Steel.Memory.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 5,
"end_line": 630,
"start_col": 0,
"start_line": 626
} | (*
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... | {
"checked_file": "/",
"dependencies": [
"Steel.Preorder.fst.checked",
"Steel.Heap.fsti.checked",
"prims.fst.checked",
"FStar.Witnessed.Core.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Preorder.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
... | [
{
"abbrev": true,
"full_module": "Steel.Preorder",
"short_module": "PP"
},
{
"abbrev": true,
"full_module": "FStar.Witnessed.Core",
"short_module": "W"
},
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": true,
"full_module"... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | m: Steel.Memory.hmem_with_inv_except e fp
-> h:
Steel.Heap.hheap (Steel.Memory.star fp (Steel.Memory.linv e m))
{Steel.Heap.free_above_addr h (Mkmem?.ctr m)} | Prims.Tot | [
"total"
] | [] | [
"Steel.Memory.slprop",
"Steel.Memory.inames",
"Steel.Memory.hmem_with_inv_except",
"Prims.unit",
"Steel.Heap.pure_interp",
"Steel.Memory.heap_ctr_valid",
"Steel.Memory.__proj__Mkmem__item__ctr",
"Steel.Memory.heap_of_mem",
"Steel.Heap.heap",
"Steel.Heap.hheap",
"Steel.Memory.star",
"Steel.Memo... | [] | false | false | false | false | false | let hheap_of_hmem #fp #e (m: hmem_with_inv_except e fp)
: h: H.hheap (fp `star` (linv e m)) {h `H.free_above_addr` m.ctr} =
| let h = heap_of_mem m in
H.pure_interp (heap_ctr_valid m.ctr (heap_of_mem m)) h;
h | false |
Steel.Memory.fst | Steel.Memory.intro_h_or_left | val intro_h_or_left (p q: slprop) (m:mem)
: Lemma (interp p m ==> interp (h_or p q) m) | val intro_h_or_left (p q: slprop) (m:mem)
: Lemma (interp p m ==> interp (h_or p q) m) | let intro_h_or_left (p q: slprop) (m:mem) = H.intro_h_or_left p q (heap_of_mem m) | {
"file_name": "lib/steel/Steel.Memory.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 81,
"end_line": 502,
"start_col": 0,
"start_line": 502
} | (*
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... | {
"checked_file": "/",
"dependencies": [
"Steel.Preorder.fst.checked",
"Steel.Heap.fsti.checked",
"prims.fst.checked",
"FStar.Witnessed.Core.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Preorder.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
... | [
{
"abbrev": true,
"full_module": "FStar.Witnessed.Core",
"short_module": "W"
},
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": true,
"full_module": "Steel.Heap",
"short_module": "H"
},
{
"abbrev": false,
"full_module": "F... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | p: Steel.Memory.slprop -> q: Steel.Memory.slprop -> m: Steel.Memory.mem
-> FStar.Pervasives.Lemma
(ensures Steel.Memory.interp p m ==> Steel.Memory.interp (Steel.Memory.h_or p q) m) | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"Steel.Memory.slprop",
"Steel.Memory.mem",
"Steel.Heap.intro_h_or_left",
"Steel.Memory.heap_of_mem",
"Prims.unit"
] | [] | true | false | true | false | false | let intro_h_or_left (p q: slprop) (m: mem) =
| H.intro_h_or_left p q (heap_of_mem m) | false |
Steel.Memory.fst | Steel.Memory.elim_h_and | val elim_h_and (p q: slprop) (m:mem)
: Lemma (interp (h_and p q) m ==> (interp p m /\ interp q m)) | val elim_h_and (p q: slprop) (m:mem)
: Lemma (interp (h_and p q) m ==> (interp p m /\ interp q m)) | let elim_h_and (p q: slprop) (m:mem) = H.elim_h_and p q (heap_of_mem m) | {
"file_name": "lib/steel/Steel.Memory.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 71,
"end_line": 500,
"start_col": 0,
"start_line": 500
} | (*
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... | {
"checked_file": "/",
"dependencies": [
"Steel.Preorder.fst.checked",
"Steel.Heap.fsti.checked",
"prims.fst.checked",
"FStar.Witnessed.Core.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Preorder.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
... | [
{
"abbrev": true,
"full_module": "FStar.Witnessed.Core",
"short_module": "W"
},
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": true,
"full_module": "Steel.Heap",
"short_module": "H"
},
{
"abbrev": false,
"full_module": "F... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | p: Steel.Memory.slprop -> q: Steel.Memory.slprop -> m: Steel.Memory.mem
-> FStar.Pervasives.Lemma
(ensures
Steel.Memory.interp (Steel.Memory.h_and p q) m ==>
Steel.Memory.interp p m /\ Steel.Memory.interp q m) | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"Steel.Memory.slprop",
"Steel.Memory.mem",
"Steel.Heap.elim_h_and",
"Steel.Memory.heap_of_mem",
"Prims.unit"
] | [] | true | false | true | false | false | let elim_h_and (p q: slprop) (m: mem) =
| H.elim_h_and p q (heap_of_mem m) | false |
Steel.Memory.fst | Steel.Memory.mem_evolves | val mem_evolves : FStar.Preorder.preorder full_mem | val mem_evolves : FStar.Preorder.preorder full_mem | let mem_evolves =
fun (m0 m1:full_mem) ->
H.heap_evolves (heap_of_mem m0) (heap_of_mem m1) /\
m0.ctr <= m1.ctr /\
lock_store_evolves m0.locks m1.locks | {
"file_name": "lib/steel/Steel.Memory.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 40,
"end_line": 548,
"start_col": 0,
"start_line": 544
} | (*
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... | {
"checked_file": "/",
"dependencies": [
"Steel.Preorder.fst.checked",
"Steel.Heap.fsti.checked",
"prims.fst.checked",
"FStar.Witnessed.Core.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Preorder.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
... | [
{
"abbrev": true,
"full_module": "Steel.Preorder",
"short_module": "PP"
},
{
"abbrev": true,
"full_module": "FStar.Witnessed.Core",
"short_module": "W"
},
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": true,
"full_module"... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | FStar.Preorder.preorder Steel.Memory.full_mem | Prims.Tot | [
"total"
] | [] | [
"Steel.Memory.full_mem",
"Prims.l_and",
"Steel.Heap.heap_evolves",
"Steel.Memory.heap_of_mem",
"Prims.b2t",
"Prims.op_LessThanOrEqual",
"Steel.Memory.__proj__Mkmem__item__ctr",
"Steel.Memory.lock_store_evolves",
"Steel.Memory.__proj__Mkmem__item__locks",
"Prims.logical"
] | [] | false | false | false | true | false | let mem_evolves =
| fun (m0: full_mem) (m1: full_mem) ->
H.heap_evolves (heap_of_mem m0) (heap_of_mem m1) /\ m0.ctr <= m1.ctr /\
lock_store_evolves m0.locks m1.locks | false |
Steel.Memory.fst | Steel.Memory.tot_action_with_frame | val tot_action_with_frame : fp: Steel.Memory.slprop -> a: Type -> fp': (_: a -> Steel.Memory.slprop) -> Type | let tot_action_with_frame = tot_action_with_frame_except S.empty | {
"file_name": "lib/steel/Steel.Memory.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 64,
"end_line": 787,
"start_col": 0,
"start_line": 787
} | (*
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... | {
"checked_file": "/",
"dependencies": [
"Steel.Preorder.fst.checked",
"Steel.Heap.fsti.checked",
"prims.fst.checked",
"FStar.Witnessed.Core.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Preorder.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
... | [
{
"abbrev": true,
"full_module": "Steel.Preorder",
"short_module": "PP"
},
{
"abbrev": true,
"full_module": "FStar.Witnessed.Core",
"short_module": "W"
},
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": true,
"full_module"... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | fp: Steel.Memory.slprop -> a: Type -> fp': (_: a -> Steel.Memory.slprop) -> Type | Prims.Tot | [
"total"
] | [] | [
"Steel.Memory.tot_action_with_frame_except",
"FStar.Ghost.hide",
"FStar.Set.set",
"Steel.Memory.iname",
"FStar.Set.empty"
] | [] | false | false | false | true | true | let tot_action_with_frame =
| tot_action_with_frame_except S.empty | false | |
Steel.Memory.fst | Steel.Memory.dep_hprop_is_affine | val dep_hprop_is_affine (s: slprop) (f: (hmem s -> Tot slprop))
: Lemma (H.heap_prop_is_affine (dep_hprop s f)) | val dep_hprop_is_affine (s: slprop) (f: (hmem s -> Tot slprop))
: Lemma (H.heap_prop_is_affine (dep_hprop s f)) | let dep_hprop_is_affine
(s: slprop)
(f: (hmem s -> Tot slprop))
: Lemma
(H.heap_prop_is_affine (dep_hprop s f))
= Classical.forall_intro_2 (dep_hprop_is_affine1 s f) | {
"file_name": "lib/steel/Steel.Memory.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 53,
"end_line": 442,
"start_col": 0,
"start_line": 437
} | (*
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... | {
"checked_file": "/",
"dependencies": [
"Steel.Preorder.fst.checked",
"Steel.Heap.fsti.checked",
"prims.fst.checked",
"FStar.Witnessed.Core.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Preorder.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
... | [
{
"abbrev": true,
"full_module": "FStar.Witnessed.Core",
"short_module": "W"
},
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": true,
"full_module": "FStar.Set",
"short_module": "S"
},
{
"abbrev": true,
"full_module": "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... | false | s: Steel.Memory.slprop -> f: (_: Steel.Memory.hmem s -> Steel.Memory.slprop)
-> FStar.Pervasives.Lemma (ensures Steel.Heap.heap_prop_is_affine (Steel.Memory.dep_hprop s f)) | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"Steel.Memory.slprop",
"Steel.Memory.hmem",
"FStar.Classical.forall_intro_2",
"Steel.Heap.heap",
"Prims.l_imp",
"Prims.l_and",
"Steel.Memory.dep_hprop",
"Steel.Heap.disjoint",
"Steel.Heap.join",
"Steel.Memory.dep_hprop_is_affine1",
"Prims.unit",
"Prims.l_True",
"Prims.squash",
"Steel.Heap.... | [] | false | false | true | false | false | let dep_hprop_is_affine (s: slprop) (f: (hmem s -> Tot slprop))
: Lemma (H.heap_prop_is_affine (dep_hprop s f)) =
| Classical.forall_intro_2 (dep_hprop_is_affine1 s f) | false |
Steel.Memory.fst | Steel.Memory.elim_wand | val elim_wand (p1 p2: slprop u#a) (m:mem) (m1:mem)
: Lemma ((interp (wand p1 p2) m /\ m `disjoint` m1 /\ interp p1 m1)
==> interp p2 (join m m1)) | val elim_wand (p1 p2: slprop u#a) (m:mem) (m1:mem)
: Lemma ((interp (wand p1 p2) m /\ m `disjoint` m1 /\ interp p1 m1)
==> interp p2 (join m m1)) | let elim_wand (p1 p2: slprop u#a) (m:mem) (m1:mem) = H.elim_wand p1 p2 (heap_of_mem m) (heap_of_mem m1) | {
"file_name": "lib/steel/Steel.Memory.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 103,
"end_line": 534,
"start_col": 0,
"start_line": 534
} | (*
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... | {
"checked_file": "/",
"dependencies": [
"Steel.Preorder.fst.checked",
"Steel.Heap.fsti.checked",
"prims.fst.checked",
"FStar.Witnessed.Core.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Preorder.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
... | [
{
"abbrev": true,
"full_module": "FStar.Witnessed.Core",
"short_module": "W"
},
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": true,
"full_module": "Steel.Heap",
"short_module": "H"
},
{
"abbrev": false,
"full_module": "F... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | p1: Steel.Memory.slprop -> p2: Steel.Memory.slprop -> m: Steel.Memory.mem -> m1: Steel.Memory.mem
-> FStar.Pervasives.Lemma
(ensures
Steel.Memory.interp (Steel.Memory.wand p1 p2) m /\ Steel.Memory.disjoint m m1 /\
Steel.Memory.interp p1 m1 ==>
Steel.Memory.interp p2 (Steel.Memory.join m m1)) | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"Steel.Memory.slprop",
"Steel.Memory.mem",
"Steel.Heap.elim_wand",
"Steel.Memory.heap_of_mem",
"Prims.unit"
] | [] | true | false | true | false | false | let elim_wand (p1 p2: slprop u#a) (m m1: mem) =
| H.elim_wand p1 p2 (heap_of_mem m) (heap_of_mem m1) | false |
Steel.Memory.fst | Steel.Memory.interp_sdep | val interp_sdep
(s: slprop)
(f: (hmem s -> Tot slprop))
(m: mem)
: Lemma
(requires (dep_slprop_is_affine s f))
(ensures (
interp (sdep s f) m <==> (exists m1 m2 . interp s m1 /\ interp (f m1) m2 /\ disjoint m1 m2 /\ join m1 m2 == m)
))
[SMTPat (interp (sdep s f) m)] | val interp_sdep
(s: slprop)
(f: (hmem s -> Tot slprop))
(m: mem)
: Lemma
(requires (dep_slprop_is_affine s f))
(ensures (
interp (sdep s f) m <==> (exists m1 m2 . interp s m1 /\ interp (f m1) m2 /\ disjoint m1 m2 /\ join m1 m2 == m)
))
[SMTPat (interp (sdep s f) m)] | let interp_sdep
(s: slprop)
(f: (hmem s -> Tot slprop))
(m: mem)
: Lemma
(requires (dep_slprop_is_affine s f))
(ensures (
interp (sdep s f) m <==> (exists m1 m2 . interp s m1 /\ interp (f m1) m2 /\ disjoint m1 m2 /\ join m1 m2 == m)
))
=
dep_hprop_is_affine s f;
assert (forall m1 m2 . (interp s m1 /... | {
"file_name": "lib/steel/Steel.Memory.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 4,
"end_line": 481,
"start_col": 0,
"start_line": 452
} | (*
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... | {
"checked_file": "/",
"dependencies": [
"Steel.Preorder.fst.checked",
"Steel.Heap.fsti.checked",
"prims.fst.checked",
"FStar.Witnessed.Core.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Preorder.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
... | [
{
"abbrev": true,
"full_module": "FStar.Witnessed.Core",
"short_module": "W"
},
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": true,
"full_module": "Steel.Heap",
"short_module": "H"
},
{
"abbrev": false,
"full_module": "F... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | s: Steel.Memory.slprop -> f: (_: Steel.Memory.hmem s -> Steel.Memory.slprop) -> m: Steel.Memory.mem
-> FStar.Pervasives.Lemma (requires Steel.Memory.dep_slprop_is_affine s f)
(ensures
Steel.Memory.interp (Steel.Memory.sdep s f) m <==>
(exists (m1: m: Steel.Memory.mem{Steel.Memory.interp s m})
... | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"Steel.Memory.slprop",
"Steel.Memory.hmem",
"Steel.Memory.mem",
"Prims.unit",
"Prims._assert",
"Prims.l_Forall",
"Steel.Heap.heap",
"Steel.Heap.disjoint",
"Prims.l_imp",
"Prims.l_and",
"Steel.Memory.interp",
"Steel.Memory.mem_of_heap",
"Prims.eq2",
"Steel.Heap.join",
"Steel.Memory.__proj... | [] | false | false | true | false | false | let interp_sdep (s: slprop) (f: (hmem s -> Tot slprop)) (m: mem)
: Lemma (requires (dep_slprop_is_affine s f))
(ensures
(interp (sdep s f) m <==>
(exists m1 m2. interp s m1 /\ interp (f m1) m2 /\ disjoint m1 m2 /\ join m1 m2 == m))) =
| dep_hprop_is_affine s f;
assert (forall m1 m2.
(interp s m1 /\ interp (f m1) m2 /\ disjoint m1 m2 /\ join m1 m2 == m) ==>
(interp s (mem_of_heap m1.heap) /\ interp (f (mem_of_heap m1.heap)) (mem_of_heap m2.heap) /\
H.disjoint m1.heap m2.heap /\ H.join m1.heap m2.heap == m.heap));
interp_depends_only... | false |
Steel.Memory.fst | Steel.Memory.elim_h_or | val elim_h_or (p q: slprop) (m:mem)
: Lemma (interp (h_or p q) m ==> (interp p m \/ interp q m)) | val elim_h_or (p q: slprop) (m:mem)
: Lemma (interp (h_or p q) m ==> (interp p m \/ interp q m)) | let elim_h_or (p q: slprop) (m:mem) = H.elim_h_or p q (heap_of_mem m) | {
"file_name": "lib/steel/Steel.Memory.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 69,
"end_line": 506,
"start_col": 0,
"start_line": 506
} | (*
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... | {
"checked_file": "/",
"dependencies": [
"Steel.Preorder.fst.checked",
"Steel.Heap.fsti.checked",
"prims.fst.checked",
"FStar.Witnessed.Core.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Preorder.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
... | [
{
"abbrev": true,
"full_module": "FStar.Witnessed.Core",
"short_module": "W"
},
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": true,
"full_module": "Steel.Heap",
"short_module": "H"
},
{
"abbrev": false,
"full_module": "F... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | p: Steel.Memory.slprop -> q: Steel.Memory.slprop -> m: Steel.Memory.mem
-> FStar.Pervasives.Lemma
(ensures
Steel.Memory.interp (Steel.Memory.h_or p q) m ==>
Steel.Memory.interp p m \/ Steel.Memory.interp q m) | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"Steel.Memory.slprop",
"Steel.Memory.mem",
"Steel.Heap.elim_h_or",
"Steel.Memory.heap_of_mem",
"Prims.unit"
] | [] | true | false | true | false | false | let elim_h_or (p q: slprop) (m: mem) =
| H.elim_h_or p q (heap_of_mem m) | false |
Steel.Memory.fst | Steel.Memory.ac_reasoning_for_m_frame_preserving | val ac_reasoning_for_m_frame_preserving (p q r: slprop u#a) (m: mem u#a)
: Lemma (requires interp ((p `star` q) `star` r) m) (ensures interp (p `star` r) m) | val ac_reasoning_for_m_frame_preserving (p q r: slprop u#a) (m: mem u#a)
: Lemma (requires interp ((p `star` q) `star` r) m) (ensures interp (p `star` r) m) | let ac_reasoning_for_m_frame_preserving
(p q r:slprop u#a) (m:mem u#a)
: Lemma
(requires interp ((p `star` q) `star` r) m)
(ensures interp (p `star` r) m)
= calc (equiv) {
(p `star` q) `star` r;
(equiv) { star_commutative p q;
equiv_extensional_on_star (p `star` q) (q `star` ... | {
"file_name": "lib/steel/Steel.Memory.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 32,
"end_line": 604,
"start_col": 0,
"start_line": 590
} | (*
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... | {
"checked_file": "/",
"dependencies": [
"Steel.Preorder.fst.checked",
"Steel.Heap.fsti.checked",
"prims.fst.checked",
"FStar.Witnessed.Core.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Preorder.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
... | [
{
"abbrev": true,
"full_module": "Steel.Preorder",
"short_module": "PP"
},
{
"abbrev": true,
"full_module": "FStar.Witnessed.Core",
"short_module": "W"
},
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": true,
"full_module"... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | p: Steel.Memory.slprop -> q: Steel.Memory.slprop -> r: Steel.Memory.slprop -> m: Steel.Memory.mem
-> FStar.Pervasives.Lemma
(requires Steel.Memory.interp (Steel.Memory.star (Steel.Memory.star p q) r) m)
(ensures Steel.Memory.interp (Steel.Memory.star p r) m) | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"Steel.Memory.slprop",
"Steel.Memory.mem",
"Steel.Memory.affine_star",
"Steel.Memory.star",
"Prims.unit",
"Prims._assert",
"Steel.Memory.interp",
"FStar.Calc.calc_finish",
"Steel.Memory.equiv",
"Prims.Cons",
"FStar.Preorder.relation",
"Prims.Nil",
"FStar.Calc.calc_step",
"FStar.Calc.calc_i... | [] | false | false | true | false | false | let ac_reasoning_for_m_frame_preserving (p q r: slprop u#a) (m: mem u#a)
: Lemma (requires interp ((p `star` q) `star` r) m) (ensures interp (p `star` r) m) =
| calc (equiv) {
(p `star` q) `star` r;
(equiv) { (star_commutative p q;
equiv_extensional_on_star (p `star` q) (q `star` p) r) }
(q `star` p) `star` r;
(equiv) { star_associative q p r }
q `star` (p `star` r);
};
assert (interp (q `star` (p `star` r)) m);
affine_star q (p `star` r) m | false |
Hacl.Spec.Poly1305.Field32xN.Lemmas.fst | Hacl.Spec.Poly1305.Field32xN.Lemmas.fmul_r4_normalize50 | val fmul_r4_normalize50:
acc:felem5 4
-> r:felem5 4
-> r2:felem5 4
-> r3:felem5 4
-> r4:felem5 4 ->
Pure (felem5 4)
(requires
felem_fits5 acc (3, 3, 3, 3, 3) /\
felem_fits5 r (1, 1, 1, 1, 1) /\
felem_fits5 r2 (2, 2, 2, 2, 2) /\
felem_fits5 r3 (2, 2, 2, 2, 2) /\
felem_fits5 r4 (2, 2, ... | val fmul_r4_normalize50:
acc:felem5 4
-> r:felem5 4
-> r2:felem5 4
-> r3:felem5 4
-> r4:felem5 4 ->
Pure (felem5 4)
(requires
felem_fits5 acc (3, 3, 3, 3, 3) /\
felem_fits5 r (1, 1, 1, 1, 1) /\
felem_fits5 r2 (2, 2, 2, 2, 2) /\
felem_fits5 r3 (2, 2, 2, 2, 2) /\
felem_fits5 r4 (2, 2, ... | let fmul_r4_normalize50 acc fr fr2 fr3 fr4 =
let (r10, r11, r12, r13, r14) = fr in
let (r20, r21, r22, r23, r24) = fr2 in
let (r30, r31, r32, r33, r34) = fr3 in
let (r40, r41, r42, r43, r44) = fr4 in
let (a0, a1, a2, a3, a4) = acc in
let v12120 = vec_interleave_low r20 r10 in
vec_interleave_low_lemma_uin... | {
"file_name": "code/poly1305/Hacl.Spec.Poly1305.Field32xN.Lemmas.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 5,
"end_line": 477,
"start_col": 0,
"start_line": 428
} | module Hacl.Spec.Poly1305.Field32xN.Lemmas
open Lib.IntTypes
open Lib.IntVector
open Lib.Sequence
open FStar.Mul
open Hacl.Spec.Poly1305.Field32xN
open Hacl.Poly1305.Field32xN.Lemmas0
open Hacl.Poly1305.Field32xN.Lemmas1
open Hacl.Poly1305.Field32xN.Lemmas2
module Vec = Hacl.Spec.Poly1305.Vec
#set-options "--z3rlim... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.IntVector.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Hacl.Spec.Poly1305.Vec.fst.checked",
"Hacl.Spec.Poly1305.Field32xN.fst.checked",
"Hacl.Poly1305.Field32xN.Lemmas2.fst.checked",
"Hacl... | [
{
"abbrev": true,
"full_module": "Hacl.Spec.Poly1305.Vec",
"short_module": "Vec"
},
{
"abbrev": false,
"full_module": "Hacl.Poly1305.Field32xN.Lemmas2",
"short_module": null
},
{
"abbrev": false,
"full_module": "Hacl.Poly1305.Field32xN.Lemmas1",
"short_module": null
},
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
acc: Hacl.Spec.Poly1305.Field32xN.felem5 4 ->
r: Hacl.Spec.Poly1305.Field32xN.felem5 4 ->
r2: Hacl.Spec.Poly1305.Field32xN.felem5 4 ->
r3: Hacl.Spec.Poly1305.Field32xN.felem5 4 ->
r4: Hacl.Spec.Poly1305.Field32xN.felem5 4
-> Prims.Pure (Hacl.Spec.Poly1305.Field32xN.felem5 4) | Prims.Pure | [] | [] | [
"Hacl.Spec.Poly1305.Field32xN.felem5",
"Hacl.Spec.Poly1305.Field32xN.uint64xN",
"Prims.unit",
"Hacl.Spec.Poly1305.Field32xN.Lemmas.fmul_r5_fits_lemma",
"Hacl.Spec.Poly1305.Field32xN.Lemmas.fmul_r5_eval_lemma",
"Hacl.Spec.Poly1305.Field32xN.fmul_r5",
"Hacl.Spec.Poly1305.Field32xN.precomp_r5",
"Lib.Sequ... | [] | false | false | false | false | false | let fmul_r4_normalize50 acc fr fr2 fr3 fr4 =
| let r10, r11, r12, r13, r14 = fr in
let r20, r21, r22, r23, r24 = fr2 in
let r30, r31, r32, r33, r34 = fr3 in
let r40, r41, r42, r43, r44 = fr4 in
let a0, a1, a2, a3, a4 = acc in
let v12120 = vec_interleave_low r20 r10 in
vec_interleave_low_lemma_uint64_4 r20 r10;
let v34340 = vec_interleave_low r40 r30 in
vec_interlea... | false |
Steel.Memory.fst | Steel.Memory.frame_related_mems | val frame_related_mems : fp0: Steel.Memory.slprop ->
fp1: Steel.Memory.slprop ->
e: Steel.Memory.inames ->
m0: Steel.Memory.hmem_with_inv_except e fp0 ->
m1: Steel.Memory.hmem_with_inv_except e fp1
-> Prims.logical | let frame_related_mems (fp0 fp1:slprop u#a) e (m0:hmem_with_inv_except e fp0) (m1:hmem_with_inv_except e fp1) =
forall (frame:slprop u#a).
interp ((fp0 `star` frame) `star` linv e m0) m0 ==>
interp ((fp1 `star` frame) `star` linv e m1) m1 /\
mem_evolves m0 m1 /\
(forall (mp:mprop frame). mp ... | {
"file_name": "lib/steel/Steel.Memory.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 69,
"end_line": 909,
"start_col": 0,
"start_line": 904
} | (*
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... | {
"checked_file": "/",
"dependencies": [
"Steel.Preorder.fst.checked",
"Steel.Heap.fsti.checked",
"prims.fst.checked",
"FStar.Witnessed.Core.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Preorder.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
... | [
{
"abbrev": true,
"full_module": "Steel.Preorder",
"short_module": "PP"
},
{
"abbrev": true,
"full_module": "FStar.Witnessed.Core",
"short_module": "W"
},
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": true,
"full_module"... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
fp0: Steel.Memory.slprop ->
fp1: Steel.Memory.slprop ->
e: Steel.Memory.inames ->
m0: Steel.Memory.hmem_with_inv_except e fp0 ->
m1: Steel.Memory.hmem_with_inv_except e fp1
-> Prims.logical | Prims.Tot | [
"total"
] | [] | [
"Steel.Memory.slprop",
"Steel.Memory.inames",
"Steel.Memory.hmem_with_inv_except",
"Prims.l_Forall",
"Prims.l_imp",
"Steel.Memory.interp",
"Steel.Memory.star",
"Steel.Memory.linv",
"Prims.l_and",
"Steel.Memory.mem_evolves",
"Steel.Memory.mprop",
"Prims.eq2",
"Prims.prop",
"Steel.Memory.cor... | [] | false | false | false | false | true | let frame_related_mems
(fp0: slprop u#a)
(fp1: slprop u#a)
e
(m0: hmem_with_inv_except e fp0)
(m1: hmem_with_inv_except e fp1)
=
| forall (frame: slprop u#a).
interp ((fp0 `star` frame) `star` (linv e m0)) m0 ==>
interp ((fp1 `star` frame) `star` (linv e m1)) m1 /\ mem_evolves m0 m1 /\
(forall (mp: mprop frame). mp (core_mem m0) == mp (core_mem m1)) | false | |
Steel.Memory.fst | Steel.Memory.intro_h_or_right | val intro_h_or_right (p q: slprop) (m:mem)
: Lemma (interp q m ==> interp (h_or p q) m) | val intro_h_or_right (p q: slprop) (m:mem)
: Lemma (interp q m ==> interp (h_or p q) m) | let intro_h_or_right (p q: slprop) (m:mem) = H.intro_h_or_right p q (heap_of_mem m) | {
"file_name": "lib/steel/Steel.Memory.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 83,
"end_line": 504,
"start_col": 0,
"start_line": 504
} | (*
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... | {
"checked_file": "/",
"dependencies": [
"Steel.Preorder.fst.checked",
"Steel.Heap.fsti.checked",
"prims.fst.checked",
"FStar.Witnessed.Core.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Preorder.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
... | [
{
"abbrev": true,
"full_module": "FStar.Witnessed.Core",
"short_module": "W"
},
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": true,
"full_module": "Steel.Heap",
"short_module": "H"
},
{
"abbrev": false,
"full_module": "F... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | p: Steel.Memory.slprop -> q: Steel.Memory.slprop -> m: Steel.Memory.mem
-> FStar.Pervasives.Lemma
(ensures Steel.Memory.interp q m ==> Steel.Memory.interp (Steel.Memory.h_or p q) m) | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"Steel.Memory.slprop",
"Steel.Memory.mem",
"Steel.Heap.intro_h_or_right",
"Steel.Memory.heap_of_mem",
"Prims.unit"
] | [] | true | false | true | false | false | let intro_h_or_right (p q: slprop) (m: mem) =
| H.intro_h_or_right p q (heap_of_mem m) | false |
Steel.Memory.fst | Steel.Memory.refined_pre_action | val refined_pre_action : e: Steel.Memory.inames -> fp0: Steel.Memory.slprop -> a: Type -> fp1: (_: a -> Steel.Memory.slprop)
-> Type | let refined_pre_action e (fp0:slprop) (a:Type) (fp1:a -> slprop) =
m0:hmem_with_inv_except e fp0 ->
Pure (x:a &
hmem_with_inv_except e (fp1 x))
(requires True)
(ensures fun (| x, m1 |) ->
frame_related_mems fp0 (fp1 x) e m0 m1) | {
"file_name": "lib/steel/Steel.Memory.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 48,
"end_line": 917,
"start_col": 0,
"start_line": 911
} | (*
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... | {
"checked_file": "/",
"dependencies": [
"Steel.Preorder.fst.checked",
"Steel.Heap.fsti.checked",
"prims.fst.checked",
"FStar.Witnessed.Core.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Preorder.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
... | [
{
"abbrev": true,
"full_module": "Steel.Preorder",
"short_module": "PP"
},
{
"abbrev": true,
"full_module": "FStar.Witnessed.Core",
"short_module": "W"
},
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": true,
"full_module"... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | e: Steel.Memory.inames -> fp0: Steel.Memory.slprop -> a: Type -> fp1: (_: a -> Steel.Memory.slprop)
-> Type | Prims.Tot | [
"total"
] | [] | [
"Steel.Memory.inames",
"Steel.Memory.slprop",
"Steel.Memory.hmem_with_inv_except",
"Prims.dtuple2",
"Prims.l_True",
"Steel.Memory.frame_related_mems"
] | [] | false | false | false | true | true | let refined_pre_action e (fp0: slprop) (a: Type) (fp1: (a -> slprop)) =
| m0: hmem_with_inv_except e fp0
-> Pure (x: a & hmem_with_inv_except e (fp1 x))
(requires True)
(ensures fun (| x , m1 |) -> frame_related_mems fp0 (fp1 x) e m0 m1) | false | |
Steel.Memory.fst | Steel.Memory.hmem_of_hheap | val hmem_of_hheap
(#e: _)
(#fp0 #fp1: slprop)
(m: hmem_with_inv_except e fp0)
(h: H.full_hheap (fp1 `star` (linv e m)) {h `Heap.free_above_addr` m.ctr})
: m1: hmem_with_inv_except e fp1 {(linv e m) `equiv` (linv e m1)} | val hmem_of_hheap
(#e: _)
(#fp0 #fp1: slprop)
(m: hmem_with_inv_except e fp0)
(h: H.full_hheap (fp1 `star` (linv e m)) {h `Heap.free_above_addr` m.ctr})
: m1: hmem_with_inv_except e fp1 {(linv e m) `equiv` (linv e m1)} | let hmem_of_hheap #e (#fp0 #fp1:slprop) (m:hmem_with_inv_except e fp0)
(h:H.full_hheap (fp1 `star` linv e m) {
h `Heap.free_above_addr` m.ctr
})
: m1:hmem_with_inv_except e fp1{linv e m `equiv` linv e m1}
= let m1 : mem = { m with heap = h } in
as... | {
"file_name": "lib/steel/Steel.Memory.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 8,
"end_line": 661,
"start_col": 0,
"start_line": 632
} | (*
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... | {
"checked_file": "/",
"dependencies": [
"Steel.Preorder.fst.checked",
"Steel.Heap.fsti.checked",
"prims.fst.checked",
"FStar.Witnessed.Core.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Preorder.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
... | [
{
"abbrev": true,
"full_module": "Steel.Preorder",
"short_module": "PP"
},
{
"abbrev": true,
"full_module": "FStar.Witnessed.Core",
"short_module": "W"
},
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": true,
"full_module"... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
m: Steel.Memory.hmem_with_inv_except e fp0 ->
h:
Steel.Heap.full_hheap (Steel.Memory.star fp1 (Steel.Memory.linv e m))
{Steel.Heap.free_above_addr h (Mkmem?.ctr m)}
-> m1:
Steel.Memory.hmem_with_inv_except e fp1
{Steel.Memory.equiv (Steel.Memory.linv e m) (Steel.Memory.linv e m1)} | Prims.Tot | [
"total"
] | [] | [
"Steel.Memory.inames",
"Steel.Memory.slprop",
"Steel.Memory.hmem_with_inv_except",
"Steel.Heap.full_hheap",
"Steel.Memory.star",
"Steel.Memory.linv",
"Steel.Heap.free_above_addr",
"Steel.Memory.__proj__Mkmem__item__ctr",
"Prims.unit",
"Prims._assert",
"Steel.Memory.interp",
"Steel.Memory.star_... | [] | false | false | false | false | false | let hmem_of_hheap
#e
(#fp0: slprop)
(#fp1: slprop)
(m: hmem_with_inv_except e fp0)
(h: H.full_hheap (fp1 `star` (linv e m)) {h `Heap.free_above_addr` m.ctr})
: m1: hmem_with_inv_except e fp1 {(linv e m) `equiv` (linv e m1)} =
| let m1:mem = { m with heap = h } in
assert (interp (fp1 `star` (linv e m)) m1);
star_commutative fp1 (linv e m);
assert (interp ((linv e m) `star` fp1) m1);
assert (linv e m1 == (lock_store_invariant e m1.locks) `star` (ctr_validity m1.ctr (heap_of_mem m1))
);
assert (linv e m == (lock_store_invariant e m1.locks) `st... | false |
Steel.Memory.fst | Steel.Memory.intro_wand | val intro_wand (p1 p2: slprop u#a) (m:mem)
: Lemma ((forall m1. m `disjoint` m1 /\ interp p1 m1 ==> interp p2 (join m m1))
==> interp (wand p1 p2) m) | val intro_wand (p1 p2: slprop u#a) (m:mem)
: Lemma ((forall m1. m `disjoint` m1 /\ interp p1 m1 ==> interp p2 (join m m1))
==> interp (wand p1 p2) m) | let intro_wand (p1 p2: slprop u#a) (m:mem) =
introduce
(forall m1. m `disjoint` m1 /\ interp p1 m1 ==> interp p2 (join m m1))
==> interp (wand p1 p2) m
with _. (
assert (forall m1. m `disjoint` m1 /\ interp p1 m1 ==> interp p2 (join m m1));
H.intro_wand p1 p2 (heap_of_mem m);
let h = heap_of_m... | {
"file_name": "lib/steel/Steel.Memory.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 3,
"end_line": 531,
"start_col": 0,
"start_line": 508
} | (*
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... | {
"checked_file": "/",
"dependencies": [
"Steel.Preorder.fst.checked",
"Steel.Heap.fsti.checked",
"prims.fst.checked",
"FStar.Witnessed.Core.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Preorder.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
... | [
{
"abbrev": true,
"full_module": "FStar.Witnessed.Core",
"short_module": "W"
},
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": true,
"full_module": "Steel.Heap",
"short_module": "H"
},
{
"abbrev": false,
"full_module": "F... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | p1: Steel.Memory.slprop -> p2: Steel.Memory.slprop -> m: Steel.Memory.mem
-> FStar.Pervasives.Lemma
(ensures
(forall (m1: Steel.Memory.mem{Steel.Memory.disjoint m m1}).
Steel.Memory.disjoint m m1 /\ Steel.Memory.interp p1 m1 ==>
Steel.Memory.interp p2 (Steel.Memory.join m m1)) ==>
... | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"Steel.Memory.slprop",
"Steel.Memory.mem",
"FStar.Classical.Sugar.implies_intro",
"Prims.l_Forall",
"Steel.Memory.disjoint",
"Prims.l_imp",
"Prims.l_and",
"Steel.Memory.interp",
"Steel.Memory.join",
"Prims.squash",
"Steel.Memory.wand",
"FStar.Classical.Sugar.forall_intro",
"Steel.Heap.heap",... | [] | false | false | true | false | false | let intro_wand (p1 p2: slprop u#a) (m: mem) =
| introduce (forall m1. m `disjoint` m1 /\ interp p1 m1 ==> interp p2 (join m m1)) ==> interp (wand p1
p2)
m
with _. (assert (forall m1. m `disjoint` m1 /\ interp p1 m1 ==> interp p2 (join m m1));
H.intro_wand p1 p2 (heap_of_mem m);
let h = heap_of_mem m in
assert ((forall h1. h `H.disjoint` h1 /\ H.interp ... | false |
Steel.Memory.fst | Steel.Memory.lift_tot_action | val lift_tot_action (#a #e #fp #fp': _) ($f: tot_action_nf_except e fp a fp') (frame: slprop)
: MstTot a e fp fp' frame (fun _ -> True) (fun _ _ _ -> True) | val lift_tot_action (#a #e #fp #fp': _) ($f: tot_action_nf_except e fp a fp') (frame: slprop)
: MstTot a e fp fp' frame (fun _ -> True) (fun _ _ _ -> True) | let lift_tot_action #a #e #fp #fp'
($f:tot_action_nf_except e fp a fp')
(frame:slprop)
: MstTot a e fp fp' frame (fun _ -> True) (fun _ _ _ -> True)
= let m0 = NMSTTotal.get #(full_mem) #_ () in
ac_reasoning_for_m_frame_preserving fp frame (locks_invariant e m0) m0;
assert (interp (fp `star` frame `star... | {
"file_name": "lib/steel/Steel.Memory.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 24,
"end_line": 767,
"start_col": 0,
"start_line": 759
} | (*
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... | {
"checked_file": "/",
"dependencies": [
"Steel.Preorder.fst.checked",
"Steel.Heap.fsti.checked",
"prims.fst.checked",
"FStar.Witnessed.Core.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Preorder.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
... | [
{
"abbrev": true,
"full_module": "Steel.Preorder",
"short_module": "PP"
},
{
"abbrev": true,
"full_module": "FStar.Witnessed.Core",
"short_module": "W"
},
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": true,
"full_module"... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | $f: Steel.Memory.tot_action_nf_except e fp a fp' -> frame: Steel.Memory.slprop
-> Steel.Memory.MstTot a | Steel.Memory.MstTot | [] | [] | [
"Steel.Memory.inames",
"Steel.Memory.slprop",
"Steel.Memory.tot_action_nf_except",
"Steel.Memory.lift_tot_action_nf",
"Prims.unit",
"Prims._assert",
"Steel.Memory.interp",
"Steel.Memory.star",
"Steel.Memory.locks_invariant",
"Steel.Memory.ac_reasoning_for_m_frame_preserving",
"Steel.Memory.full_... | [] | false | true | false | false | false | let lift_tot_action #a #e #fp #fp' ($f: tot_action_nf_except e fp a fp') (frame: slprop)
: MstTot a e fp fp' frame (fun _ -> True) (fun _ _ _ -> True) =
| let m0 = NMSTTotal.get #(full_mem) #_ () in
ac_reasoning_for_m_frame_preserving fp frame (locks_invariant e m0) m0;
assert (interp ((fp `star` frame) `star` (locks_invariant e m0)) m0);
assert (interp (fp `star` (locks_invariant e m0)) m0);
lift_tot_action_nf f | false |
Steel.Memory.fst | Steel.Memory.as_hprop | val as_hprop (frame: slprop) (mp: mprop frame)
: hp: H.hprop frame {forall m. mp (core_mem m) == hp (heap_of_mem m)} | val as_hprop (frame: slprop) (mp: mprop frame)
: hp: H.hprop frame {forall m. mp (core_mem m) == hp (heap_of_mem m)} | let as_hprop (frame:slprop) (mp:mprop frame)
: hp:H.hprop frame{forall m. mp (core_mem m) == hp (heap_of_mem m)}
= let f = fun h -> mp (mem_of_heap h) in
assert (forall m. mp (core_mem m) == f (heap_of_mem m));
let aux (m0:H.hheap frame) (m1:H.heap{H.disjoint m0 m1})
: Lemma
(ensur... | {
"file_name": "lib/steel/Steel.Memory.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 7,
"end_line": 676,
"start_col": 0,
"start_line": 666
} | (*
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... | {
"checked_file": "/",
"dependencies": [
"Steel.Preorder.fst.checked",
"Steel.Heap.fsti.checked",
"prims.fst.checked",
"FStar.Witnessed.Core.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Preorder.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
... | [
{
"abbrev": true,
"full_module": "Steel.Preorder",
"short_module": "PP"
},
{
"abbrev": true,
"full_module": "FStar.Witnessed.Core",
"short_module": "W"
},
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": true,
"full_module"... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | frame: Steel.Memory.slprop -> mp: Steel.Memory.mprop frame
-> hp:
Steel.Heap.hprop frame
{ forall (m: Steel.Memory.mem).
mp (Steel.Memory.core_mem m) == hp (Steel.Memory.heap_of_mem m) } | Prims.Tot | [
"total"
] | [] | [
"Steel.Memory.slprop",
"Steel.Memory.mprop",
"Steel.Heap.hheap",
"Steel.Heap.heap",
"Steel.Heap.disjoint",
"Prims.unit",
"Prims.l_True",
"Prims.squash",
"Prims.eq2",
"Steel.Memory.mem",
"Steel.Memory.mem_of_heap",
"Steel.Heap.join",
"Steel.Memory.join",
"Prims.Cons",
"FStar.Pervasives.pa... | [] | false | false | false | false | false | let as_hprop (frame: slprop) (mp: mprop frame)
: hp: H.hprop frame {forall m. mp (core_mem m) == hp (heap_of_mem m)} =
| let f = fun h -> mp (mem_of_heap h) in
assert (forall m. mp (core_mem m) == f (heap_of_mem m));
let aux (m0: H.hheap frame) (m1: H.heap{H.disjoint m0 m1})
: Lemma (ensures (mem_of_heap (H.join m0 m1) == join (mem_of_heap m0) (mem_of_heap m1)))
[SMTPat ()] =
()
in
f | false |
Steel.Memory.fst | Steel.Memory.is_frame_preserving | val is_frame_preserving : f: Steel.Memory.tot_pre_action_nf_except e fp a fp' -> Prims.logical | let is_frame_preserving
(#e:inames)
(#a:Type u#b)
(#fp:slprop u#a)
(#fp':a -> slprop u#a)
(f:tot_pre_action_nf_except e fp a fp') =
forall (frame:slprop u#a) (m0:hmem_with_inv_except e (fp `star` frame)).
(ac_reasoning_for_m_frame_preserving fp frame (locks_invariant e m0) m0;
let (| x, m1 |) = f m... | {
"file_name": "lib/steel/Steel.Memory.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 69,
"end_line": 617,
"start_col": 0,
"start_line": 606
} | (*
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... | {
"checked_file": "/",
"dependencies": [
"Steel.Preorder.fst.checked",
"Steel.Heap.fsti.checked",
"prims.fst.checked",
"FStar.Witnessed.Core.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Preorder.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
... | [
{
"abbrev": true,
"full_module": "Steel.Preorder",
"short_module": "PP"
},
{
"abbrev": true,
"full_module": "FStar.Witnessed.Core",
"short_module": "W"
},
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": true,
"full_module"... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | f: Steel.Memory.tot_pre_action_nf_except e fp a fp' -> Prims.logical | Prims.Tot | [
"total"
] | [] | [
"Steel.Memory.inames",
"Steel.Memory.slprop",
"Steel.Memory.tot_pre_action_nf_except",
"Prims.l_Forall",
"Steel.Memory.hmem_with_inv_except",
"Steel.Memory.star",
"Prims.l_and",
"Steel.Memory.interp",
"Steel.Memory.locks_invariant",
"Steel.Memory.mem_evolves",
"Steel.Memory.mprop",
"Prims.eq2"... | [] | false | false | false | false | true | let is_frame_preserving
(#e: inames)
(#a: Type u#b)
(#fp: slprop u#a)
(#fp': (a -> slprop u#a))
(f: tot_pre_action_nf_except e fp a fp')
=
| forall (frame: slprop u#a) (m0: hmem_with_inv_except e (fp `star` frame)).
(ac_reasoning_for_m_frame_preserving fp frame (locks_invariant e m0) m0;
let (| x , m1 |) = f m0 in
interp (((fp' x) `star` frame) `star` (locks_invariant e m1)) m1 /\ mem_evolves m0 m1 /\
(forall (mp: mprop frame). mp (core_mem m0... | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.