summaryrefslogtreecommitdiff
path: root/test-suite/bugs/closed/3291.v
blob: 4ea748c0fbe302dee8f08c68d6037c02142f3f0f (plain)
1
2
3
4
5
6
7
8
9
Require Import Setoid.

Definition segv : forall x, (x = 0%nat) -> (forall (y : nat), (y < x)%nat -> nat) = forall (y : nat), (y < 0)%nat -> nat.
intros x eq.
assert (H : forall y, (y < x)%nat = (y < 0)%nat).
rewrite -> eq. auto.
Set Typeclasses Debug.
Fail setoid_rewrite <- H. (* The command has indeed failed with message:
=> Stack overflow. *)