]> matita.cs.unibo.it Git - helm.git/blob - matita/matita/contribs/lambdadelta/basic_1/llt/props.ma
refactoring of \lambda\delta version 1 in matita
[helm.git] / matita / matita / contribs / lambdadelta / basic_1 / llt / props.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 "Basic-1/llt/defs.ma".
18
19 include "Basic-1/leq/defs.ma".
20
21 theorem lweight_repl:
22  \forall (g: G).(\forall (a1: A).(\forall (a2: A).((leq g a1 a2) \to (eq nat 
23 (lweight a1) (lweight a2)))))
24 \def
25  \lambda (g: G).(\lambda (a1: A).(\lambda (a2: A).(\lambda (H: (leq g a1 
26 a2)).(leq_ind g (\lambda (a: A).(\lambda (a0: A).(eq nat (lweight a) (lweight 
27 a0)))) (\lambda (h1: nat).(\lambda (h2: nat).(\lambda (n1: nat).(\lambda (n2: 
28 nat).(\lambda (k: nat).(\lambda (_: (eq A (aplus g (ASort h1 n1) k) (aplus g 
29 (ASort h2 n2) k))).(refl_equal nat O))))))) (\lambda (a0: A).(\lambda (a3: 
30 A).(\lambda (_: (leq g a0 a3)).(\lambda (H1: (eq nat (lweight a0) (lweight 
31 a3))).(\lambda (a4: A).(\lambda (a5: A).(\lambda (_: (leq g a4 a5)).(\lambda 
32 (H3: (eq nat (lweight a4) (lweight a5))).(f_equal nat nat S (plus (lweight 
33 a0) (lweight a4)) (plus (lweight a3) (lweight a5)) (f_equal2 nat nat nat plus 
34 (lweight a0) (lweight a3) (lweight a4) (lweight a5) H1 H3)))))))))) a1 a2 
35 H)))).
36 (* COMMENTS
37 Initial nodes: 189
38 END *)
39
40 theorem llt_repl:
41  \forall (g: G).(\forall (a1: A).(\forall (a2: A).((leq g a1 a2) \to (\forall 
42 (a3: A).((llt a1 a3) \to (llt a2 a3))))))
43 \def
44  \lambda (g: G).(\lambda (a1: A).(\lambda (a2: A).(\lambda (H: (leq g a1 
45 a2)).(\lambda (a3: A).(\lambda (H0: (lt (lweight a1) (lweight a3))).(let H1 
46 \def (eq_ind nat (lweight a1) (\lambda (n: nat).(lt n (lweight a3))) H0 
47 (lweight a2) (lweight_repl g a1 a2 H)) in H1)))))).
48 (* COMMENTS
49 Initial nodes: 61
50 END *)
51
52 theorem llt_trans:
53  \forall (a1: A).(\forall (a2: A).(\forall (a3: A).((llt a1 a2) \to ((llt a2 
54 a3) \to (llt a1 a3)))))
55 \def
56  \lambda (a1: A).(\lambda (a2: A).(\lambda (a3: A).(\lambda (H: (lt (lweight 
57 a1) (lweight a2))).(\lambda (H0: (lt (lweight a2) (lweight a3))).(lt_trans 
58 (lweight a1) (lweight a2) (lweight a3) H H0))))).
59 (* COMMENTS
60 Initial nodes: 43
61 END *)
62
63 theorem llt_head_sx:
64  \forall (a1: A).(\forall (a2: A).(llt a1 (AHead a1 a2)))
65 \def
66  \lambda (a1: A).(\lambda (a2: A).(le_n_S (lweight a1) (plus (lweight a1) 
67 (lweight a2)) (le_plus_l (lweight a1) (lweight a2)))).
68 (* COMMENTS
69 Initial nodes: 29
70 END *)
71
72 theorem llt_head_dx:
73  \forall (a1: A).(\forall (a2: A).(llt a2 (AHead a1 a2)))
74 \def
75  \lambda (a1: A).(\lambda (a2: A).(le_n_S (lweight a2) (plus (lweight a1) 
76 (lweight a2)) (le_plus_r (lweight a1) (lweight a2)))).
77 (* COMMENTS
78 Initial nodes: 29
79 END *)
80
81 theorem llt_wf__q_ind:
82  \forall (P: ((A \to Prop))).(((\forall (n: nat).((\lambda (P0: ((A \to 
83 Prop))).(\lambda (n0: nat).(\forall (a: A).((eq nat (lweight a) n0) \to (P0 
84 a))))) P n))) \to (\forall (a: A).(P a)))
85 \def
86  let Q \def (\lambda (P: ((A \to Prop))).(\lambda (n: nat).(\forall (a: 
87 A).((eq nat (lweight a) n) \to (P a))))) in (\lambda (P: ((A \to 
88 Prop))).(\lambda (H: ((\forall (n: nat).(\forall (a: A).((eq nat (lweight a) 
89 n) \to (P a)))))).(\lambda (a: A).(H (lweight a) a (refl_equal nat (lweight 
90 a)))))).
91 (* COMMENTS
92 Initial nodes: 61
93 END *)
94
95 theorem llt_wf_ind:
96  \forall (P: ((A \to Prop))).(((\forall (a2: A).(((\forall (a1: A).((llt a1 
97 a2) \to (P a1)))) \to (P a2)))) \to (\forall (a: A).(P a)))
98 \def
99  let Q \def (\lambda (P: ((A \to Prop))).(\lambda (n: nat).(\forall (a: 
100 A).((eq nat (lweight a) n) \to (P a))))) in (\lambda (P: ((A \to 
101 Prop))).(\lambda (H: ((\forall (a2: A).(((\forall (a1: A).((lt (lweight a1) 
102 (lweight a2)) \to (P a1)))) \to (P a2))))).(\lambda (a: A).(llt_wf__q_ind 
103 (\lambda (a0: A).(P a0)) (\lambda (n: nat).(lt_wf_ind n (Q (\lambda (a0: 
104 A).(P a0))) (\lambda (n0: nat).(\lambda (H0: ((\forall (m: nat).((lt m n0) 
105 \to (Q (\lambda (a0: A).(P a0)) m))))).(\lambda (a0: A).(\lambda (H1: (eq nat 
106 (lweight a0) n0)).(let H2 \def (eq_ind_r nat n0 (\lambda (n1: nat).(\forall 
107 (m: nat).((lt m n1) \to (\forall (a1: A).((eq nat (lweight a1) m) \to (P 
108 a1)))))) H0 (lweight a0) H1) in (H a0 (\lambda (a1: A).(\lambda (H3: (lt 
109 (lweight a1) (lweight a0))).(H2 (lweight a1) H3 a1 (refl_equal nat (lweight 
110 a1))))))))))))) a)))).
111 (* COMMENTS
112 Initial nodes: 179
113 END *)
114