Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
Actris
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
tlsomers
Actris
Commits
d0f8d581
Commit
d0f8d581
authored
4 years ago
by
Jonas Kastberg
Browse files
Options
Downloads
Patches
Plain Diff
Made list reversal proof in line with mechanisation section proof
parent
0cf2bdf7
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
theories/examples/list_rev.v
+8
-5
8 additions, 5 deletions
theories/examples/list_rev.v
with
8 additions
and
5 deletions
theories/examples/list_rev.v
+
8
−
5
View file @
d0f8d581
...
@@ -57,14 +57,17 @@ Section list_rev_example.
...
@@ -57,14 +57,17 @@ Section list_rev_example.
<
?
>
MSG
#
()
{{
llist
IT
l
(
reverse
xs
)
}}
;
END
)
%
proto
.
<
?
>
MSG
#
()
{{
llist
IT
l
(
reverse
xs
)
}}
;
END
)
%
proto
.
Lemma
list_rev_subprot
{
T
}
(
IT
:
T
→
val
→
iProp
Σ
)
:
Lemma
list_rev_subprot
{
T
}
(
IT
:
T
→
val
→
iProp
Σ
)
:
⊢
list_rev_prot
⊑
(
list_rev_protI
IT
)
.
⊢
list_rev_prot
⊑
list_rev_protI
IT
.
Proof
.
Proof
.
iIntros
(
l
xs
)
"Hl"
.
iIntros
(
l
xs
)
"Hl"
.
iDestruct
(
llist_split
with
"Hl"
)
as
(
vs
)
"[Hl HI]"
.
iDestruct
(
llist_split
with
"Hl"
)
as
(
vs
)
"[Hl HI
T
]"
.
iExists
l
,
vs
.
iFrame
"Hl"
.
iExists
l
,
vs
.
iFrame
"Hl"
.
iModIntro
.
iIntros
"Hl"
.
iSplitL
.
iModIntro
.
{
rewrite
big_sepL2_reverse_2
.
iApply
llist_split
.
eauto
with
iFrame
.
}
iIntros
"Hl"
.
eauto
.
iSplitL
"Hl HIT"
.
{
iApply
llist_split
.
rewrite
big_sepL2_reverse_2
.
iExists
(
reverse
vs
)
.
iFrame
"Hl HIT"
.
}
done
.
Qed
.
Qed
.
Lemma
list_rev_client_spec
{
T
}
(
IT
:
T
→
val
→
iProp
Σ
)
l
xs
:
Lemma
list_rev_client_spec
{
T
}
(
IT
:
T
→
val
→
iProp
Σ
)
l
xs
:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment