]> matita.cs.unibo.it Git - helm.git/blob - matita/matita/contribs/lambdadelta/basic_2/conversion/cpc.ma
ab76bac16d21d47c15712010fb471bdb33491320
[helm.git] / matita / matita / contribs / lambdadelta / basic_2 / conversion / cpc.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/reduction/cpr.ma".
16
17 (* CONTEXT-SENSITIVE PARALLEL CONVERSION ON TERMS ***************************)
18
19 definition cpc: lenv → relation term ≝
20    λL,T1,T2. L ⊢ T1 ➡ T2 ∨ L ⊢ T2 ➡ T1.
21
22 interpretation
23    "context-sensitive parallel conversion (term)"
24    'PConv L T1 T2 = (cpc L T1 T2).
25
26 (* Basic properties *********************************************************)
27
28 lemma cpc_refl: ∀L. reflexive … (cpc L).
29 /2 width=1/ qed.
30
31 lemma cpc_sym: ∀L. symmetric … (cpc L).
32 #L #T1 #T2 * /2 width=1/
33 qed.
34
35 (* Basic forward lemmas *****************************************************)
36
37 lemma cpc_fwd_cpr: ∀L,T1,T2. L ⊢ T1 ⬌ T2 → ∃∃T. L ⊢ T1 ➡ T & L ⊢ T2 ➡ T.
38 #L #T1 #T2 * /2 width=3/
39 qed.