mlsanityData to 14 Oct 2026

LLM-Assisted Formalization Enables Deterministic Detection of Statutory Inconsistency in the Internal Revenue Code

arXiv 2511.11954 ↗First posted 15 Nov 2025cs.AIcited by 0

Not on the map. Why?

Abstract (arXiv)

This study introduces a hybrid neuro-symbolic framework that achieves deterministic detection of statutory inconsistency in complex law. We use the U.S. Internal Revenue Code (IRC) as a case study because its complexity makes it a fertile domain for identifying conflicts. Our research offers a solution for detecting inconsistent provisions by combining Large Language Models (LLMs) with symbolic logic. LLM-based methods can support compliance, fairness, and statutory drafting, yet tax-specific applications remain sparse. A key challenge is that such models struggle with hierarchical processing and deep structured reasoning, especially over long text. This research addresses these gaps through experiments using GPT-4o, GPT-5, and Prolog. GPT-4o was first used to translate Section 121 into Prolog rules and refine them in SWISH. These rules were then incorporated into prompts to test whether Prolog-augmented prompting improved GPT-4o's inconsistency detection. GPT-4o, whether prompted with natural language alone or with Prolog augmentation, detected the inconsistency in only one of three strategies (33 percent accuracy), but its reasoning quality differed: natural-language prompting achieved 100 percent rule coverage, while Prolog-augmented prompting achieved 66 percent, indicating more incomplete statutory analysis. In contrast to probabilistic prompting, the hybrid Prolog model produced deterministic and reproducible results. Guided by GPT-5 for refinement, the model formalized the IRC section's competing interpretations and successfully detected an inconsistency zone. Validation tests confirm that the Prolog implementation is accurate, internally consistent, deterministic, and capable of autonomously identifying inconsistencies. These findings show that LLM-assisted formalization, anchored in symbolic logic, enables transparent and reliable statutory inconsistency detection.

Key facts. No citing papers in the map yet (data through 14 Oct 2026). Builds on 12 of its 25 references that are in the map. First posted on arXiv 15 Nov 2025.

Builds on

12 of 25 references.

References · 12

  1. 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,459
  2. 2023LegalBench: A Collaboratively Built Benchmark for Measuring Legal Reasoning in Large Language Modelscited by 336
  3. 2019Neural-Symbolic Computing: An Effective Methodology for Principled Integration of Machine Learning and Reasoningcited by 151
  4. 2023LawBench: Benchmarking Legal Knowledge of Large Language Modelscited by 117
  5. 2023Can GPT-3 Perform Statutory Reasoning?cited by 73
  6. 2020A Dataset for Statutory Reasoning in Tax Law Entailment and Question Answeringcited by 62
  7. 2023Large Language Models as Tax Attorneys: A Case Study in Legal Capabilities Emergencecited by 42
  8. 2025Towards Robust Legal Reasoning: Harnessing Logical LLMs in Lawcited by 30
  9. 2022Fifty Years of Prolog and Beyondcited by 15
  10. 2024LegalLens: Leveraging LLMs for Legal Violation Identification in Unstructured Textcited by 12
  11. 2024Equitable Access to Justice: Logical LLMs Show Promisecited by 5
  12. 2025Logical Lease Litigation: Prolog and LLMs for Rental Law Compliance in New Yorkcited by 2

Built on by

Not cited yet.