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/dynamic/nta.ma".
16 include "basic_2/i_dynamic/ntas.ma".
18 (* ITERATED NATIVE TYPE ASSIGNMENT FOR TERMS ********************************)
22 definition ntas: sh → lenv → relation term ≝
23 λh,L. star … (nta h L).
25 (* Basic eliminators ********************************************************)
27 axiom ntas_ind_dx: ∀h,L,T2. ∀R:predicate term. R T2 →
28 (∀T1,T. ⦃h,L⦄ ⊢ T1 : T → ⦃h,L⦄ ⊢ T :* T2 → R T → R T1) →
29 ∀T1. ⦃h,L⦄ ⊢ T1 :* T2 → R T1.
31 #h #L #T2 #R #HT2 #IHT2 #T1 #HT12
32 @(star_ind_dx … HT2 IHT2 … HT12) //
35 (* Basic properties *********************************************************)
37 lemma ntas_strap1: ∀h,L,T1,T,T2.
38 ⦃h,L⦄ ⊢ T1 :* T → ⦃h,L⦄ ⊢ T : T2 → ⦃h,L⦄ ⊢ T1 :* T2.
41 lemma ntas_strap2: ∀h,L,T1,T,T2.
42 ⦃h,L⦄ ⊢ T1 : T → ⦃h,L⦄ ⊢ T :* T2 → ⦃h,L⦄ ⊢ T1 :* T2.