changed a step for the improved rules for setsum
authorpaulson
Tue, 20 Jun 2000 11:51:21 +0200
changeset 9090 7141b912b0bb
parent 9089 96dcdd84f1e1
child 9091 8ae7a2e5119b
changed a step for the improved rules for setsum
src/HOL/UNITY/AllocBase.ML
--- a/src/HOL/UNITY/AllocBase.ML	Tue Jun 20 11:50:33 2000 +0200
+++ b/src/HOL/UNITY/AllocBase.ML	Tue Jun 20 11:51:21 2000 +0200
@@ -106,19 +106,17 @@
 by Auto_tac;
 qed "bag_of_sublist_lemma";
 
-
 Goal "finite A \
 \     ==> bag_of (sublist l A) = \
 \         setsum (%i. if i < length l then {# nth l i #} else {#}) A";
 by (res_inst_tac [("xs","l")] rev_induct 1);
 by (Simp_tac 1);
 by (stac (symmetric Zero_def) 1);
-by (etac (setsum_0 RS sym) 1);
+by (rtac (setsum_0 RS sym) 1);
 by (asm_simp_tac (simpset() addsimps [sublist_append, 
 				      bag_of_sublist_lemma]) 1);
 qed "bag_of_sublist";
 
-
 Goal "[| finite A; finite B |] \
 \     ==> bag_of (sublist l (A Un B)) + bag_of (sublist l (A Int B)) = \
 \         bag_of (sublist l A) + bag_of (sublist l B)";