src/HOL/Metis.thy
author blanchet
Mon Jan 23 17:40:32 2012 +0100 (2012-01-23)
changeset 46320 0b8b73b49848
parent 45511 9b0f8ca4388e
child 46641 8801a24f9e9a
permissions -rw-r--r--
renamed two files to make room for a new file
     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 uses "~~/src/Tools/Metis/metis.ML"
    12      ("Tools/Metis/metis_generate.ML")
    13      ("Tools/Metis/metis_reconstruct.ML")
    14      ("Tools/Metis/metis_tactic.ML")
    15      ("Tools/try_methods.ML")
    16 begin
    17 
    18 subsection {* Literal selection and lambda-lifting helpers *}
    19 
    20 definition select :: "'a \<Rightarrow> 'a" where
    21 [no_atp]: "select = (\<lambda>x. x)"
    22 
    23 lemma not_atomize: "(\<not> A \<Longrightarrow> False) \<equiv> Trueprop A"
    24 by (cut_tac atomize_not [of "\<not> A"]) simp
    25 
    26 lemma atomize_not_select: "(A \<Longrightarrow> select False) \<equiv> Trueprop (\<not> A)"
    27 unfolding select_def by (rule atomize_not)
    28 
    29 lemma not_atomize_select: "(\<not> A \<Longrightarrow> select False) \<equiv> Trueprop A"
    30 unfolding select_def by (rule not_atomize)
    31 
    32 lemma select_FalseI: "False \<Longrightarrow> select False" by simp
    33 
    34 definition lambda :: "'a \<Rightarrow> 'a" where
    35 [no_atp]: "lambda = (\<lambda>x. x)"
    36 
    37 lemma eq_lambdaI: "x \<equiv> y \<Longrightarrow> x \<equiv> lambda y"
    38 unfolding lambda_def by assumption
    39 
    40 
    41 subsection {* Metis package *}
    42 
    43 use "Tools/Metis/metis_generate.ML"
    44 use "Tools/Metis/metis_reconstruct.ML"
    45 use "Tools/Metis/metis_tactic.ML"
    46 
    47 setup {* Metis_Tactic.setup *}
    48 
    49 hide_const (open) fFalse fTrue fNot fconj fdisj fimplies fequal select lambda
    50 hide_fact (open) fFalse_def fTrue_def fNot_def fconj_def fdisj_def fimplies_def
    51     fequal_def select_def not_atomize atomize_not_select not_atomize_select
    52     select_FalseI lambda_def eq_lambdaI
    53 
    54 
    55 subsection {* Try Methods *}
    56 
    57 use "Tools/try_methods.ML"
    58 
    59 setup {* Try_Methods.setup *}
    60 
    61 end