author | haftmann |
Fri, 24 Aug 2007 14:14:17 +0200 | |
changeset 24421 | acfb2413faa3 |
parent 23850 | f1434532a562 |
child 26318 | 967323f93c67 |
permissions | -rw-r--r-- |
21341 | 1 |
structure Nat = |
2 |
struct |
|
3 |
||
24421 | 4 |
datatype nat = Suc of nat | Zero_nat; |
21341 | 5 |
|
22386 | 6 |
fun less_nat n (Suc m) = less_eq_nat n m |
21994 | 7 |
| less_nat n Zero_nat = false |
22386 | 8 |
and less_eq_nat (Suc n) m = less_nat n m |
9 |
| less_eq_nat Zero_nat m = true; |
|
21341 | 10 |
|
11 |
end; (*struct Nat*) |
|
12 |
||
13 |
structure Codegen = |
|
14 |
struct |
|
15 |
||
21994 | 16 |
fun in_interval (k, l) n = |
22015 | 17 |
Nat.less_eq_nat k n andalso Nat.less_eq_nat n l; |
21341 | 18 |
|
19 |
end; (*struct Codegen*) |