]> matita.cs.unibo.it Git - helm.git/blob - helm/matita/tests/unfold.ma
New tactic: unfold.
[helm.git] / helm / matita / tests / unfold.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 set "baseuri" "cic:/matita/unfold".
16
17 alias symbol "plus" (instance 0) = "Coq's natural plus".
18 definition myplus \def \lambda x,y. x+y.
19
20 lemma lem: \forall n. S (n + n) = (S n) + n.
21  intro; reflexivity.
22 qed.
23
24 theorem trivial: \forall n. S (myplus n n) = (S n) + n.
25  unfold myplus.
26  intro.
27  rewrite > lem.
28  reflexivity.
29 qed.