src/HOL/Decision_Procs/approximation.ML
changeset 59936 b8ffc3dc9e24
parent 59850 f339ff48a6ee
child 59970 e9f73d87d904
equal deleted inserted replaced
59935:343905de27b1 59936:b8ffc3dc9e24
   242 
   242 
   243 val opt_modes =
   243 val opt_modes =
   244   Scan.optional (@{keyword "("} |-- Parse.!!! (Scan.repeat1 Parse.xname --| @{keyword ")"})) [];
   244   Scan.optional (@{keyword "("} |-- Parse.!!! (Scan.repeat1 Parse.xname --| @{keyword ")"})) [];
   245 
   245 
   246 val _ =
   246 val _ =
   247   Outer_Syntax.command @{command_spec "approximate"} "print approximation of term"
   247   Outer_Syntax.command @{command_keyword approximate} "print approximation of term"
   248     (opt_modes -- Parse.term
   248     (opt_modes -- Parse.term
   249       >> (fn (modes, t) => Toplevel.keep (approximate_cmd modes t)));
   249       >> (fn (modes, t) => Toplevel.keep (approximate_cmd modes t)));
   250 
   250 
   251 fun approximation_tac prec splitting taylor ctxt i =
   251 fun approximation_tac prec splitting taylor ctxt i =
   252   REPEAT (FIRST' [etac @{thm intervalE},
   252   REPEAT (FIRST' [etac @{thm intervalE},