]> matita.cs.unibo.it Git - helm.git/blob - helm/software/matita/tests/ng_uris_and_notation.ma
update in basic_2 ...
[helm.git] / helm / software / matita / tests / ng_uris_and_notation.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 "ng_pts.ma".
16 include "nat/nat.ma".
17
18 ndefinition foo: nat ≝ O.
19
20 ndefinition goo ≝ cic:/matita/nat/nat/nat.ind#xpointer(1/1/1).
21
22 ndefinition goo' ≝ cic:/matita/tests/ng_uris_and_notation/foo.def(1).
23
24 ntheorem xx: goo' = cic:/matita/tests/ng_uris_and_notation/foo.def(1).
25  nnormalize;
26  napply (refl_eq ? O);
27 nqed.
28
29 naxiom ax: nat.
30
31 ntheorem yy: ax = cic:/matita/tests/ng_uris_and_notation/ax.dec.
32  napply (refl_eq ??);
33 nqed.
34
35 ndefinition nnat: Type ≝ nat.
36
37 interpretation "NNatural numbers" 'N = cic:/matita/tests/ng_uris_and_notation/nnat.def(1).
38
39 ndefinition nnnat: Type ≝ nnat.
40
41 interpretation "NNNatural numbers" 'N = nnnat.
42
43 ndefinition try_notation: nnat → nnnat.
44  napply (λx.x);
45 nqed.