1 (**************************************************************************)
4 (* ||A|| A project by Andrea Asperti *)
6 (* ||I|| Developers: *)
7 (* ||T|| The HELM team. *)
8 (* ||A|| http://helm.cs.unibo.it *)
10 (* \ / This file is distributed under the terms of the *)
11 (* v GNU General Public License Version 2 *)
13 (**************************************************************************)
15 (* This file was automatically generated: do not edit *********************)
17 include "LambdaDelta-1/arity/props.ma".
19 include "LambdaDelta-1/drop1/defs.ma".
22 \forall (g: G).(\forall (a: A).(\forall (c2: C).(\forall (hds:
23 PList).(\forall (c1: C).(\forall (t: T).((drop1 hds c1 c2) \to ((arity g c2 t
24 a) \to (arity g c1 (lift1 hds t) a))))))))
26 \lambda (g: G).(\lambda (a: A).(\lambda (c2: C).(\lambda (hds:
27 PList).(PList_ind (\lambda (p: PList).(\forall (c1: C).(\forall (t:
28 T).((drop1 p c1 c2) \to ((arity g c2 t a) \to (arity g c1 (lift1 p t) a))))))
29 (\lambda (c1: C).(\lambda (t: T).(\lambda (H: (drop1 PNil c1 c2)).(\lambda
30 (H0: (arity g c2 t a)).(let H1 \def (match H in drop1 return (\lambda (p:
31 PList).(\lambda (c: C).(\lambda (c0: C).(\lambda (_: (drop1 p c c0)).((eq
32 PList p PNil) \to ((eq C c c1) \to ((eq C c0 c2) \to (arity g c1 t a))))))))
33 with [(drop1_nil c) \Rightarrow (\lambda (_: (eq PList PNil PNil)).(\lambda
34 (H2: (eq C c c1)).(\lambda (H3: (eq C c c2)).(eq_ind C c1 (\lambda (c0:
35 C).((eq C c0 c2) \to (arity g c1 t a))) (\lambda (H4: (eq C c1 c2)).(eq_ind C
36 c2 (\lambda (c0: C).(arity g c0 t a)) H0 c1 (sym_eq C c1 c2 H4))) c (sym_eq C
37 c c1 H2) H3)))) | (drop1_cons c0 c3 h d H1 c4 hds0 H2) \Rightarrow (\lambda
38 (H3: (eq PList (PCons h d hds0) PNil)).(\lambda (H4: (eq C c0 c1)).(\lambda
39 (H5: (eq C c4 c2)).((let H6 \def (eq_ind PList (PCons h d hds0) (\lambda (e:
40 PList).(match e in PList return (\lambda (_: PList).Prop) with [PNil
41 \Rightarrow False | (PCons _ _ _) \Rightarrow True])) I PNil H3) in
42 (False_ind ((eq C c0 c1) \to ((eq C c4 c2) \to ((drop h d c0 c3) \to ((drop1
43 hds0 c3 c4) \to (arity g c1 t a))))) H6)) H4 H5 H1 H2))))]) in (H1
44 (refl_equal PList PNil) (refl_equal C c1) (refl_equal C c2))))))) (\lambda
45 (n: nat).(\lambda (n0: nat).(\lambda (p: PList).(\lambda (H: ((\forall (c1:
46 C).(\forall (t: T).((drop1 p c1 c2) \to ((arity g c2 t a) \to (arity g c1
47 (lift1 p t) a))))))).(\lambda (c1: C).(\lambda (t: T).(\lambda (H0: (drop1
48 (PCons n n0 p) c1 c2)).(\lambda (H1: (arity g c2 t a)).(let H2 \def (match H0
49 in drop1 return (\lambda (p0: PList).(\lambda (c: C).(\lambda (c0:
50 C).(\lambda (_: (drop1 p0 c c0)).((eq PList p0 (PCons n n0 p)) \to ((eq C c
51 c1) \to ((eq C c0 c2) \to (arity g c1 (lift n n0 (lift1 p t)) a)))))))) with
52 [(drop1_nil c) \Rightarrow (\lambda (H2: (eq PList PNil (PCons n n0
53 p))).(\lambda (H3: (eq C c c1)).(\lambda (H4: (eq C c c2)).((let H5 \def
54 (eq_ind PList PNil (\lambda (e: PList).(match e in PList return (\lambda (_:
55 PList).Prop) with [PNil \Rightarrow True | (PCons _ _ _) \Rightarrow False]))
56 I (PCons n n0 p) H2) in (False_ind ((eq C c c1) \to ((eq C c c2) \to (arity g
57 c1 (lift n n0 (lift1 p t)) a))) H5)) H3 H4)))) | (drop1_cons c0 c3 h d H2 c4
58 hds0 H3) \Rightarrow (\lambda (H4: (eq PList (PCons h d hds0) (PCons n n0
59 p))).(\lambda (H5: (eq C c0 c1)).(\lambda (H6: (eq C c4 c2)).((let H7 \def
60 (f_equal PList PList (\lambda (e: PList).(match e in PList return (\lambda
61 (_: PList).PList) with [PNil \Rightarrow hds0 | (PCons _ _ p0) \Rightarrow
62 p0])) (PCons h d hds0) (PCons n n0 p) H4) in ((let H8 \def (f_equal PList nat
63 (\lambda (e: PList).(match e in PList return (\lambda (_: PList).nat) with
64 [PNil \Rightarrow d | (PCons _ n1 _) \Rightarrow n1])) (PCons h d hds0)
65 (PCons n n0 p) H4) in ((let H9 \def (f_equal PList nat (\lambda (e:
66 PList).(match e in PList return (\lambda (_: PList).nat) with [PNil
67 \Rightarrow h | (PCons n1 _ _) \Rightarrow n1])) (PCons h d hds0) (PCons n n0
68 p) H4) in (eq_ind nat n (\lambda (n1: nat).((eq nat d n0) \to ((eq PList hds0
69 p) \to ((eq C c0 c1) \to ((eq C c4 c2) \to ((drop n1 d c0 c3) \to ((drop1
70 hds0 c3 c4) \to (arity g c1 (lift n n0 (lift1 p t)) a)))))))) (\lambda (H10:
71 (eq nat d n0)).(eq_ind nat n0 (\lambda (n1: nat).((eq PList hds0 p) \to ((eq
72 C c0 c1) \to ((eq C c4 c2) \to ((drop n n1 c0 c3) \to ((drop1 hds0 c3 c4) \to
73 (arity g c1 (lift n n0 (lift1 p t)) a))))))) (\lambda (H11: (eq PList hds0
74 p)).(eq_ind PList p (\lambda (p0: PList).((eq C c0 c1) \to ((eq C c4 c2) \to
75 ((drop n n0 c0 c3) \to ((drop1 p0 c3 c4) \to (arity g c1 (lift n n0 (lift1 p
76 t)) a)))))) (\lambda (H12: (eq C c0 c1)).(eq_ind C c1 (\lambda (c: C).((eq C
77 c4 c2) \to ((drop n n0 c c3) \to ((drop1 p c3 c4) \to (arity g c1 (lift n n0
78 (lift1 p t)) a))))) (\lambda (H13: (eq C c4 c2)).(eq_ind C c2 (\lambda (c:
79 C).((drop n n0 c1 c3) \to ((drop1 p c3 c) \to (arity g c1 (lift n n0 (lift1 p
80 t)) a)))) (\lambda (H14: (drop n n0 c1 c3)).(\lambda (H15: (drop1 p c3
81 c2)).(arity_lift g c3 (lift1 p t) a (H c3 t H15 H1) c1 n n0 H14))) c4 (sym_eq
82 C c4 c2 H13))) c0 (sym_eq C c0 c1 H12))) hds0 (sym_eq PList hds0 p H11))) d
83 (sym_eq nat d n0 H10))) h (sym_eq nat h n H9))) H8)) H7)) H5 H6 H2 H3))))])
84 in (H2 (refl_equal PList (PCons n n0 p)) (refl_equal C c1) (refl_equal C
85 c2))))))))))) hds)))).