(* *)
(**************************************************************************)
-include "basic_2/notation/relations/lazyeq_5.ma".
+include "basic_2/notation/relations/lazyeqsn_5.ma".
include "basic_2/syntax/tdeq_ext.ma".
include "basic_2/static/lfxs.ma".
interpretation
"degree-based equivalence on referred entries (local environment)"
- 'LazyEq h o T L1 L2 = (lfdeq h o T L1 L2).
+ 'LazyEqSn h o T L1 L2 = (lfdeq h o T L1 L2).
interpretation
"degree-based ranged equivalence (local environment)"
- 'LazyEq h o f L1 L2 = (lexs (cdeq_ext h o) cfull f L1 L2).
+ 'LazyEqSn h o f L1 L2 = (lexs (cdeq_ext h o) cfull f L1 L2).
(*
definition lfdeq_transitive: predicate (relation3 lenv term term) ≝
λR. ∀L2,T1,T2. R L2 T1 T2 → ∀L1. L1 ≡[h, o, T1] L2 → R L1 T1 T2.
/2 width=1 by lfxs_atom/ qed.
(* Basic_2A1: uses: lleq_sort *)
-lemma lfdeq_sort: ∀h,o,I,L1,L2,V1,V2,s.
- L1 â\89¡[h, o, â\8b\86s] L2 â\86\92 L1.â\93\91{I}V1 â\89¡[h, o, â\8b\86s] L2.â\93\91{I}V2.
+lemma lfdeq_sort: ∀h,o,I1,I2,L1,L2,s.
+ L1 â\89¡[h, o, â\8b\86s] L2 â\86\92 L1.â\93\98{I1} â\89¡[h, o, â\8b\86s] L2.â\93\98{I2}.
/2 width=1 by lfxs_sort/ qed.
-lemma lfdeq_pair: ∀h,o,I,L1,L2,V.
- L1 ≡[h, o, V] L2 → L1.ⓑ{I}V ≡[h, o, #0] L2.ⓑ{I}V.
+lemma lfdeq_pair: ∀h,o,I,L1,L2,V1,V2. L1 ≡[h, o, V1] L2 → V1 ≡[h, o] V2 →
+ L1.ⓑ{I}V1 ≡[h, o, #0] L2.ⓑ{I}V2.
/2 width=1 by lfxs_pair/ qed.
-
+(*
lemma lfdeq_unit: ∀h,o,f,I,L1,L2. 𝐈⦃f⦄ → L1 ⪤*[cdeq_ext h o, cfull, f] L2 →
L1.ⓤ{I} ≡[h, o, #0] L2.ⓤ{I}.
/2 width=3 by lfxs_unit/ qed.
-
-lemma lfdeq_lref: ∀h,o,I,L1,L2,V1,V2,i.
- L1 â\89¡[h, o, #i] L2 â\86\92 L1.â\93\91{I}V1 â\89¡[h, o, #⫯i] L2.â\93\91{I}V2.
+*)
+lemma lfdeq_lref: ∀h,o,I1,I2,L1,L2,i.
+ L1 â\89¡[h, o, #i] L2 â\86\92 L1.â\93\98{I1} â\89¡[h, o, #⫯i] L2.â\93\98{I2}.
/2 width=1 by lfxs_lref/ qed.
(* Basic_2A1: uses: lleq_gref *)
-lemma lfdeq_gref: ∀h,o,I,L1,L2,V1,V2,l.
- L1 â\89¡[h, o, §l] L2 â\86\92 L1.â\93\91{I}V1 â\89¡[h, o, §l] L2.â\93\91{I}V2.
+lemma lfdeq_gref: ∀h,o,I1,I2,L1,L2,l.
+ L1 â\89¡[h, o, §l] L2 â\86\92 L1.â\93\98{I1} â\89¡[h, o, §l] L2.â\93\98{I2}.
/2 width=1 by lfxs_gref/ qed.
lemma lfdeq_bind_repl_dx: ∀h,o,I,I1,L1,L2.∀T:term.
lemma lfdeq_inv_atom_dx: ∀h,o,Y1. ∀T:term. Y1 ≡[h, o, T] ⋆ → Y1 = ⋆.
/2 width=3 by lfxs_inv_atom_dx/ qed-.
-
+(*
lemma lfdeq_inv_zero: ∀h,o,Y1,Y2. Y1 ≡[h, o, #0] Y2 →
∨∨ Y1 = ⋆ ∧ Y2 = ⋆
| ∃∃I,L1,L2,V1,V2. L1 ≡[h, o, V1] L2 & V1 ≡[h, o] V2 &
#h #o #Y1 #Y2 #H elim (lfxs_inv_zero … H) -H *
/3 width=9 by or3_intro0, or3_intro1, or3_intro2, ex4_5_intro, ex4_4_intro, conj/
qed-.
-
+*)
lemma lfdeq_inv_lref: ∀h,o,Y1,Y2,i. Y1 ≡[h, o, #⫯i] Y2 →
(Y1 = ⋆ ∧ Y2 = ⋆) ∨
∃∃I1,I2,L1,L2. L1 ≡[h, o, #i] L2 &