1 (**************************************************************************)
4 (* ||A|| A project by Andrea Asperti *)
6 (* ||I|| Developers: *)
7 (* ||T|| The HELM team. *)
8 (* ||A|| http://helm.cs.unibo.it *)
10 (* \ / This file is distributed under the terms of the *)
11 (* v GNU General Public License Version 2 *)
13 (**************************************************************************)
15 set "baseuri" "cic:/matita/unfold".
17 include "legacy/coq.ma".
19 alias symbol "plus" (instance 0) = "Coq's natural plus".
20 definition myplus \def \lambda x,y. x+y.
22 alias id "S" = "cic:/Coq/Init/Datatypes/nat.ind#xpointer(1/1/2)".
23 lemma lem: \forall n. S (n + n) = (S n) + n.
27 theorem trivial: \forall n. S (myplus n n) = myplus (S n) n.
28 unfold myplus in \vdash (\forall _.(? ? ? %)).
35 (* This test needs to parse "uno" in the context of the hypothesis H,
36 not in the context of the goal. *)
37 alias id "O" = "cic:/Coq/Init/Datatypes/nat.ind#xpointer(1/1/1)".
38 theorem t: let uno \def S O in uno + uno = S uno \to uno=uno.
39 intros. unfold uno in H.