doc-src/IsarAdvanced/Codegen/Thy/examples/bool_literal.ML
changeset 30226 2f4684e2ea95
parent 30202 2775062fd3a9
child 30227 853abb4853cc
--- a/doc-src/IsarAdvanced/Codegen/Thy/examples/bool_literal.ML	Mon Mar 02 16:58:39 2009 +0100
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,31 +0,0 @@
-structure HOL = 
-struct
-
-datatype boola = False | True;
-
-fun anda x True = x
-  | anda x False = False
-  | anda True x = x
-  | anda False x = False;
-
-end; (*struct HOL*)
-
-structure Nat = 
-struct
-
-datatype nat = Suc of nat | Zero_nat;
-
-fun less_nat m (Suc n) = less_eq_nat m n
-  | less_nat n Zero_nat = HOL.False
-and less_eq_nat (Suc m) n = less_nat m n
-  | less_eq_nat Zero_nat n = HOL.True;
-
-end; (*struct Nat*)
-
-structure Codegen = 
-struct
-
-fun in_interval (k, l) n =
-  HOL.anda (Nat.less_eq_nat k n) (Nat.less_eq_nat n l);
-
-end; (*struct Codegen*)