Debian Codegraph @

test-suite/bugs/bug_14651.v

raw
1 Axiom p : (nat -> nat) -> nat.
2 Goal (forall f, p f = f 0) -> forall f, p f = f 0.
3 Proof. congruence. Qed.
4
5 Definition ap {X Y : Type} (f : X -> Y) (x : X) := f x.
6
7 Goal (forall f, p f = ap f 0) -> forall f, p f = ap f 0.
8 Proof. congruence. Qed.
9
10 Goal (forall f, p f = ap f (f 0)) -> forall f, p f = ap f (f 0).
11 Proof. congruence. Qed.
12
13 Definition twice (f: nat -> nat) x := f (f x).
14
15 Lemma twice_def f x : twice f x = f (f x).
16 Proof. reflexivity. Qed.
17
18 Definition twice_spec f := forall x, twice f x = f (f x).
19
20 Goal forall f x, twice f x = f (f x).
21 Proof.
22 intros f x.
23 Fail congruence. (* expected, no unfolding *)
24 pose proof (H := twice_def).
25 congruence.
26 Qed.