1 (**************************************************************************)
4 (* ||A|| A project by Andrea Asperti *)
6 (* ||I|| Developers: *)
7 (* ||T|| The HELM team. *)
8 (* ||A|| http://helm.cs.unibo.it *)
10 (* \ / This file is distributed under the terms of the *)
11 (* v GNU General Public License Version 2 *)
13 (**************************************************************************)
15 include "delayed_updating/syntax/path_labels.ma".
16 include "delayed_updating/notation/functions/downarrowright_2.ma".
17 include "ground/arith/nat_plus.ma".
18 include "ground/arith/nat_pred_succ.ma".
20 (* TAIL FOR PATH ************************************************************)
22 rec definition tail (m) (p) on p: path ≝
30 [ label_d n ⇒ l◗(tail (m+n) q)
31 | label_m ⇒ l◗(tail m q)
32 | label_L ⇒ l◗(tail (↓o) q)
33 | label_A ⇒ l◗(tail m q)
34 | label_S ⇒ l◗(tail m q)
40 "tail (reversed path)"
41 'DownArrowRight n p = (tail n p).
43 (* basic constructions ****************************************************)
53 lemma tail_d_sn (p) (n) (m:pnat):
54 (𝗱m◗↳[↑n+m]p) = ↳[↑n](𝗱m◗p).
57 lemma tail_m_sn (p) (n):
58 (𝗺◗↳[↑n]p) = ↳[↑n](𝗺◗p).
61 lemma tail_L_sn (p) (n):
62 (𝗟◗↳[n]p) = ↳[↑n](𝗟◗p).
67 lemma tail_A_sn (p) (n):
68 (𝗔◗↳[↑n]p) = ↳[↑n](𝗔◗p).
71 lemma tail_S_sn (p) (n):
72 (𝗦◗↳[↑n]p) = ↳[↑n](𝗦◗p).