src/HOL/IOA/meta_theory/Option.ML
changeset 1052 e044350bfa52
parent 966 3fd66f245ad7
child 1266 3ae9fe3c0f68
--- a/src/HOL/IOA/meta_theory/Option.ML	Thu Apr 13 16:57:18 1995 +0200
+++ b/src/HOL/IOA/meta_theory/Option.ML	Thu Apr 13 17:05:41 1995 +0200
@@ -14,3 +14,11 @@
  by (Option.option.induct_tac "opt" 1);
  by (ALLGOALS(fast_tac HOL_cs));
 val optE = store_thm("optE", standard(result() RS disjE));
+
+goal Option.thy "x=None | (? y.x=Some(y))"; 
+by (Option.option.induct_tac "x" 1);
+by (asm_full_simp_tac list_ss 1);
+by (rtac disjI2 1);
+by (rtac exI 1);
+by (asm_full_simp_tac list_ss 1);
+qed"opt_cases";
\ No newline at end of file