]> matita.cs.unibo.it Git - helm.git/blobdiff - matita/matita/contribs/lambdadelta/delayed_updating/unwind/unwind_gen.ma
partial commit in delayed_updating
[helm.git] / matita / matita / contribs / lambdadelta / delayed_updating / unwind / unwind_gen.ma
diff --git a/matita/matita/contribs/lambdadelta/delayed_updating/unwind/unwind_gen.ma b/matita/matita/contribs/lambdadelta/delayed_updating/unwind/unwind_gen.ma
deleted file mode 100644 (file)
index 0ea3ab8..0000000
+++ /dev/null
@@ -1,86 +0,0 @@
-(**************************************************************************)
-(*       ___                                                              *)
-(*      ||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 "delayed_updating/syntax/path.ma".
-include "delayed_updating/notation/functions/black_diamond_2.ma".
-include "ground/relocation/tr_pap.ma".
-
-(* GENERIC UNWIND FOR PATH **************************************************)
-
-rec definition unwind_gen (f) (p) on p ā‰
-match p with
-[ list_empty     ā‡’ šž
-| list_lcons l q ā‡’
-  match l with
-  [ label_d n ā‡’
-    match q with
-    [ list_empty     ā‡’ š—±(fļ¼ ā§£āØnā©)ā——(unwind_gen f q)
-    | list_lcons _ _ ā‡’ unwind_gen f q
-    ]
-  | label_m   ā‡’ unwind_gen f q
-  | label_L   ā‡’ lā——(unwind_gen f q)
-  | label_A   ā‡’ lā——(unwind_gen f q)
-  | label_S   ā‡’ lā——(unwind_gen f q)
-  ]
-].
-
-interpretation
-  "generic unwind (path)"
-  'BlackDiamond f p = (unwind_gen f p).
-
-(* Basic constructions ******************************************************)
-
-lemma unwind_gen_empty (f):
-      (šž) = ā—†[f]šž.
-// qed.
-
-lemma unwind_gen_d_empty (f) (n):
-      š—±(fļ¼ ā§£āØnā©)ā——šž = ā—†[f](š—±nā——šž).
-// qed.
-
-lemma unwind_gen_d_lcons (f) (p) (l) (n):
-      ā—†[f](lā——p) = ā—†[f](š—±nā——lā——p).
-// qed.
-
-lemma unwind_gen_m_sn (f) (p):
-      ā—†[f]p = ā—†[f](š—ŗā——p).
-// qed.
-
-lemma unwind_gen_L_sn (f) (p):
-      (š—Ÿā——ā—†[f]p) = ā—†[f](š—Ÿā——p).
-// qed.
-
-lemma unwind_gen_A_sn (f) (p):
-      (š—”ā——ā—†[f]p) = ā—†[f](š—”ā——p).
-// qed.
-
-lemma unwind_gen_S_sn (f) (p):
-      (š—¦ā——ā—†[f]p) = ā—†[f](š—¦ā——p).
-// qed.
-
-(* Advanced eliminations with path ******************************************)
-
-lemma path_ind_unwind (Q:predicate ā€¦):
-      Q (šž) ā†’
-      (āˆ€n. Q (šž) ā†’ Q (š—±nā——šž)) ā†’
-      (āˆ€n,l,p. Q (lā——p) ā†’ Q (š—±nā——lā——p)) ā†’
-      (āˆ€p. Q p ā†’ Q (š—ŗā——p)) ā†’
-      (āˆ€p. Q p ā†’ Q (š—Ÿā——p)) ā†’
-      (āˆ€p. Q p ā†’ Q (š—”ā——p)) ā†’
-      (āˆ€p. Q p ā†’ Q (š—¦ā——p)) ā†’
-      āˆ€p. Q p.
-#Q #IH1 #IH2 #IH3 #IH4 #IH5 #IH6 #IH7 #p
-elim p -p [| * [ #n * ] ]
-/2 width=1 by/
-qed-.