]> matita.cs.unibo.it Git - helm.git/blob - matita/matita/contribs/lambda_delta/basic_2/substitution/csup.ma
- we set up the support for the "bt-reduction" of Automath literature
[helm.git] / matita / matita / contribs / lambda_delta / basic_2 / substitution / csup.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/ldrop.ma".
16
17 (* SUPCLOSURE ***************************************************************)
18
19 inductive csup: bi_relation lenv term ≝
20 | csup_lref   : ∀I,L,K,V,i. ⇩[0, i] L ≡ K.ⓑ{I}V → csup L (#i) K V
21 | csup_bind_sn: ∀a,I,L,V,T. csup L (ⓑ{a,I}V.T) L V
22 | csup_bind_dx: ∀a,I,L,V,T. csup L (ⓑ{a,I}V.T) (L.ⓑ{I}V) T 
23 | csup_flat_sn: ∀I,L,V,T.   csup L (ⓕ{I}V.T) L V
24 | csup_flat_dx: ∀I,L,V,T.   csup L (ⓕ{I}V.T) L T
25 .
26
27 interpretation
28    "structural predecessor (closure)"
29    'SupTerm L1 T1 L2 T2 = (csup L1 T1 L2 T2).
30
31 (* Basic forward lemmas *****************************************************)
32
33 lemma csup_fwd_cw: ∀L1,L2,T1,T2. ⦃L1, T1⦄ > ⦃L2, T2⦄ → #{L2, T2} < #{L1, T1}.
34 #L1 #L2 #T1 #T2 * -L1 -L2 -T1 -T2 /width=1/ /2 width=4 by ldrop_pair2_fwd_cw/
35 qed-.