]> matita.cs.unibo.it Git - helm.git/blob - matita/matita/contribs/RELATIONAL/datatypes/List.ma
propagating the arithmetics library, partial commit
[helm.git] / matita / matita / contribs / RELATIONAL / datatypes / List.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
16
17 include "preamble.ma".
18
19 inductive List (A: Type): Type \def
20    | nil: List A
21    | cons: List A \to A \to List A
22 .
23
24 (*CSC: the URI must disappear: there is a bug now *)
25 interpretation "nil" 'nil = 
26    (cic:/matita/RELATIONAL/datatypes/List/List.ind#xpointer(1/1) ?).
27
28 notation "hvbox([])"
29   non associative with precedence 95
30 for @{ 'nil }.
31
32 (*CSC: the URI must disappear: there is a bug now *)
33 interpretation "right cons" 'rcons x y = 
34    (cic:/matita/RELATIONAL/datatypes/List/List.ind#xpointer(1/2) ? x y).
35
36 notation "hvbox([a break @ b])"
37   non associative with precedence 95
38 for @{ 'rcons $a $b}.
39