src/HOL/Metis.thy
author blanchet
Mon Jan 23 17:40:32 2012 +0100 (2012-01-23)
changeset 46320 0b8b73b49848
parent 45511 9b0f8ca4388e
child 46641 8801a24f9e9a
permissions -rw-r--r--
renamed two files to make room for a new file
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@46320
    12
     ("Tools/Metis/metis_generate.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@45511
    18
subsection {* Literal selection and lambda-lifting 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@45511
    34
definition lambda :: "'a \<Rightarrow> 'a" where
blanchet@45511
    35
[no_atp]: "lambda = (\<lambda>x. x)"
blanchet@45511
    36
blanchet@45511
    37
lemma eq_lambdaI: "x \<equiv> y \<Longrightarrow> x \<equiv> lambda y"
blanchet@45511
    38
unfolding lambda_def by assumption
blanchet@45511
    39
blanchet@42349
    40
blanchet@42349
    41
subsection {* Metis package *}
blanchet@42349
    42
blanchet@46320
    43
use "Tools/Metis/metis_generate.ML"
blanchet@39946
    44
use "Tools/Metis/metis_reconstruct.ML"
blanchet@44651
    45
use "Tools/Metis/metis_tactic.ML"
blanchet@39980
    46
blanchet@44651
    47
setup {* Metis_Tactic.setup *}
blanchet@39946
    48
blanchet@45511
    49
hide_const (open) fFalse fTrue fNot fconj fdisj fimplies fequal select lambda
blanchet@41140
    50
hide_fact (open) fFalse_def fTrue_def fNot_def fconj_def fdisj_def fimplies_def
blanchet@42349
    51
    fequal_def select_def not_atomize atomize_not_select not_atomize_select
blanchet@45511
    52
    select_FalseI lambda_def eq_lambdaI
blanchet@45511
    53
blanchet@39953
    54
blanchet@43016
    55
subsection {* Try Methods *}
blanchet@41042
    56
blanchet@43016
    57
use "Tools/try_methods.ML"
blanchet@41042
    58
blanchet@43016
    59
setup {* Try_Methods.setup *}
blanchet@41042
    60
blanchet@39946
    61
end