]> matita.cs.unibo.it Git - helm.git/blobdiff - matita/matita/contribs/lambdadelta/delayed_updating/reduction/dfr.ma
update in delayed_updating
[helm.git] / matita / matita / contribs / lambdadelta / delayed_updating / reduction / dfr.ma
index 8c84de0f240f66c3e61aed0d5fa2a35d81eeaf88..e0d17a691bfd09951f10149d0705ced65853e1be 100644 (file)
 (*                                                                        *)
 (**************************************************************************)
 
-include "delayed_updating/syntax/path_structure.ma".
-include "delayed_updating/syntax/path_balanced.ma".
 include "delayed_updating/substitution/fsubst.ma".
+include "delayed_updating/syntax/prototerm_constructors.ma".
+include "delayed_updating/syntax/prototerm_eq.ma".
+include "delayed_updating/syntax/path_head.ma".
+include "delayed_updating/syntax/path_depth.ma".
+include "delayed_updating/syntax/path_reverse.ma".
 include "delayed_updating/notation/relations/black_rightarrow_df_4.ma".
 
 (* DELAYED FOCUSED REDUCTION ************************************************)
 
-inductive dfr (p) (q) (t): predicate preterm โ‰
-| dfr_beta (b) (n):
-  let r โ‰ pโ—๐—”โ——bโ—๐—Ÿโ——qโ—–๐—ฑโจnโฉ in
-  r ฯต t โ†’ โŠ“โŠ—b โ†’ dfr p q t (t[โ‹”rโ†tโ‹”(pโ—–๐—ฆ)])
+definition dfr (p) (q): relation2 prototerm prototerm โ‰
+           ฮปt1,t2. โˆƒn:pnat.
+           let r โ‰ pโ—๐—”โ——๐—Ÿโ——q in
+           โˆงโˆง (๐—Ÿโ——q)แดฟ = โ†ณ[n](๐—Ÿโ——q)แดฟ & rโ—–๐—ฑn ฯต t1 &
+              t1[โ‹”rโ†๐›•n.(t1โ‹”(pโ—–๐—ฆ))] โ‡” t2
 .
 
 interpretation
-  "focused balanced reduction with delayed updating (preterm)"
+  "focused reduction with delayed updating (prototerm)"
   'BlackRightArrowDF t1 p q t2 = (dfr p q t1 t2).