]> matita.cs.unibo.it Git - helm.git/blobdiff - matita/matita/contribs/lambdadelta/delayed_updating/syntax/path_depth.ma
update in delayed_updating
[helm.git] / matita / matita / contribs / lambdadelta / delayed_updating / syntax / path_depth.ma
index efeaf86b40fb7087219bef1d55b705fd4c0c8ce0..88952c2bc0b4b4edcd60a53c291f1c85a7a4866c 100644 (file)
 (**************************************************************************)
 
 include "delayed_updating/syntax/path.ma".
-include "ground/arith/nat_succ.ma".
 include "ground/notation/functions/verticalbars_1.ma".
 
 (* DEPTH FOR PATH ***********************************************************)
 
-rec definition depth (p) on p: nat ≝
+rec definition depth (p) on p: pnat ≝
 match p with
-[ list_empty     â\87\92 ð\9d\9f\8e
+[ list_empty     â\87\92 ð\9d\9f\8f
 | list_lcons l q ⇒
   match l with
-  [ label_node_d _ ⇒ depth q
-  | label_edge_L   ⇒ ↑(depth q)
-  | label_edge_A   ⇒ depth q
-  | label_edge_S   ⇒ depth q
+  [ label_d _ ⇒ depth q
+  | label_m   ⇒ depth q
+  | label_L   ⇒ ↑(depth q)
+  | label_A   ⇒ depth q
+  | label_S   ⇒ depth q
   ]
 ].
 
@@ -36,12 +36,15 @@ interpretation
 
 (* Basic constructions ******************************************************)
 
-lemma depth_empty: ð\9d\9f\8e = ❘𝐞❘.
+lemma depth_empty: ð\9d\9f\8f = ❘𝐞❘.
 // qed.
 
 lemma depth_d (q) (n): ❘q❘ = ❘𝗱n◗q❘.
 // qed.
 
+lemma depth_m (q): ❘q❘ = ❘𝗺◗q❘.
+// qed.
+
 lemma depth_L (q): ↑❘q❘ = ❘𝗟◗q❘.
 // qed.