src/HOL/Tools/Nitpick/nitpick_commands.ML
changeset 60190 906de96ba68a
parent 60094 96a4765ba7d1
child 60310 932221b62e89
equal deleted inserted replaced
60189:0d3a62127057 60190:906de96ba68a
   375 
   375 
   376 val _ =
   376 val _ =
   377   Outer_Syntax.command @{command_keyword nitpick}
   377   Outer_Syntax.command @{command_keyword nitpick}
   378     "try to find a counterexample for a given subgoal using Nitpick"
   378     "try to find a counterexample for a given subgoal using Nitpick"
   379     (parse_params -- Scan.optional Parse.nat 1 >> (fn (params, i) =>
   379     (parse_params -- Scan.optional Parse.nat 1 >> (fn (params, i) =>
   380       Toplevel.keep (fn state =>
   380       Toplevel.keep_proof (fn state =>
   381         ignore (pick_nits params Normal i (Toplevel.proof_position_of state)
   381         ignore (pick_nits params Normal i (Toplevel.proof_position_of state)
   382           (Toplevel.proof_of state)))))
   382           (Toplevel.proof_of state)))))
   383 
   383 
   384 val _ =
   384 val _ =
   385   Outer_Syntax.command @{command_keyword nitpick_params}
   385   Outer_Syntax.command @{command_keyword nitpick_params}