]> matita.cs.unibo.it Git - helm.git/blobdiff - matita/contribs/RELATIONAL/BEq/defs.ma
added option -dump to matitac for persistent macro expansion
[helm.git] / matita / contribs / RELATIONAL / BEq / defs.ma
index 0b52af116a59c63f0a89c3f0ca05cbf14fa46e8e..3ab3b002e8f24f5431095254e43c0c87311d7e5e 100644 (file)
@@ -16,9 +16,17 @@ set "baseuri" "cic:/matita/RELATIONAL/BEq/defs".
 
 include "logic/equality.ma".
 
-include "BNot/defs.ma".
+include "Bool/defs.ma".
 
-inductive BEq (b1:Bool): Bool \to Bool \to Prop \def
-   | beq_false: \forall b2. BNot b1 b2 \to BEq b1 false b2
-   | beq_true : BEq b1 true b1
+inductive BEq (A:Type) (a1:A): A \to Bool \to Prop \def
+   | beq_true : BEq A a1 a1 true
+   | beq_false: \forall a2. (a1 = a2 -> False) \to BEq A a1 a2 false
 .
+
+(*CSC: the URI must disappear: there is a bug now *)
+interpretation "boolean equality" 'beq x y z = 
+   (cic:/matita/RELATIONAL/BEq/defs/BEq.ind#xpointer(1/1) _ x y z).
+
+notation "hvbox(a break -- b break == c)" 
+  non associative with precedence 95
+for @{ 'beq $a $b $c}.