finalconsts RepC AbsC;
authorwenzelm
Thu, 15 Apr 2004 20:30:50 +0200
changeset 14570 0bf4e84bf51d
parent 14569 78b75a9eec01
child 14571 b88d5f9e02e1
finalconsts RepC AbsC;
src/HOL/Tools/typedef_package.ML
--- a/src/HOL/Tools/typedef_package.ML	Thu Apr 15 14:17:45 2004 +0200
+++ b/src/HOL/Tools/typedef_package.ML	Thu Apr 15 20:30:50 2004 +0200
@@ -152,9 +152,10 @@
       |> (if def then (apsnd (Some o hd) oo (PureThy.add_defs_i false o map Thm.no_attributes))
            [Logic.mk_defpair (setC, set)]
           else rpair None)
-      |>> PureThy.add_axioms_i [((typedef_name, typedef_prop),
+      |>>> PureThy.add_axioms_i [((typedef_name, typedef_prop),
           [apsnd (fn cond_axm => Drule.standard (nonempty RS cond_axm))])]
-      |> (fn ((theory', [type_definition]), set_def) =>
+      |>> Theory.add_finals_i false [RepC, AbsC]
+      |> (fn (theory', (set_def, [type_definition])) =>
         let
           fun make th = Drule.standard (th OF [type_definition]);
           val (theory'', [Rep, Rep_inverse, Abs_inverse, Rep_inject, Abs_inject,