Merged
authorCezary Kaliszyk <kaliszyk@in.tum.de>
Thu, 15 Oct 2009 11:57:33 +0200
changeset 105 3134acbcc42c
parent 104 41a2ab50dd89 (current diff)
parent 102 9d41f680d755 (diff)
child 106 a250b56e7f2a
Merged
QuotMain.thy
--- a/QuotMain.thy	Thu Oct 15 11:56:30 2009 +0200
+++ b/QuotMain.thy	Thu Oct 15 11:57:33 2009 +0200
@@ -886,7 +886,8 @@
   type needs to respect. *}
 ML {*
 fun tyRel ty rty rel lthy =
-  if ty = rty then rel
+  if ty = rty 
+  then rel
   else (case ty of
           Type (s, tys) =>
             let
@@ -896,10 +897,10 @@
             in
             (case (lookup (ProofContext.theory_of lthy) s) of
                SOME (info) => list_comb (Const (#relfun info, tys_out), map (fn ty => tyRel ty rty rel lthy) tys)
-             | NONE  => Const (@{const_name "op ="}, ty --> ty --> @{typ bool})
+             | NONE  => HOLogic.eq_const ty
             )
             end
-        | _ => Const (@{const_name "op ="}, ty --> ty --> @{typ bool}))
+        | _ => HOLogic.eq_const ty)
 *}
 
 ML {*