Formalizing Formal Semantics: The Formal Atlas

Stergios Chatzikyriakidis, Aarne Talman

TL;DR

The Formal Atlas is an interactive platform that uses proof assistants (specifically Rocq) to formalize, verify, and compare diverse theories of natural language semantics. By bridging the gap between prose descriptions and machine-checked proofs, it creates a cumulative, verifiable library for linguistics that helps researchers catch subtle errors and evaluate the reasoning capabilities of modern AI.

What Problem Does This Paper Address?

Natural language semantics—the study of how we derive meaning from language—is a fragmented field. Different frameworks use vastly different mathematical tools: some focus on truth conditions (logic), others on information updates (dynamic semantics), and others on probability distributions (Bayesian pragmatics).

Because these theories are usually presented as prose or hand-written formulas in research papers, they are prone to underspecification and subtle errors. Furthermore, it is notoriously difficult to compare them; how do you prove that a "truth-conditional" account and a "discourse-update" account actually agree on a specific sentence? The authors tackle this by building a "Formal Atlas"—a centralized, interactive repository where these theories are translated into code that a computer can verify.

Methods

The core of the project is the use of Rocq (formerly known as Coq), a formal proof assistant. Unlike a standard programming language, a proof assistant allows researchers to write mathematical definitions and then prove that certain properties hold, with the computer checking every logical step.

Key methodological innovations include:

  • Layered Formalization: The authors explicitly separate grammar rules, logical translations, and model conditions. This prevents "informal" assumptions from creeping into the proofs.
  • Interactive Web Interface: They developed a "Proof Reader" and a "Private-Copy Editor" that allow users to inspect proofs, modify definitions, and see the results of compilation in real-time without needing to install complex local environments.
  • AI-Assisted Development: The authors utilized Large Language Models (LLMs) like GPT-6 Astra and Claude Fable 5.1/5.2 to assist in writing the formal code, searching for declarations, and repairing broken proofs.
  • Cross-Framework Mapping: To compare different theories (e.g., Type Theory with Records vs. Modern Type Theory), they define explicit mathematical maps between them to identify exactly what information is preserved or lost during translation.

Datasets

While not a "dataset" in the machine learning sense, the Atlas acts as a structured knowledge base:

  • Source Records: 230 survey entries of semantic research papers linked to formal descriptions.
  • Formal Developments: 43 direct links to Rocq source files and 87 file-level assessments.
  • Case Studies: The paper includes formalizations of Montague’s Proper Treatment of Quantification (PTQ), Gallin’s Ty2 logic, Heim’s File Change Semantics, and the Rational Speech Act (RSA) framework.

Key Insights and Ideas

  • Formalization Catches Human Error: Even the authors' initial manual encoding of Montague’s classic PTQ (a foundational text in the field) contained two errors regarding intensional types and necessity operators. These only became apparent when the machine-checked proofs failed.
  • "Agreement" is Multi-Dimensional: The paper highlights that two theories might agree on whether a sentence is "true" but disagree on how they handle discourse referents (like pronouns). The Atlas makes these distinctions explicit.
  • Formalizing the Skeptics: Interestingly, the authors show that even ideas from research traditions skeptical of formalization (like Jacques Derrida’s work on context and quotation) can be partially formalized to check the logical consequences of their claims.
  • AI as a Force Multiplier: The authors argue that building a resource of this scale would have been nearly impossible for a single developer without LLM assistance, suggesting a new workflow for formal linguistics.

Key Results

  • Montague & Gallin: The system successfully verified 443 statements from Montague’s PTQ and 225 from Gallin’s Ty2, proving that the two different ways of calculating meaning actually agree.
  • Countermodels for Classic Puzzles: The Atlas provides machine-checked countermodels for famous semantic puzzles, such as why "the temperature is ninety" and "the temperature rises" does not imply "ninety rises."
  • Probabilistic Verification: In the RSA (Rational Speech Act) module, the authors used exact rational arithmetic to prove pragmatic probabilities (e.g., 3/4 vs 1/4) for specific communicative scenarios, eliminating the numerical noise often found in sampling-based simulations.
  • DPL Insights: They provided counterexamples to long-standing claims in Dynamic Predicate Logic (DPL), specifically showing that certain laws of disjunction do not hold for existential updates.

Limitations and Future Work

  • Not a Full IDE: The current web editor is not a "multi-file" environment; editing one file does not automatically trigger a rebuild of dependent files, which limits large-scale refactoring.
  • Human Review Bottleneck: While the computer checks the logic, it cannot check the intent. A human must still verify that the formal code actually represents what the original author meant in their prose.
  • Scaling and Portability: Future work involves integrating with linglib (a similar project using the Lean proof assistant) and expanding coverage to more Bayesian and distributional (vector-based) semantic models.
  • NLI Stress-Testing: The authors plan to use the Atlas to create "controlled problems" for testing AI models on Natural Language Inference (NLI), using formal proofs as the ultimate ground truth to see if neural networks are actually "reasoning" or just exploiting statistical shortcuts.

Summary updated

Abstract

In this paper we present the Formal Atlas, a system for the study of natural language semantics using proof assistants. Our aim is to formalize semantic accounts, check their predictions and compare the implemented theories. To this end, we connect source records and formal developments with an interactive application, where researchers can inspect proofs and modify supported Rocq files. Montague's PTQ and Gallin provide our main cases, followed by dynamic and type-theoretic comparisons, RSA and distributional semantics. We also discuss what it takes to formalize less explicit analyses. Lastly, we consider the use of AI, both for assistance in developing these resources and for inference systems that can make use of them. This work extends an earlier programme in proof-assistant semantics, with research and teaching as complementary uses.
BibTeX
@misc{chatzikyriakidis2026formalizing,
  author = {Stergios Chatzikyriakidis and Aarne Talman},
  title = {{Formalizing Formal Semantics: The Formal Atlas}},
  year = {2026},
  eprint = {2611.19509},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.19509},
}
Figure