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
Tej Chajed
iris
Commits
dcfe93aa
Commit
dcfe93aa
authored
9 years ago
by
Robbert Krebbers
Browse files
Options
Downloads
Plain Diff
Merge branch 'master' of gitlab.mpi-sws.org:FP/iris-coq
parents
dcc164e3
b00233e4
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
algebra/dra.v
+15
-1
15 additions, 1 deletion
algebra/dra.v
algebra/sts.v
+5
-14
5 additions, 14 deletions
algebra/sts.v
program_logic/sts.v
+10
-9
10 additions, 9 deletions
program_logic/sts.v
with
30 additions
and
24 deletions
algebra/dra.v
+
15
−
1
View file @
dcfe93aa
...
...
@@ -131,10 +131,24 @@ Proof.
intuition
eauto
10
using
dra_disjoint_minus
,
dra_op_minus
.
Qed
.
Definition
validityRA
:
cmraT
:=
discreteRA
validity_ra
.
Definition
validity_update
(
x
y
:
validityRA
)
:
Lemma
validity_update
(
x
y
:
validityRA
)
:
(
∀
z
,
✓
x
→
✓
z
→
validity_car
x
⊥
z
→
✓
y
∧
validity_car
y
⊥
z
)
→
x
~~>
y
.
Proof
.
intros
Hxy
.
apply
discrete_update
.
intros
z
(?
&
?
&
?);
split_ands'
;
try
eapply
Hxy
;
eauto
.
Qed
.
Lemma
to_validity_valid
(
x
:
A
)
:
✓
to_validity
x
→
✓
x
.
Proof
.
intros
.
done
.
Qed
.
Lemma
to_validity_op
(
x
y
:
A
)
:
✓
x
→
✓
y
→
(
✓
(
x
⋅
y
)
→
x
⊥
y
)
→
to_validity
(
x
⋅
y
)
≡
to_validity
x
⋅
to_validity
y
.
Proof
.
intros
Hvalx
Hvaly
Hdisj
.
split
;
[
split
|
done
]
.
-
simpl
.
auto
.
-
simpl
.
intros
(_
&
_
&
?)
.
auto
using
dra_op_valid
,
to_validity_valid
.
Qed
.
End
dra
.
This diff is collapsed.
Click to expand it.
algebra/sts.v
+
5
−
14
View file @
dcfe93aa
...
...
@@ -333,22 +333,13 @@ Lemma sts_op_auth_frag_up s T :
Proof
.
intros
;
apply
sts_op_auth_frag
;
auto
using
elem_of_up
,
closed_up
.
Qed
.
Lemma
sts_op_frag
S1
S2
T1
T2
:
T1
∪
T2
⊆
∅
→
sts
.
closed
S1
T1
→
sts
.
closed
S2
T2
→
T1
∩
T2
⊆
∅
→
sts
.
closed
S1
T1
→
sts
.
closed
S2
T2
→
sts_frag
(
S1
∩
S2
)
(
T1
∪
T2
)
≡
sts_frag
S1
T1
⋅
sts_frag
S2
T2
.
Proof
.
(* Somehow I feel like a very similar proof muts have happened above, when
proving the DRA axioms. After all, we are just reflecting the operation here. *)
intros
HT
HS1
HS2
;
split
;
[
split
|
constructor
;
solve_elem_of
];
simpl
.
-
intros
;
split_ands
;
try
done
;
[]
.
constructor
;
last
solve_elem_of
.
by
eapply
closed_ne
.
-
intros
(_
&
_
&
H
)
.
inversion_clear
H
.
constructor
;
first
done
.
+
move
=>
s
/
elem_of_intersection
[
/
(
closed_disjoint
_
_
HS1
)
Hs1
/
(
closed_disjoint
_
_
HS2
)
Hs2
]
.
solve_elem_of
+
Hs1
Hs2
.
+
move
=>
s1
s2
/
elem_of_intersection
[
Hs1
Hs2
]
Hstep
.
apply
elem_of_intersection
.
split
;
eapply
closed_step
;
eauto
;
[|];
eapply
framestep_mono
,
Hstep
;
done
||
solve_elem_of
.
intros
HT
HS1
HS2
.
rewrite
/
sts_frag
.
(* FIXME why does rewrite not work?? *)
etransitivity
;
last
eapply
to_validity_op
;
try
done
;
[]
.
intros
Hval
.
constructor
;
last
solve_elem_of
.
eapply
closed_ne
,
Hval
.
Qed
.
(** Frame preserving updates *)
...
...
This diff is collapsed.
Click to expand it.
program_logic/sts.v
+
10
−
9
View file @
dcfe93aa
...
...
@@ -53,18 +53,19 @@ Section sts.
(* The same rule as implication does *not* hold, as could be shown using
sts_frag_included. *)
Lemma
sts_ownS_weaken
E
γ
S1
S2
T
:
S1
⊆
S2
→
sts
.
closed
S2
T
→
sts_ownS
γ
S1
T
⊑
pvs
E
E
(
sts_ownS
γ
S2
T
)
.
Proof
.
intros
.
by
apply
own_update
,
sts_update_frag
.
Qed
.
Lemma
sts_ownS_weaken
E
γ
S1
S2
T
1
T2
:
T1
≡
T2
→
S1
⊆
S2
→
sts
.
closed
S2
T
2
→
sts_ownS
γ
S1
T
1
⊑
pvs
E
E
(
sts_ownS
γ
S2
T
2
)
.
Proof
.
intros
->
?
?
.
by
apply
own_update
,
sts_update_frag
.
Qed
.
Lemma
sts_own_weaken
E
γ
s
S
T
:
s
∈
S
→
sts
.
closed
S
T
→
sts_own
γ
s
T
⊑
pvs
E
E
(
sts_ownS
γ
S
T
)
.
Proof
.
intros
.
by
apply
own_update
,
sts_update_frag_up
.
Qed
.
Lemma
sts_own_weaken
E
γ
s
S
T1
T2
:
T1
≡
T2
→
s
∈
S
→
sts
.
closed
S
T2
→
sts_own
γ
s
T1
⊑
pvs
E
E
(
sts_ownS
γ
S
T2
)
.
(* FIXME for some reason, using "->" instead of "<-" does not work? *)
Proof
.
intros
<-
?
?
.
by
apply
own_update
,
sts_update_frag_up
.
Qed
.
Lemma
sts_ownS_op
γ
S1
S2
T1
T2
:
T1
∪
T2
⊆
∅
→
sts
.
closed
S1
T1
→
sts
.
closed
S2
T2
→
T1
∩
T2
⊆
∅
→
sts
.
closed
S1
T1
→
sts
.
closed
S2
T2
→
sts_ownS
γ
(
S1
∩
S2
)
(
T1
∪
T2
)
≡
(
sts_ownS
γ
S1
T1
★
sts_ownS
γ
S2
T2
)
%
I
.
Proof
.
intros
.
by
rewrite
/
sts_ownS
-
own_op
sts_op_frag
.
Qed
.
...
...
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