LLM-Assisted Formalization Enables Deterministic Detection of Statutory Inconsistency in the Internal Revenue Code
Borchuluun Yadamsuren, Steven Keith Platt, Miguel Diaz

TL;DR
This paper presents a hybrid neuro-symbolic framework combining LLMs and symbolic logic to reliably detect inconsistencies in complex legal texts like the U.S. Internal Revenue Code, improving transparency and reproducibility.
Contribution
It introduces a novel hybrid approach that leverages GPT models and Prolog for deterministic statutory inconsistency detection, addressing limitations of purely probabilistic methods.
Findings
Prolog-augmented prompting improves rule coverage to 66%.
The hybrid model produces deterministic, reproducible results.
Successfully detects inconsistencies in complex legal provisions.
Abstract
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…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsLegal Language and Interpretation · Artificial Intelligence in Law · Multi-Agent Systems and Negotiation
