src/Pure/Isar/proof_context.ML
changeset 22670 c803b2696ada
parent 22587 5454b06320fb
child 22678 23963361278c
equal deleted inserted replaced
22669:62857ad97cca 22670:c803b2696ada
   919     val arg' = (c', rhs');
   919     val arg' = (c', rhs');
   920   in
   920   in
   921     Context.mapping_result
   921     Context.mapping_result
   922       (Sign.add_abbrev Syntax.internalM arg') (add_abbrev Syntax.internalM arg')
   922       (Sign.add_abbrev Syntax.internalM arg') (add_abbrev Syntax.internalM arg')
   923     #-> (fn (lhs, _) =>
   923     #-> (fn (lhs, _) =>
   924       Term.equiv_types (rhs, rhs') ? target_notation prmode [(lhs, mx)] Morphism.identity)
   924       Term.equiv_types (rhs, rhs') ? Morphism.form (target_notation prmode [(lhs, mx)]))
   925   end;
   925   end;
   926 
   926 
   927 fun local_abbrev (x, rhs) =
   927 fun local_abbrev (x, rhs) =
   928   Variable.add_fixes [x] #-> (fn [x'] =>
   928   Variable.add_fixes [x] #-> (fn [x'] =>
   929     let
   929     let