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
Lennard Gäher
Iris
Commits
9370e668
Commit
9370e668
authored
Feb 06, 2020
by
Dmitry Khalanskiy
Committed by
Ralf Jung
Mar 17, 2021
Browse files
Add option_local_update_None
parent
730f24ec
Changes
1
Hide whitespace changes
Inline
Side-by-side
iris/algebra/local_updates.v
View file @
9370e668
...
...
@@ -172,6 +172,16 @@ Proof.
split
;
first
done
.
destruct
mz
as
[?|]
;
constructor
;
auto
.
Qed
.
Lemma
option_local_update_None
{
A
:
ucmra
}
(
x
x'
y'
:
A
)
:
(
x
,
ε
)
~l
~>
(
x'
,
y'
)
->
(
Some
x
,
None
)
~l
~>
(
Some
x'
,
Some
y'
).
Proof
.
intros
HUp
.
apply
local_update_unital
.
intros
?
?.
rewrite
ucmra_unit_left_id
=>
HValid
HEq
.
rewrite
-
HEq
.
destruct
(
HUp
n
(
Some
x
))
;
rewrite
/=
//.
-
by
rewrite
ucmra_unit_left_id
.
-
simpl
in
*.
split
;
try
done
.
rewrite
-
Some_op
.
by
constructor
.
Qed
.
Lemma
alloc_option_local_update
{
A
:
cmra
}
(
x
:
A
)
y
:
✓
x
→
(
None
,
y
)
~l
~>
(
Some
x
,
Some
x
).
...
...
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