Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
stdpp
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Monitor
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
Iris
stdpp
Commits
4ff965b2
Commit
4ff965b2
authored
5 years ago
by
Robbert Krebbers
Browse files
Options
Downloads
Patches
Plain Diff
`SetUnfold` instances for `reverse` and `fmap` on lists.
This closes issue
#36
.
parent
9407e8cc
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#17947
passed
5 years ago
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
theories/sets.v
+12
-0
12 additions, 0 deletions
theories/sets.v
with
12 additions
and
0 deletions
theories/sets.v
+
12
−
0
View file @
4ff965b2
...
@@ -286,6 +286,18 @@ Section set_unfold_list.
...
@@ -286,6 +286,18 @@ Section set_unfold_list.
constructor
;
unfold
subseteq
,
list_subseteq
.
constructor
;
unfold
subseteq
,
list_subseteq
.
apply
forall_proper
;
naive_solver
.
apply
forall_proper
;
naive_solver
.
Qed
.
Qed
.
Global
Instance
set_unfold_reverse
x
l
P
:
SetUnfoldElemOf
x
l
P
→
SetUnfoldElemOf
x
(
reverse
l
)
P
.
Proof
.
constructor
.
by
rewrite
elem_of_reverse
,
(
set_unfold_elem_of
x
l
P
)
.
Qed
.
Global
Instance
set_unfold_list_fmap
{
B
}
(
f
:
A
→
B
)
l
P
:
(
∀
y
,
SetUnfoldElemOf
y
l
(
P
y
))
→
SetUnfoldElemOf
x
(
f
<$>
l
)
(
∃
y
,
x
=
f
y
∧
P
y
)
.
Proof
.
constructor
.
rewrite
elem_of_list_fmap
.
f_equiv
;
intros
y
.
by
rewrite
(
set_unfold_elem_of
y
l
(
P
y
))
.
Qed
.
End
set_unfold_list
.
End
set_unfold_list
.
Ltac
set_unfold
:=
Ltac
set_unfold
:=
...
...
This diff is collapsed.
Click to expand it.
Robbert Krebbers
@robbertkrebbers
mentioned in merge request
!80 (merged)
·
5 years ago
mentioned in merge request
!80 (merged)
mentioned in merge request !80
Toggle commit list
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