Skip to main content
QUICK REVIEW

[Paper Review] A Calculus of Inheritance

Bo Yang|arXiv (Cornell University)|Feb 18, 2026
Logic, programming, and type systemsComputer Science0 citations
TL;DR

Inheritance-calculus is a minimal declarative programming model with three primitives (record, definition, inheritance) that trivially embeds the lambda calculus, yields a fully abstract, set-theoretic semantics for lazy lambda calculus with Böhm-tree equivalence, and exhibits expressiveness beyond lambda-calculus alone.

ABSTRACT

Just as the $λ$-calculus uses three primitives (abstraction, application, variable) as the foundation of functional programming, inheritance-calculus uses three primitives (record, definition, inheritance) as the foundation of declarative programming. By unifying modules, classes, objects, methods, fields, and locals under a single record abstraction, the calculus models inheritance simply as set union. Consequently, composition is inherently commutative, idempotent, and associative, structurally eliminating the multiple-inheritance linearization problem. Its semantics is first-order~\cite{vanemden1976-predicate-logic-semantics, reynolds1972-definitional-interpreters, aczel1977-inductive-definitions}, denotational, and computable by tabling~\cite{tamaki1986-tabled-resolution}, even for cyclic inheritance hierarchies. These three properties extend to the $λ$-calculus, since Böhm tree equivalence~\cite{barendregt1984-lambda-calculus} is fully abstract for the first-iteration approximation of a sublanguage of inheritance-calculus. As a corollary, this establishes a convergence hierarchy $ ext{eager} \subsetneq ext{lazy} \subsetneq ext{fixpoint}$ among $λ$-calculi sharing the same $λ$-syntax. Inheritance-calculus is distilled from MIXINv2, a practical implementation in which the same code acts as different function colors~\cite{nystrom2015-function-color}; ordinary arithmetic yields the relational semantics of logic programming~\cite{vanemden1976-predicate-logic-semantics}; $\mathtt{this}$ resolves to multiple targets; and programs are immune to nonextensibility in the sense of the Expression Problem~\cite{wadler1998-expression-problem}. This makes inheritance-calculus strictly more expressive than the $λ$-calculus in both common sense and Felleisen's sense~\cite{felleisen1991-expressive-power}.

Motivation & Objective

  • Motivate a minimal computational model for declarative/configuration languages by drawing from practical systems like NixOS and MIXINv2.
  • Provide a three-primitives language (record, definition, inheritance) that remains function-free and recursion-capable through set-theoretic semantics.
  • Show that the calculus embeds the lambda calculus and is strictly more expressive in the sense of Felleisen.
  • Deliver a fully abstract, observer-driven semantics for lazy evaluation using finite, terminating mixin-tree equations.
  • Demonstrate practical phenomena (e.g., relational semantics, open extension, and function-color blindness) through case studies like Nat arithmetic.

Proposed method

  • Define six mutually recursive set-comprehension equations over paths that compute properties, supers, overrides, bases, resolve, and this.
  • Formalize mixin trees as deep-mergeable, commutative, idempotent, and associative structures with no reduction rules or evaluation order.
  • Provide an embedding of the lambda-calculus into inheritance-calculus via a five-rule translation from ANF, preserving semantics.
  • Prove adequacy: a closed ANF lambda-term has head normal form exactly when its translation converges in the mixin-tree semantics.
  • Prove full abstraction: lambda-contextual equivalence corresponds to Böhm-tree equality under the translation, while inheritance-contexts can distinguish more terms.
  • Argue observational, set-theoretic semantics that avoid traditional operational/domain-theory machinery.

Experimental results

Research questions

  • RQ1Can inheritance-calculus serve as a minimal, function-free foundation for declarative programming that matches or exceeds lambda-calculus expressiveness?
  • RQ2Does the translation from the lambda-calculus to inheritance-calculus yield full abstraction with respect to Böhm-tree equivalence?
  • RQ3Do practical features observed in MIXINv2, such as open extension and relational semantics, extend the expressiveness beyond the lambda-calculus?
  • RQ4Is the calculus capable of representing nested inheritance, self-reference, and the Expression Problem without fixed-point constructs?
  • RQ5What are the implications for lazy evaluation and observer-driven computation in a purely set-theoretic semantic setting?

Key findings

  • The calculus uses three primitives (record, definition, inheritance) and no functions or let-bindings.
  • Inheritance is inherently commutative, idempotent, and associative, eliminating the linearization problem of multiple inheritance.
  • The lambda-calculus embeds into inheritance-calculus, and the embedding is fully abstract with respect to Böhm-tree equivalence for lambda-definable contexts.
  • The induced semantics is fully abstract and computable within naive set theory, avoiding extra domain-theoretic machinery.
  • Inheritance-calculus is strictly more expressive than the lazy lambda-calculus in Felleisen’s sense, via open extension and the Expression Problem.
  • Case studies (e.g., Nat arithmetic) demonstrate relational semantics and other emergent properties such as function-color blindness and immunity to non-extensibility.

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.