Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Iris
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Monitor
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
Pierre Roux
Iris
Commits
2e07f003
Commit
2e07f003
authored
3 years ago
by
Ralf Jung
Browse files
Options
Downloads
Patches
Plain Diff
rename the new dfrac_agree update lemmas for consistency
parent
f85824ee
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
iris/algebra/lib/dfrac_agree.v
+4
-4
4 additions, 4 deletions
iris/algebra/lib/dfrac_agree.v
iris/base_logic/lib/ghost_var.v
+1
-1
1 addition, 1 deletion
iris/base_logic/lib/ghost_var.v
with
5 additions
and
5 deletions
iris/algebra/lib/dfrac_agree.v
+
4
−
4
View file @
2e07f003
...
@@ -101,7 +101,7 @@ Section lemmas.
...
@@ -101,7 +101,7 @@ Section lemmas.
(** While [cmra_update_exclusive] takes care of most updates, it is not sufficient
(** While [cmra_update_exclusive] takes care of most updates, it is not sufficient
for this one since there is no abstraction-preserving way to rewrite
for this one since there is no abstraction-preserving way to rewrite
[to_dfrac_agree d1 v1 ⋅ to_dfrac_agree d2 v2] into something simpler. *)
[to_dfrac_agree d1 v1 ⋅ to_dfrac_agree d2 v2] into something simpler. *)
Lemma
to_
dfrac_agree_update_2
d1
d2
a1
a2
a'
:
Lemma
dfrac_agree_update_2
d1
d2
a1
a2
a'
:
d1
⋅
d2
=
DfracOwn
1
→
d1
⋅
d2
=
DfracOwn
1
→
to_dfrac_agree
d1
a1
⋅
to_dfrac_agree
d2
a2
~~>
to_dfrac_agree
d1
a1
⋅
to_dfrac_agree
d2
a2
~~>
to_dfrac_agree
d1
a'
⋅
to_dfrac_agree
d2
a'
.
to_dfrac_agree
d1
a'
⋅
to_dfrac_agree
d2
a'
.
...
@@ -110,13 +110,13 @@ Section lemmas.
...
@@ -110,13 +110,13 @@ Section lemmas.
apply
cmra_update_exclusive
.
apply
cmra_update_exclusive
.
rewrite
dfrac_agree_op_valid
Hq
//.
rewrite
dfrac_agree_op_valid
Hq
//.
Qed
.
Qed
.
Lemma
to_
frac_agree_update_2
q1
q2
a1
a2
a'
:
Lemma
frac_agree_update_2
q1
q2
a1
a2
a'
:
(
q1
+
q2
=
1
)
%
Qp
→
(
q1
+
q2
=
1
)
%
Qp
→
to_frac_agree
q1
a1
⋅
to_frac_agree
q2
a2
~~>
to_frac_agree
q1
a1
⋅
to_frac_agree
q2
a2
~~>
to_frac_agree
q1
a'
⋅
to_frac_agree
q2
a'
.
to_frac_agree
q1
a'
⋅
to_frac_agree
q2
a'
.
Proof
.
intros
Hq
.
apply
to_
dfrac_agree_update_2
.
rewrite
dfrac_op_own
Hq
//.
Qed
.
Proof
.
intros
Hq
.
apply
dfrac_agree_update_2
.
rewrite
dfrac_op_own
Hq
//.
Qed
.
Lemma
to_
dfrac_agree_persist
d
a
:
Lemma
dfrac_agree_persist
d
a
:
to_dfrac_agree
d
a
~~>
to_dfrac_agree
DfracDiscarded
a
.
to_dfrac_agree
d
a
~~>
to_dfrac_agree
DfracDiscarded
a
.
Proof
.
Proof
.
rewrite
/
to_dfrac_agree
.
apply
prod_update
;
last
done
.
rewrite
/
to_dfrac_agree
.
apply
prod_update
;
last
done
.
...
...
This diff is collapsed.
Click to expand it.
iris/base_logic/lib/ghost_var.v
+
1
−
1
View file @
2e07f003
...
@@ -79,7 +79,7 @@ Section lemmas.
...
@@ -79,7 +79,7 @@ Section lemmas.
ghost_var
γ
q1
a1
-∗
ghost_var
γ
q2
a2
==∗
ghost_var
γ
q1
b
∗
ghost_var
γ
q2
b
.
ghost_var
γ
q1
a1
-∗
ghost_var
γ
q2
a2
==∗
ghost_var
γ
q1
b
∗
ghost_var
γ
q2
b
.
Proof
.
Proof
.
intros
Hq
.
unseal
.
rewrite
-
own_op
.
iApply
own_update_2
.
intros
Hq
.
unseal
.
rewrite
-
own_op
.
iApply
own_update_2
.
apply
to_
frac_agree_update_2
.
done
.
apply
frac_agree_update_2
.
done
.
Qed
.
Qed
.
Lemma
ghost_var_update_halves
b
γ
a1
a2
:
Lemma
ghost_var_update_halves
b
γ
a1
a2
:
ghost_var
γ
(
1
/
2
)
a1
-∗
ghost_var
γ
(
1
/
2
)
a1
-∗
...
...
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