]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/matita/library/datatypes/bool.ma
A little bit more of notation here and there.
[helm.git] / helm / matita / library / datatypes / bool.ma
index fdb376c605b80b54d4d1a5f8a612aaf8c714f454..8267aa7f63fcb692311dc916f8f325471805952d 100644 (file)
@@ -24,6 +24,8 @@ definition notb : bool \to bool \def
  [ true \Rightarrow false
  | false \Rightarrow true ].
 
+interpretation "boolean not" 'not x = (cic:/matita/datatypes/bool/notb.con x).
+
 definition andb : bool \to bool \to bool\def
 \lambda b1,b2:bool. 
  match b1 with 
@@ -31,6 +33,8 @@ definition andb : bool \to bool \to bool\def
        match b2 with [true \Rightarrow true | false \Rightarrow false]
  | false \Rightarrow false ].
 
+interpretation "boolean and" 'and x y = (cic:/matita/datatypes/bool/andb.con x y).
+
 definition orb : bool \to bool \to bool\def
 \lambda b1,b2:bool. 
  match b1 with 
@@ -38,8 +42,12 @@ definition orb : bool \to bool \to bool\def
        match b2 with [true \Rightarrow true | false \Rightarrow false]
  | false \Rightarrow false ].
 
+interpretation "boolean or" 'or x y = (cic:/matita/datatypes/bool/orb.con x y).
+
 definition if_then_else : bool \to Prop \to Prop \to Prop \def 
 \lambda b:bool.\lambda P,Q:Prop.
 match b with
 [ true \Rightarrow P
 | false  \Rightarrow Q].
+
+(*CSC: missing notation for if_then_else *)