From: Ferruccio Guidi Date: Sat, 22 Jan 2022 19:12:27 +0000 (+0100) Subject: update in delayed_updating X-Git-Tag: make_still_working~103 X-Git-Url: http://matita.cs.unibo.it/gitweb/?p=helm.git;a=commitdiff_plain;h=56092257aa4be8e6d0ae37ee6590f6d3258b0485 update in delayed_updating + bugs fixed id dfr and ifr --- diff --git a/matita/matita/contribs/lambdadelta/delayed_updating/reduction/dfr.ma b/matita/matita/contribs/lambdadelta/delayed_updating/reduction/dfr.ma index 2ff6159cf..67c22257b 100644 --- a/matita/matita/contribs/lambdadelta/delayed_updating/reduction/dfr.ma +++ b/matita/matita/contribs/lambdadelta/delayed_updating/reduction/dfr.ma @@ -12,21 +12,24 @@ (* *) (**************************************************************************) -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/substitution/lift.ma". +include "delayed_updating/syntax/path_structure.ma". +include "delayed_updating/syntax/path_balanced.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 ************************************************) definition dfr (p) (q): relation2 prototerm prototerm ≝ - λt1,t2. ∃b. + λt1,t2. ∃∃b,n. let r ≝ p●𝗔◗b●𝗟◗q in - ∧∧ ⊗b ϵ 𝐁 & r◖𝗱❘q❘ ϵ t1 & - t1[⋔r←𝛗❘q❘.(t1⋔(p◖𝗦))] ⇔ t2 + ∧∧ ⊗b ϵ 𝐁 & ❘q❘ = (↑[q]𝐢)@❨n❩ & r◖𝗱n ϵ t1 & + t1[⋔r←𝛗n.(t1⋔(p◖𝗦))] ⇔ t2 . interpretation diff --git a/matita/matita/contribs/lambdadelta/delayed_updating/reduction/dfr_ifr.ma b/matita/matita/contribs/lambdadelta/delayed_updating/reduction/dfr_ifr.ma index 73d4cbf46..fb39e209a 100644 --- a/matita/matita/contribs/lambdadelta/delayed_updating/reduction/dfr_ifr.ma +++ b/matita/matita/contribs/lambdadelta/delayed_updating/reduction/dfr_ifr.ma @@ -15,17 +15,23 @@ include "delayed_updating/reduction/dfr.ma". include "delayed_updating/reduction/ifr.ma". include "delayed_updating/substitution/fsubst_lift.ma". +include "delayed_updating/substitution/lift_structure_depth.ma". include "delayed_updating/syntax/prototerm_proper_constructors.ma". +include "delayed_updating/syntax/path_structure_depth.ma". +include "ground/relocation/tr_id_pap.ma". +include "ground/relocation/tr_id_pushs.ma". (* DELAYED FOCUSED REDUCTION ************************************************) lemma dfr_lift_bi (f) (p) (q) (t1) (t2): t1 ϵ 𝐓 → t1 ➡𝐝𝐟[p,q] t2 → ↑[f]t1 ➡𝐟[⊗p,⊗q] ↑[f]t2. #f #p #q #t1 #t2 #H0t1 -* #b * #Hb #Ht1 #Ht2 -@(ex_intro … (⊗b)) @and3_intro +* #b #n * #Hb #Hn #Ht1 #Ht2 +@(ex1_2_intro … (⊗b) (❘⊗q❘)) @and4_intro [ // -| lapply (in_comp_lift_bi f … Ht1) -Ht1 #Ht1 +| // +| lapply (in_comp_lift_bi f … Ht1) -Ht1 -H0t1 -Hb -Ht2 #Ht1 + tr_pushs_swap // +|