Anforderungen  |   Konzepte  |   Entwurf  |   Entwicklung  |   Qualitätssicherung  |   Lebenszyklus  |   Steuerung
 
 
 
 


Quelle  Ordinals.thy   Sprache: Isabelle

 
(*  Title:      HOL/Induct/Ordinals.thy
    Author:     Stefan Berghofer and Markus Wenzel, TU Muenchen
*)


section \<open>Ordinals\<close>

theory Ordinals
imports Main
begin

text \<open>
  Some basic definitions of ordinal numbers.  Draws an Agda
  development (in Martin-Löf type theoryby Peter Hancock (see
  \<^url>\<open>http://www.dcs.ed.ac.uk/home/pgh/chat.html\<close>).
\<close>

datatype ordinal =
    Zero
  | Succ ordinal
  | Limit "nat \ ordinal"

primrec pred :: "ordinal \ nat \ ordinal option"
where
  "pred Zero n = None"
"pred (Succ a) n = Some a"
"pred (Limit f) n = Some (f n)"

abbreviation (input) iter :: "('a \ 'a) \ nat \ ('a \ 'a)"
  where "iter f n \ f ^^ n"

definition OpLim :: "(nat \ (ordinal \ ordinal)) \ (ordinal \ ordinal)"
  where "OpLim F a = Limit (\n. F n a)"

definition OpItw :: "(ordinal \ ordinal) \ (ordinal \ ordinal)" (\\\)
  where "\f = OpLim (iter f)"

primrec cantor :: "ordinal \ ordinal \ ordinal"
where
  "cantor a Zero = Succ a"
"cantor a (Succ b) = \(\x. cantor x b) a"
"cantor a (Limit f) = Limit (\n. cantor a (f n))"

primrec Nabla :: "(ordinal \ ordinal) \ (ordinal \ ordinal)" (\\\)
where
  "\f Zero = f Zero"
"\f (Succ a) = f (Succ (\f a))"
"\f (Limit h) = Limit (\n. \f (h n))"

definition deriv :: "(ordinal \ ordinal) \ (ordinal \ ordinal)"
  where "deriv f = \(\f)"

primrec veblen :: "ordinal \ ordinal \ ordinal"
where
  "veblen Zero = \(OpLim (iter (cantor Zero)))"
"veblen (Succ a) = \(OpLim (iter (veblen a)))"
"veblen (Limit f) = \(OpLim (\n. veblen (f n)))"

definition "veb a = veblen a Zero"
definition "\\<^sub>0 = veb Zero"
definition "\\<^sub>0 = Limit (\n. iter veb n Zero)"

end

100%


¤ Dauer der Verarbeitung: 0.3 Sekunden  ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

Beweissystem der NASA

Beweissystem Isabelle

NIST Cobol Testsuite

Cephes Mathematical Library

Wiener Entwicklungsmethode

Haftungshinweis

Die Informationen auf dieser Webseite wurden nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit, noch Qualität der bereit gestellten Informationen zugesichert.

Bemerkung:

Die farbliche Syntaxdarstellung ist noch experimentell.






                                                                                                                                                                                                                                                                                                                                                                                                     


Neuigkeiten

     Aktuelles
     Motto des Tages

Software

     Produkte
     Quellcodebibliothek

Aktivitäten

     Artikel über Sicherheit
     Anleitung zur Aktivierung von SSL

Muße

     Gedichte
     Musik
     Bilder

Jenseits des Üblichen ....

Besucherstatistik

Besucherstatistik

Monitoring

Montastic status badge