src/Pure/Isar/local_theory.ML
changeset 50741 20e6e1a92e54
parent 50739 5165d7e6d3b9
child 51735 f069c7d496ca
equal deleted inserted replaced
50740:21098a577294 50741:20e6e1a92e54
   254 
   254 
   255 
   255 
   256 (* notation *)
   256 (* notation *)
   257 
   257 
   258 fun type_notation add mode raw_args lthy =
   258 fun type_notation add mode raw_args lthy =
   259   let val args = map (apfst (Morphism.typ (target_morphism lthy))) raw_args in
   259   let
       
   260     val args = map (apfst (Logic.type_map (Assumption.export_term lthy (target_of lthy)))) raw_args;
       
   261   in
   260     declaration {syntax = true, pervasive = false}
   262     declaration {syntax = true, pervasive = false}
   261       (Proof_Context.generic_type_notation add mode args) lthy
   263       (Proof_Context.generic_type_notation add mode args) lthy
   262   end;
   264   end;
   263 
   265 
   264 fun notation add mode raw_args lthy =
   266 fun notation add mode raw_args lthy =
   265   let val args = map (apfst (Morphism.term (target_morphism lthy))) raw_args in
   267   let
       
   268     val args = map (apfst (Assumption.export_term lthy (target_of lthy))) raw_args
       
   269   in
   266     declaration {syntax = true, pervasive = false}
   270     declaration {syntax = true, pervasive = false}
   267       (Proof_Context.generic_notation add mode args) lthy
   271       (Proof_Context.generic_notation add mode args) lthy
   268   end;
   272   end;
   269 
   273 
   270 
   274