]> matita.cs.unibo.it Git - helm.git/blob - matita/matita/contribs/lambdadelta/delayed_updating/substitution/lift_rmap_closed.ma
made executable again
[helm.git] / matita / matita / contribs / lambdadelta / delayed_updating / substitution / lift_rmap_closed.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 "delayed_updating/substitution/lift_rmap_eq.ma".
16 include "delayed_updating/syntax/path_closed.ma".
17 include "ground/relocation/xap.ma".
18 include "ground/lib/stream_eq_eq.ma".
19
20 (* LIFT MAP FOR PATH ********************************************************)
21
22 (* Destructions with cpp ****************************************************)
23
24 lemma tls_plus_lift_rmap_closed (o) (f) (q) (n):
25       q ฯต ๐‚โจo,n,๐ŸŽโฉ โ†’
26       โˆ€m. โ‡‚*[m]f โ‰— โ‡‚*[m+n]๐Ÿ ข[f]q.
27 #o #f #q #n #Hq elim Hq -q -n //
28 qed-.
29
30 lemma tls_lift_rmap_closed (o) (f) (q) (n):
31       q ฯต ๐‚โจo,n,๐ŸŽโฉ โ†’
32       f โ‰— โ‡‚*[n]๐Ÿ ข[f]q.
33 #o #f #q #n #H0
34 /2 width=2 by tls_plus_lift_rmap_closed/
35 qed-.
36
37 lemma tls_lift_rmap_append_closed_dx (o) (f) (p) (q) (n):
38       q ฯต ๐‚โจo,n,๐ŸŽโฉ โ†’
39       (๐Ÿ ข[f]p) โ‰— โ‡‚*[n]๐Ÿ ข[f](pโ—q).
40 #o #f #p #q #n #Hq
41 /2 width=2 by tls_lift_rmap_closed/
42 qed-.
43
44 lemma tls_succ_lift_rmap_append_closed_Lq_dx (o) (f) (p) (q) (n):
45       q ฯต ๐‚โจo,n,๐ŸŽโฉ โ†’
46       (๐Ÿ ข[f]p) โ‰— โ‡‚*[โ†‘n]๐Ÿ ข[f](pโ—๐—Ÿโ——q).
47 #o #f #p #q #n #Hq
48 /3 width=2 by tls_lift_rmap_append_closed_dx, pcc_L_sn/
49 qed-.
50
51 lemma tls_succ_plus_lift_rmap_append_closed_bLq_dx (o1) (o2) (f) (p) (b) (q) (m) (n):
52       b ฯต ๐‚โจo1,m,๐ŸŽโฉ โ†’ q ฯต ๐‚โจo2,n,๐ŸŽโฉ โ†’
53       (๐Ÿ ข[f]p) โ‰— โ‡‚*[โ†‘(m+n)]๐Ÿ ข[f](pโ—bโ—๐—Ÿโ——q).
54 #o1 #o2 #f #p #b #q #m #n #Hm #Hn
55 >nplus_succ_dx <stream_tls_plus
56 @(stream_eq_trans โ€ฆ (tls_lift_rmap_append_closed_dx โ€ฆ Hm))
57 /3 width=2 by stream_tls_eq_repl, tls_succ_lift_rmap_append_closed_Lq_dx/
58 qed-.
59
60 lemma nap_plus_lift_rmap_append_closed_Lq_dx (o) (f) (p) (q) (m) (n):
61       q ฯต ๐‚โจo,n,๐ŸŽโฉ โ†’
62       (๐Ÿ ข[f]p๏ผ โจmโฉ+๐Ÿ ข[f](pโ—๐—Ÿโ——q)๏ผ ยงโจnโฉ) = ๐Ÿ ข[f](pโ—๐—Ÿโ——q)๏ผ ยงโจm+nโฉ.
63 #o #f #p #q #m #n #Hq
64 <tr_nap_plus_dx_xap
65 /4 width=2 by eq_f2, tr_xap_eq_repl, tls_succ_lift_rmap_append_closed_Lq_dx/
66 qed-.