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
afdc8633
Commit
afdc8633
authored
3 years ago
by
Robbert Krebbers
Browse files
Options
Downloads
Patches
Plain Diff
`Proper`s for `union`, `union_with`, `intersection_with`, `difference_with` on `option`.
parent
65a379f3
No related branches found
No related tags found
1 merge request
!281
Various setoids lemmas for maps, lists, and option
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
theories/option.v
+13
-0
13 additions, 0 deletions
theories/option.v
with
13 additions
and
0 deletions
theories/option.v
+
13
−
0
View file @
afdc8633
...
...
@@ -321,6 +321,19 @@ Section union_intersection_difference.
Proof
.
by
intros
?
[?|]
[?|];
compute
;
rewrite
1
?(
comm
f
)
.
Qed
.
Global
Instance
difference_with_right_id
:
RightId
(
=
)
None
(
difference_with
f
)
.
Proof
.
by
intros
[?|]
.
Qed
.
Global
Instance
union_with_proper
`{
Equiv
A
}
:
Proper
(((
≡
)
==>
(
≡
)
==>
(
≡
))
==>
(
≡@
{
option
A
})
==>
(
≡
)
==>
(
≡
))
union_with
.
Proof
.
intros
??
Hf
;
do
2
destruct
1
;
try
constructor
;
by
try
apply
Hf
.
Qed
.
Global
Instance
intersection_with_proper
`{
Equiv
A
}
:
Proper
(((
≡
)
==>
(
≡
)
==>
(
≡
))
==>
(
≡@
{
option
A
})
==>
(
≡
)
==>
(
≡
))
intersection_with
.
Proof
.
intros
??
Hf
;
do
2
destruct
1
;
try
constructor
;
by
try
apply
Hf
.
Qed
.
Global
Instance
difference_with_proper
`{
Equiv
A
}
:
Proper
(((
≡
)
==>
(
≡
)
==>
(
≡
))
==>
(
≡@
{
option
A
})
==>
(
≡
)
==>
(
≡
))
difference_with
.
Proof
.
intros
??
Hf
;
do
2
destruct
1
;
try
constructor
;
by
try
apply
Hf
.
Qed
.
Global
Instance
union_proper
`{
Equiv
A
}
:
Proper
((
≡@
{
option
A
})
==>
(
≡
)
==>
(
≡
))
union
.
Proof
.
apply
union_with_proper
.
by
constructor
.
Qed
.
End
union_intersection_difference
.
(** * Tactics *)
...
...
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