test-suite/bugs/bug_7675_1.v
raw| 1 | Require Import Setoid CMorphisms. |
| 2 | |
| 3 | Parameter A: Type. |
| 4 | |
| 5 | Inductive R : A -> A -> Type := |
| 6 | | perm1 l: R l l |
| 7 | | perm2 l l' : R l l' -> R l l'. |
| 8 | (* requires at least two constructors for the issue to appear *) |
| 9 | |
| 10 | #[local] Instance HR : Transitive R. Admitted. |
| 11 | |
| 12 | Goal forall h k, R h k -> R h k. |
| 13 | Proof. |
| 14 | intros h k H. |
| 15 | Succeed rewrite H. |
| 16 | assumption. |
| 17 | Qed. |