]> matita.cs.unibo.it Git - helm.git/blob - matita/matita/contribs/lambda_delta/basic_2/unfold/csups.ma
56cfa9ee8233acdb45c44bdf4c5f4f127757fadd
[helm.git] / matita / matita / contribs / lambda_delta / basic_2 / unfold / csups.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 "basic_2/substitution/csup.ma".
16
17 (* ITERATED SUPCLOSURE ******************************************************)
18
19 definition csups: bi_relation lenv term ≝ bi_TC … csup.
20
21 interpretation "iterated structural predecessor (closure)"
22    'SupTermStar L1 T1 L2 T2 = (csups L1 T1 L2 T2).
23
24 (* Basic eliminators ********************************************************)
25
26 lemma csups_ind: ∀L1,T1. ∀R:relation2 lenv term.
27                  (∀L2,T2. ⦃L1, T1⦄ > ⦃L2, T2⦄ → R L2 T2) →
28                  (∀L,T,L2,T2. ⦃L1, T1⦄ >* ⦃L, T⦄ → ⦃L, T⦄ > ⦃L2, T2⦄ → R L T → R L2 T2) →
29                  ∀L2,T2. ⦃L1, T1⦄ >* ⦃L2, T2⦄ → R L2 T2.
30 #L1 #T1 #R #IH1 #IH2 #L2 #T2 #H
31 @(bi_TC_ind … IH1 IH2 ? ? H)
32 qed-.
33
34 lemma csups_ind_dx: ∀L2,T2. ∀R:relation2 lenv term.
35                     (∀L1,T1. ⦃L1, T1⦄ > ⦃L2, T2⦄ → R L1 T1) →
36                     (∀L1,L,T1,T. ⦃L1, T1⦄ > ⦃L, T⦄ → ⦃L, T⦄ >* ⦃L2, T2⦄ → R L T → R L1 T1) →
37                     ∀L1,T1. ⦃L1, T1⦄ >* ⦃L2, T2⦄ → R L1 T1.
38 #L2 #T2 #R #IH1 #IH2 #L1 #T1 #H
39 @(bi_TC_ind_dx … IH1 IH2 ? ? H)
40 qed-.
41
42 (* Basic properties *********************************************************)
43
44 lemma csups_strap1: ∀L1,L,L2,T1,T,T2. ⦃L1, T1⦄ >* ⦃L, T⦄ → ⦃L, T⦄ > ⦃L2, T2⦄ →
45                     ⦃L1, T1⦄ >* ⦃L2, T2⦄.
46 /2 width=4/ qed.
47
48 lemma csups_strap2: ∀L1,L,L2,T1,T,T2. ⦃L1, T1⦄ > ⦃L, T⦄ → ⦃L, T⦄ >* ⦃L2, T2⦄ →
49                     ⦃L1, T1⦄ >* ⦃L2, T2⦄.
50 /2 width=4/ qed.
51
52 (* Basic forward lemmas *****************************************************)
53
54 lemma csups_fwd_cw: ∀L1,L2,T1,T2. ⦃L1, T1⦄ >* ⦃L2, T2⦄ → #{L2, T2} < #{L1, T1}.
55 #L1 #L2 #T1 #T2 #H @(csups_ind … H) -L2 -T2
56 /3 width=3 by csup_fwd_cw, transitive_lt/
57 qed-.