]> matita.cs.unibo.it Git - helm.git/blob - matita/matita/contribs/lambdadelta/delayed_updating/syntax/path_head_structure.ma
e1605752c28ca72d13532e6b2ac93a3f40cb9500
[helm.git] / matita / matita / contribs / lambdadelta / delayed_updating / syntax / path_head_structure.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 "delayed_updating/syntax/path_head_depth.ma".
16 include "delayed_updating/syntax/path_structure_labels.ma".
17
18 (* HEAD FOR PATH ************************************************************)
19
20 (* Constructions with structure *********************************************)
21
22 lemma path_head_structure_height (p) (m):
23       ⊗↳[m]p = ↳[m+♯↳[m]p]⊗p.
24 #p elim p -p //
25 #l #p #IH #m @(nat_ind_succ … m) -m //
26 #m #_ cases l [ #n ]
27 [ <height_d_sn <structure_d_sn //
28 | <structure_m_sn //
29 | <structure_L_sn //
30 | <height_A_sn <structure_A_sn <nplus_succ_sn <path_head_A_sn //
31 | <height_S_sn <structure_S_sn <nplus_succ_sn <path_head_S_sn //
32 ]
33 qed.
34
35 lemma path_head_structure_depth (p) (m):
36       ⊗↳[m]p = ↳[♭↳[m]p]⊗p.
37 #p #m
38 <path_head_depth //
39 qed.