src/ZF/AC/WO1_AC.ML
author paulson
Thu, 10 Sep 1998 17:42:44 +0200
changeset 5470 855654b691db
parent 5265 9d1d4c43c76d
child 6112 5e4871c5136b
permissions -rw-r--r--
eliminated equals0E
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
1461
6bcb44e4d6e5 expanded tabs
clasohm
parents: 1208
diff changeset
     1
(*  Title:      ZF/AC/WO1_AC.ML
1196
d43c1f7a53fe Numerous small improvements by KG and LCP
lcp
parents:
diff changeset
     2
    ID:         $Id$
1461
6bcb44e4d6e5 expanded tabs
clasohm
parents: 1208
diff changeset
     3
    Author:     Krzysztof Grabczewski
1196
d43c1f7a53fe Numerous small improvements by KG and LCP
lcp
parents:
diff changeset
     4
d43c1f7a53fe Numerous small improvements by KG and LCP
lcp
parents:
diff changeset
     5
The proofs of WO1 ==> AC1 and WO1 ==> AC10(n) for n >= 1
d43c1f7a53fe Numerous small improvements by KG and LCP
lcp
parents:
diff changeset
     6
d43c1f7a53fe Numerous small improvements by KG and LCP
lcp
parents:
diff changeset
     7
The latter proof is referred to as clear by the Rubins.
d43c1f7a53fe Numerous small improvements by KG and LCP
lcp
parents:
diff changeset
     8
However it seems to be quite complicated.
d43c1f7a53fe Numerous small improvements by KG and LCP
lcp
parents:
diff changeset
     9
The formal proof presented below is a mechanisation of the proof 
d43c1f7a53fe Numerous small improvements by KG and LCP
lcp
parents:
diff changeset
    10
by Lawrence C. Paulson which is the following:
d43c1f7a53fe Numerous small improvements by KG and LCP
lcp
parents:
diff changeset
    11
d43c1f7a53fe Numerous small improvements by KG and LCP
lcp
parents:
diff changeset
    12
Assume WO1.  Let s be a set of infinite sets.
d43c1f7a53fe Numerous small improvements by KG and LCP
lcp
parents:
diff changeset
    13
 
d43c1f7a53fe Numerous small improvements by KG and LCP
lcp
parents:
diff changeset
    14
Suppose x:s.  Then x is equipollent to |x| (by WO1), an infinite cardinal; 
d43c1f7a53fe Numerous small improvements by KG and LCP
lcp
parents:
diff changeset
    15
call it K.  Since K = K |+| K = |K+K| (by InfCard_cdouble_eq) there is an 
d43c1f7a53fe Numerous small improvements by KG and LCP
lcp
parents:
diff changeset
    16
isomorphism h: bij(K+K, x).  (Here + means disjoint sum.)
d43c1f7a53fe Numerous small improvements by KG and LCP
lcp
parents:
diff changeset
    17
 
d43c1f7a53fe Numerous small improvements by KG and LCP
lcp
parents:
diff changeset
    18
So there is a partition of x into 2-element sets, namely
d43c1f7a53fe Numerous small improvements by KG and LCP
lcp
parents:
diff changeset
    19
 
d43c1f7a53fe Numerous small improvements by KG and LCP
lcp
parents:
diff changeset
    20
        {{h(Inl(i)), h(Inr(i))} . i:K}
d43c1f7a53fe Numerous small improvements by KG and LCP
lcp
parents:
diff changeset
    21
 
d43c1f7a53fe Numerous small improvements by KG and LCP
lcp
parents:
diff changeset
    22
So for all x:s the desired partition exists.  By AC1 (which follows from WO1) 
d43c1f7a53fe Numerous small improvements by KG and LCP
lcp
parents:
diff changeset
    23
there exists a function f that chooses a partition for each x:s.  Therefore we 
d43c1f7a53fe Numerous small improvements by KG and LCP
lcp
parents:
diff changeset
    24
have AC10(2).
d43c1f7a53fe Numerous small improvements by KG and LCP
lcp
parents:
diff changeset
    25
d43c1f7a53fe Numerous small improvements by KG and LCP
lcp
parents:
diff changeset
    26
*)
d43c1f7a53fe Numerous small improvements by KG and LCP
lcp
parents:
diff changeset
    27
d43c1f7a53fe Numerous small improvements by KG and LCP
lcp
parents:
diff changeset
    28
open WO1_AC;
d43c1f7a53fe Numerous small improvements by KG and LCP
lcp
parents:
diff changeset
    29
d43c1f7a53fe Numerous small improvements by KG and LCP
lcp
parents:
diff changeset
    30
(* ********************************************************************** *)
1461
6bcb44e4d6e5 expanded tabs
clasohm
parents: 1208
diff changeset
    31
(* WO1 ==> AC1                                                            *)
1196
d43c1f7a53fe Numerous small improvements by KG and LCP
lcp
parents:
diff changeset
    32
(* ********************************************************************** *)
d43c1f7a53fe Numerous small improvements by KG and LCP
lcp
parents:
diff changeset
    33
5147
825877190618 More tidying and removal of "\!\!... from Goal commands
paulson
parents: 5137
diff changeset
    34
Goalw [AC1_def, WO1_def] "WO1 ==> AC1";
4091
771b1f6422a8 isatool fixclasimp;
wenzelm
parents: 2496
diff changeset
    35
by (fast_tac (claset() addSEs [ex_choice_fun]) 1);
1196
d43c1f7a53fe Numerous small improvements by KG and LCP
lcp
parents:
diff changeset
    36
qed "WO1_AC1";
d43c1f7a53fe Numerous small improvements by KG and LCP
lcp
parents:
diff changeset
    37
d43c1f7a53fe Numerous small improvements by KG and LCP
lcp
parents:
diff changeset
    38
(* ********************************************************************** *)
1461
6bcb44e4d6e5 expanded tabs
clasohm
parents: 1208
diff changeset
    39
(* WO1 ==> AC10(n) (n >= 1)                                               *)
1196
d43c1f7a53fe Numerous small improvements by KG and LCP
lcp
parents:
diff changeset
    40
(* ********************************************************************** *)
d43c1f7a53fe Numerous small improvements by KG and LCP
lcp
parents:
diff changeset
    41
5137
60205b0de9b9 Huge tidy-up: removal of leading \!\!
paulson
parents: 5068
diff changeset
    42
Goalw [WO1_def] "[| WO1; ALL B:A. EX C:D(B). P(C,B) |]  \
1461
6bcb44e4d6e5 expanded tabs
clasohm
parents: 1208
diff changeset
    43
\               ==> EX f. ALL B:A. P(f`B,B)";
1196
d43c1f7a53fe Numerous small improvements by KG and LCP
lcp
parents:
diff changeset
    44
by (eres_inst_tac [("x","Union({{C:D(B). P(C,B)}. B:A})")] allE 1);
1208
bc3093616ba4 Ran expandshort and corrected spelling of Grabczewski
paulson
parents: 1196
diff changeset
    45
by (etac exE 1);
bc3093616ba4 Ran expandshort and corrected spelling of Grabczewski
paulson
parents: 1196
diff changeset
    46
by (dtac ex_choice_fun 1);
5265
9d1d4c43c76d Disjointness reasoning by AddEs [equals0E, sym RS equals0E]
paulson
parents: 5241
diff changeset
    47
by (Fast_tac 1);
1208
bc3093616ba4 Ran expandshort and corrected spelling of Grabczewski
paulson
parents: 1196
diff changeset
    48
by (etac exE 1);
1196
d43c1f7a53fe Numerous small improvements by KG and LCP
lcp
parents:
diff changeset
    49
by (res_inst_tac [("x","lam x:A. f`{C:D(x). P(C,x)}")] exI 1);
2469
b50b8c0eec01 Implicit simpsets and clasets for FOL and ZF
paulson
parents: 1461
diff changeset
    50
by (Asm_full_simp_tac 1);
5265
9d1d4c43c76d Disjointness reasoning by AddEs [equals0E, sym RS equals0E]
paulson
parents: 5241
diff changeset
    51
by (blast_tac (claset() addSDs [RepFunI RSN (2, apply_type)]) 1);
1196
d43c1f7a53fe Numerous small improvements by KG and LCP
lcp
parents:
diff changeset
    52
val lemma1 = result();
d43c1f7a53fe Numerous small improvements by KG and LCP
lcp
parents:
diff changeset
    53
5137
60205b0de9b9 Huge tidy-up: removal of leading \!\!
paulson
parents: 5068
diff changeset
    54
Goalw [WO1_def] "[| ~Finite(B); WO1 |] ==> |B| + |B| eqpoll  B";
1208
bc3093616ba4 Ran expandshort and corrected spelling of Grabczewski
paulson
parents: 1196
diff changeset
    55
by (rtac eqpoll_trans 1);
4091
771b1f6422a8 isatool fixclasimp;
wenzelm
parents: 2496
diff changeset
    56
by (fast_tac (claset() addSEs [well_ord_cardinal_eqpoll]) 2);
1196
d43c1f7a53fe Numerous small improvements by KG and LCP
lcp
parents:
diff changeset
    57
by (resolve_tac [eqpoll_sym RS eqpoll_trans] 1);
4091
771b1f6422a8 isatool fixclasimp;
wenzelm
parents: 2496
diff changeset
    58
by (fast_tac (claset() addSEs [well_ord_cardinal_eqpoll]) 1);
1196
d43c1f7a53fe Numerous small improvements by KG and LCP
lcp
parents:
diff changeset
    59
by (resolve_tac [cadd_def RS def_imp_eq RS subst] 1);
d43c1f7a53fe Numerous small improvements by KG and LCP
lcp
parents:
diff changeset
    60
by (resolve_tac [Card_cardinal RSN (2, Inf_Card_is_InfCard) RS 
1461
6bcb44e4d6e5 expanded tabs
clasohm
parents: 1208
diff changeset
    61
                        InfCard_cdouble_eq RS ssubst] 1);
1208
bc3093616ba4 Ran expandshort and corrected spelling of Grabczewski
paulson
parents: 1196
diff changeset
    62
by (rtac eqpoll_refl 2);
bc3093616ba4 Ran expandshort and corrected spelling of Grabczewski
paulson
parents: 1196
diff changeset
    63
by (rtac notI 1);
bc3093616ba4 Ran expandshort and corrected spelling of Grabczewski
paulson
parents: 1196
diff changeset
    64
by (etac notE 1);
1196
d43c1f7a53fe Numerous small improvements by KG and LCP
lcp
parents:
diff changeset
    65
by (resolve_tac [eqpoll_sym RS eqpoll_imp_lepoll RS lepoll_Finite] 1
1461
6bcb44e4d6e5 expanded tabs
clasohm
parents: 1208
diff changeset
    66
        THEN (assume_tac 2));
4091
771b1f6422a8 isatool fixclasimp;
wenzelm
parents: 2496
diff changeset
    67
by (fast_tac (claset() addSEs [well_ord_cardinal_eqpoll]) 1);
1196
d43c1f7a53fe Numerous small improvements by KG and LCP
lcp
parents:
diff changeset
    68
val lemma2_1 = result();
d43c1f7a53fe Numerous small improvements by KG and LCP
lcp
parents:
diff changeset
    69
5137
60205b0de9b9 Huge tidy-up: removal of leading \!\!
paulson
parents: 5068
diff changeset
    70
Goal "f : bij(D+D, B) ==> {{f`Inl(i), f`Inr(i)}. i:D} : Pow(Pow(B))";
5241
e5129172cb2b Renamed equals0D to equals0E; tidied
paulson
parents: 5147
diff changeset
    71
by (fast_tac (claset() addSEs [bij_is_fun RS apply_type]) 1);
1196
d43c1f7a53fe Numerous small improvements by KG and LCP
lcp
parents:
diff changeset
    72
val lemma2_2 = result();
d43c1f7a53fe Numerous small improvements by KG and LCP
lcp
parents:
diff changeset
    73
5137
60205b0de9b9 Huge tidy-up: removal of leading \!\!
paulson
parents: 5068
diff changeset
    74
Goal "[| f:inj(A,B); f`a = f`b; a:A; b:A |] ==> a=b";
1208
bc3093616ba4 Ran expandshort and corrected spelling of Grabczewski
paulson
parents: 1196
diff changeset
    75
by (rtac inj_equality 1);
4091
771b1f6422a8 isatool fixclasimp;
wenzelm
parents: 2496
diff changeset
    76
by (TRYALL (fast_tac (claset() addSEs [inj_is_fun RS apply_Pair] addEs [subst])));
1196
d43c1f7a53fe Numerous small improvements by KG and LCP
lcp
parents:
diff changeset
    77
val lemma = result();
d43c1f7a53fe Numerous small improvements by KG and LCP
lcp
parents:
diff changeset
    78
5068
fb28eaa07e01 isatool fixgoal;
wenzelm
parents: 4091
diff changeset
    79
Goalw AC_aux_defs
5241
e5129172cb2b Renamed equals0D to equals0E; tidied
paulson
parents: 5147
diff changeset
    80
        "f : bij(D+D, B) ==> pairwise_disjoint({{f`Inl(i), f`Inr(i)}. i:D})";
e5129172cb2b Renamed equals0D to equals0E; tidied
paulson
parents: 5147
diff changeset
    81
by (blast_tac (claset() addDs [bij_is_inj RS lemma]) 1);
1196
d43c1f7a53fe Numerous small improvements by KG and LCP
lcp
parents:
diff changeset
    82
val lemma2_3 = result();
d43c1f7a53fe Numerous small improvements by KG and LCP
lcp
parents:
diff changeset
    83
d43c1f7a53fe Numerous small improvements by KG and LCP
lcp
parents:
diff changeset
    84
val [major, minor] = goalw thy AC_aux_defs 
1461
6bcb44e4d6e5 expanded tabs
clasohm
parents: 1208
diff changeset
    85
        "[| f : bij(D+D, B); 1 le n |] ==>  \
6bcb44e4d6e5 expanded tabs
clasohm
parents: 1208
diff changeset
    86
\       sets_of_size_between({{f`Inl(i), f`Inr(i)}. i:D}, 2, succ(n))";
1208
bc3093616ba4 Ran expandshort and corrected spelling of Grabczewski
paulson
parents: 1196
diff changeset
    87
by (rewtac succ_def);
5147
825877190618 More tidying and removal of "\!\!... from Goal commands
paulson
parents: 5137
diff changeset
    88
by (fast_tac (claset() 
5241
e5129172cb2b Renamed equals0D to equals0E; tidied
paulson
parents: 5147
diff changeset
    89
        addSIs [cons_lepoll_cong, minor, lepoll_refl] 
1461
6bcb44e4d6e5 expanded tabs
clasohm
parents: 1208
diff changeset
    90
        addIs [singleton_eqpoll_1 RS eqpoll_imp_lepoll RS lepoll_trans,
6bcb44e4d6e5 expanded tabs
clasohm
parents: 1208
diff changeset
    91
                le_imp_subset RS subset_imp_lepoll]
5241
e5129172cb2b Renamed equals0D to equals0E; tidied
paulson
parents: 5147
diff changeset
    92
        addDs [major RS bij_is_inj RS lemma]
e5129172cb2b Renamed equals0D to equals0E; tidied
paulson
parents: 5147
diff changeset
    93
        addSEs [mem_irrefl]) 1);
1196
d43c1f7a53fe Numerous small improvements by KG and LCP
lcp
parents:
diff changeset
    94
val lemma2_4 = result();
d43c1f7a53fe Numerous small improvements by KG and LCP
lcp
parents:
diff changeset
    95
5068
fb28eaa07e01 isatool fixgoal;
wenzelm
parents: 4091
diff changeset
    96
Goalw [bij_def, surj_def]
5147
825877190618 More tidying and removal of "\!\!... from Goal commands
paulson
parents: 5137
diff changeset
    97
        "f : bij(D+D, B) ==> Union({{f`Inl(i), f`Inr(i)}. i:D})=B";
4091
771b1f6422a8 isatool fixclasimp;
wenzelm
parents: 2496
diff changeset
    98
by (fast_tac (claset() addSEs [inj_is_fun RS apply_type]) 1);
1196
d43c1f7a53fe Numerous small improvements by KG and LCP
lcp
parents:
diff changeset
    99
val lemma2_5 = result();
d43c1f7a53fe Numerous small improvements by KG and LCP
lcp
parents:
diff changeset
   100
5137
60205b0de9b9 Huge tidy-up: removal of leading \!\!
paulson
parents: 5068
diff changeset
   101
Goal "[| WO1; ~Finite(B); 1 le n  |]  \
1461
6bcb44e4d6e5 expanded tabs
clasohm
parents: 1208
diff changeset
   102
\       ==> EX C:Pow(Pow(B)). pairwise_disjoint(C) &  \
6bcb44e4d6e5 expanded tabs
clasohm
parents: 1208
diff changeset
   103
\               sets_of_size_between(C, 2, succ(n)) &  \
6bcb44e4d6e5 expanded tabs
clasohm
parents: 1208
diff changeset
   104
\               Union(C)=B";
1196
d43c1f7a53fe Numerous small improvements by KG and LCP
lcp
parents:
diff changeset
   105
by (eresolve_tac [lemma2_1 RS (eqpoll_def RS def_imp_iff RS iffD1 RS exE)] 1
1461
6bcb44e4d6e5 expanded tabs
clasohm
parents: 1208
diff changeset
   106
        THEN (assume_tac 1));
1196
d43c1f7a53fe Numerous small improvements by KG and LCP
lcp
parents:
diff changeset
   107
by (fast_tac (FOL_cs addSIs [bexI]
1461
6bcb44e4d6e5 expanded tabs
clasohm
parents: 1208
diff changeset
   108
                addSEs [lemma2_2, lemma2_3, lemma2_4, lemma2_5]) 1);
1196
d43c1f7a53fe Numerous small improvements by KG and LCP
lcp
parents:
diff changeset
   109
val lemma2 = result();
d43c1f7a53fe Numerous small improvements by KG and LCP
lcp
parents:
diff changeset
   110
5137
60205b0de9b9 Huge tidy-up: removal of leading \!\!
paulson
parents: 5068
diff changeset
   111
Goalw AC_defs "[| WO1; 1 le n |] ==> AC10(n)";
4091
771b1f6422a8 isatool fixclasimp;
wenzelm
parents: 2496
diff changeset
   112
by (fast_tac (claset() addSIs [lemma1] addSEs [lemma2]) 1);
1196
d43c1f7a53fe Numerous small improvements by KG and LCP
lcp
parents:
diff changeset
   113
qed "WO1_AC10";