src/HOL/Library/refute.ML
changeset 59936 b8ffc3dc9e24
parent 59582 0fbed69ff081
child 60094 96a4765ba7d1
equal deleted inserted replaced
59935:343905de27b1 59936:b8ffc3dc9e24
  2963 
  2963 
  2964 
  2964 
  2965 (* 'refute' command *)
  2965 (* 'refute' command *)
  2966 
  2966 
  2967 val _ =
  2967 val _ =
  2968   Outer_Syntax.command @{command_spec "refute"}
  2968   Outer_Syntax.command @{command_keyword refute}
  2969     "try to find a model that refutes a given subgoal"
  2969     "try to find a model that refutes a given subgoal"
  2970     (scan_parms -- Scan.optional Parse.nat 1 >>
  2970     (scan_parms -- Scan.optional Parse.nat 1 >>
  2971       (fn (parms, i) =>
  2971       (fn (parms, i) =>
  2972         Toplevel.unknown_proof o
  2972         Toplevel.unknown_proof o
  2973         Toplevel.keep (fn state =>
  2973         Toplevel.keep (fn state =>
  2978 
  2978 
  2979 
  2979 
  2980 (* 'refute_params' command *)
  2980 (* 'refute_params' command *)
  2981 
  2981 
  2982 val _ =
  2982 val _ =
  2983   Outer_Syntax.command @{command_spec "refute_params"}
  2983   Outer_Syntax.command @{command_keyword refute_params}
  2984     "show/store default parameters for the 'refute' command"
  2984     "show/store default parameters for the 'refute' command"
  2985     (scan_parms >> (fn parms =>
  2985     (scan_parms >> (fn parms =>
  2986       Toplevel.theory (fn thy =>
  2986       Toplevel.theory (fn thy =>
  2987         let
  2987         let
  2988           val thy' = fold set_default_param parms thy;
  2988           val thy' = fold set_default_param parms thy;