doc-src/IsarAdvanced/Codegen/Thy/examples/bool_mlbool.ML
author huffman
Tue, 22 May 2007 07:29:49 +0200
changeset 23069 cdfff0241c12
parent 22386 4ebe883b02ff
child 23850 f1434532a562
permissions -rw-r--r--
rename lemmas LIM_ident, isCont_ident, DERIV_ident

structure ROOT = 
struct

structure Nat = 
struct

datatype nat = Zero_nat | Suc of nat;

fun less_nat n (Suc m) = less_eq_nat n m
  | less_nat n Zero_nat = false
and less_eq_nat (Suc n) m = less_nat n m
  | less_eq_nat Zero_nat m = true;

end; (*struct Nat*)

structure Codegen = 
struct

fun in_interval (k, l) n =
  (Nat.less_eq_nat k n) andalso (Nat.less_eq_nat n l);

end; (*struct Codegen*)

end; (*struct ROOT*)