Commit 9c9d14b0 authored by Ralf Jung's avatar Ralf Jung

decrease priority for rtc_reflexive instance

parent c3f39ca4
......@@ -65,7 +65,14 @@ Section rtc.
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 *)
Global Instance rtc_reflexive: Reflexive (rtc R) | 10.
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.
Proof. induction 1; eauto. Qed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment