removed unused excluded_middle_tac;
authorwenzelm
Sat, 14 Jun 2008 23:20:02 +0200
changeset 27211 6724f31a1c8e
parent 27210 2a8d03e0bbb9
child 27212 3a3686dd4433
removed unused excluded_middle_tac; proper context for tactics derived from res_inst_tac; tuned setup;
src/FOL/FOL.thy
src/FOL/cladata.ML
--- a/src/FOL/FOL.thy	Sat Jun 14 23:20:00 2008 +0200
+++ b/src/FOL/FOL.thy	Sat Jun 14 23:20:02 2008 +0200
@@ -60,12 +60,6 @@
   apply assumption
   done
 
-(*For disjunctive case analysis*)
-ML {*
-  fun excluded_middle_tac sP =
-    res_inst_tac [("Q",sP)] (@{thm excluded_middle} RS @{thm disjE})
-*}
-
 lemma case_split [case_names True False]:
   assumes r1: "P ==> Q"
     and r2: "~P ==> Q"
@@ -76,9 +70,14 @@
   done
 
 ML {*
-  fun case_tac a = res_inst_tac [("P",a)] @{thm case_split}
+  fun case_tac ctxt a =
+    RuleInsts.res_inst_tac ctxt [(("P", 0), a)] @{thm case_split}
 *}
 
+method_setup case_tac =
+  {* Method.goal_args_ctxt Args.name case_tac *}
+  "case_tac emulation (dynamic instantiation!)"
+
 
 (*** Special elimination rules *)
 
@@ -169,7 +168,6 @@
 use "cladata.ML"
 setup Cla.setup
 setup cla_setup
-setup case_setup
 
 use "blastdata.ML"
 setup Blast.setup
--- a/src/FOL/cladata.ML	Sat Jun 14 23:20:00 2008 +0200
+++ b/src/FOL/cladata.ML	Sat Jun 14 23:20:02 2008 +0200
@@ -37,8 +37,3 @@
                      addSEs [@{thm exE}, @{thm alt_ex1E}] addEs [@{thm allE}];
 
 val cla_setup = Cla.map_claset (K FOL_cs);
-
-val case_setup =
- (Method.add_methods
-    [("case_tac", Method.goal_args Args.name case_tac,
-      "case_tac emulation (dynamic instantiation!)")]);