src/HOL/Tools/try.ML
changeset 40301 bf39a257b3d3
parent 40222 cd6d2b0a4096
child 40931 061b8257ab9f
equal deleted inserted replaced
40300:d4487353b3a0 40301:bf39a257b3d3
    18 
    18 
    19 val _ =
    19 val _ =
    20   ProofGeneralPgip.add_preference Preferences.category_tracing
    20   ProofGeneralPgip.add_preference Preferences.category_tracing
    21       (Preferences.bool_pref auto "auto-try" "Try standard proof methods.")
    21       (Preferences.bool_pref auto "auto-try" "Try standard proof methods.")
    22 
    22 
    23 val default_timeout = Time.fromSeconds 5
    23 val default_timeout = seconds 5.0
    24 
    24 
    25 fun can_apply timeout_opt pre post tac st =
    25 fun can_apply timeout_opt pre post tac st =
    26   let val {goal, ...} = Proof.goal st in
    26   let val {goal, ...} = Proof.goal st in
    27     case (case timeout_opt of
    27     case (case timeout_opt of
    28             SOME timeout => TimeLimit.timeLimit timeout
    28             SOME timeout => TimeLimit.timeLimit timeout