]> matita.cs.unibo.it Git - helm.git/blob - matita/matita/tests/elim_pattern.ma
init_copy init_match
[helm.git] / matita / matita / tests / elim_pattern.ma
1 (**************************************************************************)
2 (*       ___                                                              *)
3 (*      ||M||                                                             *)
4 (*      ||A||       A project by Andrea Asperti                           *)
5 (*      ||T||                                                             *)
6 (*      ||I||       Developers:                                           *)
7 (*      ||T||         The HELM team.                                      *)
8 (*      ||A||         http://helm.cs.unibo.it                             *)
9 (*      \   /                                                             *)
10 (*       \ /        This file is distributed under the terms of the       *)
11 (*        v         GNU General Public License Version 2                  *)
12 (*                                                                        *)
13 (**************************************************************************)
14
15 include "nat/plus.ma".
16
17 alias num (instance 0) = "natural number".
18 lemma ex1: ∀n:nat. n ≠ n+0 → n = O+O → (∀n1.¬¬(n≠n1+O)) → False.
19  intros (n U V K);
20  elim n in U:(? (? ? ? %)) ⊢ %;
21   [ apply (H V)
22   | apply (K ? H)]
23 qed.