]> matita.cs.unibo.it Git - helm.git/blob - matita/matita/contribs/lambdadelta/basic_2/relocation/drops_lstar.ma
5851e809e219742eccb201d9cd3a2772071bc08f
[helm.git] / matita / matita / contribs / lambdadelta / basic_2 / relocation / drops_lstar.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 include "ground_2/lib/lstar.ma".
16 include "basic_2/relocation/drops.ma".
17
18 (* GENERAL SLICING FOR LOCAL ENVIRONMENTS ***********************************)
19
20 (* Properties on reflexive and transitive closure ***************************)
21
22 (* Basic_2A1: was: d_liftable_LTC *)
23 lemma d2_liftable_LTC: ∀R. d_liftable2 R → d_liftable2 (LTC … R).
24 #R #HR #K #T1 #T2 #H elim H -T2
25 [ #T2 #HT12 #L #s #t #HLK #U1 #HTU1
26   elim (HR … HT12 … HLK … HTU1) /3 width=3 by inj, ex2_intro/
27 | #T #T2 #_ #HT2 #IHT1 #L #s #t #HLK #U1 #HTU1
28   elim (IHT1 … HLK … HTU1) -T1 #U #HTU #HU1
29   elim (HR … HT2 … HLK … HTU) -HR -K -T /3 width=5 by step, ex2_intro/
30 ]
31 qed-.
32
33 (* Basic_2A1: was: d_deliftable_sn_LTC *)
34 lemma d2_deliftable_sn_LTC: ∀R. d_deliftable2_sn R → d_deliftable2_sn (LTC … R).
35 #R #HR #L #U1 #U2 #H elim H -U2
36 [ #U2 #HU12 #K #s #t #HLK #T1 #HTU1
37   elim (HR … HU12 … HLK … HTU1) -HR -L -U1 /3 width=3 by inj, ex2_intro/
38 | #U #U2 #_ #HU2 #IHU1 #K #s #t #HLK #T1 #HTU1
39   elim (IHU1 … HLK … HTU1) -IHU1 -U1 #T #HTU #HT1
40   elim (HR … HU2 … HLK … HTU) -HR -L -U /3 width=5 by step, ex2_intro/
41 ]
42 qed-.
43
44 lemma dropable_sn_TC: ∀R. dropable_sn R → dropable_sn (TC … R).
45 #R #HR #L1 #K1 #s #t #HLK1 #L2 #H elim H -L2
46 [ #L2 #HL12 elim (HR … HLK1 … HL12) -HR -L1
47   /3 width=3 by inj, ex2_intro/
48 | #L #L2 #_ #HL2 * #K #HK1 #HLK elim (HR … HLK … HL2) -HR -L
49   /3 width=3 by step, ex2_intro/
50 ]
51 qed-.
52 (*
53 lemma dropable_dx_TC: ∀R. dropable_dx R → dropable_dx (TC … R).
54 #R #HR #L1 #L2 #H elim H -L2
55 [ #L2 #HL12 #K2 #s #m #HLK2 elim (HR … HL12 … HLK2) -HR -L2
56   /3 width=3 by inj, ex2_intro/
57 | #L #L2 #_ #HL2 #IHL1 #K2 #s #m #HLK2 elim (HR … HL2 … HLK2) -HR -L2
58   #K #HLK #HK2 elim (IHL1 … HLK) -L
59   /3 width=5 by step, ex2_intro/
60 ]
61 qed-.
62 *)
63 (* Basic_2A1: was: d_liftable_llstar *)
64 lemma d2_liftable_llstar: ∀R. d_liftable2 R → ∀d. d_liftable2 (llstar … R d).
65 #R #HR #d #K #T1 #T2 #H @(lstar_ind_r … d T2 H) -d -T2
66 [ #L #s #t #_ #U1 #HTU1 -HR -K -s /2 width=3 by ex2_intro/
67 | #d #T #T2 #_ #HT2 #IHT1 #L #s #t #HLK #U1 #HTU1
68   elim (IHT1 … HLK … HTU1) -T1 #U #HTU #HU1
69   elim (HR … HT2 … HLK … HTU) -T /3 width=5 by lstar_dx, ex2_intro/
70 ]
71 qed-.
72
73 (* Basic_2A1: was: d_deliftable_sn_llstar *)
74 lemma d2_deliftable_sn_llstar: ∀R. d_deliftable2_sn R →
75                                ∀d. d_deliftable2_sn (llstar … R d).
76 #R #HR #d #L #U1 #U2 #H @(lstar_ind_r … d U2 H) -d -U2
77 [ /2 width=3 by lstar_O, ex2_intro/
78 | #d #U #U2 #_ #HU2 #IHU1 #K #s #t #HLK #T1 #HTU1
79   elim (IHU1 … HLK … HTU1) -IHU1 -U1 #T #HTU #HT1
80   elim (HR … HU2 … HLK … HTU) -HR -L -U /3 width=5 by lstar_dx, ex2_intro/
81 ]
82 qed-.