Debian Codegraph @

test-suite/bugs/bug_4679.v

raw
1 Require Import Corelib.Setoids.Setoid.
2 Goal forall (T : nat -> Set -> Set) (U : Set)
3 (H : forall n : nat, T n (match n with
4 | 0 => fun x => x
5 | S _ => fun x => x
6 end (nat = nat)) = U),
7 T 0 (nat = nat) = U.
8 Proof.
9 intros.
10 let H := match goal with H : forall _, eq _ _ |- _ => H end in
11 rewrite H || fail 0 "too early".
12 Undo.
13 let H := match goal with H : forall _, eq _ _ |- _ => H end in
14 setoid_rewrite (H 0) || fail 0 "too early".
15 Undo.
16 setoid_rewrite H. (* Error: Tactic failure: setoid rewrite failed: Nothing to rewrite. *)
17 reflexivity.
18 Qed.