src/HOL/Metis.thy
author hoelzl
Tue Nov 05 09:44:57 2013 +0100 (2013-11-05)
changeset 54257 5c7a3b6b05a9
parent 54148 c8cc5ab4a863
child 55178 318cd8ac1817
permissions -rw-r--r--
generalize SUP and INF to the syntactic type classes Sup and Inf
     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 "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 "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 
    60 end