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