src/HOL/Metis.thy
author wenzelm
Tue Mar 25 19:03:02 2014 +0100 (2014-03-25)
changeset 56281 03c3d1a7c3b8
parent 55509 bd67ebe275e0
child 56946 10d9bd4ea94f
permissions -rw-r--r--
proper configuration option "ML_print_depth";
proper ML_exception_trace for HOL-TPTP;
     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 begin
    12 
    13 declare [[ML_print_depth = 0]]
    14 ML_file "~~/src/Tools/Metis/metis.ML"
    15 declare [[ML_print_depth = 10]]
    16 
    17 subsection {* Literal selection and lambda-lifting helpers *}
    18 
    19 definition select :: "'a \<Rightarrow> 'a" where
    20 "select = (\<lambda>x. x)"
    21 
    22 lemma not_atomize: "(\<not> A \<Longrightarrow> False) \<equiv> Trueprop A"
    23 by (cut_tac atomize_not [of "\<not> A"]) simp
    24 
    25 lemma atomize_not_select: "(A \<Longrightarrow> select False) \<equiv> Trueprop (\<not> A)"
    26 unfolding select_def by (rule atomize_not)
    27 
    28 lemma not_atomize_select: "(\<not> A \<Longrightarrow> select False) \<equiv> Trueprop A"
    29 unfolding select_def by (rule not_atomize)
    30 
    31 lemma select_FalseI: "False \<Longrightarrow> select False" by simp
    32 
    33 definition lambda :: "'a \<Rightarrow> 'a" where
    34 "lambda = (\<lambda>x. x)"
    35 
    36 lemma eq_lambdaI: "x \<equiv> y \<Longrightarrow> x \<equiv> lambda y"
    37 unfolding lambda_def by assumption
    38 
    39 
    40 subsection {* Metis package *}
    41 
    42 ML_file "Tools/Metis/metis_generate.ML"
    43 ML_file "Tools/Metis/metis_reconstruct.ML"
    44 ML_file "Tools/Metis/metis_tactic.ML"
    45 
    46 setup {* Metis_Tactic.setup *}
    47 
    48 hide_const (open) select fFalse fTrue fNot fComp fconj fdisj fimplies fequal
    49     lambda
    50 hide_fact (open) select_def not_atomize atomize_not_select not_atomize_select
    51     select_FalseI fFalse_def fTrue_def fNot_def fconj_def fdisj_def fimplies_def
    52     fequal_def fTrue_ne_fFalse fNot_table fconj_table fdisj_table fimplies_table
    53     fequal_table fAll_table fEx_table fNot_law fComp_law fconj_laws fdisj_laws
    54     fimplies_laws fequal_laws fAll_law fEx_law lambda_def eq_lambdaI
    55 
    56 end