I've been trying to prove a Lemma in Coq that like this,
Goal forall (X : Type) (p : X -> Prop),
(exists x, ~ p x) <-> ~ (forall x, p x).
This is my attempt at it,
Proof.
intros X p. split.
- intros [x B] C. apply B. apply C.
- simpl. intros H.
I got stuck, with this.
1 subgoal
X : Type
p : X -> Prop
H : ~ (forall x : X, p x)
______________________________________(1/1)
exists x : X, ~ p x
And now, my thinking is that maybe i could destruct H in a certain way to progress. Or maybe there's a better way of finishing this? Please help, thanks in advance!