]> 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 5b5036593713ac1c84f09b2b7b6649f3aebd834a..e0d17a691bfd09951f10149d0705ced65853e1be 100644 (file)
 (*                                                                        *)
 (**************************************************************************)
 
-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/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 FOCUSED REDUCTION ************************************************)
 
 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◖𝗦)]
+           λt1,t2. ∃n:pnat.
+           let r ≝ p●𝗔◗𝗟◗q in
+           ∧∧ (𝗟◗q)ᴿ = ↳[n](𝗟◗q)ᴿ & r◖𝗱n ϵ t1 &
+              t1[⋔r←𝛕n.(t1⋔(p◖𝗦))] ⇔ t2
 .
 
 interpretation
-  "focused balanced reduction with delayed updating (prototerm)"
+  "focused reduction with delayed updating (prototerm)"
   'BlackRightArrowDF t1 p q t2 = (dfr p q t1 t2).