FOL-Proof: Verifying LLM Text-to-Logic Translations via Deterministic Semantics

Yisrael Clark, Guy KatzarXiv 2026

TL;DR

Offloading logical reasoning from Large Language Models (LLMs) to symbolic math solvers is a popular trick, but it has an Achilles' heel: LLMs frequently botch the initial translation from English to logic. This paper introduces FOL-Proof, a deterministic "semantic firewall" that pairs classical linguistic parsers with formal theorem provers to mathematically certify whether an LLM’s logical translation is faithful to the original text—giving us rock-solid downstream reasoning without relying on another error-prone LLM to check the homework.

What Problem Does This Paper Address?

LLMs are notoriously shaky at strict deductive reasoning—they hallucinate rules and fall for classic logical fallacies. To fix this, researchers use neuro-symbolic pipelines: let the LLM translate English into First-Order Logic (FOL)—a process called auto-formalization—and hand those formulas to a symbolic solver that guarantees sound deduction.

However, this doesn't eliminate errors; it just pushes them upstream. LLMs frequently drop negations, flip implications, or mix up quantifiers, resulting in "garbage in, garbage out" for the solver.

Fig. 1. Reasoning problem example. The correct answer is that the conclusion is not entailed by the premises. (a) LLM reasoning can produce logical fallacies. (b) LLM translators can mistranslate and cause the solver to produce the wrong answer. (c) FOL-Proof validates the translation.

Checking these translations is surprisingly hard. You can't use another LLM as a judge because it shares the same statistical blind spots. You also can't just compare the output against a single "ground-truth" reference formula because natural language is inherently ambiguous. Take "Every student read a book": did each student read some book, or did they all read the exact same book? Up to 48% of sentences have multiple valid logical interpretations. We need a verifier that demands strict mathematical faithfulness while respecting linguistic ambiguity.

Methods

Instead of fighting statistical guesswork with more statistical guesswork, FOL-Proof reaches into the classical computational linguistics toolkit to build an independent, deterministic verification pipeline:

The FOL-Proof pipeline, comparing an LLM's candidate logic against deterministically derived linguistic readings.
  1. Deterministic Linguistic Parsing: While the LLM generates a candidate FOL formula, FOL-Proof runs the raw English sentence through the English Resource Grammar (ERG)—a broad-coverage, hand-engineered grammar. This outputs Minimal Recursion Semantics (MRS) representations, which capture semantic structure while cleverly leaving ambiguities (like quantifier scope) underspecified.
  2. Enumerating Ambiguities: A scope-resolution tool unpacks the MRS into all admissible scope trees. A custom, domain-parameterized deterministic adapter compiles these trees into a pool of "licensed" FOL formulas, normalizing minor spelling or tense variations (like saw vs. see).
  3. Solver-Based Certification: FOL-Proof hands the LLM's candidate formula and each licensed reading to the Z3 SMT solver (a tool that determines if logical formulas are satisfiable) to test for strict logical equivalence.
  4. Conservative Verdicts & Repair: If the LLM’s formula matches at least one licensed reading, it is Certified. If the parse search is provably complete and nothing matches, it is rejected as NotDerivable—which can trigger an automated repair loop feeding structural diagnostics back to the LLM. Crucially, if the grammar hits an unsupported phrase or the solver times out, FOL-Proof Abstains, ensuring resource limits are never mistaken for translation errors.

Datasets

FOL-Proof operates without ground-truth references at inference time, but to test its accuracy, the authors evaluated it across three classic deductive reasoning benchmarks: ProofWriter (20,058 questions), RuleTaker (19,021 questions), and PrOntoQA (9,000 problems).

Because classic benchmarks use relatively simple sentences, the authors also built LongFaithCheck, a new adversarial benchmark of 2,000 complex English–FOL pairs containing 7 to 10 predicates per sentence, where half the formulas contain subtle, single-edit semantic mutations (like swapped quantifiers or reversed arguments).

Key Insights and Ideas

  • Existing LLM verifiers fail in opposite extremes: On complex translations, direct LLM-as-a-judge baselines suffer from massive "acceptance bias" (rubber-stamping almost everything, including errors), while round-trip translation gates (translating FOL back to English to compare) are overly brittle and reject almost everything, right or wrong.
  • Grammatical possibility vs. human preference: Out of 3,000 LLM translations on LongFaithCheck, FOL-Proof had only 10 "false accepts" against the benchmark's single reference label. Half were genuine, textbook scope ambiguities missed by the benchmark's single gold label. The other half exposed a fascinating boundary: sentences like "Some A is not P" were grammatically licensed as "No A is P" due to how negation and existential quantifiers can formally interact, even though humans strongly prefer the "There exists an A that isn't P" reading.
  • Repair works best as "semantic projection": Telling an LLM what it got wrong boosts repair rates, but showing it the closest valid licensed formulas derived by the grammar lets the LLM align its vocabulary and syntax, skyrocketing repair success without needing human-written ground truth.

Key Results

  • Catching Mutations: On controlled semantic mutations across ProofWriter, PrOntoQA, and LongFaithCheck, FOL-Proof achieved 100.0% balanced accuracy (zero false accepts, zero false rejects). On LongFaithCheck, no learned baseline exceeded 74.4%.
  • Validating Wild LLM Outputs: Evaluating translations from 7B-class models (Qwen2.5, Mistral, Phi-3.5), FOL-Proof achieved 99.7% to 100.0% accuracy across all four benchmarks, crushing the best single-model baselines (which topped out at 63.9% balanced accuracy on LongFaithCheck).
  • Perfect Downstream Deduction: When used as a strict gatekeeper before a symbolic reasoner, FOL-Proof achieved 100.0% selective accuracy on every answered problem across ProofWriter, RuleTaker, and PrOntoQA. The trade-off is coverage: because a single uncertified premise blocks an entire multi-premise problem, overall question yield ranged from 25.5% to 70.2%.
  • Guided Repair: On 500 rejected LongFaithCheck translations, blind retries fixed only 4.8%. Supplying FOL-Proof's compact diagnostics raised certification to 22.8%, and exposing the closest grammar-licensed formulas pushed it to 62.6% within three attempts.

Limitations and Future Work

FOL-Proof isn't magic—it trades coverage for certainty. First, its deterministic adapters currently handle only a controlled fragment of English and require one-time, domain-specific configuration profiles to match benchmark naming conventions; the authors plan to expand linguistic coverage using Combinatory Categorial Grammar (CCG). Second, enumerating parses and scope trees is combinatorially explosive on long sentences, causing timeouts and abstentions. Future work aims to prune parse forests early, cache intermediate structures, and run incremental solver checks. Finally, nearly 40% of rejected translations remained unfixed after the repair loop, leaving room for richer diagnostic feedback.

Summary updated

Abstract

Large Language Models (LLMs) are increasingly used to translate natural-language statements into first-order logic (FOL) to improve reasoning. However, LLMs are prone to errors, and so a semantically unfaithful FOL formula could corrupt downstream reasoning. We present FOL-Proof, a semantic firewall pipeline that validates LLM-generated FOL translations against independently derived linguistic interpretations. FOL-Proof operates by deterministically obtaining a pool of candidate translations via semantic analysis tools, such as the English Resource Grammar and Minimal Recursion Semantics; then applying an SMT solver to check each derived reading for logical equivalence to the LLM-generated formula. If the translation is faithful it is accepted; otherwise, it is rejected, or optionally repaired via repeated invocations to the LLM. The procedure is conservative: incomplete search, unsupported constructions, or inconclusive checks yield abstention rather than false rejection. We evaluated FOL-Proof on established benchmarks (ProofWriter, RuleTaker and PrOntoQA), and also on a new adversarial benchmark (LongFaithCheck). Our experiments show that FOL-Proof attains near perfect selective accuracy, while direct LLM judges and round-trip baselines show substantially worse performance.
BibTeX
@misc{clark2026fol,
  author = {Yisrael Clark and Guy Katz},
  title = {{FOL-Proof: Verifying LLM Text-to-Logic Translations via Deterministic Semantics}},
  year = {2026},
  eprint = {2611.33078},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.33078},
}
Figure