example with rational numbers
authorhaftmann
Wed, 24 Oct 2007 07:19:54 +0200
changeset 25165 f3739a8da38f
parent 25164 0fcb4775cbfb
child 25166 d813a98a5a36
example with rational numbers
src/HOL/ex/NormalForm.thy
--- a/src/HOL/ex/NormalForm.thy	Wed Oct 24 07:19:53 2007 +0200
+++ b/src/HOL/ex/NormalForm.thy	Wed Oct 24 07:19:54 2007 +0200
@@ -5,7 +5,7 @@
 header {* Test of normalization function *}
 
 theory NormalForm
-imports Main
+imports Main "~~/src/HOL/Real/Rational"
 begin
 
 lemma "True" by normalization
@@ -110,6 +110,7 @@
 lemma "nat 4 = Suc (Suc (Suc (Suc 0)))" by normalization
 lemma "[Suc 0, 0] = [Suc 0, 0]" by normalization
 lemma "max (Suc 0) 0 = Suc 0" by normalization
+lemma "(42::rat) / 1704 = 7 / 284" by normalization
 
 normal_form "Suc 0 \<in> set ms"