additional pattern allows reduction of fractions to lowest terms
authorpaulson
Mon, 08 Jan 2001 11:06:24 +0100
changeset 10825 47c4a76b0c7a
parent 10824 4a212e635318
child 10826 f3b7201dda27
additional pattern allows reduction of fractions to lowest terms
src/HOL/Hyperreal/HyperArith0.ML
src/HOL/Real/RealArith0.ML
--- a/src/HOL/Hyperreal/HyperArith0.ML	Mon Jan 08 10:33:51 2001 +0100
+++ b/src/HOL/Hyperreal/HyperArith0.ML	Mon Jan 08 11:06:24 2001 +0100
@@ -269,7 +269,8 @@
 
 val hypreal_cancel_numeral_factors_divide = prep_simproc
 	("hyprealdiv_cancel_numeral_factor", 
-	 prep_pats ["((l::hypreal) * m) / n", "(l::hypreal) / (m * n)"], 
+	 prep_pats ["((l::hypreal) * m) / n", "(l::hypreal) / (m * n)", 
+                     "((number_of v)::hypreal) / (number_of w)"], 
 	 DivCancelNumeralFactor.proc);
 
 val hypreal_cancel_numeral_factors = 
--- a/src/HOL/Real/RealArith0.ML	Mon Jan 08 10:33:51 2001 +0100
+++ b/src/HOL/Real/RealArith0.ML	Mon Jan 08 11:06:24 2001 +0100
@@ -257,7 +257,8 @@
 
 val real_cancel_numeral_factors_divide = prep_simproc
 	("realdiv_cancel_numeral_factor", 
-	 prep_pats ["((l::real) * m) / n", "(l::real) / (m * n)"], 
+	 prep_pats ["((l::real) * m) / n", "(l::real) / (m * n)", 
+                     "((number_of v)::real) / (number_of w)"], 
 	 DivCancelNumeralFactor.proc);
 
 val real_cancel_numeral_factors =