moved lemmas for orderings and lattices on predicates to corresponding theories, retaining declaration order of classical rules; tuned headings; tuned syntax
structure Codegen =
struct
val arbitrary_option : 'a option = NONE;
fun dummy_option [] = arbitrary_option
| dummy_option (x :: xs) = SOME x;
end; (*struct Codegen*)