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 set "baseuri" "cic:/matita/LAMBDA-TYPES/Level-1/LambdaDelta/sc3/props".
19 include "sc3/defs.ma".
21 include "sn3/lift1.ma".
23 include "nf2/lift1.ma".
25 include "arity/lift1.ma".
27 include "arity/aprem.ma".
29 include "llt/props.ma".
31 include "drop1/props.ma".
33 theorem sc3_arity_gen:
34 \forall (g: G).(\forall (c: C).(\forall (t: T).(\forall (a: A).((sc3 g a c
35 t) \to (arity g c t a)))))
37 \lambda (g: G).(\lambda (c: C).(\lambda (t: T).(\lambda (a: A).(A_ind
38 (\lambda (a0: A).((sc3 g a0 c t) \to (arity g c t a0))) (\lambda (n:
39 nat).(\lambda (n0: nat).(\lambda (H: (land (arity g c t (ASort n n0)) (sn3 c
40 t))).(let H0 \def H in (and_ind (arity g c t (ASort n n0)) (sn3 c t) (arity g
41 c t (ASort n n0)) (\lambda (H1: (arity g c t (ASort n n0))).(\lambda (_: (sn3
42 c t)).H1)) H0))))) (\lambda (a0: A).(\lambda (_: (((sc3 g a0 c t) \to (arity
43 g c t a0)))).(\lambda (a1: A).(\lambda (_: (((sc3 g a1 c t) \to (arity g c t
44 a1)))).(\lambda (H1: (land (arity g c t (AHead a0 a1)) (\forall (d:
45 C).(\forall (w: T).((sc3 g a0 d w) \to (\forall (is: PList).((drop1 is d c)
46 \to (sc3 g a1 d (THead (Flat Appl) w (lift1 is t)))))))))).(let H2 \def H1 in
47 (and_ind (arity g c t (AHead a0 a1)) (\forall (d: C).(\forall (w: T).((sc3 g
48 a0 d w) \to (\forall (is: PList).((drop1 is d c) \to (sc3 g a1 d (THead (Flat
49 Appl) w (lift1 is t)))))))) (arity g c t (AHead a0 a1)) (\lambda (H3: (arity
50 g c t (AHead a0 a1))).(\lambda (_: ((\forall (d: C).(\forall (w: T).((sc3 g
51 a0 d w) \to (\forall (is: PList).((drop1 is d c) \to (sc3 g a1 d (THead (Flat
52 Appl) w (lift1 is t)))))))))).H3)) H2))))))) a)))).
55 \forall (g: G).(\forall (a1: A).(\forall (c: C).(\forall (t: T).((sc3 g a1 c
56 t) \to (\forall (a2: A).((leq g a1 a2) \to (sc3 g a2 c t)))))))
58 \lambda (g: G).(\lambda (a1: A).(llt_wf_ind (\lambda (a: A).(\forall (c:
59 C).(\forall (t: T).((sc3 g a c t) \to (\forall (a2: A).((leq g a a2) \to (sc3
60 g a2 c t))))))) (\lambda (a2: A).(A_ind (\lambda (a: A).(((\forall (a3:
61 A).((llt a3 a) \to (\forall (c: C).(\forall (t: T).((sc3 g a3 c t) \to
62 (\forall (a4: A).((leq g a3 a4) \to (sc3 g a4 c t))))))))) \to (\forall (c:
63 C).(\forall (t: T).((sc3 g a c t) \to (\forall (a3: A).((leq g a a3) \to (sc3
64 g a3 c t)))))))) (\lambda (n: nat).(\lambda (n0: nat).(\lambda (_: ((\forall
65 (a3: A).((llt a3 (ASort n n0)) \to (\forall (c: C).(\forall (t: T).((sc3 g a3
66 c t) \to (\forall (a4: A).((leq g a3 a4) \to (sc3 g a4 c t)))))))))).(\lambda
67 (c: C).(\lambda (t: T).(\lambda (H0: (land (arity g c t (ASort n n0)) (sn3 c
68 t))).(\lambda (a3: A).(\lambda (H1: (leq g (ASort n n0) a3)).(let H2 \def H0
69 in (and_ind (arity g c t (ASort n n0)) (sn3 c t) (sc3 g a3 c t) (\lambda (H3:
70 (arity g c t (ASort n n0))).(\lambda (H4: (sn3 c t)).(let H_y \def
71 (arity_repl g c t (ASort n n0) H3 a3 H1) in (let H_x \def (leq_gen_sort g n
72 n0 a3 H1) in (let H5 \def H_x in (ex2_3_ind nat nat nat (\lambda (n2:
73 nat).(\lambda (h2: nat).(\lambda (_: nat).(eq A a3 (ASort h2 n2))))) (\lambda
74 (n2: nat).(\lambda (h2: nat).(\lambda (k: nat).(eq A (aplus g (ASort n n0) k)
75 (aplus g (ASort h2 n2) k))))) (sc3 g a3 c t) (\lambda (x0: nat).(\lambda (x1:
76 nat).(\lambda (x2: nat).(\lambda (H6: (eq A a3 (ASort x1 x0))).(\lambda (_:
77 (eq A (aplus g (ASort n n0) x2) (aplus g (ASort x1 x0) x2))).(let H8 \def
78 (eq_ind A a3 (\lambda (a: A).(arity g c t a)) H_y (ASort x1 x0) H6) in
79 (eq_ind_r A (ASort x1 x0) (\lambda (a: A).(sc3 g a c t)) (conj (arity g c t
80 (ASort x1 x0)) (sn3 c t) H8 H4) a3 H6))))))) H5)))))) H2)))))))))) (\lambda
81 (a: A).(\lambda (_: ((((\forall (a3: A).((llt a3 a) \to (\forall (c:
82 C).(\forall (t: T).((sc3 g a3 c t) \to (\forall (a4: A).((leq g a3 a4) \to
83 (sc3 g a4 c t))))))))) \to (\forall (c: C).(\forall (t: T).((sc3 g a c t) \to
84 (\forall (a3: A).((leq g a a3) \to (sc3 g a3 c t))))))))).(\lambda (a0:
85 A).(\lambda (H0: ((((\forall (a3: A).((llt a3 a0) \to (\forall (c:
86 C).(\forall (t: T).((sc3 g a3 c t) \to (\forall (a4: A).((leq g a3 a4) \to
87 (sc3 g a4 c t))))))))) \to (\forall (c: C).(\forall (t: T).((sc3 g a0 c t)
88 \to (\forall (a3: A).((leq g a0 a3) \to (sc3 g a3 c t))))))))).(\lambda (H1:
89 ((\forall (a3: A).((llt a3 (AHead a a0)) \to (\forall (c: C).(\forall (t:
90 T).((sc3 g a3 c t) \to (\forall (a4: A).((leq g a3 a4) \to (sc3 g a4 c
91 t)))))))))).(\lambda (c: C).(\lambda (t: T).(\lambda (H2: (land (arity g c t
92 (AHead a a0)) (\forall (d: C).(\forall (w: T).((sc3 g a d w) \to (\forall
93 (is: PList).((drop1 is d c) \to (sc3 g a0 d (THead (Flat Appl) w (lift1 is
94 t)))))))))).(\lambda (a3: A).(\lambda (H3: (leq g (AHead a a0) a3)).(let H4
95 \def H2 in (and_ind (arity g c t (AHead a a0)) (\forall (d: C).(\forall (w:
96 T).((sc3 g a d w) \to (\forall (is: PList).((drop1 is d c) \to (sc3 g a0 d
97 (THead (Flat Appl) w (lift1 is t)))))))) (sc3 g a3 c t) (\lambda (H5: (arity
98 g c t (AHead a a0))).(\lambda (H6: ((\forall (d: C).(\forall (w: T).((sc3 g a
99 d w) \to (\forall (is: PList).((drop1 is d c) \to (sc3 g a0 d (THead (Flat
100 Appl) w (lift1 is t)))))))))).(let H_x \def (leq_gen_head g a a0 a3 H3) in
101 (let H7 \def H_x in (ex3_2_ind A A (\lambda (a4: A).(\lambda (a5: A).(eq A a3
102 (AHead a4 a5)))) (\lambda (a4: A).(\lambda (_: A).(leq g a a4))) (\lambda (_:
103 A).(\lambda (a5: A).(leq g a0 a5))) (sc3 g a3 c t) (\lambda (x0: A).(\lambda
104 (x1: A).(\lambda (H8: (eq A a3 (AHead x0 x1))).(\lambda (H9: (leq g a
105 x0)).(\lambda (H10: (leq g a0 x1)).(eq_ind_r A (AHead x0 x1) (\lambda (a4:
106 A).(sc3 g a4 c t)) (conj (arity g c t (AHead x0 x1)) (\forall (d: C).(\forall
107 (w: T).((sc3 g x0 d w) \to (\forall (is: PList).((drop1 is d c) \to (sc3 g x1
108 d (THead (Flat Appl) w (lift1 is t)))))))) (arity_repl g c t (AHead a a0) H5
109 (AHead x0 x1) (leq_head g a x0 H9 a0 x1 H10)) (\lambda (d: C).(\lambda (w:
110 T).(\lambda (H11: (sc3 g x0 d w)).(\lambda (is: PList).(\lambda (H12: (drop1
111 is d c)).(H0 (\lambda (a4: A).(\lambda (H13: (llt a4 a0)).(\lambda (c0:
112 C).(\lambda (t0: T).(\lambda (H14: (sc3 g a4 c0 t0)).(\lambda (a5:
113 A).(\lambda (H15: (leq g a4 a5)).(H1 a4 (llt_trans a4 a0 (AHead a a0) H13
114 (llt_head_dx a a0)) c0 t0 H14 a5 H15)))))))) d (THead (Flat Appl) w (lift1 is
115 t)) (H6 d w (H1 x0 (llt_repl g a x0 H9 (AHead a a0) (llt_head_sx a a0)) d w
116 H11 a (leq_sym g a x0 H9)) is H12) x1 H10))))))) a3 H8)))))) H7)))))
117 H4)))))))))))) a2)) a1)).
120 \forall (g: G).(\forall (a: A).(\forall (e: C).(\forall (t: T).((sc3 g a e
121 t) \to (\forall (c: C).(\forall (h: nat).(\forall (d: nat).((drop h d c e)
122 \to (sc3 g a c (lift h d t))))))))))
124 \lambda (g: G).(\lambda (a: A).(A_ind (\lambda (a0: A).(\forall (e:
125 C).(\forall (t: T).((sc3 g a0 e t) \to (\forall (c: C).(\forall (h:
126 nat).(\forall (d: nat).((drop h d c e) \to (sc3 g a0 c (lift h d t))))))))))
127 (\lambda (n: nat).(\lambda (n0: nat).(\lambda (e: C).(\lambda (t: T).(\lambda
128 (H: (land (arity g e t (ASort n n0)) (sn3 e t))).(\lambda (c: C).(\lambda (h:
129 nat).(\lambda (d: nat).(\lambda (H0: (drop h d c e)).(let H1 \def H in
130 (and_ind (arity g e t (ASort n n0)) (sn3 e t) (land (arity g c (lift h d t)
131 (ASort n n0)) (sn3 c (lift h d t))) (\lambda (H2: (arity g e t (ASort n
132 n0))).(\lambda (H3: (sn3 e t)).(conj (arity g c (lift h d t) (ASort n n0))
133 (sn3 c (lift h d t)) (arity_lift g e t (ASort n n0) H2 c h d H0) (sn3_lift e
134 t H3 c h d H0)))) H1))))))))))) (\lambda (a0: A).(\lambda (_: ((\forall (e:
135 C).(\forall (t: T).((sc3 g a0 e t) \to (\forall (c: C).(\forall (h:
136 nat).(\forall (d: nat).((drop h d c e) \to (sc3 g a0 c (lift h d
137 t))))))))))).(\lambda (a1: A).(\lambda (_: ((\forall (e: C).(\forall (t:
138 T).((sc3 g a1 e t) \to (\forall (c: C).(\forall (h: nat).(\forall (d:
139 nat).((drop h d c e) \to (sc3 g a1 c (lift h d t))))))))))).(\lambda (e:
140 C).(\lambda (t: T).(\lambda (H1: (land (arity g e t (AHead a0 a1)) (\forall
141 (d: C).(\forall (w: T).((sc3 g a0 d w) \to (\forall (is: PList).((drop1 is d
142 e) \to (sc3 g a1 d (THead (Flat Appl) w (lift1 is t)))))))))).(\lambda (c:
143 C).(\lambda (h: nat).(\lambda (d: nat).(\lambda (H2: (drop h d c e)).(let H3
144 \def H1 in (and_ind (arity g e t (AHead a0 a1)) (\forall (d0: C).(\forall (w:
145 T).((sc3 g a0 d0 w) \to (\forall (is: PList).((drop1 is d0 e) \to (sc3 g a1
146 d0 (THead (Flat Appl) w (lift1 is t)))))))) (land (arity g c (lift h d t)
147 (AHead a0 a1)) (\forall (d0: C).(\forall (w: T).((sc3 g a0 d0 w) \to (\forall
148 (is: PList).((drop1 is d0 c) \to (sc3 g a1 d0 (THead (Flat Appl) w (lift1 is
149 (lift h d t)))))))))) (\lambda (H4: (arity g e t (AHead a0 a1))).(\lambda
150 (H5: ((\forall (d0: C).(\forall (w: T).((sc3 g a0 d0 w) \to (\forall (is:
151 PList).((drop1 is d0 e) \to (sc3 g a1 d0 (THead (Flat Appl) w (lift1 is
152 t)))))))))).(conj (arity g c (lift h d t) (AHead a0 a1)) (\forall (d0:
153 C).(\forall (w: T).((sc3 g a0 d0 w) \to (\forall (is: PList).((drop1 is d0 c)
154 \to (sc3 g a1 d0 (THead (Flat Appl) w (lift1 is (lift h d t)))))))))
155 (arity_lift g e t (AHead a0 a1) H4 c h d H2) (\lambda (d0: C).(\lambda (w:
156 T).(\lambda (H6: (sc3 g a0 d0 w)).(\lambda (is: PList).(\lambda (H7: (drop1
157 is d0 c)).(let H_y \def (H5 d0 w H6 (PConsTail is h d)) in (eq_ind T (lift1
158 (PConsTail is h d) t) (\lambda (t0: T).(sc3 g a1 d0 (THead (Flat Appl) w
159 t0))) (H_y (drop1_cons_tail c e h d H2 is d0 H7)) (lift1 is (lift h d t))
160 (lift1_cons_tail t h d is))))))))))) H3))))))))))))) a)).
163 \forall (g: G).(\forall (e: C).(\forall (a: A).(\forall (hds:
164 PList).(\forall (c: C).(\forall (t: T).((sc3 g a e t) \to ((drop1 hds c e)
165 \to (sc3 g a c (lift1 hds t)))))))))
167 \lambda (g: G).(\lambda (e: C).(\lambda (a: A).(\lambda (hds:
168 PList).(PList_ind (\lambda (p: PList).(\forall (c: C).(\forall (t: T).((sc3 g
169 a e t) \to ((drop1 p c e) \to (sc3 g a c (lift1 p t))))))) (\lambda (c:
170 C).(\lambda (t: T).(\lambda (H: (sc3 g a e t)).(\lambda (H0: (drop1 PNil c
171 e)).(let H1 \def (match H0 in drop1 return (\lambda (p: PList).(\lambda (c0:
172 C).(\lambda (c1: C).(\lambda (_: (drop1 p c0 c1)).((eq PList p PNil) \to ((eq
173 C c0 c) \to ((eq C c1 e) \to (sc3 g a c t)))))))) with [(drop1_nil c0)
174 \Rightarrow (\lambda (_: (eq PList PNil PNil)).(\lambda (H2: (eq C c0
175 c)).(\lambda (H3: (eq C c0 e)).(eq_ind C c (\lambda (c1: C).((eq C c1 e) \to
176 (sc3 g a c t))) (\lambda (H4: (eq C c e)).(eq_ind C e (\lambda (c1: C).(sc3 g
177 a c1 t)) H c (sym_eq C c e H4))) c0 (sym_eq C c0 c H2) H3)))) | (drop1_cons
178 c1 c2 h d H1 c3 hds0 H2) \Rightarrow (\lambda (H3: (eq PList (PCons h d hds0)
179 PNil)).(\lambda (H4: (eq C c1 c)).(\lambda (H5: (eq C c3 e)).((let H6 \def
180 (eq_ind PList (PCons h d hds0) (\lambda (e0: PList).(match e0 in PList return
181 (\lambda (_: PList).Prop) with [PNil \Rightarrow False | (PCons _ _ _)
182 \Rightarrow True])) I PNil H3) in (False_ind ((eq C c1 c) \to ((eq C c3 e)
183 \to ((drop h d c1 c2) \to ((drop1 hds0 c2 c3) \to (sc3 g a c t))))) H6)) H4
184 H5 H1 H2))))]) in (H1 (refl_equal PList PNil) (refl_equal C c) (refl_equal C
185 e))))))) (\lambda (n: nat).(\lambda (n0: nat).(\lambda (p: PList).(\lambda
186 (H: ((\forall (c: C).(\forall (t: T).((sc3 g a e t) \to ((drop1 p c e) \to
187 (sc3 g a c (lift1 p t)))))))).(\lambda (c: C).(\lambda (t: T).(\lambda (H0:
188 (sc3 g a e t)).(\lambda (H1: (drop1 (PCons n n0 p) c e)).(let H2 \def (match
189 H1 in drop1 return (\lambda (p0: PList).(\lambda (c0: C).(\lambda (c1:
190 C).(\lambda (_: (drop1 p0 c0 c1)).((eq PList p0 (PCons n n0 p)) \to ((eq C c0
191 c) \to ((eq C c1 e) \to (sc3 g a c (lift n n0 (lift1 p t)))))))))) with
192 [(drop1_nil c0) \Rightarrow (\lambda (H2: (eq PList PNil (PCons n n0
193 p))).(\lambda (H3: (eq C c0 c)).(\lambda (H4: (eq C c0 e)).((let H5 \def
194 (eq_ind PList PNil (\lambda (e0: PList).(match e0 in PList return (\lambda
195 (_: PList).Prop) with [PNil \Rightarrow True | (PCons _ _ _) \Rightarrow
196 False])) I (PCons n n0 p) H2) in (False_ind ((eq C c0 c) \to ((eq C c0 e) \to
197 (sc3 g a c (lift n n0 (lift1 p t))))) H5)) H3 H4)))) | (drop1_cons c1 c2 h d
198 H2 c3 hds0 H3) \Rightarrow (\lambda (H4: (eq PList (PCons h d hds0) (PCons n
199 n0 p))).(\lambda (H5: (eq C c1 c)).(\lambda (H6: (eq C c3 e)).((let H7 \def
200 (f_equal PList PList (\lambda (e0: PList).(match e0 in PList return (\lambda
201 (_: PList).PList) with [PNil \Rightarrow hds0 | (PCons _ _ p0) \Rightarrow
202 p0])) (PCons h d hds0) (PCons n n0 p) H4) in ((let H8 \def (f_equal PList nat
203 (\lambda (e0: PList).(match e0 in PList return (\lambda (_: PList).nat) with
204 [PNil \Rightarrow d | (PCons _ n1 _) \Rightarrow n1])) (PCons h d hds0)
205 (PCons n n0 p) H4) in ((let H9 \def (f_equal PList nat (\lambda (e0:
206 PList).(match e0 in PList return (\lambda (_: PList).nat) with [PNil
207 \Rightarrow h | (PCons n1 _ _) \Rightarrow n1])) (PCons h d hds0) (PCons n n0
208 p) H4) in (eq_ind nat n (\lambda (n1: nat).((eq nat d n0) \to ((eq PList hds0
209 p) \to ((eq C c1 c) \to ((eq C c3 e) \to ((drop n1 d c1 c2) \to ((drop1 hds0
210 c2 c3) \to (sc3 g a c (lift n n0 (lift1 p t)))))))))) (\lambda (H10: (eq nat
211 d n0)).(eq_ind nat n0 (\lambda (n1: nat).((eq PList hds0 p) \to ((eq C c1 c)
212 \to ((eq C c3 e) \to ((drop n n1 c1 c2) \to ((drop1 hds0 c2 c3) \to (sc3 g a
213 c (lift n n0 (lift1 p t))))))))) (\lambda (H11: (eq PList hds0 p)).(eq_ind
214 PList p (\lambda (p0: PList).((eq C c1 c) \to ((eq C c3 e) \to ((drop n n0 c1
215 c2) \to ((drop1 p0 c2 c3) \to (sc3 g a c (lift n n0 (lift1 p t))))))))
216 (\lambda (H12: (eq C c1 c)).(eq_ind C c (\lambda (c0: C).((eq C c3 e) \to
217 ((drop n n0 c0 c2) \to ((drop1 p c2 c3) \to (sc3 g a c (lift n n0 (lift1 p
218 t))))))) (\lambda (H13: (eq C c3 e)).(eq_ind C e (\lambda (c0: C).((drop n n0
219 c c2) \to ((drop1 p c2 c0) \to (sc3 g a c (lift n n0 (lift1 p t))))))
220 (\lambda (H14: (drop n n0 c c2)).(\lambda (H15: (drop1 p c2 e)).(sc3_lift g a
221 c2 (lift1 p t) (H c2 t H0 H15) c n n0 H14))) c3 (sym_eq C c3 e H13))) c1
222 (sym_eq C c1 c H12))) hds0 (sym_eq PList hds0 p H11))) d (sym_eq nat d n0
223 H10))) h (sym_eq nat h n H9))) H8)) H7)) H5 H6 H2 H3))))]) in (H2 (refl_equal
224 PList (PCons n n0 p)) (refl_equal C c) (refl_equal C e))))))))))) hds)))).
227 \forall (g: G).(\forall (a: A).(\forall (vs: TList).(\forall (i:
228 nat).(\forall (d: C).(\forall (v: T).(\forall (c: C).((sc3 g a c (THeads
229 (Flat Appl) vs (lift (S i) O v))) \to ((getl i c (CHead d (Bind Abbr) v)) \to
230 (sc3 g a c (THeads (Flat Appl) vs (TLRef i)))))))))))
234 \forall (g: G).(\forall (a: A).(\forall (vs: TList).(\forall (c: C).(\forall
235 (u: T).((sc3 g (asucc g a) c (THeads (Flat Appl) vs u)) \to (\forall (t:
236 T).((sc3 g a c (THeads (Flat Appl) vs t)) \to (sc3 g a c (THeads (Flat Appl)
237 vs (THead (Flat Cast) u t))))))))))
239 \lambda (g: G).(\lambda (a: A).(A_ind (\lambda (a0: A).(\forall (vs:
240 TList).(\forall (c: C).(\forall (u: T).((sc3 g (asucc g a0) c (THeads (Flat
241 Appl) vs u)) \to (\forall (t: T).((sc3 g a0 c (THeads (Flat Appl) vs t)) \to
242 (sc3 g a0 c (THeads (Flat Appl) vs (THead (Flat Cast) u t)))))))))) (\lambda
243 (n: nat).(\lambda (n0: nat).(\lambda (vs: TList).(\lambda (c: C).(\lambda (u:
244 T).(\lambda (H: (sc3 g (match n with [O \Rightarrow (ASort O (next g n0)) |
245 (S h) \Rightarrow (ASort h n0)]) c (THeads (Flat Appl) vs u))).(\lambda (t:
246 T).(\lambda (H0: (land (arity g c (THeads (Flat Appl) vs t) (ASort n n0))
247 (sn3 c (THeads (Flat Appl) vs t)))).(nat_ind (\lambda (n1: nat).((sc3 g
248 (match n1 with [O \Rightarrow (ASort O (next g n0)) | (S h) \Rightarrow
249 (ASort h n0)]) c (THeads (Flat Appl) vs u)) \to ((land (arity g c (THeads
250 (Flat Appl) vs t) (ASort n1 n0)) (sn3 c (THeads (Flat Appl) vs t))) \to (land
251 (arity g c (THeads (Flat Appl) vs (THead (Flat Cast) u t)) (ASort n1 n0))
252 (sn3 c (THeads (Flat Appl) vs (THead (Flat Cast) u t))))))) (\lambda (H1:
253 (sc3 g (ASort O (next g n0)) c (THeads (Flat Appl) vs u))).(\lambda (H2:
254 (land (arity g c (THeads (Flat Appl) vs t) (ASort O n0)) (sn3 c (THeads (Flat
255 Appl) vs t)))).(let H3 \def H1 in (and_ind (arity g c (THeads (Flat Appl) vs
256 u) (ASort O (next g n0))) (sn3 c (THeads (Flat Appl) vs u)) (land (arity g c
257 (THeads (Flat Appl) vs (THead (Flat Cast) u t)) (ASort O n0)) (sn3 c (THeads
258 (Flat Appl) vs (THead (Flat Cast) u t)))) (\lambda (H4: (arity g c (THeads
259 (Flat Appl) vs u) (ASort O (next g n0)))).(\lambda (H5: (sn3 c (THeads (Flat
260 Appl) vs u))).(let H6 \def H2 in (and_ind (arity g c (THeads (Flat Appl) vs
261 t) (ASort O n0)) (sn3 c (THeads (Flat Appl) vs t)) (land (arity g c (THeads
262 (Flat Appl) vs (THead (Flat Cast) u t)) (ASort O n0)) (sn3 c (THeads (Flat
263 Appl) vs (THead (Flat Cast) u t)))) (\lambda (H7: (arity g c (THeads (Flat
264 Appl) vs t) (ASort O n0))).(\lambda (H8: (sn3 c (THeads (Flat Appl) vs
265 t))).(conj (arity g c (THeads (Flat Appl) vs (THead (Flat Cast) u t)) (ASort
266 O n0)) (sn3 c (THeads (Flat Appl) vs (THead (Flat Cast) u t)))
267 (arity_appls_cast g c u t vs (ASort O n0) H4 H7) (sn3_appls_cast c vs u H5 t
268 H8)))) H6)))) H3)))) (\lambda (n1: nat).(\lambda (_: (((sc3 g (match n1 with
269 [O \Rightarrow (ASort O (next g n0)) | (S h) \Rightarrow (ASort h n0)]) c
270 (THeads (Flat Appl) vs u)) \to ((land (arity g c (THeads (Flat Appl) vs t)
271 (ASort n1 n0)) (sn3 c (THeads (Flat Appl) vs t))) \to (land (arity g c
272 (THeads (Flat Appl) vs (THead (Flat Cast) u t)) (ASort n1 n0)) (sn3 c (THeads
273 (Flat Appl) vs (THead (Flat Cast) u t)))))))).(\lambda (H1: (sc3 g (ASort n1
274 n0) c (THeads (Flat Appl) vs u))).(\lambda (H2: (land (arity g c (THeads
275 (Flat Appl) vs t) (ASort (S n1) n0)) (sn3 c (THeads (Flat Appl) vs t)))).(let
276 H3 \def H1 in (and_ind (arity g c (THeads (Flat Appl) vs u) (ASort n1 n0))
277 (sn3 c (THeads (Flat Appl) vs u)) (land (arity g c (THeads (Flat Appl) vs
278 (THead (Flat Cast) u t)) (ASort (S n1) n0)) (sn3 c (THeads (Flat Appl) vs
279 (THead (Flat Cast) u t)))) (\lambda (H4: (arity g c (THeads (Flat Appl) vs u)
280 (ASort n1 n0))).(\lambda (H5: (sn3 c (THeads (Flat Appl) vs u))).(let H6 \def
281 H2 in (and_ind (arity g c (THeads (Flat Appl) vs t) (ASort (S n1) n0)) (sn3 c
282 (THeads (Flat Appl) vs t)) (land (arity g c (THeads (Flat Appl) vs (THead
283 (Flat Cast) u t)) (ASort (S n1) n0)) (sn3 c (THeads (Flat Appl) vs (THead
284 (Flat Cast) u t)))) (\lambda (H7: (arity g c (THeads (Flat Appl) vs t) (ASort
285 (S n1) n0))).(\lambda (H8: (sn3 c (THeads (Flat Appl) vs t))).(conj (arity g
286 c (THeads (Flat Appl) vs (THead (Flat Cast) u t)) (ASort (S n1) n0)) (sn3 c
287 (THeads (Flat Appl) vs (THead (Flat Cast) u t))) (arity_appls_cast g c u t vs
288 (ASort (S n1) n0) H4 H7) (sn3_appls_cast c vs u H5 t H8)))) H6)))) H3)))))) n
289 H H0))))))))) (\lambda (a0: A).(\lambda (_: ((\forall (vs: TList).(\forall
290 (c: C).(\forall (u: T).((sc3 g (asucc g a0) c (THeads (Flat Appl) vs u)) \to
291 (\forall (t: T).((sc3 g a0 c (THeads (Flat Appl) vs t)) \to (sc3 g a0 c
292 (THeads (Flat Appl) vs (THead (Flat Cast) u t))))))))))).(\lambda (a1:
293 A).(\lambda (H0: ((\forall (vs: TList).(\forall (c: C).(\forall (u: T).((sc3
294 g (asucc g a1) c (THeads (Flat Appl) vs u)) \to (\forall (t: T).((sc3 g a1 c
295 (THeads (Flat Appl) vs t)) \to (sc3 g a1 c (THeads (Flat Appl) vs (THead
296 (Flat Cast) u t))))))))))).(\lambda (vs: TList).(\lambda (c: C).(\lambda (u:
297 T).(\lambda (H1: (land (arity g c (THeads (Flat Appl) vs u) (AHead a0 (asucc
298 g a1))) (\forall (d: C).(\forall (w: T).((sc3 g a0 d w) \to (\forall (is:
299 PList).((drop1 is d c) \to (sc3 g (asucc g a1) d (THead (Flat Appl) w (lift1
300 is (THeads (Flat Appl) vs u))))))))))).(\lambda (t: T).(\lambda (H2: (land
301 (arity g c (THeads (Flat Appl) vs t) (AHead a0 a1)) (\forall (d: C).(\forall
302 (w: T).((sc3 g a0 d w) \to (\forall (is: PList).((drop1 is d c) \to (sc3 g a1
303 d (THead (Flat Appl) w (lift1 is (THeads (Flat Appl) vs t))))))))))).(let H3
304 \def H1 in (and_ind (arity g c (THeads (Flat Appl) vs u) (AHead a0 (asucc g
305 a1))) (\forall (d: C).(\forall (w: T).((sc3 g a0 d w) \to (\forall (is:
306 PList).((drop1 is d c) \to (sc3 g (asucc g a1) d (THead (Flat Appl) w (lift1
307 is (THeads (Flat Appl) vs u))))))))) (land (arity g c (THeads (Flat Appl) vs
308 (THead (Flat Cast) u t)) (AHead a0 a1)) (\forall (d: C).(\forall (w: T).((sc3
309 g a0 d w) \to (\forall (is: PList).((drop1 is d c) \to (sc3 g a1 d (THead
310 (Flat Appl) w (lift1 is (THeads (Flat Appl) vs (THead (Flat Cast) u
311 t))))))))))) (\lambda (H4: (arity g c (THeads (Flat Appl) vs u) (AHead a0
312 (asucc g a1)))).(\lambda (H5: ((\forall (d: C).(\forall (w: T).((sc3 g a0 d
313 w) \to (\forall (is: PList).((drop1 is d c) \to (sc3 g (asucc g a1) d (THead
314 (Flat Appl) w (lift1 is (THeads (Flat Appl) vs u))))))))))).(let H6 \def H2
315 in (and_ind (arity g c (THeads (Flat Appl) vs t) (AHead a0 a1)) (\forall (d:
316 C).(\forall (w: T).((sc3 g a0 d w) \to (\forall (is: PList).((drop1 is d c)
317 \to (sc3 g a1 d (THead (Flat Appl) w (lift1 is (THeads (Flat Appl) vs
318 t))))))))) (land (arity g c (THeads (Flat Appl) vs (THead (Flat Cast) u t))
319 (AHead a0 a1)) (\forall (d: C).(\forall (w: T).((sc3 g a0 d w) \to (\forall
320 (is: PList).((drop1 is d c) \to (sc3 g a1 d (THead (Flat Appl) w (lift1 is
321 (THeads (Flat Appl) vs (THead (Flat Cast) u t))))))))))) (\lambda (H7: (arity
322 g c (THeads (Flat Appl) vs t) (AHead a0 a1))).(\lambda (H8: ((\forall (d:
323 C).(\forall (w: T).((sc3 g a0 d w) \to (\forall (is: PList).((drop1 is d c)
324 \to (sc3 g a1 d (THead (Flat Appl) w (lift1 is (THeads (Flat Appl) vs
325 t))))))))))).(conj (arity g c (THeads (Flat Appl) vs (THead (Flat Cast) u t))
326 (AHead a0 a1)) (\forall (d: C).(\forall (w: T).((sc3 g a0 d w) \to (\forall
327 (is: PList).((drop1 is d c) \to (sc3 g a1 d (THead (Flat Appl) w (lift1 is
328 (THeads (Flat Appl) vs (THead (Flat Cast) u t)))))))))) (arity_appls_cast g c
329 u t vs (AHead a0 a1) H4 H7) (\lambda (d: C).(\lambda (w: T).(\lambda (H9:
330 (sc3 g a0 d w)).(\lambda (is: PList).(\lambda (H10: (drop1 is d c)).(let H_y
331 \def (H0 (TCons w (lifts1 is vs))) in (eq_ind_r T (THeads (Flat Appl) (lifts1
332 is vs) (lift1 is (THead (Flat Cast) u t))) (\lambda (t0: T).(sc3 g a1 d
333 (THead (Flat Appl) w t0))) (eq_ind_r T (THead (Flat Cast) (lift1 is u) (lift1
334 is t)) (\lambda (t0: T).(sc3 g a1 d (THead (Flat Appl) w (THeads (Flat Appl)
335 (lifts1 is vs) t0)))) (H_y d (lift1 is u) (eq_ind T (lift1 is (THeads (Flat
336 Appl) vs u)) (\lambda (t0: T).(sc3 g (asucc g a1) d (THead (Flat Appl) w
337 t0))) (H5 d w H9 is H10) (THeads (Flat Appl) (lifts1 is vs) (lift1 is u))
338 (lifts1_flat Appl is u vs)) (lift1 is t) (eq_ind T (lift1 is (THeads (Flat
339 Appl) vs t)) (\lambda (t0: T).(sc3 g a1 d (THead (Flat Appl) w t0))) (H8 d w
340 H9 is H10) (THeads (Flat Appl) (lifts1 is vs) (lift1 is t)) (lifts1_flat Appl
341 is t vs))) (lift1 is (THead (Flat Cast) u t)) (lift1_flat Cast is u t))
342 (lift1 is (THeads (Flat Appl) vs (THead (Flat Cast) u t))) (lifts1_flat Appl
343 is (THead (Flat Cast) u t) vs))))))))))) H6)))) H3)))))))))))) a)).
345 theorem sc3_props__sc3_sn3_abst:
346 \forall (g: G).(\forall (a: A).(land (\forall (c: C).(\forall (t: T).((sc3 g
347 a c t) \to (sn3 c t)))) (\forall (vs: TList).(\forall (i: nat).(let t \def
348 (THeads (Flat Appl) vs (TLRef i)) in (\forall (c: C).((arity g c t a) \to
349 ((nf2 c (TLRef i)) \to ((sns3 c vs) \to (sc3 g a c t))))))))))
351 \lambda (g: G).(\lambda (a: A).(A_ind (\lambda (a0: A).(land (\forall (c:
352 C).(\forall (t: T).((sc3 g a0 c t) \to (sn3 c t)))) (\forall (vs:
353 TList).(\forall (i: nat).(let t \def (THeads (Flat Appl) vs (TLRef i)) in
354 (\forall (c: C).((arity g c t a0) \to ((nf2 c (TLRef i)) \to ((sns3 c vs) \to
355 (sc3 g a0 c t)))))))))) (\lambda (n: nat).(\lambda (n0: nat).(conj (\forall
356 (c: C).(\forall (t: T).((land (arity g c t (ASort n n0)) (sn3 c t)) \to (sn3
357 c t)))) (\forall (vs: TList).(\forall (i: nat).(\forall (c: C).((arity g c
358 (THeads (Flat Appl) vs (TLRef i)) (ASort n n0)) \to ((nf2 c (TLRef i)) \to
359 ((sns3 c vs) \to (land (arity g c (THeads (Flat Appl) vs (TLRef i)) (ASort n
360 n0)) (sn3 c (THeads (Flat Appl) vs (TLRef i)))))))))) (\lambda (c:
361 C).(\lambda (t: T).(\lambda (H: (land (arity g c t (ASort n n0)) (sn3 c
362 t))).(let H0 \def H in (and_ind (arity g c t (ASort n n0)) (sn3 c t) (sn3 c
363 t) (\lambda (_: (arity g c t (ASort n n0))).(\lambda (H2: (sn3 c t)).H2))
364 H0))))) (\lambda (vs: TList).(\lambda (i: nat).(\lambda (c: C).(\lambda (H:
365 (arity g c (THeads (Flat Appl) vs (TLRef i)) (ASort n n0))).(\lambda (H0:
366 (nf2 c (TLRef i))).(\lambda (H1: (sns3 c vs)).(conj (arity g c (THeads (Flat
367 Appl) vs (TLRef i)) (ASort n n0)) (sn3 c (THeads (Flat Appl) vs (TLRef i))) H
368 (sn3_appls_lref c i H0 vs H1))))))))))) (\lambda (a0: A).(\lambda (H: (land
369 (\forall (c: C).(\forall (t: T).((sc3 g a0 c t) \to (sn3 c t)))) (\forall
370 (vs: TList).(\forall (i: nat).(\forall (c: C).((arity g c (THeads (Flat Appl)
371 vs (TLRef i)) a0) \to ((nf2 c (TLRef i)) \to ((sns3 c vs) \to (sc3 g a0 c
372 (THeads (Flat Appl) vs (TLRef i))))))))))).(\lambda (a1: A).(\lambda (H0:
373 (land (\forall (c: C).(\forall (t: T).((sc3 g a1 c t) \to (sn3 c t))))
374 (\forall (vs: TList).(\forall (i: nat).(\forall (c: C).((arity g c (THeads
375 (Flat Appl) vs (TLRef i)) a1) \to ((nf2 c (TLRef i)) \to ((sns3 c vs) \to
376 (sc3 g a1 c (THeads (Flat Appl) vs (TLRef i))))))))))).(conj (\forall (c:
377 C).(\forall (t: T).((land (arity g c t (AHead a0 a1)) (\forall (d:
378 C).(\forall (w: T).((sc3 g a0 d w) \to (\forall (is: PList).((drop1 is d c)
379 \to (sc3 g a1 d (THead (Flat Appl) w (lift1 is t))))))))) \to (sn3 c t))))
380 (\forall (vs: TList).(\forall (i: nat).(\forall (c: C).((arity g c (THeads
381 (Flat Appl) vs (TLRef i)) (AHead a0 a1)) \to ((nf2 c (TLRef i)) \to ((sns3 c
382 vs) \to (land (arity g c (THeads (Flat Appl) vs (TLRef i)) (AHead a0 a1))
383 (\forall (d: C).(\forall (w: T).((sc3 g a0 d w) \to (\forall (is:
384 PList).((drop1 is d c) \to (sc3 g a1 d (THead (Flat Appl) w (lift1 is (THeads
385 (Flat Appl) vs (TLRef i))))))))))))))))) (\lambda (c: C).(\lambda (t:
386 T).(\lambda (H1: (land (arity g c t (AHead a0 a1)) (\forall (d: C).(\forall
387 (w: T).((sc3 g a0 d w) \to (\forall (is: PList).((drop1 is d c) \to (sc3 g a1
388 d (THead (Flat Appl) w (lift1 is t)))))))))).(let H2 \def H in (and_ind
389 (\forall (c0: C).(\forall (t0: T).((sc3 g a0 c0 t0) \to (sn3 c0 t0))))
390 (\forall (vs: TList).(\forall (i: nat).(\forall (c0: C).((arity g c0 (THeads
391 (Flat Appl) vs (TLRef i)) a0) \to ((nf2 c0 (TLRef i)) \to ((sns3 c0 vs) \to
392 (sc3 g a0 c0 (THeads (Flat Appl) vs (TLRef i))))))))) (sn3 c t) (\lambda (_:
393 ((\forall (c0: C).(\forall (t0: T).((sc3 g a0 c0 t0) \to (sn3 c0
394 t0)))))).(\lambda (H4: ((\forall (vs: TList).(\forall (i: nat).(\forall (c0:
395 C).((arity g c0 (THeads (Flat Appl) vs (TLRef i)) a0) \to ((nf2 c0 (TLRef i))
396 \to ((sns3 c0 vs) \to (sc3 g a0 c0 (THeads (Flat Appl) vs (TLRef
397 i))))))))))).(let H5 \def H0 in (and_ind (\forall (c0: C).(\forall (t0:
398 T).((sc3 g a1 c0 t0) \to (sn3 c0 t0)))) (\forall (vs: TList).(\forall (i:
399 nat).(\forall (c0: C).((arity g c0 (THeads (Flat Appl) vs (TLRef i)) a1) \to
400 ((nf2 c0 (TLRef i)) \to ((sns3 c0 vs) \to (sc3 g a1 c0 (THeads (Flat Appl) vs
401 (TLRef i))))))))) (sn3 c t) (\lambda (H6: ((\forall (c0: C).(\forall (t0:
402 T).((sc3 g a1 c0 t0) \to (sn3 c0 t0)))))).(\lambda (_: ((\forall (vs:
403 TList).(\forall (i: nat).(\forall (c0: C).((arity g c0 (THeads (Flat Appl) vs
404 (TLRef i)) a1) \to ((nf2 c0 (TLRef i)) \to ((sns3 c0 vs) \to (sc3 g a1 c0
405 (THeads (Flat Appl) vs (TLRef i))))))))))).(let H8 \def H1 in (and_ind (arity
406 g c t (AHead a0 a1)) (\forall (d: C).(\forall (w: T).((sc3 g a0 d w) \to
407 (\forall (is: PList).((drop1 is d c) \to (sc3 g a1 d (THead (Flat Appl) w
408 (lift1 is t)))))))) (sn3 c t) (\lambda (H9: (arity g c t (AHead a0
409 a1))).(\lambda (H10: ((\forall (d: C).(\forall (w: T).((sc3 g a0 d w) \to
410 (\forall (is: PList).((drop1 is d c) \to (sc3 g a1 d (THead (Flat Appl) w
411 (lift1 is t)))))))))).(let H_y \def (arity_aprem g c t (AHead a0 a1) H9 O a0)
412 in (let H11 \def (H_y (aprem_zero a0 a1)) in (ex2_3_ind C T nat (\lambda (d:
413 C).(\lambda (_: T).(\lambda (j: nat).(drop j O d c)))) (\lambda (d:
414 C).(\lambda (u: T).(\lambda (_: nat).(arity g d u (asucc g a0))))) (sn3 c t)
415 (\lambda (x0: C).(\lambda (x1: T).(\lambda (x2: nat).(\lambda (H12: (drop x2
416 O x0 c)).(\lambda (H13: (arity g x0 x1 (asucc g a0))).(let H_y0 \def (H10
417 (CHead x0 (Bind Abst) x1) (TLRef O) (H4 TNil O (CHead x0 (Bind Abst) x1)
418 (arity_abst g (CHead x0 (Bind Abst) x1) x0 x1 O (getl_refl Abst x0 x1) a0
419 H13) (nf2_lref_abst (CHead x0 (Bind Abst) x1) x0 x1 O (getl_refl Abst x0 x1))
420 I) (PCons (S x2) O PNil)) in (let H_y1 \def (H6 (CHead x0 (Bind Abst) x1)
421 (THead (Flat Appl) (TLRef O) (lift (S x2) O t)) (H_y0 (drop1_cons (CHead x0
422 (Bind Abst) x1) c (S x2) O (drop_drop (Bind Abst) x2 x0 c H12 x1) c PNil
423 (drop1_nil c)))) in (let H_x \def (sn3_gen_flat Appl (CHead x0 (Bind Abst)
424 x1) (TLRef O) (lift (S x2) O t) H_y1) in (let H14 \def H_x in (and_ind (sn3
425 (CHead x0 (Bind Abst) x1) (TLRef O)) (sn3 (CHead x0 (Bind Abst) x1) (lift (S
426 x2) O t)) (sn3 c t) (\lambda (_: (sn3 (CHead x0 (Bind Abst) x1) (TLRef
427 O))).(\lambda (H16: (sn3 (CHead x0 (Bind Abst) x1) (lift (S x2) O
428 t))).(sn3_gen_lift (CHead x0 (Bind Abst) x1) t (S x2) O H16 c (drop_drop
429 (Bind Abst) x2 x0 c H12 x1)))) H14)))))))))) H11))))) H8)))) H5)))) H2)))))
430 (\lambda (vs: TList).(\lambda (i: nat).(\lambda (c: C).(\lambda (H1: (arity g
431 c (THeads (Flat Appl) vs (TLRef i)) (AHead a0 a1))).(\lambda (H2: (nf2 c
432 (TLRef i))).(\lambda (H3: (sns3 c vs)).(conj (arity g c (THeads (Flat Appl)
433 vs (TLRef i)) (AHead a0 a1)) (\forall (d: C).(\forall (w: T).((sc3 g a0 d w)
434 \to (\forall (is: PList).((drop1 is d c) \to (sc3 g a1 d (THead (Flat Appl) w
435 (lift1 is (THeads (Flat Appl) vs (TLRef i)))))))))) H1 (\lambda (d:
436 C).(\lambda (w: T).(\lambda (H4: (sc3 g a0 d w)).(\lambda (is:
437 PList).(\lambda (H5: (drop1 is d c)).(let H6 \def H in (and_ind (\forall (c0:
438 C).(\forall (t: T).((sc3 g a0 c0 t) \to (sn3 c0 t)))) (\forall (vs0:
439 TList).(\forall (i0: nat).(\forall (c0: C).((arity g c0 (THeads (Flat Appl)
440 vs0 (TLRef i0)) a0) \to ((nf2 c0 (TLRef i0)) \to ((sns3 c0 vs0) \to (sc3 g a0
441 c0 (THeads (Flat Appl) vs0 (TLRef i0))))))))) (sc3 g a1 d (THead (Flat Appl)
442 w (lift1 is (THeads (Flat Appl) vs (TLRef i))))) (\lambda (H7: ((\forall (c0:
443 C).(\forall (t: T).((sc3 g a0 c0 t) \to (sn3 c0 t)))))).(\lambda (_:
444 ((\forall (vs0: TList).(\forall (i0: nat).(\forall (c0: C).((arity g c0
445 (THeads (Flat Appl) vs0 (TLRef i0)) a0) \to ((nf2 c0 (TLRef i0)) \to ((sns3
446 c0 vs0) \to (sc3 g a0 c0 (THeads (Flat Appl) vs0 (TLRef i0))))))))))).(let H9
447 \def H0 in (and_ind (\forall (c0: C).(\forall (t: T).((sc3 g a1 c0 t) \to
448 (sn3 c0 t)))) (\forall (vs0: TList).(\forall (i0: nat).(\forall (c0:
449 C).((arity g c0 (THeads (Flat Appl) vs0 (TLRef i0)) a1) \to ((nf2 c0 (TLRef
450 i0)) \to ((sns3 c0 vs0) \to (sc3 g a1 c0 (THeads (Flat Appl) vs0 (TLRef
451 i0))))))))) (sc3 g a1 d (THead (Flat Appl) w (lift1 is (THeads (Flat Appl) vs
452 (TLRef i))))) (\lambda (_: ((\forall (c0: C).(\forall (t: T).((sc3 g a1 c0 t)
453 \to (sn3 c0 t)))))).(\lambda (H11: ((\forall (vs0: TList).(\forall (i0:
454 nat).(\forall (c0: C).((arity g c0 (THeads (Flat Appl) vs0 (TLRef i0)) a1)
455 \to ((nf2 c0 (TLRef i0)) \to ((sns3 c0 vs0) \to (sc3 g a1 c0 (THeads (Flat
456 Appl) vs0 (TLRef i0))))))))))).(let H_y \def (H11 (TCons w (lifts1 is vs)))
457 in (eq_ind_r T (THeads (Flat Appl) (lifts1 is vs) (lift1 is (TLRef i)))
458 (\lambda (t: T).(sc3 g a1 d (THead (Flat Appl) w t))) (eq_ind_r T (TLRef
459 (trans is i)) (\lambda (t: T).(sc3 g a1 d (THead (Flat Appl) w (THeads (Flat
460 Appl) (lifts1 is vs) t)))) (H_y (trans is i) d (eq_ind T (lift1 is (TLRef i))
461 (\lambda (t: T).(arity g d (THead (Flat Appl) w (THeads (Flat Appl) (lifts1
462 is vs) t)) a1)) (eq_ind T (lift1 is (THeads (Flat Appl) vs (TLRef i)))
463 (\lambda (t: T).(arity g d (THead (Flat Appl) w t) a1)) (arity_appl g d w a0
464 (sc3_arity_gen g d w a0 H4) (lift1 is (THeads (Flat Appl) vs (TLRef i))) a1
465 (arity_lift1 g (AHead a0 a1) c is d (THeads (Flat Appl) vs (TLRef i)) H5 H1))
466 (THeads (Flat Appl) (lifts1 is vs) (lift1 is (TLRef i))) (lifts1_flat Appl is
467 (TLRef i) vs)) (TLRef (trans is i)) (lift1_lref is i)) (eq_ind T (lift1 is
468 (TLRef i)) (\lambda (t: T).(nf2 d t)) (nf2_lift1 c is d (TLRef i) H5 H2)
469 (TLRef (trans is i)) (lift1_lref is i)) (conj (sn3 d w) (sns3 d (lifts1 is
470 vs)) (H7 d w H4) (sns3_lifts1 c is d H5 vs H3))) (lift1 is (TLRef i))
471 (lift1_lref is i)) (lift1 is (THeads (Flat Appl) vs (TLRef i))) (lifts1_flat
472 Appl is (TLRef i) vs))))) H9)))) H6))))))))))))))))))) a)).
475 \forall (g: G).(\forall (a: A).(\forall (c: C).(\forall (t: T).((sc3 g a c
478 \lambda (g: G).(\lambda (a: A).(\lambda (c: C).(\lambda (t: T).(\lambda (H:
479 (sc3 g a c t)).(let H_x \def (sc3_props__sc3_sn3_abst g a) in (let H0 \def
480 H_x in (and_ind (\forall (c0: C).(\forall (t0: T).((sc3 g a c0 t0) \to (sn3
481 c0 t0)))) (\forall (vs: TList).(\forall (i: nat).(let t0 \def (THeads (Flat
482 Appl) vs (TLRef i)) in (\forall (c0: C).((arity g c0 t0 a) \to ((nf2 c0
483 (TLRef i)) \to ((sns3 c0 vs) \to (sc3 g a c0 t0)))))))) (sn3 c t) (\lambda
484 (H1: ((\forall (c0: C).(\forall (t0: T).((sc3 g a c0 t0) \to (sn3 c0
485 t0)))))).(\lambda (_: ((\forall (vs: TList).(\forall (i: nat).(let t0 \def
486 (THeads (Flat Appl) vs (TLRef i)) in (\forall (c0: C).((arity g c0 t0 a) \to
487 ((nf2 c0 (TLRef i)) \to ((sns3 c0 vs) \to (sc3 g a c0 t0)))))))))).(H1 c t
491 \forall (g: G).(\forall (a: A).(\forall (vs: TList).(\forall (c: C).(\forall
492 (i: nat).((arity g c (THeads (Flat Appl) vs (TLRef i)) a) \to ((nf2 c (TLRef
493 i)) \to ((sns3 c vs) \to (sc3 g a c (THeads (Flat Appl) vs (TLRef i))))))))))
495 \lambda (g: G).(\lambda (a: A).(\lambda (vs: TList).(\lambda (c: C).(\lambda
496 (i: nat).(\lambda (H: (arity g c (THeads (Flat Appl) vs (TLRef i))
497 a)).(\lambda (H0: (nf2 c (TLRef i))).(\lambda (H1: (sns3 c vs)).(let H_x \def
498 (sc3_props__sc3_sn3_abst g a) in (let H2 \def H_x in (and_ind (\forall (c0:
499 C).(\forall (t: T).((sc3 g a c0 t) \to (sn3 c0 t)))) (\forall (vs0:
500 TList).(\forall (i0: nat).(let t \def (THeads (Flat Appl) vs0 (TLRef i0)) in
501 (\forall (c0: C).((arity g c0 t a) \to ((nf2 c0 (TLRef i0)) \to ((sns3 c0
502 vs0) \to (sc3 g a c0 t)))))))) (sc3 g a c (THeads (Flat Appl) vs (TLRef i)))
503 (\lambda (_: ((\forall (c0: C).(\forall (t: T).((sc3 g a c0 t) \to (sn3 c0
504 t)))))).(\lambda (H4: ((\forall (vs0: TList).(\forall (i0: nat).(let t \def
505 (THeads (Flat Appl) vs0 (TLRef i0)) in (\forall (c0: C).((arity g c0 t a) \to
506 ((nf2 c0 (TLRef i0)) \to ((sns3 c0 vs0) \to (sc3 g a c0 t)))))))))).(H4 vs i
507 c H H0 H1))) H2)))))))))).
510 \forall (g: G).(\forall (b: B).((not (eq B b Abst)) \to (\forall (a1:
511 A).(\forall (a2: A).(\forall (vs: TList).(\forall (c: C).(\forall (v:
512 T).(\forall (t: T).((sc3 g a2 (CHead c (Bind b) v) (THeads (Flat Appl) (lifts
513 (S O) O vs) t)) \to ((sc3 g a1 c v) \to (sc3 g a2 c (THeads (Flat Appl) vs
514 (THead (Bind b) v t)))))))))))))
518 \forall (g: G).(\forall (a1: A).(\forall (a2: A).(\forall (vs:
519 TList).(\forall (c: C).(\forall (v: T).(\forall (t: T).((sc3 g a2 c (THeads
520 (Flat Appl) vs (THead (Bind Abbr) v t))) \to ((sc3 g a1 c v) \to (\forall (w:
521 T).((sc3 g (asucc g a1) c w) \to (sc3 g a2 c (THeads (Flat Appl) vs (THead
522 (Flat Appl) v (THead (Bind Abst) w t))))))))))))))