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
Iris
transfinite
Commits
c07a5eec
Commit
c07a5eec
authored
Jul 07, 2019
by
Ralf Jung
Browse files
show that pair cosntruction commutes with taking the core
parent
86da40a5
Changes
1
Show whitespace changes
Inline
Side-by-side
theories/algebra/cmra.v
View file @
c07a5eec
...
...
@@ -476,6 +476,10 @@ Section total_core.
Local
Set
Default
Proof
Using
"Type*"
.
Context
`
{
CmraTotal
A
}.
Lemma
cmra_pcore_core
x
:
pcore
x
=
Some
(
core
x
).
Proof
.
rewrite
/
core
/
core'
.
destruct
(
cmra_total
x
)
as
[
cx
->].
done
.
Qed
.
Lemma
cmra_core_l
x
:
core
x
⋅
x
≡
x
.
Proof
.
destruct
(
cmra_total
x
)
as
[
cx
Hcx
].
by
rewrite
/
core
/=
Hcx
cmra_pcore_l
.
...
...
@@ -1136,6 +1140,14 @@ Section prod.
Lemma
pair_valid
(
a
:
A
)
(
b
:
B
)
:
✓
(
a
,
b
)
↔
✓
a
∧
✓
b
.
Proof
.
done
.
Qed
.
Lemma
pair_core
`
{!
CmraTotal
A
,
!
CmraTotal
B
}
(
a
:
A
)
(
b
:
B
)
:
core
(
a
,
b
)
=
(
core
a
,
core
b
).
Proof
.
rewrite
/
core
/
core'
{
1
}/
pcore
/=.
rewrite
(
cmra_pcore_core
a
).
simpl
.
rewrite
(
cmra_pcore_core
b
).
done
.
Qed
.
Global
Instance
prod_cmra_total
:
CmraTotal
A
→
CmraTotal
B
→
CmraTotal
prodR
.
Proof
.
intros
H1
H2
[
a
b
].
destruct
(
H1
a
)
as
[
ca
?],
(
H2
b
)
as
[
cb
?].
...
...
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