(**************************************************************************) (* ___ *) (* ||M|| *) (* ||A|| A project by Andrea Asperti *) (* ||T|| *) (* ||I|| Developers: *) (* ||T|| The HELM team. *) (* ||A|| http://helm.cs.unibo.it *) (* \ / *) (* \ / This file is distributed under the terms of the *) (* v GNU General Public License Version 2 *) (* *) (**************************************************************************) include "basic_2/relocation/lift_neg.ma". include "basic_2/relocation/lift_lift.ma". include "basic_2/substitution/cpys.ma". include "basic_2/substitution/cofrees_lift.ma". (* CONTEXT-SENSITIVE EXCLUSION FROM FREE VARIABLES **************************) (* Alternative definition of frees_ge ***************************************) (* lemma cpys_fwd_nlift2: ∀G,L,U1,U2. ⦃G, L⦄ ⊢ U1 ▶* U2 → ∀i. (∀T2. ⇧[i, 1] T2 ≡ U2 → ⊥) → (∀T1. ⇧[i, 1] T1 ≡ U1 → ⊥) ∨ ∃∃I,K,W,j. j < i & ⇩[j]L ≡ K.ⓑ{I}W & (∀V. ⇧[i-j-1, 1] V ≡ W → ⊥) & (∀T1. ⇧[j, 1] T1 ≡ U1 → ⊥). #G #L #U1 #U2 #H elim H -G -L -U1 -U2 [ /3 width=2 by or_introl/ | #I #G #L #K #V1 #V2 #W2 #j #HLK #_ #HVW2 #IHV12 #i #HnW2 elim (lt_or_ge j i) #Hij [ @or_intror (**) @(ex4_4_intro … HLK) // [ #X #HXV elim (lift_trans_le … HXV … HVW ?) -V // #Y #HXY >minus_plus minus_plus in ⊢ (??(?(?%?)?)??→?); >minus_plus in ⊢ (??(?(??%)?)??→?); >arith_b1 /2 width=1 by/ ] qed-. lemma frees_ind_ge: ∀R:relation4 ynat nat lenv term. (∀d,i,L,U. d ≤ yinj i → (∀T. ⇧[i, 1] T ≡ U → ⊥) → R d i L U) → (∀d,i,j,I,L,K,W,U. d ≤ yinj j → j < i → ⇩[j]L ≡ K.ⓑ{I}W → (K ⊢ i-j-1 ~ϵ 𝐅*[0]⦃W⦄ → ⊥) → (∀T. ⇧[j, 1] T ≡ U → ⊥) → R 0 (i-j-1) K W → R d i L U) → ∀d,i,L,U. d ≤ yinj i → (L ⊢ i ~ϵ 𝐅*[d]⦃U⦄ → ⊥) → R d i L U. #R #IH1 #IH2 #d #i #L #U generalize in match d; -d generalize in match i; -i @(f2_ind … rfw … L U) -L -U #n #IHn #L #U #Hn #i #d #Hdi #H elim (frees_inv_ge … H) -H /3 width=2 by/ -IH1 * #I #K #W #j #Hdj #Hji #HLK #HnW #HnU destruct /4 width=12 by ldrop_fwd_rfw/ qed-. *)