Skip to main content
QUICK REVIEW

[Paper Review] A DENOTATIONAL ENGINEERING OF PROGRAMMING LANGUAGES to make software systems reliable and user manuals clear, complete and unambiguous. A book in statu nascendi

Andrzej Blikle, Chrząstowski-Wachtel, Piotr|arXiv (Cornell University)|Jan 1, 2018
Computability, Logic, AI AlgorithmsComputer Science17 references1 citations
TL;DR

This paper introduces a denotational engineering methodology for programming languages that uses formal mathematical models to define language semantics precisely, aiming to enhance software reliability and eliminate ambiguity in user manuals. By structuring programming languages through denotational models based on cpos (chain-complete partial orders) and formal syntax, the approach enables unambiguous, mathematically rigorous language definitions and supports tooling for correct program development and documentation.

ABSTRACT

The book is devoted to two research areas: (1) Designing programming languages along with their denotational models. A denotational model of a language consists of two many-sorted algebras - an algebra of syntax and an algebra of denotations - and a (unique) homomorphism from syntax to denotations called the semantics of the language. (2) Designing sound program-constructors for languages with denotational models. In our approach programs syntactically contain their total-correctness specifications. A program is said to be correct if it is correct wrt its specification. A program-constructor is sound if given correct component-programs yields a correct resulting program. Both methods are illustrated on an example-language Lingua.

Motivation & Objective

  • To address the ambiguity, incompleteness, and inconsistency in existing programming language manuals.
  • To improve software reliability by formally specifying language semantics using denotational models.
  • To establish a systematic methodology for writing clear, complete, and unambiguous user manuals based on formal semantics.
  • To support the development of correct programs through a layered language design (Lingua) and formal verification principles.
  • To build a community and toolchain for implementing and validating the proposed language engineering framework.

Proposed method

  • Defining programming languages through denotational models based on chain-complete partial orders (cpos), ensuring mathematical rigor and completeness.
  • Introducing a multi-layered language design called Lingua, with abstract syntax, concrete syntax, and semantic clauses generated from formal definitions.
  • Using formal algebraic signatures to generate abstract syntax grammars and support semantic clause generation.
  • Designing tools for automatic code generation, including interpreters and compilers, from semantic clauses and syntax definitions.
  • Developing a system for restoring colloquial syntax into formal concrete syntax to improve usability.
  • Establishing a framework for writing manuals that integrate foundational semantics, ensuring clarity and consistency.

Experimental results

Research questions

  • RQ1How can programming language semantics be formalized to eliminate ambiguity and ensure completeness in language specifications?
  • RQ2What mathematical foundation supports the construction of reliable and unambiguous programming language definitions?
  • RQ3How can user manuals be systematically written to reflect formal semantics without requiring expert-level knowledge?
  • RQ4What toolchain is required to support the implementation of a formally defined programming language from syntax to execution?
  • RQ5How can a community of developers be formed to build and maintain a formally grounded programming language system?

Key findings

  • The denotational engineering approach provides a mathematically sound foundation for defining programming languages using cpos and formal syntax, ensuring semantic completeness.
  • A layered language system (Lingua) can be constructed from formal signatures, enabling modular and correct language development.
  • Tools for generating abstract syntax, concrete syntax, semantic clauses, and interpreters/compiler code can be systematically derived from formal definitions.
  • User manuals based on formal semantics can be written to be both precise and accessible to professional programmers, reducing ambiguity.
  • The framework supports the creation of a community-driven, non-open-source implementation to preserve mathematical correctness and avoid unsound extensions.
  • Programming experiments using microprograms demonstrate the feasibility and correctness of the methodology in real-world, performance-critical contexts.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.