]> matita.cs.unibo.it Git - helm.git/blob - matita/matita/contribs/lambdadelta/ground/relocation/tr_uni_compose.ma
update in ground
[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_tl_compose_uni_dx (f) (n):
33       ā‡‚*[ā†‘n]f ā‰— ā‡‚(fāˆ˜š®āØnā©).
34 // qed.
35
36 lemma tr_tls_compose_uni_dx (f) (p) (n):
37       ā‡‚*[p+n]f ā‰— ā‡‚*[p](fāˆ˜š®āØnā©).
38 #f #p elim p -p [| #p #IH ] #n
39 [ <nrplus_unit_sn //
40 | <nrplus_succ_sn >nsucc_inj >nsucc_inj
41   /2 width=3 by stream_tl_eq_repl/
42 ]
43 qed.
44
45 (* Main constructions with tr_compose and tr_tls ****************************)
46
47 theorem tr_compose_uni_dx (f) (n):
48         (š®āØf@āØnā©ā©āˆ˜ā‡‚*[n]f ā‰— fāˆ˜š®āØnā©).
49 #f #p
50 @nstream_eq_inv_ext #q
51 <tr_compose_pap <tr_compose_pap
52 <tr_uni_pap <tr_uni_pap
53 <tr_pap_plus //
54 qed.