]> 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 6890031062b55e008868119ea09cb6021a5f172e..89c9599079d4f71cc7be1045566f22b014420356 100644 (file)
 (*                                                                        *)
 (**************************************************************************)
 
-include "delayed_updating/syntax/path_depth.ma".
+include "delayed_updating/syntax/prototerm_constructors.ma".
+include "delayed_updating/syntax/prototerm_equivalence.ma".
+include "delayed_updating/substitution/fsubst.ma".
+include "delayed_updating/substitution/lift.ma".
 include "delayed_updating/syntax/path_structure.ma".
 include "delayed_updating/syntax/path_balanced.ma".
-include "delayed_updating/substitution/fsubst.ma".
+include "delayed_updating/syntax/path_depth.ma".
 include "delayed_updating/notation/relations/black_rightarrow_df_4.ma".
+include "ground/xoa/ex_1_2.ma".
+include "ground/xoa/and_4.ma".
 
 (* DELAYED FOCUSED REDUCTION ************************************************)
 
-inductive dfr (p) (q) (t): predicate preterm โ‰
-| dfr_beta (b):
-  let r โ‰ pโ—๐—”โ——bโ—๐—Ÿโ——qโ—–๐—ฑโจโ†‘โ˜qโ˜โฉ in
-  r ฯต t โ†’ โŠ“โŠ—b โ†’ dfr p q t (t[โ‹”rโ†tโ‹”(pโ—–๐—ฆ)])
+definition dfr (p) (q): relation2 prototerm prototerm โ‰
+           ฮปt1,t2. โˆƒโˆƒb,n.
+           let r โ‰ pโ—๐—”โ——bโ—๐—Ÿโ——q in
+           โˆงโˆง โŠ—b ฯต ๐ & โˆ€f. โ†‘โ˜qโ˜ = (โ†‘[q]โซฏf)@โจnโฉ & rโ—–๐—ฑn ฯต t1 &
+              t1[โ‹”rโ†๐›—(n+โ˜bโ˜).(t1โ‹”(pโ—–๐—ฆ))] โ‡” t2
 .
 
 interpretation
-  "focused balanced reduction with delayed updating (preterm)"
+  "focused balanced reduction with delayed updating (prototerm)"
   'BlackRightArrowDF t1 p q t2 = (dfr p q t1 t2).