src/HOL/Metis.thy
author haftmann
Sun Jun 23 21:16:07 2013 +0200 (2013-06-23)
changeset 52435 6646bb548c6b
parent 48891 c0eafbd55de3
child 52641 c56b6fa636e8
permissions -rw-r--r--
migration from code_(const|type|class|instance) to code_printing and from code_module to code_identifier
     1 (*  Title:      HOL/Metis.thy
     2     Author:     Lawrence C. Paulson, Cambridge University Computer Laboratory
     3     Author:     Jia Meng, Cambridge University Computer Laboratory and NICTA
     4     Author:     Jasmin Blanchette, TU Muenchen
     5 *)
     6 
     7 header {* Metis Proof Method *}
     8 
     9 theory Metis
    10 imports ATP
    11 keywords "try0" :: diag
    12 begin
    13 
    14 ML_file "~~/src/Tools/Metis/metis.ML"
    15 
    16 subsection {* Literal selection and lambda-lifting helpers *}
    17 
    18 definition select :: "'a \<Rightarrow> 'a" where
    19 [no_atp]: "select = (\<lambda>x. x)"
    20 
    21 lemma not_atomize: "(\<not> A \<Longrightarrow> False) \<equiv> Trueprop A"
    22 by (cut_tac atomize_not [of "\<not> A"]) simp
    23 
    24 lemma atomize_not_select: "(A \<Longrightarrow> select False) \<equiv> Trueprop (\<not> A)"
    25 unfolding select_def by (rule atomize_not)
    26 
    27 lemma not_atomize_select: "(\<not> A \<Longrightarrow> select False) \<equiv> Trueprop A"
    28 unfolding select_def by (rule not_atomize)
    29 
    30 lemma select_FalseI: "False \<Longrightarrow> select False" by simp
    31 
    32 definition lambda :: "'a \<Rightarrow> 'a" where
    33 [no_atp]: "lambda = (\<lambda>x. x)"
    34 
    35 lemma eq_lambdaI: "x \<equiv> y \<Longrightarrow> x \<equiv> lambda y"
    36 unfolding lambda_def by assumption
    37 
    38 
    39 subsection {* Metis package *}
    40 
    41 ML_file "Tools/Metis/metis_generate.ML"
    42 ML_file "Tools/Metis/metis_reconstruct.ML"
    43 ML_file "Tools/Metis/metis_tactic.ML"
    44 
    45 setup {* Metis_Tactic.setup *}
    46 
    47 hide_const (open) select fFalse fTrue fNot fComp fconj fdisj fimplies fequal
    48     lambda
    49 hide_fact (open) select_def not_atomize atomize_not_select not_atomize_select
    50     select_FalseI fFalse_def fTrue_def fNot_def fconj_def fdisj_def fimplies_def
    51     fequal_def fTrue_ne_fFalse fNot_table fconj_table fdisj_table fimplies_table
    52     fequal_table fAll_table fEx_table fNot_law fComp_law fconj_laws fdisj_laws
    53     fimplies_laws fequal_laws fAll_law fEx_law lambda_def eq_lambdaI
    54 
    55 
    56 subsection {* Try0 *}
    57 
    58 ML_file "Tools/try0.ML"
    59 setup {* Try0.setup *}
    60 
    61 end