]> matita.cs.unibo.it Git - helm.git/blob - matita/matita/contribs/lambdadelta/basic_2/etc/nta/nta.etc
166fd2105a13bd98cf1938e2ccc1a2470d3f3912
[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 (* Advanced properties ******************************************************)
24
25 | ntaa_cast: ∀L,T,U,W. ntaa h L T U → ntaa h L U W → ntaa h L (ⓝU. T) U
26
27 lemma nta_cast_alt: ∀h,L,T,W,U. ⦃h, L⦄ ⊢ T  : W → ⦃h, L⦄ ⊢ T : U → ⦃h, L⦄ ⊢ ⓝW.T : U.
28 #h #L #T #W #U #HTW #HTU
29 lapply (nta_mono … HTW … HTU) #HWU
30 elim (nta_fwd_correct … HTU) -HTU /3 width=3/
31 qed.
32
33 lemma nta_ind_alt: ∀h. ∀Q:lenv→relation term.
34    (∀L,k. Q L ⋆k ⋆(next h k)) →
35    (∀L,K,V,W,U,i.
36       ⇩[O, i] L ≡ K.ⓓV → ⦃h, K⦄ ⊢ V : W → ⇧[O, i + 1] W ≡ U →
37       Q K V W → Q L (#i) U
38    ) →
39    (∀L,K,W,V,U,i.
40       ⇩[O, i] L ≡ K.ⓛW → ⦃h, K⦄ ⊢ W : V → ⇧[O, i + 1] W ≡ U →
41       Q K W V → Q L (#i) U
42    ) →
43    (∀I,L,V,W,T,U.
44       ⦃h, L⦄ ⊢ V : W → ⦃h, L.ⓑ{I}V⦄ ⊢ T : U →
45       Q L V W → Q (L.ⓑ{I}V) T U → Q L (ⓑ{I}V.T) (ⓑ{I}V.U)
46    ) →
47    (∀L,V,W,T,U.
48       ⦃h, L⦄ ⊢ V : W → ⦃h, L⦄ ⊢ (ⓛW.T):(ⓛW.U) →
49       Q L V W →Q L (ⓛW.T) (ⓛW.U) →Q L (ⓐV.ⓛW.T) (ⓐV.ⓛW.U)
50    ) →
51    (∀L,V,W,T,U.
52       ⦃h, L⦄ ⊢ T : U → ⦃h, L⦄ ⊢ (ⓐV.U) : W →
53       Q L T U → Q L (ⓐV.U) W → Q L (ⓐV.T) (ⓐV.U)
54    ) →
55    (∀L,T,U,W.
56       ⦃h, L⦄ ⊢ T : U → ⦃h, L⦄ ⊢ U : W →
57       Q L T U → Q L U W → Q L (ⓝU.T) U
58    ) →
59    (∀L,T,U1,U2,V2.
60       ⦃h, L⦄ ⊢ T : U1 → L ⊢ U1 ⬌* U2 → ⦃h, L⦄ ⊢ U2 : V2 →
61       Q L T U1 →Q L U2 V2 →Q L T U2
62    ) →
63    ∀L,T,U. ⦃h, L⦄ ⊢ T : U → Q L T U.