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


Quelle  Decl.thy

  Sprache: Isabelle
 

(*  Title:      HOL/MicroJava/J/Decl.thy
  Author: David von Oheimb
  Copyright 1999 Technische Universitaet Muenchen
*)

section Class Declarations and Programs

theory Decl imports Type begin

type_synonym 
  fdecl    = "vname × ty"        🍋 field declaration, cf. 8.3 (, 9.3)

type_synonym
  sig      = "mname × ty list"   🍋 signature of a method, cf. 8.4.2

type_synonym
  'c mdecl = "sig × ty × 'c"     🍋 method declaration in a class

type_synonym
  'c "class" = "cname × fdecl list × 'c mdecl list" 
  🍋 class = superclass, fields, methods

type_synonym
  'c cdecl = "cname × 'c class"  🍋 class declaration, cf. 8.1

type_synonym
  'c prog  = "'c cdecl list"     🍋 program


translations
  (type) "fdecl" <= (type) "vname × ty"
  (type) "sig" <= (type) "mname × ty list"
  (type) "'c mdecl" <= (type) "sig × ty × 'c"
  (type) "'c class" <= (type) "cname × fdecl list × ('c mdecl) list"
  (type) "'c cdecl" <= (type) "cname × ('c class)"
  (type) "'c prog" <= (type) "('c cdecl) list"


definition "class" :: "'c prog => (cname 'c class)" where
  "class map_of"

definition is_class :: "'c prog => cname => bool" where
  "is_class G C class G C None"


lemma finite_is_class: "finite {C. is_class G C}"
apply (unfold is_class_def class_def)
apply (fold dom_def)
apply (rule finite_dom_map_of)
done

primrec is_type :: "'c prog => ty => bool" where
  "is_type G (PrimT pt) = True"
"is_type G (RefT t) = (case t of NullT => True | ClassT C => is_class G C)"

end

Messung V0.5 in Prozent
C=83 H=48 G=67

¤ Dauer der Verarbeitung: 0.13 Sekunden  (vorverarbeitet am  2026-05-02) ¤

*© 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 und die Messung sind 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