]> matita.cs.unibo.it Git - helm.git/blob - helm/software/matita/contribs/LAMBDA-TYPES/Level-1/LambdaDelta/drop1/defs.ma
dependences fixed
[helm.git] / helm / software / matita / contribs / LAMBDA-TYPES / Level-1 / LambdaDelta / drop1 / 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 set "baseuri" "cic:/matita/LAMBDA-TYPES/Level-1/LambdaDelta/drop1/defs".
18
19 include "drop/defs.ma".
20
21 include "lift1/defs.ma".
22
23 inductive drop1: PList \to (C \to (C \to Prop)) \def
24 | drop1_nil: \forall (c: C).(drop1 PNil c c)
25 | drop1_cons: \forall (c1: C).(\forall (c2: C).(\forall (h: nat).(\forall (d: 
26 nat).((drop h d c1 c2) \to (\forall (c3: C).(\forall (hds: PList).((drop1 hds 
27 c2 c3) \to (drop1 (PCons h d hds) c1 c3)))))))).
28
29 definition ctrans:
30  PList \to (nat \to (T \to T))
31 \def
32  let rec ctrans (hds: PList) on hds: (nat \to (T \to T)) \def (\lambda (i: 
33 nat).(\lambda (t: T).(match hds with [PNil \Rightarrow t | (PCons h d hds0) 
34 \Rightarrow (let j \def (trans hds0 i) in (let u \def (ctrans hds0 i t) in 
35 (match (blt j d) with [true \Rightarrow (lift h (minus d (S j)) u) | false 
36 \Rightarrow u])))]))) in ctrans.
37