Debian Codegraph @

test-suite/bugs/bug_3267.v

raw
1 Module a.
2 Local Hint Extern 0 => progress subst.
3 Goal forall T (x y : T) (P Q : _ -> Prop), x = y -> (P x -> Q x) -> P y -> Q y.
4 Proof.
5 intros.
6 (* this should not fail *)
7 progress eauto.
8 Defined.
9 End a.
10
11 Module b.
12 Local Hint Extern 0 => progress subst.
13 Goal forall T (x y : T) (P Q : _ -> Prop), y = x -> (P x -> Q x) -> P y -> Q y.
14 Proof.
15 intros.
16 eauto.
17 Defined.
18 End b.
19
20 Module c.
21 Local Hint Extern 0 => progress subst; eauto.
22 Goal forall T (x y : T) (P Q : _ -> Prop), x = y -> (P x -> Q x) -> P y -> Q y.
23 Proof.
24 intros.
25 eauto.
26 Defined.
27 End c.
28
29 Module d.
30 Local Hint Extern 0 => progress subst; repeat match goal with H : _ |- _ => revert H end.
31 Goal forall T (x y : T) (P Q : _ -> Prop), x = y -> (P x -> Q x) -> P y -> Q y.
32 Proof.
33 intros.
34 debug eauto.
35 Defined.
36 End d.
37
38 (* An other variant which was still failing in 8.5 beta2 *)
39
40 Parameter A B : Prop.
41 Axiom a:B.
42
43 #[export] Hint Extern 1 => match goal with H:_ -> id _ |- _ => try (unfold id in H) end.
44 Goal (B -> id A) -> A.
45 intros.
46 eauto using a.
47 Abort.