]> matita.cs.unibo.it Git - helm.git/blob - matita/matita/contribs/lambdadelta/ground/relocation/tr_compose_eq.ma
made executable again
[helm.git] / matita / matita / contribs / lambdadelta / ground / relocation / tr_compose_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/tr_compose.ma".
16 include "ground/relocation/tr_pap_eq.ma".
17 include "ground/lib/stream_tls_eq.ma".
18
19 (* COMPOSITION FOR TOTAL RELOCATION MAPS ************************************)
20
21 (* Constructions with stream_eq *********************************************)
22
23 corec lemma tr_compose_eq_repl (f2) (g2):
24             f2 ≗ g2 → stream_eq_repl … (λf1,g1. f2∘f1 ≗ g2∘g1).
25 #Hfg2 * #p1 #f1 * #q1 #g1 #H
26 cases (stream_eq_inv_cons_bi … H) -H [|*: // ] * #Hfg1 -q1
27 cases tr_compose_unfold cases tr_compose_unfold
28 /5 width=1 by tr_pap_eq_repl, stream_tls_eq_repl, stream_eq_cons/
29 qed.