]> matita.cs.unibo.it Git - helm.git/blob - matita/matita/contribs/lambdadelta/static_2/static/cpce.ma
update in basic_2 and static_2
[helm.git] / matita / matita / contribs / lambdadelta / static_2 / static / cpce.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 "static_2/notation/relations/pconveta_4.ma".
16 include "static_2/relocation/lifts.ma".
17 include "static_2/static/aaa.ma".
18
19 (* CONTEXT-SENSITIVE PARALLEL ETA-CONVERSION FOR TERMS **********************)
20
21 (* avtivate genv *)
22 inductive cpce: relation4 genv lenv term term ≝
23 | cpce_sort: ∀G,L,s. cpce G L (⋆s) (⋆s)
24 | cpce_abbr: ∀G,K,V. cpce G (K.ⓓV) (#0) (#0)
25 | cpce_abst: ∀G,K,W,B,A. ⦃G,K⦄ ⊢ W ⁝ ②B.A →
26              cpce G (K.ⓛW) (#0) (+ⓛW.ⓐ#0.#1)
27 | cpce_lref: ∀I,G,K,T,U,i. cpce G K (#i) T →
28              ⬆*[1] T ≘ U → cpce G (K.ⓘ{I}) (#↑i) U
29 | cpce_bind: ∀p,I,G,K,V1,V2,T1,T2.
30              cpce G K V1 V2 → cpce G (K.ⓑ{I}V1) T1 T2 →
31              cpce G K (ⓑ{p,I}V1.T1) (ⓑ{p,I}V2.T2)
32 | cpce_flat: ∀I,G,L,V1,V2,T1,T2.
33              cpce G L V1 V2 → cpce G L T1 T2 →
34              cpce G L (ⓕ{I}V1.T1) (ⓕ{I}V2.T2)
35 .
36
37 interpretation
38    "context-sensitive parallel eta-conversion (term)"
39    'PConvEta G L T1 T2 = (cpce G L T1 T2).