more robust handling of explicit rules;
authorwenzelm
Sat, 01 Apr 2000 20:11:50 +0200
changeset 8649 dc496bb0638f
parent 8648 7461dc59a818
child 8650 b7542463e936
more robust handling of explicit rules;
src/Pure/Isar/calculation.ML
--- a/src/Pure/Isar/calculation.ML	Sat Apr 01 20:10:57 2000 +0200
+++ b/src/Pure/Isar/calculation.ML	Sat Apr 01 20:11:50 2000 +0200
@@ -130,11 +130,11 @@
     fun combine thms =
       let
         val ths = thms @ facts;
-        val rs = NetRules.inserts (if_none opt_rules []) (get_local_rules state);
+        val rs = get_local_rules state;
         val rules =
           (case ths of [] => NetRules.rules rs
           | th :: _ => NetRules.may_unify rs (Logic.strip_assums_concl (#prop (Thm.rep_thm th))));
-        val ruleq = Seq.of_list rules;
+        val ruleq = Seq.of_list (if_none opt_rules [] @ rules);
       in Seq.map Library.single (Seq.flat (Seq.map (Method.multi_resolve ths) ruleq)) end;
 
     val (initial, calculations) =