equal
deleted
inserted
replaced
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 |