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