]> matita.cs.unibo.it Git - helm.git/blob - matita/matita/contribs/lambdadelta/basic_2/etc/nta/nta.etc
update in basic_2
[helm.git] / matita / matita / contribs / lambdadelta / basic_2 / etc / nta / nta.etc
1 (* Basic_1: was by definition: ty3_abst *)
2 (* Basic_2A1: was by definition: nta_ldec ntaa_ldec *)
3 lemma nta_ldec_drops
4
5 (* Basic_1: was by definition: ty3_bind *)
6 (* Basic_2A1: was by definition: nta_bind ntaa_bind *)
7 lemma nta_bind
8
9 (* Basic_2A1: was by definition: nta_pure ntaa_pure *)
10 lemma nta_pure
11
12 (* Basic_1: was: ty3_gen_bind *)
13 (* Basic_2A1: was: nta_inv_bind1 ntaa_inv_bind1 *)
14 lemma nta_inv_bind_sn
15
16 (* Basic_1: was: ty3_gen_lref *)
17 (* Basic_2A1: was: nta_inv_lref1 *)
18 lemma nta_inv_lref_sn_drops
19
20 (* Basic_1: uses: ty3_gen_abst_abst *)
21 lemma nta_inv_abst_bi
22
23 (* Basic_1: uses: pc3_dec *)
24 lemma nta_cpcs_dec
25
26 (* Advanced properties ******************************************************)
27
28 | ntaa_cast: ∀L,T,U,W. ntaa h L T U → ntaa h L U W → ntaa h L (ⓝU. T) U
29
30 lemma nta_cast_alt: ∀h,L,T,W,U. ⦃h, L⦄ ⊢ T  : W → ⦃h, L⦄ ⊢ T : U → ⦃h, L⦄ ⊢ ⓝW.T : U.
31 #h #L #T #W #U #HTW #HTU
32 lapply (nta_mono … HTW … HTU) #HWU
33 elim (nta_fwd_correct … HTU) -HTU /3 width=3/
34 qed.
35
36 lemma nta_ind_alt: ∀h. ∀Q:lenv→relation term.
37    (∀L,k. Q L ⋆k ⋆(next h k)) →
38    (∀L,K,V,W,U,i.
39       ⇩[O, i] L ≡ K.ⓓV → ⦃h, K⦄ ⊢ V : W → ⇧[O, i + 1] W ≡ U →
40       Q K V W → Q L (#i) U
41    ) →
42    (∀L,K,W,V,U,i.
43       ⇩[O, i] L ≡ K.ⓛW → ⦃h, K⦄ ⊢ W : V → ⇧[O, i + 1] W ≡ U →
44       Q K W V → Q L (#i) U
45    ) →
46    (∀I,L,V,W,T,U.
47       ⦃h, L⦄ ⊢ V : W → ⦃h, L.ⓑ{I}V⦄ ⊢ T : U →
48       Q L V W → Q (L.ⓑ{I}V) T U → Q L (ⓑ{I}V.T) (ⓑ{I}V.U)
49    ) →
50    (∀L,V,W,T,U.
51       ⦃h, L⦄ ⊢ V : W → ⦃h, L⦄ ⊢ (ⓛW.T):(ⓛW.U) →
52       Q L V W →Q L (ⓛW.T) (ⓛW.U) →Q L (ⓐV.ⓛW.T) (ⓐV.ⓛW.U)
53    ) →
54    (∀L,V,W,T,U.
55       ⦃h, L⦄ ⊢ T : U → ⦃h, L⦄ ⊢ (ⓐV.U) : W →
56       Q L T U → Q L (ⓐV.U) W → Q L (ⓐV.T) (ⓐV.U)
57    ) →
58    (∀L,T,U,W.
59       ⦃h, L⦄ ⊢ T : U → ⦃h, L⦄ ⊢ U : W →
60       Q L T U → Q L U W → Q L (ⓝU.T) U
61    ) →
62    (∀L,T,U1,U2,V2.
63       ⦃h, L⦄ ⊢ T : U1 → L ⊢ U1 ⬌* U2 → ⦃h, L⦄ ⊢ U2 : V2 →
64       Q L T U1 →Q L U2 V2 →Q L T U2
65    ) →
66    ∀L,T,U. ⦃h, L⦄ ⊢ T : U → Q L T U.