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_2A/multiple/lleq_drop.ma".
16 include "basic_2A/static/aaa.ma".
18 (* ATONIC ARITY ASSIGNMENT ON TERMS *****************************************)
20 (* Properties on lazy equivalence for local environments ********************)
22 lemma lleq_aaa_trans: ∀G,L2,T,A. ⦃G, L2⦄ ⊢ T ⁝ A →
23 ∀L1. L1 ≡[T, 0] L2 → ⦃G, L1⦄ ⊢ T ⁝ A.
24 #G #L2 #T #A #H elim H -G -L2 -T -A /2 width=1 by aaa_sort/
25 [ #I #G #L2 #K2 #V2 #A #i #HLK2 #_ #IHV2 #L1 #H elim (lleq_fwd_lref_dx … H … HLK2) -L2
26 [ #H elim (ylt_yle_false … H) //
27 | * /3 width=5 by aaa_lref/
29 | #a #G #L2 #V #T #B #A #_ #_ #IHV #IHT #L1 #H elim (lleq_inv_bind_O … H) -H
30 /3 width=2 by aaa_abbr/
31 | #a #G #L2 #V #T #B #A #_ #_ #IHV #IHT #L1 #H elim (lleq_inv_bind_O … H) -H
32 /3 width=1 by aaa_abst/
33 | #G #L2 #V #T #B #A #_ #_ #IHV #IHT #L1 #H elim (lleq_inv_flat … H) -H
34 /3 width=3 by aaa_appl/
35 | #G #L2 #V #T #A #_ #_ #IHV #IHT #L1 #H elim (lleq_inv_flat … H) -H
36 /3 width=1 by aaa_cast/
40 lemma aaa_lleq_conf: ∀G,L2,T,A. ⦃G, L2⦄ ⊢ T ⁝ A →
41 ∀L1. L2 ≡[T, 0] L1 → ⦃G, L1⦄ ⊢ T ⁝ A.
42 /3 width=3 by lleq_aaa_trans, lleq_sym/ qed-.