src/Pure/axclass.ML
changeset 27683 add9a605d562
parent 27554 2deaa546ba0d
child 27691 ce171cbd4b93
equal deleted inserted replaced
27682:25aceefd4786 27683:add9a605d562
   372     |> Sign.declare_const [] (c', T', NoSyn)
   372     |> Sign.declare_const [] (c', T', NoSyn)
   373     |-> (fn const' as Const (c'', _) => Thm.add_def false true
   373     |-> (fn const' as Const (c'', _) => Thm.add_def false true
   374           (Thm.def_name c', Logic.mk_equals (Const (c, T'), const'))
   374           (Thm.def_name c', Logic.mk_equals (Const (c, T'), const'))
   375     #>> Thm.varifyT
   375     #>> Thm.varifyT
   376     #-> (fn thm => add_inst_param (c, tyco) (c'', thm)
   376     #-> (fn thm => add_inst_param (c, tyco) (c'', thm)
   377     #> PureThy.note Thm.internalK (c', thm)
   377     #> PureThy.add_thm ((c', thm), [PureThy.kind_internal])
   378     #> snd
   378     #> snd
   379     #> Sign.restore_naming thy
   379     #> Sign.restore_naming thy
   380     #> pair (Const (c, T))))
   380     #> pair (Const (c, T))))
   381   end;
   381   end;
   382 
   382