src/HOL/Library/Nat_Infinity.thy
author wenzelm
Thu, 31 May 2001 20:52:51 +0200
changeset 11355 778c369559d9
parent 11351 c5c403d30c77
child 11357 908b761cdfb0
permissions -rw-r--r--
tuned
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
11355
wenzelm
parents: 11351
diff changeset
     1
(*  Title:      HOL/Library/Nat_Infinity.thy
wenzelm
parents: 11351
diff changeset
     2
    ID:         $Id$
wenzelm
parents: 11351
diff changeset
     3
    Author:     David von Oheimb, TU Muenchen
11351
c5c403d30c77 added Library/Nat_Infinity.thy and Library/Continuity.thy
oheimb
parents:
diff changeset
     4
    License:    GPL (GNU GENERAL PUBLIC LICENSE)
c5c403d30c77 added Library/Nat_Infinity.thy and Library/Continuity.thy
oheimb
parents:
diff changeset
     5
*)
c5c403d30c77 added Library/Nat_Infinity.thy and Library/Continuity.thy
oheimb
parents:
diff changeset
     6
c5c403d30c77 added Library/Nat_Infinity.thy and Library/Continuity.thy
oheimb
parents:
diff changeset
     7
header {*
c5c403d30c77 added Library/Nat_Infinity.thy and Library/Continuity.thy
oheimb
parents:
diff changeset
     8
  \title{Natural numbers with infinity}
c5c403d30c77 added Library/Nat_Infinity.thy and Library/Continuity.thy
oheimb
parents:
diff changeset
     9
  \author{David von Oheimb}
c5c403d30c77 added Library/Nat_Infinity.thy and Library/Continuity.thy
oheimb
parents:
diff changeset
    10
*}
c5c403d30c77 added Library/Nat_Infinity.thy and Library/Continuity.thy
oheimb
parents:
diff changeset
    11
11355
wenzelm
parents: 11351
diff changeset
    12
theory Nat_Infinity = Main:
11351
c5c403d30c77 added Library/Nat_Infinity.thy and Library/Continuity.thy
oheimb
parents:
diff changeset
    13
c5c403d30c77 added Library/Nat_Infinity.thy and Library/Continuity.thy
oheimb
parents:
diff changeset
    14
subsection "Definitions"
c5c403d30c77 added Library/Nat_Infinity.thy and Library/Continuity.thy
oheimb
parents:
diff changeset
    15
c5c403d30c77 added Library/Nat_Infinity.thy and Library/Continuity.thy
oheimb
parents:
diff changeset
    16
text {*
11355
wenzelm
parents: 11351
diff changeset
    17
  We extend the standard natural numbers by a special value indicating
wenzelm
parents: 11351
diff changeset
    18
  infinity.  This includes extending the ordering relations @{term "op
wenzelm
parents: 11351
diff changeset
    19
  <"} and @{term "op \<le>"}.
11351
c5c403d30c77 added Library/Nat_Infinity.thy and Library/Continuity.thy
oheimb
parents:
diff changeset
    20
*}
c5c403d30c77 added Library/Nat_Infinity.thy and Library/Continuity.thy
oheimb
parents:
diff changeset
    21
c5c403d30c77 added Library/Nat_Infinity.thy and Library/Continuity.thy
oheimb
parents:
diff changeset
    22
datatype inat = Fin nat | Infty
c5c403d30c77 added Library/Nat_Infinity.thy and Library/Continuity.thy
oheimb
parents:
diff changeset
    23
c5c403d30c77 added Library/Nat_Infinity.thy and Library/Continuity.thy
oheimb
parents:
diff changeset
    24
instance inat :: ord ..
c5c403d30c77 added Library/Nat_Infinity.thy and Library/Continuity.thy
oheimb
parents:
diff changeset
    25
instance inat :: zero ..
c5c403d30c77 added Library/Nat_Infinity.thy and Library/Continuity.thy
oheimb
parents:
diff changeset
    26
c5c403d30c77 added Library/Nat_Infinity.thy and Library/Continuity.thy
oheimb
parents:
diff changeset
    27
consts
11355
wenzelm
parents: 11351
diff changeset
    28
  iSuc :: "inat => inat"
11351
c5c403d30c77 added Library/Nat_Infinity.thy and Library/Continuity.thy
oheimb
parents:
diff changeset
    29
c5c403d30c77 added Library/Nat_Infinity.thy and Library/Continuity.thy
oheimb
parents:
diff changeset
    30
syntax (xsymbols)
11355
wenzelm
parents: 11351
diff changeset
    31
  Infty :: inat    ("\<infinity>")
11351
c5c403d30c77 added Library/Nat_Infinity.thy and Library/Continuity.thy
oheimb
parents:
diff changeset
    32
c5c403d30c77 added Library/Nat_Infinity.thy and Library/Continuity.thy
oheimb
parents:
diff changeset
    33
defs
11355
wenzelm
parents: 11351
diff changeset
    34
  iZero_def: "0 == Fin 0"
wenzelm
parents: 11351
diff changeset
    35
  iSuc_def: "iSuc i == case i of Fin n  => Fin (Suc n) | \<infinity> => \<infinity>"
wenzelm
parents: 11351
diff changeset
    36
  iless_def: "m < n ==
wenzelm
parents: 11351
diff changeset
    37
    case m of Fin m1 => (case n of Fin n1 => m1 < n1 | \<infinity> => True)
wenzelm
parents: 11351
diff changeset
    38
    | \<infinity>  => False"
wenzelm
parents: 11351
diff changeset
    39
  ile_def: "(m::inat) \<le> n == \<not> (n < m)"
11351
c5c403d30c77 added Library/Nat_Infinity.thy and Library/Continuity.thy
oheimb
parents:
diff changeset
    40
c5c403d30c77 added Library/Nat_Infinity.thy and Library/Continuity.thy
oheimb
parents:
diff changeset
    41
lemmas inat_defs = iZero_def iSuc_def iless_def ile_def
c5c403d30c77 added Library/Nat_Infinity.thy and Library/Continuity.thy
oheimb
parents:
diff changeset
    42
lemmas inat_splits = inat.split inat.split_asm
c5c403d30c77 added Library/Nat_Infinity.thy and Library/Continuity.thy
oheimb
parents:
diff changeset
    43
11355
wenzelm
parents: 11351
diff changeset
    44
text {*
wenzelm
parents: 11351
diff changeset
    45
  Below is a not quite complete set of theorems.  Use method @{text
wenzelm
parents: 11351
diff changeset
    46
  "(simp add: inat_defs split:inat_splits, arith?)"} to prove new
wenzelm
parents: 11351
diff changeset
    47
  theorems or solve arithmetic subgoals involving @{typ inat} on the
wenzelm
parents: 11351
diff changeset
    48
  fly.
11351
c5c403d30c77 added Library/Nat_Infinity.thy and Library/Continuity.thy
oheimb
parents:
diff changeset
    49
*}
c5c403d30c77 added Library/Nat_Infinity.thy and Library/Continuity.thy
oheimb
parents:
diff changeset
    50
c5c403d30c77 added Library/Nat_Infinity.thy and Library/Continuity.thy
oheimb
parents:
diff changeset
    51
subsection "Constructors"
c5c403d30c77 added Library/Nat_Infinity.thy and Library/Continuity.thy
oheimb
parents:
diff changeset
    52
c5c403d30c77 added Library/Nat_Infinity.thy and Library/Continuity.thy
oheimb
parents:
diff changeset
    53
lemma Fin_0: "Fin 0 = 0"
11355
wenzelm
parents: 11351
diff changeset
    54
  by (simp add:inat_defs split:inat_splits, arith?)
11351
c5c403d30c77 added Library/Nat_Infinity.thy and Library/Continuity.thy
oheimb
parents:
diff changeset
    55
c5c403d30c77 added Library/Nat_Infinity.thy and Library/Continuity.thy
oheimb
parents:
diff changeset
    56
lemma Infty_ne_i0 [simp]: "\<infinity> \<noteq> 0"
11355
wenzelm
parents: 11351
diff changeset
    57
  by (simp add:inat_defs split:inat_splits, arith?)
11351
c5c403d30c77 added Library/Nat_Infinity.thy and Library/Continuity.thy
oheimb
parents:
diff changeset
    58
c5c403d30c77 added Library/Nat_Infinity.thy and Library/Continuity.thy
oheimb
parents:
diff changeset
    59
lemma i0_ne_Infty [simp]: "0 \<noteq> \<infinity>"
11355
wenzelm
parents: 11351
diff changeset
    60
  by (simp add:inat_defs split:inat_splits, arith?)
11351
c5c403d30c77 added Library/Nat_Infinity.thy and Library/Continuity.thy
oheimb
parents:
diff changeset
    61
c5c403d30c77 added Library/Nat_Infinity.thy and Library/Continuity.thy
oheimb
parents:
diff changeset
    62
lemma iSuc_Fin [simp]: "iSuc (Fin n) = Fin (Suc n)"
11355
wenzelm
parents: 11351
diff changeset
    63
  by (simp add:inat_defs split:inat_splits, arith?)
11351
c5c403d30c77 added Library/Nat_Infinity.thy and Library/Continuity.thy
oheimb
parents:
diff changeset
    64
c5c403d30c77 added Library/Nat_Infinity.thy and Library/Continuity.thy
oheimb
parents:
diff changeset
    65
lemma iSuc_Infty [simp]: "iSuc \<infinity> = \<infinity>"
11355
wenzelm
parents: 11351
diff changeset
    66
  by (simp add:inat_defs split:inat_splits, arith?)
11351
c5c403d30c77 added Library/Nat_Infinity.thy and Library/Continuity.thy
oheimb
parents:
diff changeset
    67
c5c403d30c77 added Library/Nat_Infinity.thy and Library/Continuity.thy
oheimb
parents:
diff changeset
    68
lemma iSuc_ne_0 [simp]: "iSuc n \<noteq> 0"
11355
wenzelm
parents: 11351
diff changeset
    69
  by (simp add:inat_defs split:inat_splits, arith?)
11351
c5c403d30c77 added Library/Nat_Infinity.thy and Library/Continuity.thy
oheimb
parents:
diff changeset
    70
c5c403d30c77 added Library/Nat_Infinity.thy and Library/Continuity.thy
oheimb
parents:
diff changeset
    71
lemma iSuc_inject [simp]: "(iSuc x = iSuc y) = (x = y)"
11355
wenzelm
parents: 11351
diff changeset
    72
  by (simp add:inat_defs split:inat_splits, arith?)
11351
c5c403d30c77 added Library/Nat_Infinity.thy and Library/Continuity.thy
oheimb
parents:
diff changeset
    73
c5c403d30c77 added Library/Nat_Infinity.thy and Library/Continuity.thy
oheimb
parents:
diff changeset
    74
c5c403d30c77 added Library/Nat_Infinity.thy and Library/Continuity.thy
oheimb
parents:
diff changeset
    75
subsection "Ordering relations"
c5c403d30c77 added Library/Nat_Infinity.thy and Library/Continuity.thy
oheimb
parents:
diff changeset
    76
c5c403d30c77 added Library/Nat_Infinity.thy and Library/Continuity.thy
oheimb
parents:
diff changeset
    77
lemma Infty_ilessE [elim!]: "\<infinity> < Fin m ==> R"
11355
wenzelm
parents: 11351
diff changeset
    78
  by (simp add:inat_defs split:inat_splits, arith?)
11351
c5c403d30c77 added Library/Nat_Infinity.thy and Library/Continuity.thy
oheimb
parents:
diff changeset
    79
11355
wenzelm
parents: 11351
diff changeset
    80
lemma iless_linear: "m < n \<or> m = n \<or> n < (m::inat)"
wenzelm
parents: 11351
diff changeset
    81
  by (simp add:inat_defs split:inat_splits, arith?)
11351
c5c403d30c77 added Library/Nat_Infinity.thy and Library/Continuity.thy
oheimb
parents:
diff changeset
    82
c5c403d30c77 added Library/Nat_Infinity.thy and Library/Continuity.thy
oheimb
parents:
diff changeset
    83
lemma iless_not_refl [simp]: "\<not> n < (n::inat)"
11355
wenzelm
parents: 11351
diff changeset
    84
  by (simp add:inat_defs split:inat_splits, arith?)
11351
c5c403d30c77 added Library/Nat_Infinity.thy and Library/Continuity.thy
oheimb
parents:
diff changeset
    85
c5c403d30c77 added Library/Nat_Infinity.thy and Library/Continuity.thy
oheimb
parents:
diff changeset
    86
lemma iless_trans: "i < j ==> j < k ==> i < (k::inat)"
11355
wenzelm
parents: 11351
diff changeset
    87
  by (simp add:inat_defs split:inat_splits, arith?)
11351
c5c403d30c77 added Library/Nat_Infinity.thy and Library/Continuity.thy
oheimb
parents:
diff changeset
    88
c5c403d30c77 added Library/Nat_Infinity.thy and Library/Continuity.thy
oheimb
parents:
diff changeset
    89
lemma iless_not_sym: "n < m ==> \<not> m < (n::inat)"
11355
wenzelm
parents: 11351
diff changeset
    90
  by (simp add:inat_defs split:inat_splits, arith?)
11351
c5c403d30c77 added Library/Nat_Infinity.thy and Library/Continuity.thy
oheimb
parents:
diff changeset
    91
c5c403d30c77 added Library/Nat_Infinity.thy and Library/Continuity.thy
oheimb
parents:
diff changeset
    92
lemma Fin_iless_mono [simp]: "(Fin n < Fin m) = (n < m)"
11355
wenzelm
parents: 11351
diff changeset
    93
  by (simp add:inat_defs split:inat_splits, arith?)
11351
c5c403d30c77 added Library/Nat_Infinity.thy and Library/Continuity.thy
oheimb
parents:
diff changeset
    94
c5c403d30c77 added Library/Nat_Infinity.thy and Library/Continuity.thy
oheimb
parents:
diff changeset
    95
lemma Fin_iless_Infty [simp]: "Fin n < \<infinity>"
11355
wenzelm
parents: 11351
diff changeset
    96
  by (simp add:inat_defs split:inat_splits, arith?)
11351
c5c403d30c77 added Library/Nat_Infinity.thy and Library/Continuity.thy
oheimb
parents:
diff changeset
    97
c5c403d30c77 added Library/Nat_Infinity.thy and Library/Continuity.thy
oheimb
parents:
diff changeset
    98
lemma Infty_eq [simp]: "n < \<infinity> = (n \<noteq> \<infinity>)"
11355
wenzelm
parents: 11351
diff changeset
    99
  by (simp add:inat_defs split:inat_splits, arith?)
11351
c5c403d30c77 added Library/Nat_Infinity.thy and Library/Continuity.thy
oheimb
parents:
diff changeset
   100
c5c403d30c77 added Library/Nat_Infinity.thy and Library/Continuity.thy
oheimb
parents:
diff changeset
   101
lemma i0_eq [simp]: "((0::inat) < n) = (n \<noteq> 0)"
11355
wenzelm
parents: 11351
diff changeset
   102
  by (simp add:inat_defs split:inat_splits, arith?)
11351
c5c403d30c77 added Library/Nat_Infinity.thy and Library/Continuity.thy
oheimb
parents:
diff changeset
   103
c5c403d30c77 added Library/Nat_Infinity.thy and Library/Continuity.thy
oheimb
parents:
diff changeset
   104
lemma i0_iless_iSuc [simp]: "0 < iSuc n"
11355
wenzelm
parents: 11351
diff changeset
   105
  by (simp add:inat_defs split:inat_splits, arith?)
11351
c5c403d30c77 added Library/Nat_Infinity.thy and Library/Continuity.thy
oheimb
parents:
diff changeset
   106
c5c403d30c77 added Library/Nat_Infinity.thy and Library/Continuity.thy
oheimb
parents:
diff changeset
   107
lemma not_ilessi0 [simp]: "\<not> n < (0::inat)"
11355
wenzelm
parents: 11351
diff changeset
   108
  by (simp add:inat_defs split:inat_splits, arith?)
11351
c5c403d30c77 added Library/Nat_Infinity.thy and Library/Continuity.thy
oheimb
parents:
diff changeset
   109
c5c403d30c77 added Library/Nat_Infinity.thy and Library/Continuity.thy
oheimb
parents:
diff changeset
   110
lemma Fin_iless: "n < Fin m ==> \<exists>k. n = Fin k"
11355
wenzelm
parents: 11351
diff changeset
   111
  by (simp add:inat_defs split:inat_splits, arith?)
11351
c5c403d30c77 added Library/Nat_Infinity.thy and Library/Continuity.thy
oheimb
parents:
diff changeset
   112
c5c403d30c77 added Library/Nat_Infinity.thy and Library/Continuity.thy
oheimb
parents:
diff changeset
   113
lemma iSuc_mono [simp]: "iSuc n < iSuc m = (n < m)"
11355
wenzelm
parents: 11351
diff changeset
   114
  by (simp add:inat_defs split:inat_splits, arith?)
11351
c5c403d30c77 added Library/Nat_Infinity.thy and Library/Continuity.thy
oheimb
parents:
diff changeset
   115
c5c403d30c77 added Library/Nat_Infinity.thy and Library/Continuity.thy
oheimb
parents:
diff changeset
   116
c5c403d30c77 added Library/Nat_Infinity.thy and Library/Continuity.thy
oheimb
parents:
diff changeset
   117
(* ----------------------------------------------------------------------- *)
c5c403d30c77 added Library/Nat_Infinity.thy and Library/Continuity.thy
oheimb
parents:
diff changeset
   118
11355
wenzelm
parents: 11351
diff changeset
   119
lemma ile_def2: "m \<le> n = (m < n \<or> m = (n::inat))"
wenzelm
parents: 11351
diff changeset
   120
  by (simp add:inat_defs split:inat_splits, arith?)
11351
c5c403d30c77 added Library/Nat_Infinity.thy and Library/Continuity.thy
oheimb
parents:
diff changeset
   121
11355
wenzelm
parents: 11351
diff changeset
   122
lemma ile_refl [simp]: "n \<le> (n::inat)"
wenzelm
parents: 11351
diff changeset
   123
  by (simp add:inat_defs split:inat_splits, arith?)
11351
c5c403d30c77 added Library/Nat_Infinity.thy and Library/Continuity.thy
oheimb
parents:
diff changeset
   124
11355
wenzelm
parents: 11351
diff changeset
   125
lemma ile_trans: "i \<le> j ==> j \<le> k ==> i \<le> (k::inat)"
wenzelm
parents: 11351
diff changeset
   126
  by (simp add:inat_defs split:inat_splits, arith?)
11351
c5c403d30c77 added Library/Nat_Infinity.thy and Library/Continuity.thy
oheimb
parents:
diff changeset
   127
11355
wenzelm
parents: 11351
diff changeset
   128
lemma ile_iless_trans: "i \<le> j ==> j < k ==> i < (k::inat)"
wenzelm
parents: 11351
diff changeset
   129
  by (simp add:inat_defs split:inat_splits, arith?)
11351
c5c403d30c77 added Library/Nat_Infinity.thy and Library/Continuity.thy
oheimb
parents:
diff changeset
   130
11355
wenzelm
parents: 11351
diff changeset
   131
lemma iless_ile_trans: "i < j ==> j \<le> k ==> i < (k::inat)"
wenzelm
parents: 11351
diff changeset
   132
  by (simp add:inat_defs split:inat_splits, arith?)
11351
c5c403d30c77 added Library/Nat_Infinity.thy and Library/Continuity.thy
oheimb
parents:
diff changeset
   133
11355
wenzelm
parents: 11351
diff changeset
   134
lemma Infty_ub [simp]: "n \<le> \<infinity>"
wenzelm
parents: 11351
diff changeset
   135
  by (simp add:inat_defs split:inat_splits, arith?)
11351
c5c403d30c77 added Library/Nat_Infinity.thy and Library/Continuity.thy
oheimb
parents:
diff changeset
   136
11355
wenzelm
parents: 11351
diff changeset
   137
lemma i0_lb [simp]: "(0::inat) \<le> n"
wenzelm
parents: 11351
diff changeset
   138
  by (simp add:inat_defs split:inat_splits, arith?)
11351
c5c403d30c77 added Library/Nat_Infinity.thy and Library/Continuity.thy
oheimb
parents:
diff changeset
   139
11355
wenzelm
parents: 11351
diff changeset
   140
lemma Infty_ileE [elim!]: "\<infinity> \<le> Fin m ==> R"
wenzelm
parents: 11351
diff changeset
   141
  by (simp add:inat_defs split:inat_splits, arith?)
11351
c5c403d30c77 added Library/Nat_Infinity.thy and Library/Continuity.thy
oheimb
parents:
diff changeset
   142
11355
wenzelm
parents: 11351
diff changeset
   143
lemma Fin_ile_mono [simp]: "(Fin n \<le> Fin m) = (n \<le> m)"
wenzelm
parents: 11351
diff changeset
   144
  by (simp add:inat_defs split:inat_splits, arith?)
11351
c5c403d30c77 added Library/Nat_Infinity.thy and Library/Continuity.thy
oheimb
parents:
diff changeset
   145
11355
wenzelm
parents: 11351
diff changeset
   146
lemma ilessI1: "n \<le> m ==> n \<noteq> m ==> n < (m::inat)"
wenzelm
parents: 11351
diff changeset
   147
  by (simp add:inat_defs split:inat_splits, arith?)
11351
c5c403d30c77 added Library/Nat_Infinity.thy and Library/Continuity.thy
oheimb
parents:
diff changeset
   148
11355
wenzelm
parents: 11351
diff changeset
   149
lemma ileI1: "m < n ==> iSuc m \<le> n"
wenzelm
parents: 11351
diff changeset
   150
  by (simp add:inat_defs split:inat_splits, arith?)
11351
c5c403d30c77 added Library/Nat_Infinity.thy and Library/Continuity.thy
oheimb
parents:
diff changeset
   151
11355
wenzelm
parents: 11351
diff changeset
   152
lemma Suc_ile_eq: "Fin (Suc m) \<le> n = (Fin m < n)"
wenzelm
parents: 11351
diff changeset
   153
  by (simp add:inat_defs split:inat_splits, arith?)
11351
c5c403d30c77 added Library/Nat_Infinity.thy and Library/Continuity.thy
oheimb
parents:
diff changeset
   154
11355
wenzelm
parents: 11351
diff changeset
   155
lemma iSuc_ile_mono [simp]: "iSuc n \<le> iSuc m = (n \<le> m)"
wenzelm
parents: 11351
diff changeset
   156
  by (simp add:inat_defs split:inat_splits, arith?)
11351
c5c403d30c77 added Library/Nat_Infinity.thy and Library/Continuity.thy
oheimb
parents:
diff changeset
   157
11355
wenzelm
parents: 11351
diff changeset
   158
lemma iless_Suc_eq [simp]: "Fin m < iSuc n = (Fin m \<le> n)"
wenzelm
parents: 11351
diff changeset
   159
  by (simp add:inat_defs split:inat_splits, arith?)
11351
c5c403d30c77 added Library/Nat_Infinity.thy and Library/Continuity.thy
oheimb
parents:
diff changeset
   160
11355
wenzelm
parents: 11351
diff changeset
   161
lemma not_iSuc_ilei0 [simp]: "\<not> iSuc n \<le> 0"
wenzelm
parents: 11351
diff changeset
   162
  by (simp add:inat_defs split:inat_splits, arith?)
11351
c5c403d30c77 added Library/Nat_Infinity.thy and Library/Continuity.thy
oheimb
parents:
diff changeset
   163
11355
wenzelm
parents: 11351
diff changeset
   164
lemma ile_iSuc [simp]: "n \<le> iSuc n"
wenzelm
parents: 11351
diff changeset
   165
  by (simp add:inat_defs split:inat_splits, arith?)
11351
c5c403d30c77 added Library/Nat_Infinity.thy and Library/Continuity.thy
oheimb
parents:
diff changeset
   166
11355
wenzelm
parents: 11351
diff changeset
   167
lemma Fin_ile: "n \<le> Fin m ==> \<exists>k. n = Fin k"
wenzelm
parents: 11351
diff changeset
   168
  by (simp add:inat_defs split:inat_splits, arith?)
11351
c5c403d30c77 added Library/Nat_Infinity.thy and Library/Continuity.thy
oheimb
parents:
diff changeset
   169
c5c403d30c77 added Library/Nat_Infinity.thy and Library/Continuity.thy
oheimb
parents:
diff changeset
   170
lemma chain_incr: "\<forall>i. \<exists>j. Y i < Y j ==> \<exists>j. Fin k < Y j"
11355
wenzelm
parents: 11351
diff changeset
   171
  apply (induct_tac k)
wenzelm
parents: 11351
diff changeset
   172
   apply (simp (no_asm) only: Fin_0)
wenzelm
parents: 11351
diff changeset
   173
   apply (fast intro: ile_iless_trans i0_lb)
wenzelm
parents: 11351
diff changeset
   174
  apply (erule exE)
wenzelm
parents: 11351
diff changeset
   175
  apply (drule spec)
wenzelm
parents: 11351
diff changeset
   176
  apply (erule exE)
wenzelm
parents: 11351
diff changeset
   177
  apply (drule ileI1)
wenzelm
parents: 11351
diff changeset
   178
  apply (rule iSuc_Fin [THEN subst])
wenzelm
parents: 11351
diff changeset
   179
  apply (rule exI)
wenzelm
parents: 11351
diff changeset
   180
  apply (erule (1) ile_iless_trans)
wenzelm
parents: 11351
diff changeset
   181
  done
11351
c5c403d30c77 added Library/Nat_Infinity.thy and Library/Continuity.thy
oheimb
parents:
diff changeset
   182
c5c403d30c77 added Library/Nat_Infinity.thy and Library/Continuity.thy
oheimb
parents:
diff changeset
   183
end