src/HOL/Metis.thy
author blanchet
Fri Sep 02 14:43:20 2011 +0200 (2011-09-02)
changeset 44651 5d6a11e166cf
parent 43085 0a2f5b86bdd7
child 45511 9b0f8ca4388e
permissions -rw-r--r--
renamed "Metis_Tactics" to "Metis_Tactic", now that there is only one Metis tactic ("metisFT" is legacy)
blanchet@39946
     1
(*  Title:      HOL/Metis.thy
blanchet@39946
     2
    Author:     Lawrence C. Paulson, Cambridge University Computer Laboratory
blanchet@39946
     3
    Author:     Jia Meng, Cambridge University Computer Laboratory and NICTA
blanchet@39946
     4
    Author:     Jasmin Blanchette, TU Muenchen
blanchet@39946
     5
*)
blanchet@39946
     6
blanchet@39946
     7
header {* Metis Proof Method *}
blanchet@39946
     8
blanchet@39946
     9
theory Metis
blanchet@43085
    10
imports ATP
blanchet@39946
    11
uses "~~/src/Tools/Metis/metis.ML"
blanchet@39946
    12
     ("Tools/Metis/metis_translate.ML")
blanchet@39946
    13
     ("Tools/Metis/metis_reconstruct.ML")
blanchet@44651
    14
     ("Tools/Metis/metis_tactic.ML")
blanchet@43016
    15
     ("Tools/try_methods.ML")
blanchet@39946
    16
begin
blanchet@39946
    17
blanchet@42349
    18
subsection {* Literal selection helpers *}
blanchet@42349
    19
blanchet@42349
    20
definition select :: "'a \<Rightarrow> 'a" where
blanchet@42349
    21
[no_atp]: "select = (\<lambda>x. x)"
blanchet@42349
    22
blanchet@42349
    23
lemma not_atomize: "(\<not> A \<Longrightarrow> False) \<equiv> Trueprop A"
blanchet@42349
    24
by (cut_tac atomize_not [of "\<not> A"]) simp
blanchet@42349
    25
blanchet@42349
    26
lemma atomize_not_select: "(A \<Longrightarrow> select False) \<equiv> Trueprop (\<not> A)"
blanchet@42349
    27
unfolding select_def by (rule atomize_not)
blanchet@42349
    28
blanchet@42349
    29
lemma not_atomize_select: "(\<not> A \<Longrightarrow> select False) \<equiv> Trueprop A"
blanchet@42349
    30
unfolding select_def by (rule not_atomize)
blanchet@42349
    31
blanchet@42349
    32
lemma select_FalseI: "False \<Longrightarrow> select False" by simp
blanchet@42349
    33
blanchet@42349
    34
blanchet@42349
    35
subsection {* Metis package *}
blanchet@42349
    36
blanchet@39946
    37
use "Tools/Metis/metis_translate.ML"
blanchet@39946
    38
use "Tools/Metis/metis_reconstruct.ML"
blanchet@44651
    39
use "Tools/Metis/metis_tactic.ML"
blanchet@39980
    40
blanchet@44651
    41
setup {* Metis_Tactic.setup *}
blanchet@39946
    42
blanchet@42349
    43
hide_const (open) fFalse fTrue fNot fconj fdisj fimplies fequal select
blanchet@41140
    44
hide_fact (open) fFalse_def fTrue_def fNot_def fconj_def fdisj_def fimplies_def
blanchet@42349
    45
    fequal_def select_def not_atomize atomize_not_select not_atomize_select
blanchet@42349
    46
    select_FalseI
blanchet@39953
    47
blanchet@43016
    48
subsection {* Try Methods *}
blanchet@41042
    49
blanchet@43016
    50
use "Tools/try_methods.ML"
blanchet@41042
    51
blanchet@43016
    52
setup {* Try_Methods.setup *}
blanchet@41042
    53
blanchet@39946
    54
end