test-suite/bugs/bug_2375.v
raw| 1 | (* In the following code, the (superfluous) lemma [lem] is responsible |
| 2 | for the failure of congruence. *) |
| 3 | |
| 4 | Definition f : nat -> Prop := fun x => True. |
| 5 | |
| 6 | Lemma lem : forall x, (True -> True) = ( True -> f x). |
| 7 | Proof. |
| 8 | intros. reflexivity. |
| 9 | Qed. |
| 10 | |
| 11 | Goal forall (x:nat), x = x. |
| 12 | Proof. |
| 13 | intros. |
| 14 | assert (lem := lem). |
| 15 | (*clear ax.*) |
| 16 | congruence. |
| 17 | Qed. |