prefer Binding.name_of over Binding.print -- the latter leads to funny quotes and markup within the constructed term;
--- a/src/HOL/Tools/Lifting/lifting_def.ML Mon Aug 26 15:57:09 2013 +0200
+++ b/src/HOL/Tools/Lifting/lifting_def.ML Mon Aug 26 16:13:20 2013 +0200
@@ -406,7 +406,7 @@
val absrep_trm = quot_thm_abs quot_thm
val rty_forced = (domain_type o fastype_of) absrep_trm
val forced_rhs = force_rty_type lthy rty_forced rhs
- val lhs = Free (Binding.print (#1 var), qty)
+ val lhs = Free (Binding.name_of (#1 var), qty)
val prop = Logic.mk_equals (lhs, absrep_trm $ forced_rhs)
val (_, prop') = Local_Defs.cert_def lthy prop
val (_, newrhs) = Local_Defs.abs_def prop'