src/ZF/CardinalArith.thy
author paulson
Tue, 09 Jul 2002 23:05:26 +0200
changeset 13328 703de709a64b
parent 13269 3ba9be497c33
child 13356 c9cfe1638bf2
permissions -rw-r--r--
better document preparation
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
1478
2b8c2a7547ab expanded tabs
clasohm
parents: 1401
diff changeset
     1
(*  Title:      ZF/CardinalArith.thy
437
435875e4b21d modifications for cardinal arithmetic
lcp
parents:
diff changeset
     2
    ID:         $Id$
1478
2b8c2a7547ab expanded tabs
clasohm
parents: 1401
diff changeset
     3
    Author:     Lawrence C Paulson, Cambridge University Computer Laboratory
437
435875e4b21d modifications for cardinal arithmetic
lcp
parents:
diff changeset
     4
    Copyright   1994  University of Cambridge
435875e4b21d modifications for cardinal arithmetic
lcp
parents:
diff changeset
     5
13328
703de709a64b better document preparation
paulson
parents: 13269
diff changeset
     6
*)
13216
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
     7
13328
703de709a64b better document preparation
paulson
parents: 13269
diff changeset
     8
header{*Cardinal Arithmetic Without the Axiom of Choice*}
437
435875e4b21d modifications for cardinal arithmetic
lcp
parents:
diff changeset
     9
12667
7e6eaaa125f2 Added some simprules proofs.
paulson
parents: 12114
diff changeset
    10
theory CardinalArith = Cardinal + OrderArith + ArithSimp + Finite:
467
92868dab2939 new cardinal arithmetic developments
lcp
parents: 437
diff changeset
    11
12667
7e6eaaa125f2 Added some simprules proofs.
paulson
parents: 12114
diff changeset
    12
constdefs
437
435875e4b21d modifications for cardinal arithmetic
lcp
parents:
diff changeset
    13
12667
7e6eaaa125f2 Added some simprules proofs.
paulson
parents: 12114
diff changeset
    14
  InfCard       :: "i=>o"
7e6eaaa125f2 Added some simprules proofs.
paulson
parents: 12114
diff changeset
    15
    "InfCard(i) == Card(i) & nat le i"
437
435875e4b21d modifications for cardinal arithmetic
lcp
parents:
diff changeset
    16
12667
7e6eaaa125f2 Added some simprules proofs.
paulson
parents: 12114
diff changeset
    17
  cmult         :: "[i,i]=>i"       (infixl "|*|" 70)
7e6eaaa125f2 Added some simprules proofs.
paulson
parents: 12114
diff changeset
    18
    "i |*| j == |i*j|"
7e6eaaa125f2 Added some simprules proofs.
paulson
parents: 12114
diff changeset
    19
  
7e6eaaa125f2 Added some simprules proofs.
paulson
parents: 12114
diff changeset
    20
  cadd          :: "[i,i]=>i"       (infixl "|+|" 65)
7e6eaaa125f2 Added some simprules proofs.
paulson
parents: 12114
diff changeset
    21
    "i |+| j == |i+j|"
437
435875e4b21d modifications for cardinal arithmetic
lcp
parents:
diff changeset
    22
12667
7e6eaaa125f2 Added some simprules proofs.
paulson
parents: 12114
diff changeset
    23
  csquare_rel   :: "i=>i"
7e6eaaa125f2 Added some simprules proofs.
paulson
parents: 12114
diff changeset
    24
    "csquare_rel(K) ==   
7e6eaaa125f2 Added some simprules proofs.
paulson
parents: 12114
diff changeset
    25
	  rvimage(K*K,   
7e6eaaa125f2 Added some simprules proofs.
paulson
parents: 12114
diff changeset
    26
		  lam <x,y>:K*K. <x Un y, x, y>, 
7e6eaaa125f2 Added some simprules proofs.
paulson
parents: 12114
diff changeset
    27
		  rmult(K,Memrel(K), K*K, rmult(K,Memrel(K), K,Memrel(K))))"
437
435875e4b21d modifications for cardinal arithmetic
lcp
parents:
diff changeset
    28
484
70b789956bd3 Axiom of choice, cardinality results, etc.
lcp
parents: 467
diff changeset
    29
  (*This def is more complex than Kunen's but it more easily proved to
70b789956bd3 Axiom of choice, cardinality results, etc.
lcp
parents: 467
diff changeset
    30
    be a cardinal*)
12667
7e6eaaa125f2 Added some simprules proofs.
paulson
parents: 12114
diff changeset
    31
  jump_cardinal :: "i=>i"
7e6eaaa125f2 Added some simprules proofs.
paulson
parents: 12114
diff changeset
    32
    "jump_cardinal(K) ==   
1155
928a16e02f9f removed \...\ inside strings
clasohm
parents: 1091
diff changeset
    33
         UN X:Pow(K). {z. r: Pow(K*K), well_ord(X,r) & z = ordertype(X,r)}"
12667
7e6eaaa125f2 Added some simprules proofs.
paulson
parents: 12114
diff changeset
    34
  
484
70b789956bd3 Axiom of choice, cardinality results, etc.
lcp
parents: 467
diff changeset
    35
  (*needed because jump_cardinal(K) might not be the successor of K*)
12667
7e6eaaa125f2 Added some simprules proofs.
paulson
parents: 12114
diff changeset
    36
  csucc         :: "i=>i"
7e6eaaa125f2 Added some simprules proofs.
paulson
parents: 12114
diff changeset
    37
    "csucc(K) == LEAST L. Card(L) & K<L"
484
70b789956bd3 Axiom of choice, cardinality results, etc.
lcp
parents: 467
diff changeset
    38
12114
a8e860c86252 eliminated old "symbols" syntax, use "xsymbols" instead;
wenzelm
parents: 9964
diff changeset
    39
syntax (xsymbols)
12667
7e6eaaa125f2 Added some simprules proofs.
paulson
parents: 12114
diff changeset
    40
  "op |+|"     :: "[i,i] => i"          (infixl "\<oplus>" 65)
7e6eaaa125f2 Added some simprules proofs.
paulson
parents: 12114
diff changeset
    41
  "op |*|"     :: "[i,i] => i"          (infixl "\<otimes>" 70)
7e6eaaa125f2 Added some simprules proofs.
paulson
parents: 12114
diff changeset
    42
7e6eaaa125f2 Added some simprules proofs.
paulson
parents: 12114
diff changeset
    43
7e6eaaa125f2 Added some simprules proofs.
paulson
parents: 12114
diff changeset
    44
lemma Card_Union [simp,intro,TC]: "(ALL x:A. Card(x)) ==> Card(Union(A))"
7e6eaaa125f2 Added some simprules proofs.
paulson
parents: 12114
diff changeset
    45
apply (rule CardI) 
7e6eaaa125f2 Added some simprules proofs.
paulson
parents: 12114
diff changeset
    46
 apply (simp add: Card_is_Ord) 
7e6eaaa125f2 Added some simprules proofs.
paulson
parents: 12114
diff changeset
    47
apply (clarify dest!: ltD)
7e6eaaa125f2 Added some simprules proofs.
paulson
parents: 12114
diff changeset
    48
apply (drule bspec, assumption) 
7e6eaaa125f2 Added some simprules proofs.
paulson
parents: 12114
diff changeset
    49
apply (frule lt_Card_imp_lesspoll, blast intro: ltI Card_is_Ord) 
7e6eaaa125f2 Added some simprules proofs.
paulson
parents: 12114
diff changeset
    50
apply (drule eqpoll_sym [THEN eqpoll_imp_lepoll])
7e6eaaa125f2 Added some simprules proofs.
paulson
parents: 12114
diff changeset
    51
apply (drule lesspoll_trans1, assumption) 
13216
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
    52
apply (subgoal_tac "B \<lesssim> \<Union>A")
12667
7e6eaaa125f2 Added some simprules proofs.
paulson
parents: 12114
diff changeset
    53
 apply (drule lesspoll_trans1, assumption, blast) 
7e6eaaa125f2 Added some simprules proofs.
paulson
parents: 12114
diff changeset
    54
apply (blast intro: subset_imp_lepoll) 
7e6eaaa125f2 Added some simprules proofs.
paulson
parents: 12114
diff changeset
    55
done
7e6eaaa125f2 Added some simprules proofs.
paulson
parents: 12114
diff changeset
    56
7e6eaaa125f2 Added some simprules proofs.
paulson
parents: 12114
diff changeset
    57
lemma Card_UN:
7e6eaaa125f2 Added some simprules proofs.
paulson
parents: 12114
diff changeset
    58
     "(!!x. x:A ==> Card(K(x))) ==> Card(UN x:A. K(x))" 
7e6eaaa125f2 Added some simprules proofs.
paulson
parents: 12114
diff changeset
    59
by (blast intro: Card_Union) 
7e6eaaa125f2 Added some simprules proofs.
paulson
parents: 12114
diff changeset
    60
7e6eaaa125f2 Added some simprules proofs.
paulson
parents: 12114
diff changeset
    61
lemma Card_OUN [simp,intro,TC]:
7e6eaaa125f2 Added some simprules proofs.
paulson
parents: 12114
diff changeset
    62
     "(!!x. x:A ==> Card(K(x))) ==> Card(UN x<A. K(x))"
7e6eaaa125f2 Added some simprules proofs.
paulson
parents: 12114
diff changeset
    63
by (simp add: OUnion_def Card_0) 
9654
9754ba005b64 X-symbols for ordinal, cardinal, integer arithmetic
paulson
parents: 9548
diff changeset
    64
12776
249600a63ba9 Isar version of AC
paulson
parents: 12667
diff changeset
    65
lemma n_lesspoll_nat: "n \<in> nat ==> n \<prec> nat"
249600a63ba9 Isar version of AC
paulson
parents: 12667
diff changeset
    66
apply (unfold lesspoll_def)
249600a63ba9 Isar version of AC
paulson
parents: 12667
diff changeset
    67
apply (rule conjI)
249600a63ba9 Isar version of AC
paulson
parents: 12667
diff changeset
    68
apply (erule OrdmemD [THEN subset_imp_lepoll], rule Ord_nat)
249600a63ba9 Isar version of AC
paulson
parents: 12667
diff changeset
    69
apply (rule notI)
249600a63ba9 Isar version of AC
paulson
parents: 12667
diff changeset
    70
apply (erule eqpollE)
249600a63ba9 Isar version of AC
paulson
parents: 12667
diff changeset
    71
apply (rule succ_lepoll_natE)
249600a63ba9 Isar version of AC
paulson
parents: 12667
diff changeset
    72
apply (blast intro: nat_succI [THEN OrdmemD, THEN subset_imp_lepoll] 
12820
02e2ff3e4d37 lexical tidying
paulson
parents: 12776
diff changeset
    73
                    lepoll_trans, assumption) 
12776
249600a63ba9 Isar version of AC
paulson
parents: 12667
diff changeset
    74
done
249600a63ba9 Isar version of AC
paulson
parents: 12667
diff changeset
    75
249600a63ba9 Isar version of AC
paulson
parents: 12667
diff changeset
    76
lemma in_Card_imp_lesspoll: "[| Card(K); b \<in> K |] ==> b \<prec> K"
249600a63ba9 Isar version of AC
paulson
parents: 12667
diff changeset
    77
apply (unfold lesspoll_def)
249600a63ba9 Isar version of AC
paulson
parents: 12667
diff changeset
    78
apply (simp add: Card_iff_initial)
249600a63ba9 Isar version of AC
paulson
parents: 12667
diff changeset
    79
apply (fast intro!: le_imp_lepoll ltI leI)
249600a63ba9 Isar version of AC
paulson
parents: 12667
diff changeset
    80
done
249600a63ba9 Isar version of AC
paulson
parents: 12667
diff changeset
    81
249600a63ba9 Isar version of AC
paulson
parents: 12667
diff changeset
    82
lemma lesspoll_lemma: 
249600a63ba9 Isar version of AC
paulson
parents: 12667
diff changeset
    83
        "[| ~ A \<prec> B; C \<prec> B |] ==> A - C \<noteq> 0"
249600a63ba9 Isar version of AC
paulson
parents: 12667
diff changeset
    84
apply (unfold lesspoll_def)
249600a63ba9 Isar version of AC
paulson
parents: 12667
diff changeset
    85
apply (fast dest!: Diff_eq_0_iff [THEN iffD1, THEN subset_imp_lepoll]
249600a63ba9 Isar version of AC
paulson
parents: 12667
diff changeset
    86
            intro!: eqpollI elim: notE 
249600a63ba9 Isar version of AC
paulson
parents: 12667
diff changeset
    87
            elim!: eqpollE lepoll_trans)
249600a63ba9 Isar version of AC
paulson
parents: 12667
diff changeset
    88
done
249600a63ba9 Isar version of AC
paulson
parents: 12667
diff changeset
    89
13216
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
    90
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
    91
(*** Cardinal addition ***)
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
    92
13328
703de709a64b better document preparation
paulson
parents: 13269
diff changeset
    93
text{*Note: Could omit proving the algebraic laws for cardinal addition and
703de709a64b better document preparation
paulson
parents: 13269
diff changeset
    94
multiplication.  On finite cardinals these operations coincide with
703de709a64b better document preparation
paulson
parents: 13269
diff changeset
    95
addition and multiplication of natural numbers; on infinite cardinals they
703de709a64b better document preparation
paulson
parents: 13269
diff changeset
    96
coincide with union (maximum).  Either way we get most laws for free.*}
703de709a64b better document preparation
paulson
parents: 13269
diff changeset
    97
13216
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
    98
(** Cardinal addition is commutative **)
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
    99
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   100
lemma sum_commute_eqpoll: "A+B \<approx> B+A"
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   101
apply (unfold eqpoll_def)
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   102
apply (rule exI)
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   103
apply (rule_tac c = "case(Inr,Inl)" and d = "case(Inr,Inl)" in lam_bijective)
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   104
apply auto
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   105
done
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   106
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   107
lemma cadd_commute: "i |+| j = j |+| i"
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   108
apply (unfold cadd_def)
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   109
apply (rule sum_commute_eqpoll [THEN cardinal_cong])
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   110
done
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   111
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   112
(** Cardinal addition is associative **)
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   113
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   114
lemma sum_assoc_eqpoll: "(A+B)+C \<approx> A+(B+C)"
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   115
apply (unfold eqpoll_def)
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   116
apply (rule exI)
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   117
apply (rule sum_assoc_bij)
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   118
done
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   119
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   120
(*Unconditional version requires AC*)
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   121
lemma well_ord_cadd_assoc: 
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   122
    "[| well_ord(i,ri); well_ord(j,rj); well_ord(k,rk) |]
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   123
     ==> (i |+| j) |+| k = i |+| (j |+| k)"
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   124
apply (unfold cadd_def)
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   125
apply (rule cardinal_cong)
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   126
apply (rule eqpoll_trans)
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   127
 apply (rule sum_eqpoll_cong [OF well_ord_cardinal_eqpoll eqpoll_refl])
13221
e29378f347e4 conversion of Cardinal, CardinalArith
paulson
parents: 13216
diff changeset
   128
 apply (blast intro: well_ord_radd ) 
13216
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   129
apply (rule sum_assoc_eqpoll [THEN eqpoll_trans])
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   130
apply (rule eqpoll_sym)
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   131
apply (rule sum_eqpoll_cong [OF eqpoll_refl well_ord_cardinal_eqpoll])
13221
e29378f347e4 conversion of Cardinal, CardinalArith
paulson
parents: 13216
diff changeset
   132
apply (blast intro: well_ord_radd ) 
13216
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   133
done
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   134
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   135
(** 0 is the identity for addition **)
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   136
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   137
lemma sum_0_eqpoll: "0+A \<approx> A"
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   138
apply (unfold eqpoll_def)
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   139
apply (rule exI)
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   140
apply (rule bij_0_sum)
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   141
done
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   142
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   143
lemma cadd_0 [simp]: "Card(K) ==> 0 |+| K = K"
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   144
apply (unfold cadd_def)
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   145
apply (simp add: sum_0_eqpoll [THEN cardinal_cong] Card_cardinal_eq)
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   146
done
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   147
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   148
(** Addition by another cardinal **)
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   149
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   150
lemma sum_lepoll_self: "A \<lesssim> A+B"
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   151
apply (unfold lepoll_def inj_def)
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   152
apply (rule_tac x = "lam x:A. Inl (x) " in exI)
13221
e29378f347e4 conversion of Cardinal, CardinalArith
paulson
parents: 13216
diff changeset
   153
apply simp
13216
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   154
done
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   155
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   156
(*Could probably weaken the premises to well_ord(K,r), or removing using AC*)
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   157
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   158
lemma cadd_le_self: 
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   159
    "[| Card(K);  Ord(L) |] ==> K le (K |+| L)"
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   160
apply (unfold cadd_def)
13221
e29378f347e4 conversion of Cardinal, CardinalArith
paulson
parents: 13216
diff changeset
   161
apply (rule le_trans [OF Card_cardinal_le well_ord_lepoll_imp_Card_le],
e29378f347e4 conversion of Cardinal, CardinalArith
paulson
parents: 13216
diff changeset
   162
       assumption)
13216
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   163
apply (rule_tac [2] sum_lepoll_self)
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   164
apply (blast intro: well_ord_radd well_ord_Memrel Card_is_Ord)
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   165
done
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   166
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   167
(** Monotonicity of addition **)
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   168
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   169
lemma sum_lepoll_mono: 
13221
e29378f347e4 conversion of Cardinal, CardinalArith
paulson
parents: 13216
diff changeset
   170
     "[| A \<lesssim> C;  B \<lesssim> D |] ==> A + B \<lesssim> C + D"
13216
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   171
apply (unfold lepoll_def)
13221
e29378f347e4 conversion of Cardinal, CardinalArith
paulson
parents: 13216
diff changeset
   172
apply (elim exE)
13216
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   173
apply (rule_tac x = "lam z:A+B. case (%w. Inl(f`w), %y. Inr(fa`y), z)" in exI)
13221
e29378f347e4 conversion of Cardinal, CardinalArith
paulson
parents: 13216
diff changeset
   174
apply (rule_tac d = "case (%w. Inl(converse(f) `w), %y. Inr(converse(fa) ` y))"
13216
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   175
       in lam_injective)
13221
e29378f347e4 conversion of Cardinal, CardinalArith
paulson
parents: 13216
diff changeset
   176
apply (typecheck add: inj_is_fun, auto)
13216
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   177
done
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   178
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   179
lemma cadd_le_mono:
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   180
    "[| K' le K;  L' le L |] ==> (K' |+| L') le (K |+| L)"
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   181
apply (unfold cadd_def)
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   182
apply (safe dest!: le_subset_iff [THEN iffD1])
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   183
apply (rule well_ord_lepoll_imp_Card_le)
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   184
apply (blast intro: well_ord_radd well_ord_Memrel)
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   185
apply (blast intro: sum_lepoll_mono subset_imp_lepoll)
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   186
done
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   187
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   188
(** Addition of finite cardinals is "ordinary" addition **)
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   189
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   190
lemma sum_succ_eqpoll: "succ(A)+B \<approx> succ(A+B)"
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   191
apply (unfold eqpoll_def)
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   192
apply (rule exI)
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   193
apply (rule_tac c = "%z. if z=Inl (A) then A+B else z" 
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   194
            and d = "%z. if z=A+B then Inl (A) else z" in lam_bijective)
13221
e29378f347e4 conversion of Cardinal, CardinalArith
paulson
parents: 13216
diff changeset
   195
   apply simp_all
13216
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   196
apply (blast dest: sym [THEN eq_imp_not_mem] elim: mem_irrefl)+
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   197
done
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   198
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   199
(*Pulling the  succ(...)  outside the |...| requires m, n: nat  *)
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   200
(*Unconditional version requires AC*)
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   201
lemma cadd_succ_lemma:
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   202
    "[| Ord(m);  Ord(n) |] ==> succ(m) |+| n = |succ(m |+| n)|"
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   203
apply (unfold cadd_def)
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   204
apply (rule sum_succ_eqpoll [THEN cardinal_cong, THEN trans])
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   205
apply (rule succ_eqpoll_cong [THEN cardinal_cong])
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   206
apply (rule well_ord_cardinal_eqpoll [THEN eqpoll_sym])
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   207
apply (blast intro: well_ord_radd well_ord_Memrel)
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   208
done
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   209
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   210
lemma nat_cadd_eq_add: "[| m: nat;  n: nat |] ==> m |+| n = m#+n"
13244
7b37e218f298 moving some results around
paulson
parents: 13221
diff changeset
   211
apply (induct_tac m)
13216
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   212
apply (simp add: nat_into_Card [THEN cadd_0])
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   213
apply (simp add: cadd_succ_lemma nat_into_Card [THEN Card_cardinal_eq])
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   214
done
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   215
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   216
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   217
(*** Cardinal multiplication ***)
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   218
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   219
(** Cardinal multiplication is commutative **)
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   220
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   221
(*Easier to prove the two directions separately*)
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   222
lemma prod_commute_eqpoll: "A*B \<approx> B*A"
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   223
apply (unfold eqpoll_def)
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   224
apply (rule exI)
13221
e29378f347e4 conversion of Cardinal, CardinalArith
paulson
parents: 13216
diff changeset
   225
apply (rule_tac c = "%<x,y>.<y,x>" and d = "%<x,y>.<y,x>" in lam_bijective, 
e29378f347e4 conversion of Cardinal, CardinalArith
paulson
parents: 13216
diff changeset
   226
       auto) 
13216
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   227
done
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   228
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   229
lemma cmult_commute: "i |*| j = j |*| i"
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   230
apply (unfold cmult_def)
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   231
apply (rule prod_commute_eqpoll [THEN cardinal_cong])
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   232
done
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   233
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   234
(** Cardinal multiplication is associative **)
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   235
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   236
lemma prod_assoc_eqpoll: "(A*B)*C \<approx> A*(B*C)"
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   237
apply (unfold eqpoll_def)
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   238
apply (rule exI)
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   239
apply (rule prod_assoc_bij)
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   240
done
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   241
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   242
(*Unconditional version requires AC*)
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   243
lemma well_ord_cmult_assoc:
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   244
    "[| well_ord(i,ri); well_ord(j,rj); well_ord(k,rk) |]
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   245
     ==> (i |*| j) |*| k = i |*| (j |*| k)"
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   246
apply (unfold cmult_def)
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   247
apply (rule cardinal_cong)
13221
e29378f347e4 conversion of Cardinal, CardinalArith
paulson
parents: 13216
diff changeset
   248
apply (rule eqpoll_trans) 
13216
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   249
 apply (rule prod_eqpoll_cong [OF well_ord_cardinal_eqpoll eqpoll_refl])
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   250
 apply (blast intro: well_ord_rmult)
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   251
apply (rule prod_assoc_eqpoll [THEN eqpoll_trans])
13221
e29378f347e4 conversion of Cardinal, CardinalArith
paulson
parents: 13216
diff changeset
   252
apply (rule eqpoll_sym) 
13216
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   253
apply (rule prod_eqpoll_cong [OF eqpoll_refl well_ord_cardinal_eqpoll])
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   254
apply (blast intro: well_ord_rmult)
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   255
done
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   256
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   257
(** Cardinal multiplication distributes over addition **)
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   258
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   259
lemma sum_prod_distrib_eqpoll: "(A+B)*C \<approx> (A*C)+(B*C)"
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   260
apply (unfold eqpoll_def)
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   261
apply (rule exI)
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   262
apply (rule sum_prod_distrib_bij)
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   263
done
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   264
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   265
lemma well_ord_cadd_cmult_distrib:
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   266
    "[| well_ord(i,ri); well_ord(j,rj); well_ord(k,rk) |]
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   267
     ==> (i |+| j) |*| k = (i |*| k) |+| (j |*| k)"
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   268
apply (unfold cadd_def cmult_def)
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   269
apply (rule cardinal_cong)
13221
e29378f347e4 conversion of Cardinal, CardinalArith
paulson
parents: 13216
diff changeset
   270
apply (rule eqpoll_trans) 
13216
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   271
 apply (rule prod_eqpoll_cong [OF well_ord_cardinal_eqpoll eqpoll_refl])
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   272
apply (blast intro: well_ord_radd)
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   273
apply (rule sum_prod_distrib_eqpoll [THEN eqpoll_trans])
13221
e29378f347e4 conversion of Cardinal, CardinalArith
paulson
parents: 13216
diff changeset
   274
apply (rule eqpoll_sym) 
13216
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   275
apply (rule sum_eqpoll_cong [OF well_ord_cardinal_eqpoll 
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   276
                                well_ord_cardinal_eqpoll])
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   277
apply (blast intro: well_ord_rmult)+
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   278
done
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   279
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   280
(** Multiplication by 0 yields 0 **)
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   281
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   282
lemma prod_0_eqpoll: "0*A \<approx> 0"
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   283
apply (unfold eqpoll_def)
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   284
apply (rule exI)
13221
e29378f347e4 conversion of Cardinal, CardinalArith
paulson
parents: 13216
diff changeset
   285
apply (rule lam_bijective, safe)
13216
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   286
done
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   287
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   288
lemma cmult_0 [simp]: "0 |*| i = 0"
13221
e29378f347e4 conversion of Cardinal, CardinalArith
paulson
parents: 13216
diff changeset
   289
by (simp add: cmult_def prod_0_eqpoll [THEN cardinal_cong])
13216
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   290
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   291
(** 1 is the identity for multiplication **)
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   292
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   293
lemma prod_singleton_eqpoll: "{x}*A \<approx> A"
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   294
apply (unfold eqpoll_def)
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   295
apply (rule exI)
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   296
apply (rule singleton_prod_bij [THEN bij_converse_bij])
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   297
done
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   298
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   299
lemma cmult_1 [simp]: "Card(K) ==> 1 |*| K = K"
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   300
apply (unfold cmult_def succ_def)
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   301
apply (simp add: prod_singleton_eqpoll [THEN cardinal_cong] Card_cardinal_eq)
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   302
done
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   303
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   304
(*** Some inequalities for multiplication ***)
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   305
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   306
lemma prod_square_lepoll: "A \<lesssim> A*A"
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   307
apply (unfold lepoll_def inj_def)
13221
e29378f347e4 conversion of Cardinal, CardinalArith
paulson
parents: 13216
diff changeset
   308
apply (rule_tac x = "lam x:A. <x,x>" in exI, simp)
13216
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   309
done
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   310
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   311
(*Could probably weaken the premise to well_ord(K,r), or remove using AC*)
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   312
lemma cmult_square_le: "Card(K) ==> K le K |*| K"
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   313
apply (unfold cmult_def)
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   314
apply (rule le_trans)
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   315
apply (rule_tac [2] well_ord_lepoll_imp_Card_le)
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   316
apply (rule_tac [3] prod_square_lepoll)
13221
e29378f347e4 conversion of Cardinal, CardinalArith
paulson
parents: 13216
diff changeset
   317
apply (simp add: le_refl Card_is_Ord Card_cardinal_eq)
e29378f347e4 conversion of Cardinal, CardinalArith
paulson
parents: 13216
diff changeset
   318
apply (blast intro: well_ord_rmult well_ord_Memrel Card_is_Ord)
13216
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   319
done
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   320
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   321
(** Multiplication by a non-zero cardinal **)
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   322
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   323
lemma prod_lepoll_self: "b: B ==> A \<lesssim> A*B"
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   324
apply (unfold lepoll_def inj_def)
13221
e29378f347e4 conversion of Cardinal, CardinalArith
paulson
parents: 13216
diff changeset
   325
apply (rule_tac x = "lam x:A. <x,b>" in exI, simp)
13216
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   326
done
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   327
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   328
(*Could probably weaken the premises to well_ord(K,r), or removing using AC*)
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   329
lemma cmult_le_self:
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   330
    "[| Card(K);  Ord(L);  0<L |] ==> K le (K |*| L)"
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   331
apply (unfold cmult_def)
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   332
apply (rule le_trans [OF Card_cardinal_le well_ord_lepoll_imp_Card_le])
13221
e29378f347e4 conversion of Cardinal, CardinalArith
paulson
parents: 13216
diff changeset
   333
  apply assumption
13216
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   334
 apply (blast intro: well_ord_rmult well_ord_Memrel Card_is_Ord)
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   335
apply (blast intro: prod_lepoll_self ltD)
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   336
done
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   337
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   338
(** Monotonicity of multiplication **)
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   339
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   340
lemma prod_lepoll_mono:
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   341
     "[| A \<lesssim> C;  B \<lesssim> D |] ==> A * B  \<lesssim>  C * D"
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   342
apply (unfold lepoll_def)
13221
e29378f347e4 conversion of Cardinal, CardinalArith
paulson
parents: 13216
diff changeset
   343
apply (elim exE)
13216
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   344
apply (rule_tac x = "lam <w,y>:A*B. <f`w, fa`y>" in exI)
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   345
apply (rule_tac d = "%<w,y>. <converse (f) `w, converse (fa) `y>" 
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   346
       in lam_injective)
13221
e29378f347e4 conversion of Cardinal, CardinalArith
paulson
parents: 13216
diff changeset
   347
apply (typecheck add: inj_is_fun, auto)
13216
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   348
done
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   349
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   350
lemma cmult_le_mono:
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   351
    "[| K' le K;  L' le L |] ==> (K' |*| L') le (K |*| L)"
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   352
apply (unfold cmult_def)
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   353
apply (safe dest!: le_subset_iff [THEN iffD1])
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   354
apply (rule well_ord_lepoll_imp_Card_le)
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   355
 apply (blast intro: well_ord_rmult well_ord_Memrel)
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   356
apply (blast intro: prod_lepoll_mono subset_imp_lepoll)
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   357
done
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   358
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   359
(*** Multiplication of finite cardinals is "ordinary" multiplication ***)
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   360
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   361
lemma prod_succ_eqpoll: "succ(A)*B \<approx> B + A*B"
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   362
apply (unfold eqpoll_def)
13221
e29378f347e4 conversion of Cardinal, CardinalArith
paulson
parents: 13216
diff changeset
   363
apply (rule exI)
13216
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   364
apply (rule_tac c = "%<x,y>. if x=A then Inl (y) else Inr (<x,y>)"
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   365
            and d = "case (%y. <A,y>, %z. z)" in lam_bijective)
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   366
apply safe
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   367
apply (simp_all add: succI2 if_type mem_imp_not_eq)
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   368
done
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   369
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   370
(*Unconditional version requires AC*)
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   371
lemma cmult_succ_lemma:
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   372
    "[| Ord(m);  Ord(n) |] ==> succ(m) |*| n = n |+| (m |*| n)"
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   373
apply (unfold cmult_def cadd_def)
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   374
apply (rule prod_succ_eqpoll [THEN cardinal_cong, THEN trans])
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   375
apply (rule cardinal_cong [symmetric])
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   376
apply (rule sum_eqpoll_cong [OF eqpoll_refl well_ord_cardinal_eqpoll])
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   377
apply (blast intro: well_ord_rmult well_ord_Memrel)
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   378
done
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   379
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   380
lemma nat_cmult_eq_mult: "[| m: nat;  n: nat |] ==> m |*| n = m#*n"
13244
7b37e218f298 moving some results around
paulson
parents: 13221
diff changeset
   381
apply (induct_tac m)
13221
e29378f347e4 conversion of Cardinal, CardinalArith
paulson
parents: 13216
diff changeset
   382
apply (simp_all add: cmult_succ_lemma nat_cadd_eq_add)
13216
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   383
done
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   384
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   385
lemma cmult_2: "Card(n) ==> 2 |*| n = n |+| n"
13221
e29378f347e4 conversion of Cardinal, CardinalArith
paulson
parents: 13216
diff changeset
   386
by (simp add: cmult_succ_lemma Card_is_Ord cadd_commute [of _ 0])
13216
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   387
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   388
lemma sum_lepoll_prod: "2 \<lesssim> C ==> B+B \<lesssim> C*B"
13221
e29378f347e4 conversion of Cardinal, CardinalArith
paulson
parents: 13216
diff changeset
   389
apply (rule lepoll_trans) 
13216
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   390
apply (rule sum_eq_2_times [THEN equalityD1, THEN subset_imp_lepoll]) 
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   391
apply (erule prod_lepoll_mono) 
13221
e29378f347e4 conversion of Cardinal, CardinalArith
paulson
parents: 13216
diff changeset
   392
apply (rule lepoll_refl) 
13216
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   393
done
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   394
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   395
lemma lepoll_imp_sum_lepoll_prod: "[| A \<lesssim> B; 2 \<lesssim> A |] ==> A+B \<lesssim> A*B"
13221
e29378f347e4 conversion of Cardinal, CardinalArith
paulson
parents: 13216
diff changeset
   396
by (blast intro: sum_lepoll_mono sum_lepoll_prod lepoll_trans lepoll_refl)
13216
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   397
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   398
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   399
(*** Infinite Cardinals are Limit Ordinals ***)
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   400
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   401
(*This proof is modelled upon one assuming nat<=A, with injection
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   402
  lam z:cons(u,A). if z=u then 0 else if z : nat then succ(z) else z
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   403
  and inverse %y. if y:nat then nat_case(u, %z. z, y) else y.  \
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   404
  If f: inj(nat,A) then range(f) behaves like the natural numbers.*)
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   405
lemma nat_cons_lepoll: "nat \<lesssim> A ==> cons(u,A) \<lesssim> A"
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   406
apply (unfold lepoll_def)
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   407
apply (erule exE)
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   408
apply (rule_tac x = 
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   409
          "lam z:cons (u,A).
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   410
             if z=u then f`0 
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   411
             else if z: range (f) then f`succ (converse (f) `z) else z" 
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   412
       in exI)
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   413
apply (rule_tac d =
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   414
          "%y. if y: range(f) then nat_case (u, %z. f`z, converse(f) `y) 
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   415
                              else y" 
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   416
       in lam_injective)
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   417
apply (fast intro!: if_type apply_type intro: inj_is_fun inj_converse_fun)
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   418
apply (simp add: inj_is_fun [THEN apply_rangeI]
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   419
                 inj_converse_fun [THEN apply_rangeI]
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   420
                 inj_converse_fun [THEN apply_funtype])
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   421
done
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   422
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   423
lemma nat_cons_eqpoll: "nat \<lesssim> A ==> cons(u,A) \<approx> A"
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   424
apply (erule nat_cons_lepoll [THEN eqpollI])
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   425
apply (rule subset_consI [THEN subset_imp_lepoll])
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   426
done
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   427
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   428
(*Specialized version required below*)
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   429
lemma nat_succ_eqpoll: "nat <= A ==> succ(A) \<approx> A"
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   430
apply (unfold succ_def)
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   431
apply (erule subset_imp_lepoll [THEN nat_cons_eqpoll])
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   432
done
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   433
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   434
lemma InfCard_nat: "InfCard(nat)"
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   435
apply (unfold InfCard_def)
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   436
apply (blast intro: Card_nat le_refl Card_is_Ord)
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   437
done
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   438
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   439
lemma InfCard_is_Card: "InfCard(K) ==> Card(K)"
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   440
apply (unfold InfCard_def)
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   441
apply (erule conjunct1)
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   442
done
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   443
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   444
lemma InfCard_Un:
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   445
    "[| InfCard(K);  Card(L) |] ==> InfCard(K Un L)"
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   446
apply (unfold InfCard_def)
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   447
apply (simp add: Card_Un Un_upper1_le [THEN [2] le_trans]  Card_is_Ord)
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   448
done
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   449
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   450
(*Kunen's Lemma 10.11*)
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   451
lemma InfCard_is_Limit: "InfCard(K) ==> Limit(K)"
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   452
apply (unfold InfCard_def)
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   453
apply (erule conjE)
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   454
apply (frule Card_is_Ord)
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   455
apply (rule ltI [THEN non_succ_LimitI])
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   456
apply (erule le_imp_subset [THEN subsetD])
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   457
apply (safe dest!: Limit_nat [THEN Limit_le_succD])
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   458
apply (unfold Card_def)
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   459
apply (drule trans)
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   460
apply (erule le_imp_subset [THEN nat_succ_eqpoll, THEN cardinal_cong])
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   461
apply (erule Ord_cardinal_le [THEN lt_trans2, THEN lt_irrefl])
13221
e29378f347e4 conversion of Cardinal, CardinalArith
paulson
parents: 13216
diff changeset
   462
apply (rule le_eqI, assumption)
13216
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   463
apply (rule Ord_cardinal)
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   464
done
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   465
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   466
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   467
(*** An infinite cardinal equals its square (Kunen, Thm 10.12, page 29) ***)
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   468
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   469
(*A general fact about ordermap*)
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   470
lemma ordermap_eqpoll_pred:
13269
3ba9be497c33 Tidying and introduction of various new theorems
paulson
parents: 13244
diff changeset
   471
    "[| well_ord(A,r);  x:A |] ==> ordermap(A,r)`x \<approx> Order.pred(A,x,r)"
13216
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   472
apply (unfold eqpoll_def)
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   473
apply (rule exI)
13221
e29378f347e4 conversion of Cardinal, CardinalArith
paulson
parents: 13216
diff changeset
   474
apply (simp add: ordermap_eq_image well_ord_is_wf)
e29378f347e4 conversion of Cardinal, CardinalArith
paulson
parents: 13216
diff changeset
   475
apply (erule ordermap_bij [THEN bij_is_inj, THEN restrict_bij, 
e29378f347e4 conversion of Cardinal, CardinalArith
paulson
parents: 13216
diff changeset
   476
                           THEN bij_converse_bij])
13216
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   477
apply (rule pred_subset)
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   478
done
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   479
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   480
(** Establishing the well-ordering **)
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   481
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   482
lemma csquare_lam_inj:
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   483
     "Ord(K) ==> (lam <x,y>:K*K. <x Un y, x, y>) : inj(K*K, K*K*K)"
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   484
apply (unfold inj_def)
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   485
apply (force intro: lam_type Un_least_lt [THEN ltD] ltI)
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   486
done
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   487
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   488
lemma well_ord_csquare: "Ord(K) ==> well_ord(K*K, csquare_rel(K))"
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   489
apply (unfold csquare_rel_def)
13221
e29378f347e4 conversion of Cardinal, CardinalArith
paulson
parents: 13216
diff changeset
   490
apply (rule csquare_lam_inj [THEN well_ord_rvimage], assumption)
13216
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   491
apply (blast intro: well_ord_rmult well_ord_Memrel)
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   492
done
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   493
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   494
(** Characterising initial segments of the well-ordering **)
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   495
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   496
lemma csquareD:
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   497
 "[| <<x,y>, <z,z>> : csquare_rel(K);  x<K;  y<K;  z<K |] ==> x le z & y le z"
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   498
apply (unfold csquare_rel_def)
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   499
apply (erule rev_mp)
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   500
apply (elim ltE)
13221
e29378f347e4 conversion of Cardinal, CardinalArith
paulson
parents: 13216
diff changeset
   501
apply (simp add: rvimage_iff Un_absorb Un_least_mem_iff ltD)
13216
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   502
apply (safe elim!: mem_irrefl intro!: Un_upper1_le Un_upper2_le)
13221
e29378f347e4 conversion of Cardinal, CardinalArith
paulson
parents: 13216
diff changeset
   503
apply (simp_all add: lt_def succI2)
13216
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   504
done
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   505
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   506
lemma pred_csquare_subset: 
13269
3ba9be497c33 Tidying and introduction of various new theorems
paulson
parents: 13244
diff changeset
   507
    "z<K ==> Order.pred(K*K, <z,z>, csquare_rel(K)) <= succ(z)*succ(z)"
13216
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   508
apply (unfold Order.pred_def)
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   509
apply (safe del: SigmaI succCI)
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   510
apply (erule csquareD [THEN conjE])
13221
e29378f347e4 conversion of Cardinal, CardinalArith
paulson
parents: 13216
diff changeset
   511
apply (unfold lt_def, auto) 
13216
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   512
done
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   513
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   514
lemma csquare_ltI:
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   515
 "[| x<z;  y<z;  z<K |] ==>  <<x,y>, <z,z>> : csquare_rel(K)"
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   516
apply (unfold csquare_rel_def)
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   517
apply (subgoal_tac "x<K & y<K")
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   518
 prefer 2 apply (blast intro: lt_trans) 
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   519
apply (elim ltE)
13221
e29378f347e4 conversion of Cardinal, CardinalArith
paulson
parents: 13216
diff changeset
   520
apply (simp add: rvimage_iff Un_absorb Un_least_mem_iff ltD)
13216
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   521
done
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   522
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   523
(*Part of the traditional proof.  UNUSED since it's harder to prove & apply *)
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   524
lemma csquare_or_eqI:
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   525
 "[| x le z;  y le z;  z<K |] ==> <<x,y>, <z,z>> : csquare_rel(K) | x=z & y=z"
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   526
apply (unfold csquare_rel_def)
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   527
apply (subgoal_tac "x<K & y<K")
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   528
 prefer 2 apply (blast intro: lt_trans1) 
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   529
apply (elim ltE)
13221
e29378f347e4 conversion of Cardinal, CardinalArith
paulson
parents: 13216
diff changeset
   530
apply (simp add: rvimage_iff Un_absorb Un_least_mem_iff ltD)
13216
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   531
apply (elim succE)
13221
e29378f347e4 conversion of Cardinal, CardinalArith
paulson
parents: 13216
diff changeset
   532
apply (simp_all add: subset_Un_iff [THEN iff_sym] 
e29378f347e4 conversion of Cardinal, CardinalArith
paulson
parents: 13216
diff changeset
   533
                     subset_Un_iff2 [THEN iff_sym] OrdmemD)
13216
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   534
done
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   535
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   536
(** The cardinality of initial segments **)
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   537
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   538
lemma ordermap_z_lt:
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   539
      "[| Limit(K);  x<K;  y<K;  z=succ(x Un y) |] ==>
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   540
          ordermap(K*K, csquare_rel(K)) ` <x,y> <
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   541
          ordermap(K*K, csquare_rel(K)) ` <z,z>"
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   542
apply (subgoal_tac "z<K & well_ord (K*K, csquare_rel (K))")
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   543
prefer 2 apply (blast intro!: Un_least_lt Limit_has_succ
13221
e29378f347e4 conversion of Cardinal, CardinalArith
paulson
parents: 13216
diff changeset
   544
                              Limit_is_Ord [THEN well_ord_csquare], clarify) 
13216
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   545
apply (rule csquare_ltI [THEN ordermap_mono, THEN ltI])
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   546
apply (erule_tac [4] well_ord_is_wf)
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   547
apply (blast intro!: Un_upper1_le Un_upper2_le Ord_ordermap elim!: ltE)+
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   548
done
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   549
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   550
(*Kunen: "each <x,y>: K*K has no more than z*z predecessors..." (page 29) *)
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   551
lemma ordermap_csquare_le:
13221
e29378f347e4 conversion of Cardinal, CardinalArith
paulson
parents: 13216
diff changeset
   552
  "[| Limit(K);  x<K;  y<K;  z=succ(x Un y) |]
e29378f347e4 conversion of Cardinal, CardinalArith
paulson
parents: 13216
diff changeset
   553
   ==> | ordermap(K*K, csquare_rel(K)) ` <x,y> | le  |succ(z)| |*| |succ(z)|"
13216
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   554
apply (unfold cmult_def)
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   555
apply (rule well_ord_rmult [THEN well_ord_lepoll_imp_Card_le])
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   556
apply (rule Ord_cardinal [THEN well_ord_Memrel])+
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   557
apply (subgoal_tac "z<K")
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   558
 prefer 2 apply (blast intro!: Un_least_lt Limit_has_succ)
13221
e29378f347e4 conversion of Cardinal, CardinalArith
paulson
parents: 13216
diff changeset
   559
apply (rule ordermap_z_lt [THEN leI, THEN le_imp_lepoll, THEN lepoll_trans], 
e29378f347e4 conversion of Cardinal, CardinalArith
paulson
parents: 13216
diff changeset
   560
       assumption+)
13216
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   561
apply (rule ordermap_eqpoll_pred [THEN eqpoll_imp_lepoll, THEN lepoll_trans])
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   562
apply (erule Limit_is_Ord [THEN well_ord_csquare])
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   563
apply (blast intro: ltD)
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   564
apply (rule pred_csquare_subset [THEN subset_imp_lepoll, THEN lepoll_trans],
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   565
            assumption)
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   566
apply (elim ltE)
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   567
apply (rule prod_eqpoll_cong [THEN eqpoll_sym, THEN eqpoll_imp_lepoll])
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   568
apply (erule Ord_succ [THEN Ord_cardinal_eqpoll])+
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   569
done
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   570
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   571
(*Kunen: "... so the order type <= K" *)
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   572
lemma ordertype_csquare_le:
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   573
     "[| InfCard(K);  ALL y:K. InfCard(y) --> y |*| y = y |] 
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   574
      ==> ordertype(K*K, csquare_rel(K)) le K"
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   575
apply (frule InfCard_is_Card [THEN Card_is_Ord])
13221
e29378f347e4 conversion of Cardinal, CardinalArith
paulson
parents: 13216
diff changeset
   576
apply (rule all_lt_imp_le, assumption)
13216
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   577
apply (erule well_ord_csquare [THEN Ord_ordertype])
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   578
apply (rule Card_lt_imp_lt)
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   579
apply (erule_tac [3] InfCard_is_Card)
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   580
apply (erule_tac [2] ltE)
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   581
apply (simp add: ordertype_unfold)
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   582
apply (safe elim!: ltE)
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   583
apply (subgoal_tac "Ord (xa) & Ord (ya)")
13221
e29378f347e4 conversion of Cardinal, CardinalArith
paulson
parents: 13216
diff changeset
   584
 prefer 2 apply (blast intro: Ord_in_Ord, clarify)
13216
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   585
(*??WHAT A MESS!*)  
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   586
apply (rule InfCard_is_Limit [THEN ordermap_csquare_le, THEN lt_trans1],
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   587
       (assumption | rule refl | erule ltI)+) 
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   588
apply (rule_tac i = "xa Un ya" and j = "nat" in Ord_linear2,
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   589
       simp_all add: Ord_Un Ord_nat)
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   590
prefer 2 (*case nat le (xa Un ya) *)
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   591
 apply (simp add: le_imp_subset [THEN nat_succ_eqpoll, THEN cardinal_cong] 
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   592
                  le_succ_iff InfCard_def Card_cardinal Un_least_lt Ord_Un
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   593
                ltI nat_le_cardinal Ord_cardinal_le [THEN lt_trans1, THEN ltD])
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   594
(*the finite case: xa Un ya < nat *)
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   595
apply (rule_tac j = "nat" in lt_trans2)
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   596
 apply (simp add: lt_def nat_cmult_eq_mult nat_succI mult_type
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   597
                  nat_into_Card [THEN Card_cardinal_eq]  Ord_nat)
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   598
apply (simp add: InfCard_def)
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   599
done
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   600
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   601
(*Main result: Kunen's Theorem 10.12*)
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   602
lemma InfCard_csquare_eq: "InfCard(K) ==> K |*| K = K"
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   603
apply (frule InfCard_is_Card [THEN Card_is_Ord])
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   604
apply (erule rev_mp)
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   605
apply (erule_tac i=K in trans_induct) 
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   606
apply (rule impI)
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   607
apply (rule le_anti_sym)
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   608
apply (erule_tac [2] InfCard_is_Card [THEN cmult_square_le])
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   609
apply (rule ordertype_csquare_le [THEN [2] le_trans])
13221
e29378f347e4 conversion of Cardinal, CardinalArith
paulson
parents: 13216
diff changeset
   610
apply (simp add: cmult_def Ord_cardinal_le   
e29378f347e4 conversion of Cardinal, CardinalArith
paulson
parents: 13216
diff changeset
   611
                 well_ord_csquare [THEN Ord_ordertype]
e29378f347e4 conversion of Cardinal, CardinalArith
paulson
parents: 13216
diff changeset
   612
                 well_ord_csquare [THEN ordermap_bij, THEN bij_imp_eqpoll, 
e29378f347e4 conversion of Cardinal, CardinalArith
paulson
parents: 13216
diff changeset
   613
                                   THEN cardinal_cong], assumption+)
13216
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   614
done
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   615
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   616
(*Corollary for arbitrary well-ordered sets (all sets, assuming AC)*)
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   617
lemma well_ord_InfCard_square_eq:
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   618
     "[| well_ord(A,r);  InfCard(|A|) |] ==> A*A \<approx> A"
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   619
apply (rule prod_eqpoll_cong [THEN eqpoll_trans])
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   620
apply (erule well_ord_cardinal_eqpoll [THEN eqpoll_sym])+
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   621
apply (rule well_ord_cardinal_eqE)
13221
e29378f347e4 conversion of Cardinal, CardinalArith
paulson
parents: 13216
diff changeset
   622
apply (blast intro: Ord_cardinal well_ord_rmult well_ord_Memrel, assumption)
e29378f347e4 conversion of Cardinal, CardinalArith
paulson
parents: 13216
diff changeset
   623
apply (simp add: cmult_def [symmetric] InfCard_csquare_eq)
13216
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   624
done
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   625
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   626
(** Toward's Kunen's Corollary 10.13 (1) **)
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   627
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   628
lemma InfCard_le_cmult_eq: "[| InfCard(K);  L le K;  0<L |] ==> K |*| L = K"
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   629
apply (rule le_anti_sym)
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   630
 prefer 2
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   631
 apply (erule ltE, blast intro: cmult_le_self InfCard_is_Card)
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   632
apply (frule InfCard_is_Card [THEN Card_is_Ord, THEN le_refl])
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   633
apply (rule cmult_le_mono [THEN le_trans], assumption+)
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   634
apply (simp add: InfCard_csquare_eq)
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   635
done
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   636
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   637
(*Corollary 10.13 (1), for cardinal multiplication*)
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   638
lemma InfCard_cmult_eq: "[| InfCard(K);  InfCard(L) |] ==> K |*| L = K Un L"
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   639
apply (rule_tac i = "K" and j = "L" in Ord_linear_le)
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   640
apply (typecheck add: InfCard_is_Card Card_is_Ord)
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   641
apply (rule cmult_commute [THEN ssubst])
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   642
apply (rule Un_commute [THEN ssubst])
13221
e29378f347e4 conversion of Cardinal, CardinalArith
paulson
parents: 13216
diff changeset
   643
apply (simp_all add: InfCard_is_Limit [THEN Limit_has_0] InfCard_le_cmult_eq 
e29378f347e4 conversion of Cardinal, CardinalArith
paulson
parents: 13216
diff changeset
   644
                     subset_Un_iff2 [THEN iffD1] le_imp_subset)
13216
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   645
done
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   646
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   647
lemma InfCard_cdouble_eq: "InfCard(K) ==> K |+| K = K"
13221
e29378f347e4 conversion of Cardinal, CardinalArith
paulson
parents: 13216
diff changeset
   648
apply (simp add: cmult_2 [symmetric] InfCard_is_Card cmult_commute)
e29378f347e4 conversion of Cardinal, CardinalArith
paulson
parents: 13216
diff changeset
   649
apply (simp add: InfCard_le_cmult_eq InfCard_is_Limit Limit_has_0 Limit_has_succ)
13216
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   650
done
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   651
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   652
(*Corollary 10.13 (1), for cardinal addition*)
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   653
lemma InfCard_le_cadd_eq: "[| InfCard(K);  L le K |] ==> K |+| L = K"
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   654
apply (rule le_anti_sym)
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   655
 prefer 2
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   656
 apply (erule ltE, blast intro: cadd_le_self InfCard_is_Card)
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   657
apply (frule InfCard_is_Card [THEN Card_is_Ord, THEN le_refl])
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   658
apply (rule cadd_le_mono [THEN le_trans], assumption+)
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   659
apply (simp add: InfCard_cdouble_eq)
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   660
done
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   661
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   662
lemma InfCard_cadd_eq: "[| InfCard(K);  InfCard(L) |] ==> K |+| L = K Un L"
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   663
apply (rule_tac i = "K" and j = "L" in Ord_linear_le)
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   664
apply (typecheck add: InfCard_is_Card Card_is_Ord)
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   665
apply (rule cadd_commute [THEN ssubst])
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   666
apply (rule Un_commute [THEN ssubst])
13221
e29378f347e4 conversion of Cardinal, CardinalArith
paulson
parents: 13216
diff changeset
   667
apply (simp_all add: InfCard_le_cadd_eq subset_Un_iff2 [THEN iffD1] le_imp_subset)
13216
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   668
done
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   669
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   670
(*The other part, Corollary 10.13 (2), refers to the cardinality of the set
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   671
  of all n-tuples of elements of K.  A better version for the Isabelle theory
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   672
  might be  InfCard(K) ==> |list(K)| = K.
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   673
*)
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   674
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   675
(*** For every cardinal number there exists a greater one
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   676
     [Kunen's Theorem 10.16, which would be trivial using AC] ***)
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   677
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   678
lemma Ord_jump_cardinal: "Ord(jump_cardinal(K))"
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   679
apply (unfold jump_cardinal_def)
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   680
apply (rule Ord_is_Transset [THEN [2] OrdI])
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   681
 prefer 2 apply (blast intro!: Ord_ordertype)
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   682
apply (unfold Transset_def)
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   683
apply (safe del: subsetI)
13221
e29378f347e4 conversion of Cardinal, CardinalArith
paulson
parents: 13216
diff changeset
   684
apply (simp add: ordertype_pred_unfold, safe)
13216
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   685
apply (rule UN_I)
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   686
apply (rule_tac [2] ReplaceI)
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   687
   prefer 4 apply (blast intro: well_ord_subset elim!: predE)+
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   688
done
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   689
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   690
(*Allows selective unfolding.  Less work than deriving intro/elim rules*)
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   691
lemma jump_cardinal_iff:
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   692
     "i : jump_cardinal(K) <->
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   693
      (EX r X. r <= K*K & X <= K & well_ord(X,r) & i = ordertype(X,r))"
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   694
apply (unfold jump_cardinal_def)
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   695
apply (blast del: subsetI) 
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   696
done
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   697
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   698
(*The easy part of Theorem 10.16: jump_cardinal(K) exceeds K*)
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   699
lemma K_lt_jump_cardinal: "Ord(K) ==> K < jump_cardinal(K)"
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   700
apply (rule Ord_jump_cardinal [THEN [2] ltI])
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   701
apply (rule jump_cardinal_iff [THEN iffD2])
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   702
apply (rule_tac x="Memrel(K)" in exI)
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   703
apply (rule_tac x=K in exI)  
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   704
apply (simp add: ordertype_Memrel well_ord_Memrel)
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   705
apply (simp add: Memrel_def subset_iff)
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   706
done
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   707
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   708
(*The proof by contradiction: the bijection f yields a wellordering of X
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   709
  whose ordertype is jump_cardinal(K).  *)
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   710
lemma Card_jump_cardinal_lemma:
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   711
     "[| well_ord(X,r);  r <= K * K;  X <= K;
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   712
         f : bij(ordertype(X,r), jump_cardinal(K)) |]
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   713
      ==> jump_cardinal(K) : jump_cardinal(K)"
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   714
apply (subgoal_tac "f O ordermap (X,r) : bij (X, jump_cardinal (K))")
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   715
 prefer 2 apply (blast intro: comp_bij ordermap_bij)
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   716
apply (rule jump_cardinal_iff [THEN iffD2])
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   717
apply (intro exI conjI)
13221
e29378f347e4 conversion of Cardinal, CardinalArith
paulson
parents: 13216
diff changeset
   718
apply (rule subset_trans [OF rvimage_type Sigma_mono], assumption+)
13216
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   719
apply (erule bij_is_inj [THEN well_ord_rvimage])
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   720
apply (rule Ord_jump_cardinal [THEN well_ord_Memrel])
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   721
apply (simp add: well_ord_Memrel [THEN [2] bij_ordertype_vimage]
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   722
                 ordertype_Memrel Ord_jump_cardinal)
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   723
done
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   724
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   725
(*The hard part of Theorem 10.16: jump_cardinal(K) is itself a cardinal*)
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   726
lemma Card_jump_cardinal: "Card(jump_cardinal(K))"
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   727
apply (rule Ord_jump_cardinal [THEN CardI])
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   728
apply (unfold eqpoll_def)
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   729
apply (safe dest!: ltD jump_cardinal_iff [THEN iffD1])
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   730
apply (blast intro: Card_jump_cardinal_lemma [THEN mem_irrefl])
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   731
done
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   732
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   733
(*** Basic properties of successor cardinals ***)
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   734
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   735
lemma csucc_basic: "Ord(K) ==> Card(csucc(K)) & K < csucc(K)"
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   736
apply (unfold csucc_def)
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   737
apply (rule LeastI)
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   738
apply (blast intro: Card_jump_cardinal K_lt_jump_cardinal Ord_jump_cardinal)+
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   739
done
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   740
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   741
lemmas Card_csucc = csucc_basic [THEN conjunct1, standard]
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   742
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   743
lemmas lt_csucc = csucc_basic [THEN conjunct2, standard]
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   744
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   745
lemma Ord_0_lt_csucc: "Ord(K) ==> 0 < csucc(K)"
13221
e29378f347e4 conversion of Cardinal, CardinalArith
paulson
parents: 13216
diff changeset
   746
by (blast intro: Ord_0_le lt_csucc lt_trans1)
13216
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   747
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   748
lemma csucc_le: "[| Card(L);  K<L |] ==> csucc(K) le L"
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   749
apply (unfold csucc_def)
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   750
apply (rule Least_le)
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   751
apply (blast intro: Card_is_Ord)+
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   752
done
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   753
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   754
lemma lt_csucc_iff: "[| Ord(i); Card(K) |] ==> i < csucc(K) <-> |i| le K"
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   755
apply (rule iffI)
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   756
apply (rule_tac [2] Card_lt_imp_lt)
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   757
apply (erule_tac [2] lt_trans1)
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   758
apply (simp_all add: lt_csucc Card_csucc Card_is_Ord)
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   759
apply (rule notI [THEN not_lt_imp_le])
13221
e29378f347e4 conversion of Cardinal, CardinalArith
paulson
parents: 13216
diff changeset
   760
apply (rule Card_cardinal [THEN csucc_le, THEN lt_trans1, THEN lt_irrefl], assumption)
13216
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   761
apply (rule Ord_cardinal_le [THEN lt_trans1])
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   762
apply (simp_all add: Ord_cardinal Card_is_Ord) 
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   763
done
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   764
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   765
lemma Card_lt_csucc_iff:
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   766
     "[| Card(K'); Card(K) |] ==> K' < csucc(K) <-> K' le K"
13221
e29378f347e4 conversion of Cardinal, CardinalArith
paulson
parents: 13216
diff changeset
   767
by (simp add: lt_csucc_iff Card_cardinal_eq Card_is_Ord)
13216
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   768
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   769
lemma InfCard_csucc: "InfCard(K) ==> InfCard(csucc(K))"
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   770
by (simp add: InfCard_def Card_csucc Card_is_Ord 
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   771
              lt_csucc [THEN leI, THEN [2] le_trans])
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   772
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   773
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   774
(** Removing elements from a finite set decreases its cardinality **)
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   775
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   776
lemma Fin_imp_not_cons_lepoll: "A: Fin(U) ==> x~:A --> ~ cons(x,A) \<lesssim> A"
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   777
apply (erule Fin_induct)
13221
e29378f347e4 conversion of Cardinal, CardinalArith
paulson
parents: 13216
diff changeset
   778
apply (simp add: lepoll_0_iff)
13216
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   779
apply (subgoal_tac "cons (x,cons (xa,y)) = cons (xa,cons (x,y))")
13221
e29378f347e4 conversion of Cardinal, CardinalArith
paulson
parents: 13216
diff changeset
   780
apply simp
e29378f347e4 conversion of Cardinal, CardinalArith
paulson
parents: 13216
diff changeset
   781
apply (blast dest!: cons_lepoll_consD, blast)
13216
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   782
done
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   783
13221
e29378f347e4 conversion of Cardinal, CardinalArith
paulson
parents: 13216
diff changeset
   784
lemma Finite_imp_cardinal_cons:
e29378f347e4 conversion of Cardinal, CardinalArith
paulson
parents: 13216
diff changeset
   785
     "[| Finite(A);  a~:A |] ==> |cons(a,A)| = succ(|A|)"
13216
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   786
apply (unfold cardinal_def)
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   787
apply (rule Least_equality)
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   788
apply (fold cardinal_def)
13221
e29378f347e4 conversion of Cardinal, CardinalArith
paulson
parents: 13216
diff changeset
   789
apply (simp add: succ_def)
13216
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   790
apply (blast intro: cons_eqpoll_cong well_ord_cardinal_eqpoll
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   791
             elim!: mem_irrefl  dest!: Finite_imp_well_ord)
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   792
apply (blast intro: Card_cardinal Card_is_Ord)
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   793
apply (rule notI)
13221
e29378f347e4 conversion of Cardinal, CardinalArith
paulson
parents: 13216
diff changeset
   794
apply (rule Finite_into_Fin [THEN Fin_imp_not_cons_lepoll, THEN mp, THEN notE],
e29378f347e4 conversion of Cardinal, CardinalArith
paulson
parents: 13216
diff changeset
   795
       assumption, assumption)
13216
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   796
apply (erule eqpoll_sym [THEN eqpoll_imp_lepoll, THEN lepoll_trans])
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   797
apply (erule le_imp_lepoll [THEN lepoll_trans])
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   798
apply (blast intro: well_ord_cardinal_eqpoll [THEN eqpoll_imp_lepoll]
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   799
             dest!: Finite_imp_well_ord)
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   800
done
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   801
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   802
13221
e29378f347e4 conversion of Cardinal, CardinalArith
paulson
parents: 13216
diff changeset
   803
lemma Finite_imp_succ_cardinal_Diff:
e29378f347e4 conversion of Cardinal, CardinalArith
paulson
parents: 13216
diff changeset
   804
     "[| Finite(A);  a:A |] ==> succ(|A-{a}|) = |A|"
e29378f347e4 conversion of Cardinal, CardinalArith
paulson
parents: 13216
diff changeset
   805
apply (rule_tac b = "A" in cons_Diff [THEN subst], assumption)
e29378f347e4 conversion of Cardinal, CardinalArith
paulson
parents: 13216
diff changeset
   806
apply (simp add: Finite_imp_cardinal_cons Diff_subset [THEN subset_Finite])
e29378f347e4 conversion of Cardinal, CardinalArith
paulson
parents: 13216
diff changeset
   807
apply (simp add: cons_Diff)
13216
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   808
done
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   809
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   810
lemma Finite_imp_cardinal_Diff: "[| Finite(A);  a:A |] ==> |A-{a}| < |A|"
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   811
apply (rule succ_leE)
13221
e29378f347e4 conversion of Cardinal, CardinalArith
paulson
parents: 13216
diff changeset
   812
apply (simp add: Finite_imp_succ_cardinal_Diff)
13216
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   813
done
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   814
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   815
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   816
(** Theorems by Krzysztof Grabczewski, proofs by lcp **)
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   817
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   818
lemmas nat_implies_well_ord = nat_into_Ord [THEN well_ord_Memrel, standard]
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   819
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   820
lemma nat_sum_eqpoll_sum: "[| m:nat; n:nat |] ==> m + n \<approx> m #+ n"
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   821
apply (rule eqpoll_trans)
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   822
apply (rule well_ord_radd [THEN well_ord_cardinal_eqpoll, THEN eqpoll_sym])
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   823
apply (erule nat_implies_well_ord)+
13221
e29378f347e4 conversion of Cardinal, CardinalArith
paulson
parents: 13216
diff changeset
   824
apply (simp add: nat_cadd_eq_add [symmetric] cadd_def eqpoll_refl)
13216
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   825
done
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   826
13221
e29378f347e4 conversion of Cardinal, CardinalArith
paulson
parents: 13216
diff changeset
   827
lemma Ord_subset_natD [rule_format]: "Ord(i) ==> i <= nat --> i : nat | i=nat"
e29378f347e4 conversion of Cardinal, CardinalArith
paulson
parents: 13216
diff changeset
   828
apply (erule trans_induct3, auto)
13216
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   829
apply (blast dest!: nat_le_Limit [THEN le_imp_subset])
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   830
done
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   831
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   832
lemma Ord_nat_subset_into_Card: "[| Ord(i); i <= nat |] ==> Card(i)"
13221
e29378f347e4 conversion of Cardinal, CardinalArith
paulson
parents: 13216
diff changeset
   833
by (blast dest: Ord_subset_natD intro: Card_nat nat_into_Card)
13216
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   834
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   835
lemma Finite_cardinal_in_nat [simp]: "Finite(A) ==> |A| : nat"
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   836
apply (erule Finite_induct)
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   837
apply (auto simp add: cardinal_0 Finite_imp_cardinal_cons)
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   838
done
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   839
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   840
lemma Finite_Diff_sing_eq_diff_1: "[| Finite(A); x:A |] ==> |A-{x}| = |A| #- 1"
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   841
apply (rule succ_inject)
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   842
apply (rule_tac b = "|A|" in trans)
13221
e29378f347e4 conversion of Cardinal, CardinalArith
paulson
parents: 13216
diff changeset
   843
apply (simp add: Finite_imp_succ_cardinal_Diff)
13216
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   844
apply (subgoal_tac "1 \<lesssim> A")
13221
e29378f347e4 conversion of Cardinal, CardinalArith
paulson
parents: 13216
diff changeset
   845
 prefer 2 apply (blast intro: not_0_is_lepoll_1)
e29378f347e4 conversion of Cardinal, CardinalArith
paulson
parents: 13216
diff changeset
   846
apply (frule Finite_imp_well_ord, clarify)
13216
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   847
apply (rotate_tac -1)
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   848
apply (drule well_ord_lepoll_imp_Card_le)
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   849
apply (auto simp add: cardinal_1)
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   850
apply (rule trans)
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   851
apply (rule_tac [2] diff_succ)
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   852
apply (auto simp add: Finite_cardinal_in_nat)
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   853
done
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   854
13221
e29378f347e4 conversion of Cardinal, CardinalArith
paulson
parents: 13216
diff changeset
   855
lemma cardinal_lt_imp_Diff_not_0 [rule_format]:
e29378f347e4 conversion of Cardinal, CardinalArith
paulson
parents: 13216
diff changeset
   856
     "Finite(B) ==> ALL A. |B|<|A| --> A - B ~= 0"
e29378f347e4 conversion of Cardinal, CardinalArith
paulson
parents: 13216
diff changeset
   857
apply (erule Finite_induct, auto)
13216
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   858
apply (simp_all add: Finite_imp_cardinal_cons)
13221
e29378f347e4 conversion of Cardinal, CardinalArith
paulson
parents: 13216
diff changeset
   859
apply (case_tac "Finite (A)")
e29378f347e4 conversion of Cardinal, CardinalArith
paulson
parents: 13216
diff changeset
   860
 apply (subgoal_tac [2] "Finite (cons (x, B))")
e29378f347e4 conversion of Cardinal, CardinalArith
paulson
parents: 13216
diff changeset
   861
  apply (drule_tac [2] B = "cons (x, B) " in Diff_Finite)
e29378f347e4 conversion of Cardinal, CardinalArith
paulson
parents: 13216
diff changeset
   862
   apply (auto simp add: Finite_0 Finite_cons)
13216
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   863
apply (subgoal_tac "|B|<|A|")
13221
e29378f347e4 conversion of Cardinal, CardinalArith
paulson
parents: 13216
diff changeset
   864
 prefer 2 apply (blast intro: lt_trans Ord_cardinal)
13216
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   865
apply (case_tac "x:A")
13221
e29378f347e4 conversion of Cardinal, CardinalArith
paulson
parents: 13216
diff changeset
   866
 apply (subgoal_tac [2] "A - cons (x, B) = A - B")
e29378f347e4 conversion of Cardinal, CardinalArith
paulson
parents: 13216
diff changeset
   867
  apply auto
13216
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   868
apply (subgoal_tac "|A| le |cons (x, B) |")
13221
e29378f347e4 conversion of Cardinal, CardinalArith
paulson
parents: 13216
diff changeset
   869
 prefer 2
13216
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   870
 apply (blast dest: Finite_cons [THEN Finite_imp_well_ord] 
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   871
              intro: well_ord_lepoll_imp_Card_le subset_imp_lepoll)
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   872
apply (auto simp add: Finite_imp_cardinal_cons)
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   873
apply (auto dest!: Finite_cardinal_in_nat simp add: le_iff)
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   874
apply (blast intro: lt_trans)
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   875
done
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   876
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   877
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   878
ML{*
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   879
val InfCard_def = thm "InfCard_def"
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   880
val cmult_def = thm "cmult_def"
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   881
val cadd_def = thm "cadd_def"
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   882
val jump_cardinal_def = thm "jump_cardinal_def"
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   883
val csucc_def = thm "csucc_def"
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   884
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   885
val sum_commute_eqpoll = thm "sum_commute_eqpoll";
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   886
val cadd_commute = thm "cadd_commute";
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   887
val sum_assoc_eqpoll = thm "sum_assoc_eqpoll";
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   888
val well_ord_cadd_assoc = thm "well_ord_cadd_assoc";
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   889
val sum_0_eqpoll = thm "sum_0_eqpoll";
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   890
val cadd_0 = thm "cadd_0";
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   891
val sum_lepoll_self = thm "sum_lepoll_self";
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   892
val cadd_le_self = thm "cadd_le_self";
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   893
val sum_lepoll_mono = thm "sum_lepoll_mono";
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   894
val cadd_le_mono = thm "cadd_le_mono";
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   895
val eq_imp_not_mem = thm "eq_imp_not_mem";
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   896
val sum_succ_eqpoll = thm "sum_succ_eqpoll";
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   897
val nat_cadd_eq_add = thm "nat_cadd_eq_add";
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   898
val prod_commute_eqpoll = thm "prod_commute_eqpoll";
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   899
val cmult_commute = thm "cmult_commute";
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   900
val prod_assoc_eqpoll = thm "prod_assoc_eqpoll";
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   901
val well_ord_cmult_assoc = thm "well_ord_cmult_assoc";
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   902
val sum_prod_distrib_eqpoll = thm "sum_prod_distrib_eqpoll";
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   903
val well_ord_cadd_cmult_distrib = thm "well_ord_cadd_cmult_distrib";
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   904
val prod_0_eqpoll = thm "prod_0_eqpoll";
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   905
val cmult_0 = thm "cmult_0";
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   906
val prod_singleton_eqpoll = thm "prod_singleton_eqpoll";
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   907
val cmult_1 = thm "cmult_1";
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   908
val prod_lepoll_self = thm "prod_lepoll_self";
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   909
val cmult_le_self = thm "cmult_le_self";
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   910
val prod_lepoll_mono = thm "prod_lepoll_mono";
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   911
val cmult_le_mono = thm "cmult_le_mono";
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   912
val prod_succ_eqpoll = thm "prod_succ_eqpoll";
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   913
val nat_cmult_eq_mult = thm "nat_cmult_eq_mult";
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   914
val cmult_2 = thm "cmult_2";
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   915
val sum_lepoll_prod = thm "sum_lepoll_prod";
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   916
val lepoll_imp_sum_lepoll_prod = thm "lepoll_imp_sum_lepoll_prod";
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   917
val nat_cons_lepoll = thm "nat_cons_lepoll";
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   918
val nat_cons_eqpoll = thm "nat_cons_eqpoll";
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   919
val nat_succ_eqpoll = thm "nat_succ_eqpoll";
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   920
val InfCard_nat = thm "InfCard_nat";
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   921
val InfCard_is_Card = thm "InfCard_is_Card";
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   922
val InfCard_Un = thm "InfCard_Un";
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   923
val InfCard_is_Limit = thm "InfCard_is_Limit";
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   924
val ordermap_eqpoll_pred = thm "ordermap_eqpoll_pred";
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   925
val ordermap_z_lt = thm "ordermap_z_lt";
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   926
val InfCard_le_cmult_eq = thm "InfCard_le_cmult_eq";
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   927
val InfCard_cmult_eq = thm "InfCard_cmult_eq";
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   928
val InfCard_cdouble_eq = thm "InfCard_cdouble_eq";
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   929
val InfCard_le_cadd_eq = thm "InfCard_le_cadd_eq";
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   930
val InfCard_cadd_eq = thm "InfCard_cadd_eq";
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   931
val Ord_jump_cardinal = thm "Ord_jump_cardinal";
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   932
val jump_cardinal_iff = thm "jump_cardinal_iff";
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   933
val K_lt_jump_cardinal = thm "K_lt_jump_cardinal";
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   934
val Card_jump_cardinal = thm "Card_jump_cardinal";
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   935
val csucc_basic = thm "csucc_basic";
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   936
val Card_csucc = thm "Card_csucc";
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   937
val lt_csucc = thm "lt_csucc";
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   938
val Ord_0_lt_csucc = thm "Ord_0_lt_csucc";
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   939
val csucc_le = thm "csucc_le";
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   940
val lt_csucc_iff = thm "lt_csucc_iff";
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   941
val Card_lt_csucc_iff = thm "Card_lt_csucc_iff";
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   942
val InfCard_csucc = thm "InfCard_csucc";
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   943
val Finite_into_Fin = thm "Finite_into_Fin";
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   944
val Fin_into_Finite = thm "Fin_into_Finite";
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   945
val Finite_Fin_iff = thm "Finite_Fin_iff";
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   946
val Finite_Un = thm "Finite_Un";
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   947
val Finite_Union = thm "Finite_Union";
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   948
val Finite_induct = thm "Finite_induct";
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   949
val Fin_imp_not_cons_lepoll = thm "Fin_imp_not_cons_lepoll";
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   950
val Finite_imp_cardinal_cons = thm "Finite_imp_cardinal_cons";
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   951
val Finite_imp_succ_cardinal_Diff = thm "Finite_imp_succ_cardinal_Diff";
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   952
val Finite_imp_cardinal_Diff = thm "Finite_imp_cardinal_Diff";
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   953
val nat_implies_well_ord = thm "nat_implies_well_ord";
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   954
val nat_sum_eqpoll_sum = thm "nat_sum_eqpoll_sum";
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   955
val Diff_sing_Finite = thm "Diff_sing_Finite";
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   956
val Diff_Finite = thm "Diff_Finite";
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   957
val Ord_subset_natD = thm "Ord_subset_natD";
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   958
val Ord_nat_subset_into_Card = thm "Ord_nat_subset_into_Card";
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   959
val Finite_cardinal_in_nat = thm "Finite_cardinal_in_nat";
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   960
val Finite_Diff_sing_eq_diff_1 = thm "Finite_Diff_sing_eq_diff_1";
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   961
val cardinal_lt_imp_Diff_not_0 = thm "cardinal_lt_imp_Diff_not_0";
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   962
*}
6104bd4088a2 conversion of CardinalArith to Isar script
paulson
parents: 13161
diff changeset
   963
437
435875e4b21d modifications for cardinal arithmetic
lcp
parents:
diff changeset
   964
end