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