stating more explicitly our expectation that these two terms have the same term structure
--- a/src/Tools/Code/code_thingol.ML Fri Sep 09 12:33:09 2011 +0200
+++ b/src/Tools/Code/code_thingol.ML Fri Sep 09 14:43:50 2011 +0200
@@ -596,7 +596,9 @@
end
| annotate_term (Abs (_, _, t1) , Abs (x, T, t)) tvar_names =
apfst (fn t => Abs (x, T, t)) (annotate_term (t1, t) tvar_names)
- | annotate_term (_, t) tvar_names = (t, tvar_names)
+ | annotate_term (Free _, t as Free _) tvar_names = (t, tvar_names)
+ | annotate_term (Var _, t as Var _) tvar_names = (t, tvar_names)
+ | annotate_term (Bound _, t as Bound _) tvar_names = (t, tvar_names)
fun annotate_eqns thy (c, ty) eqns =
let