nex example
authornipkow
Mon, 11 Jun 2007 18:34:12 +0200
changeset 23331 da040caa0596
parent 23330 01c09922ce59
child 23332 b91295432e6d
nex example
src/HOL/ex/Groebner_Examples.thy
--- a/src/HOL/ex/Groebner_Examples.thy	Mon Jun 11 18:28:16 2007 +0200
+++ b/src/HOL/ex/Groebner_Examples.thy	Mon Jun 11 18:34:12 2007 +0200
@@ -46,6 +46,9 @@
 theorem "x* (x\<twosuperior> - x  - 5) - 3 = (0::int) \<longleftrightarrow> (x = 3 \<or> x = -1)"
   by algebra
 
+lemma fixes x::"'a::{idom,recpower,number_ring}"
+shows "x^2*y = x^2 & x*y^2 = y^2 \<longleftrightarrow>  x=1 & y=1 | x=0 & y=0"
+by algebra
 
 subsection {* Lemmas for Lagrange's theorem *}