author | haftmann |
Mon, 22 Sep 2008 13:56:03 +0200 | |
changeset 28314 | 053419cefd3c |
parent 27678 | 85ea2be46c71 |
child 32960 | 69916a850301 |
permissions | -rw-r--r-- |
1478 | 1 |
(* Title: ZF/AC/AC18_AC19.thy |
1123 | 2 |
ID: $Id$ |
1478 | 3 |
Author: Krzysztof Grabczewski |
1123 | 4 |
|
12776 | 5 |
The proof of AC1 ==> AC18 ==> AC19 ==> AC1 |
1123 | 6 |
*) |
7 |
||
27678 | 8 |
theory AC18_AC19 |
9 |
imports AC_Equiv |
|
10 |
begin |
|
12776 | 11 |
|
24893 | 12 |
definition |
13 |
uu :: "i => i" where |
|
12776 | 14 |
"uu(a) == {c Un {0}. c \<in> a}" |
15 |
||
16 |
||
17 |
(* ********************************************************************** *) |
|
18 |
(* AC1 ==> AC18 *) |
|
19 |
(* ********************************************************************** *) |
|
20 |
||
21 |
lemma PROD_subsets: |
|
14171
0cab06e3bbd0
Extended the notion of letter and digit, such that now one may use greek,
skalberg
parents:
13421
diff
changeset
|
22 |
"[| f \<in> (\<Pi> b \<in> {P(a). a \<in> A}. b); \<forall>a \<in> A. P(a)<=Q(a) |] |
0cab06e3bbd0
Extended the notion of letter and digit, such that now one may use greek,
skalberg
parents:
13421
diff
changeset
|
23 |
==> (\<lambda>a \<in> A. f`P(a)) \<in> (\<Pi> a \<in> A. Q(a))" |
12776 | 24 |
by (rule lam_type, drule apply_type, auto) |
25 |
||
26 |
lemma lemma_AC18: |
|
14171
0cab06e3bbd0
Extended the notion of letter and digit, such that now one may use greek,
skalberg
parents:
13421
diff
changeset
|
27 |
"[| \<forall>A. 0 \<notin> A --> (\<exists>f. f \<in> (\<Pi> X \<in> A. X)); A \<noteq> 0 |] |
12776 | 28 |
==> (\<Inter>a \<in> A. \<Union>b \<in> B(a). X(a, b)) \<subseteq> |
14171
0cab06e3bbd0
Extended the notion of letter and digit, such that now one may use greek,
skalberg
parents:
13421
diff
changeset
|
29 |
(\<Union>f \<in> \<Pi> a \<in> A. B(a). \<Inter>a \<in> A. X(a, f`a))" |
12776 | 30 |
apply (rule subsetI) |
31 |
apply (erule_tac x = "{{b \<in> B (a) . x \<in> X (a,b) }. a \<in> A}" in allE) |
|
32 |
apply (erule impE, fast) |
|
33 |
apply (erule exE) |
|
34 |
apply (rule UN_I) |
|
35 |
apply (fast elim!: PROD_subsets) |
|
36 |
apply (simp, fast elim!: not_emptyE dest: apply_type [OF _ RepFunI]) |
|
37 |
done |
|
38 |
||
13416 | 39 |
lemma AC1_AC18: "AC1 ==> PROP AC18" |
40 |
apply (unfold AC1_def) |
|
13421 | 41 |
apply (rule AC18.intro) |
12776 | 42 |
apply (fast elim!: lemma_AC18 apply_type intro!: equalityI INT_I UN_I) |
43 |
done |
|
44 |
||
45 |
(* ********************************************************************** *) |
|
46 |
(* AC18 ==> AC19 *) |
|
47 |
(* ********************************************************************** *) |
|
48 |
||
13416 | 49 |
theorem (in AC18) AC19 |
50 |
apply (unfold AC19_def) |
|
51 |
apply (intro allI impI) |
|
52 |
apply (rule AC18 [of _ "%x. x", THEN mp], blast) |
|
53 |
done |
|
1123 | 54 |
|
12776 | 55 |
(* ********************************************************************** *) |
56 |
(* AC19 ==> AC1 *) |
|
57 |
(* ********************************************************************** *) |
|
58 |
||
59 |
lemma RepRep_conj: |
|
60 |
"[| A \<noteq> 0; 0 \<notin> A |] ==> {uu(a). a \<in> A} \<noteq> 0 & 0 \<notin> {uu(a). a \<in> A}" |
|
61 |
apply (unfold uu_def, auto) |
|
62 |
apply (blast dest!: sym [THEN RepFun_eq_0_iff [THEN iffD1]]) |
|
63 |
done |
|
64 |
||
65 |
lemma lemma1_1: "[|c \<in> a; x = c Un {0}; x \<notin> a |] ==> x - {0} \<in> a" |
|
66 |
apply clarify |
|
12820 | 67 |
apply (rule subst_elem, assumption) |
12776 | 68 |
apply (fast elim: notE subst_elem) |
69 |
done |
|
70 |
||
71 |
lemma lemma1_2: |
|
14171
0cab06e3bbd0
Extended the notion of letter and digit, such that now one may use greek,
skalberg
parents:
13421
diff
changeset
|
72 |
"[| f`(uu(a)) \<notin> a; f \<in> (\<Pi> B \<in> {uu(a). a \<in> A}. B); a \<in> A |] |
12776 | 73 |
==> f`(uu(a))-{0} \<in> a" |
74 |
apply (unfold uu_def, fast elim!: lemma1_1 dest!: apply_type) |
|
75 |
done |
|
1123 | 76 |
|
14171
0cab06e3bbd0
Extended the notion of letter and digit, such that now one may use greek,
skalberg
parents:
13421
diff
changeset
|
77 |
lemma lemma1: "\<exists>f. f \<in> (\<Pi> B \<in> {uu(a). a \<in> A}. B) ==> \<exists>f. f \<in> (\<Pi> B \<in> A. B)" |
12776 | 78 |
apply (erule exE) |
79 |
apply (rule_tac x = "\<lambda>a\<in>A. if (f` (uu(a)) \<in> a, f` (uu(a)), f` (uu(a))-{0})" |
|
80 |
in exI) |
|
81 |
apply (rule lam_type) |
|
82 |
apply (simp add: lemma1_2) |
|
83 |
done |
|
84 |
||
85 |
lemma lemma2_1: "a\<noteq>0 ==> 0 \<in> (\<Union>b \<in> uu(a). b)" |
|
86 |
by (unfold uu_def, auto) |
|
87 |
||
88 |
lemma lemma2: "[| A\<noteq>0; 0\<notin>A |] ==> (\<Inter>x \<in> {uu(a). a \<in> A}. \<Union>b \<in> x. b) \<noteq> 0" |
|
89 |
apply (erule not_emptyE) |
|
13339
0f89104dd377
Fixed quantified variable name preservation for ball and bex (bounded quants)
paulson
parents:
12820
diff
changeset
|
90 |
apply (rule_tac a = 0 in not_emptyI) |
12776 | 91 |
apply (fast intro!: lemma2_1) |
92 |
done |
|
93 |
||
94 |
lemma AC19_AC1: "AC19 ==> AC1" |
|
95 |
apply (unfold AC19_def AC1_def, clarify) |
|
96 |
apply (case_tac "A=0", force) |
|
97 |
apply (erule_tac x = "{uu (a) . a \<in> A}" in allE) |
|
98 |
apply (erule impE) |
|
12820 | 99 |
apply (erule RepRep_conj, assumption) |
12776 | 100 |
apply (rule lemma1) |
12820 | 101 |
apply (drule lemma2, assumption, auto) |
12776 | 102 |
done |
1123 | 103 |
|
1203 | 104 |
end |