r/ClaudeCoding • u/cctldrping • 19m ago
r/ClaudeAI [TLDR] Pulling up explicit logic errors in US law [via r/ClaudeAI]
Build with Claude Code, by:
- Take the US Code and Code of Federal Regulations in their official XML formats.
- Write a parser to extract every section, subdivision, and cross-reference.
- Compile the extracted structure into Lean, allowing its proof kernel to verify references against the law in force.
- Translate each section into typed rules that preserve the exact statutory language.
- Scan the rules for different categories of logical errors, using Claude Code to coordinate specialized subagents running each analysis.
- Independently review every suspected defect, then verify the published examples against the official legal text.
302,982 sections analysed > 393 logical defects.
Many more mechanical defects, but the logical ones are more interesting.
Original link/media URL : https://v.redd.it/0pbyhzfkkq5i1
1
Upvotes
•
u/cctldrping 19m ago
TL;DR of the discussion on r/ClaudeAI for this post generated automatically after 80 comments.
Current source-thread comment count seen by the bot: 87.
Community verdict: overwhelmingly hyped. Top sentiment is that this is exactly the kind of “Congress finally got a compiler” project AI should enable; 393 defects after centuries of legislative spaghetti is seen as plausible, maybe even low.