src/HOL/Refute.thy
author webertj
Wed Mar 10 22:35:37 2004 +0100 (2004-03-10)
changeset 14457 6d5d6e78d851
parent 14350 41b32020d0b3
child 14463 ed09706ecc5d
permissions -rw-r--r--
*** empty log message ***
     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 (* ------------------------------------------------------------------------- *)
    10 (* REFUTE                                                                    *)
    11 (*                                                                           *)
    12 (* We use a SAT solver to search for a (finite) model that refutes a given   *)
    13 (* HOL formula.                                                              *)
    14 (* ------------------------------------------------------------------------- *)
    15 
    16 (* ------------------------------------------------------------------------- *)
    17 (* NOTE                                                                      *)
    18 (*                                                                           *)
    19 (* I strongly recommend that you install a stand-alone SAT solver if you     *)
    20 (* want to use 'refute'.  For details see 'HOL/Tools/sat_solver.ML'.         *)
    21 (* ------------------------------------------------------------------------- *)
    22 
    23 (* ------------------------------------------------------------------------- *)
    24 (* USAGE                                                                     *)
    25 (*                                                                           *)
    26 (* See the file 'HOL/ex/Refute_Examples.thy' for examples.  The supported    *)
    27 (* parameters are explained below.                                           *)
    28 (* ------------------------------------------------------------------------- *)
    29 
    30 (* ------------------------------------------------------------------------- *)
    31 (* CURRENT LIMITATIONS                                                       *)
    32 (*                                                                           *)
    33 (* 'refute' currently accepts formulas of higher-order predicate logic (with *)
    34 (* equality), including free/bound/schematic variables, lambda abstractions, *)
    35 (* sets and set membership, "arbitrary", "The", and "Eps".  Constants for    *)
    36 (* which a defining equation exists are unfolded automatically.              *)
    37 (*                                                                           *)
    38 (* NOT (YET) SUPPORTED ARE                                                   *)
    39 (*                                                                           *)
    40 (* - schematic type variables                                                *)
    41 (* - type constructors other than bool, =>, set                              *)
    42 (* - other constants, including constructors of inductive datatypes,         *)
    43 (*   inductively defined sets and recursive functions                        *)
    44 (*                                                                           *)
    45 (* For formulas that contain (variables of) an inductive datatype, a         *)
    46 (* spurious countermodel may be returned.  Currently no warning is issued in *)
    47 (* this case.                                                                *)
    48 (* ------------------------------------------------------------------------- *)
    49 
    50 (* ------------------------------------------------------------------------- *)
    51 (* PARAMETERS                                                                *)
    52 (*                                                                           *)
    53 (* The following global parameters are currently supported (and required):   *)
    54 (*                                                                           *)
    55 (* Name          Type    Description                                         *)
    56 (*                                                                           *)
    57 (* "minsize"     int     Only search for models with size at least           *)
    58 (*                       'minsize'.                                          *)
    59 (* "maxsize"     int     If >0, only search for models with size at most     *)
    60 (*                       'maxsize'.                                          *)
    61 (* "maxvars"     int     If >0, use at most 'maxvars' boolean variables      *)
    62 (*                       when transforming the term into a propositional     *)
    63 (*                       formula.                                            *)
    64 (* "satsolver"   string  Name of the SAT solver to be used.                  *)
    65 (*                                                                           *)
    66 (* See 'HOL/Main.thy' for default values.                                    *)
    67 (* ------------------------------------------------------------------------- *)
    68 
    69 (* ------------------------------------------------------------------------- *)
    70 (* FILES                                                                     *)
    71 (*                                                                           *)
    72 (* HOL/Tools/prop_logic.ML    Propositional logic                            *)
    73 (* HOL/Tools/sat_solver.ML    SAT solvers                                    *)
    74 (* HOL/Tools/refute.ML        Translation HOL -> propositional logic and     *)
    75 (*                            boolean assignment -> HOL model                *)
    76 (* HOL/Tools/refute_isar.ML   Adds 'refute'/'refute_params' to Isabelle's    *)
    77 (*                            syntax                                         *)
    78 (* HOL/Refute.thy             This file: loads the ML files, basic setup,    *)
    79 (*                            documentation                                  *)
    80 (* HOL/Main.thy               Sets default parameters                        *)
    81 (* HOL/ex/RefuteExamples.thy  Examples                                       *)
    82 (* ------------------------------------------------------------------------- *)
    83 
    84 header {* Refute *}
    85 
    86 theory Refute = Map
    87 
    88 files "Tools/prop_logic.ML"
    89       "Tools/sat_solver.ML"
    90       "Tools/refute.ML"
    91       "Tools/refute_isar.ML":
    92 
    93 use "Tools/prop_logic.ML"
    94 use "Tools/sat_solver.ML"
    95 use "Tools/refute.ML"
    96 use "Tools/refute_isar.ML"
    97 
    98 setup Refute.setup
    99 
   100 end