src/ZF/Constructible/Wellorderings.thy
author paulson
Fri, 16 Aug 2002 16:41:48 +0200
changeset 13505 52a16cb7fefb
parent 13428 99e52e78eb65
child 13513 b9e14471629c
permissions -rw-r--r--
Relativized right up to L satisfies V=L!
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
13505
52a16cb7fefb Relativized right up to L satisfies V=L!
paulson
parents: 13428
diff changeset
     1
(*  Title:      ZF/Constructible/Wellorderings.thy
52a16cb7fefb Relativized right up to L satisfies V=L!
paulson
parents: 13428
diff changeset
     2
    ID:         $Id$
52a16cb7fefb Relativized right up to L satisfies V=L!
paulson
parents: 13428
diff changeset
     3
    Author:     Lawrence C Paulson, Cambridge University Computer Laboratory
52a16cb7fefb Relativized right up to L satisfies V=L!
paulson
parents: 13428
diff changeset
     4
    Copyright   2002  University of Cambridge
52a16cb7fefb Relativized right up to L satisfies V=L!
paulson
parents: 13428
diff changeset
     5
*)
52a16cb7fefb Relativized right up to L satisfies V=L!
paulson
parents: 13428
diff changeset
     6
13223
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
     7
header {*Relativized Wellorderings*}
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
     8
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
     9
theory Wellorderings = Relative:
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
    10
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
    11
text{*We define functions analogous to @{term ordermap} @{term ordertype} 
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
    12
      but without using recursion.  Instead, there is a direct appeal
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
    13
      to Replacement.  This will be the basis for a version relativized
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
    14
      to some class @{text M}.  The main result is Theorem I 7.6 in Kunen,
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
    15
      page 17.*}
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
    16
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
    17
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
    18
subsection{*Wellorderings*}
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
    19
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
    20
constdefs
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
    21
  irreflexive :: "[i=>o,i,i]=>o"
13299
3a932abf97e8 More use of relativized quantifiers
paulson
parents: 13298
diff changeset
    22
    "irreflexive(M,A,r) == \<forall>x[M]. x\<in>A --> <x,x> \<notin> r"
13223
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
    23
  
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
    24
  transitive_rel :: "[i=>o,i,i]=>o"
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
    25
    "transitive_rel(M,A,r) == 
13299
3a932abf97e8 More use of relativized quantifiers
paulson
parents: 13298
diff changeset
    26
	\<forall>x[M]. x\<in>A --> (\<forall>y[M]. y\<in>A --> (\<forall>z[M]. z\<in>A --> 
13223
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
    27
                          <x,y>\<in>r --> <y,z>\<in>r --> <x,z>\<in>r))"
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
    28
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
    29
  linear_rel :: "[i=>o,i,i]=>o"
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
    30
    "linear_rel(M,A,r) == 
13299
3a932abf97e8 More use of relativized quantifiers
paulson
parents: 13298
diff changeset
    31
	\<forall>x[M]. x\<in>A --> (\<forall>y[M]. y\<in>A --> <x,y>\<in>r | x=y | <y,x>\<in>r)"
13223
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
    32
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
    33
  wellfounded :: "[i=>o,i]=>o"
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
    34
    --{*EVERY non-empty set has an @{text r}-minimal element*}
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
    35
    "wellfounded(M,r) == 
13299
3a932abf97e8 More use of relativized quantifiers
paulson
parents: 13298
diff changeset
    36
	\<forall>x[M]. ~ empty(M,x) 
3a932abf97e8 More use of relativized quantifiers
paulson
parents: 13298
diff changeset
    37
                 --> (\<exists>y[M]. y\<in>x & ~(\<exists>z[M]. z\<in>x & <z,y> \<in> r))"
13223
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
    38
  wellfounded_on :: "[i=>o,i,i]=>o"
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
    39
    --{*every non-empty SUBSET OF @{text A} has an @{text r}-minimal element*}
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
    40
    "wellfounded_on(M,A,r) == 
13299
3a932abf97e8 More use of relativized quantifiers
paulson
parents: 13298
diff changeset
    41
	\<forall>x[M]. ~ empty(M,x) --> subset(M,x,A)
3a932abf97e8 More use of relativized quantifiers
paulson
parents: 13298
diff changeset
    42
                 --> (\<exists>y[M]. y\<in>x & ~(\<exists>z[M]. z\<in>x & <z,y> \<in> r))"
13223
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
    43
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
    44
  wellordered :: "[i=>o,i,i]=>o"
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
    45
    --{*every non-empty subset of @{text A} has an @{text r}-minimal element*}
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
    46
    "wellordered(M,A,r) == 
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
    47
	transitive_rel(M,A,r) & linear_rel(M,A,r) & wellfounded_on(M,A,r)"
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
    48
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
    49
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
    50
subsubsection {*Trivial absoluteness proofs*}
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
    51
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
    52
lemma (in M_axioms) irreflexive_abs [simp]: 
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
    53
     "M(A) ==> irreflexive(M,A,r) <-> irrefl(A,r)"
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
    54
by (simp add: irreflexive_def irrefl_def)
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
    55
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
    56
lemma (in M_axioms) transitive_rel_abs [simp]: 
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
    57
     "M(A) ==> transitive_rel(M,A,r) <-> trans[A](r)"
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
    58
by (simp add: transitive_rel_def trans_on_def)
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
    59
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
    60
lemma (in M_axioms) linear_rel_abs [simp]: 
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
    61
     "M(A) ==> linear_rel(M,A,r) <-> linear(A,r)"
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
    62
by (simp add: linear_rel_def linear_def)
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
    63
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
    64
lemma (in M_axioms) wellordered_is_trans_on: 
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
    65
    "[| wellordered(M,A,r); M(A) |] ==> trans[A](r)"
13505
52a16cb7fefb Relativized right up to L satisfies V=L!
paulson
parents: 13428
diff changeset
    66
by (auto simp add: wellordered_def)
13223
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
    67
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
    68
lemma (in M_axioms) wellordered_is_linear: 
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
    69
    "[| wellordered(M,A,r); M(A) |] ==> linear(A,r)"
13505
52a16cb7fefb Relativized right up to L satisfies V=L!
paulson
parents: 13428
diff changeset
    70
by (auto simp add: wellordered_def)
13223
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
    71
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
    72
lemma (in M_axioms) wellordered_is_wellfounded_on: 
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
    73
    "[| wellordered(M,A,r); M(A) |] ==> wellfounded_on(M,A,r)"
13505
52a16cb7fefb Relativized right up to L satisfies V=L!
paulson
parents: 13428
diff changeset
    74
by (auto simp add: wellordered_def)
13223
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
    75
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
    76
lemma (in M_axioms) wellfounded_imp_wellfounded_on: 
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
    77
    "[| wellfounded(M,r); M(A) |] ==> wellfounded_on(M,A,r)"
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
    78
by (auto simp add: wellfounded_def wellfounded_on_def)
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
    79
13269
3ba9be497c33 Tidying and introduction of various new theorems
paulson
parents: 13251
diff changeset
    80
lemma (in M_axioms) wellfounded_on_subset_A:
3ba9be497c33 Tidying and introduction of various new theorems
paulson
parents: 13251
diff changeset
    81
     "[| wellfounded_on(M,A,r);  B<=A |] ==> wellfounded_on(M,B,r)"
3ba9be497c33 Tidying and introduction of various new theorems
paulson
parents: 13251
diff changeset
    82
by (simp add: wellfounded_on_def, blast)
3ba9be497c33 Tidying and introduction of various new theorems
paulson
parents: 13251
diff changeset
    83
13223
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
    84
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
    85
subsubsection {*Well-founded relations*}
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
    86
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
    87
lemma  (in M_axioms) wellfounded_on_iff_wellfounded:
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
    88
     "wellfounded_on(M,A,r) <-> wellfounded(M, r \<inter> A*A)"
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
    89
apply (simp add: wellfounded_on_def wellfounded_def, safe)
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
    90
 apply blast 
13299
3a932abf97e8 More use of relativized quantifiers
paulson
parents: 13298
diff changeset
    91
apply (drule_tac x=x in rspec, assumption, blast) 
13223
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
    92
done
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
    93
13247
e3c289f0724b towards absoluteness of wfrec-defined functions
paulson
parents: 13245
diff changeset
    94
lemma (in M_axioms) wellfounded_on_imp_wellfounded:
e3c289f0724b towards absoluteness of wfrec-defined functions
paulson
parents: 13245
diff changeset
    95
     "[|wellfounded_on(M,A,r); r \<subseteq> A*A|] ==> wellfounded(M,r)"
e3c289f0724b towards absoluteness of wfrec-defined functions
paulson
parents: 13245
diff changeset
    96
by (simp add: wellfounded_on_iff_wellfounded subset_Int_iff)
e3c289f0724b towards absoluteness of wfrec-defined functions
paulson
parents: 13245
diff changeset
    97
13269
3ba9be497c33 Tidying and introduction of various new theorems
paulson
parents: 13251
diff changeset
    98
lemma (in M_axioms) wellfounded_on_field_imp_wellfounded:
3ba9be497c33 Tidying and introduction of various new theorems
paulson
parents: 13251
diff changeset
    99
     "wellfounded_on(M, field(r), r) ==> wellfounded(M,r)"
3ba9be497c33 Tidying and introduction of various new theorems
paulson
parents: 13251
diff changeset
   100
by (simp add: wellfounded_def wellfounded_on_iff_wellfounded, fast)
3ba9be497c33 Tidying and introduction of various new theorems
paulson
parents: 13251
diff changeset
   101
3ba9be497c33 Tidying and introduction of various new theorems
paulson
parents: 13251
diff changeset
   102
lemma (in M_axioms) wellfounded_iff_wellfounded_on_field:
3ba9be497c33 Tidying and introduction of various new theorems
paulson
parents: 13251
diff changeset
   103
     "M(r) ==> wellfounded(M,r) <-> wellfounded_on(M, field(r), r)"
3ba9be497c33 Tidying and introduction of various new theorems
paulson
parents: 13251
diff changeset
   104
by (blast intro: wellfounded_imp_wellfounded_on
3ba9be497c33 Tidying and introduction of various new theorems
paulson
parents: 13251
diff changeset
   105
                 wellfounded_on_field_imp_wellfounded)
3ba9be497c33 Tidying and introduction of various new theorems
paulson
parents: 13251
diff changeset
   106
13251
74cb2af8811e new treatment of wfrec, replacing wf[A](r) by wf(r)
paulson
parents: 13247
diff changeset
   107
(*Consider the least z in domain(r) such that P(z) does not hold...*)
74cb2af8811e new treatment of wfrec, replacing wf[A](r) by wf(r)
paulson
parents: 13247
diff changeset
   108
lemma (in M_axioms) wellfounded_induct: 
74cb2af8811e new treatment of wfrec, replacing wf[A](r) by wf(r)
paulson
parents: 13247
diff changeset
   109
     "[| wellfounded(M,r); M(a); M(r); separation(M, \<lambda>x. ~P(x));  
74cb2af8811e new treatment of wfrec, replacing wf[A](r) by wf(r)
paulson
parents: 13247
diff changeset
   110
         \<forall>x. M(x) & (\<forall>y. <y,x> \<in> r --> P(y)) --> P(x) |]
74cb2af8811e new treatment of wfrec, replacing wf[A](r) by wf(r)
paulson
parents: 13247
diff changeset
   111
      ==> P(a)";
74cb2af8811e new treatment of wfrec, replacing wf[A](r) by wf(r)
paulson
parents: 13247
diff changeset
   112
apply (simp (no_asm_use) add: wellfounded_def)
13299
3a932abf97e8 More use of relativized quantifiers
paulson
parents: 13298
diff changeset
   113
apply (drule_tac x="{z \<in> domain(r). ~P(z)}" in rspec)
3a932abf97e8 More use of relativized quantifiers
paulson
parents: 13298
diff changeset
   114
apply (blast dest: transM)+
13251
74cb2af8811e new treatment of wfrec, replacing wf[A](r) by wf(r)
paulson
parents: 13247
diff changeset
   115
done
74cb2af8811e new treatment of wfrec, replacing wf[A](r) by wf(r)
paulson
parents: 13247
diff changeset
   116
13223
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   117
lemma (in M_axioms) wellfounded_on_induct: 
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   118
     "[| a\<in>A;  wellfounded_on(M,A,r);  M(A);  
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   119
       separation(M, \<lambda>x. x\<in>A --> ~P(x));  
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   120
       \<forall>x\<in>A. M(x) & (\<forall>y\<in>A. <y,x> \<in> r --> P(y)) --> P(x) |]
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   121
      ==> P(a)";
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   122
apply (simp (no_asm_use) add: wellfounded_on_def)
13299
3a932abf97e8 More use of relativized quantifiers
paulson
parents: 13298
diff changeset
   123
apply (drule_tac x="{z\<in>A. z\<in>A --> ~P(z)}" in rspec)
3a932abf97e8 More use of relativized quantifiers
paulson
parents: 13298
diff changeset
   124
apply (blast intro: transM)+
13223
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   125
done
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   126
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   127
text{*The assumption @{term "r \<subseteq> A*A"} justifies strengthening the induction
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   128
      hypothesis by removing the restriction to @{term A}.*}
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   129
lemma (in M_axioms) wellfounded_on_induct2: 
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   130
     "[| a\<in>A;  wellfounded_on(M,A,r);  M(A);  r \<subseteq> A*A;  
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   131
       separation(M, \<lambda>x. x\<in>A --> ~P(x));  
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   132
       \<forall>x\<in>A. M(x) & (\<forall>y. <y,x> \<in> r --> P(y)) --> P(x) |]
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   133
      ==> P(a)";
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   134
by (rule wellfounded_on_induct, assumption+, blast)
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   135
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   136
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   137
subsubsection {*Kunen's lemma IV 3.14, page 123*}
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   138
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   139
lemma (in M_axioms) linear_imp_relativized: 
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   140
     "linear(A,r) ==> linear_rel(M,A,r)" 
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   141
by (simp add: linear_def linear_rel_def) 
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   142
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   143
lemma (in M_axioms) trans_on_imp_relativized: 
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   144
     "trans[A](r) ==> transitive_rel(M,A,r)" 
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   145
by (unfold transitive_rel_def trans_on_def, blast) 
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   146
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   147
lemma (in M_axioms) wf_on_imp_relativized: 
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   148
     "wf[A](r) ==> wellfounded_on(M,A,r)" 
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   149
apply (simp add: wellfounded_on_def wf_def wf_on_def, clarify) 
13339
0f89104dd377 Fixed quantified variable name preservation for ball and bex (bounded quants)
paulson
parents: 13306
diff changeset
   150
apply (drule_tac x=x in spec, blast) 
13223
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   151
done
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   152
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   153
lemma (in M_axioms) wf_imp_relativized: 
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   154
     "wf(r) ==> wellfounded(M,r)" 
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   155
apply (simp add: wellfounded_def wf_def, clarify) 
13339
0f89104dd377 Fixed quantified variable name preservation for ball and bex (bounded quants)
paulson
parents: 13306
diff changeset
   156
apply (drule_tac x=x in spec, blast) 
13223
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   157
done
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   158
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   159
lemma (in M_axioms) well_ord_imp_relativized: 
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   160
     "well_ord(A,r) ==> wellordered(M,A,r)" 
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   161
by (simp add: wellordered_def well_ord_def tot_ord_def part_ord_def
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   162
       linear_imp_relativized trans_on_imp_relativized wf_on_imp_relativized)
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   163
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   164
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   165
subsection{* Relativized versions of order-isomorphisms and order types *}
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   166
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   167
lemma (in M_axioms) order_isomorphism_abs [simp]: 
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   168
     "[| M(A); M(B); M(f) |] 
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   169
      ==> order_isomorphism(M,A,r,B,s,f) <-> f \<in> ord_iso(A,r,B,s)"
13352
3cd767f8d78b new definitions of fun_apply and M_is_recfun
paulson
parents: 13339
diff changeset
   170
by (simp add: apply_closed order_isomorphism_def ord_iso_def)
13223
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   171
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   172
lemma (in M_axioms) pred_set_abs [simp]: 
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   173
     "[| M(r); M(B) |] ==> pred_set(M,A,x,r,B) <-> B = Order.pred(A,x,r)"
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   174
apply (simp add: pred_set_def Order.pred_def)
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   175
apply (blast dest: transM) 
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   176
done
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   177
13245
714f7a423a15 development and tweaks
paulson
parents: 13223
diff changeset
   178
lemma (in M_axioms) pred_closed [intro,simp]: 
13223
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   179
     "[| M(A); M(r); M(x) |] ==> M(Order.pred(A,x,r))"
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   180
apply (simp add: Order.pred_def) 
13245
714f7a423a15 development and tweaks
paulson
parents: 13223
diff changeset
   181
apply (insert pred_separation [of r x], simp) 
13223
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   182
done
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   183
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   184
lemma (in M_axioms) membership_abs [simp]: 
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   185
     "[| M(r); M(A) |] ==> membership(M,A,r) <-> r = Memrel(A)"
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   186
apply (simp add: membership_def Memrel_def, safe)
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   187
  apply (rule equalityI) 
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   188
   apply clarify 
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   189
   apply (frule transM, assumption)
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   190
   apply blast
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   191
  apply clarify 
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   192
  apply (subgoal_tac "M(<xb,ya>)", blast) 
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   193
  apply (blast dest: transM) 
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   194
 apply auto 
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   195
done
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   196
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   197
lemma (in M_axioms) M_Memrel_iff:
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   198
     "M(A) ==> 
13298
b4f370679c65 Constructible: some separation axioms
paulson
parents: 13295
diff changeset
   199
      Memrel(A) = {z \<in> A*A. \<exists>x[M]. \<exists>y[M]. z = \<langle>x,y\<rangle> & x \<in> y}"
13223
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   200
apply (simp add: Memrel_def) 
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   201
apply (blast dest: transM)
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   202
done 
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   203
13245
714f7a423a15 development and tweaks
paulson
parents: 13223
diff changeset
   204
lemma (in M_axioms) Memrel_closed [intro,simp]: 
13223
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   205
     "M(A) ==> M(Memrel(A))"
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   206
apply (simp add: M_Memrel_iff) 
13245
714f7a423a15 development and tweaks
paulson
parents: 13223
diff changeset
   207
apply (insert Memrel_separation, simp)
13223
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   208
done
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   209
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   210
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   211
subsection {* Main results of Kunen, Chapter 1 section 6 *}
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   212
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   213
text{*Subset properties-- proved outside the locale*}
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   214
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   215
lemma linear_rel_subset: 
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   216
    "[| linear_rel(M,A,r);  B<=A |] ==> linear_rel(M,B,r)"
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   217
by (unfold linear_rel_def, blast)
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   218
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   219
lemma transitive_rel_subset: 
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   220
    "[| transitive_rel(M,A,r);  B<=A |] ==> transitive_rel(M,B,r)"
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   221
by (unfold transitive_rel_def, blast)
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   222
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   223
lemma wellfounded_on_subset: 
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   224
    "[| wellfounded_on(M,A,r);  B<=A |] ==> wellfounded_on(M,B,r)"
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   225
by (unfold wellfounded_on_def subset_def, blast)
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   226
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   227
lemma wellordered_subset: 
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   228
    "[| wellordered(M,A,r);  B<=A |] ==> wellordered(M,B,r)"
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   229
apply (unfold wellordered_def)
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   230
apply (blast intro: linear_rel_subset transitive_rel_subset 
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   231
		    wellfounded_on_subset)
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   232
done
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   233
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   234
text{*Inductive argument for Kunen's Lemma 6.1, etc.
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   235
      Simple proof from Halmos, page 72*}
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   236
lemma  (in M_axioms) wellordered_iso_subset_lemma: 
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   237
     "[| wellordered(M,A,r);  f \<in> ord_iso(A,r, A',r);  A'<= A;  y \<in> A;  
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   238
       M(A);  M(f);  M(r) |] ==> ~ <f`y, y> \<in> r"
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   239
apply (unfold wellordered_def ord_iso_def)
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   240
apply (elim conjE CollectE) 
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   241
apply (erule wellfounded_on_induct, assumption+)
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   242
 apply (insert well_ord_iso_separation [of A f r])
13352
3cd767f8d78b new definitions of fun_apply and M_is_recfun
paulson
parents: 13339
diff changeset
   243
 apply (simp, clarify) 
13223
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   244
apply (drule_tac a = x in bij_is_fun [THEN apply_type], assumption, blast)
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   245
done
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   246
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   247
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   248
text{*Kunen's Lemma 6.1: there's no order-isomorphism to an initial segment
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   249
      of a well-ordering*}
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   250
lemma (in M_axioms) wellordered_iso_predD:
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   251
     "[| wellordered(M,A,r);  f \<in> ord_iso(A, r, Order.pred(A,x,r), r);  
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   252
       M(A);  M(f);  M(r) |] ==> x \<notin> A"
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   253
apply (rule notI) 
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   254
apply (frule wellordered_iso_subset_lemma, assumption)
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   255
apply (auto elim: predE)  
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   256
(*Now we know  ~ (f`x < x) *)
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   257
apply (drule ord_iso_is_bij [THEN bij_is_fun, THEN apply_type], assumption)
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   258
(*Now we also know f`x  \<in> pred(A,x,r);  contradiction! *)
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   259
apply (simp add: Order.pred_def)
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   260
done
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   261
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   262
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   263
lemma (in M_axioms) wellordered_iso_pred_eq_lemma:
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   264
     "[| f \<in> \<langle>Order.pred(A,y,r), r\<rangle> \<cong> \<langle>Order.pred(A,x,r), r\<rangle>;
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   265
       wellordered(M,A,r); x\<in>A; y\<in>A; M(A); M(f); M(r) |] ==> <x,y> \<notin> r"
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   266
apply (frule wellordered_is_trans_on, assumption)
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   267
apply (rule notI) 
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   268
apply (drule_tac x2=y and x=x and r2=r in 
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   269
         wellordered_subset [OF _ pred_subset, THEN wellordered_iso_predD]) 
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   270
apply (simp add: trans_pred_pred_eq) 
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   271
apply (blast intro: predI dest: transM)+
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   272
done
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   273
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   274
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   275
text{*Simple consequence of Lemma 6.1*}
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   276
lemma (in M_axioms) wellordered_iso_pred_eq:
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   277
     "[| wellordered(M,A,r);
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   278
       f \<in> ord_iso(Order.pred(A,a,r), r, Order.pred(A,c,r), r);   
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   279
       M(A);  M(f);  M(r);  a\<in>A;  c\<in>A |] ==> a=c"
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   280
apply (frule wellordered_is_trans_on, assumption)
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   281
apply (frule wellordered_is_linear, assumption)
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   282
apply (erule_tac x=a and y=c in linearE, auto) 
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   283
apply (drule ord_iso_sym)
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   284
(*two symmetric cases*)
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   285
apply (blast dest: wellordered_iso_pred_eq_lemma)+ 
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   286
done
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   287
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   288
lemma (in M_axioms) wellfounded_on_asym:
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   289
     "[| wellfounded_on(M,A,r);  <a,x>\<in>r;  a\<in>A; x\<in>A;  M(A) |] ==> <x,a>\<notin>r"
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   290
apply (simp add: wellfounded_on_def) 
13299
3a932abf97e8 More use of relativized quantifiers
paulson
parents: 13298
diff changeset
   291
apply (drule_tac x="{x,a}" in rspec) 
3a932abf97e8 More use of relativized quantifiers
paulson
parents: 13298
diff changeset
   292
apply (blast dest: transM)+
13223
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   293
done
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   294
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   295
lemma (in M_axioms) wellordered_asym:
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   296
     "[| wellordered(M,A,r);  <a,x>\<in>r;  a\<in>A; x\<in>A;  M(A) |] ==> <x,a>\<notin>r"
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   297
by (simp add: wellordered_def, blast dest: wellfounded_on_asym)
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   298
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   299
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   300
text{*Surely a shorter proof using lemmas in @{text Order}?
13295
ca2e9b273472 document setup;
wenzelm
parents: 13293
diff changeset
   301
     Like @{text well_ord_iso_preserving}?*}
13223
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   302
lemma (in M_axioms) ord_iso_pred_imp_lt:
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   303
     "[| f \<in> ord_iso(Order.pred(A,x,r), r, i, Memrel(i));
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   304
       g \<in> ord_iso(Order.pred(A,y,r), r, j, Memrel(j));
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   305
       wellordered(M,A,r);  x \<in> A;  y \<in> A; M(A); M(r); M(f); M(g); M(j);
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   306
       Ord(i); Ord(j); \<langle>x,y\<rangle> \<in> r |]
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   307
      ==> i < j"
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   308
apply (frule wellordered_is_trans_on, assumption)
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   309
apply (frule_tac y=y in transM, assumption) 
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   310
apply (rule_tac i=i and j=j in Ord_linear_lt, auto)  
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   311
txt{*case @{term "i=j"} yields a contradiction*}
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   312
 apply (rule_tac x1=x and A1="Order.pred(A,y,r)" in 
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   313
          wellordered_iso_predD [THEN notE]) 
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   314
   apply (blast intro: wellordered_subset [OF _ pred_subset]) 
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   315
  apply (simp add: trans_pred_pred_eq)
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   316
  apply (blast intro: Ord_iso_implies_eq ord_iso_sym ord_iso_trans) 
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   317
 apply (simp_all add: pred_iff pred_closed converse_closed comp_closed)
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   318
txt{*case @{term "j<i"} also yields a contradiction*}
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   319
apply (frule restrict_ord_iso2, assumption+) 
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   320
apply (frule ord_iso_sym [THEN ord_iso_is_bij, THEN bij_is_fun]) 
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   321
apply (frule apply_type, blast intro: ltD) 
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   322
  --{*thus @{term "converse(f)`j \<in> Order.pred(A,x,r)"}*}
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   323
apply (simp add: pred_iff) 
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   324
apply (subgoal_tac
13299
3a932abf97e8 More use of relativized quantifiers
paulson
parents: 13298
diff changeset
   325
       "\<exists>h[M]. h \<in> ord_iso(Order.pred(A,y,r), r, 
13223
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   326
                               Order.pred(A, converse(f)`j, r), r)")
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   327
 apply (clarify, frule wellordered_iso_pred_eq, assumption+)
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   328
 apply (blast dest: wellordered_asym)  
13299
3a932abf97e8 More use of relativized quantifiers
paulson
parents: 13298
diff changeset
   329
apply (intro rexI)
3a932abf97e8 More use of relativized quantifiers
paulson
parents: 13298
diff changeset
   330
 apply (blast intro: Ord_iso_implies_eq ord_iso_sym ord_iso_trans)+
13223
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   331
done
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   332
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   333
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   334
lemma ord_iso_converse1:
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   335
     "[| f: ord_iso(A,r,B,s);  <b, f`a>: s;  a:A;  b:B |] 
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   336
      ==> <converse(f) ` b, a> : r"
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   337
apply (frule ord_iso_converse, assumption+) 
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   338
apply (blast intro: ord_iso_is_bij [THEN bij_is_fun, THEN apply_funtype]) 
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   339
apply (simp add: left_inverse_bij [OF ord_iso_is_bij])
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   340
done
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   341
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   342
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   343
subsection {* Order Types: A Direct Construction by Replacement*}
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   344
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   345
text{*This follows Kunen's Theorem I 7.6, page 17.*}
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   346
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   347
constdefs
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   348
  
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   349
  obase :: "[i=>o,i,i,i] => o"
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   350
       --{*the domain of @{text om}, eventually shown to equal @{text A}*}
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   351
   "obase(M,A,r,z) == 
13293
paulson
parents: 13269
diff changeset
   352
	\<forall>a[M]. 
paulson
parents: 13269
diff changeset
   353
         a \<in> z <-> 
13306
6eebcddee32b more internalized formulas and separation proofs
paulson
parents: 13299
diff changeset
   354
          (a\<in>A & (\<exists>x[M]. \<exists>g[M]. \<exists>mx[M]. \<exists>par[M]. 
6eebcddee32b more internalized formulas and separation proofs
paulson
parents: 13299
diff changeset
   355
                   ordinal(M,x) & membership(M,x,mx) & pred_set(M,A,a,r,par) &
6eebcddee32b more internalized formulas and separation proofs
paulson
parents: 13299
diff changeset
   356
                   order_isomorphism(M,par,r,x,mx,g)))"
13223
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   357
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   358
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   359
  omap :: "[i=>o,i,i,i] => o"  
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   360
    --{*the function that maps wosets to order types*}
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   361
   "omap(M,A,r,f) == 
13293
paulson
parents: 13269
diff changeset
   362
	\<forall>z[M].
paulson
parents: 13269
diff changeset
   363
         z \<in> f <-> 
13299
3a932abf97e8 More use of relativized quantifiers
paulson
parents: 13298
diff changeset
   364
          (\<exists>a[M]. a\<in>A & 
13306
6eebcddee32b more internalized formulas and separation proofs
paulson
parents: 13299
diff changeset
   365
           (\<exists>x[M]. \<exists>g[M]. \<exists>mx[M]. \<exists>par[M]. 
6eebcddee32b more internalized formulas and separation proofs
paulson
parents: 13299
diff changeset
   366
                ordinal(M,x) & pair(M,a,x,z) & membership(M,x,mx) & 
6eebcddee32b more internalized formulas and separation proofs
paulson
parents: 13299
diff changeset
   367
                pred_set(M,A,a,r,par) & order_isomorphism(M,par,r,x,mx,g)))"
13223
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   368
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   369
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   370
  otype :: "[i=>o,i,i,i] => o"  --{*the order types themselves*}
13299
3a932abf97e8 More use of relativized quantifiers
paulson
parents: 13298
diff changeset
   371
   "otype(M,A,r,i) == \<exists>f[M]. omap(M,A,r,f) & is_range(M,f,i)"
13223
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   372
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   373
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   374
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   375
lemma (in M_axioms) obase_iff:
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   376
     "[| M(A); M(r); M(z) |] 
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   377
      ==> obase(M,A,r,z) <-> 
13306
6eebcddee32b more internalized formulas and separation proofs
paulson
parents: 13299
diff changeset
   378
          z = {a\<in>A. \<exists>x[M]. \<exists>g[M]. Ord(x) & 
13223
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   379
                          g \<in> ord_iso(Order.pred(A,a,r),r,x,Memrel(x))}"
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   380
apply (simp add: obase_def Memrel_closed pred_closed)
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   381
apply (rule iffI) 
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   382
 prefer 2 apply blast 
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   383
apply (rule equalityI) 
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   384
 apply (clarify, frule transM, assumption, rotate_tac -1, simp) 
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   385
apply (clarify, frule transM, assumption, force)
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   386
done
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   387
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   388
text{*Can also be proved with the premise @{term "M(z)"} instead of
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   389
      @{term "M(f)"}, but that version is less useful.*}
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   390
lemma (in M_axioms) omap_iff:
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   391
     "[| omap(M,A,r,f); M(A); M(r); M(f) |] 
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   392
      ==> z \<in> f <->
13306
6eebcddee32b more internalized formulas and separation proofs
paulson
parents: 13299
diff changeset
   393
      (\<exists>a\<in>A. \<exists>x[M]. \<exists>g[M]. z = <a,x> & Ord(x) & 
6eebcddee32b more internalized formulas and separation proofs
paulson
parents: 13299
diff changeset
   394
                        g \<in> ord_iso(Order.pred(A,a,r),r,x,Memrel(x)))"
13223
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   395
apply (rotate_tac 1) 
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   396
apply (simp add: omap_def Memrel_closed pred_closed) 
13293
paulson
parents: 13269
diff changeset
   397
apply (rule iffI)
paulson
parents: 13269
diff changeset
   398
 apply (drule_tac [2] x=z in rspec)
paulson
parents: 13269
diff changeset
   399
 apply (drule_tac x=z in rspec)
paulson
parents: 13269
diff changeset
   400
 apply (blast dest: transM)+
13223
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   401
done
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   402
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   403
lemma (in M_axioms) omap_unique:
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   404
     "[| omap(M,A,r,f); omap(M,A,r,f'); M(A); M(r); M(f); M(f') |] ==> f' = f" 
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   405
apply (rule equality_iffI) 
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   406
apply (simp add: omap_iff) 
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   407
done
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   408
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   409
lemma (in M_axioms) omap_yields_Ord:
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   410
     "[| omap(M,A,r,f); \<langle>a,x\<rangle> \<in> f; M(a); M(x) |]  ==> Ord(x)"
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   411
apply (simp add: omap_def, blast) 
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   412
done
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   413
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   414
lemma (in M_axioms) otype_iff:
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   415
     "[| otype(M,A,r,i); M(A); M(r); M(i) |] 
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   416
      ==> x \<in> i <-> 
13306
6eebcddee32b more internalized formulas and separation proofs
paulson
parents: 13299
diff changeset
   417
          (M(x) & Ord(x) & 
6eebcddee32b more internalized formulas and separation proofs
paulson
parents: 13299
diff changeset
   418
           (\<exists>a\<in>A. \<exists>g[M]. g \<in> ord_iso(Order.pred(A,a,r),r,x,Memrel(x))))"
6eebcddee32b more internalized formulas and separation proofs
paulson
parents: 13299
diff changeset
   419
apply (auto simp add: omap_iff otype_def)
6eebcddee32b more internalized formulas and separation proofs
paulson
parents: 13299
diff changeset
   420
 apply (blast intro: transM) 
6eebcddee32b more internalized formulas and separation proofs
paulson
parents: 13299
diff changeset
   421
apply (rule rangeI) 
13223
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   422
apply (frule transM, assumption)
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   423
apply (simp add: omap_iff, blast)
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   424
done
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   425
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   426
lemma (in M_axioms) otype_eq_range:
13306
6eebcddee32b more internalized formulas and separation proofs
paulson
parents: 13299
diff changeset
   427
     "[| omap(M,A,r,f); otype(M,A,r,i); M(A); M(r); M(f); M(i) |] 
6eebcddee32b more internalized formulas and separation proofs
paulson
parents: 13299
diff changeset
   428
      ==> i = range(f)"
13223
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   429
apply (auto simp add: otype_def omap_iff)
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   430
apply (blast dest: omap_unique) 
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   431
done
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   432
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   433
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   434
lemma (in M_axioms) Ord_otype:
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   435
     "[| otype(M,A,r,i); trans[A](r); M(A); M(r); M(i) |] ==> Ord(i)"
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   436
apply (rotate_tac 1) 
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   437
apply (rule OrdI) 
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   438
prefer 2 
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   439
    apply (simp add: Ord_def otype_def omap_def) 
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   440
    apply clarify 
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   441
    apply (frule pair_components_in_M, assumption) 
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   442
    apply blast 
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   443
apply (auto simp add: Transset_def otype_iff) 
13306
6eebcddee32b more internalized formulas and separation proofs
paulson
parents: 13299
diff changeset
   444
  apply (blast intro: transM)
6eebcddee32b more internalized formulas and separation proofs
paulson
parents: 13299
diff changeset
   445
 apply (blast intro: Ord_in_Ord) 
13223
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   446
apply (rename_tac y a g)
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   447
apply (frule ord_iso_sym [THEN ord_iso_is_bij, THEN bij_is_fun, 
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   448
			  THEN apply_funtype],  assumption)  
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   449
apply (rule_tac x="converse(g)`y" in bexI)
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   450
 apply (frule_tac a="converse(g) ` y" in ord_iso_restrict_pred, assumption) 
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   451
apply (safe elim!: predE) 
13306
6eebcddee32b more internalized formulas and separation proofs
paulson
parents: 13299
diff changeset
   452
apply (blast intro: restrict_ord_iso ord_iso_sym ltI dest: transM)
13223
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   453
done
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   454
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   455
lemma (in M_axioms) domain_omap:
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   456
     "[| omap(M,A,r,f);  obase(M,A,r,B); M(A); M(r); M(B); M(f) |] 
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   457
      ==> domain(f) = B"
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   458
apply (rotate_tac 2) 
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   459
apply (simp add: domain_closed obase_iff) 
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   460
apply (rule equality_iffI) 
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   461
apply (simp add: domain_iff omap_iff, blast) 
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   462
done
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   463
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   464
lemma (in M_axioms) omap_subset: 
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   465
     "[| omap(M,A,r,f); obase(M,A,r,B); otype(M,A,r,i); 
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   466
       M(A); M(r); M(f); M(B); M(i) |] ==> f \<subseteq> B * i"
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   467
apply (rotate_tac 3, clarify) 
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   468
apply (simp add: omap_iff obase_iff) 
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   469
apply (force simp add: otype_iff) 
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   470
done
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   471
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   472
lemma (in M_axioms) omap_funtype: 
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   473
     "[| omap(M,A,r,f); obase(M,A,r,B); otype(M,A,r,i); 
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   474
       M(A); M(r); M(f); M(B); M(i) |] ==> f \<in> B -> i"
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   475
apply (rotate_tac 3) 
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   476
apply (simp add: domain_omap omap_subset Pi_iff function_def omap_iff) 
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   477
apply (blast intro: Ord_iso_implies_eq ord_iso_sym ord_iso_trans) 
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   478
done
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   479
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   480
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   481
lemma (in M_axioms) wellordered_omap_bij:
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   482
     "[| wellordered(M,A,r); omap(M,A,r,f); obase(M,A,r,B); otype(M,A,r,i); 
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   483
       M(A); M(r); M(f); M(B); M(i) |] ==> f \<in> bij(B,i)"
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   484
apply (insert omap_funtype [of A r f B i]) 
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   485
apply (auto simp add: bij_def inj_def) 
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   486
prefer 2  apply (blast intro: fun_is_surj dest: otype_eq_range) 
13339
0f89104dd377 Fixed quantified variable name preservation for ball and bex (bounded quants)
paulson
parents: 13306
diff changeset
   487
apply (frule_tac a=w in apply_Pair, assumption) 
0f89104dd377 Fixed quantified variable name preservation for ball and bex (bounded quants)
paulson
parents: 13306
diff changeset
   488
apply (frule_tac a=x in apply_Pair, assumption) 
13223
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   489
apply (simp add: omap_iff) 
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   490
apply (blast intro: wellordered_iso_pred_eq ord_iso_sym ord_iso_trans) 
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   491
done
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   492
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   493
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   494
text{*This is not the final result: we must show @{term "oB(A,r) = A"}*}
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   495
lemma (in M_axioms) omap_ord_iso:
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   496
     "[| wellordered(M,A,r); omap(M,A,r,f); obase(M,A,r,B); otype(M,A,r,i); 
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   497
       M(A); M(r); M(f); M(B); M(i) |] ==> f \<in> ord_iso(B,r,i,Memrel(i))"
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   498
apply (rule ord_isoI)
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   499
 apply (erule wellordered_omap_bij, assumption+) 
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   500
apply (insert omap_funtype [of A r f B i], simp) 
13339
0f89104dd377 Fixed quantified variable name preservation for ball and bex (bounded quants)
paulson
parents: 13306
diff changeset
   501
apply (frule_tac a=x in apply_Pair, assumption) 
0f89104dd377 Fixed quantified variable name preservation for ball and bex (bounded quants)
paulson
parents: 13306
diff changeset
   502
apply (frule_tac a=y in apply_Pair, assumption) 
13223
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   503
apply (auto simp add: omap_iff)
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   504
 txt{*direction 1: assuming @{term "\<langle>x,y\<rangle> \<in> r"}*}
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   505
 apply (blast intro: ltD ord_iso_pred_imp_lt)
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   506
 txt{*direction 2: proving @{term "\<langle>x,y\<rangle> \<in> r"} using linearity of @{term r}*}
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   507
apply (rename_tac x y g ga) 
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   508
apply (frule wellordered_is_linear, assumption, 
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   509
       erule_tac x=x and y=y in linearE, assumption+) 
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   510
txt{*the case @{term "x=y"} leads to immediate contradiction*} 
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   511
apply (blast elim: mem_irrefl) 
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   512
txt{*the case @{term "\<langle>y,x\<rangle> \<in> r"}: handle like the opposite direction*}
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   513
apply (blast dest: ord_iso_pred_imp_lt ltD elim: mem_asym) 
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   514
done
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   515
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   516
lemma (in M_axioms) Ord_omap_image_pred:
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   517
     "[| wellordered(M,A,r); omap(M,A,r,f); obase(M,A,r,B); otype(M,A,r,i); 
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   518
       M(A); M(r); M(f); M(B); M(i); b \<in> A |] ==> Ord(f `` Order.pred(A,b,r))"
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   519
apply (frule wellordered_is_trans_on, assumption)
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   520
apply (rule OrdI) 
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   521
	prefer 2 apply (simp add: image_iff omap_iff Ord_def, blast) 
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   522
txt{*Hard part is to show that the image is a transitive set.*}
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   523
apply (rotate_tac 3)
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   524
apply (simp add: Transset_def, clarify) 
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   525
apply (simp add: image_iff pred_iff apply_iff [OF omap_funtype [of A r f B i]])
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   526
apply (rename_tac c j, clarify)
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   527
apply (frule omap_funtype [of A r f B, THEN apply_funtype], assumption+)
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   528
apply (subgoal_tac "j : i") 
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   529
	prefer 2 apply (blast intro: Ord_trans Ord_otype)
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   530
apply (subgoal_tac "converse(f) ` j : B") 
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   531
	prefer 2 
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   532
	apply (blast dest: wellordered_omap_bij [THEN bij_converse_bij, 
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   533
                                      THEN bij_is_fun, THEN apply_funtype])
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   534
apply (rule_tac x="converse(f) ` j" in bexI) 
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   535
 apply (simp add: right_inverse_bij [OF wellordered_omap_bij]) 
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   536
apply (intro predI conjI)
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   537
 apply (erule_tac b=c in trans_onD) 
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   538
 apply (rule ord_iso_converse1 [OF omap_ord_iso [of A r f B i]])
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   539
apply (auto simp add: obase_iff)
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   540
done
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   541
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   542
lemma (in M_axioms) restrict_omap_ord_iso:
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   543
     "[| wellordered(M,A,r); omap(M,A,r,f); obase(M,A,r,B); otype(M,A,r,i); 
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   544
       D \<subseteq> B; M(A); M(r); M(f); M(B); M(i) |] 
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   545
      ==> restrict(f,D) \<in> (\<langle>D,r\<rangle> \<cong> \<langle>f``D, Memrel(f``D)\<rangle>)"
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   546
apply (frule ord_iso_restrict_image [OF omap_ord_iso [of A r f B i]], 
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   547
       assumption+)
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   548
apply (drule ord_iso_sym [THEN subset_ord_iso_Memrel]) 
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   549
apply (blast dest: subsetD [OF omap_subset]) 
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   550
apply (drule ord_iso_sym, simp) 
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   551
done
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   552
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   553
lemma (in M_axioms) obase_equals: 
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   554
     "[| wellordered(M,A,r); omap(M,A,r,f); obase(M,A,r,B); otype(M,A,r,i);
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   555
       M(A); M(r); M(f); M(B); M(i) |] ==> B = A"
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   556
apply (rotate_tac 4)
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   557
apply (rule equalityI, force simp add: obase_iff, clarify) 
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   558
apply (subst obase_iff [of A r B, THEN iffD1], assumption+, simp) 
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   559
apply (frule wellordered_is_wellfounded_on, assumption)
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   560
apply (erule wellfounded_on_induct, assumption+)
13306
6eebcddee32b more internalized formulas and separation proofs
paulson
parents: 13299
diff changeset
   561
 apply (frule obase_equals_separation [of A r], assumption) 
6eebcddee32b more internalized formulas and separation proofs
paulson
parents: 13299
diff changeset
   562
 apply (simp, clarify) 
13223
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   563
apply (rename_tac b) 
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   564
apply (subgoal_tac "Order.pred(A,b,r) <= B") 
13306
6eebcddee32b more internalized formulas and separation proofs
paulson
parents: 13299
diff changeset
   565
 apply (blast intro!: restrict_omap_ord_iso Ord_omap_image_pred)
6eebcddee32b more internalized formulas and separation proofs
paulson
parents: 13299
diff changeset
   566
apply (force simp add: pred_iff obase_iff)  
13223
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   567
done
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   568
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   569
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   570
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   571
text{*Main result: @{term om} gives the order-isomorphism 
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   572
      @{term "\<langle>A,r\<rangle> \<cong> \<langle>i, Memrel(i)\<rangle>"} *}
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   573
theorem (in M_axioms) omap_ord_iso_otype:
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   574
     "[| wellordered(M,A,r); omap(M,A,r,f); obase(M,A,r,B); otype(M,A,r,i);
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   575
       M(A); M(r); M(f); M(B); M(i) |] ==> f \<in> ord_iso(A, r, i, Memrel(i))"
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   576
apply (frule omap_ord_iso, assumption+) 
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   577
apply (frule obase_equals, assumption+, blast) 
13293
paulson
parents: 13269
diff changeset
   578
done 
13223
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   579
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   580
lemma (in M_axioms) obase_exists:
13293
paulson
parents: 13269
diff changeset
   581
     "[| M(A); M(r) |] ==> \<exists>z[M]. obase(M,A,r,z)"
13223
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   582
apply (simp add: obase_def) 
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   583
apply (insert obase_separation [of A r])
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   584
apply (simp add: separation_def)  
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   585
done
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   586
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   587
lemma (in M_axioms) omap_exists:
13293
paulson
parents: 13269
diff changeset
   588
     "[| M(A); M(r) |] ==> \<exists>z[M]. omap(M,A,r,z)"
13223
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   589
apply (insert obase_exists [of A r]) 
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   590
apply (simp add: omap_def) 
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   591
apply (insert omap_replacement [of A r])
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   592
apply (simp add: strong_replacement_def, clarify) 
13299
3a932abf97e8 More use of relativized quantifiers
paulson
parents: 13298
diff changeset
   593
apply (drule_tac x=x in rspec, clarify) 
13223
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   594
apply (simp add: Memrel_closed pred_closed obase_iff)
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   595
apply (erule impE) 
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   596
 apply (clarsimp simp add: univalent_def)
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   597
 apply (blast intro: Ord_iso_implies_eq ord_iso_sym ord_iso_trans, clarify)  
13293
paulson
parents: 13269
diff changeset
   598
apply (rule_tac x=Y in rexI) 
paulson
parents: 13269
diff changeset
   599
apply (simp add: Memrel_closed pred_closed obase_iff, blast, assumption)
13223
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   600
done
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   601
13293
paulson
parents: 13269
diff changeset
   602
declare rall_simps [simp] rex_simps [simp]
paulson
parents: 13269
diff changeset
   603
13223
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   604
lemma (in M_axioms) otype_exists:
13299
3a932abf97e8 More use of relativized quantifiers
paulson
parents: 13298
diff changeset
   605
     "[| wellordered(M,A,r); M(A); M(r) |] ==> \<exists>i[M]. otype(M,A,r,i)"
13293
paulson
parents: 13269
diff changeset
   606
apply (insert omap_exists [of A r])  
paulson
parents: 13269
diff changeset
   607
apply (simp add: otype_def, safe)
13299
3a932abf97e8 More use of relativized quantifiers
paulson
parents: 13298
diff changeset
   608
apply (rule_tac x="range(x)" in rexI) 
3a932abf97e8 More use of relativized quantifiers
paulson
parents: 13298
diff changeset
   609
apply blast+
13223
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   610
done
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   611
13428
99e52e78eb65 eliminate open locales and special ML code;
wenzelm
parents: 13352
diff changeset
   612
theorem (in M_axioms) omap_ord_iso_otype':
13223
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   613
     "[| wellordered(M,A,r); M(A); M(r) |]
13299
3a932abf97e8 More use of relativized quantifiers
paulson
parents: 13298
diff changeset
   614
      ==> \<exists>f[M]. (\<exists>i[M]. Ord(i) & f \<in> ord_iso(A, r, i, Memrel(i)))"
13223
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   615
apply (insert obase_exists [of A r] omap_exists [of A r] otype_exists [of A r], simp, clarify)
13299
3a932abf97e8 More use of relativized quantifiers
paulson
parents: 13298
diff changeset
   616
apply (rename_tac i) 
13223
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   617
apply (subgoal_tac "Ord(i)", blast intro: omap_ord_iso_otype) 
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   618
apply (rule Ord_otype) 
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   619
    apply (force simp add: otype_def range_closed) 
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   620
   apply (simp_all add: wellordered_is_trans_on) 
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   621
done
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   622
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   623
lemma (in M_axioms) ordertype_exists:
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   624
     "[| wellordered(M,A,r); M(A); M(r) |]
13299
3a932abf97e8 More use of relativized quantifiers
paulson
parents: 13298
diff changeset
   625
      ==> \<exists>f[M]. (\<exists>i[M]. Ord(i) & f \<in> ord_iso(A, r, i, Memrel(i)))"
13223
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   626
apply (insert obase_exists [of A r] omap_exists [of A r] otype_exists [of A r], simp, clarify)
13299
3a932abf97e8 More use of relativized quantifiers
paulson
parents: 13298
diff changeset
   627
apply (rename_tac i) 
13428
99e52e78eb65 eliminate open locales and special ML code;
wenzelm
parents: 13352
diff changeset
   628
apply (subgoal_tac "Ord(i)", blast intro: omap_ord_iso_otype')
13223
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   629
apply (rule Ord_otype) 
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   630
    apply (force simp add: otype_def range_closed) 
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   631
   apply (simp_all add: wellordered_is_trans_on) 
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   632
done
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   633
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   634
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   635
lemma (in M_axioms) relativized_imp_well_ord: 
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   636
     "[| wellordered(M,A,r); M(A); M(r) |] ==> well_ord(A,r)" 
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   637
apply (insert ordertype_exists [of A r], simp)
13505
52a16cb7fefb Relativized right up to L satisfies V=L!
paulson
parents: 13428
diff changeset
   638
apply (blast intro: well_ord_ord_iso well_ord_Memrel)  
13223
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   639
done
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   640
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   641
subsection {*Kunen's theorem 5.4, poage 127*}
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   642
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   643
text{*(a) The notion of Wellordering is absolute*}
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   644
theorem (in M_axioms) well_ord_abs [simp]: 
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   645
     "[| M(A); M(r) |] ==> wellordered(M,A,r) <-> well_ord(A,r)" 
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   646
by (blast intro: well_ord_imp_relativized relativized_imp_well_ord)  
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   647
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   648
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   649
text{*(b) Order types are absolute*}
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   650
lemma (in M_axioms) 
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   651
     "[| wellordered(M,A,r); f \<in> ord_iso(A, r, i, Memrel(i));
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   652
       M(A); M(r); M(f); M(i); Ord(i) |] ==> i = ordertype(A,r)"
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   653
by (blast intro: Ord_ordertype relativized_imp_well_ord ordertype_ord_iso
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   654
                 Ord_iso_implies_eq ord_iso_sym ord_iso_trans)
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   655
45be08fbdcff new theory of inner models
paulson
parents:
diff changeset
   656
end