1 (**************************************************************************)
4 (* ||A|| A project by Andrea Asperti *)
6 (* ||I|| Developers: *)
7 (* ||T|| The HELM team. *)
8 (* ||A|| http://helm.cs.unibo.it *)
10 (* \ / This file is distributed under the terms of the *)
11 (* v GNU General Public License Version 2 *)
13 (**************************************************************************)
15 include "ground/relocation/tr_compose.ma".
16 include "ground/relocation/tr_pap_eq.ma".
17 include "ground/lib/stream_tls_eq.ma".
19 (* COMPOSITION FOR TOTAL RELOCATION MAPS ************************************)
21 (* Constructions with stream_eq *********************************************)
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/