]> matita.cs.unibo.it Git - helm.git/blob - matita/matita/contribs/lambdadelta/ground_1A/plist/defs.ma
update in lambdadelta
[helm.git] / matita / matita / contribs / lambdadelta / ground_1A / plist / 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 (* This file was automatically generated: do not edit *********************)
16
17 include "ground_1A/preamble.ma".
18
19 inductive PList: Type[0] \def
20 | PNil: PList
21 | PCons: nat \to (nat \to (PList \to PList)).
22
23 rec definition PConsTail (hds: PList) on hds: nat \to (nat \to PList) \def 
24 \lambda (h0: nat).(\lambda (d0: nat).(match hds with [PNil \Rightarrow (PCons 
25 h0 d0 PNil) | (PCons h d hds0) \Rightarrow (PCons h d (PConsTail hds0 h0 
26 d0))])).
27
28 rec definition Ss (hds: PList) on hds: PList \def match hds with [PNil 
29 \Rightarrow PNil | (PCons h d hds0) \Rightarrow (PCons h (S d) (Ss hds0))].
30
31 rec definition papp (a: PList) on a: PList \to PList \def \lambda (b: 
32 PList).(match a with [PNil \Rightarrow b | (PCons h d a0) \Rightarrow (PCons 
33 h d (papp a0 b))]).
34