Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
Iris
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Abhishek Anand
Iris
Commits
1d2149cc
Commit
1d2149cc
authored
5 years ago
by
Ralf Jung
Browse files
Options
Downloads
Patches
Plain Diff
save some lines and organize
parent
11148461
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
theories/base_logic/lib/own.v
+9
-14
9 additions, 14 deletions
theories/base_logic/lib/own.v
with
9 additions
and
14 deletions
theories/base_logic/lib/own.v
+
9
−
14
View file @
1d2149cc
...
@@ -161,12 +161,6 @@ Proof.
...
@@ -161,12 +161,6 @@ Proof.
-
apply
exist_elim
=>
m
;
apply
pure_elim_l
=>
-
[
γ
[
Hfresh
->
]]
.
-
apply
exist_elim
=>
m
;
apply
pure_elim_l
=>
-
[
γ
[
Hfresh
->
]]
.
by
rewrite
!
own_eq
/
own_def
-
(
exist_intro
γ
)
pure_True
//
left_id
.
by
rewrite
!
own_eq
/
own_def
-
(
exist_intro
γ
)
pure_True
//
left_id
.
Qed
.
Qed
.
Lemma
own_alloc_strong
a
(
P
:
gname
→
Prop
)
:
pred_infinite
P
→
✓
a
→
(|
==>
∃
γ
,
⌜
P
γ
⌝
∧
own
γ
a
)
%
I
.
Proof
.
intros
HP
Ha
.
eapply
own_alloc_strong_dep
with
(
f
:=
λ
_,
a
);
eauto
.
Qed
.
Lemma
own_alloc_cofinite_dep
(
f
:
gname
→
A
)
(
G
:
gset
gname
)
:
Lemma
own_alloc_cofinite_dep
(
f
:
gname
→
A
)
(
G
:
gset
gname
)
:
(
∀
γ
,
γ
∉
G
→
✓
(
f
γ
))
→
(|
==>
∃
γ
,
⌜
γ
∉
G
⌝
∧
own
γ
(
f
γ
))
%
I
.
(
∀
γ
,
γ
∉
G
→
✓
(
f
γ
))
→
(|
==>
∃
γ
,
⌜
γ
∉
G
⌝
∧
own
γ
(
f
γ
))
%
I
.
Proof
.
Proof
.
...
@@ -176,21 +170,22 @@ Proof.
...
@@ -176,21 +170,22 @@ Proof.
intros
E
.
set
(
i
:=
fresh
(
G
∪
E
))
.
intros
E
.
set
(
i
:=
fresh
(
G
∪
E
))
.
exists
i
.
apply
not_elem_of_union
,
is_fresh
.
exists
i
.
apply
not_elem_of_union
,
is_fresh
.
Qed
.
Qed
.
Lemma
own_alloc_cofinite
a
(
G
:
gset
gname
)
:
✓
a
→
(|
==>
∃
γ
,
⌜
γ
∉
G
⌝
∧
own
γ
a
)
%
I
.
Proof
.
intros
Ha
.
eapply
own_alloc_cofinite_dep
with
(
f
:=
λ
_,
a
);
eauto
.
Qed
.
Lemma
own_alloc_dep
(
f
:
gname
→
A
)
:
Lemma
own_alloc_dep
(
f
:
gname
→
A
)
:
(
∀
γ
,
✓
(
f
γ
))
→
(|
==>
∃
γ
,
own
γ
(
f
γ
))
%
I
.
(
∀
γ
,
✓
(
f
γ
))
→
(|
==>
∃
γ
,
own
γ
(
f
γ
))
%
I
.
Proof
.
Proof
.
intros
Ha
.
rewrite
/
uPred_valid
/
bi_emp_valid
(
own_alloc_cofinite_dep
f
∅
)
//
;
[]
.
intros
Ha
.
rewrite
/
uPred_valid
/
bi_emp_valid
(
own_alloc_cofinite_dep
f
∅
)
//
;
[]
.
apply
bupd_mono
,
exist_mono
=>?
.
eauto
using
and_elim_r
.
apply
bupd_mono
,
exist_mono
=>?
.
eauto
using
and_elim_r
.
Qed
.
Qed
.
Lemma
own_alloc_strong
a
(
P
:
gname
→
Prop
)
:
pred_infinite
P
→
✓
a
→
(|
==>
∃
γ
,
⌜
P
γ
⌝
∧
own
γ
a
)
%
I
.
Proof
.
intros
HP
Ha
.
eapply
own_alloc_strong_dep
with
(
f
:=
λ
_,
a
);
eauto
.
Qed
.
Lemma
own_alloc_cofinite
a
(
G
:
gset
gname
)
:
✓
a
→
(|
==>
∃
γ
,
⌜
γ
∉
G
⌝
∧
own
γ
a
)
%
I
.
Proof
.
intros
Ha
.
eapply
own_alloc_cofinite_dep
with
(
f
:=
λ
_,
a
);
eauto
.
Qed
.
Lemma
own_alloc
a
:
✓
a
→
(|
==>
∃
γ
,
own
γ
a
)
%
I
.
Lemma
own_alloc
a
:
✓
a
→
(|
==>
∃
γ
,
own
γ
a
)
%
I
.
Proof
.
Proof
.
intros
Ha
.
eapply
own_alloc_dep
with
(
f
:=
λ
_,
a
);
eauto
.
Qed
.
intros
Ha
.
eapply
own_alloc_dep
with
(
f
:=
λ
_,
a
);
eauto
.
Qed
.
(** ** Frame preserving updates *)
(** ** Frame preserving updates *)
Lemma
own_updateP
P
γ
a
:
a
~~>:
P
→
own
γ
a
==∗
∃
a'
,
⌜
P
a'
⌝
∧
own
γ
a'
.
Lemma
own_updateP
P
γ
a
:
a
~~>:
P
→
own
γ
a
==∗
∃
a'
,
⌜
P
a'
⌝
∧
own
γ
a'
.
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment