Skip to content

Commit

Permalink
add ex Exists
Browse files Browse the repository at this point in the history
  • Loading branch information
thomas-lamiaux committed Dec 28, 2024
1 parent 47df7aa commit 1b6e0df
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/Tutorial_intro_patterns.v
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,16 @@ Proof.
intros * (p & q & r & h).
Abort.

(** A particularly useful case is to introduce existential quantifications.
*)

Goal forall P Q (f : forall x y, P x y -> Q x y),
(exists (x y: nat), P x y) -> (exists (x y : nat), Q x y).
Proof.
intros P Q f (x & y & Pxy).
exists x, y. apply f. assumption.
Qed.



(** ** 3. Rewriting Lemmas *)
Expand Down

0 comments on commit 1b6e0df

Please sign in to comment.