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 "static_2/syntax/ext2.ma".
16 include "static_2/syntax/lenv.ma".
18 (* EXTENSION TO BINDERS OF A CONTEXT-SENSITIVE RELATION FOR TERMS ***********)
20 definition cext2: (lenv → relation term) → lenv → relation bind ≝
23 (* Basic properties *********************************************************)
25 lemma cext2_sym: ∀R. (∀L1,L2,T1,T2. R L1 T1 T2 → R L2 T2 T1) →
26 ∀L1,L2,I1,I2. cext2 R L1 I1 I2 → cext2 R L2 I2 I1.
27 #R #HR #L1 #L2 #I1 #I2 * /3 width=2 by ext2_pair/
30 lemma cext2_co: ∀R1,R2. (∀L,T1,T2. R1 L T1 T2 → R2 L T1 T2) →
31 ∀L,I1,I2. cext2 R1 L I1 I2 → cext2 R2 L I1 I2.
32 #R1 #R2 #HR #L #I1 #I2 * /3 width=2 by ext2_unit, ext2_pair/