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/grammar/term_vector.ma".
16 include "basic_2/computation/csn.ma".
18 (* CONTEXT-SENSITIVE EXTENDED STRONGLY NORMALIZING TERM VECTORS *************)
20 definition csnv: ∀h. sd h → relation3 genv lenv (list term) ≝
21 λh,g,G,L. all … (csn h g G L).
24 "context-sensitive strong normalization (term vector)"
25 'SN h g G L Ts = (csnv h g G L Ts).
27 (* Basic inversion lemmas ***************************************************)
29 lemma csnv_inv_cons: ∀h,g,G,L,T,Ts. ⦃G, L⦄ ⊢ ⬊*[h, g] T @ Ts →
30 ⦃G, L⦄ ⊢ ⬊*[h, g] T ∧ ⦃G, L⦄ ⊢ ⬊*[h, g] Ts.
33 (* Basic forward lemmas *****************************************************)
35 lemma csn_fwd_applv: ∀h,g,G,L,T,Vs. ⦃G, L⦄ ⊢ ⬊*[h, g] Ⓐ Vs.T →
36 ⦃G, L⦄ ⊢ ⬊*[h, g] Vs ∧ ⦃G, L⦄ ⊢ ⬊*[h, g] T.
37 #h #g #G #L #T #Vs elim Vs -Vs /2 width=1/
39 lapply (csn_fwd_pair_sn … HVs) #HV
40 lapply (csn_fwd_flat_dx … HVs) -HVs #HVs
41 elim (IHVs HVs) -IHVs -HVs /3 width=1/