src/HOL/SAT.thy
author bulwahn
Fri Oct 21 11:17:14 2011 +0200 (2011-10-21)
changeset 45231 d85a2fdc586c
parent 39036 dff91b90d74c
child 46096 a00685a18e55
permissions -rw-r--r--
replacing code_inline by code_unfold, removing obsolete code_unfold, code_inline del now that the ancient code generator is removed
     1 (*  Title:      HOL/SAT.thy
     2     Author:     Alwen Tiu, Tjark Weber
     3     Copyright   2005
     4 
     5 Basic setup for the 'sat' and 'satx' tactic.
     6 *)
     7 
     8 header {* Reconstructing external resolution proofs for propositional logic *}
     9 
    10 theory SAT
    11 imports Refute
    12 uses
    13   "Tools/sat_funcs.ML"
    14 begin
    15 
    16 text {* \medskip Late package setup: default values for refute, see
    17   also theory @{theory Refute}. *}
    18 
    19 refute_params
    20  ["itself"=1,
    21   minsize=1,
    22   maxsize=8,
    23   maxvars=10000,
    24   maxtime=60,
    25   satsolver="auto",
    26   no_assms="false"]
    27 
    28 ML {* structure sat = SATFunc(cnf) *}
    29 
    30 method_setup sat = {* Scan.succeed (SIMPLE_METHOD' o sat.sat_tac) *}
    31   "SAT solver"
    32 
    33 method_setup satx = {* Scan.succeed (SIMPLE_METHOD' o sat.satx_tac) *}
    34   "SAT solver (with definitional CNF)"
    35 
    36 end