]> matita.cs.unibo.it Git - helm.git/blob - helm/software/matita/contribs/RELATIONAL/BEq/defs.ma
some updates
[helm.git] / helm / software / matita / contribs / RELATIONAL / BEq / defs.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 set "baseuri" "cic:/matita/RELATIONAL/BEq/defs".
16
17 include "logic/equality.ma".
18
19 include "Bool/defs.ma".
20
21 inductive BEq (A:Type) (a1:A): A \to Bool \to Prop \def
22    | beq_true : BEq A a1 a1 true
23    | beq_false: \forall a2. (a1 = a2 -> False) \to BEq A a1 a2 false
24 .
25
26 (*CSC: the URI must disappear: there is a bug now *)
27 interpretation "boolean equality" 'beq x y z = 
28    (cic:/matita/RELATIONAL/BEq/defs/BEq.ind#xpointer(1/1) _ x y z).
29
30 notation "hvbox(a break -- b break == c)" 
31   non associative with precedence 95
32 for @{ 'beq $a $b $c}.