]> 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 3dca53142fb3a3e6fabc1d31a0fd34f1795831d1..849c5f32dfd76fa5b3d257c2936d118dad9612fd 100644 (file)
 (*                                                                        *)
 (**************************************************************************)
 
-include "delayed_updating/syntax/path_depth.ma".
+include "delayed_updating/unwind1/unwind.ma".
+include "delayed_updating/substitution/fsubst.ma".
+include "delayed_updating/syntax/prototerm_constructors.ma".
+include "delayed_updating/syntax/prototerm_equivalence.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 ฯต ๐ โˆง ๐ŸŽ = โ™ญb) & โ†‘โ™ญq = (โ–ผ[r]๐ข)@โจ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).