]> matita.cs.unibo.it Git - helm.git/blob - 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
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_2/notation/functions/append_2.ma".
16 include "ground_2/relocation/mr2.ma".
17
18 (* MULTIPLE RELOCATION WITH PAIRS *******************************************)
19
20 let rec mr2_append cs1 cs2 on cs1 ≝ 
21   match cs1 with
22   [ nil2          ⇒ cs2
23   | cons2 l m cs1 ⇒ ❨l, m❩; mr2_append cs1 cs2
24   ].
25
26 interpretation "append (multiple relocation with pairs)" 
27   'Append cs1 cs2 = (mr2_append cs1 cs2).
28
29 (* Basic properties *********************************************************)
30
31 lemma mr2_append_nil (cs2): cs2 = ◊ @@ cs2.
32 // qed.
33
34 lemma mr2_append_cons (l) (m) (cs1) (cs2):
35       ❨l, m❩; (cs1 @@ cs2) = (❨l, m❩; cs1) @@ cs2.
36 // qed.