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/notation/relations/pconv_4.ma".
16 include "basic_2/reduction/cpr.ma".
18 (* CONTEXT-SENSITIVE PARALLEL CONVERSION ON TERMS ***************************)
20 definition cpc: relation4 genv lenv term term ≝
21 λG,L,T1,T2. ⦃G, L⦄ ⊢ T1 ➡ T2 ∨ ⦃G, L⦄ ⊢ T2 ➡ T1.
24 "context-sensitive parallel conversion (term)"
25 'PConv G L T1 T2 = (cpc G L T1 T2).
27 (* Basic properties *********************************************************)
29 lemma cpc_refl: ∀G,L. reflexive … (cpc G L).
30 /2 width=1 by or_intror/ qed.
32 lemma cpc_sym: ∀G,L. symmetric … (cpc L G).
33 #G #L #T1 #T2 * /2 width=1 by or_introl, or_intror/
36 (* Basic forward lemmas *****************************************************)
38 lemma cpc_fwd_cpr: ∀G,L,T1,T2. ⦃G, L⦄ ⊢ T1 ⬌ T2 → ∃∃T. ⦃G, L⦄ ⊢ T1 ➡ T & ⦃G, L⦄ ⊢ T2 ➡ T.
39 #G #L #T1 #T2 * /2 width=3 by ex2_intro/