]> matita.cs.unibo.it Git - helm.git/blob - matita/matita/contribs/lambdadelta/delayed_updating/substitution/fsubst_eq.ma
update in delayed_updating
[helm.git] / matita / matita / contribs / lambdadelta / delayed_updating / substitution / fsubst_eq.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 "delayed_updating/substitution/fsubst.ma".
16 include "delayed_updating/syntax/prototerm_eq.ma".
17
18 (* FOCALIZED SUBSTITUTION ***************************************************)
19
20 (* Constructions with subset_equivalence ************************************)
21
22 lemma fsubst_empty_rc (t) (u):
23       u ā‡” t[ā‹”šžā†u].
24 #t #u @conj #p
25 [ #Hp /3 width=3 by or_introl, ex2_intro/ ]
26 * *
27 [ #r #Hr #H0 destruct // ]
28 #H1p #H2p elim H2p -H2p //
29 qed.
30
31 lemma subset_inclusion_fsubst_bi (t1) (t2) (u1) (u2) (p):
32       t1 āŠ† t2 ā†’ u1 āŠ† u2 ā†’ t1[ā‹”pā†u1] āŠ† t2[ā‹”pā†u2].
33 #t1 #t2 #u1 #u2 #p #Ht #Hu #q * *
34 [ #r #Hr #H0 destruct
35   /4 width=3 by ex2_intro, or_introl/
36 | /4 width=2 by or_intror, conj/
37 ]
38 qed.
39
40 lemma fsubst_eq_repl (t1) (t2) (u1) (u2) (p1) (p2):
41       t1 ā‡” t2 ā†’ p1 = p2 ā†’ u1 ā‡” u2 ā†’ t1[ā‹”p1ā†u1] ā‡” t2[ā‹”p2ā†u2].
42 #t1 #t2 #u1 #u2 #p1 #p2 * #H1t #H2t #Hp * #H1u #H2u
43 /3 width=5 by conj, subset_inclusion_fsubst_bi/
44 qed.