]> matita.cs.unibo.it Git - helm.git/commitdiff
update in ground
authorFerruccio Guidi <ferruccio.guidi@unibo.it>
Wed, 16 Feb 2022 22:42:18 +0000 (23:42 +0100)
committerFerruccio Guidi <ferruccio.guidi@unibo.it>
Wed, 16 Feb 2022 22:42:18 +0000 (23:42 +0100)
+ some additions and corrections

matita/matita/contribs/lambdadelta/ground/arith/nat_rplus_pplus.ma
matita/matita/contribs/lambdadelta/ground/arith/nat_rplus_succ.ma
matita/matita/contribs/lambdadelta/ground/relocation/tr_uni_compose.ma

index 314a1fd1788c2fe971e1880904a38556fa62da6c..661da6d710797eb806bae547a8f5377b61f093e3 100644 (file)
@@ -13,7 +13,7 @@
 (**************************************************************************)
 
 include "ground/arith/pnat_plus.ma".
-include "ground/arith/nat_rplus.ma".
+include "ground/arith/nat_rplus_succ.ma".
 
 (* RIGHT ADDITION FOR NON-NEGATIVE INTEGERS *********************************)
 
@@ -22,3 +22,10 @@ include "ground/arith/nat_rplus.ma".
 lemma nrplus_inj_dx (p) (q):
       p + q = p + ninj q.
 // qed.
+
+lemma nrplus_pplus_assoc (p,q:pnat) (n:nat):
+      (p+q)+n = p+(q+n).
+#p #q #n
+@(nat_ind_succ … n) -n // #n #IH
+<nrplus_succ_dx <nrplus_succ_dx <pplus_succ_dx //
+qed.
index d7dfaa1aa582441999c73a8275731c5c8e6c3964..3c280acb0eea4baf0650164127b80d62350a84a8 100644 (file)
@@ -26,6 +26,9 @@ qed.
 lemma nrplus_succ_shift (p) (n): ↑p + n = p + ↑n.
 // qed.
 
+lemma nrplus_succ_sn (p) (n): ↑(p+n) = ↑p + n.
+// qed.
+
 lemma nrplus_unit_sn (n): ↑n = 𝟏 + n.
 #n @(nat_ind_succ … n) -n //
 qed.
index 3d329e795f23b79be89abb02e386945bdaed02e5..7d7aa437e147df279bdf4e626ccc0843ff611738 100644 (file)
@@ -44,8 +44,8 @@ qed.
 
 (* Main constructions with tr_compose and tr_tls ****************************)
 
-theorem tr_compose_uni_dx (f) (p):
-        (𝐮❨f@❨p❩❩∘⇂*[p]f ≗ f∘𝐮❨p❩).
+theorem tr_compose_uni_dx (f) (n):
+        (𝐮❨f@❨n❩❩∘⇂*[n]f ≗ f∘𝐮❨n❩).
 #f #p
 @nstream_eq_inv_ext #q
 <tr_compose_pap <tr_compose_pap