arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1406.7497cs.PL
收藏

领域理论在OOP建模中的应用

Domain Theory for Modeling OOP: A Summary

Moez A. AbdelGawad

摘要:

域理论是“一种数学理论,作为程序设计语言语义的基础”。域形成了部分信息理论的基础,其将部分函数的熟悉概念扩展到涵盖整个“定义度”谱,以便对增量高阶计算(即,利用无限数据值进行计算,诸如在像整数域、无限树的无限域上定义的函数,以及诸如面向对象编程的对象)。递归论的一般考虑表明,在任何关于可计算性的讨论中,部分函数都是不可避免的。域理论提供了一个适当的抽象设置,其中部分函数的概念可以被提升并用于赋予更高类型,递归类型等的意义。用NOOP证明了主流名义类型OO程序设计语言中继承和子类型的识别及其有效性。在这份报告中,我们首先提出的基本领域理论的概念和域构造器的定义中使用的NOOP的建设,然后我们提出了一个简单的结构模型的OOP称为COOP的建设,作为一个步骤的NOOP建设。与NOOP的构造类似,COOP的构造使用了之前提出的域构造器。

英文摘要:

Domain theory is `a mathematical theory that serves as a foundation for the semantics of programming languages'. Domains form the basis of a theory of partial information, which extends the familiar notion of partial function to encompass a whole spectrum of "degrees of definedness", so as to model incremental higher-order computation (i.e., computing with infinite data values, such as functions defined over an infinite domain like the domain of integers, infinite trees, and such as objects of object-oriented programming). General considerations from recursion theory dictate that partial functions are unavoidable in any discussion of computability. Domain theory provides an appropriately abstract setting in which the notion of a partial function can be lifted and used to give meaning to higher types, recursive types, etc. NOOP is a domain-theoretic model of nominally-typed OOP. NOOP was used to prove the identification of inheritance and subtyping in mainstream nominally-typed OO programming languages and the validity of this identification. In this report we first present the definitions of basic domain theoretic notions and domain constructors used in the construction of NOOP, then we present the construction of a simple structural model of OOP called COOP as a step towards the construction of NOOP. Like the construction of NOOP, the construction of COOP uses earlier presented domain constructors.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑