src/HOL/Refute.thy
author wenzelm
Fri May 21 21:17:37 2004 +0200 (2004-05-21)
changeset 14771 c2bf21b5564e
parent 14589 feae7b5fd425
child 14808 1bf198c9828f
permissions -rw-r--r--
load ML files only once;
     1 (*  Title:      HOL/Refute.thy
     2     ID:         $Id$
     3     Author:     Tjark Weber
     4     Copyright   2003-2004
     5 
     6 Basic setup and documentation for the 'refute' (and 'refute_params') command.
     7 *)
     8 
     9 header {* Refute *}
    10 
    11 theory Refute = Map
    12 
    13 files "Tools/prop_logic.ML"
    14       "Tools/sat_solver.ML"
    15       "Tools/refute.ML"
    16       "Tools/refute_isar.ML":
    17 
    18 setup Refute.setup
    19 
    20 text {*
    21 \small
    22 \begin{verbatim}
    23 (* ------------------------------------------------------------------------- *)
    24 (* REFUTE                                                                    *)
    25 (*                                                                           *)
    26 (* We use a SAT solver to search for a (finite) model that refutes a given   *)
    27 (* HOL formula.                                                              *)
    28 (* ------------------------------------------------------------------------- *)
    29 
    30 (* ------------------------------------------------------------------------- *)
    31 (* NOTE                                                                      *)
    32 (*                                                                           *)
    33 (* I strongly recommend that you install a stand-alone SAT solver if you     *)
    34 (* want to use 'refute'.  For details see 'HOL/Tools/sat_solver.ML'.  If you *)
    35 (* have installed ZChaff, simply set 'ZCHAFF_HOME' in 'etc/settings'.        *)
    36 (* ------------------------------------------------------------------------- *)
    37 
    38 (* ------------------------------------------------------------------------- *)
    39 (* USAGE                                                                     *)
    40 (*                                                                           *)
    41 (* See the file 'HOL/ex/Refute_Examples.thy' for examples.  The supported    *)
    42 (* parameters are explained below.                                           *)
    43 (* ------------------------------------------------------------------------- *)
    44 
    45 (* ------------------------------------------------------------------------- *)
    46 (* CURRENT LIMITATIONS                                                       *)
    47 (*                                                                           *)
    48 (* 'refute' currently accepts formulas of higher-order predicate logic (with *)
    49 (* equality), including free/bound/schematic variables, lambda abstractions, *)
    50 (* sets and set membership, "arbitrary", "The", and "Eps".  Constants for    *)
    51 (* which a defining equation exists are unfolded automatically.  Non-        *)
    52 (* recursive inductive datatypes are supported.                              *)
    53 (*                                                                           *)
    54 (* The (space) complexity of the algorithm is exponential in both the length *)
    55 (* of the formula and the size of the model.                                 *)
    56 (*                                                                           *)
    57 (* NOT (YET) SUPPORTED ARE                                                   *)
    58 (*                                                                           *)
    59 (* - schematic type variables                                                *)
    60 (* - axioms, sorts                                                           *)
    61 (* - type constructors other than bool, =>, set, non-recursive IDTs          *)
    62 (* - inductively defined sets                                                *)
    63 (* - recursive functions                                                     *)
    64 (* - ...                                                                     *)
    65 (* ------------------------------------------------------------------------- *)
    66 
    67 (* ------------------------------------------------------------------------- *)
    68 (* PARAMETERS                                                                *)
    69 (*                                                                           *)
    70 (* The following global parameters are currently supported (and required):   *)
    71 (*                                                                           *)
    72 (* Name          Type    Description                                         *)
    73 (*                                                                           *)
    74 (* "minsize"     int     Only search for models with size at least           *)
    75 (*                       'minsize'.                                          *)
    76 (* "maxsize"     int     If >0, only search for models with size at most     *)
    77 (*                       'maxsize'.                                          *)
    78 (* "maxvars"     int     If >0, use at most 'maxvars' boolean variables      *)
    79 (*                       when transforming the term into a propositional     *)
    80 (*                       formula.                                            *)
    81 (* "satsolver"   string  Name of the SAT solver to be used.                  *)
    82 (*                                                                           *)
    83 (* See 'HOL/Main.thy' for default values.                                    *)
    84 (* ------------------------------------------------------------------------- *)
    85 
    86 (* ------------------------------------------------------------------------- *)
    87 (* FILES                                                                     *)
    88 (*                                                                           *)
    89 (* HOL/Tools/prop_logic.ML    Propositional logic                            *)
    90 (* HOL/Tools/sat_solver.ML    SAT solvers                                    *)
    91 (* HOL/Tools/refute.ML        Translation HOL -> propositional logic and     *)
    92 (*                            boolean assignment -> HOL model                *)
    93 (* HOL/Tools/refute_isar.ML   Adds 'refute'/'refute_params' to Isabelle's    *)
    94 (*                            syntax                                         *)
    95 (* HOL/Refute.thy             This file: loads the ML files, basic setup,    *)
    96 (*                            documentation                                  *)
    97 (* HOL/Main.thy               Sets default parameters                        *)
    98 (* HOL/ex/RefuteExamples.thy  Examples                                       *)
    99 (* ------------------------------------------------------------------------- *)
   100 \end{verbatim}
   101 *}
   102 
   103 end