]> 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 f0b3f5f319c56b603e94593c0355d2e8347df5ad..e0d17a691bfd09951f10149d0705ced65853e1be 100644 (file)
 (*                                                                        *)
 (**************************************************************************)
 
-include "ground/xoa/ex_3_1.ma".
-include "delayed_updating/syntax/path_structure.ma".
-include "delayed_updating/syntax/path_balanced.ma".
 include "delayed_updating/substitution/fsubst.ma".
-(*
-include "delayed_updating/notation/functions/pitchforkleftarrow_3.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 FOCALIZED REDUCTION **********************************************)
+(* 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
-  "focalized substitution (preterm)"
-  'PitchforkLeftArrow t p u = (fsubst p u t).
-*)
+  "focused reduction with delayed updating (prototerm)"
+  'BlackRightArrowDF t1 p q t2 = (dfr p q t1 t2).