src/HOL/Tools/Nitpick/nitpick_hol.ML
changeset 42793 88bee9f6eec7
parent 42697 9bc5dc48f1a5
child 42958 034fc4d0c909
equal deleted inserted replaced
42792:85fb70b0c5e8 42793:88bee9f6eec7
  2002   end
  2002   end
  2003 fun wf_constraint_for_triple rel (side, main, concl) =
  2003 fun wf_constraint_for_triple rel (side, main, concl) =
  2004   map (wf_constraint_for rel side concl) main |> foldr1 s_conj
  2004   map (wf_constraint_for rel side concl) main |> foldr1 s_conj
  2005 
  2005 
  2006 fun terminates_by ctxt timeout goal tac =
  2006 fun terminates_by ctxt timeout goal tac =
  2007   can (SINGLE (Classical.safe_tac (claset_of ctxt)) #> the
  2007   can (SINGLE (Classical.safe_tac ctxt) #> the
  2008        #> SINGLE (DETERM_TIMEOUT timeout
  2008        #> SINGLE (DETERM_TIMEOUT timeout (tac ctxt (auto_tac ctxt)))
  2009                                  (tac ctxt (auto_tac (clasimpset_of ctxt))))
       
  2010        #> the #> Goal.finish ctxt) goal
  2009        #> the #> Goal.finish ctxt) goal
  2011 
  2010 
  2012 val max_cached_wfs = 50
  2011 val max_cached_wfs = 50
  2013 val cached_timeout =
  2012 val cached_timeout =
  2014   Synchronized.var "Nitpick_HOL.cached_timeout" (SOME Time.zeroTime)
  2013   Synchronized.var "Nitpick_HOL.cached_timeout" (SOME Time.zeroTime)