src/HOL/Tools/Old_Datatype/old_datatype.ML
changeset 61260 e6f03fae14d5
parent 61110 6b7c2ecc6aea
child 61466 9a468c3a1fa1
equal deleted inserted replaced
61259:6dc3d5d50e57 61260:e6f03fae14d5
   184 
   184 
   185     val (typedefs, thy3) = thy2
   185     val (typedefs, thy3) = thy2
   186       |> Sign.parent_path
   186       |> Sign.parent_path
   187       |> fold_map
   187       |> fold_map
   188         (fn (((name, mx), tvs), c) =>
   188         (fn (((name, mx), tvs), c) =>
   189           Typedef.add_typedef_global (name, tvs, mx)
   189           Typedef.add_typedef_global {overloaded = false} (name, tvs, mx)
   190             (Collect $ Const (c, UnivT')) NONE
   190             (Collect $ Const (c, UnivT')) NONE
   191             (fn ctxt =>
   191             (fn ctxt =>
   192               resolve_tac ctxt [exI] 1 THEN
   192               resolve_tac ctxt [exI] 1 THEN
   193               resolve_tac ctxt [CollectI] 1 THEN
   193               resolve_tac ctxt [CollectI] 1 THEN
   194               QUIET_BREADTH_FIRST (has_fewer_prems 1)
   194               QUIET_BREADTH_FIRST (has_fewer_prems 1)