]> 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..5b5036593713ac1c84f09b2b7b6649f3aebd834a 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 &
+              t2 โ‡” t1[โ‹”rโ†๐›—(โ†‘โ˜qโ˜).t1โ‹”(pโ—–๐—ฆ)]
 .
 
 interpretation