author  wenzelm 
Wed, 31 Oct 2001 01:19:58 +0100  
changeset 11988  8340fb172607 
parent 11848  6e3017adb8c0 
child 12127  219e543496a3 
permissions  rwrr 
9487  1 
(* Title: FOL/FOL.thy 
2 
ID: $Id$ 

3 
Author: Lawrence C Paulson and Markus Wenzel 

11678  4 
*) 
9487  5 

11678  6 
header {* Classical firstorder logic *} 
4093  7 

7355
4c43090659ca
proper bootstrap of IFOL/FOL theories and packages;
wenzelm
parents:
5887
diff
changeset

8 
theory FOL = IFOL 
9487  9 
files 
10 
("FOL_lemmas1.ML") ("cladata.ML") ("blastdata.ML") 

11 
("simpdata.ML") ("FOL_lemmas2.ML"): 

12 

13 

14 
subsection {* The classical axiom *} 

4093  15 

7355
4c43090659ca
proper bootstrap of IFOL/FOL theories and packages;
wenzelm
parents:
5887
diff
changeset

16 
axioms 
4c43090659ca
proper bootstrap of IFOL/FOL theories and packages;
wenzelm
parents:
5887
diff
changeset

17 
classical: "(~P ==> P) ==> P" 
4093  18 

9487  19 

11678  20 
subsection {* Lemmas and proof tools *} 
9487  21 

7355
4c43090659ca
proper bootstrap of IFOL/FOL theories and packages;
wenzelm
parents:
5887
diff
changeset

22 
use "FOL_lemmas1.ML" 
11678  23 
theorems case_split = case_split_thm [case_names True False] 
9525  24 

10383  25 
use "cladata.ML" 
26 
setup Cla.setup 

27 
setup clasetup 

28 

9487  29 
use "blastdata.ML" 
30 
setup Blast.setup 

7355
4c43090659ca
proper bootstrap of IFOL/FOL theories and packages;
wenzelm
parents:
5887
diff
changeset

31 
use "FOL_lemmas2.ML" 
9487  32 

33 
use "simpdata.ML" 

34 
setup simpsetup 

35 
setup "Simplifier.method_setup Splitter.split_modifiers" 

36 
setup Splitter.setup 

37 
setup Clasimp.setup 

38 

11678  39 

40 
subsection {* Proof by cases and induction *} 

41 

42 
text {* Proper handling of nonatomic rule statements. *} 

43 

44 
constdefs 

45 
induct_forall :: "('a => o) => o" 

46 
"induct_forall(P) == \<forall>x. P(x)" 

47 
induct_implies :: "o => o => o" 

48 
"induct_implies(A, B) == A > B" 

49 
induct_equal :: "'a => 'a => o" 

50 
"induct_equal(x, y) == x = y" 

51 

52 
lemma induct_forall_eq: "(!!x. P(x)) == Trueprop(induct_forall(\<lambda>x. P(x)))" 

53 
by (simp only: atomize_all induct_forall_def) 

54 

55 
lemma induct_implies_eq: "(A ==> B) == Trueprop(induct_implies(A, B))" 

56 
by (simp only: atomize_imp induct_implies_def) 

57 

58 
lemma induct_equal_eq: "(x == y) == Trueprop(induct_equal(x, y))" 

59 
by (simp only: atomize_eq induct_equal_def) 

60 

11988  61 
lemma induct_impliesI: "(A ==> B) ==> induct_implies(A, B)" 
62 
by (simp add: induct_implies_def) 

63 

11678  64 
lemmas induct_atomize = induct_forall_eq induct_implies_eq induct_equal_eq 
65 
lemmas induct_rulify1 = induct_atomize [symmetric, standard] 

66 
lemmas induct_rulify2 = induct_forall_def induct_implies_def induct_equal_def 

67 

68 
hide const induct_forall induct_implies induct_equal 

69 

70 

71 
text {* Method setup. *} 

72 

73 
ML {* 

74 
structure InductMethod = InductMethodFun 

75 
(struct 

76 
val dest_concls = FOLogic.dest_concls; 

77 
val cases_default = thm "case_split"; 

11988  78 
val local_impI = thm "induct_impliesI"; 
11678  79 
val conjI = thm "conjI"; 
80 
val atomize = thms "induct_atomize"; 

81 
val rulify1 = thms "induct_rulify1"; 

82 
val rulify2 = thms "induct_rulify2"; 

83 
end); 

84 
*} 

85 

86 
setup InductMethod.setup 

87 

4854  88 
end 