src/HOL/SAT.thy
author wenzelm
Mon Mar 16 18:24:30 2009 +0100 (2009-03-16)
changeset 30549 d2d7874648bd
parent 30510 4120fc59dd85
child 32232 6c394343360f
permissions -rw-r--r--
simplified method setup;
     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/cnf_funcs.ML"
    14   "Tools/sat_funcs.ML"
    15 begin
    16 
    17 text {* \medskip Late package setup: default values for refute, see
    18   also theory @{theory Refute}. *}
    19 
    20 refute_params
    21  ["itself"=1,
    22   minsize=1,
    23   maxsize=8,
    24   maxvars=10000,
    25   maxtime=60,
    26   satsolver="auto"]
    27 
    28 ML {* structure sat = SATFunc(structure cnf = cnf); *}
    29 
    30 method_setup sat = {* Scan.succeed (K (SIMPLE_METHOD' sat.sat_tac)) *}
    31   "SAT solver"
    32 
    33 method_setup satx = {* Scan.succeed (K (SIMPLE_METHOD' sat.satx_tac)) *}
    34   "SAT solver (with definitional CNF)"
    35 
    36 end