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
Package Registry
Model registry
Operate
Terraform modules
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
Adam
stdpp
Commits
309a7a57
Commit
309a7a57
authored
3 years ago
by
Matthieu Sozeau
Committed by
Robbert Krebbers
3 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Declare `equiv` as a rightful rewrite relation, when an `Equiv` instance is available.
parent
b593cbdd
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/base.v
+7
-0
7 additions, 0 deletions
theories/base.v
with
7 additions
and
0 deletions
theories/base.v
+
7
−
0
View file @
309a7a57
...
...
@@ -250,6 +250,13 @@ Class Equiv A := equiv: relation A.
(* No Hint Mode set because of Coq bug #14441.
Global Hint Mode Equiv ! : typeclass_instances. *)
(** We instruct setoid rewriting to infer [equiv] as a relation on
type [A] when needed. This allows setoid_rewrite to solve constraints
of shape [Proper (eq ==> ?R) f] using [Proper (eq ==> (equiv (A:=A))) f]
when an equivalence relation is available on type [A]. *)
Global
Instance
equiv_rewrite_relation
`{
Equiv
A
}
:
RewriteRelation
(
@
equiv
A
_)
:=
{}
.
Infix
"≡"
:=
equiv
(
at
level
70
,
no
associativity
)
:
stdpp_scope
.
Infix
"≡@{ A }"
:=
(
@
equiv
A
_)
(
at
level
70
,
only
parsing
,
no
associativity
)
:
stdpp_scope
.
...
...
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