src/HOL/Tools/enriched_type.ML
changeset 46961 5c6955f487e5
parent 46949 94aa7b81bcf6
child 51551 88d1d19fb74f
equal deleted inserted replaced
46960:f19e5837ad69 46961:5c6955f487e5
   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;