]> matita.cs.unibo.it Git - helm.git/blobdiff - matita/contribs/assembly/freescale/freescale_ocaml/matita_datatypes_bool.ml
branch for universe
[helm.git] / matita / contribs / assembly / freescale / freescale_ocaml / matita_datatypes_bool.ml
diff --git a/matita/contribs/assembly/freescale/freescale_ocaml/matita_datatypes_bool.ml b/matita/contribs/assembly/freescale/freescale_ocaml/matita_datatypes_bool.ml
new file mode 100644 (file)
index 0000000..2fead65
--- /dev/null
@@ -0,0 +1,45 @@
+type bool =
+True
+ | False
+;;
+
+let bool_rec =
+(function p -> (function p1 -> (function b -> 
+(match b with 
+   True -> p
+ | False -> p1)
+)))
+;;
+
+let bool_rect =
+(function p -> (function p1 -> (function b -> 
+(match b with 
+   True -> p
+ | False -> p1)
+)))
+;;
+
+let notb =
+(function b -> 
+(match b with 
+   True -> False
+ | False -> True)
+)
+;;
+
+let andb =
+(function b1 -> (function b2 -> 
+(match b1 with 
+   True -> b2
+ | False -> False)
+))
+;;
+
+let orb =
+(function b1 -> (function b2 -> 
+(match b1 with 
+   True -> True
+ | False -> b2)
+))
+;;
+