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
77eecb3c
Commit
77eecb3c
authored
5 years ago
by
Robbert Krebbers
Browse files
Options
Downloads
Plain Diff
Merge branch 'ralf/proper-dom' into 'master'
show a Proper instance for dom See merge request
!74
parents
4978faed
4f68d8a9
No related branches found
No related tags found
1 merge request
!74
show a Proper instance for dom
Pipeline
#17826
passed
5 years ago
Stage: build
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
theories/fin_map_dom.v
+11
-0
11 additions, 0 deletions
theories/fin_map_dom.v
with
11 additions
and
0 deletions
theories/fin_map_dom.v
+
11
−
0
View file @
77eecb3c
...
...
@@ -119,6 +119,17 @@ Proof.
eauto
using
(
empty_finite
(
C
:=
D
)),
(
union_finite
(
C
:=
D
)),
(
singleton_finite
(
C
:=
D
))
.
Qed
.
Global
Instance
dom_proper
`{
!
Equiv
A
}
:
Proper
((
≡@
{
M
A
})
==>
(
≡
))
(
dom
D
)
.
Proof
.
intros
m1
m2
EQm
.
apply
elem_of_equiv
.
intros
i
.
rewrite
!
elem_of_dom
,
EQm
.
done
.
Qed
.
(** If [D] has Leibniz equality, we can show an even stronger result. This is a
common case e.g. when having a [gmap K A] where the key [K] has Leibniz equality
(and thus also [gset K], the usual domain) but the value type [A] does not. *)
Global
Instance
dom_proper_L
`{
!
Equiv
A
,
!
LeibnizEquiv
D
}
:
Proper
((
≡@
{
M
A
})
==>
(
=
))
(
dom
D
)
|
0
.
Proof
.
intros
???
.
unfold_leibniz
.
by
apply
dom_proper
.
Qed
.
Context
`{
!
LeibnizEquiv
D
}
.
Lemma
dom_empty_L
{
A
}
:
dom
D
(
@
empty
(
M
A
)
_)
=
∅.
...
...
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