Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Glen Mével
Iris
Commits
2e07f003
Commit
2e07f003
authored
Dec 17, 2021
by
Ralf Jung
Browse files
rename the new dfrac_agree update lemmas for consistency
parent
f85824ee
Changes
2
Hide whitespace changes
Inline
Side-by-side
iris/algebra/lib/dfrac_agree.v
View file @
2e07f003
...
...
@@ -101,7 +101,7 @@ Section lemmas.
(** 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
[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
→
to_dfrac_agree
d1
a1
⋅
to_dfrac_agree
d2
a2
~~>
to_dfrac_agree
d1
a'
⋅
to_dfrac_agree
d2
a'
.
...
...
@@ -110,13 +110,13 @@ Section lemmas.
apply
cmra_update_exclusive
.
rewrite
dfrac_agree_op_valid
Hq
//.
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
→
to_frac_agree
q1
a1
⋅
to_frac_agree
q2
a2
~~>
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
.
Proof
.
rewrite
/
to_dfrac_agree
.
apply
prod_update
;
last
done
.
...
...
iris/base_logic/lib/ghost_var.v
View file @
2e07f003
...
...
@@ -79,7 +79,7 @@ Section lemmas.
ghost_var
γ
q1
a1
-
∗
ghost_var
γ
q2
a2
==
∗
ghost_var
γ
q1
b
∗
ghost_var
γ
q2
b
.
Proof
.
intros
Hq
.
unseal
.
rewrite
-
own_op
.
iApply
own_update_2
.
apply
to_
frac_agree_update_2
.
done
.
apply
frac_agree_update_2
.
done
.
Qed
.
Lemma
ghost_var_update_halves
b
γ
a1
a2
:
ghost_var
γ
(
1
/
2
)
a1
-
∗
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment