src/HOL/Metis.thy
author wenzelm
Thu May 24 17:25:53 2012 +0200 (2012-05-24)
changeset 47988 e4b69e10b990
parent 47946 33afcfad3f8d
child 48891 c0eafbd55de3
permissions -rw-r--r--
tuned proofs;
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
wenzelm@46950
    11
keywords "try0" :: diag
blanchet@39946
    12
uses "~~/src/Tools/Metis/metis.ML"
blanchet@46320
    13
     ("Tools/Metis/metis_generate.ML")
blanchet@39946
    14
     ("Tools/Metis/metis_reconstruct.ML")
blanchet@44651
    15
     ("Tools/Metis/metis_tactic.ML")
blanchet@46641
    16
     ("Tools/try0.ML")
blanchet@39946
    17
begin
blanchet@39946
    18
blanchet@45511
    19
subsection {* Literal selection and lambda-lifting helpers *}
blanchet@42349
    20
blanchet@42349
    21
definition select :: "'a \<Rightarrow> 'a" where
blanchet@42349
    22
[no_atp]: "select = (\<lambda>x. x)"
blanchet@42349
    23
blanchet@42349
    24
lemma not_atomize: "(\<not> A \<Longrightarrow> False) \<equiv> Trueprop A"
blanchet@42349
    25
by (cut_tac atomize_not [of "\<not> A"]) simp
blanchet@42349
    26
blanchet@42349
    27
lemma atomize_not_select: "(A \<Longrightarrow> select False) \<equiv> Trueprop (\<not> A)"
blanchet@42349
    28
unfolding select_def by (rule atomize_not)
blanchet@42349
    29
blanchet@42349
    30
lemma not_atomize_select: "(\<not> A \<Longrightarrow> select False) \<equiv> Trueprop A"
blanchet@42349
    31
unfolding select_def by (rule not_atomize)
blanchet@42349
    32
blanchet@42349
    33
lemma select_FalseI: "False \<Longrightarrow> select False" by simp
blanchet@42349
    34
blanchet@45511
    35
definition lambda :: "'a \<Rightarrow> 'a" where
blanchet@45511
    36
[no_atp]: "lambda = (\<lambda>x. x)"
blanchet@45511
    37
blanchet@45511
    38
lemma eq_lambdaI: "x \<equiv> y \<Longrightarrow> x \<equiv> lambda y"
blanchet@45511
    39
unfolding lambda_def by assumption
blanchet@45511
    40
blanchet@42349
    41
blanchet@42349
    42
subsection {* Metis package *}
blanchet@42349
    43
blanchet@46320
    44
use "Tools/Metis/metis_generate.ML"
blanchet@39946
    45
use "Tools/Metis/metis_reconstruct.ML"
blanchet@44651
    46
use "Tools/Metis/metis_tactic.ML"
blanchet@39980
    47
blanchet@44651
    48
setup {* Metis_Tactic.setup *}
blanchet@39946
    49
blanchet@47946
    50
hide_const (open) select fFalse fTrue fNot fComp fconj fdisj fimplies fequal
blanchet@47946
    51
    lambda
blanchet@47946
    52
hide_fact (open) select_def not_atomize atomize_not_select not_atomize_select
blanchet@47946
    53
    select_FalseI fFalse_def fTrue_def fNot_def fconj_def fdisj_def fimplies_def
blanchet@47946
    54
    fequal_def fTrue_ne_fFalse fNot_table fconj_table fdisj_table fimplies_table
blanchet@47946
    55
    fequal_table fAll_table fEx_table fNot_law fComp_law fconj_laws fdisj_laws
blanchet@47946
    56
    fimplies_laws fequal_laws fAll_law fEx_law lambda_def eq_lambdaI
blanchet@45511
    57
blanchet@39953
    58
blanchet@46641
    59
subsection {* Try0 *}
blanchet@41042
    60
blanchet@46641
    61
use "Tools/try0.ML"
blanchet@41042
    62
blanchet@46641
    63
setup {* Try0.setup *}
blanchet@41042
    64
blanchet@39946
    65
end