equal
deleted
inserted
replaced
264 end |
264 end |
265 |
265 |
266 val enriched_type = gen_enriched_type Syntax.check_term; |
266 val enriched_type = gen_enriched_type Syntax.check_term; |
267 val enriched_type_cmd = gen_enriched_type Syntax.read_term; |
267 val enriched_type_cmd = gen_enriched_type Syntax.read_term; |
268 |
268 |
269 val _ = Outer_Syntax.local_theory_to_proof "enriched_type" |
269 val _ = |
270 "register operations managing the functorial structure of a type" |
270 Outer_Syntax.local_theory_to_proof @{command_spec "enriched_type"} |
271 Keyword.thy_goal (Scan.option (Parse.name --| @{keyword ":"}) -- Parse.term |
271 "register operations managing the functorial structure of a type" |
272 >> (fn (prfx, t) => enriched_type_cmd prfx t)); |
272 (Scan.option (Parse.name --| @{keyword ":"}) -- Parse.term |
|
273 >> (fn (prfx, t) => enriched_type_cmd prfx t)); |
273 |
274 |
274 end; |
275 end; |