]> matita.cs.unibo.it Git - helm.git/blob - helm/software/matita/tests/ng_commands.ma
Records are now interpreted in the NG (but I am sure there is some bug
[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 ndefinition thesis: ∀A:Type.Type ≝ λA. ?.
20  napply (A → A);
21 nqed.
22
23 ntheorem foo: ∀A:Type.thesis A.#A;#x;napply x;
24 nqed.
25
26 ntheorem goo: ∀A:Type.A → A. #A; napply (foo ?);
27 nqed.
28
29 naxiom NP: Prop.
30
31 ndefinition Q: Prop ≝ NP.
32
33 nlet rec nzero (n:nat) : nat ≝
34  match n with
35   [ O ⇒ O
36   | S m ⇒ nzero m].
37
38 ntheorem nzero_ok: nzero (S (S O)) = O.
39  napply (refl_eq ? O);
40 nqed.
41
42 (*
43 ninductive nnat: Type ≝
44    nO: nnat
45  | nS: nnat → nnat.
46 *)
47
48 (* testare anche i record e le ricorsioni/coricorsioni/(co)induttivi MUTUI *)
49
50 (*
51 nrecord pair: Type ≝ { l: pair; r: pair }.
52 *)