fixed bug in grobner_ideal
authorchaieb
Mon, 08 Oct 2007 20:20:13 +0200
changeset 24913 eb6fd8f78d56
parent 24912 52bc004950c4
child 24914 95cda5dd58d5
fixed bug in grobner_ideal
src/HOL/Tools/Groebner_Basis/groebner.ML
--- a/src/HOL/Tools/Groebner_Basis/groebner.ML	Mon Oct 08 19:53:09 2007 +0200
+++ b/src/HOL/Tools/Groebner_Basis/groebner.ML	Mon Oct 08 20:20:13 2007 +0200
@@ -357,7 +357,7 @@
 
 fun grobner_ideal vars pols pol =
   let val (pol',h) = reduce (grobner pols) (grob_neg pol,Start(~1)) in
-  if not (null pol) then error "grobner_ideal: not in the ideal" else
+  if not (null pol') then error "grobner_ideal: not in the ideal" else
   resolve_proof vars h end;
 
 (* ------------------------------------------------------------------------- *)