A Logical Framework with Infinitary Terms

Zhibo Chen · DOI

TL;DR

CoLF$^\omega$ is a new logical framework designed to formally represent and reason about "non-regular" infinite objects, such as irrational numbers or non-repeating streams. By utilizing a novel structure called productive Böhm trees, the framework provides a mathematically sound way to handle infinitary terms that were previously impossible to encode in standard logical frameworks.

What Problem Does This Paper Address?

In computer science and logic, "Logical Frameworks" (like LF) are tools used to define and verify proof systems. However, standard LF is built for finite objects. A recent extension called CoLF introduced "rational terms"—infinite structures that have a repeating, regular pattern (think of a repeating decimal like $0.333...$).

The gap lies in non-regular infinite structures. For example, the stream of natural numbers $[1, 2, 3, 4, \dots]$ or the binary expansion of an irrational number like $\pi$ do not have a repeating pattern. You cannot describe them with a finite set of equations. Before this paper, there wasn't a formal type theory that could "adequately" represent these objects while maintaining the rigorous properties required for a logical framework, such as a consistent way to perform substitutions.

Methods

The author introduces CoLF$^\omega$, which shifts the term model from finite or rational terms to all possibly infinitary terms. The core technical machinery includes:

  • Observation Depth ($k$): Since you cannot "see" an infinite object all at once, the framework stratifies terms by depth. You can observe a term up to $k$ steps. This allows the authors to define equality and substitution inductively.
  • Productive Böhm Trees: The paper proposes a specific subclass of Böhm trees (a standard way to represent $\lambda$-calculus terms). To be "productive," a term must be $\bot$-free (no undefined "bottom" elements) and must guarantee that as you follow any infinite path, you encounter a data constructor (a "building block") within a finite number of steps. This prevents the system from getting stuck in infinite loops that produce no data.
  • Infinitary Hereditary Substitution: A major contribution is extending "hereditary substitution"—a technique that ensures terms stay in a simplified "normal form" after substitution—to work across infinite structures.

Datasets

As a theoretical paper in logic and type theory, it does not use empirical datasets. Instead, it evaluates the framework through formal case studies and proofs of adequacy. These include:

  • Encoding the stream of all natural numbers.
  • Representing irrational real numbers via bit streams.
  • Encoding the structure of productive Böhm trees within the framework itself (meta-encoding).
  • Defining "cobinary" numbers (infinite binary representations) and proving the soundness of addition ($+$) over them.

Key Insights and Ideas

  • Productivity as a Guard: The "aha moment" is the realization that productivity is the infinite-world equivalent of termination in the finite world. By requiring terms to be productive, the authors ensure that substitution remains well-defined even when the terms themselves never end.
  • Stratification: By treating infinite terms as the limit of finite observations (depth $k$), the authors bridge the gap between intuitive infinite objects and the rigid requirements of type theory.
  • Validity vs. Productivity: The paper distinguishes between a term being "productive" (a semantic property) and "trace-valid" (a syntactic property based on priorities). They prove that trace-validity—which can be checked by the framework—guarantees productivity.

Key Results

  • Adequacy: The author proves a bijective correspondence (a perfect one-to-one mapping) between mathematical infinite objects (like Böhm trees) and their representations in CoLF$^\omega$.
  • Substitution Soundness: The paper demonstrates that hereditary substitution on infinite terms is well-behaved, respects observation depth, and is commutative.
  • Meta-Encoding: The framework is powerful enough to encode its own internal logic. The authors successfully wrote a CoLF$^\omega$ signature that describes the very productive Böhm trees the framework is built upon.

Limitations and Future Work

  • Decidability: While type checking is decidable for any finite observation depth $k$, it becomes undecidable at the limit of infinite depth ($\omega$). This is a common trade-off when moving to more expressive infinitary systems.
  • Computability: The paper intentionally leaves open the question of whether the framework should represent all infinite objects or only computable ones. This choice is left to the user of the framework.
  • Logic Programming: Standard LF has a logic programming engine (Twelf) that allows for automated proof checking. The author notes that developing a similar engine for CoLF$^\omega$ is a major goal for future research.

Summary updated

BibTeX
@misc{chen2023logical,
  author = {Zhibo Chen},
  title = {{A Logical Framework with Infinitary Terms}},
  year = {2023},
  eprint = {2312.05919},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2312.05919},
}

Loading related content...

Figure