]> matita.cs.unibo.it Git - helm.git/blob - matita/matita/contribs/lambdadelta/ground/relocation/tr_pap_tls.ma
ef36b6f3388519015fcad8b8127c97b8bbfda9ad
[helm.git] / matita / matita / contribs / lambdadelta / ground / relocation / tr_pap_tls.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_pap.ma".
16 include "ground/lib/stream_tls.ma".
17
18 (* POSITIVE APPLICATION FOR TOTAL RELOCATION MAPS ***************************)
19
20 (* Constructions with stream_tls ********************************************)
21
22 lemma tr_pap_plus (p1) (p2) (f):
23       (⇂*[ninj p2]f)@⧣❨p1❩+f@⧣❨p2❩ = f@⧣❨p1+p2❩.
24 #p1 #p2 elim p2 -p2
25 [ * #p #f //
26 | #i #IH * #p #f
27   <pplus_succ_dx <tr_cons_pap_succ <tr_cons_pap_succ
28   <IH -IH >nsucc_inj //
29 ]
30 qed.