]> matita.cs.unibo.it Git - helm.git/blob - matita/matita/contribs/lambda_delta/Basic_2/computation/csn_cr.ma
- more properties on strongly normalizing terms ...
[helm.git] / matita / matita / contribs / lambda_delta / Basic_2 / computation / csn_cr.ma
1 (**************************************************************************)
2 (*       ___                                                              *)
3 (*      ||M||                                                             *)
4 (*      ||A||       A project by Andrea Asperti                           *)
5 (*      ||T||                                                             *)
6 (*      ||I||       Developers:                                           *)
7 (*      ||T||         The HELM team.                                      *)
8 (*      ||A||         http://helm.cs.unibo.it                             *)
9 (*      \   /                                                             *)
10 (*       \ /        This file is distributed under the terms of the       *)
11 (*        v         GNU General Public License Version 2                  *)
12 (*                                                                        *)
13 (**************************************************************************)
14
15 include "Basic_2/computation/acp_cr.ma".
16 include "Basic_2/computation/csn_lcpr.ma".
17 include "Basic_2/computation/csn_vector.ma".
18
19 (* CONTEXT-SENSITIVE STRONGLY NORMALIZING TERMS *****************************)
20
21 (* Advanced properties ******************************************************)
22 (*
23
24 (* Basic_1: was only: sn3_appl_appls *)
25 lemma csn_appl_appls_simple_tstc: ∀L,Vs,V,T1. L ⊢ ⬇* V → L ⊢ ⬇* T1 →
26                                   (∀T2. L ⊢ ⒶVs.T1 ➡* T2 → (ⒶVs.T1 ≃ T2 → False) → L ⊢ ⬇* ⓐV. T2) →
27                                   𝐒[T1] → L ⊢ ⬇* ⓐV. ⒶVs. T1.
28 #L *
29 [ #V #T1 #HV
30   @csn_appl_simple_tstc //
31 | #V0 #Vs #V #T1 #HV #H1T1 #H2T1 #H3T1
32   @csn_appl_simple_tstc // -HV
33   [ @H2T1
34 ]
35 qed.
36
37 lemma csn_applv_theta: ∀L,V1s,V2s. ⇧[0, 1] V1s ≡ V2s →
38                        ∀V,T. L ⊢ ⬇* ⓓV. ⒶV2s. T → L ⊢ ⬇* V → L ⊢ ⬇* ⒶV1s. ⓓV. T.
39 #L #V1s #V2s * -V1s -V2s /2 width=1/
40 #V1s #V2s #V1 #V2 #HV12 * -V1s -V2s /2 width=3/
41 #V1s #V2s #W1 #W2 #HW12 #HV12s #V #T #H #HV
42 lapply (csn_appl_theta … HV12 … H) -H -HV12 #H
43 lapply (csn_fwd_pair_sn … H) #HV1
44 @csn_appl_simple // #X #H1 #H2
45 whd in ⊢ (? ? %);
46 *)
47 (*
48 lemma csn_S5: ∀L,V1s,V2s. ⇧[0, 1] V1s ≡ V2s →
49               ∀V,T. L. ⓓV ⊢ ⬇* ⒶV2s. T → L ⊢ ⬇* V → L ⊢ ⬇* ⒶV1s. ⓓV. T.
50 #L #V1s #V2s #H elim H -V1s -V2s /2 width=1/
51 *)
52
53 axiom csn_acr: acr cpr (eq …) (csn …) (λL,T. L ⊢ ⬇* T).