doc-src/IsarAdvanced/Codegen/Thy/examples/arbitrary.ML
author krauss
Fri, 22 Jun 2007 10:23:37 +0200
changeset 23473 997bca36d4fe
parent 21994 dfa5133dbe73
child 23850 f1434532a562
permissions -rw-r--r--
new method "elim_to_cases" provides ad-hoc conversion of obtain-style elimination goals to a disjunction of existentials.

structure ROOT = 
struct

structure Codegen = 
struct

val arbitrary_option : 'a option = NONE;

fun dummy_option [] = arbitrary_option
  | dummy_option (x :: xs) = SOME x;

end; (*struct Codegen*)

end; (*struct ROOT*)