doc-src/Codegen/Thy/examples/arbitrary.ML
author haftmann
Thu, 23 Feb 2012 20:33:35 +0100
changeset 46631 2c5c003cee35
parent 30226 2f4684e2ea95
permissions -rw-r--r--
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*)