]> matita.cs.unibo.it Git - helm.git/commitdiff
WIP in delayed_updating
authorFerruccio Guidi <ferruccio.guidi@unibo.it>
Mon, 28 Mar 2022 23:11:32 +0000 (01:11 +0200)
committerFerruccio Guidi <ferruccio.guidi@unibo.it>
Mon, 28 Mar 2022 23:11:32 +0000 (01:11 +0200)
+ we re focusing on a special case of the main theorem

matita/matita/contribs/lambdadelta/delayed_updating/reduction/dfr.ma
matita/matita/contribs/lambdadelta/delayed_updating/reduction/dfr_ifr.ma
matita/matita/contribs/lambdadelta/delayed_updating/reduction/ifr.ma

index 3c328fcb206fb067dfa1e54ebf809d400a1ee856..576df6ec6fdb3aef007ed612584b132914b9654b 100644 (file)
@@ -28,7 +28,7 @@ include "ground/xoa/and_4.ma".
 definition dfr (p) (q): relation2 prototerm prototerm ≝
            λt1,t2. ∃∃b,n.
            let r ≝ p●𝗔◗b●𝗟◗q in
-           ∧∧ ⊗b ϵ 𝐁 & ↑❘q❘ = (▼[r]𝐢)@❨n❩ & r◖𝗱n ϵ t1 &
+           ∧∧ (⊗b ϵ 𝐁 ∧ 𝟎 = ❘b❘) & ↑❘q❘ = (▼[r]𝐢)@❨n❩ & r◖𝗱n ϵ t1 &
               t1[⋔r←𝛗(n+❘b❘).(t1⋔(p◖𝗦))] ⇔ t2
 .
 
index 77e303f0504f8bb8bedd81afcb398beb5c424f0b..dd24f856863792f367b106e4354464ede5961645 100644 (file)
@@ -20,6 +20,7 @@ include "delayed_updating/unwind1/unwind_preterm_eq.ma".
 include "delayed_updating/unwind1/unwind_structure_depth.ma".
 include "delayed_updating/unwind1/unwind_depth.ma".
 include "delayed_updating/substitution/fsubst_eq.ma".
+include "delayed_updating/substitution/lift_prototerm_eq.ma".
 include "delayed_updating/syntax/prototerm_proper_constructors.ma".
 include "delayed_updating/syntax/path_structure_depth.ma".
 include "ground/relocation/tr_uni_compose.ma".
@@ -83,6 +84,11 @@ lemma dfr_unwind_id_bi (p) (q) (t1) (t2): t1 ϵ 𝐓 →
     <depth_append <depth_L_sn <depth_structure <depth_structure
     @fsubst_eq_repl [ // ]
     @(subset_eq_trans … (unwind_iref …))
+
+    elim Hb -Hb #Hb #H0 <H0 -H0 <nrplus_zero_dx <nplus_zero_dx <Hn
+    @(subset_eq_canc_sn … (lift_term_eq_repl_dx …))
+    [ @unwind_grafted_S /2 width=2 by ex_intro/ | skip ]
+
 (*
     @(subset_eq_canc_sn … (unwind_term_eq_repl_dx …))
     [ @unwind_grafted_S /2 width=2 by ex_intro/ | skip ]
index 54ad4f2f65d1bfba75b5a56c46f3adb36c54f114..8d0cfc52dc46aca4d628c8e85381e1a8249543e6 100644 (file)
@@ -28,7 +28,7 @@ include "ground/xoa/and_4.ma".
 definition ifr (p) (q): relation2 prototerm prototerm ≝
            λt1,t2. ∃∃b,n.
            let r ≝ p●𝗔◗b●𝗟◗q in
-           ∧∧ ⊗b ϵ 𝐁 & ↑❘q❘ = (▼[r]𝐢)@❨n❩ & r◖𝗱n ϵ t1 &
+           ∧∧ (⊗b ϵ 𝐁 ∧ 𝟎 = ❘b❘) & ↑❘q❘ = (▼[r]𝐢)@❨n❩ & r◖𝗱n ϵ t1 &
               t1[⋔r←↑[𝐮❨❘b●𝗟◗q❘❩](t1⋔(p◖𝗦))] ⇔ t2
 .