1 (**************************************************************************)
4 (* ||A|| A project by Andrea Asperti *)
6 (* ||I|| Developers: *)
7 (* ||T|| A.Asperti, C.Sacerdoti Coen, *)
8 (* ||A|| E.Tassi, S.Zacchiroli *)
10 (* \ / This file is distributed under the terms of the *)
11 (* v GNU Lesser General Public License Version 2.1 *)
13 (**************************************************************************)
15 set "baseuri" "cic:/matita/bool/".
17 inductive bool : Set \def
21 definition notb : bool \to bool \def
24 [ true \Rightarrow false
25 | false \Rightarrow true ].
27 (*CSC: the URI must disappear: there is a bug now *)
28 interpretation "boolean not" 'not x = (cic:/matita/datatypes/bool/notb.con x).
30 definition andb : bool \to bool \to bool\def
34 match b2 with [true \Rightarrow true | false \Rightarrow false]
35 | false \Rightarrow false ].
37 (*CSC: the URI must disappear: there is a bug now *)
38 interpretation "boolean and" 'and x y = (cic:/matita/datatypes/bool/andb.con x y).
40 definition orb : bool \to bool \to bool\def
44 match b2 with [true \Rightarrow true | false \Rightarrow false]
45 | false \Rightarrow false ].
47 (*CSC: the URI must disappear: there is a bug now *)
48 interpretation "boolean or" 'or x y = (cic:/matita/datatypes/bool/orb.con x y).
50 definition if_then_else : bool \to Prop \to Prop \to Prop \def
51 \lambda b:bool.\lambda P,Q:Prop.
54 | false \Rightarrow Q].
56 (*CSC: missing notation for if_then_else *)