]> matita.cs.unibo.it Git - helm.git/blob - matita/matita/contribs/lambdadelta/ground/relocation/gr_tls_pushs_eq.ma
update in ground
[helm.git] / matita / matita / contribs / lambdadelta / ground / relocation / gr_tls_pushs_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 "ground/relocation/gr_tls_eq.ma".
16 include "ground/relocation/gr_pushs.ma".
17
18 (* ITERATED TAIL FOR GENERIC RELOCATION MAPS ********************************)
19
20 (* Inversions with gr_pushs and gr_eq ***************************************)
21
22 (*** eq_inv_pushs_sn *)
23 lemma gr_eq_inv_pushs_sn (n):
24       ∀f1,g2. ⫯*[n] f1 ≡ g2 →
25       ∧∧ f1 ≡ ⫱*[n]g2 & ⫯*[n]⫱*[n]g2 = g2.
26 #n @(nat_ind_succ … n) -n /2 width=1 by conj/
27 #n #IH #f1 #g2 #H
28 elim (gr_eq_inv_push_sn … H) -H [|*: // ] #Hf10 *
29 elim (IH … Hf10) -IH -Hf10 #Hf12 #H1
30 /2 width=1 by conj/
31 qed-.
32
33 (*** eq_inv_pushs_dx *)
34 lemma gr_eq_inv_pushs_dx (n):
35       ∀f2,g1. g1 ≡ ⫯*[n] f2 →
36       ∧∧ ⫱*[n]g1 ≡ f2 & ⫯*[n]⫱*[n]g1 = g1.
37 #n @(nat_ind_succ … n) -n /2 width=1 by conj/
38 #n #IH #f2 #g1 #H
39 elim (gr_eq_inv_push_dx … H) -H [|*: // ] #Hf02 *
40 elim (IH … Hf02) -IH -Hf02 #Hf12 #H2
41 /2 width=1 by conj/
42 qed-.