Debian Codegraph @

test-suite/bugs/bug_1776.v

raw
1 Axiom pair : nat -> nat -> nat -> Prop.
2 Axiom pl : (nat -> Prop) -> (nat -> Prop) -> (nat -> Prop).
3 Axiom plImpR : forall k P Q,
4 pl P Q k -> forall (Q':nat -> Prop),
5 (forall k', Q k' -> Q' k') ->
6 pl P Q' k.
7
8 Definition nexists (P:nat -> nat -> Prop) : nat -> Prop :=
9 fun k' => exists k, P k k'.
10
11 Goal forall a A m,
12 True ->
13 (pl A (nexists (fun x => (nexists
14 (fun y => pl (pair a (S x)) (pair a (S y))))))) m.
15 Proof.
16 intros.
17 eapply plImpR; [ | intros; econstructor; econstructor; eauto].
18 clear H;
19 match goal with
20 | |- (pl _ (pl (pair _ ?x) _)) _ => replace x with 0
21 end.
22 Admitted.