Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Joshua Yanovski
iris-coq
Commits
01904806
Commit
01904806
authored
Sep 22, 2016
by
Robbert Krebbers
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Binary mononicity property for CMRA op.
parent
ca8e04a3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
algebra/cmra.v
algebra/cmra.v
+5
-0
No files found.
algebra/cmra.v
View file @
01904806
...
...
@@ -383,6 +383,7 @@ Proof.
Qed
.
Lemma
cmra_included_pcore
x
cx
:
pcore
x
=
Some
cx
→
cx
≼
x
.
Proof
.
exists
x
.
by
rewrite
cmra_pcore_l
.
Qed
.
Lemma
cmra_monoN_l
n
x
y
z
:
x
≼
{
n
}
y
→
z
⋅
x
≼
{
n
}
z
⋅
y
.
Proof
.
by
intros
[
z1
Hz1
];
exists
z1
;
rewrite
Hz1
(
assoc
op
).
Qed
.
Lemma
cmra_mono_l
x
y
z
:
x
≼
y
→
z
⋅
x
≼
z
⋅
y
.
...
...
@@ -391,6 +392,10 @@ Lemma cmra_monoN_r n x y z : x ≼{n} y → x ⋅ z ≼{n} y ⋅ z.
Proof
.
by
intros
;
rewrite
-!
(
comm
_
z
);
apply
cmra_monoN_l
.
Qed
.
Lemma
cmra_mono_r
x
y
z
:
x
≼
y
→
x
⋅
z
≼
y
⋅
z
.
Proof
.
by
intros
;
rewrite
-!
(
comm
_
z
);
apply
cmra_mono_l
.
Qed
.
Lemma
cmra_monoN
n
x1
x2
y1
y2
:
x1
≼
{
n
}
y1
→
x2
≼
{
n
}
y2
→
x1
⋅
x2
≼
{
n
}
y1
⋅
y2
.
Proof
.
intros
;
etrans
;
eauto
using
cmra_monoN_l
,
cmra_monoN_r
.
Qed
.
Lemma
cmra_mono
x1
x2
y1
y2
:
x1
≼
y1
→
x2
≼
y2
→
x1
⋅
x2
≼
y1
⋅
y2
.
Proof
.
intros
;
etrans
;
eauto
using
cmra_mono_l
,
cmra_mono_r
.
Qed
.
Lemma
cmra_included_dist_l
n
x1
x2
x1
'
:
x1
≼
x2
→
x1
'
≡
{
n
}
≡
x1
→
∃
x2
'
,
x1
'
≼
x2
'
∧
x2
'
≡
{
n
}
≡
x2
.
...
...
Write
Preview
Markdown
is supported
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