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
9c9d14b0
Commit
9c9d14b0
authored
6 years ago
by
Ralf Jung
Browse files
Options
Downloads
Patches
Plain Diff
decrease priority for rtc_reflexive instance
parent
c3f39ca4
No related branches found
No related tags found
1 merge request
!38
decrease priority for rtc_reflexive instance
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
theories/relations.v
+8
-1
8 additions, 1 deletion
theories/relations.v
with
8 additions
and
1 deletion
theories/relations.v
+
8
−
1
View file @
9c9d14b0
...
@@ -65,7 +65,14 @@ Section rtc.
...
@@ -65,7 +65,14 @@ Section rtc.
Hint
Constructors
rtc
nsteps
bsteps
tc
.
Hint
Constructors
rtc
nsteps
bsteps
tc
.
Global
Instance
rtc_reflexive
:
Reflexive
(
rtc
R
)
.
(* We give this instance a lower-than-usual priority because [setoid_rewrite]
queries for [@Reflexive Prop ?r] in the hope of [iff_reflexive] getting
picked as the instance. [rtc_reflexive] overlaps with that, leading to
backtracking. We cannot set [Hint Mode] because that query must not fail,
but we can at least avoid picking [rtc_reflexive].
See Coq bug https://github.com/coq/coq/issues/7916. *)
Global
Instance
rtc_reflexive
:
Reflexive
(
rtc
R
)
|
10
.
Proof
.
exact
(
@
rtc_refl
A
R
)
.
Qed
.
Proof
.
exact
(
@
rtc_refl
A
R
)
.
Qed
.
Lemma
rtc_transitive
x
y
z
:
rtc
R
x
y
→
rtc
R
y
z
→
rtc
R
x
z
.
Lemma
rtc_transitive
x
y
z
:
rtc
R
x
y
→
rtc
R
y
z
→
rtc
R
x
z
.
Proof
.
induction
1
;
eauto
.
Qed
.
Proof
.
induction
1
;
eauto
.
Qed
.
...
...
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