[KongchangAI]
· 2 min read· 1,302 words

Formal Semantics Meets Proof Assistants: How Formal Atlas Is Reshaping Semantic Research

Formal Semantics Meets Proof Assistants: How Formal Atlas Is Reshaping Semantic Research

Formal Atlas uses proof assistants to turn semantic theories into executable, verifiable, comparable formal objects.

An arXiv paper proposes Formal Atlas, a proof-assistant system for natural language semantics that addresses the field's reliance on informal descriptions and lack of operational comparison. It connects source records to formal developments via an interactive app, letting researchers check proofs and edit Rocq (formerly Coq) files, turning theories into runnable, refutable objects. Main cases include Montague's PTQ and Gallin's Ty2, extended to dynamic, type-theoretic, RSA, and distributed semantics, plus AI's dual role.

Natural language semantics has long faced a fundamental challenge: theoretical formulations often rely on informal intuitive descriptions, and comparisons between different theories lack an operational common ground. A paper from arXiv proposes Formal Atlas—a system for studying natural language semantics with the help of proof assistants—attempting to push semantics from "pen-and-paper derivation" into a new stage that is "executable, verifiable, and comparable."

Formalizing Formal Semantics: The Formal Atlas

From Paper Theories to Executable Proofs

The core idea of Formal Atlas is to implement semanticists' theoretical claims as formal developments in a proof assistant. Researchers no longer merely write a natural-language description to explain a semantic composition rule; instead, they encode it as machine-checkable definitions and theorems.

The system connects source records with formal developments through an interactive application. Researchers can inspect proofs and modify supported Rocq files—Rocq being the former Coq proof assistant. This design turns semantic theories from static text into objects that can be run and refuted: if a theory predicts a certain semantic phenomenon, the formal system can check whether that prediction really follows from the assumptions.

The paper emphasizes three levels of goals: formalizing semantic theories, testing their predictions, and comparing different implemented semantic theories. These are precisely the most labor-intensive and most easily neglected steps in traditional semantic research.

A proof assistant is a class of interactive software systems in which users write definitions, theorems, and proofs in a formal language, and the system checks step by step whether each inference is valid. Its theoretical foundation is the Curry–Howard correspondence: propositions correspond to types, and proofs correspond to terms of that type, so "checking a proof" is implemented as "type checking." Mainstream systems include Rocq (formerly Coq), Lean, Isabelle/HOL, Agda, and others. Unlike automated theorem provers, proof assistants usually do not aim for full automation; instead, humans provide the proof skeleton and the machine guarantees correctness. This "human-machine collaboration" characteristic makes them particularly suitable for fields like semantics, where definitions are numerous and complex, reasoning chains are long, and errors are easy to make: researchers handle theoretical modeling, while the machine rules out hidden contradictions and missing premises.

Classic Cases: From Montague's PTQ to Dynamic Semantics

The paper's main case study is Montague's PTQ (Proper Treatment of Quantification) and Gallin's Ty2 system. These two constitute the classic framework of formal semantics, mapping natural language fragments to a typed logical language. Implementing PTQ as checkable proofs means that its composition rules, type assignments, and semantic rules are all precisely fixed.

On this basis, Formal Atlas further covers comparisons between dynamic semantics and type-theoretic semantics, and extends to RSA (Rational Speech Act) and distributed semantics. This scope is noteworthy: RSA represents probabilistic-reasoning-based modeling of pragmatics, while distributed semantics connects vector spaces and statistical methods; both differ markedly in methodology from classical Montagovian semantics. Bringing them into the same formalization platform makes cross-paradigm comparison possible.

Montague's PTQ is a foundational work in formal semantics: it translates a fragment of English, layer by layer through a set of syntactic rules and corresponding semantic rules, into expressions of intensional type theory, thereby making "truth conditions" strictly computable. Gallin's Ty2 is a simplified restatement of Montague's intensional logic, replacing the complex type hierarchy with two basic types (entity e and truth value t) plus a possible-world parameter, making the type structure of semantic objects more regular and easier to encode in a proof assistant. The key difference of dynamic semantics (such as dynamic predicate logic and discourse representation theory) is that the meaning of a sentence is not only its truth conditions but also its potential to update the context (such as variable assignments and discourse referents), so phenomena like pronoun anaphora and presupposition can be handled naturally. Type-theoretic semantics continues the Montague tradition, emphasizing richer type structures such as dependent types to characterize semantic composition. The disagreements among the three over "what meaning is" are precisely what Formal Atlas hopes to compare in executable form.

Can Incomplete Analyses Also Be Formalized?

The paper specifically discusses the cost of "formalizing analyses that are not so explicit." Many analyses in the semantics literature give only directional explanations, missing key definitions or boundary conditions. Formalizing such analyses often forces researchers to fill in hidden assumptions, and may even reveal internal inconsistencies in the theory.

This is both a burden and a value: the formalization process itself becomes a mechanism of theoretical scrutiny. A seemingly reasonable analysis, once forced to provide complete definitions, may expose problems that cannot be made self-consistent. The paper regards this as an important extension of the proof-assistant semantics program.

AI's Dual Role: Assistant and Reasoner

The paper finally discusses two uses of AI. One is as an auxiliary tool for developing these formal resources, helping researchers handle the heavy work of encoding and adaptation; the other is to build reasoning systems that can leverage these formal resources—formal semantics libraries can serve as a knowledge base for AI reasoning.

This direction echoes the current AI field's attention to formal reasoning and verifiable reasoning. However, the paper's wording is relatively restrained, positioning AI more as an extension of proof-assistant semantics work rather than a replacement.

The RSA (Rational Speech Act) model characterizes pragmatic reasoning as recursive probabilistic reasoning between speaker and listener: the speaker chooses an utterance that effectively conveys intent, the listener infers intent from the observed utterance, and both sides perform Bayesian updates that can be nested over multiple levels. Distributed semantics represents word meaning in vector space; word meaning is determined by its distributional co-occurrence patterns in large corpora, and semantic similarity is reflected as vector distance. The methodological tension between the two and Montagovian compositional semantics is obvious: the former is probabilistic and usage-based, while the latter is compositional and truth-conditional. Bringing them into the same formalization platform means finding interfaces for probabilistic reasoning and vector representations that can connect with type-theoretic semantics—itself a challenging modeling problem.

Dual Use for Research and Teaching

The authors of Formal Atlas position the work as an extension of the previous proof-assistant semantics program and explicitly identify research and teaching as two complementary uses. For researchers, it provides a reproducible platform for theoretical comparison; for students, the process of interactively checking proofs and modifying files is itself an intuitive way to understand the compositional mechanisms of formal semantics.

From a broader perspective, such systems attempt to solve a structural problem in semantics: there are many theories but insufficient comparability. Once theories are implemented as runnable proof objects, comparison no longer remains at the level of discourse but can address concrete questions such as "which predictions can a given theory derive for a given fragment?" This does not mean that formalization can adjudicate all theoretical disagreements, but it at least provides a common frame of reference.

One-line Summary

Formal Atlas uses proof assistants to turn semantic theories into executable, verifiable, and comparable formal objects.

Paragraph Summary

An arXiv paper proposes Formal Atlas, a system for studying natural language semantics with the help of proof assistants, aiming to solve the fundamental problem that semantic theories rely on informal descriptions and lack an operational basis for comparison. Through an interactive application, the system connects source records with formal developments; researchers can inspect proofs and modify Rocq (formerly Coq) files, turning semantic theories from static text into runnable, refutable objects. The paper uses Montague's PTQ and Gallin's Ty2 as main case studies and extends to cross-paradigm comparisons of dynamic semantics, type-theoretic semantics, RSA, and distributed semantics. The paper also discusses the cost and value of formalizing non-explicit analyses—the formalization process itself becomes a mechanism of theoretical scrutiny—and explores AI's dual role as a development assistant and a reasoning system. The authors position research and teaching as complementary uses, emphasizing that formalization provides a common frame of reference for theoretical comparison.

#Formal Atlas#proof assistant#formal semantics#Montague PTQ#Rocq#dynamic semantics#RSA#arXiv
Share:

Related articles