src/HOL/Meson.thy
author wenzelm
Sat, 07 Apr 2012 16:41:59 +0200
changeset 47389 e8552cba702d
parent 42616 92715b528e78
child 47953 a2c3706c4cb1
permissions -rw-r--r--
explicit checks stable_finished_theory/stable_command allow parallel asynchronous command transactions; tuned;
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
39941
02fcd9cd1eac move Meson to Plain
blanchet
parents:
diff changeset
     1
(*  Title:      HOL/Meson.thy
39944
03ac1fbc76d3 update authors
blanchet
parents: 39941
diff changeset
     2
    Author:     Lawrence C. Paulson, Cambridge University Computer Laboratory
03ac1fbc76d3 update authors
blanchet
parents: 39941
diff changeset
     3
    Author:     Tobias Nipkow, TU Muenchen
03ac1fbc76d3 update authors
blanchet
parents: 39941
diff changeset
     4
    Author:     Jasmin Blanchette, TU Muenchen
39941
02fcd9cd1eac move Meson to Plain
blanchet
parents:
diff changeset
     5
    Copyright   2001  University of Cambridge
02fcd9cd1eac move Meson to Plain
blanchet
parents:
diff changeset
     6
*)
02fcd9cd1eac move Meson to Plain
blanchet
parents:
diff changeset
     7
39947
blanchet
parents: 39946
diff changeset
     8
header {* MESON Proof Method *}
39941
02fcd9cd1eac move Meson to Plain
blanchet
parents:
diff changeset
     9
02fcd9cd1eac move Meson to Plain
blanchet
parents:
diff changeset
    10
theory Meson
39946
78faa9b31202 move Metis into Plain
blanchet
parents: 39944
diff changeset
    11
imports Datatype
39941
02fcd9cd1eac move Meson to Plain
blanchet
parents:
diff changeset
    12
uses ("Tools/Meson/meson.ML")
02fcd9cd1eac move Meson to Plain
blanchet
parents:
diff changeset
    13
     ("Tools/Meson/meson_clausify.ML")
39948
317010af8972 factor out "Meson_Tactic" from "Meson_Clausify"
blanchet
parents: 39947
diff changeset
    14
     ("Tools/Meson/meson_tactic.ML")
39941
02fcd9cd1eac move Meson to Plain
blanchet
parents:
diff changeset
    15
begin
02fcd9cd1eac move Meson to Plain
blanchet
parents:
diff changeset
    16
40620
7a9278de19ad section -> subsection
huffman
parents: 39953
diff changeset
    17
subsection {* Negation Normal Form *}
39941
02fcd9cd1eac move Meson to Plain
blanchet
parents:
diff changeset
    18
02fcd9cd1eac move Meson to Plain
blanchet
parents:
diff changeset
    19
text {* de Morgan laws *}
02fcd9cd1eac move Meson to Plain
blanchet
parents:
diff changeset
    20
39953
aa54f347e5e2 hide uninteresting MESON/Metis constants and facts and remove "meson_" prefix to (now hidden) fact names
blanchet
parents: 39950
diff changeset
    21
lemma not_conjD: "~(P&Q) ==> ~P | ~Q"
aa54f347e5e2 hide uninteresting MESON/Metis constants and facts and remove "meson_" prefix to (now hidden) fact names
blanchet
parents: 39950
diff changeset
    22
  and not_disjD: "~(P|Q) ==> ~P & ~Q"
aa54f347e5e2 hide uninteresting MESON/Metis constants and facts and remove "meson_" prefix to (now hidden) fact names
blanchet
parents: 39950
diff changeset
    23
  and not_notD: "~~P ==> P"
aa54f347e5e2 hide uninteresting MESON/Metis constants and facts and remove "meson_" prefix to (now hidden) fact names
blanchet
parents: 39950
diff changeset
    24
  and not_allD: "!!P. ~(\<forall>x. P(x)) ==> \<exists>x. ~P(x)"
aa54f347e5e2 hide uninteresting MESON/Metis constants and facts and remove "meson_" prefix to (now hidden) fact names
blanchet
parents: 39950
diff changeset
    25
  and not_exD: "!!P. ~(\<exists>x. P(x)) ==> \<forall>x. ~P(x)"
39941
02fcd9cd1eac move Meson to Plain
blanchet
parents:
diff changeset
    26
  by fast+
02fcd9cd1eac move Meson to Plain
blanchet
parents:
diff changeset
    27
02fcd9cd1eac move Meson to Plain
blanchet
parents:
diff changeset
    28
text {* Removal of @{text "-->"} and @{text "<->"} (positive and
02fcd9cd1eac move Meson to Plain
blanchet
parents:
diff changeset
    29
negative occurrences) *}
02fcd9cd1eac move Meson to Plain
blanchet
parents:
diff changeset
    30
39953
aa54f347e5e2 hide uninteresting MESON/Metis constants and facts and remove "meson_" prefix to (now hidden) fact names
blanchet
parents: 39950
diff changeset
    31
lemma imp_to_disjD: "P-->Q ==> ~P | Q"
aa54f347e5e2 hide uninteresting MESON/Metis constants and facts and remove "meson_" prefix to (now hidden) fact names
blanchet
parents: 39950
diff changeset
    32
  and not_impD: "~(P-->Q) ==> P & ~Q"
aa54f347e5e2 hide uninteresting MESON/Metis constants and facts and remove "meson_" prefix to (now hidden) fact names
blanchet
parents: 39950
diff changeset
    33
  and iff_to_disjD: "P=Q ==> (~P | Q) & (~Q | P)"
aa54f347e5e2 hide uninteresting MESON/Metis constants and facts and remove "meson_" prefix to (now hidden) fact names
blanchet
parents: 39950
diff changeset
    34
  and not_iffD: "~(P=Q) ==> (P | Q) & (~P | ~Q)"
39941
02fcd9cd1eac move Meson to Plain
blanchet
parents:
diff changeset
    35
    -- {* Much more efficient than @{prop "(P & ~Q) | (Q & ~P)"} for computing CNF *}
39953
aa54f347e5e2 hide uninteresting MESON/Metis constants and facts and remove "meson_" prefix to (now hidden) fact names
blanchet
parents: 39950
diff changeset
    36
  and not_refl_disj_D: "x ~= x | P ==> P"
39941
02fcd9cd1eac move Meson to Plain
blanchet
parents:
diff changeset
    37
  by fast+
02fcd9cd1eac move Meson to Plain
blanchet
parents:
diff changeset
    38
02fcd9cd1eac move Meson to Plain
blanchet
parents:
diff changeset
    39
40620
7a9278de19ad section -> subsection
huffman
parents: 39953
diff changeset
    40
subsection {* Pulling out the existential quantifiers *}
39941
02fcd9cd1eac move Meson to Plain
blanchet
parents:
diff changeset
    41
02fcd9cd1eac move Meson to Plain
blanchet
parents:
diff changeset
    42
text {* Conjunction *}
02fcd9cd1eac move Meson to Plain
blanchet
parents:
diff changeset
    43
39953
aa54f347e5e2 hide uninteresting MESON/Metis constants and facts and remove "meson_" prefix to (now hidden) fact names
blanchet
parents: 39950
diff changeset
    44
lemma conj_exD1: "!!P Q. (\<exists>x. P(x)) & Q ==> \<exists>x. P(x) & Q"
aa54f347e5e2 hide uninteresting MESON/Metis constants and facts and remove "meson_" prefix to (now hidden) fact names
blanchet
parents: 39950
diff changeset
    45
  and conj_exD2: "!!P Q. P & (\<exists>x. Q(x)) ==> \<exists>x. P & Q(x)"
39941
02fcd9cd1eac move Meson to Plain
blanchet
parents:
diff changeset
    46
  by fast+
02fcd9cd1eac move Meson to Plain
blanchet
parents:
diff changeset
    47
02fcd9cd1eac move Meson to Plain
blanchet
parents:
diff changeset
    48
02fcd9cd1eac move Meson to Plain
blanchet
parents:
diff changeset
    49
text {* Disjunction *}
02fcd9cd1eac move Meson to Plain
blanchet
parents:
diff changeset
    50
39953
aa54f347e5e2 hide uninteresting MESON/Metis constants and facts and remove "meson_" prefix to (now hidden) fact names
blanchet
parents: 39950
diff changeset
    51
lemma disj_exD: "!!P Q. (\<exists>x. P(x)) | (\<exists>x. Q(x)) ==> \<exists>x. P(x) | Q(x)"
39941
02fcd9cd1eac move Meson to Plain
blanchet
parents:
diff changeset
    52
  -- {* DO NOT USE with forall-Skolemization: makes fewer schematic variables!! *}
02fcd9cd1eac move Meson to Plain
blanchet
parents:
diff changeset
    53
  -- {* With ex-Skolemization, makes fewer Skolem constants *}
39953
aa54f347e5e2 hide uninteresting MESON/Metis constants and facts and remove "meson_" prefix to (now hidden) fact names
blanchet
parents: 39950
diff changeset
    54
  and disj_exD1: "!!P Q. (\<exists>x. P(x)) | Q ==> \<exists>x. P(x) | Q"
aa54f347e5e2 hide uninteresting MESON/Metis constants and facts and remove "meson_" prefix to (now hidden) fact names
blanchet
parents: 39950
diff changeset
    55
  and disj_exD2: "!!P Q. P | (\<exists>x. Q(x)) ==> \<exists>x. P | Q(x)"
39941
02fcd9cd1eac move Meson to Plain
blanchet
parents:
diff changeset
    56
  by fast+
02fcd9cd1eac move Meson to Plain
blanchet
parents:
diff changeset
    57
39953
aa54f347e5e2 hide uninteresting MESON/Metis constants and facts and remove "meson_" prefix to (now hidden) fact names
blanchet
parents: 39950
diff changeset
    58
lemma disj_assoc: "(P|Q)|R ==> P|(Q|R)"
aa54f347e5e2 hide uninteresting MESON/Metis constants and facts and remove "meson_" prefix to (now hidden) fact names
blanchet
parents: 39950
diff changeset
    59
  and disj_comm: "P|Q ==> Q|P"
aa54f347e5e2 hide uninteresting MESON/Metis constants and facts and remove "meson_" prefix to (now hidden) fact names
blanchet
parents: 39950
diff changeset
    60
  and disj_FalseD1: "False|P ==> P"
aa54f347e5e2 hide uninteresting MESON/Metis constants and facts and remove "meson_" prefix to (now hidden) fact names
blanchet
parents: 39950
diff changeset
    61
  and disj_FalseD2: "P|False ==> P"
39941
02fcd9cd1eac move Meson to Plain
blanchet
parents:
diff changeset
    62
  by fast+
02fcd9cd1eac move Meson to Plain
blanchet
parents:
diff changeset
    63
02fcd9cd1eac move Meson to Plain
blanchet
parents:
diff changeset
    64
02fcd9cd1eac move Meson to Plain
blanchet
parents:
diff changeset
    65
text{* Generation of contrapositives *}
02fcd9cd1eac move Meson to Plain
blanchet
parents:
diff changeset
    66
02fcd9cd1eac move Meson to Plain
blanchet
parents:
diff changeset
    67
text{*Inserts negated disjunct after removing the negation; P is a literal.
02fcd9cd1eac move Meson to Plain
blanchet
parents:
diff changeset
    68
  Model elimination requires assuming the negation of every attempted subgoal,
02fcd9cd1eac move Meson to Plain
blanchet
parents:
diff changeset
    69
  hence the negated disjuncts.*}
02fcd9cd1eac move Meson to Plain
blanchet
parents:
diff changeset
    70
lemma make_neg_rule: "~P|Q ==> ((~P==>P) ==> Q)"
02fcd9cd1eac move Meson to Plain
blanchet
parents:
diff changeset
    71
by blast
02fcd9cd1eac move Meson to Plain
blanchet
parents:
diff changeset
    72
02fcd9cd1eac move Meson to Plain
blanchet
parents:
diff changeset
    73
text{*Version for Plaisted's "Postive refinement" of the Meson procedure*}
02fcd9cd1eac move Meson to Plain
blanchet
parents:
diff changeset
    74
lemma make_refined_neg_rule: "~P|Q ==> (P ==> Q)"
02fcd9cd1eac move Meson to Plain
blanchet
parents:
diff changeset
    75
by blast
02fcd9cd1eac move Meson to Plain
blanchet
parents:
diff changeset
    76
02fcd9cd1eac move Meson to Plain
blanchet
parents:
diff changeset
    77
text{*@{term P} should be a literal*}
02fcd9cd1eac move Meson to Plain
blanchet
parents:
diff changeset
    78
lemma make_pos_rule: "P|Q ==> ((P==>~P) ==> Q)"
02fcd9cd1eac move Meson to Plain
blanchet
parents:
diff changeset
    79
by blast
02fcd9cd1eac move Meson to Plain
blanchet
parents:
diff changeset
    80
02fcd9cd1eac move Meson to Plain
blanchet
parents:
diff changeset
    81
text{*Versions of @{text make_neg_rule} and @{text make_pos_rule} that don't
02fcd9cd1eac move Meson to Plain
blanchet
parents:
diff changeset
    82
insert new assumptions, for ordinary resolution.*}
02fcd9cd1eac move Meson to Plain
blanchet
parents:
diff changeset
    83
02fcd9cd1eac move Meson to Plain
blanchet
parents:
diff changeset
    84
lemmas make_neg_rule' = make_refined_neg_rule
02fcd9cd1eac move Meson to Plain
blanchet
parents:
diff changeset
    85
02fcd9cd1eac move Meson to Plain
blanchet
parents:
diff changeset
    86
lemma make_pos_rule': "[|P|Q; ~P|] ==> Q"
02fcd9cd1eac move Meson to Plain
blanchet
parents:
diff changeset
    87
by blast
02fcd9cd1eac move Meson to Plain
blanchet
parents:
diff changeset
    88
02fcd9cd1eac move Meson to Plain
blanchet
parents:
diff changeset
    89
text{* Generation of a goal clause -- put away the final literal *}
02fcd9cd1eac move Meson to Plain
blanchet
parents:
diff changeset
    90
02fcd9cd1eac move Meson to Plain
blanchet
parents:
diff changeset
    91
lemma make_neg_goal: "~P ==> ((~P==>P) ==> False)"
02fcd9cd1eac move Meson to Plain
blanchet
parents:
diff changeset
    92
by blast
02fcd9cd1eac move Meson to Plain
blanchet
parents:
diff changeset
    93
02fcd9cd1eac move Meson to Plain
blanchet
parents:
diff changeset
    94
lemma make_pos_goal: "P ==> ((P==>~P) ==> False)"
02fcd9cd1eac move Meson to Plain
blanchet
parents:
diff changeset
    95
by blast
02fcd9cd1eac move Meson to Plain
blanchet
parents:
diff changeset
    96
02fcd9cd1eac move Meson to Plain
blanchet
parents:
diff changeset
    97
40620
7a9278de19ad section -> subsection
huffman
parents: 39953
diff changeset
    98
subsection {* Lemmas for Forward Proof *}
39941
02fcd9cd1eac move Meson to Plain
blanchet
parents:
diff changeset
    99
02fcd9cd1eac move Meson to Plain
blanchet
parents:
diff changeset
   100
text{*There is a similarity to congruence rules*}
02fcd9cd1eac move Meson to Plain
blanchet
parents:
diff changeset
   101
02fcd9cd1eac move Meson to Plain
blanchet
parents:
diff changeset
   102
(*NOTE: could handle conjunctions (faster?) by
02fcd9cd1eac move Meson to Plain
blanchet
parents:
diff changeset
   103
    nf(th RS conjunct2) RS (nf(th RS conjunct1) RS conjI) *)
02fcd9cd1eac move Meson to Plain
blanchet
parents:
diff changeset
   104
lemma conj_forward: "[| P'&Q';  P' ==> P;  Q' ==> Q |] ==> P&Q"
02fcd9cd1eac move Meson to Plain
blanchet
parents:
diff changeset
   105
by blast
02fcd9cd1eac move Meson to Plain
blanchet
parents:
diff changeset
   106
02fcd9cd1eac move Meson to Plain
blanchet
parents:
diff changeset
   107
lemma disj_forward: "[| P'|Q';  P' ==> P;  Q' ==> Q |] ==> P|Q"
02fcd9cd1eac move Meson to Plain
blanchet
parents:
diff changeset
   108
by blast
02fcd9cd1eac move Meson to Plain
blanchet
parents:
diff changeset
   109
02fcd9cd1eac move Meson to Plain
blanchet
parents:
diff changeset
   110
(*Version of @{text disj_forward} for removal of duplicate literals*)
02fcd9cd1eac move Meson to Plain
blanchet
parents:
diff changeset
   111
lemma disj_forward2:
02fcd9cd1eac move Meson to Plain
blanchet
parents:
diff changeset
   112
    "[| P'|Q';  P' ==> P;  [| Q'; P==>False |] ==> Q |] ==> P|Q"
02fcd9cd1eac move Meson to Plain
blanchet
parents:
diff changeset
   113
apply blast 
02fcd9cd1eac move Meson to Plain
blanchet
parents:
diff changeset
   114
done
02fcd9cd1eac move Meson to Plain
blanchet
parents:
diff changeset
   115
02fcd9cd1eac move Meson to Plain
blanchet
parents:
diff changeset
   116
lemma all_forward: "[| \<forall>x. P'(x);  !!x. P'(x) ==> P(x) |] ==> \<forall>x. P(x)"
02fcd9cd1eac move Meson to Plain
blanchet
parents:
diff changeset
   117
by blast
02fcd9cd1eac move Meson to Plain
blanchet
parents:
diff changeset
   118
02fcd9cd1eac move Meson to Plain
blanchet
parents:
diff changeset
   119
lemma ex_forward: "[| \<exists>x. P'(x);  !!x. P'(x) ==> P(x) |] ==> \<exists>x. P(x)"
02fcd9cd1eac move Meson to Plain
blanchet
parents:
diff changeset
   120
by blast
02fcd9cd1eac move Meson to Plain
blanchet
parents:
diff changeset
   121
02fcd9cd1eac move Meson to Plain
blanchet
parents:
diff changeset
   122
40620
7a9278de19ad section -> subsection
huffman
parents: 39953
diff changeset
   123
subsection {* Clausification helper *}
39941
02fcd9cd1eac move Meson to Plain
blanchet
parents:
diff changeset
   124
02fcd9cd1eac move Meson to Plain
blanchet
parents:
diff changeset
   125
lemma TruepropI: "P \<equiv> Q \<Longrightarrow> Trueprop P \<equiv> Trueprop Q"
02fcd9cd1eac move Meson to Plain
blanchet
parents:
diff changeset
   126
by simp
02fcd9cd1eac move Meson to Plain
blanchet
parents:
diff changeset
   127
02fcd9cd1eac move Meson to Plain
blanchet
parents:
diff changeset
   128
02fcd9cd1eac move Meson to Plain
blanchet
parents:
diff changeset
   129
text{* Combinator translation helpers *}
02fcd9cd1eac move Meson to Plain
blanchet
parents:
diff changeset
   130
02fcd9cd1eac move Meson to Plain
blanchet
parents:
diff changeset
   131
definition COMBI :: "'a \<Rightarrow> 'a" where
02fcd9cd1eac move Meson to Plain
blanchet
parents:
diff changeset
   132
[no_atp]: "COMBI P = P"
02fcd9cd1eac move Meson to Plain
blanchet
parents:
diff changeset
   133
02fcd9cd1eac move Meson to Plain
blanchet
parents:
diff changeset
   134
definition COMBK :: "'a \<Rightarrow> 'b \<Rightarrow> 'a" where
02fcd9cd1eac move Meson to Plain
blanchet
parents:
diff changeset
   135
[no_atp]: "COMBK P Q = P"
02fcd9cd1eac move Meson to Plain
blanchet
parents:
diff changeset
   136
02fcd9cd1eac move Meson to Plain
blanchet
parents:
diff changeset
   137
definition COMBB :: "('b => 'c) \<Rightarrow> ('a => 'b) \<Rightarrow> 'a \<Rightarrow> 'c" where [no_atp]:
02fcd9cd1eac move Meson to Plain
blanchet
parents:
diff changeset
   138
"COMBB P Q R = P (Q R)"
02fcd9cd1eac move Meson to Plain
blanchet
parents:
diff changeset
   139
02fcd9cd1eac move Meson to Plain
blanchet
parents:
diff changeset
   140
definition COMBC :: "('a \<Rightarrow> 'b \<Rightarrow> 'c) \<Rightarrow> 'b \<Rightarrow> 'a \<Rightarrow> 'c" where
02fcd9cd1eac move Meson to Plain
blanchet
parents:
diff changeset
   141
[no_atp]: "COMBC P Q R = P R Q"
02fcd9cd1eac move Meson to Plain
blanchet
parents:
diff changeset
   142
02fcd9cd1eac move Meson to Plain
blanchet
parents:
diff changeset
   143
definition COMBS :: "('a \<Rightarrow> 'b \<Rightarrow> 'c) \<Rightarrow> ('a \<Rightarrow> 'b) \<Rightarrow> 'a \<Rightarrow> 'c" where
02fcd9cd1eac move Meson to Plain
blanchet
parents:
diff changeset
   144
[no_atp]: "COMBS P Q R = P R (Q R)"
02fcd9cd1eac move Meson to Plain
blanchet
parents:
diff changeset
   145
02fcd9cd1eac move Meson to Plain
blanchet
parents:
diff changeset
   146
lemma abs_S [no_atp]: "\<lambda>x. (f x) (g x) \<equiv> COMBS f g"
02fcd9cd1eac move Meson to Plain
blanchet
parents:
diff changeset
   147
apply (rule eq_reflection)
02fcd9cd1eac move Meson to Plain
blanchet
parents:
diff changeset
   148
apply (rule ext) 
02fcd9cd1eac move Meson to Plain
blanchet
parents:
diff changeset
   149
apply (simp add: COMBS_def) 
02fcd9cd1eac move Meson to Plain
blanchet
parents:
diff changeset
   150
done
02fcd9cd1eac move Meson to Plain
blanchet
parents:
diff changeset
   151
02fcd9cd1eac move Meson to Plain
blanchet
parents:
diff changeset
   152
lemma abs_I [no_atp]: "\<lambda>x. x \<equiv> COMBI"
02fcd9cd1eac move Meson to Plain
blanchet
parents:
diff changeset
   153
apply (rule eq_reflection)
02fcd9cd1eac move Meson to Plain
blanchet
parents:
diff changeset
   154
apply (rule ext) 
02fcd9cd1eac move Meson to Plain
blanchet
parents:
diff changeset
   155
apply (simp add: COMBI_def) 
02fcd9cd1eac move Meson to Plain
blanchet
parents:
diff changeset
   156
done
02fcd9cd1eac move Meson to Plain
blanchet
parents:
diff changeset
   157
02fcd9cd1eac move Meson to Plain
blanchet
parents:
diff changeset
   158
lemma abs_K [no_atp]: "\<lambda>x. y \<equiv> COMBK y"
02fcd9cd1eac move Meson to Plain
blanchet
parents:
diff changeset
   159
apply (rule eq_reflection)
02fcd9cd1eac move Meson to Plain
blanchet
parents:
diff changeset
   160
apply (rule ext) 
02fcd9cd1eac move Meson to Plain
blanchet
parents:
diff changeset
   161
apply (simp add: COMBK_def) 
02fcd9cd1eac move Meson to Plain
blanchet
parents:
diff changeset
   162
done
02fcd9cd1eac move Meson to Plain
blanchet
parents:
diff changeset
   163
02fcd9cd1eac move Meson to Plain
blanchet
parents:
diff changeset
   164
lemma abs_B [no_atp]: "\<lambda>x. a (g x) \<equiv> COMBB a g"
02fcd9cd1eac move Meson to Plain
blanchet
parents:
diff changeset
   165
apply (rule eq_reflection)
02fcd9cd1eac move Meson to Plain
blanchet
parents:
diff changeset
   166
apply (rule ext) 
02fcd9cd1eac move Meson to Plain
blanchet
parents:
diff changeset
   167
apply (simp add: COMBB_def) 
02fcd9cd1eac move Meson to Plain
blanchet
parents:
diff changeset
   168
done
02fcd9cd1eac move Meson to Plain
blanchet
parents:
diff changeset
   169
02fcd9cd1eac move Meson to Plain
blanchet
parents:
diff changeset
   170
lemma abs_C [no_atp]: "\<lambda>x. (f x) b \<equiv> COMBC f b"
02fcd9cd1eac move Meson to Plain
blanchet
parents:
diff changeset
   171
apply (rule eq_reflection)
02fcd9cd1eac move Meson to Plain
blanchet
parents:
diff changeset
   172
apply (rule ext) 
02fcd9cd1eac move Meson to Plain
blanchet
parents:
diff changeset
   173
apply (simp add: COMBC_def) 
02fcd9cd1eac move Meson to Plain
blanchet
parents:
diff changeset
   174
done
02fcd9cd1eac move Meson to Plain
blanchet
parents:
diff changeset
   175
02fcd9cd1eac move Meson to Plain
blanchet
parents:
diff changeset
   176
40620
7a9278de19ad section -> subsection
huffman
parents: 39953
diff changeset
   177
subsection {* Skolemization helpers *}
39941
02fcd9cd1eac move Meson to Plain
blanchet
parents:
diff changeset
   178
02fcd9cd1eac move Meson to Plain
blanchet
parents:
diff changeset
   179
definition skolem :: "'a \<Rightarrow> 'a" where
02fcd9cd1eac move Meson to Plain
blanchet
parents:
diff changeset
   180
[no_atp]: "skolem = (\<lambda>x. x)"
02fcd9cd1eac move Meson to Plain
blanchet
parents:
diff changeset
   181
02fcd9cd1eac move Meson to Plain
blanchet
parents:
diff changeset
   182
lemma skolem_COMBK_iff: "P \<longleftrightarrow> skolem (COMBK P (i\<Colon>nat))"
02fcd9cd1eac move Meson to Plain
blanchet
parents:
diff changeset
   183
unfolding skolem_def COMBK_def by (rule refl)
02fcd9cd1eac move Meson to Plain
blanchet
parents:
diff changeset
   184
02fcd9cd1eac move Meson to Plain
blanchet
parents:
diff changeset
   185
lemmas skolem_COMBK_I = iffD1 [OF skolem_COMBK_iff]
02fcd9cd1eac move Meson to Plain
blanchet
parents:
diff changeset
   186
lemmas skolem_COMBK_D = iffD2 [OF skolem_COMBK_iff]
02fcd9cd1eac move Meson to Plain
blanchet
parents:
diff changeset
   187
02fcd9cd1eac move Meson to Plain
blanchet
parents:
diff changeset
   188
40620
7a9278de19ad section -> subsection
huffman
parents: 39953
diff changeset
   189
subsection {* Meson package *}
39941
02fcd9cd1eac move Meson to Plain
blanchet
parents:
diff changeset
   190
02fcd9cd1eac move Meson to Plain
blanchet
parents:
diff changeset
   191
use "Tools/Meson/meson.ML"
02fcd9cd1eac move Meson to Plain
blanchet
parents:
diff changeset
   192
use "Tools/Meson/meson_clausify.ML"
39948
317010af8972 factor out "Meson_Tactic" from "Meson_Clausify"
blanchet
parents: 39947
diff changeset
   193
use "Tools/Meson/meson_tactic.ML"
39941
02fcd9cd1eac move Meson to Plain
blanchet
parents:
diff changeset
   194
42616
92715b528e78 added Attrib.setup_config_XXX conveniences, with implicit setup of the background theory;
wenzelm
parents: 40620
diff changeset
   195
setup {* Meson_Tactic.setup *}
39941
02fcd9cd1eac move Meson to Plain
blanchet
parents:
diff changeset
   196
39953
aa54f347e5e2 hide uninteresting MESON/Metis constants and facts and remove "meson_" prefix to (now hidden) fact names
blanchet
parents: 39950
diff changeset
   197
hide_const (open) COMBI COMBK COMBB COMBC COMBS skolem
aa54f347e5e2 hide uninteresting MESON/Metis constants and facts and remove "meson_" prefix to (now hidden) fact names
blanchet
parents: 39950
diff changeset
   198
hide_fact (open) not_conjD not_disjD not_notD not_allD not_exD imp_to_disjD
aa54f347e5e2 hide uninteresting MESON/Metis constants and facts and remove "meson_" prefix to (now hidden) fact names
blanchet
parents: 39950
diff changeset
   199
    not_impD iff_to_disjD not_iffD not_refl_disj_D conj_exD1 conj_exD2 disj_exD
aa54f347e5e2 hide uninteresting MESON/Metis constants and facts and remove "meson_" prefix to (now hidden) fact names
blanchet
parents: 39950
diff changeset
   200
    disj_exD1 disj_exD2 disj_assoc disj_comm disj_FalseD1 disj_FalseD2 TruepropI
aa54f347e5e2 hide uninteresting MESON/Metis constants and facts and remove "meson_" prefix to (now hidden) fact names
blanchet
parents: 39950
diff changeset
   201
    COMBI_def COMBK_def COMBB_def COMBC_def COMBS_def abs_I abs_K abs_B abs_C
aa54f347e5e2 hide uninteresting MESON/Metis constants and facts and remove "meson_" prefix to (now hidden) fact names
blanchet
parents: 39950
diff changeset
   202
    abs_S skolem_def skolem_COMBK_iff skolem_COMBK_I skolem_COMBK_D
aa54f347e5e2 hide uninteresting MESON/Metis constants and facts and remove "meson_" prefix to (now hidden) fact names
blanchet
parents: 39950
diff changeset
   203
39941
02fcd9cd1eac move Meson to Plain
blanchet
parents:
diff changeset
   204
end