TRANSMISSION // 2607.18961v3

Can grammar make AI text easier to check?

Source published

A proposed method reconstructs LLM outputs as typed grammar structures, aiming to make their composition auditable without claiming that the models use that grammar internally.

AI-generated conceptual illustration for Can grammar make AI text easier to check?
AI-generated conceptual illustration; not documentary evidence.

Large language models build text one token at a time. This preprint asks whether that incremental process can be paired with a formal grammar to help check how an output fits together—and where such checks stop.

A grammar for generated text

Large language models (LLMs) produce text by predicting what token comes next, given the text so far. The authors argue that this step-by-step process can be usefully described with Combinatory Categorial Grammar (CCG), a formal system in which words have types and combine according to grammatical rules. The proposal is not that an LLM secretly uses CCG. Instead, a separate system could reconstruct an output as a typed, compositional derivation—an explicit account of how its parts fit together.

That distinction matters. A reconstruction may make some properties of an answer easier to inspect, but it does not reveal the model’s internal computations or establish that the answer is true.

What the authors report

The abstract describes a feasibility study covering 2,922 sentences generated by four LLMs across five registers. The proposed lifting covered 97.7% of the sentences, according to the authors. Where both incremental and normal-form derivations were well-formed, they produced identical logical forms. The authors also report that most predications that could be checked were available before a sentence was complete.

They propose two kinds of checks. A compositional check tests whether the reconstructed parts fit together structurally. A separate content check compares the structure with external knowledge, with the aim of flagging unsupported or hallucinated claims earlier. The abstract stresses that passing a structural check is not the same as being factually correct. It points to a dispute around an announced Lean formalization of a Navier–Stokes proof to illustrate the gap: compiling successfully can certify composition, not correspondence between a formal result and what it claims to prove.

The authors also say the approach could extend beyond ordinary language to formal languages including Solidity, OWL, SQL and Lean, drawing on the Curry–Howard correspondence between types and logic. The abstract presents this as a consequence of the framework, not as evidence that each language has been separately validated in the reported study.

What remains uncertain

These findings are an initial feasibility result, not proof that the method reliably catches hallucinations or improves LLM accuracy. The abstract does not provide enough detail to assess how sentences and registers were selected, how “coverage” was defined in practice, or how well the external knowledge checks perform. Nor does it establish that the approach works across models, tasks or formal languages beyond the reported evaluation.

This account is based on the abstract of an arXiv preprint, rather than a full-paper assessment. Preprints may not have undergone peer review, and the abstract alone limits what can be checked about the methods and evidence. The proposal is best understood as a way to make some structures explicit and auditable—not as a test of whether an LLM understands grammar or whether its claims are true.

Reviewed cross-references

These connections were reviewed by a model, not independently fact-checked by a human. Similarity does not imply agreement; consult the original papers and the evidence below.

  • Forethought gives AI tool use a checklist—and checks the steps

    Shared method: Both describe typed symbolic structures used to organize or check neural-model outputs: the origin paper proposes lifting generated text into CCG derivations for compositional checks, while Forethought composes neural and symbolic primitives in a typed DSL with checked contracts. The mechanisms and tasks differ—post-hoc language parsing versus tool-calling programs—so this is a shared design method, not evidence of comparable performance or guarantees.

    Model review: · openai-codex/gpt-6-luna

    Evidence and provenance

    Selected excerpts, not complete papers. PDF extraction can omit figures or damage equations, tables and reading order; sources may be preprints.

    • 2607.18961v3 — Original paper

      Excerpt reference: static/papers/2607.18961v3.md:388-457
      Basis: Paper text
      Source file SHA-256: 6bd8c613cd79954e0dd0332c3ce79a77447e84888b5b132268bb469242f39d81

    • 2607.04096v2 — Original paper

      Excerpt reference: static/papers/2607.04096v2.md:220-271
      Basis: Paper text
      Source file SHA-256: 74bd13843a6a98e92d835e79859e4a5156888d7b994806696cbffeb341719a6c

    • 2607.04096v2 — Original paper

      Excerpt reference: static/papers/2607.04096v2.md:74-137
      Basis: Paper text
      Source file SHA-256: 74bd13843a6a98e92d835e79859e4a5156888d7b994806696cbffeb341719a6c

Automatically matched by shared topic keywords. These links do not imply that the sources agree or establish a consensus.