src/HOL/Tools/typedef_package.ML
changeset 11740 86ac4189a1c1
parent 11727 a27150cc8fa5
child 11744 3a4625eaead0
--- a/src/HOL/Tools/typedef_package.ML	Sat Oct 13 20:31:05 2001 +0200
+++ b/src/HOL/Tools/typedef_package.ML	Sat Oct 13 20:31:34 2001 +0200
@@ -216,8 +216,10 @@
 (* typedef_proof interface *)
 
 fun gen_typedef_proof prep_term ((name, typ, set), comment) int thy =
-  let val (_, goal, goal_pat, att) = prepare_typedef prep_term false name typ set thy;
-  in thy |> IsarThy.theorem_i ((("", [att]), (goal, ([goal_pat], []))), comment) int end;
+  let val (_, goal, goal_pat, att) = prepare_typedef prep_term false name typ set thy in
+    thy
+    |> IsarThy.theorem_i Drule.internalK ((("", [att]), (goal, ([goal_pat], []))), comment) int
+  end;
 
 val typedef_proof = gen_typedef_proof read_term;
 val typedef_proof_i = gen_typedef_proof cert_term;