Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Joshua Yanovski
iris-coq
Commits
edc30b17
Commit
edc30b17
authored
May 22, 2016
by
Robbert Krebbers
Browse files
Local update on product.
parent
8d4fa046
Changes
1
Hide whitespace changes
Inline
Side-by-side
algebra/cmra.v
View file @
edc30b17
...
...
@@ -590,7 +590,18 @@ Section prod.
Lemma
prod_updateP
'
P1
P2
x
:
x
.1
~~>:
P1
→
x
.2
~~>:
P2
→
x
~~>:
λ
y
,
P1
(
y
.1
)
∧
P2
(
y
.2
).
Proof
.
eauto
using
prod_updateP
.
Qed
.
Global
Instance
prod_local_update
(
LA
:
A
→
A
)
`
{!
LocalUpdate
LvA
LA
}
(
LB
:
B
→
B
)
`
{!
LocalUpdate
LvB
LB
}
:
LocalUpdate
(
λ
x
,
LvA
(
x
.1
)
∧
LvB
(
x
.2
))
(
prod_map
LA
LB
).
Proof
.
constructor
.
-
intros
n
x
y
[
??
];
constructor
;
simpl
;
by
apply
local_update_ne
.
-
intros
n
??
[
??
]
[
??
];
constructor
;
simpl
in
*
;
eapply
local_updateN
;
eauto
.
Qed
.
End
prod
.
Arguments
prodR
:
clear
implicits
.
Instance
prod_map_cmra_monotone
{
A
A
'
B
B
'
:
cmraT
}
(
f
:
A
→
A
'
)
(
g
:
B
→
B
'
)
:
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment