src/HOL/SAT.thy
author nipkow
Fri, 19 Jun 2009 18:33:10 +0200
changeset 31719 29f5b20e8ee8
parent 30549 d2d7874648bd
child 32232 6c394343360f
permissions -rw-r--r--
Added NewNumberTheory by Jeremy Avigad

(*  Title:      HOL/SAT.thy
    Author:     Alwen Tiu, Tjark Weber
    Copyright   2005

Basic setup for the 'sat' and 'satx' tactic.
*)

header {* Reconstructing external resolution proofs for propositional logic *}

theory SAT
imports Refute
uses
  "Tools/cnf_funcs.ML"
  "Tools/sat_funcs.ML"
begin

text {* \medskip Late package setup: default values for refute, see
  also theory @{theory Refute}. *}

refute_params
 ["itself"=1,
  minsize=1,
  maxsize=8,
  maxvars=10000,
  maxtime=60,
  satsolver="auto"]

ML {* structure sat = SATFunc(structure cnf = cnf); *}

method_setup sat = {* Scan.succeed (K (SIMPLE_METHOD' sat.sat_tac)) *}
  "SAT solver"

method_setup satx = {* Scan.succeed (K (SIMPLE_METHOD' sat.satx_tac)) *}
  "SAT solver (with definitional CNF)"

end