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.
Figures & tables
Figure 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.
Figure 2: FOL-Proof pipeline. A candidate FOL translation φ undergoes well-formedness checks before the system generates licensed translations of the English sentence N . Formal equivalence checking yields a certificate or failure report, optionally used for LLM-guided repair. Solid and dashed arrows denote data and control flow, respectively.
ProofWriter (25,881)
PrOntoQA (36,749)
LongFaithCheck (2,000)
Method
Rec.
Spec.
Bal.
Rec.
Spec.
Bal.
Rec.
Spec.
Bal.
FOL-Proof
100.0
100.0
100.0
100.0
100.0
100.0
100.0
100.0
100.0
Direct judge (Qwen)
80.1
97.8
89.0
94.6
98.4
96.5
98.8
49.9
74.4
Direct judge (majority)
99.4
61.1
80.2
97.1
64.9
81.0
99.9
26.8
63.4
Formal round-trip equiv.
90.3
22.0
56.2
94.2
16.0
55.1
0.9
98.8
49.9
Monty clausal cov. (Qwen)
53.0
86.3
69.7
97.7
97.6
97.6
59.1
68.4
63.8
Table 1: Discrimination on controlled single-edit mutations (selected baselines). Rec. (accept recall) is the fraction of correct translations accepted; Spec. (reject specificity) is the fraction of mutated formulas rejected. LongFaithCheck is class-balanced, so balanced accuracy equals accuracy there. Formal round-trip uses Qwen on ProofWriter and the three-model majority on PrOntoQA and LongFaithCheck.
Method
LongFaith.
PrOntoQA
RuleTaker
ProofWriter
FOL-Proof
99.7 / 99.8
99.7 / 99.4
99.9 / 100.0
100.0 / 100.0
Direct judge
30.3 / 53.4 (P)
76.0 / 73.4 (Q)
60.6 / 61.0 (Q)
69.7 / 65.1 (Q)
Formal round-trip equiv.
78.3 / 58.3 (Q)
82.4 / 72.2 (Q)
65.9 / 70.4 (M)
83.9 / 86.0 (Q)
Monty clausal cov.
70.2 / 63.9 (Q)
83.7 / 71.0 (Q)
82.2 / 81.9 (P)
83.0 / 83.3 (P)
Table 2: Validation of LLM-generated translations against the licensed-normalized reference (selected baselines). Cells show accuracy / balanced accuracy (%). Each baseline row shows its best single model by balanced accuracy on that benchmark (Q = Qwen, P = Phi, M = Mistral). Abstentions count as errors in accuracy; balanced accuracy averages accept recall and reject specificity over conclusive decisions only.
ProofWriter
RuleTaker
PrOntoQA
( N =20,058)
( N =19,021)
( N =9,000)
Selection policy
Yield
Sel.
Yield
Sel.
Yield
Sel.
Best raw single model
40.7
87.2
62.7
88.9
52.7
98.8
First compilable
76.5
85.2
85.3
88.4
51.1
98.6
Cert. + raw fallback
79.0
88.0
92.8
96.1
87.4
100.0
FOL-Proof strict gating
25.5
100.0
70.2
100.0
56.7
100.0
Table 3: Downstream reasoning with deterministic reasoners over translated premises and queries. Under every policy a question is answered only if its query and every premise compiled; otherwise the policy abstains. Yield = correct / all questions (abstention counts as an error); Sel. = accuracy on answered questions. Raw rows show the best single model per benchmark by yield (Phi on ProofWriter and RuleTaker, Mistral on PrOntoQA), a selection made on evaluation data. “First compilable” takes the first executable candidate without validation. “Cert. + fallback” prefers a certified candidate and otherwise uses the raw one (diagnostic). The ProofWriter rows are a replay of retained question-level outcomes. Coverage and paired comparisons are reported in Appendix 0.F.5 .
Feedback shown
Outcome
Arm
Diag.
Str.
Form.
CM
Cert.
Rate (%)
Try again
24
4.8
Diagnostic only
✓
114
22.8
Components
✓
✓
111
22.2
Full, formulas/CM removed
✓
✓
116
23.2
Readings
✓
✓
✓
313
62.6
Table 4: Repair results on 500 candidates rejected as not derivable (max. three attempts per case). Check marks indicate substantive feedback fields: Diag. = compact diagnostic; Str. = structural differences and distances relative to selected licensed readings; Form. = complete licensed-reading formulas; CM = available countermodels. The components and full_no_reading_formulas prompts expose the same substantive feedback fields but retain different mode and prompt-version labels.
Appendix figures & tables8 assets
Supplementary material from the paper’s appendix.
Appendix
Profile
Extension to the compact ERG-to-FOL adapter
compact
Default compact fragment.
proofwriter_*
Controlled generic rules with aligned pronouns; the entities variant also maps simple definite noun phrases to constants and supports selected binary literals.
controlled_extended
Lemma-named verbs and controlled readings of only and not all .
soft_reasoner
Controlled rules and entities, including selected ground literals and extended operators.
nl_fol_pairs
Controlled rules with aligned pronouns and proper-name constants.
prontoqa
Exact ontology predicate fusions, numeral notation, and bare-plural subject genericity.
Appendix
Table 5: FOL-Proof adapter profiles and their benchmark-specific extensions.
Benchmark
Additional conventions
ProofWriter
Proper names and simple definite entities denote constants. Adjectives become unary predicates; relation verbs become ordered binary predicates named by their lemmas. In rules, someone / something and aligned they / it denote the same universally quantified variable. Preserve explicit negation and implication direction.
RuleTaker
Simple definite entities denote constants; “the bald eagle” denotes BaldEagle . Adjectives become unary predicates and relation verbs become ordered binary predicates named by their lemmas. In rules, something and aligned it denote the same universally quantified variable. Preserve explicit negation and implication direction.
PrOntoQA
Proper names denote constants. Statements about named or numeric individuals are ground facts. Every , Each , and bare-plural rule subjects introduce universal quantification. Copular class statements apply the complement predicate directly. Multiword classes become fused PascalCase predicates. A numeral N denotes the opaque constant NumberN , without arithmetic interpretation. Do not add equality, functions, background knowledge, or unstated predicates.
LongFaithCheck
No benchmark-specific lexical conventions. Use capital-initial constants and lowercase bound variables; preserve predicates, argument direction, negation, connectives, quantifiers, and implication direction.
Appendix
Table 6: Conventions used by the translation and semantic-judging prompts.
Arm
Feedback exposed
try_again
Rejection signal only.
diagnostic_only
Compact validator diagnostic.
components
Diagnostic, structural differences, and distance vectors for selected licensed readings.
readings
The components fields plus complete formulas for selected licensed readings.
full_no_reading_formulas
The same substantive fields as components : complete licensed-reading formulas and countermodels are removed from full-mode feedback.
full
The readings fields plus available countermodels.
Appendix
Table 7: Substantive feedback fields exposed in the six repair arms. The components and full_no_reading_formulas arms retain distinct prompt mode and version labels despite exposing the same feedback fields.
ProofWriter (25,881)
PrOntoQA (36,749)
LongFaithCheck (2,000)
Method
Rec.
Spec.
Bal.
Rec.
Spec.
Bal.
Rec.
Spec.
Bal.
FOL-Proof
100.00
100.00
100.00
100.00
100.00
100.00
100.00
100.00
100.00
Direct judge (maj.)
99.42
61.06
80.24
97.08
64.89
80.98
99.90
26.80
63.35
Direct judge (Q)
80.15
97.83
88.99
94.62
98.43
96.53
98.80
49.90
74.35
Direct judge (P)
100.00
53.92
76.96
98.82
41.94
70.38
98.90
29.30
64.10
Direct judge (M)
96.70
41.93
69.31
83.07
60.53
71.80
100.00
5.00
52.50
Appendix
Table 8: Discrimination on controlled single-edit mutations. Rec. is accept recall, Spec. is mutation-rejection specificity, and Bal. is balanced accuracy, all in percent. Q/P/M denote Qwen/Phi/Mistral; “maj.” denotes the three-model majority. Identical structural-eligibility results are shown once.
Family
Model
Acc.
Bal.
Cov.
Accept rec.
Reject spec.
FA
FR
FOL-Proof
—
99.67
99.78
100.00
100.00
99.57
10
0
Always reject
—
76.93
50.00
100.00
0.00
100.00
0
692
Direct judge
Qwen
41.90
45.29
100.00
51.59
38.99
1,408
335
Direct judge
Mistral
26.23
51.30
100.00
97.83
4.77
2,198
15
Direct judge
Phi
30.27
53.36
99.43
96.24
10.49
2,052
23
Bidirectional NLI
Qwen
75.00
63.16
100.00
41.18
85.14
343
407
Appendix
Table 9: LongFaithCheck, 3,000 LLM-generated source–translator outputs, scored against the licensed-normalized reference (692 normalized positives). All 3,000 cases have Boolean normalized reference labels in the release dataset. FA/FR are disagreements with that reference, not adjudicated errors. The structural gate accepts every well-formed candidate; its scores come entirely from rejecting malformed formulas.
Method
PrOntoQA
RuleTaker
ProofWriter
LongFaith.
FOL-Proof
99.67/99.37/100.00
99.92/100.00/99.92
100.00/100.00/100.00
99.67/99.78/100.00
Always reject
26.38/50.00/100.00
27.32/50.00/100.00
33.88/50.00/100.00
76.93/50.00/100.00
Direct judges
Direct judge (maj.)
77.46/62.32/99.84
73.82/53.45/99.93
73.88/61.74/99.99
29.13/52.22/99.70
Direct judge (Q)
75.97/73.43/100.00
60.64/60.96/100.00
69.72/65.07/100.00
41.90/45.29/100.00
Direct judge (P)
76.69/56.35/99.27
73.75/51.97/99.85
70.96/57.19/99.78
30.27/53.36/99.43
Appendix
Table 10: Complete whole-population validation results against the licensed-normalized reference. Cells report accuracy / balanced accuracy / coverage, in percent. Q/P/M denote Qwen/Phi/Mistral; “maj.” denotes the three-model majority.
ProofWriter
RuleTaker
PrOntoQA
Method
Cov.
Sel.
Cov.
Sel.
Cov.
Sel.
Raw Phi-3.5
46.68
87.20
70.49
88.92
37.37
98.42
Raw Qwen2.5-7B
23.57
76.86
23.69
84.87
27.83
99.68
Raw Mistral-7B
8.64
77.80
23.16
91.03
53.37
98.79
First compilable
89.78
85.17
96.49
88.44
51.88
98.59
Cert. + raw fallback
89.78
88.02
96.60
96.09
87.39
100.0
Appendix
Table 11: Coverage (answered / all) and selective accuracy (correct / answered), %, under the whole-problem availability rule. Yield = coverage × selective accuracy, matching the main-text yields in Table 3 . First-compilable and certificate-preferred fallback have identical ProofWriter coverage (18,008 of 20,058 answered).
Benchmark
Comparison
Common
Wins
Losses
ProofWriter
Strict vs. unguided
5,116
372
0
RuleTaker
Strict vs. unguided
13,333
1,287
0
RuleTaker
Cert. + fallback vs. unguided
18,354
1,700
297
PrOntoQA
Strict vs. unguided
3,149
50
0
Appendix
Table 12: Paired comparisons on questions answered by both policies. Wins are questions that only the first-named policy answers correctly. In PrOntoQA the strict-only and unguided-only answered sets are not nested (1,950 and 1,520 questions), so these counts cover the overlap only. The RuleTaker fallback row is on the 18,354 questions both policies answer.
A standard pipeline for symbolic reasoning over natural-language problems translates them into first-order logic and invokes a theorem prover. The translation step is the bottleneck: swap "every" for "some" and every inference that follows is corrupted. Yet today's metrics often score more broken translations higher than less broken ones, because BLEU, BERTScore, and Smatch++ reward surface overlap that the worst errors happen to preserve. We introduce SIV, which derives two kinds of probes from the target formula and uses a theorem prover to verify the candidate translation against each. Positive probes are statements the candidate must entail, which detect translations that drop content; contrastive probes are statements the candidate must not entail, which detect translations that assert more than the original. On a controlled pool of perturbed FOLIO translations, the severity of the error accounts for 80% of SIV's score variance, compared with at most 17% for any prior metric. Across six error classes on a disjoint pool, SIV scores the reference above the perturbed candidate in over 99% of pairs. Because each probe is labeled with what it tests, the failure pattern also supplies a labeled error trace, recovering the perturbation class at macro-F1 0.638, nearly double the score-only baseline. On 434 expert-audited real LLM translations, SIV attains the top AUC, uniquely detects and grades expert-labeled major errors, and abstains, rather than mis-scoring, on out-of-vocabulary translations.
Accurate translation from Natural Language to First-Order Logic (NL-to-FOL) underpins neurosymbolic AI systems and Natural Language Inference (NLI), making the quality of NL-to-FOL benchmarks essential---yet these datasets have never been rigorously audited. Our first contribution is to present a systematic human inspection of the validation split of FOLIO and a subset of MALLS test instances, finding that approximately 42.5% and 42% of entries, respectively, contain incorrect FOL formalizations (i.e., ground truth labels), with additional rates of ambiguous NL sentences (17.8% and 51%) and incorrect NLI labels in FOLIO (8.4%). Our second contribution is to develop and release corrected ground truths for such datasets, showing that annotation errors distort model evaluation on a reference benchmark task: testing three state-of-the-art LLMs (Gemma~4 31B-it, Qwen3-30B-A3B, and GPT-4o-mini) with the corrected ground truths yields accuracy gains from +11 to +23 percentage points. Motivated by these findings, we propose an LLM-based framework to support humans in manual reviewing NL-to-FOL datasets. By directing reviewers toward the most error-prone instances, we empirically show that it is possible to achieve 90% dataset accuracy after reviewing fewer than 20% of instances, compared to over 76% required by unguided review. We release all human-verified annotations and the code for our framework.
Large Language Models (LLMs) have renewed interest in autoformalization. Yet, when First-Order Logic (FOL) is considered as the target formalism, the field still lacks a unified task formulation and a systematic survey. This paper addresses this gap: we first provide a principled definition for the FOL-autoformalization task by distinguishing Ontology Extraction from Logical Translation, showing how their conflation obscures (cross-study) evaluation; we review existing datasets, evaluation metrics, and LLM-based methods, including fine-tuning, prompting, and verification-based refinement; we identify open challenges in benchmarking, semantic evaluation, ontology-aware methods, and end-to-end applications.