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
bb53251f
Commit
bb53251f
authored
Mar 17, 2021
by
Robbert Krebbers
Browse files
Merge branch 'ralf/option-local-update' into 'master'
Add option_local_update_None See merge request
!653
parents
730f24ec
593a7a89
Changes
1
Hide whitespace changes
Inline
Side-by-side
iris/algebra/local_updates.v
View file @
bb53251f
...
...
@@ -172,6 +172,17 @@ 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
=>
n
mz
.
rewrite
left_id
=>
?
<-.
destruct
(
Hup
n
(
Some
x
))
;
simpl
in
*
;
first
done
.
-
by
rewrite
left_id
.
-
split
;
first
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