src/HOL/Tools/Function/partial_function.ML
changeset 40186 fe4a58419d46
parent 40180 c3ef007115a0
child 41117 d6379876ec4c
equal deleted inserted replaced
40185:a6a34e0313bb 40186:fe4a58419d46
   226 val add_partial_function_cmd = gen_add_partial_function Specification.read_spec;
   226 val add_partial_function_cmd = gen_add_partial_function Specification.read_spec;
   227 
   227 
   228 val mode = Parse.$$$ "(" |-- Parse.xname --| Parse.$$$ ")";
   228 val mode = Parse.$$$ "(" |-- Parse.xname --| Parse.$$$ ")";
   229 
   229 
   230 val _ = Outer_Syntax.local_theory
   230 val _ = Outer_Syntax.local_theory
   231   "partial_function" "define partial function" Keyword.thy_goal
   231   "partial_function" "define partial function" Keyword.thy_decl
   232   ((mode -- (Parse.fixes -- (Parse.where_ |-- Parse_Spec.spec)))
   232   ((mode -- (Parse.fixes -- (Parse.where_ |-- Parse_Spec.spec)))
   233      >> (fn (mode, (fixes, spec)) => add_partial_function_cmd mode fixes spec));
   233      >> (fn (mode, (fixes, spec)) => add_partial_function_cmd mode fixes spec));
   234 
   234 
   235 
   235 
   236 val setup = Mono_Rules.setup;
   236 val setup = Mono_Rules.setup;