src/HOL/Library/Nat_Infinity.thy
author haftmann
Thu, 26 Jun 2008 10:07:01 +0200
changeset 27368 9f90ac19e32b
parent 27110 194aa674c2a1
child 27487 c8a6ce181805
permissions -rw-r--r--
established Plain theory and image
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$
27110
194aa674c2a1 refactoring; addition, numerals
haftmann
parents: 26089
diff changeset
     3
    Author:     David von Oheimb, TU Muenchen;  Florian Haftmann, 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
15131
c69542757a4d New theory header syntax.
nipkow
parents: 14981
diff changeset
     8
theory Nat_Infinity
27368
9f90ac19e32b established Plain theory and image
haftmann
parents: 27110
diff changeset
     9
imports Plain Presburger
15131
c69542757a4d New theory header syntax.
nipkow
parents: 14981
diff changeset
    10
begin
11351
c5c403d30c77 added Library/Nat_Infinity.thy and Library/Continuity.thy
oheimb
parents:
diff changeset
    11
27110
194aa674c2a1 refactoring; addition, numerals
haftmann
parents: 26089
diff changeset
    12
subsection {* Type definition *}
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
text {*
11355
wenzelm
parents: 11351
diff changeset
    15
  We extend the standard natural numbers by a special value indicating
27110
194aa674c2a1 refactoring; addition, numerals
haftmann
parents: 26089
diff changeset
    16
  infinity.
11351
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
c5c403d30c77 added Library/Nat_Infinity.thy and Library/Continuity.thy
oheimb
parents:
diff changeset
    19
datatype inat = Fin nat | Infty
c5c403d30c77 added Library/Nat_Infinity.thy and Library/Continuity.thy
oheimb
parents:
diff changeset
    20
21210
c17fd2df4e9e renamed 'const_syntax' to 'notation';
wenzelm
parents: 19736
diff changeset
    21
notation (xsymbols)
19736
wenzelm
parents: 15140
diff changeset
    22
  Infty  ("\<infinity>")
wenzelm
parents: 15140
diff changeset
    23
21210
c17fd2df4e9e renamed 'const_syntax' to 'notation';
wenzelm
parents: 19736
diff changeset
    24
notation (HTML output)
19736
wenzelm
parents: 15140
diff changeset
    25
  Infty  ("\<infinity>")
wenzelm
parents: 15140
diff changeset
    26
11351
c5c403d30c77 added Library/Nat_Infinity.thy and Library/Continuity.thy
oheimb
parents:
diff changeset
    27
27110
194aa674c2a1 refactoring; addition, numerals
haftmann
parents: 26089
diff changeset
    28
subsection {* Constructors and numbers *}
194aa674c2a1 refactoring; addition, numerals
haftmann
parents: 26089
diff changeset
    29
194aa674c2a1 refactoring; addition, numerals
haftmann
parents: 26089
diff changeset
    30
instantiation inat :: "{zero, one, number}"
25594
43c718438f9f switched import from Main to PreList
haftmann
parents: 25134
diff changeset
    31
begin
43c718438f9f switched import from Main to PreList
haftmann
parents: 25134
diff changeset
    32
43c718438f9f switched import from Main to PreList
haftmann
parents: 25134
diff changeset
    33
definition
27110
194aa674c2a1 refactoring; addition, numerals
haftmann
parents: 26089
diff changeset
    34
  "0 = Fin 0"
25594
43c718438f9f switched import from Main to PreList
haftmann
parents: 25134
diff changeset
    35
43c718438f9f switched import from Main to PreList
haftmann
parents: 25134
diff changeset
    36
definition
27110
194aa674c2a1 refactoring; addition, numerals
haftmann
parents: 26089
diff changeset
    37
  [code inline]: "1 = Fin 1"
25594
43c718438f9f switched import from Main to PreList
haftmann
parents: 25134
diff changeset
    38
43c718438f9f switched import from Main to PreList
haftmann
parents: 25134
diff changeset
    39
definition
27110
194aa674c2a1 refactoring; addition, numerals
haftmann
parents: 26089
diff changeset
    40
  [code inline, code func del]: "number_of k = Fin (number_of k)"
11351
c5c403d30c77 added Library/Nat_Infinity.thy and Library/Continuity.thy
oheimb
parents:
diff changeset
    41
25594
43c718438f9f switched import from Main to PreList
haftmann
parents: 25134
diff changeset
    42
instance ..
43c718438f9f switched import from Main to PreList
haftmann
parents: 25134
diff changeset
    43
43c718438f9f switched import from Main to PreList
haftmann
parents: 25134
diff changeset
    44
end
43c718438f9f switched import from Main to PreList
haftmann
parents: 25134
diff changeset
    45
27110
194aa674c2a1 refactoring; addition, numerals
haftmann
parents: 26089
diff changeset
    46
definition iSuc :: "inat \<Rightarrow> inat" where
194aa674c2a1 refactoring; addition, numerals
haftmann
parents: 26089
diff changeset
    47
  "iSuc i = (case i of Fin n \<Rightarrow> Fin (Suc n) | \<infinity> \<Rightarrow> \<infinity>)"
11351
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
lemma Fin_0: "Fin 0 = 0"
27110
194aa674c2a1 refactoring; addition, numerals
haftmann
parents: 26089
diff changeset
    50
  by (simp add: zero_inat_def)
194aa674c2a1 refactoring; addition, numerals
haftmann
parents: 26089
diff changeset
    51
194aa674c2a1 refactoring; addition, numerals
haftmann
parents: 26089
diff changeset
    52
lemma Fin_1: "Fin 1 = 1"
194aa674c2a1 refactoring; addition, numerals
haftmann
parents: 26089
diff changeset
    53
  by (simp add: one_inat_def)
194aa674c2a1 refactoring; addition, numerals
haftmann
parents: 26089
diff changeset
    54
194aa674c2a1 refactoring; addition, numerals
haftmann
parents: 26089
diff changeset
    55
lemma Fin_number: "Fin (number_of k) = number_of k"
194aa674c2a1 refactoring; addition, numerals
haftmann
parents: 26089
diff changeset
    56
  by (simp add: number_of_inat_def)
194aa674c2a1 refactoring; addition, numerals
haftmann
parents: 26089
diff changeset
    57
194aa674c2a1 refactoring; addition, numerals
haftmann
parents: 26089
diff changeset
    58
lemma one_iSuc: "1 = iSuc 0"
194aa674c2a1 refactoring; addition, numerals
haftmann
parents: 26089
diff changeset
    59
  by (simp add: zero_inat_def one_inat_def iSuc_def)
11351
c5c403d30c77 added Library/Nat_Infinity.thy and Library/Continuity.thy
oheimb
parents:
diff changeset
    60
c5c403d30c77 added Library/Nat_Infinity.thy and Library/Continuity.thy
oheimb
parents:
diff changeset
    61
lemma Infty_ne_i0 [simp]: "\<infinity> \<noteq> 0"
27110
194aa674c2a1 refactoring; addition, numerals
haftmann
parents: 26089
diff changeset
    62
  by (simp add: zero_inat_def)
11351
c5c403d30c77 added Library/Nat_Infinity.thy and Library/Continuity.thy
oheimb
parents:
diff changeset
    63
c5c403d30c77 added Library/Nat_Infinity.thy and Library/Continuity.thy
oheimb
parents:
diff changeset
    64
lemma i0_ne_Infty [simp]: "0 \<noteq> \<infinity>"
27110
194aa674c2a1 refactoring; addition, numerals
haftmann
parents: 26089
diff changeset
    65
  by (simp add: zero_inat_def)
194aa674c2a1 refactoring; addition, numerals
haftmann
parents: 26089
diff changeset
    66
194aa674c2a1 refactoring; addition, numerals
haftmann
parents: 26089
diff changeset
    67
lemma zero_inat_eq [simp]:
194aa674c2a1 refactoring; addition, numerals
haftmann
parents: 26089
diff changeset
    68
  "number_of k = (0\<Colon>inat) \<longleftrightarrow> number_of k = (0\<Colon>nat)"
194aa674c2a1 refactoring; addition, numerals
haftmann
parents: 26089
diff changeset
    69
  "(0\<Colon>inat) = number_of k \<longleftrightarrow> number_of k = (0\<Colon>nat)"
194aa674c2a1 refactoring; addition, numerals
haftmann
parents: 26089
diff changeset
    70
  unfolding zero_inat_def number_of_inat_def by simp_all
194aa674c2a1 refactoring; addition, numerals
haftmann
parents: 26089
diff changeset
    71
194aa674c2a1 refactoring; addition, numerals
haftmann
parents: 26089
diff changeset
    72
lemma one_inat_eq [simp]:
194aa674c2a1 refactoring; addition, numerals
haftmann
parents: 26089
diff changeset
    73
  "number_of k = (1\<Colon>inat) \<longleftrightarrow> number_of k = (1\<Colon>nat)"
194aa674c2a1 refactoring; addition, numerals
haftmann
parents: 26089
diff changeset
    74
  "(1\<Colon>inat) = number_of k \<longleftrightarrow> number_of k = (1\<Colon>nat)"
194aa674c2a1 refactoring; addition, numerals
haftmann
parents: 26089
diff changeset
    75
  unfolding one_inat_def number_of_inat_def by simp_all
194aa674c2a1 refactoring; addition, numerals
haftmann
parents: 26089
diff changeset
    76
194aa674c2a1 refactoring; addition, numerals
haftmann
parents: 26089
diff changeset
    77
lemma zero_one_inat_neq [simp]:
194aa674c2a1 refactoring; addition, numerals
haftmann
parents: 26089
diff changeset
    78
  "\<not> 0 = (1\<Colon>inat)"
194aa674c2a1 refactoring; addition, numerals
haftmann
parents: 26089
diff changeset
    79
  "\<not> 1 = (0\<Colon>inat)"
194aa674c2a1 refactoring; addition, numerals
haftmann
parents: 26089
diff changeset
    80
  unfolding zero_inat_def one_inat_def by simp_all
11351
c5c403d30c77 added Library/Nat_Infinity.thy and Library/Continuity.thy
oheimb
parents:
diff changeset
    81
27110
194aa674c2a1 refactoring; addition, numerals
haftmann
parents: 26089
diff changeset
    82
lemma Infty_ne_i1 [simp]: "\<infinity> \<noteq> 1"
194aa674c2a1 refactoring; addition, numerals
haftmann
parents: 26089
diff changeset
    83
  by (simp add: one_inat_def)
194aa674c2a1 refactoring; addition, numerals
haftmann
parents: 26089
diff changeset
    84
194aa674c2a1 refactoring; addition, numerals
haftmann
parents: 26089
diff changeset
    85
lemma i1_ne_Infty [simp]: "1 \<noteq> \<infinity>"
194aa674c2a1 refactoring; addition, numerals
haftmann
parents: 26089
diff changeset
    86
  by (simp add: one_inat_def)
194aa674c2a1 refactoring; addition, numerals
haftmann
parents: 26089
diff changeset
    87
194aa674c2a1 refactoring; addition, numerals
haftmann
parents: 26089
diff changeset
    88
lemma Infty_ne_number [simp]: "\<infinity> \<noteq> number_of k"
194aa674c2a1 refactoring; addition, numerals
haftmann
parents: 26089
diff changeset
    89
  by (simp add: number_of_inat_def)
194aa674c2a1 refactoring; addition, numerals
haftmann
parents: 26089
diff changeset
    90
194aa674c2a1 refactoring; addition, numerals
haftmann
parents: 26089
diff changeset
    91
lemma number_ne_Infty [simp]: "number_of k \<noteq> \<infinity>"
194aa674c2a1 refactoring; addition, numerals
haftmann
parents: 26089
diff changeset
    92
  by (simp add: number_of_inat_def)
194aa674c2a1 refactoring; addition, numerals
haftmann
parents: 26089
diff changeset
    93
194aa674c2a1 refactoring; addition, numerals
haftmann
parents: 26089
diff changeset
    94
lemma iSuc_Fin: "iSuc (Fin n) = Fin (Suc n)"
194aa674c2a1 refactoring; addition, numerals
haftmann
parents: 26089
diff changeset
    95
  by (simp add: iSuc_def)
194aa674c2a1 refactoring; addition, numerals
haftmann
parents: 26089
diff changeset
    96
194aa674c2a1 refactoring; addition, numerals
haftmann
parents: 26089
diff changeset
    97
lemma iSuc_number_of: "iSuc (number_of k) = Fin (Suc (number_of k))"
194aa674c2a1 refactoring; addition, numerals
haftmann
parents: 26089
diff changeset
    98
  by (simp add: iSuc_Fin number_of_inat_def)
11351
c5c403d30c77 added Library/Nat_Infinity.thy and Library/Continuity.thy
oheimb
parents:
diff changeset
    99
c5c403d30c77 added Library/Nat_Infinity.thy and Library/Continuity.thy
oheimb
parents:
diff changeset
   100
lemma iSuc_Infty [simp]: "iSuc \<infinity> = \<infinity>"
27110
194aa674c2a1 refactoring; addition, numerals
haftmann
parents: 26089
diff changeset
   101
  by (simp add: iSuc_def)
11351
c5c403d30c77 added Library/Nat_Infinity.thy and Library/Continuity.thy
oheimb
parents:
diff changeset
   102
c5c403d30c77 added Library/Nat_Infinity.thy and Library/Continuity.thy
oheimb
parents:
diff changeset
   103
lemma iSuc_ne_0 [simp]: "iSuc n \<noteq> 0"
27110
194aa674c2a1 refactoring; addition, numerals
haftmann
parents: 26089
diff changeset
   104
  by (simp add: iSuc_def zero_inat_def split: inat.splits)
194aa674c2a1 refactoring; addition, numerals
haftmann
parents: 26089
diff changeset
   105
194aa674c2a1 refactoring; addition, numerals
haftmann
parents: 26089
diff changeset
   106
lemma zero_ne_iSuc [simp]: "0 \<noteq> iSuc n"
194aa674c2a1 refactoring; addition, numerals
haftmann
parents: 26089
diff changeset
   107
  by (rule iSuc_ne_0 [symmetric])
11351
c5c403d30c77 added Library/Nat_Infinity.thy and Library/Continuity.thy
oheimb
parents:
diff changeset
   108
27110
194aa674c2a1 refactoring; addition, numerals
haftmann
parents: 26089
diff changeset
   109
lemma iSuc_inject [simp]: "iSuc m = iSuc n \<longleftrightarrow> m = n"
194aa674c2a1 refactoring; addition, numerals
haftmann
parents: 26089
diff changeset
   110
  by (simp add: iSuc_def split: inat.splits)
194aa674c2a1 refactoring; addition, numerals
haftmann
parents: 26089
diff changeset
   111
194aa674c2a1 refactoring; addition, numerals
haftmann
parents: 26089
diff changeset
   112
lemma number_of_inat_inject [simp]:
194aa674c2a1 refactoring; addition, numerals
haftmann
parents: 26089
diff changeset
   113
  "(number_of k \<Colon> inat) = number_of l \<longleftrightarrow> (number_of k \<Colon> nat) = number_of l"
194aa674c2a1 refactoring; addition, numerals
haftmann
parents: 26089
diff changeset
   114
  by (simp add: number_of_inat_def)
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
27110
194aa674c2a1 refactoring; addition, numerals
haftmann
parents: 26089
diff changeset
   117
subsection {* Addition *}
194aa674c2a1 refactoring; addition, numerals
haftmann
parents: 26089
diff changeset
   118
194aa674c2a1 refactoring; addition, numerals
haftmann
parents: 26089
diff changeset
   119
instantiation inat :: comm_monoid_add
194aa674c2a1 refactoring; addition, numerals
haftmann
parents: 26089
diff changeset
   120
begin
194aa674c2a1 refactoring; addition, numerals
haftmann
parents: 26089
diff changeset
   121
194aa674c2a1 refactoring; addition, numerals
haftmann
parents: 26089
diff changeset
   122
definition
194aa674c2a1 refactoring; addition, numerals
haftmann
parents: 26089
diff changeset
   123
  [code del]: "m + n = (case m of \<infinity> \<Rightarrow> \<infinity> | Fin m \<Rightarrow> (case n of \<infinity> \<Rightarrow> \<infinity> | Fin n \<Rightarrow> Fin (m + n)))"
11351
c5c403d30c77 added Library/Nat_Infinity.thy and Library/Continuity.thy
oheimb
parents:
diff changeset
   124
27110
194aa674c2a1 refactoring; addition, numerals
haftmann
parents: 26089
diff changeset
   125
lemma plus_inat_simps [simp, code]:
194aa674c2a1 refactoring; addition, numerals
haftmann
parents: 26089
diff changeset
   126
  "Fin m + Fin n = Fin (m + n)"
194aa674c2a1 refactoring; addition, numerals
haftmann
parents: 26089
diff changeset
   127
  "\<infinity> + q = \<infinity>"
194aa674c2a1 refactoring; addition, numerals
haftmann
parents: 26089
diff changeset
   128
  "q + \<infinity> = \<infinity>"
194aa674c2a1 refactoring; addition, numerals
haftmann
parents: 26089
diff changeset
   129
  by (simp_all add: plus_inat_def split: inat.splits)
194aa674c2a1 refactoring; addition, numerals
haftmann
parents: 26089
diff changeset
   130
194aa674c2a1 refactoring; addition, numerals
haftmann
parents: 26089
diff changeset
   131
instance proof
194aa674c2a1 refactoring; addition, numerals
haftmann
parents: 26089
diff changeset
   132
  fix n m q :: inat
194aa674c2a1 refactoring; addition, numerals
haftmann
parents: 26089
diff changeset
   133
  show "n + m + q = n + (m + q)"
194aa674c2a1 refactoring; addition, numerals
haftmann
parents: 26089
diff changeset
   134
    by (cases n, auto, cases m, auto, cases q, auto)
194aa674c2a1 refactoring; addition, numerals
haftmann
parents: 26089
diff changeset
   135
  show "n + m = m + n"
194aa674c2a1 refactoring; addition, numerals
haftmann
parents: 26089
diff changeset
   136
    by (cases n, auto, cases m, auto)
194aa674c2a1 refactoring; addition, numerals
haftmann
parents: 26089
diff changeset
   137
  show "0 + n = n"
194aa674c2a1 refactoring; addition, numerals
haftmann
parents: 26089
diff changeset
   138
    by (cases n) (simp_all add: zero_inat_def)
26089
373221497340 proved linorder and wellorder class instances
huffman
parents: 25691
diff changeset
   139
qed
373221497340 proved linorder and wellorder class instances
huffman
parents: 25691
diff changeset
   140
27110
194aa674c2a1 refactoring; addition, numerals
haftmann
parents: 26089
diff changeset
   141
end
11351
c5c403d30c77 added Library/Nat_Infinity.thy and Library/Continuity.thy
oheimb
parents:
diff changeset
   142
27110
194aa674c2a1 refactoring; addition, numerals
haftmann
parents: 26089
diff changeset
   143
lemma plus_inat_0 [simp]:
194aa674c2a1 refactoring; addition, numerals
haftmann
parents: 26089
diff changeset
   144
  "0 + (q\<Colon>inat) = q"
194aa674c2a1 refactoring; addition, numerals
haftmann
parents: 26089
diff changeset
   145
  "(q\<Colon>inat) + 0 = q"
194aa674c2a1 refactoring; addition, numerals
haftmann
parents: 26089
diff changeset
   146
  by (simp_all add: plus_inat_def zero_inat_def split: inat.splits)
11351
c5c403d30c77 added Library/Nat_Infinity.thy and Library/Continuity.thy
oheimb
parents:
diff changeset
   147
27110
194aa674c2a1 refactoring; addition, numerals
haftmann
parents: 26089
diff changeset
   148
lemma plus_inat_number [simp]:
194aa674c2a1 refactoring; addition, numerals
haftmann
parents: 26089
diff changeset
   149
  "(number_of k \<Colon> inat) + number_of l = (if neg (number_of k \<Colon> int) then number_of l
194aa674c2a1 refactoring; addition, numerals
haftmann
parents: 26089
diff changeset
   150
    else if neg (number_of l \<Colon> int) then number_of k else number_of (k + l))"
194aa674c2a1 refactoring; addition, numerals
haftmann
parents: 26089
diff changeset
   151
  unfolding number_of_inat_def plus_inat_simps nat_arith(1) if_distrib [symmetric, of _ Fin] ..
11351
c5c403d30c77 added Library/Nat_Infinity.thy and Library/Continuity.thy
oheimb
parents:
diff changeset
   152
27110
194aa674c2a1 refactoring; addition, numerals
haftmann
parents: 26089
diff changeset
   153
lemma iSuc_number [simp]:
194aa674c2a1 refactoring; addition, numerals
haftmann
parents: 26089
diff changeset
   154
  "iSuc (number_of k) = (if neg (number_of k \<Colon> int) then 1 else number_of (Int.succ k))"
194aa674c2a1 refactoring; addition, numerals
haftmann
parents: 26089
diff changeset
   155
  unfolding iSuc_number_of
194aa674c2a1 refactoring; addition, numerals
haftmann
parents: 26089
diff changeset
   156
  unfolding one_inat_def number_of_inat_def Suc_nat_number_of if_distrib [symmetric] ..
11351
c5c403d30c77 added Library/Nat_Infinity.thy and Library/Continuity.thy
oheimb
parents:
diff changeset
   157
27110
194aa674c2a1 refactoring; addition, numerals
haftmann
parents: 26089
diff changeset
   158
lemma iSuc_plus_1:
194aa674c2a1 refactoring; addition, numerals
haftmann
parents: 26089
diff changeset
   159
  "iSuc n = n + 1"
194aa674c2a1 refactoring; addition, numerals
haftmann
parents: 26089
diff changeset
   160
  by (cases n) (simp_all add: iSuc_Fin one_inat_def)
194aa674c2a1 refactoring; addition, numerals
haftmann
parents: 26089
diff changeset
   161
  
194aa674c2a1 refactoring; addition, numerals
haftmann
parents: 26089
diff changeset
   162
lemma plus_1_iSuc:
194aa674c2a1 refactoring; addition, numerals
haftmann
parents: 26089
diff changeset
   163
  "1 + q = iSuc q"
194aa674c2a1 refactoring; addition, numerals
haftmann
parents: 26089
diff changeset
   164
  "q + 1 = iSuc q"
194aa674c2a1 refactoring; addition, numerals
haftmann
parents: 26089
diff changeset
   165
  unfolding iSuc_plus_1 by (simp_all add: add_ac)
11351
c5c403d30c77 added Library/Nat_Infinity.thy and Library/Continuity.thy
oheimb
parents:
diff changeset
   166
c5c403d30c77 added Library/Nat_Infinity.thy and Library/Continuity.thy
oheimb
parents:
diff changeset
   167
27110
194aa674c2a1 refactoring; addition, numerals
haftmann
parents: 26089
diff changeset
   168
subsection {* Ordering *}
194aa674c2a1 refactoring; addition, numerals
haftmann
parents: 26089
diff changeset
   169
194aa674c2a1 refactoring; addition, numerals
haftmann
parents: 26089
diff changeset
   170
instantiation inat :: ordered_ab_semigroup_add
194aa674c2a1 refactoring; addition, numerals
haftmann
parents: 26089
diff changeset
   171
begin
11351
c5c403d30c77 added Library/Nat_Infinity.thy and Library/Continuity.thy
oheimb
parents:
diff changeset
   172
27110
194aa674c2a1 refactoring; addition, numerals
haftmann
parents: 26089
diff changeset
   173
definition
194aa674c2a1 refactoring; addition, numerals
haftmann
parents: 26089
diff changeset
   174
  [code del]: "m \<le> n = (case n of Fin n1 \<Rightarrow> (case m of Fin m1 \<Rightarrow> m1 \<le> n1 | \<infinity> \<Rightarrow> False)
194aa674c2a1 refactoring; addition, numerals
haftmann
parents: 26089
diff changeset
   175
    | \<infinity> \<Rightarrow> True)"
11351
c5c403d30c77 added Library/Nat_Infinity.thy and Library/Continuity.thy
oheimb
parents:
diff changeset
   176
27110
194aa674c2a1 refactoring; addition, numerals
haftmann
parents: 26089
diff changeset
   177
definition
194aa674c2a1 refactoring; addition, numerals
haftmann
parents: 26089
diff changeset
   178
  [code del]: "m < n = (case m of Fin m1 \<Rightarrow> (case n of Fin n1 \<Rightarrow> m1 < n1 | \<infinity> \<Rightarrow> True)
194aa674c2a1 refactoring; addition, numerals
haftmann
parents: 26089
diff changeset
   179
    | \<infinity> \<Rightarrow> False)"
11351
c5c403d30c77 added Library/Nat_Infinity.thy and Library/Continuity.thy
oheimb
parents:
diff changeset
   180
27110
194aa674c2a1 refactoring; addition, numerals
haftmann
parents: 26089
diff changeset
   181
lemma inat_ord_simps [simp]:
194aa674c2a1 refactoring; addition, numerals
haftmann
parents: 26089
diff changeset
   182
  "Fin m \<le> Fin n \<longleftrightarrow> m \<le> n"
194aa674c2a1 refactoring; addition, numerals
haftmann
parents: 26089
diff changeset
   183
  "Fin m < Fin n \<longleftrightarrow> m < n"
194aa674c2a1 refactoring; addition, numerals
haftmann
parents: 26089
diff changeset
   184
  "q \<le> \<infinity>"
194aa674c2a1 refactoring; addition, numerals
haftmann
parents: 26089
diff changeset
   185
  "q < \<infinity> \<longleftrightarrow> q \<noteq> \<infinity>"
194aa674c2a1 refactoring; addition, numerals
haftmann
parents: 26089
diff changeset
   186
  "\<infinity> \<le> q \<longleftrightarrow> q = \<infinity>"
194aa674c2a1 refactoring; addition, numerals
haftmann
parents: 26089
diff changeset
   187
  "\<infinity> < q \<longleftrightarrow> False"
194aa674c2a1 refactoring; addition, numerals
haftmann
parents: 26089
diff changeset
   188
  by (simp_all add: less_eq_inat_def less_inat_def split: inat.splits)
11351
c5c403d30c77 added Library/Nat_Infinity.thy and Library/Continuity.thy
oheimb
parents:
diff changeset
   189
27110
194aa674c2a1 refactoring; addition, numerals
haftmann
parents: 26089
diff changeset
   190
lemma inat_ord_code [code]:
194aa674c2a1 refactoring; addition, numerals
haftmann
parents: 26089
diff changeset
   191
  "Fin m \<le> Fin n \<longleftrightarrow> m \<le> n"
194aa674c2a1 refactoring; addition, numerals
haftmann
parents: 26089
diff changeset
   192
  "Fin m < Fin n \<longleftrightarrow> m < n"
194aa674c2a1 refactoring; addition, numerals
haftmann
parents: 26089
diff changeset
   193
  "q \<le> \<infinity> \<longleftrightarrow> True"
194aa674c2a1 refactoring; addition, numerals
haftmann
parents: 26089
diff changeset
   194
  "Fin m < \<infinity> \<longleftrightarrow> True"
194aa674c2a1 refactoring; addition, numerals
haftmann
parents: 26089
diff changeset
   195
  "\<infinity> \<le> Fin n \<longleftrightarrow> False"
194aa674c2a1 refactoring; addition, numerals
haftmann
parents: 26089
diff changeset
   196
  "\<infinity> < q \<longleftrightarrow> False"
194aa674c2a1 refactoring; addition, numerals
haftmann
parents: 26089
diff changeset
   197
  by simp_all
11351
c5c403d30c77 added Library/Nat_Infinity.thy and Library/Continuity.thy
oheimb
parents:
diff changeset
   198
27110
194aa674c2a1 refactoring; addition, numerals
haftmann
parents: 26089
diff changeset
   199
instance by default
194aa674c2a1 refactoring; addition, numerals
haftmann
parents: 26089
diff changeset
   200
  (auto simp add: less_eq_inat_def less_inat_def plus_inat_def split: inat.splits)
11351
c5c403d30c77 added Library/Nat_Infinity.thy and Library/Continuity.thy
oheimb
parents:
diff changeset
   201
27110
194aa674c2a1 refactoring; addition, numerals
haftmann
parents: 26089
diff changeset
   202
end
194aa674c2a1 refactoring; addition, numerals
haftmann
parents: 26089
diff changeset
   203
194aa674c2a1 refactoring; addition, numerals
haftmann
parents: 26089
diff changeset
   204
lemma inat_ord_number [simp]:
194aa674c2a1 refactoring; addition, numerals
haftmann
parents: 26089
diff changeset
   205
  "(number_of m \<Colon> inat) \<le> number_of n \<longleftrightarrow> (number_of m \<Colon> nat) \<le> number_of n"
194aa674c2a1 refactoring; addition, numerals
haftmann
parents: 26089
diff changeset
   206
  "(number_of m \<Colon> inat) < number_of n \<longleftrightarrow> (number_of m \<Colon> nat) < number_of n"
194aa674c2a1 refactoring; addition, numerals
haftmann
parents: 26089
diff changeset
   207
  by (simp_all add: number_of_inat_def)
11351
c5c403d30c77 added Library/Nat_Infinity.thy and Library/Continuity.thy
oheimb
parents:
diff changeset
   208
27110
194aa674c2a1 refactoring; addition, numerals
haftmann
parents: 26089
diff changeset
   209
lemma i0_lb [simp]: "(0\<Colon>inat) \<le> n"
194aa674c2a1 refactoring; addition, numerals
haftmann
parents: 26089
diff changeset
   210
  by (simp add: zero_inat_def less_eq_inat_def split: inat.splits)
11351
c5c403d30c77 added Library/Nat_Infinity.thy and Library/Continuity.thy
oheimb
parents:
diff changeset
   211
27110
194aa674c2a1 refactoring; addition, numerals
haftmann
parents: 26089
diff changeset
   212
lemma i0_neq [simp]: "n \<le> (0\<Colon>inat) \<longleftrightarrow> n = 0"
194aa674c2a1 refactoring; addition, numerals
haftmann
parents: 26089
diff changeset
   213
  by (simp add: zero_inat_def less_eq_inat_def split: inat.splits)
194aa674c2a1 refactoring; addition, numerals
haftmann
parents: 26089
diff changeset
   214
194aa674c2a1 refactoring; addition, numerals
haftmann
parents: 26089
diff changeset
   215
lemma Infty_ileE [elim!]: "\<infinity> \<le> Fin m \<Longrightarrow> R"
194aa674c2a1 refactoring; addition, numerals
haftmann
parents: 26089
diff changeset
   216
  by (simp add: zero_inat_def less_eq_inat_def split: inat.splits)
11351
c5c403d30c77 added Library/Nat_Infinity.thy and Library/Continuity.thy
oheimb
parents:
diff changeset
   217
27110
194aa674c2a1 refactoring; addition, numerals
haftmann
parents: 26089
diff changeset
   218
lemma Infty_ilessE [elim!]: "\<infinity> < Fin m \<Longrightarrow> R"
194aa674c2a1 refactoring; addition, numerals
haftmann
parents: 26089
diff changeset
   219
  by simp
11351
c5c403d30c77 added Library/Nat_Infinity.thy and Library/Continuity.thy
oheimb
parents:
diff changeset
   220
27110
194aa674c2a1 refactoring; addition, numerals
haftmann
parents: 26089
diff changeset
   221
lemma not_ilessi0 [simp]: "\<not> n < (0\<Colon>inat)"
194aa674c2a1 refactoring; addition, numerals
haftmann
parents: 26089
diff changeset
   222
  by (simp add: zero_inat_def less_inat_def split: inat.splits)
194aa674c2a1 refactoring; addition, numerals
haftmann
parents: 26089
diff changeset
   223
194aa674c2a1 refactoring; addition, numerals
haftmann
parents: 26089
diff changeset
   224
lemma i0_eq [simp]: "(0\<Colon>inat) < n \<longleftrightarrow> n \<noteq> 0"
194aa674c2a1 refactoring; addition, numerals
haftmann
parents: 26089
diff changeset
   225
  by (simp add: zero_inat_def less_inat_def split: inat.splits)
11351
c5c403d30c77 added Library/Nat_Infinity.thy and Library/Continuity.thy
oheimb
parents:
diff changeset
   226
27110
194aa674c2a1 refactoring; addition, numerals
haftmann
parents: 26089
diff changeset
   227
lemma iSuc_ile_mono [simp]: "iSuc n \<le> iSuc m \<longleftrightarrow> n \<le> m"
194aa674c2a1 refactoring; addition, numerals
haftmann
parents: 26089
diff changeset
   228
  by (simp add: iSuc_def less_eq_inat_def split: inat.splits)
194aa674c2a1 refactoring; addition, numerals
haftmann
parents: 26089
diff changeset
   229
 
194aa674c2a1 refactoring; addition, numerals
haftmann
parents: 26089
diff changeset
   230
lemma iSuc_mono [simp]: "iSuc n < iSuc m \<longleftrightarrow> n < m"
194aa674c2a1 refactoring; addition, numerals
haftmann
parents: 26089
diff changeset
   231
  by (simp add: iSuc_def less_inat_def split: inat.splits)
11351
c5c403d30c77 added Library/Nat_Infinity.thy and Library/Continuity.thy
oheimb
parents:
diff changeset
   232
27110
194aa674c2a1 refactoring; addition, numerals
haftmann
parents: 26089
diff changeset
   233
lemma ile_iSuc [simp]: "n \<le> iSuc n"
194aa674c2a1 refactoring; addition, numerals
haftmann
parents: 26089
diff changeset
   234
  by (simp add: iSuc_def less_eq_inat_def split: inat.splits)
11351
c5c403d30c77 added Library/Nat_Infinity.thy and Library/Continuity.thy
oheimb
parents:
diff changeset
   235
11355
wenzelm
parents: 11351
diff changeset
   236
lemma not_iSuc_ilei0 [simp]: "\<not> iSuc n \<le> 0"
27110
194aa674c2a1 refactoring; addition, numerals
haftmann
parents: 26089
diff changeset
   237
  by (simp add: zero_inat_def iSuc_def less_eq_inat_def split: inat.splits)
194aa674c2a1 refactoring; addition, numerals
haftmann
parents: 26089
diff changeset
   238
194aa674c2a1 refactoring; addition, numerals
haftmann
parents: 26089
diff changeset
   239
lemma i0_iless_iSuc [simp]: "0 < iSuc n"
194aa674c2a1 refactoring; addition, numerals
haftmann
parents: 26089
diff changeset
   240
  by (simp add: zero_inat_def iSuc_def less_inat_def split: inat.splits)
194aa674c2a1 refactoring; addition, numerals
haftmann
parents: 26089
diff changeset
   241
194aa674c2a1 refactoring; addition, numerals
haftmann
parents: 26089
diff changeset
   242
lemma ileI1: "m < n \<Longrightarrow> iSuc m \<le> n"
194aa674c2a1 refactoring; addition, numerals
haftmann
parents: 26089
diff changeset
   243
  by (simp add: iSuc_def less_eq_inat_def less_inat_def split: inat.splits)
194aa674c2a1 refactoring; addition, numerals
haftmann
parents: 26089
diff changeset
   244
194aa674c2a1 refactoring; addition, numerals
haftmann
parents: 26089
diff changeset
   245
lemma Suc_ile_eq: "Fin (Suc m) \<le> n \<longleftrightarrow> Fin m < n"
194aa674c2a1 refactoring; addition, numerals
haftmann
parents: 26089
diff changeset
   246
  by (cases n) auto
194aa674c2a1 refactoring; addition, numerals
haftmann
parents: 26089
diff changeset
   247
194aa674c2a1 refactoring; addition, numerals
haftmann
parents: 26089
diff changeset
   248
lemma iless_Suc_eq [simp]: "Fin m < iSuc n \<longleftrightarrow> Fin m \<le> n"
194aa674c2a1 refactoring; addition, numerals
haftmann
parents: 26089
diff changeset
   249
  by (auto simp add: iSuc_def less_inat_def split: inat.splits)
11351
c5c403d30c77 added Library/Nat_Infinity.thy and Library/Continuity.thy
oheimb
parents:
diff changeset
   250
27110
194aa674c2a1 refactoring; addition, numerals
haftmann
parents: 26089
diff changeset
   251
lemma min_inat_simps [simp]:
194aa674c2a1 refactoring; addition, numerals
haftmann
parents: 26089
diff changeset
   252
  "min (Fin m) (Fin n) = Fin (min m n)"
194aa674c2a1 refactoring; addition, numerals
haftmann
parents: 26089
diff changeset
   253
  "min q 0 = 0"
194aa674c2a1 refactoring; addition, numerals
haftmann
parents: 26089
diff changeset
   254
  "min 0 q = 0"
194aa674c2a1 refactoring; addition, numerals
haftmann
parents: 26089
diff changeset
   255
  "min q \<infinity> = q"
194aa674c2a1 refactoring; addition, numerals
haftmann
parents: 26089
diff changeset
   256
  "min \<infinity> q = q"
194aa674c2a1 refactoring; addition, numerals
haftmann
parents: 26089
diff changeset
   257
  by (auto simp add: min_def)
11351
c5c403d30c77 added Library/Nat_Infinity.thy and Library/Continuity.thy
oheimb
parents:
diff changeset
   258
27110
194aa674c2a1 refactoring; addition, numerals
haftmann
parents: 26089
diff changeset
   259
lemma max_inat_simps [simp]:
194aa674c2a1 refactoring; addition, numerals
haftmann
parents: 26089
diff changeset
   260
  "max (Fin m) (Fin n) = Fin (max m n)"
194aa674c2a1 refactoring; addition, numerals
haftmann
parents: 26089
diff changeset
   261
  "max q 0 = q"
194aa674c2a1 refactoring; addition, numerals
haftmann
parents: 26089
diff changeset
   262
  "max 0 q = q"
194aa674c2a1 refactoring; addition, numerals
haftmann
parents: 26089
diff changeset
   263
  "max q \<infinity> = \<infinity>"
194aa674c2a1 refactoring; addition, numerals
haftmann
parents: 26089
diff changeset
   264
  "max \<infinity> q = \<infinity>"
194aa674c2a1 refactoring; addition, numerals
haftmann
parents: 26089
diff changeset
   265
  by (simp_all add: max_def)
194aa674c2a1 refactoring; addition, numerals
haftmann
parents: 26089
diff changeset
   266
194aa674c2a1 refactoring; addition, numerals
haftmann
parents: 26089
diff changeset
   267
lemma Fin_ile: "n \<le> Fin m \<Longrightarrow> \<exists>k. n = Fin k"
194aa674c2a1 refactoring; addition, numerals
haftmann
parents: 26089
diff changeset
   268
  by (cases n) simp_all
194aa674c2a1 refactoring; addition, numerals
haftmann
parents: 26089
diff changeset
   269
194aa674c2a1 refactoring; addition, numerals
haftmann
parents: 26089
diff changeset
   270
lemma Fin_iless: "n < Fin m \<Longrightarrow> \<exists>k. n = Fin k"
194aa674c2a1 refactoring; addition, numerals
haftmann
parents: 26089
diff changeset
   271
  by (cases n) simp_all
11351
c5c403d30c77 added Library/Nat_Infinity.thy and Library/Continuity.thy
oheimb
parents:
diff changeset
   272
c5c403d30c77 added Library/Nat_Infinity.thy and Library/Continuity.thy
oheimb
parents:
diff changeset
   273
lemma chain_incr: "\<forall>i. \<exists>j. Y i < Y j ==> \<exists>j. Fin k < Y j"
25134
3d4953e88449 Eliminated most of the neq0_conv occurrences. As a result, many
nipkow
parents: 25112
diff changeset
   274
apply (induct_tac k)
3d4953e88449 Eliminated most of the neq0_conv occurrences. As a result, many
nipkow
parents: 25112
diff changeset
   275
 apply (simp (no_asm) only: Fin_0)
27110
194aa674c2a1 refactoring; addition, numerals
haftmann
parents: 26089
diff changeset
   276
 apply (fast intro: le_less_trans [OF i0_lb])
25134
3d4953e88449 Eliminated most of the neq0_conv occurrences. As a result, many
nipkow
parents: 25112
diff changeset
   277
apply (erule exE)
3d4953e88449 Eliminated most of the neq0_conv occurrences. As a result, many
nipkow
parents: 25112
diff changeset
   278
apply (drule spec)
3d4953e88449 Eliminated most of the neq0_conv occurrences. As a result, many
nipkow
parents: 25112
diff changeset
   279
apply (erule exE)
3d4953e88449 Eliminated most of the neq0_conv occurrences. As a result, many
nipkow
parents: 25112
diff changeset
   280
apply (drule ileI1)
3d4953e88449 Eliminated most of the neq0_conv occurrences. As a result, many
nipkow
parents: 25112
diff changeset
   281
apply (rule iSuc_Fin [THEN subst])
3d4953e88449 Eliminated most of the neq0_conv occurrences. As a result, many
nipkow
parents: 25112
diff changeset
   282
apply (rule exI)
27110
194aa674c2a1 refactoring; addition, numerals
haftmann
parents: 26089
diff changeset
   283
apply (erule (1) le_less_trans)
25134
3d4953e88449 Eliminated most of the neq0_conv occurrences. As a result, many
nipkow
parents: 25112
diff changeset
   284
done
11351
c5c403d30c77 added Library/Nat_Infinity.thy and Library/Continuity.thy
oheimb
parents:
diff changeset
   285
26089
373221497340 proved linorder and wellorder class instances
huffman
parents: 25691
diff changeset
   286
27110
194aa674c2a1 refactoring; addition, numerals
haftmann
parents: 26089
diff changeset
   287
subsection {* Well-ordering *}
26089
373221497340 proved linorder and wellorder class instances
huffman
parents: 25691
diff changeset
   288
373221497340 proved linorder and wellorder class instances
huffman
parents: 25691
diff changeset
   289
lemma less_FinE:
373221497340 proved linorder and wellorder class instances
huffman
parents: 25691
diff changeset
   290
  "[| n < Fin m; !!k. n = Fin k ==> k < m ==> P |] ==> P"
373221497340 proved linorder and wellorder class instances
huffman
parents: 25691
diff changeset
   291
by (induct n) auto
373221497340 proved linorder and wellorder class instances
huffman
parents: 25691
diff changeset
   292
373221497340 proved linorder and wellorder class instances
huffman
parents: 25691
diff changeset
   293
lemma less_InftyE:
373221497340 proved linorder and wellorder class instances
huffman
parents: 25691
diff changeset
   294
  "[| n < Infty; !!k. n = Fin k ==> P |] ==> P"
373221497340 proved linorder and wellorder class instances
huffman
parents: 25691
diff changeset
   295
by (induct n) auto
373221497340 proved linorder and wellorder class instances
huffman
parents: 25691
diff changeset
   296
373221497340 proved linorder and wellorder class instances
huffman
parents: 25691
diff changeset
   297
lemma inat_less_induct:
373221497340 proved linorder and wellorder class instances
huffman
parents: 25691
diff changeset
   298
  assumes prem: "!!n. \<forall>m::inat. m < n --> P m ==> P n" shows "P n"
373221497340 proved linorder and wellorder class instances
huffman
parents: 25691
diff changeset
   299
proof -
373221497340 proved linorder and wellorder class instances
huffman
parents: 25691
diff changeset
   300
  have P_Fin: "!!k. P (Fin k)"
373221497340 proved linorder and wellorder class instances
huffman
parents: 25691
diff changeset
   301
    apply (rule nat_less_induct)
373221497340 proved linorder and wellorder class instances
huffman
parents: 25691
diff changeset
   302
    apply (rule prem, clarify)
373221497340 proved linorder and wellorder class instances
huffman
parents: 25691
diff changeset
   303
    apply (erule less_FinE, simp)
373221497340 proved linorder and wellorder class instances
huffman
parents: 25691
diff changeset
   304
    done
373221497340 proved linorder and wellorder class instances
huffman
parents: 25691
diff changeset
   305
  show ?thesis
373221497340 proved linorder and wellorder class instances
huffman
parents: 25691
diff changeset
   306
  proof (induct n)
373221497340 proved linorder and wellorder class instances
huffman
parents: 25691
diff changeset
   307
    fix nat
373221497340 proved linorder and wellorder class instances
huffman
parents: 25691
diff changeset
   308
    show "P (Fin nat)" by (rule P_Fin)
373221497340 proved linorder and wellorder class instances
huffman
parents: 25691
diff changeset
   309
  next
373221497340 proved linorder and wellorder class instances
huffman
parents: 25691
diff changeset
   310
    show "P Infty"
373221497340 proved linorder and wellorder class instances
huffman
parents: 25691
diff changeset
   311
      apply (rule prem, clarify)
373221497340 proved linorder and wellorder class instances
huffman
parents: 25691
diff changeset
   312
      apply (erule less_InftyE)
373221497340 proved linorder and wellorder class instances
huffman
parents: 25691
diff changeset
   313
      apply (simp add: P_Fin)
373221497340 proved linorder and wellorder class instances
huffman
parents: 25691
diff changeset
   314
      done
373221497340 proved linorder and wellorder class instances
huffman
parents: 25691
diff changeset
   315
  qed
373221497340 proved linorder and wellorder class instances
huffman
parents: 25691
diff changeset
   316
qed
373221497340 proved linorder and wellorder class instances
huffman
parents: 25691
diff changeset
   317
373221497340 proved linorder and wellorder class instances
huffman
parents: 25691
diff changeset
   318
instance inat :: wellorder
373221497340 proved linorder and wellorder class instances
huffman
parents: 25691
diff changeset
   319
proof
373221497340 proved linorder and wellorder class instances
huffman
parents: 25691
diff changeset
   320
  show "wf {(x::inat, y::inat). x < y}"
373221497340 proved linorder and wellorder class instances
huffman
parents: 25691
diff changeset
   321
  proof (rule wfUNIVI)
373221497340 proved linorder and wellorder class instances
huffman
parents: 25691
diff changeset
   322
    fix P and x :: inat
373221497340 proved linorder and wellorder class instances
huffman
parents: 25691
diff changeset
   323
    assume "\<forall>x::inat. (\<forall>y. (y, x) \<in> {(x, y). x < y} \<longrightarrow> P y) \<longrightarrow> P x"
373221497340 proved linorder and wellorder class instances
huffman
parents: 25691
diff changeset
   324
    hence 1: "!!x::inat. ALL y. y < x --> P y ==> P x" by fast
373221497340 proved linorder and wellorder class instances
huffman
parents: 25691
diff changeset
   325
    thus "P x" by (rule inat_less_induct)
373221497340 proved linorder and wellorder class instances
huffman
parents: 25691
diff changeset
   326
  qed
373221497340 proved linorder and wellorder class instances
huffman
parents: 25691
diff changeset
   327
qed
373221497340 proved linorder and wellorder class instances
huffman
parents: 25691
diff changeset
   328
27110
194aa674c2a1 refactoring; addition, numerals
haftmann
parents: 26089
diff changeset
   329
194aa674c2a1 refactoring; addition, numerals
haftmann
parents: 26089
diff changeset
   330
subsection {* Traditional theorem names *}
194aa674c2a1 refactoring; addition, numerals
haftmann
parents: 26089
diff changeset
   331
194aa674c2a1 refactoring; addition, numerals
haftmann
parents: 26089
diff changeset
   332
lemmas inat_defs = zero_inat_def one_inat_def number_of_inat_def iSuc_def
194aa674c2a1 refactoring; addition, numerals
haftmann
parents: 26089
diff changeset
   333
  plus_inat_def less_eq_inat_def less_inat_def
194aa674c2a1 refactoring; addition, numerals
haftmann
parents: 26089
diff changeset
   334
194aa674c2a1 refactoring; addition, numerals
haftmann
parents: 26089
diff changeset
   335
lemmas inat_splits = inat.splits
194aa674c2a1 refactoring; addition, numerals
haftmann
parents: 26089
diff changeset
   336
11351
c5c403d30c77 added Library/Nat_Infinity.thy and Library/Continuity.thy
oheimb
parents:
diff changeset
   337
end