Abstract
We demonstrate that large language models can produce reasonable numerical ratings of the logical consistency of claims. We also outline a mathematical approach based on sheaf theory for lifting such ratings to hypertexts such as laws, jurisprudence, and social media and evaluating their consistency globally. This approach is a promising avenue to increasing consistency in and of government, as well as to combating mis- and disinformation and related ills.
Introduction
In the modern information age, administrators, judges, and citizens are increasingly overwhelmed by "hypertexts"—massive, interlinked bodies of law, policy, and social media discourse. These datasets often contain deep-seated contradictions or misinformation. This challenge is encapsulated by Brandolini’s Law, which states that the energy required to refute "bullshit" is an order of magnitude greater than that needed to produce it. While Large Language Models (LLMs) have shown a surprising aptitude for spotting local contradictions between individual sentences, they lack a formal mechanism to evaluate the global consistency of networks containing thousands of claims.
Methodology
This research proposes a two-tier framework to bridge the gap between local reasoning and global structural integrity by combining LLMs with sheaf theory.
Local Judgment via LLMs
LLMs (specifically ChatGPT 3.5 and 4) are utilized as "objective arbitrators." Given a pair of claims, the model is prompted to provide a numerical consistency rating from 0 (contradictory) to 10 (totally consistent), ignoring the factual truth of the claims to focus solely on logical coherence.
Global Integration via Sheaf Theory
Sheaf theory, a branch of algebraic topology, provides the mathematical core for "gluing" these local scores into a global map. Claims are modeled as "sections" over a topology of related topics. The framework uses sheaf cohomology to identify "obstructions"—mathematical signals indicating where local pieces of information fail to fit together into a consistent whole. This approach effectively treats global consistency as a constraint satisfaction problem, similar to Boolean Satisfiability (CNF-SAT).
Experimental Setup
To test the reasoning limits of LLMs, the authors developed a custom dataset of claim pairs across several categories:
- Scientific/Factual: e.g., "The earth is flat" vs. "The earth is round."
- Social/Subjective: e.g., "Group X is evil" vs. "Group X is good."
- Logical Chains: Complex examples involving three pairs of claims that are individually plausible but collectively inconsistent.
Each prompt was run 100 times to observe the distribution and stability of the ratings.
Key Results
GPT-4 vs. GPT-3.5
GPT-4 demonstrated significantly higher nuance and stability than GPT-3.5. While the earlier model often produced "bimodal" results (all-or-nothing ratings of 0 or 10), GPT-4 could identify subtle conditional relationships, often providing intermediate scores for possible but uncertain logical chains. The authors suggest that high variance in LLM output can serve as a "check engine light" for ambiguous claims.
Detecting Implicit Inconsistency
The framework successfully identified "triangular" inconsistencies—scenarios where Claim A is consistent with B, and B is consistent with C, but A and C together create a contradiction. In sheaf-theoretic terms, this represents a non-zero cohomology class, or an obstruction to a global section.
Discussion and Future Work
A central tenet of this work is that consistency is not truth. By focusing on logical coherence rather than factual verification, the framework avoids the philosophical pitfalls of becoming an "arbiter of truth" while remaining mathematically tractable. Furthermore, the use of sheaves allows for "spatial sparsity," meaning researchers only need to compare claims that overlap in subject matter rather than every possible pair.
However, significant hurdles remain for deployment. Running high-parameter LLMs for every pair of claims in a massive legal code is computationally expensive. Future work must address temporal consistency—how to handle knowledge bases that change over time—and the "valley of death" involved in moving from mathematical theory to administrative implementation.
Conclusion
Combining the local linguistic processing of LLMs with the global mathematical rigor of sheaf theory offers a promising path toward automating the detection of inconsistency at scale. This framework provides a formal roadmap for quantifying "bullshit" and increasing the coherence of large-scale information systems.
Summary updated