author | haftmann |
Thu, 20 Sep 2007 16:37:33 +0200 | |
changeset 24661 | a705b9834590 |
parent 24660 | 8f94b16783f7 |
child 24662 | f79f6061525c |
--- a/src/HOL/Real/Rational.thy Thu Sep 20 16:37:32 2007 +0200 +++ b/src/HOL/Real/Rational.thy Thu Sep 20 16:37:33 2007 +0200 @@ -684,10 +684,10 @@ attach (term_of) {* fun term_of_rat (p, q) = let - val rT = @{typ rat} + val rT = Type ("Rational.rat", []) in if q = 1 orelse p = 0 then HOLogic.mk_number rT p - else @{term "op / \<Colon> rat \<Rightarrow> rat \<Rightarrow> rat"} $ + else Const ("HOL.inverse_class.divide", rT --> rT --> rT) $ HOLogic.mk_number rT p $ HOLogic.mk_number rT q end; *}