]> matita.cs.unibo.it Git - helm.git/blobdiff - matita/matita/contribs/lambdadelta/ground_2/relocation/mr2_append.ma
milestone update in ground_2 and basic_2A
[helm.git] / matita / matita / contribs / lambdadelta / ground_2 / relocation / mr2_append.ma
diff --git a/matita/matita/contribs/lambdadelta/ground_2/relocation/mr2_append.ma b/matita/matita/contribs/lambdadelta/ground_2/relocation/mr2_append.ma
new file mode 100644 (file)
index 0000000..d457479
--- /dev/null
@@ -0,0 +1,36 @@
+(**************************************************************************)
+(*       ___                                                              *)
+(*      ||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_2/notation/functions/append_2.ma".
+include "ground_2/relocation/mr2.ma".
+
+(* MULTIPLE RELOCATION WITH PAIRS *******************************************)
+
+let rec mr2_append cs1 cs2 on cs1 ≝ 
+  match cs1 with
+  [ nil2          ⇒ cs2
+  | cons2 l m cs1 ⇒ ❨l, m❩; mr2_append cs1 cs2
+  ].
+
+interpretation "append (multiple relocation with pairs)" 
+  'Append cs1 cs2 = (mr2_append cs1 cs2).
+
+(* Basic properties *********************************************************)
+
+lemma mr2_append_nil (cs2): cs2 = ◊ @@ cs2.
+// qed.
+
+lemma mr2_append_cons (l) (m) (cs1) (cs2):
+      ❨l, m❩; (cs1 @@ cs2) = (❨l, m❩; cs1) @@ cs2.
+// qed.