1 (**************************************************************************)
4 (* ||A|| A project by Andrea Asperti *)
6 (* ||I|| Developers: *)
7 (* ||T|| The HELM team. *)
8 (* ||A|| http://helm.cs.unibo.it *)
10 (* \ / This file is distributed under the terms of the *)
11 (* v GNU General Public License Version 2 *)
13 (**************************************************************************)
15 include "basic_2/relocation/lifts_tdeq.ma".
16 include "basic_2/static/lfxs_length.ma".
17 include "basic_2/static/lfdeq.ma".
19 (* DEGREE-BASED EQUIVALENCE FOR LOCAL ENVIRONMENTS ON REFERRED ENTRIES ******)
21 (* Forward lemmas with length for local environments ************************)
23 (* Basic_2A1: lleq_fwd_length *)
24 lemma lfdeq_fwd_length: ∀h,o,L1,L2. ∀T:term. L1 ≛[h, o, T] L2 → |L1| = |L2|.
25 /2 width=3 by lfxs_fwd_length/ qed-.
27 (* Properties with length for local environments ****************************)
29 (* Basic_2A1: uses: lleq_lift_le lleq_lift_ge *)
30 lemma lfdeq_lifts_bi: ∀L1,L2. |L1| = |L2| → ∀h,o,K1,K2,T. K1 ≛[h, o, T] K2 →
31 ∀b,f. ⬇*[b, f] L1 ≡ K1 → ⬇*[b, f] L2 ≡ K2 →
32 ∀U. ⬆*[f] T ≡ U → L1 ≛[h, o, U] L2.
33 /3 width=9 by lfxs_lifts_bi, tdeq_lifts_sn/ qed-.