author | wenzelm |
Sat, 23 May 2015 17:19:37 +0200 | |
changeset 60299 | 5ae2a2e74c93 |
parent 58963 | 26bf09b95dda |
child 60770 | 240563fbf41d |
permissions | -rw-r--r-- |
26408 | 1 |
(* Title: FOLP/ex/Propositional_Int.thy |
2 |
Author: Lawrence C Paulson, Cambridge University Computer Laboratory |
|
3 |
Copyright 1991 University of Cambridge |
|
4 |
*) |
|
5 |
||
58889 | 6 |
section {* First-Order Logic: propositional examples *} |
26408 | 7 |
|
8 |
theory Propositional_Int |
|
9 |
imports IFOLP |
|
10 |
begin |
|
11 |
||
12 |
||
13 |
text "commutative laws of & and | " |
|
36319 | 14 |
schematic_lemma "?p : P & Q --> Q & P" |
58963
26bf09b95dda
proper context for assume_tac (atac remains as fall-back without context);
wenzelm
parents:
58889
diff
changeset
|
15 |
by (tactic {* IntPr.fast_tac @{context} 1 *}) |
26408 | 16 |
|
36319 | 17 |
schematic_lemma "?p : P | Q --> Q | P" |
58963
26bf09b95dda
proper context for assume_tac (atac remains as fall-back without context);
wenzelm
parents:
58889
diff
changeset
|
18 |
by (tactic {* IntPr.fast_tac @{context} 1 *}) |
26408 | 19 |
|
20 |
||
21 |
text "associative laws of & and | " |
|
36319 | 22 |
schematic_lemma "?p : (P & Q) & R --> P & (Q & R)" |
58963
26bf09b95dda
proper context for assume_tac (atac remains as fall-back without context);
wenzelm
parents:
58889
diff
changeset
|
23 |
by (tactic {* IntPr.fast_tac @{context} 1 *}) |
26408 | 24 |
|
36319 | 25 |
schematic_lemma "?p : (P | Q) | R --> P | (Q | R)" |
58963
26bf09b95dda
proper context for assume_tac (atac remains as fall-back without context);
wenzelm
parents:
58889
diff
changeset
|
26 |
by (tactic {* IntPr.fast_tac @{context} 1 *}) |
26408 | 27 |
|
28 |
||
29 |
text "distributive laws of & and | " |
|
36319 | 30 |
schematic_lemma "?p : (P & Q) | R --> (P | R) & (Q | R)" |
58963
26bf09b95dda
proper context for assume_tac (atac remains as fall-back without context);
wenzelm
parents:
58889
diff
changeset
|
31 |
by (tactic {* IntPr.fast_tac @{context} 1 *}) |
26408 | 32 |
|
36319 | 33 |
schematic_lemma "?p : (P | R) & (Q | R) --> (P & Q) | R" |
58963
26bf09b95dda
proper context for assume_tac (atac remains as fall-back without context);
wenzelm
parents:
58889
diff
changeset
|
34 |
by (tactic {* IntPr.fast_tac @{context} 1 *}) |
26408 | 35 |
|
36319 | 36 |
schematic_lemma "?p : (P | Q) & R --> (P & R) | (Q & R)" |
58963
26bf09b95dda
proper context for assume_tac (atac remains as fall-back without context);
wenzelm
parents:
58889
diff
changeset
|
37 |
by (tactic {* IntPr.fast_tac @{context} 1 *}) |
26408 | 38 |
|
39 |
||
36319 | 40 |
schematic_lemma "?p : (P & R) | (Q & R) --> (P | Q) & R" |
58963
26bf09b95dda
proper context for assume_tac (atac remains as fall-back without context);
wenzelm
parents:
58889
diff
changeset
|
41 |
by (tactic {* IntPr.fast_tac @{context} 1 *}) |
26408 | 42 |
|
43 |
||
44 |
text "Laws involving implication" |
|
45 |
||
36319 | 46 |
schematic_lemma "?p : (P-->R) & (Q-->R) <-> (P|Q --> R)" |
58963
26bf09b95dda
proper context for assume_tac (atac remains as fall-back without context);
wenzelm
parents:
58889
diff
changeset
|
47 |
by (tactic {* IntPr.fast_tac @{context} 1 *}) |
26408 | 48 |
|
36319 | 49 |
schematic_lemma "?p : (P & Q --> R) <-> (P--> (Q-->R))" |
58963
26bf09b95dda
proper context for assume_tac (atac remains as fall-back without context);
wenzelm
parents:
58889
diff
changeset
|
50 |
by (tactic {* IntPr.fast_tac @{context} 1 *}) |
26408 | 51 |
|
36319 | 52 |
schematic_lemma "?p : ((P-->R)-->R) --> ((Q-->R)-->R) --> (P&Q-->R) --> R" |
58963
26bf09b95dda
proper context for assume_tac (atac remains as fall-back without context);
wenzelm
parents:
58889
diff
changeset
|
53 |
by (tactic {* IntPr.fast_tac @{context} 1 *}) |
26408 | 54 |
|
36319 | 55 |
schematic_lemma "?p : ~(P-->R) --> ~(Q-->R) --> ~(P&Q-->R)" |
58963
26bf09b95dda
proper context for assume_tac (atac remains as fall-back without context);
wenzelm
parents:
58889
diff
changeset
|
56 |
by (tactic {* IntPr.fast_tac @{context} 1 *}) |
26408 | 57 |
|
36319 | 58 |
schematic_lemma "?p : (P --> Q & R) <-> (P-->Q) & (P-->R)" |
58963
26bf09b95dda
proper context for assume_tac (atac remains as fall-back without context);
wenzelm
parents:
58889
diff
changeset
|
59 |
by (tactic {* IntPr.fast_tac @{context} 1 *}) |
26408 | 60 |
|
61 |
||
62 |
text "Propositions-as-types" |
|
63 |
||
64 |
(*The combinator K*) |
|
36319 | 65 |
schematic_lemma "?p : P --> (Q --> P)" |
58963
26bf09b95dda
proper context for assume_tac (atac remains as fall-back without context);
wenzelm
parents:
58889
diff
changeset
|
66 |
by (tactic {* IntPr.fast_tac @{context} 1 *}) |
26408 | 67 |
|
68 |
(*The combinator S*) |
|
36319 | 69 |
schematic_lemma "?p : (P-->Q-->R) --> (P-->Q) --> (P-->R)" |
58963
26bf09b95dda
proper context for assume_tac (atac remains as fall-back without context);
wenzelm
parents:
58889
diff
changeset
|
70 |
by (tactic {* IntPr.fast_tac @{context} 1 *}) |
26408 | 71 |
|
72 |
||
73 |
(*Converse is classical*) |
|
36319 | 74 |
schematic_lemma "?p : (P-->Q) | (P-->R) --> (P --> Q | R)" |
58963
26bf09b95dda
proper context for assume_tac (atac remains as fall-back without context);
wenzelm
parents:
58889
diff
changeset
|
75 |
by (tactic {* IntPr.fast_tac @{context} 1 *}) |
26408 | 76 |
|
36319 | 77 |
schematic_lemma "?p : (P-->Q) --> (~Q --> ~P)" |
58963
26bf09b95dda
proper context for assume_tac (atac remains as fall-back without context);
wenzelm
parents:
58889
diff
changeset
|
78 |
by (tactic {* IntPr.fast_tac @{context} 1 *}) |
26408 | 79 |
|
80 |
||
81 |
text "Schwichtenberg's examples (via T. Nipkow)" |
|
82 |
||
36319 | 83 |
schematic_lemma stab_imp: "?p : (((Q-->R)-->R)-->Q) --> (((P-->Q)-->R)-->R)-->P-->Q" |
58963
26bf09b95dda
proper context for assume_tac (atac remains as fall-back without context);
wenzelm
parents:
58889
diff
changeset
|
84 |
by (tactic {* IntPr.fast_tac @{context} 1 *}) |
26408 | 85 |
|
36319 | 86 |
schematic_lemma stab_to_peirce: "?p : (((P --> R) --> R) --> P) --> (((Q --> R) --> R) --> Q) |
26408 | 87 |
--> ((P --> Q) --> P) --> P" |
58963
26bf09b95dda
proper context for assume_tac (atac remains as fall-back without context);
wenzelm
parents:
58889
diff
changeset
|
88 |
by (tactic {* IntPr.fast_tac @{context} 1 *}) |
26408 | 89 |
|
36319 | 90 |
schematic_lemma peirce_imp1: "?p : (((Q --> R) --> Q) --> Q) |
26408 | 91 |
--> (((P --> Q) --> R) --> P --> Q) --> P --> Q" |
58963
26bf09b95dda
proper context for assume_tac (atac remains as fall-back without context);
wenzelm
parents:
58889
diff
changeset
|
92 |
by (tactic {* IntPr.fast_tac @{context} 1 *}) |
26408 | 93 |
|
36319 | 94 |
schematic_lemma peirce_imp2: "?p : (((P --> R) --> P) --> P) --> ((P --> Q --> R) --> P) --> P" |
58963
26bf09b95dda
proper context for assume_tac (atac remains as fall-back without context);
wenzelm
parents:
58889
diff
changeset
|
95 |
by (tactic {* IntPr.fast_tac @{context} 1 *}) |
26408 | 96 |
|
36319 | 97 |
schematic_lemma mints: "?p : ((((P --> Q) --> P) --> P) --> Q) --> Q" |
58963
26bf09b95dda
proper context for assume_tac (atac remains as fall-back without context);
wenzelm
parents:
58889
diff
changeset
|
98 |
by (tactic {* IntPr.fast_tac @{context} 1 *}) |
26408 | 99 |
|
36319 | 100 |
schematic_lemma mints_solovev: "?p : (P --> (Q --> R) --> Q) --> ((P --> Q) --> R) --> R" |
58963
26bf09b95dda
proper context for assume_tac (atac remains as fall-back without context);
wenzelm
parents:
58889
diff
changeset
|
101 |
by (tactic {* IntPr.fast_tac @{context} 1 *}) |
26408 | 102 |
|
36319 | 103 |
schematic_lemma tatsuta: "?p : (((P7 --> P1) --> P10) --> P4 --> P5) |
26408 | 104 |
--> (((P8 --> P2) --> P9) --> P3 --> P10) |
105 |
--> (P1 --> P8) --> P6 --> P7 |
|
106 |
--> (((P3 --> P2) --> P9) --> P4) |
|
107 |
--> (P1 --> P3) --> (((P6 --> P1) --> P2) --> P9) --> P5" |
|
58963
26bf09b95dda
proper context for assume_tac (atac remains as fall-back without context);
wenzelm
parents:
58889
diff
changeset
|
108 |
by (tactic {* IntPr.fast_tac @{context} 1 *}) |
26408 | 109 |
|
36319 | 110 |
schematic_lemma tatsuta1: "?p : (((P8 --> P2) --> P9) --> P3 --> P10) |
26408 | 111 |
--> (((P3 --> P2) --> P9) --> P4) |
112 |
--> (((P6 --> P1) --> P2) --> P9) |
|
113 |
--> (((P7 --> P1) --> P10) --> P4 --> P5) |
|
114 |
--> (P1 --> P3) --> (P1 --> P8) --> P6 --> P7 --> P5" |
|
58963
26bf09b95dda
proper context for assume_tac (atac remains as fall-back without context);
wenzelm
parents:
58889
diff
changeset
|
115 |
by (tactic {* IntPr.fast_tac @{context} 1 *}) |
26408 | 116 |
|
117 |
end |