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/term.ma".
17 (* BINDERS FOR LOCAL ENVIRONMENTS ******************************************)
19 inductive bind: Type[0] ≝
21 | BPair: bind2 → term → bind
24 (* Basic properties ********************************************************)
26 lemma eq_bind_dec: ∀I1,I2:bind. Decidable (I1 = I2).
27 * #I1 [2: #V1 ] * #I2 [2,4: #V2 ]
28 [1: elim (eq_bind2_dec I1 I2) #HI
29 [ elim (eq_term_dec V1 V2) #HV ]
30 |4: elim (eq_bind1_dec I1 I2) #HI
32 /2 width=1 by or_introl/
33 @or_intror #H destruct /2 width=1 by/