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
Iris
Actris
Commits
85f7b196
Commit
85f7b196
authored
Jul 09, 2019
by
Robbert Krebbers
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Lemma about `fmap` and `llist`.
parent
6dd37799
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
+9
-0
theories/utils/llist.v
theories/utils/llist.v
+9
-0
No files found.
theories/utils/llist.v
View file @
85f7b196
...
...
@@ -79,6 +79,15 @@ Implicit Types xs : list A.
Implicit
Types
l
:
loc
.
Local
Arguments
llist
{
_
_
_
}
_
_
!
_
/.
Lemma
llist_fmap
{
B
}
(
J
:
B
→
val
→
iProp
Σ
)
(
f
:
A
→
B
)
l
xs
:
□
(
∀
x
v
,
I
x
v
-
∗
J
(
f
x
)
v
)
-
∗
llist
I
l
xs
-
∗
llist
J
l
(
f
<$>
xs
).
Proof
.
iIntros
"#Hf Hll"
.
iInduction
xs
as
[|
x
xs
]
"IH"
forall
(
l
)
;
csimpl
;
auto
.
iDestruct
"Hll"
as
(
v
l'
)
"(Hx & Hl & Hll)"
.
iExists
_
,
_
.
iFrame
"Hl"
.
iSplitL
"Hx"
.
by
iApply
"Hf"
.
by
iApply
"IH"
.
Qed
.
Lemma
lnil_spec
:
{{{
True
}}}
lnil
#()
{{{
l
,
RET
#
l
;
llist
I
l
[]
}}}.
Proof
.
iIntros
(
Φ
_
)
"HΦ"
.
wp_lam
.
wp_alloc
l
.
by
iApply
"HΦ"
.
Qed
.
...
...
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