author | wenzelm |
Tue, 07 Mar 2017 17:21:41 +0100 | |
changeset 65143 | 36cd85caf09a |
parent 61980 | 6b780867d426 |
child 76213 | e44d86131648 |
permissions | -rw-r--r-- |
41777 | 1 |
(* Title: ZF/AC/AC17_AC1.thy |
12776 | 2 |
Author: Krzysztof Grabczewski |
3 |
||
4 |
The equivalence of AC0, AC1 and AC17 |
|
5 |
||
6 |
Also, the proofs needed to show that each of AC2, AC3, ..., AC6 is equivalent |
|
7 |
to AC0 and AC1. |
|
8 |
*) |
|
9 |
||
27678 | 10 |
theory AC17_AC1 |
11 |
imports HH |
|
12 |
begin |
|
12776 | 13 |
|
14 |
||
15 |
(** AC0 is equivalent to AC1. |
|
16 |
AC0 comes from Suppes, AC1 from Rubin & Rubin **) |
|
17 |
||
61980 | 18 |
lemma AC0_AC1_lemma: "[| f:(\<Prod>X \<in> A. X); D \<subseteq> A |] ==> \<exists>g. g:(\<Prod>X \<in> D. X)" |
12891 | 19 |
by (fast intro!: lam_type apply_type) |
12776 | 20 |
|
21 |
lemma AC0_AC1: "AC0 ==> AC1" |
|
22 |
apply (unfold AC0_def AC1_def) |
|
23 |
apply (blast intro: AC0_AC1_lemma) |
|
24 |
done |
|
25 |
||
26 |
lemma AC1_AC0: "AC1 ==> AC0" |
|
27 |
by (unfold AC0_def AC1_def, blast) |
|
28 |
||
29 |
||
30 |
(**** The proof of AC1 ==> AC17 ****) |
|
31 |
||
61980 | 32 |
lemma AC1_AC17_lemma: "f \<in> (\<Prod>X \<in> Pow(A) - {0}. X) ==> f \<in> (Pow(A) - {0} -> A)" |
12776 | 33 |
apply (rule Pi_type, assumption) |
34 |
apply (drule apply_type, assumption, fast) |
|
35 |
done |
|
36 |
||
37 |
lemma AC1_AC17: "AC1 ==> AC17" |
|
38 |
apply (unfold AC1_def AC17_def) |
|
39 |
apply (rule allI) |
|
40 |
apply (rule ballI) |
|
41 |
apply (erule_tac x = "Pow (A) -{0}" in allE) |
|
42 |
apply (erule impE, fast) |
|
43 |
apply (erule exE) |
|
44 |
apply (rule bexI) |
|
45 |
apply (erule_tac [2] AC1_AC17_lemma) |
|
46 |
apply (rule apply_type, assumption) |
|
47 |
apply (fast dest!: AC1_AC17_lemma elim!: apply_type) |
|
48 |
done |
|
49 |
||
50 |
||
51 |
(**** The proof of AC17 ==> AC1 ****) |
|
52 |
||
53 |
(* *********************************************************************** *) |
|
54 |
(* more properties of HH *) |
|
55 |
(* *********************************************************************** *) |
|
56 |
||
57 |
lemma UN_eq_imp_well_ord: |
|
61394 | 58 |
"[| x - (\<Union>j \<in> \<mu> i. HH(\<lambda>X \<in> Pow(x)-{0}. {f`X}, x, i) = {x}. |
12776 | 59 |
HH(\<lambda>X \<in> Pow(x)-{0}. {f`X}, x, j)) = 0; |
60 |
f \<in> Pow(x)-{0} -> x |] |
|
61 |
==> \<exists>r. well_ord(x,r)" |
|
62 |
apply (rule exI) |
|
63 |
apply (erule well_ord_rvimage |
|
64 |
[OF bij_Least_HH_x [THEN bij_converse_bij, THEN bij_is_inj] |
|
65 |
Ord_Least [THEN well_ord_Memrel]], assumption) |
|
66 |
done |
|
67 |
||
68 |
(* *********************************************************************** *) |
|
69 |
(* theorems closer to the proof *) |
|
70 |
(* *********************************************************************** *) |
|
71 |
||
72 |
lemma not_AC1_imp_ex: |
|
73 |
"~AC1 ==> \<exists>A. \<forall>f \<in> Pow(A)-{0} -> A. \<exists>u \<in> Pow(A)-{0}. f`u \<notin> u" |
|
74 |
apply (unfold AC1_def) |
|
75 |
apply (erule swap) |
|
76 |
apply (rule allI) |
|
77 |
apply (erule swap) |
|
46822
95f1e700b712
mathematical symbols for Isabelle/ZF example theories
paulson
parents:
41777
diff
changeset
|
78 |
apply (rule_tac x = "\<Union>(A)" in exI) |
12891 | 79 |
apply (blast intro: lam_type) |
12776 | 80 |
done |
81 |
||
13535 | 82 |
lemma AC17_AC1_aux1: |
12776 | 83 |
"[| \<forall>f \<in> Pow(x) - {0} -> x. \<exists>u \<in> Pow(x) - {0}. f`u\<notin>u; |
84 |
\<exists>f \<in> Pow(x)-{0}->x. |
|
61394 | 85 |
x - (\<Union>a \<in> (\<mu> i. HH(\<lambda>X \<in> Pow(x)-{0}. {f`X},x,i)={x}). |
12776 | 86 |
HH(\<lambda>X \<in> Pow(x)-{0}. {f`X},x,a)) = 0 |] |
87 |
==> P" |
|
88 |
apply (erule bexE) |
|
89 |
apply (erule UN_eq_imp_well_ord [THEN exE], assumption) |
|
90 |
apply (erule ex_choice_fun_Pow [THEN exE]) |
|
91 |
apply (erule ballE) |
|
92 |
apply (fast intro: apply_type del: DiffE) |
|
93 |
apply (erule notE) |
|
94 |
apply (rule Pi_type, assumption) |
|
95 |
apply (blast dest: apply_type) |
|
96 |
done |
|
97 |
||
13535 | 98 |
lemma AC17_AC1_aux2: |
12776 | 99 |
"~ (\<exists>f \<in> Pow(x)-{0}->x. x - F(f) = 0) |
100 |
==> (\<lambda>f \<in> Pow(x)-{0}->x . x - F(f)) |
|
101 |
\<in> (Pow(x) -{0} -> x) -> Pow(x) - {0}" |
|
102 |
by (fast intro!: lam_type dest!: Diff_eq_0_iff [THEN iffD1]) |
|
103 |
||
13535 | 104 |
lemma AC17_AC1_aux3: |
12776 | 105 |
"[| f`Z \<in> Z; Z \<in> Pow(x)-{0} |] |
106 |
==> (\<lambda>X \<in> Pow(x)-{0}. {f`X})`Z \<in> Pow(Z)-{0}" |
|
107 |
by auto |
|
108 |
||
13535 | 109 |
lemma AC17_AC1_aux4: |
12776 | 110 |
"\<exists>f \<in> F. f`((\<lambda>f \<in> F. Q(f))`f) \<in> (\<lambda>f \<in> F. Q(f))`f |
111 |
==> \<exists>f \<in> F. f`Q(f) \<in> Q(f)" |
|
112 |
by simp |
|
113 |
||
114 |
lemma AC17_AC1: "AC17 ==> AC1" |
|
115 |
apply (unfold AC17_def) |
|
116 |
apply (rule classical) |
|
117 |
apply (erule not_AC1_imp_ex [THEN exE]) |
|
118 |
apply (case_tac |
|
119 |
"\<exists>f \<in> Pow(x)-{0} -> x. |
|
61394 | 120 |
x - (\<Union>a \<in> (\<mu> i. HH (\<lambda>X \<in> Pow (x) -{0}. {f`X},x,i) ={x}) . HH (\<lambda>X \<in> Pow (x) -{0}. {f`X},x,a)) = 0") |
13535 | 121 |
apply (erule AC17_AC1_aux1, assumption) |
122 |
apply (drule AC17_AC1_aux2) |
|
12776 | 123 |
apply (erule allE) |
124 |
apply (drule bspec, assumption) |
|
13535 | 125 |
apply (drule AC17_AC1_aux4) |
12776 | 126 |
apply (erule bexE) |
127 |
apply (drule apply_type, assumption) |
|
128 |
apply (simp add: HH_Least_eq_x del: Diff_iff ) |
|
13535 | 129 |
apply (drule AC17_AC1_aux3, assumption) |
12776 | 130 |
apply (fast dest!: subst_elem [OF _ HH_Least_eq_x [symmetric]] |
131 |
f_subset_imp_HH_subset elim!: mem_irrefl) |
|
132 |
done |
|
133 |
||
134 |
||
135 |
(* ********************************************************************** |
|
136 |
AC1 ==> AC2 ==> AC1 |
|
137 |
AC1 ==> AC4 ==> AC3 ==> AC1 |
|
138 |
AC4 ==> AC5 ==> AC4 |
|
46822
95f1e700b712
mathematical symbols for Isabelle/ZF example theories
paulson
parents:
41777
diff
changeset
|
139 |
AC1 \<longleftrightarrow> AC6 |
12776 | 140 |
************************************************************************* *) |
141 |
||
142 |
(* ********************************************************************** *) |
|
143 |
(* AC1 ==> AC2 *) |
|
144 |
(* ********************************************************************** *) |
|
145 |
||
13535 | 146 |
lemma AC1_AC2_aux1: |
61980 | 147 |
"[| f:(\<Prod>X \<in> A. X); B \<in> A; 0\<notin>A |] ==> {f`B} \<subseteq> B \<inter> {f`C. C \<in> A}" |
12776 | 148 |
by (fast elim!: apply_type) |
1123 | 149 |
|
13535 | 150 |
lemma AC1_AC2_aux2: |
12776 | 151 |
"[| pairwise_disjoint(A); B \<in> A; C \<in> A; D \<in> B; D \<in> C |] ==> f`B = f`C" |
152 |
by (unfold pairwise_disjoint_def, fast) |
|
153 |
||
154 |
lemma AC1_AC2: "AC1 ==> AC2" |
|
155 |
apply (unfold AC1_def AC2_def) |
|
156 |
apply (rule allI) |
|
157 |
apply (rule impI) |
|
158 |
apply (elim asm_rl conjE allE exE impE, assumption) |
|
159 |
apply (intro exI ballI equalityI) |
|
13535 | 160 |
prefer 2 apply (rule AC1_AC2_aux1, assumption+) |
161 |
apply (fast elim!: AC1_AC2_aux2 elim: apply_type) |
|
12776 | 162 |
done |
163 |
||
164 |
||
165 |
(* ********************************************************************** *) |
|
166 |
(* AC2 ==> AC1 *) |
|
167 |
(* ********************************************************************** *) |
|
168 |
||
13535 | 169 |
lemma AC2_AC1_aux1: "0\<notin>A ==> 0 \<notin> {B*{B}. B \<in> A}" |
12776 | 170 |
by (fast dest!: sym [THEN Sigma_empty_iff [THEN iffD1]]) |
171 |
||
46822
95f1e700b712
mathematical symbols for Isabelle/ZF example theories
paulson
parents:
41777
diff
changeset
|
172 |
lemma AC2_AC1_aux2: "[| X*{X} \<inter> C = {y}; X \<in> A |] |
95f1e700b712
mathematical symbols for Isabelle/ZF example theories
paulson
parents:
41777
diff
changeset
|
173 |
==> (THE y. X*{X} \<inter> C = {y}): X*A" |
12776 | 174 |
apply (rule subst_elem [of y]) |
175 |
apply (blast elim!: equalityE) |
|
176 |
apply (auto simp add: singleton_eq_iff) |
|
177 |
done |
|
178 |
||
13535 | 179 |
lemma AC2_AC1_aux3: |
46822
95f1e700b712
mathematical symbols for Isabelle/ZF example theories
paulson
parents:
41777
diff
changeset
|
180 |
"\<forall>D \<in> {E*{E}. E \<in> A}. \<exists>y. D \<inter> C = {y} |
61980 | 181 |
==> (\<lambda>x \<in> A. fst(THE z. (x*{x} \<inter> C = {z}))) \<in> (\<Prod>X \<in> A. X)" |
12776 | 182 |
apply (rule lam_type) |
183 |
apply (drule bspec, blast) |
|
13535 | 184 |
apply (blast intro: AC2_AC1_aux2 fst_type) |
12776 | 185 |
done |
186 |
||
187 |
lemma AC2_AC1: "AC2 ==> AC1" |
|
188 |
apply (unfold AC1_def AC2_def pairwise_disjoint_def) |
|
189 |
apply (intro allI impI) |
|
190 |
apply (elim allE impE) |
|
13535 | 191 |
prefer 2 apply (fast elim!: AC2_AC1_aux3) |
192 |
apply (blast intro!: AC2_AC1_aux1) |
|
12776 | 193 |
done |
194 |
||
195 |
||
196 |
(* ********************************************************************** *) |
|
197 |
(* AC1 ==> AC4 *) |
|
198 |
(* ********************************************************************** *) |
|
199 |
||
200 |
lemma empty_notin_images: "0 \<notin> {R``{x}. x \<in> domain(R)}" |
|
201 |
by blast |
|
202 |
||
203 |
lemma AC1_AC4: "AC1 ==> AC4" |
|
204 |
apply (unfold AC1_def AC4_def) |
|
205 |
apply (intro allI impI) |
|
206 |
apply (drule spec, drule mp [OF _ empty_notin_images]) |
|
207 |
apply (best intro!: lam_type elim!: apply_type) |
|
208 |
done |
|
209 |
||
210 |
||
211 |
(* ********************************************************************** *) |
|
212 |
(* AC4 ==> AC3 *) |
|
213 |
(* ********************************************************************** *) |
|
214 |
||
46822
95f1e700b712
mathematical symbols for Isabelle/ZF example theories
paulson
parents:
41777
diff
changeset
|
215 |
lemma AC4_AC3_aux1: "f \<in> A->B ==> (\<Union>z \<in> A. {z}*f`z) \<subseteq> A*\<Union>(B)" |
12776 | 216 |
by (fast dest!: apply_type) |
217 |
||
13535 | 218 |
lemma AC4_AC3_aux2: "domain(\<Union>z \<in> A. {z}*f(z)) = {a \<in> A. f(a)\<noteq>0}" |
12776 | 219 |
by blast |
220 |
||
13535 | 221 |
lemma AC4_AC3_aux3: "x \<in> A ==> (\<Union>z \<in> A. {z}*f(z))``{x} = f(x)" |
12776 | 222 |
by fast |
223 |
||
224 |
lemma AC4_AC3: "AC4 ==> AC3" |
|
225 |
apply (unfold AC3_def AC4_def) |
|
226 |
apply (intro allI ballI) |
|
227 |
apply (elim allE impE) |
|
13535 | 228 |
apply (erule AC4_AC3_aux1) |
229 |
apply (simp add: AC4_AC3_aux2 AC4_AC3_aux3 cong add: Pi_cong) |
|
12776 | 230 |
done |
231 |
||
232 |
(* ********************************************************************** *) |
|
233 |
(* AC3 ==> AC1 *) |
|
234 |
(* ********************************************************************** *) |
|
235 |
||
236 |
lemma AC3_AC1_lemma: |
|
61980 | 237 |
"b\<notin>A ==> (\<Prod>x \<in> {a \<in> A. id(A)`a\<noteq>b}. id(A)`x) = (\<Prod>x \<in> A. x)" |
12776 | 238 |
apply (simp add: id_def cong add: Pi_cong) |
13339
0f89104dd377
Fixed quantified variable name preservation for ball and bex (bounded quants)
paulson
parents:
12891
diff
changeset
|
239 |
apply (rule_tac b = A in subst_context, fast) |
12776 | 240 |
done |
241 |
||
242 |
lemma AC3_AC1: "AC3 ==> AC1" |
|
243 |
apply (unfold AC1_def AC3_def) |
|
244 |
apply (fast intro!: id_type elim: AC3_AC1_lemma [THEN subst]) |
|
245 |
done |
|
246 |
||
247 |
(* ********************************************************************** *) |
|
248 |
(* AC4 ==> AC5 *) |
|
249 |
(* ********************************************************************** *) |
|
250 |
||
251 |
lemma AC4_AC5: "AC4 ==> AC5" |
|
252 |
apply (unfold range_def AC4_def AC5_def) |
|
253 |
apply (intro allI ballI) |
|
254 |
apply (elim allE impE) |
|
255 |
apply (erule fun_is_rel [THEN converse_type]) |
|
256 |
apply (erule exE) |
|
257 |
apply (rename_tac g) |
|
258 |
apply (rule_tac x=g in bexI) |
|
259 |
apply (blast dest: apply_equality range_type) |
|
260 |
apply (blast intro: Pi_type dest: apply_type fun_is_rel) |
|
261 |
done |
|
262 |
||
263 |
||
264 |
(* ********************************************************************** *) |
|
265 |
(* AC5 ==> AC4, Rubin & Rubin, p. 11 *) |
|
266 |
(* ********************************************************************** *) |
|
267 |
||
13535 | 268 |
lemma AC5_AC4_aux1: "R \<subseteq> A*B ==> (\<lambda>x \<in> R. fst(x)) \<in> R -> A" |
12776 | 269 |
by (fast intro!: lam_type fst_type) |
270 |
||
13535 | 271 |
lemma AC5_AC4_aux2: "R \<subseteq> A*B ==> range(\<lambda>x \<in> R. fst(x)) = domain(R)" |
12776 | 272 |
by (unfold lam_def, force) |
273 |
||
13535 | 274 |
lemma AC5_AC4_aux3: "[| \<exists>f \<in> A->C. P(f,domain(f)); A=B |] ==> \<exists>f \<in> B->C. P(f,B)" |
12776 | 275 |
apply (erule bexE) |
276 |
apply (frule domain_of_fun, fast) |
|
277 |
done |
|
278 |
||
13535 | 279 |
lemma AC5_AC4_aux4: "[| R \<subseteq> A*B; g \<in> C->R; \<forall>x \<in> C. (\<lambda>z \<in> R. fst(z))` (g`x) = x |] |
61980 | 280 |
==> (\<lambda>x \<in> C. snd(g`x)): (\<Prod>x \<in> C. R``{x})" |
12776 | 281 |
apply (rule lam_type) |
282 |
apply (force dest: apply_type) |
|
283 |
done |
|
284 |
||
285 |
lemma AC5_AC4: "AC5 ==> AC4" |
|
286 |
apply (unfold AC4_def AC5_def, clarify) |
|
287 |
apply (elim allE ballE) |
|
13535 | 288 |
apply (drule AC5_AC4_aux3 [OF _ AC5_AC4_aux2], assumption) |
289 |
apply (fast elim!: AC5_AC4_aux4) |
|
290 |
apply (blast intro: AC5_AC4_aux1) |
|
12776 | 291 |
done |
292 |
||
293 |
||
294 |
(* ********************************************************************** *) |
|
46822
95f1e700b712
mathematical symbols for Isabelle/ZF example theories
paulson
parents:
41777
diff
changeset
|
295 |
(* AC1 \<longleftrightarrow> AC6 *) |
12776 | 296 |
(* ********************************************************************** *) |
297 |
||
46822
95f1e700b712
mathematical symbols for Isabelle/ZF example theories
paulson
parents:
41777
diff
changeset
|
298 |
lemma AC1_iff_AC6: "AC1 \<longleftrightarrow> AC6" |
12776 | 299 |
by (unfold AC1_def AC6_def, blast) |
300 |
||
301 |
end |