Type constraint added to ensure that "length" refers to lists. Maybe should
authorpaulson
Mon, 16 Jun 1997 14:25:33 +0200
changeset 3438 8d63ff01d37e
parent 3437 bea2faf1641d
child 3439 54785105178c
Type constraint added to ensure that "length" refers to lists. Maybe should not be needed, but the translation length->size happens irrespective of types
src/HOL/MiniML/Type.ML
--- a/src/HOL/MiniML/Type.ML	Mon Jun 16 14:24:11 1997 +0200
+++ b/src/HOL/MiniML/Type.ML	Mon Jun 16 14:25:33 1997 +0200
@@ -651,7 +651,8 @@
 
 (* lemmata for substitutions *)
 
-goalw Type.thy [app_subst_list] "length ($ S A) = length A";
+goalw Type.thy [app_subst_list] 
+   "!!A:: ('a::type_struct) list. length ($ S A) = length A";
 by (Simp_tac 1);
 qed "length_app_subst_list";
 Addsimps [length_app_subst_list];