]> matita.cs.unibo.it Git - helm.git/blob - matita/matita/contribs/lambdadelta/ground/relocation/tr_uni_compose.ma
2343c74ac0ae022fe5cc38a8def8ecdb3972da45
[helm.git] / matita / matita / contribs / lambdadelta / ground / relocation / tr_uni_compose.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_uni_pap.ma".
16 include "ground/relocation/tr_id_compose.ma".
17 include "ground/relocation/tr_compose_pn.ma".
18 include "ground/lib/stream_hdtl_eq.ma".
19
20 (* UNIFORM ELEMENTS FOR TOTAL RELOCATION MAPS *******************************)
21
22 (* Constructions with tr_compose and tr_tl **********************************)
23
24 lemma tr_tl_compose_uni_sn (n) (f):
25       ā‡‚f ā‰— ā‡‚(š®āØnā©āˆ˜f).
26 #n @(nat_ind_succ ā€¦ n) -n //
27 /2 width=1 by stream_tl_eq_repl/
28 qed.
29
30 (* Constructions with tr_compose and tr_tls *********************************)
31
32 lemma tr_tls_compose_uni_sn (f) (n) (p:pnat):
33       ā‡‚*[p]f ā‰— ā‡‚*[p](š®āØnā©āˆ˜f).
34 #f #n #p elim p -p //
35 #p #IH /2 width=1 by stream_tl_eq_repl/
36 qed.
37
38 lemma tr_tl_compose_uni_dx (f) (n):
39       ā‡‚*[ā†‘n]f ā‰— ā‡‚(fāˆ˜š®āØnā©).
40 // qed.
41
42 lemma tr_tls_compose_uni_dx (f) (p) (n):
43       ā‡‚*[p+n]f ā‰— ā‡‚*[p](fāˆ˜š®āØnā©).
44 #f #p elim p -p [| #p #IH ] #n
45 [ <nrplus_unit_sn //
46 | <nrplus_succ_sn >nsucc_inj >nsucc_inj
47   /2 width=3 by stream_tl_eq_repl/
48 ]
49 qed.
50
51 (* Main constructions with tr_compose and tr_tls ****************************)
52
53 theorem tr_compose_uni_dx_pap (f) (p):
54         (š®āØfļ¼ ā§£āØpā©ā©āˆ˜ā‡‚*[p]f) ā‰— fāˆ˜š®āØpā©.
55 #f #p
56 @nstream_eq_inv_ext #q
57 <tr_compose_pap <tr_compose_pap
58 <tr_uni_pap <tr_uni_pap
59 <tr_pap_plus //
60 qed.