]> matita.cs.unibo.it Git - helm.git/blob - helm/software/matita/tests/ng_commands.ma
- Grammar for all obj commands ported to NG (let recs and inductives still need
[helm.git] / helm / software / matita / tests / ng_commands.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 ndefinition thesis0: ∀A:Type.Type ≝ λA. A → A.
18
19 alias id "thesis0" = "cic:/matita/tests/ng_commands/thesis0.con".
20
21 ndefinition thesis: ∀A:Type.Type ≝ λA. ?.
22  napply (A → A);
23 nqed.
24
25 alias id "thesis" = "cic:/matita/tests/ng_commands/thesis.con".
26
27 ntheorem foo: ∀A:Type.thesis A.#A;#x;napply x;
28 nqed.
29
30 alias id "foo" = "cic:/matita/tests/ng_commands/foo.con".
31
32 ntheorem goo: ∀A:Type.A → A. #A; napply (foo ?);
33 nqed.
34
35 naxiom P: Prop.
36
37 alias id "P" = "cic:/matita/tests/ng_commands/P.con".
38
39 ndefinition Q: Prop ≝ P.
40
41 (*
42 nlet rec nzero (n:nat) : nat ≝
43  match n with
44   [ O ⇒ O
45   | S m ⇒ nzero m].
46
47 ninductive nnat: Type ≝
48    nO: nnat
49  | nS: nnat → nnat. *)