]> matita.cs.unibo.it Git - helm.git/commitdiff
update in ground
authorFerruccio Guidi <ferruccio.guidi@unibo.it>
Tue, 1 Mar 2022 00:12:44 +0000 (01:12 +0100)
committerFerruccio Guidi <ferruccio.guidi@unibo.it>
Tue, 1 Mar 2022 00:12:44 +0000 (01:12 +0100)
+ minor corrections and additions

matita/matita/contribs/lambdadelta/ground/lib/stream_hdtl.ma
matita/matita/contribs/lambdadelta/ground/lib/stream_tls.ma
matita/matita/contribs/lambdadelta/ground/relocation/tr_compose_pushs.ma [new file with mode: 0644]
matita/matita/contribs/lambdadelta/ground/relocation/tr_compose_tls.ma
matita/matita/contribs/lambdadelta/ground/web/ground_src.tbl

index 468f306de0bbcbd4429b6a4607b69779e0a31e8e..d6a9a574243c23fe9e65f2ced8569ce537da3296 100644 (file)
@@ -36,11 +36,11 @@ interpretation
 
 (* Basic constructions ******************************************************)
 
-lemma stream_hd_cons (A) (a) (t):
+lemma stream_hd_lcons (A) (a) (t):
       a = ⇃{A}(a⨮t).
 // qed.
 
-lemma stream_tl_cons (A) (a) (t):
+lemma stream_tl_lcons (A) (a) (t):
       t = ⇂{A}(a⨮t).
 // qed.
 
index eb7210e2213d2b62bf20fc83c9c35516479a1965..f66c8a63fd451ce8940fcc5297d1951b7ecc9957 100644 (file)
@@ -52,3 +52,7 @@ lemma stream_tls_swap (A) (n) (t):
 lemma stream_tls_unit (A) (t):
       ⇂t = ⇂*{A}[𝟏]t.
 // qed.
+
+lemma stream_tls_succ_lcons (A) (n) (a) (t):
+      ⇂*[n]t = ⇂*{A}[↑n](a⨮t).
+// qed.
diff --git a/matita/matita/contribs/lambdadelta/ground/relocation/tr_compose_pushs.ma b/matita/matita/contribs/lambdadelta/ground/relocation/tr_compose_pushs.ma
new file mode 100644 (file)
index 0000000..0f9174b
--- /dev/null
@@ -0,0 +1,28 @@
+(**************************************************************************)
+(*       ___                                                              *)
+(*      ||M||                                                             *)
+(*      ||A||       A project by Andrea Asperti                           *)
+(*      ||T||                                                             *)
+(*      ||I||       Developers:                                           *)
+(*      ||T||         The HELM team.                                      *)
+(*      ||A||         http://helm.cs.unibo.it                             *)
+(*      \   /                                                             *)
+(*       \ /        This file is distributed under the terms of the       *)
+(*        v         GNU General Public License Version 2                  *)
+(*                                                                        *)
+(**************************************************************************)
+
+include "ground/relocation/tr_pushs.ma".
+include "ground/relocation/tr_compose_pn.ma".
+
+(* COMPOSITION FOR TOTAL RELOCATION MAPS ************************************)
+
+(* Constructions with tr_pushs **********************************************)
+
+lemma tr_compose_pushs_bi (n) (f2) (f1):
+      (⫯*[n](f2∘f1)) = (⫯*[n]f2)∘(⫯*[n]f1).
+#n @(nat_ind_succ … n) -n //
+#n #IH #f1 #f2
+<tr_pushs_succ <tr_pushs_succ <tr_pushs_succ
+<tr_compose_push_bi //
+qed.
index 1a7947f382aa0b1944d8f6680274278d1be84d02..2ff52deecfe9f57e9bbb3184979986894b95c460 100644 (file)
@@ -21,13 +21,10 @@ include "ground/arith/nat_rplus_pplus.ma".
 
 (* Advanced constructions with stream_tls ***********************************)
 
-lemma tr_compose_tls (i) (f2) (f1):
-      (⇂*[f1@❨i❩]f2)∘⇂*[i]f1 = ⇂*[i](f2∘f1).
-#i elim i -i
-[ #f2 * #p1 #f1 //
-| #i #IH #f2 * #p1 #f1
-  >nsucc_inj <stream_tls_swap <stream_tls_swap
-  <tr_pap_succ >nrplus_inj_dx >nrplus_inj_sn
-  <tr_compose_unfold <IH -IH //
-]
+lemma tr_compose_tls (p) (f1) (f2):
+      (⇂*[f1@❨p❩]f2)∘(⇂*[p]f1) = ⇂*[p](f2∘f1).
+#p elim p -p [| #p #IH ] * #q1 #f1 #f2 //
+<tr_compose_unfold <tr_pap_succ
+>nsucc_inj <stream_tls_succ_lcons <stream_tls_succ_lcons
+<IH -IH >nrplus_inj_dx >nrplus_inj_sn <stream_tls_plus //
 qed.
index a4a802c6887684e841454b8d4647de2a61a9cf46..d04a95414205dae85d5cf71b14a6ff4d85f5b186 100644 (file)
@@ -32,7 +32,7 @@ table {
       [ { "total relocation" * } {
           [ "tr_uni ( 𝐮❨?❩ )" "tr_uni_pap" "tr_uni_compose" * ]
           [ "tr_id ( 𝐢 ) " "tr_id_pushs" "tr_id_pap" "tr_id_compose" * ]
-          [ "tr_compose ( ?∘? )" "tr_compose_eq" "tr_compose_tls" "tr_compose_pn" "tr_compose_pap" "tr_compose_compose" * ]
+          [ "tr_compose ( ?∘? )" "tr_compose_eq" "tr_compose_tls" "tr_compose_pn" "tr_compose_pushs" "tr_compose_pap" "tr_compose_compose" * ]
           [ "tr_pap ( ?@❨?❩ )" "tr_pap_eq" "tr_pap_tls" "tr_pap_pat" "tr_pap_pn" "tr_pap_pushs" "tr_pap_pap" * ]
           [ "tr_pushs ( ⫯*[?]? )" * ]
           [ "tr_pn ( ⫯? ) ( ↑? )" "tr_pn_eq" "tr_pn_hdtl" "tr_pn_tls" * ]