X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;ds=sidebyside;f=matita%2Fmatita%2Fcontribs%2Flambda%2Fpointer.ma;h=30b4fdf6409b7690a05b7b7995e9592d92f90c20;hb=2e700622e2565c6695e8c1264dd4c1207896f28c;hp=74977c3904f2dc7d59de1d5c175dc5855db44330;hpb=5613a25cee29ef32a597cb4b44e8f2f4d71c4df0;p=helm.git diff --git a/matita/matita/contribs/lambda/pointer.ma b/matita/matita/contribs/lambda/pointer.ma index 74977c390..30b4fdf64 100644 --- a/matita/matita/contribs/lambda/pointer.ma +++ b/matita/matita/contribs/lambda/pointer.ma @@ -18,12 +18,17 @@ include "term.ma". (* Policy: pointer step metavariables: c *) (* Note: this is a step of a path in the tree representation of a term: - rc (rectus) : proceed on the argument of an abstraction + rc (rectus) : not needed (we use sn instead) sn (sinister): proceed on the left argument of an application + or on the argument of an abstraction (this would be rc) dx (dexter) : proceed on the right argument of an application *) +(* Remark: the following breaks destruct because of δ-expansions + definition ptr_step: Type[0] ≝ bool. + definition sn: bool ≝ true. + definition dx: bool ≝ false. +*) inductive ptr_step: Type[0] ≝ -| rc: ptr_step | sn: ptr_step | dx: ptr_step . @@ -45,7 +50,7 @@ lemma in_head_ind: ∀R:predicate ptr. R (◊) → qed-. definition compatible_rc: predicate (ptr→relation term) ≝ λR. - ∀p,A1,A2. R p A1 A2 → R (rc::p) (𝛌.A1) (𝛌.A2). + ∀p,A1,A2. R p A1 A2 → R (sn::p) (𝛌.A1) (𝛌.A2). definition compatible_sn: predicate (ptr→relation term) ≝ λR. ∀p,B1,B2,A. R p B1 B2 → R (sn::p) (@B1.A) (@B2.A).