src/ZF/Cardinal_AC.thy
author paulson
Fri, 10 May 2002 22:50:08 +0200
changeset 13134 bf37a3049251
parent 1478 2b8c2a7547ab
child 13269 3ba9be497c33
permissions -rw-r--r--
converted the AC branch to Isar
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
1478
2b8c2a7547ab expanded tabs
clasohm
parents: 484
diff changeset
     1
(*  Title:      ZF/Cardinal_AC.thy
484
70b789956bd3 Axiom of choice, cardinality results, etc.
lcp
parents:
diff changeset
     2
    ID:         $Id$
1478
2b8c2a7547ab expanded tabs
clasohm
parents: 484
diff changeset
     3
    Author:     Lawrence C Paulson, Cambridge University Computer Laboratory
484
70b789956bd3 Axiom of choice, cardinality results, etc.
lcp
parents:
diff changeset
     4
    Copyright   1994  University of Cambridge
70b789956bd3 Axiom of choice, cardinality results, etc.
lcp
parents:
diff changeset
     5
70b789956bd3 Axiom of choice, cardinality results, etc.
lcp
parents:
diff changeset
     6
Cardinal Arithmetic WITH the Axiom of Choice
13134
bf37a3049251 converted the AC branch to Isar
paulson
parents: 1478
diff changeset
     7
bf37a3049251 converted the AC branch to Isar
paulson
parents: 1478
diff changeset
     8
These results help justify infinite-branching datatypes
484
70b789956bd3 Axiom of choice, cardinality results, etc.
lcp
parents:
diff changeset
     9
*)
70b789956bd3 Axiom of choice, cardinality results, etc.
lcp
parents:
diff changeset
    10
13134
bf37a3049251 converted the AC branch to Isar
paulson
parents: 1478
diff changeset
    11
theory Cardinal_AC = CardinalArith + Zorn:
bf37a3049251 converted the AC branch to Isar
paulson
parents: 1478
diff changeset
    12
bf37a3049251 converted the AC branch to Isar
paulson
parents: 1478
diff changeset
    13
(*** Strengthened versions of existing theorems about cardinals ***)
bf37a3049251 converted the AC branch to Isar
paulson
parents: 1478
diff changeset
    14
bf37a3049251 converted the AC branch to Isar
paulson
parents: 1478
diff changeset
    15
lemma cardinal_eqpoll: "|A| eqpoll A"
bf37a3049251 converted the AC branch to Isar
paulson
parents: 1478
diff changeset
    16
apply (rule AC_well_ord [THEN exE])
bf37a3049251 converted the AC branch to Isar
paulson
parents: 1478
diff changeset
    17
apply (erule well_ord_cardinal_eqpoll)
bf37a3049251 converted the AC branch to Isar
paulson
parents: 1478
diff changeset
    18
done
bf37a3049251 converted the AC branch to Isar
paulson
parents: 1478
diff changeset
    19
bf37a3049251 converted the AC branch to Isar
paulson
parents: 1478
diff changeset
    20
lemmas cardinal_idem = cardinal_eqpoll [THEN cardinal_cong, standard]
bf37a3049251 converted the AC branch to Isar
paulson
parents: 1478
diff changeset
    21
bf37a3049251 converted the AC branch to Isar
paulson
parents: 1478
diff changeset
    22
lemma cardinal_eqE: "|X| = |Y| ==> X eqpoll Y"
bf37a3049251 converted the AC branch to Isar
paulson
parents: 1478
diff changeset
    23
apply (rule AC_well_ord [THEN exE])
bf37a3049251 converted the AC branch to Isar
paulson
parents: 1478
diff changeset
    24
apply (rule AC_well_ord [THEN exE])
bf37a3049251 converted the AC branch to Isar
paulson
parents: 1478
diff changeset
    25
apply (rule well_ord_cardinal_eqE)
bf37a3049251 converted the AC branch to Isar
paulson
parents: 1478
diff changeset
    26
apply assumption+
bf37a3049251 converted the AC branch to Isar
paulson
parents: 1478
diff changeset
    27
done
bf37a3049251 converted the AC branch to Isar
paulson
parents: 1478
diff changeset
    28
bf37a3049251 converted the AC branch to Isar
paulson
parents: 1478
diff changeset
    29
lemma cardinal_eqpoll_iff: "|X| = |Y| <-> X eqpoll Y"
bf37a3049251 converted the AC branch to Isar
paulson
parents: 1478
diff changeset
    30
apply (blast intro: cardinal_cong cardinal_eqE)
bf37a3049251 converted the AC branch to Isar
paulson
parents: 1478
diff changeset
    31
done
bf37a3049251 converted the AC branch to Isar
paulson
parents: 1478
diff changeset
    32
bf37a3049251 converted the AC branch to Isar
paulson
parents: 1478
diff changeset
    33
lemma cardinal_disjoint_Un: "[| |A|=|B|;  |C|=|D|;  A Int C = 0;  B Int D = 0 |] ==>  
bf37a3049251 converted the AC branch to Isar
paulson
parents: 1478
diff changeset
    34
          |A Un C| = |B Un D|"
bf37a3049251 converted the AC branch to Isar
paulson
parents: 1478
diff changeset
    35
apply (simp add: cardinal_eqpoll_iff eqpoll_disjoint_Un)
bf37a3049251 converted the AC branch to Isar
paulson
parents: 1478
diff changeset
    36
done
bf37a3049251 converted the AC branch to Isar
paulson
parents: 1478
diff changeset
    37
bf37a3049251 converted the AC branch to Isar
paulson
parents: 1478
diff changeset
    38
lemma lepoll_imp_Card_le: "A lepoll B ==> |A| le |B|"
bf37a3049251 converted the AC branch to Isar
paulson
parents: 1478
diff changeset
    39
apply (rule AC_well_ord [THEN exE])
bf37a3049251 converted the AC branch to Isar
paulson
parents: 1478
diff changeset
    40
apply (erule well_ord_lepoll_imp_Card_le)
bf37a3049251 converted the AC branch to Isar
paulson
parents: 1478
diff changeset
    41
apply assumption
bf37a3049251 converted the AC branch to Isar
paulson
parents: 1478
diff changeset
    42
done
bf37a3049251 converted the AC branch to Isar
paulson
parents: 1478
diff changeset
    43
bf37a3049251 converted the AC branch to Isar
paulson
parents: 1478
diff changeset
    44
lemma cadd_assoc: "(i |+| j) |+| k = i |+| (j |+| k)"
bf37a3049251 converted the AC branch to Isar
paulson
parents: 1478
diff changeset
    45
apply (rule AC_well_ord [THEN exE])
bf37a3049251 converted the AC branch to Isar
paulson
parents: 1478
diff changeset
    46
apply (rule AC_well_ord [THEN exE])
bf37a3049251 converted the AC branch to Isar
paulson
parents: 1478
diff changeset
    47
apply (rule AC_well_ord [THEN exE])
bf37a3049251 converted the AC branch to Isar
paulson
parents: 1478
diff changeset
    48
apply (rule well_ord_cadd_assoc)
bf37a3049251 converted the AC branch to Isar
paulson
parents: 1478
diff changeset
    49
apply assumption+
bf37a3049251 converted the AC branch to Isar
paulson
parents: 1478
diff changeset
    50
done
bf37a3049251 converted the AC branch to Isar
paulson
parents: 1478
diff changeset
    51
bf37a3049251 converted the AC branch to Isar
paulson
parents: 1478
diff changeset
    52
lemma cmult_assoc: "(i |*| j) |*| k = i |*| (j |*| k)"
bf37a3049251 converted the AC branch to Isar
paulson
parents: 1478
diff changeset
    53
apply (rule AC_well_ord [THEN exE])
bf37a3049251 converted the AC branch to Isar
paulson
parents: 1478
diff changeset
    54
apply (rule AC_well_ord [THEN exE])
bf37a3049251 converted the AC branch to Isar
paulson
parents: 1478
diff changeset
    55
apply (rule AC_well_ord [THEN exE])
bf37a3049251 converted the AC branch to Isar
paulson
parents: 1478
diff changeset
    56
apply (rule well_ord_cmult_assoc)
bf37a3049251 converted the AC branch to Isar
paulson
parents: 1478
diff changeset
    57
apply assumption+
bf37a3049251 converted the AC branch to Isar
paulson
parents: 1478
diff changeset
    58
done
bf37a3049251 converted the AC branch to Isar
paulson
parents: 1478
diff changeset
    59
bf37a3049251 converted the AC branch to Isar
paulson
parents: 1478
diff changeset
    60
lemma cadd_cmult_distrib: "(i |+| j) |*| k = (i |*| k) |+| (j |*| k)"
bf37a3049251 converted the AC branch to Isar
paulson
parents: 1478
diff changeset
    61
apply (rule AC_well_ord [THEN exE])
bf37a3049251 converted the AC branch to Isar
paulson
parents: 1478
diff changeset
    62
apply (rule AC_well_ord [THEN exE])
bf37a3049251 converted the AC branch to Isar
paulson
parents: 1478
diff changeset
    63
apply (rule AC_well_ord [THEN exE])
bf37a3049251 converted the AC branch to Isar
paulson
parents: 1478
diff changeset
    64
apply (rule well_ord_cadd_cmult_distrib)
bf37a3049251 converted the AC branch to Isar
paulson
parents: 1478
diff changeset
    65
apply assumption+
bf37a3049251 converted the AC branch to Isar
paulson
parents: 1478
diff changeset
    66
done
bf37a3049251 converted the AC branch to Isar
paulson
parents: 1478
diff changeset
    67
bf37a3049251 converted the AC branch to Isar
paulson
parents: 1478
diff changeset
    68
lemma InfCard_square_eq: "InfCard(|A|) ==> A*A eqpoll A"
bf37a3049251 converted the AC branch to Isar
paulson
parents: 1478
diff changeset
    69
apply (rule AC_well_ord [THEN exE])
bf37a3049251 converted the AC branch to Isar
paulson
parents: 1478
diff changeset
    70
apply (erule well_ord_InfCard_square_eq)
bf37a3049251 converted the AC branch to Isar
paulson
parents: 1478
diff changeset
    71
apply assumption
bf37a3049251 converted the AC branch to Isar
paulson
parents: 1478
diff changeset
    72
done
bf37a3049251 converted the AC branch to Isar
paulson
parents: 1478
diff changeset
    73
bf37a3049251 converted the AC branch to Isar
paulson
parents: 1478
diff changeset
    74
bf37a3049251 converted the AC branch to Isar
paulson
parents: 1478
diff changeset
    75
(*** Other applications of AC ***)
bf37a3049251 converted the AC branch to Isar
paulson
parents: 1478
diff changeset
    76
bf37a3049251 converted the AC branch to Isar
paulson
parents: 1478
diff changeset
    77
lemma Card_le_imp_lepoll: "|A| le |B| ==> A lepoll B"
bf37a3049251 converted the AC branch to Isar
paulson
parents: 1478
diff changeset
    78
apply (rule cardinal_eqpoll
bf37a3049251 converted the AC branch to Isar
paulson
parents: 1478
diff changeset
    79
              [THEN eqpoll_sym, THEN eqpoll_imp_lepoll, THEN lepoll_trans])
bf37a3049251 converted the AC branch to Isar
paulson
parents: 1478
diff changeset
    80
apply (erule le_imp_subset [THEN subset_imp_lepoll, THEN lepoll_trans])
bf37a3049251 converted the AC branch to Isar
paulson
parents: 1478
diff changeset
    81
apply (rule cardinal_eqpoll [THEN eqpoll_imp_lepoll])
bf37a3049251 converted the AC branch to Isar
paulson
parents: 1478
diff changeset
    82
done
bf37a3049251 converted the AC branch to Isar
paulson
parents: 1478
diff changeset
    83
bf37a3049251 converted the AC branch to Isar
paulson
parents: 1478
diff changeset
    84
lemma le_Card_iff: "Card(K) ==> |A| le K <-> A lepoll K"
bf37a3049251 converted the AC branch to Isar
paulson
parents: 1478
diff changeset
    85
apply (erule Card_cardinal_eq [THEN subst], rule iffI, 
bf37a3049251 converted the AC branch to Isar
paulson
parents: 1478
diff changeset
    86
       erule Card_le_imp_lepoll);
bf37a3049251 converted the AC branch to Isar
paulson
parents: 1478
diff changeset
    87
apply (erule lepoll_imp_Card_le) 
bf37a3049251 converted the AC branch to Isar
paulson
parents: 1478
diff changeset
    88
done
bf37a3049251 converted the AC branch to Isar
paulson
parents: 1478
diff changeset
    89
bf37a3049251 converted the AC branch to Isar
paulson
parents: 1478
diff changeset
    90
lemma surj_implies_inj: "f: surj(X,Y) ==> EX g. g: inj(Y,X)"
bf37a3049251 converted the AC branch to Isar
paulson
parents: 1478
diff changeset
    91
apply (unfold surj_def)
bf37a3049251 converted the AC branch to Isar
paulson
parents: 1478
diff changeset
    92
apply (erule CollectE)
bf37a3049251 converted the AC branch to Isar
paulson
parents: 1478
diff changeset
    93
apply (rule_tac A1 = "Y" and B1 = "%y. f-``{y}" in AC_Pi [THEN exE])
bf37a3049251 converted the AC branch to Isar
paulson
parents: 1478
diff changeset
    94
apply (fast elim!: apply_Pair)
bf37a3049251 converted the AC branch to Isar
paulson
parents: 1478
diff changeset
    95
apply (blast dest: apply_type Pi_memberD intro: apply_equality Pi_type f_imp_injective)
bf37a3049251 converted the AC branch to Isar
paulson
parents: 1478
diff changeset
    96
done
bf37a3049251 converted the AC branch to Isar
paulson
parents: 1478
diff changeset
    97
bf37a3049251 converted the AC branch to Isar
paulson
parents: 1478
diff changeset
    98
(*Kunen's Lemma 10.20*)
bf37a3049251 converted the AC branch to Isar
paulson
parents: 1478
diff changeset
    99
lemma surj_implies_cardinal_le: "f: surj(X,Y) ==> |Y| le |X|"
bf37a3049251 converted the AC branch to Isar
paulson
parents: 1478
diff changeset
   100
apply (rule lepoll_imp_Card_le)
bf37a3049251 converted the AC branch to Isar
paulson
parents: 1478
diff changeset
   101
apply (erule surj_implies_inj [THEN exE])
bf37a3049251 converted the AC branch to Isar
paulson
parents: 1478
diff changeset
   102
apply (unfold lepoll_def)
bf37a3049251 converted the AC branch to Isar
paulson
parents: 1478
diff changeset
   103
apply (erule exI)
bf37a3049251 converted the AC branch to Isar
paulson
parents: 1478
diff changeset
   104
done
bf37a3049251 converted the AC branch to Isar
paulson
parents: 1478
diff changeset
   105
bf37a3049251 converted the AC branch to Isar
paulson
parents: 1478
diff changeset
   106
(*Kunen's Lemma 10.21*)
bf37a3049251 converted the AC branch to Isar
paulson
parents: 1478
diff changeset
   107
lemma cardinal_UN_le: "[| InfCard(K);  ALL i:K. |X(i)| le K |] ==> |UN i:K. X(i)| le K"
bf37a3049251 converted the AC branch to Isar
paulson
parents: 1478
diff changeset
   108
apply (simp add: InfCard_is_Card le_Card_iff)
bf37a3049251 converted the AC branch to Isar
paulson
parents: 1478
diff changeset
   109
apply (rule lepoll_trans)
bf37a3049251 converted the AC branch to Isar
paulson
parents: 1478
diff changeset
   110
 prefer 2
bf37a3049251 converted the AC branch to Isar
paulson
parents: 1478
diff changeset
   111
 apply (rule InfCard_square_eq [THEN eqpoll_imp_lepoll])
bf37a3049251 converted the AC branch to Isar
paulson
parents: 1478
diff changeset
   112
 apply (simp add: InfCard_is_Card Card_cardinal_eq)
bf37a3049251 converted the AC branch to Isar
paulson
parents: 1478
diff changeset
   113
apply (unfold lepoll_def)
bf37a3049251 converted the AC branch to Isar
paulson
parents: 1478
diff changeset
   114
apply (frule InfCard_is_Card [THEN Card_is_Ord])
bf37a3049251 converted the AC branch to Isar
paulson
parents: 1478
diff changeset
   115
apply (erule AC_ball_Pi [THEN exE])
bf37a3049251 converted the AC branch to Isar
paulson
parents: 1478
diff changeset
   116
apply (rule exI)
bf37a3049251 converted the AC branch to Isar
paulson
parents: 1478
diff changeset
   117
(*Lemma needed in both subgoals, for a fixed z*)
bf37a3049251 converted the AC branch to Isar
paulson
parents: 1478
diff changeset
   118
apply (subgoal_tac "ALL z: (UN i:K. X (i)). z: X (LEAST i. z:X (i)) & (LEAST i. z:X (i)) : K")
bf37a3049251 converted the AC branch to Isar
paulson
parents: 1478
diff changeset
   119
 prefer 2
bf37a3049251 converted the AC branch to Isar
paulson
parents: 1478
diff changeset
   120
 apply (fast intro!: Least_le [THEN lt_trans1, THEN ltD] ltI
bf37a3049251 converted the AC branch to Isar
paulson
parents: 1478
diff changeset
   121
             elim!: LeastI Ord_in_Ord)
bf37a3049251 converted the AC branch to Isar
paulson
parents: 1478
diff changeset
   122
apply (rule_tac c = "%z. <LEAST i. z:X (i) , f ` (LEAST i. z:X (i)) ` z>" 
bf37a3049251 converted the AC branch to Isar
paulson
parents: 1478
diff changeset
   123
            and d = "%<i,j>. converse (f`i) ` j" in lam_injective)
bf37a3049251 converted the AC branch to Isar
paulson
parents: 1478
diff changeset
   124
(*Instantiate the lemma proved above*)
bf37a3049251 converted the AC branch to Isar
paulson
parents: 1478
diff changeset
   125
apply (blast intro: inj_is_fun [THEN apply_type] dest: apply_type)
bf37a3049251 converted the AC branch to Isar
paulson
parents: 1478
diff changeset
   126
apply (force ); 
bf37a3049251 converted the AC branch to Isar
paulson
parents: 1478
diff changeset
   127
done
bf37a3049251 converted the AC branch to Isar
paulson
parents: 1478
diff changeset
   128
bf37a3049251 converted the AC branch to Isar
paulson
parents: 1478
diff changeset
   129
bf37a3049251 converted the AC branch to Isar
paulson
parents: 1478
diff changeset
   130
(*The same again, using csucc*)
bf37a3049251 converted the AC branch to Isar
paulson
parents: 1478
diff changeset
   131
lemma cardinal_UN_lt_csucc:
bf37a3049251 converted the AC branch to Isar
paulson
parents: 1478
diff changeset
   132
     "[| InfCard(K);  ALL i:K. |X(i)| < csucc(K) |]
bf37a3049251 converted the AC branch to Isar
paulson
parents: 1478
diff changeset
   133
      ==> |UN i:K. X(i)| < csucc(K)"
bf37a3049251 converted the AC branch to Isar
paulson
parents: 1478
diff changeset
   134
apply (simp add: Card_lt_csucc_iff cardinal_UN_le InfCard_is_Card Card_cardinal)
bf37a3049251 converted the AC branch to Isar
paulson
parents: 1478
diff changeset
   135
done
bf37a3049251 converted the AC branch to Isar
paulson
parents: 1478
diff changeset
   136
bf37a3049251 converted the AC branch to Isar
paulson
parents: 1478
diff changeset
   137
(*The same again, for a union of ordinals.  In use, j(i) is a bit like rank(i),
bf37a3049251 converted the AC branch to Isar
paulson
parents: 1478
diff changeset
   138
  the least ordinal j such that i:Vfrom(A,j). *)
bf37a3049251 converted the AC branch to Isar
paulson
parents: 1478
diff changeset
   139
lemma cardinal_UN_Ord_lt_csucc:
bf37a3049251 converted the AC branch to Isar
paulson
parents: 1478
diff changeset
   140
     "[| InfCard(K);  ALL i:K. j(i) < csucc(K) |]
bf37a3049251 converted the AC branch to Isar
paulson
parents: 1478
diff changeset
   141
      ==> (UN i:K. j(i)) < csucc(K)"
bf37a3049251 converted the AC branch to Isar
paulson
parents: 1478
diff changeset
   142
apply (rule cardinal_UN_lt_csucc [THEN Card_lt_imp_lt])
bf37a3049251 converted the AC branch to Isar
paulson
parents: 1478
diff changeset
   143
apply assumption
bf37a3049251 converted the AC branch to Isar
paulson
parents: 1478
diff changeset
   144
apply (blast intro: Ord_cardinal_le [THEN lt_trans1] elim: ltE)
bf37a3049251 converted the AC branch to Isar
paulson
parents: 1478
diff changeset
   145
apply (blast intro!: Ord_UN elim: ltE)
bf37a3049251 converted the AC branch to Isar
paulson
parents: 1478
diff changeset
   146
apply (erule InfCard_is_Card [THEN Card_is_Ord, THEN Card_csucc])
bf37a3049251 converted the AC branch to Isar
paulson
parents: 1478
diff changeset
   147
done
bf37a3049251 converted the AC branch to Isar
paulson
parents: 1478
diff changeset
   148
bf37a3049251 converted the AC branch to Isar
paulson
parents: 1478
diff changeset
   149
bf37a3049251 converted the AC branch to Isar
paulson
parents: 1478
diff changeset
   150
(** Main result for infinite-branching datatypes.  As above, but the index
bf37a3049251 converted the AC branch to Isar
paulson
parents: 1478
diff changeset
   151
    set need not be a cardinal.  Surprisingly complicated proof!
bf37a3049251 converted the AC branch to Isar
paulson
parents: 1478
diff changeset
   152
**)
bf37a3049251 converted the AC branch to Isar
paulson
parents: 1478
diff changeset
   153
bf37a3049251 converted the AC branch to Isar
paulson
parents: 1478
diff changeset
   154
(*Work backwards along the injection from W into K, given that W~=0.*)
bf37a3049251 converted the AC branch to Isar
paulson
parents: 1478
diff changeset
   155
lemma inj_UN_subset:
bf37a3049251 converted the AC branch to Isar
paulson
parents: 1478
diff changeset
   156
     "[| f: inj(A,B);  a:A |] ==>            
bf37a3049251 converted the AC branch to Isar
paulson
parents: 1478
diff changeset
   157
      (UN x:A. C(x)) <= (UN y:B. C(if y: range(f) then converse(f)`y else a))"
bf37a3049251 converted the AC branch to Isar
paulson
parents: 1478
diff changeset
   158
apply (rule UN_least)
bf37a3049251 converted the AC branch to Isar
paulson
parents: 1478
diff changeset
   159
apply (rule_tac x1= "f`x" in subset_trans [OF _ UN_upper])
bf37a3049251 converted the AC branch to Isar
paulson
parents: 1478
diff changeset
   160
 apply (simp add: inj_is_fun [THEN apply_rangeI])
bf37a3049251 converted the AC branch to Isar
paulson
parents: 1478
diff changeset
   161
apply (blast intro: inj_is_fun [THEN apply_type])
bf37a3049251 converted the AC branch to Isar
paulson
parents: 1478
diff changeset
   162
done
bf37a3049251 converted the AC branch to Isar
paulson
parents: 1478
diff changeset
   163
bf37a3049251 converted the AC branch to Isar
paulson
parents: 1478
diff changeset
   164
(*Simpler to require |W|=K; we'd have a bijection; but the theorem would
bf37a3049251 converted the AC branch to Isar
paulson
parents: 1478
diff changeset
   165
  be weaker.*)
bf37a3049251 converted the AC branch to Isar
paulson
parents: 1478
diff changeset
   166
lemma le_UN_Ord_lt_csucc:
bf37a3049251 converted the AC branch to Isar
paulson
parents: 1478
diff changeset
   167
     "[| InfCard(K);  |W| le K;  ALL w:W. j(w) < csucc(K) |]
bf37a3049251 converted the AC branch to Isar
paulson
parents: 1478
diff changeset
   168
      ==> (UN w:W. j(w)) < csucc(K)"
bf37a3049251 converted the AC branch to Isar
paulson
parents: 1478
diff changeset
   169
apply (case_tac "W=0")
bf37a3049251 converted the AC branch to Isar
paulson
parents: 1478
diff changeset
   170
(*solve the easy 0 case*)
bf37a3049251 converted the AC branch to Isar
paulson
parents: 1478
diff changeset
   171
 apply (simp add: InfCard_is_Card Card_is_Ord [THEN Card_csucc] 
bf37a3049251 converted the AC branch to Isar
paulson
parents: 1478
diff changeset
   172
                  Card_is_Ord Ord_0_lt_csucc)
bf37a3049251 converted the AC branch to Isar
paulson
parents: 1478
diff changeset
   173
apply (simp add: InfCard_is_Card le_Card_iff lepoll_def)
bf37a3049251 converted the AC branch to Isar
paulson
parents: 1478
diff changeset
   174
apply (safe intro!: equalityI)
bf37a3049251 converted the AC branch to Isar
paulson
parents: 1478
diff changeset
   175
apply (erule swap); 
bf37a3049251 converted the AC branch to Isar
paulson
parents: 1478
diff changeset
   176
apply (rule lt_subset_trans [OF inj_UN_subset cardinal_UN_Ord_lt_csucc])
bf37a3049251 converted the AC branch to Isar
paulson
parents: 1478
diff changeset
   177
apply assumption+
bf37a3049251 converted the AC branch to Isar
paulson
parents: 1478
diff changeset
   178
 apply (simp add: inj_converse_fun [THEN apply_type])
bf37a3049251 converted the AC branch to Isar
paulson
parents: 1478
diff changeset
   179
apply (blast intro!: Ord_UN elim: ltE)
bf37a3049251 converted the AC branch to Isar
paulson
parents: 1478
diff changeset
   180
done
bf37a3049251 converted the AC branch to Isar
paulson
parents: 1478
diff changeset
   181
bf37a3049251 converted the AC branch to Isar
paulson
parents: 1478
diff changeset
   182
end
bf37a3049251 converted the AC branch to Isar
paulson
parents: 1478
diff changeset
   183