]> 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 ed077ae2cc772df22b7227dab1750ace5c243afd..2ff6159cf5603bcf4e3db95d43996ba4efad9713 100644 (file)
@@ -16,15 +16,17 @@ include "delayed_updating/syntax/path_depth.ma".
 include "delayed_updating/syntax/path_structure.ma".
 include "delayed_updating/syntax/path_balanced.ma".
 include "delayed_updating/syntax/prototerm_constructors.ma".
+include "delayed_updating/syntax/prototerm_equivalence.ma".
 include "delayed_updating/substitution/fsubst.ma".
 include "delayed_updating/notation/relations/black_rightarrow_df_4.ma".
 
 (* DELAYED FOCUSED REDUCTION ************************************************)
 
-inductive dfr (p) (q) (t): predicate prototerm โ‰
-| dfr_beta (b):
-  let r โ‰ pโ—๐—”โ——bโ—๐—Ÿโ——q in
-  rโ—–๐—ฑ(โ†‘โ˜qโ˜) ฯต t โ†’ โŠ“(โŠ—b) โ†’ dfr p q t (t[โ‹”rโ†๐›—(โ†‘โ˜qโ˜).tโ‹”(pโ—–๐—ฆ)])
+definition dfr (p) (q): relation2 prototerm prototerm โ‰
+           ฮปt1,t2. โˆƒb.
+           let r โ‰ pโ—๐—”โ——bโ—๐—Ÿโ——q in
+           โˆงโˆง โŠ—b ฯต ๐ & rโ—–๐—ฑโ˜qโ˜ ฯต t1 &
+              t1[โ‹”rโ†๐›—โ˜qโ˜.(t1โ‹”(pโ—–๐—ฆ))] โ‡” t2
 .
 
 interpretation