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