<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: liao-zhizhi</title>
    <description>The latest articles on DEV Community by liao-zhizhi (@liaozhizhi).</description>
    <link>https://dev.to/liaozhizhi</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4224241%2F149f8427-f667-458b-83b7-f443c0d093ce.png</url>
      <title>DEV Community: liao-zhizhi</title>
      <link>https://dev.to/liaozhizhi</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/liaozhizhi"/>
    <language>en</language>
    <item>
      <title>Trust, but Verify: How We Audited OpenAI's Lean 4 Math Proofs with a Zero-Dependency Sidecar</title>
      <dc:creator>liao-zhizhi</dc:creator>
      <pubDate>Tue, 03 Nov 2026 12:24:22 +0000</pubDate>
      <link>https://dev.to/liaozhizhi/trust-but-verify-how-we-audited-openais-lean-4-math-proofs-with-a-zero-dependency-sidecar-283d</link>
      <guid>https://dev.to/liaozhizhi/trust-but-verify-how-we-audited-openais-lean-4-math-proofs-with-a-zero-dependency-sidecar-283d</guid>
      <description>&lt;p&gt;Recently, OpenAI released a repository of formal proofs (&lt;code&gt;ten-proofs&lt;/code&gt;) demonstrating AI's capability to solve complex mathematical problems using Lean 4. &lt;/p&gt;

&lt;p&gt;When an AI lab drops thousands of lines of formal code claiming "we solved it," how does the rest of the world verify it? Currently, we rely on a handful of expert mathematicians who don't have the time to read 37,000 lines of code. Or, we rely on another LLM to "judge" it—which just hallucinates a thumbs-up.&lt;/p&gt;

&lt;p&gt;I wanted to see if an automated, physical-witness approach could do better. So, I used my open-source project, &lt;code&gt;harness-audit-sidecar&lt;/code&gt;, to audit OpenAI's proofs locally. &lt;/p&gt;

&lt;p&gt;Here is what happened.&lt;/p&gt;

&lt;h3&gt;
  
  
  The Setup: No Hallucinations Allowed
&lt;/h3&gt;

&lt;p&gt;LLM-as-a-Judge fails here. A compiler asks &lt;em&gt;"does this elaborate?"&lt;/em&gt;, but an auditor must ask &lt;em&gt;"is there a physical witness?"&lt;/em&gt;. &lt;/p&gt;

&lt;p&gt;To create a physical witness, I didn't just scan the text. I pulled the 7.2 GB Mathlib cache, compiled 8,687 jobs locally, and ran our &lt;code&gt;LeanProofAuditor&lt;/code&gt;.&lt;/p&gt;

&lt;h3&gt;
  
  
  The Results: 11 PASS, 12 FAIL
&lt;/h3&gt;

&lt;p&gt;The audit took about 40 minutes. Here are the hard facts:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;The 11 Main Proof Files achieved a genuine &lt;code&gt;PASS&lt;/code&gt;.&lt;/strong&gt; &lt;br&gt;
All theorems elaborated successfully. Zero smuggled custom axioms. They rely only on the three standard Lean axioms (&lt;code&gt;Classical.choice&lt;/code&gt;, &lt;code&gt;propext&lt;/code&gt;, &lt;code&gt;Quot.sound&lt;/code&gt;). OpenAI's core mathematical proofs are solid.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;12 Files returned &lt;code&gt;FAIL&lt;/code&gt; (42 placeholders found).&lt;/strong&gt;&lt;br&gt;
Wait, did OpenAI cheat? No. These 12 files are located in &lt;code&gt;ComparatorChallenges/&lt;/code&gt;. They are templates intentionally left with &lt;code&gt;sorry&lt;/code&gt; (Lean's unproved placeholder) for human contestants to fill out. Our auditor simply reported the physical fact: &lt;em&gt;these files are not complete proofs.&lt;/em&gt;&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;h3&gt;
  
  
  Why This Matters
&lt;/h3&gt;

&lt;p&gt;If an LLM judged this repository, it would read the comments, see the word "solved", and output a confident &lt;code&gt;PASS&lt;/code&gt; for the whole folder—completely ignoring the 42 &lt;code&gt;sorry&lt;/code&gt; placeholders.&lt;/p&gt;

&lt;p&gt;Our sidecar enforces a four-valued verdict: &lt;strong&gt;PASS, FAIL, INVALID, NOT RUN&lt;/strong&gt;.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;It didn't just guess. &lt;/li&gt;
&lt;li&gt;It didn't accept &lt;code&gt;exit code 0&lt;/code&gt; as proof (because a file with &lt;code&gt;sorry&lt;/code&gt; can compile cleanly).&lt;/li&gt;
&lt;li&gt;It inspected the artifact's dependency graph via &lt;code&gt;#print axioms&lt;/code&gt; to expose the truth.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  The Four-Valued Immune System
&lt;/h3&gt;

&lt;p&gt;This audit is just one application of the &lt;code&gt;harness-audit-sidecar&lt;/code&gt;. Originally, it was built to catch AI agents lying about writing files or executing shell commands. &lt;/p&gt;

&lt;p&gt;We introduced:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Conditional Immunity&lt;/strong&gt;: Tier 1 (cheap stat checks) and Tier 2 (full Git diffs). Two consecutive &lt;code&gt;FAIL&lt;/code&gt;s trigger an "inflammation storm" that blocks writes.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Membrane Gateway&lt;/strong&gt;: Agents cannot define their own success criteria. They must register expectations before execution.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Agent Metabolism OS&lt;/strong&gt;: Regulates LLM API costs and fast/slow thinking beats.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  A Tool that Audits Itself
&lt;/h3&gt;

&lt;p&gt;During development, our own auditor caught &lt;em&gt;itself&lt;/em&gt; producing false completions. We log these in &lt;code&gt;ERRATA.md&lt;/code&gt;. For example, we initially failed a legitimate &lt;code&gt;opaque&lt;/code&gt; definition because we confused it with an &lt;code&gt;axiom&lt;/code&gt;. We corrected it and wrote a regression test. &lt;/p&gt;

&lt;p&gt;An audit tool that only audits others is a decoration. You can read our ERRATA to see how the system caught its own bugs.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Resources:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://github.com/liao-zhizhi/harness-audit-sidecar" rel="noopener noreferrer"&gt;Agent Harness Sidecar (GitHub)&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://github.com/liao-zhizhi/agent-metabolism-os" rel="noopener noreferrer"&gt;Agent Metabolism OS (GitHub)&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://doi.org/10.5281/zenodo.23891527" rel="noopener noreferrer"&gt;Preprint on Zenodo&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Update (Nov 3, 2026)
&lt;/h3&gt;

&lt;p&gt;Following the release of this article, we published the &lt;strong&gt;v2 version&lt;/strong&gt; of our paper. It now includes the &lt;strong&gt;Rule Interface (RuleRegistry)&lt;/strong&gt; architecture for managing signed YAML safety packages, and the full empirical audit results of both OpenAI's &lt;code&gt;ten-proofs&lt;/code&gt; and DeepMind's &lt;code&gt;alphaproof-nexus-results&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;Read the updated v2 paper here: &lt;a href="https://doi.org/10.5281/zenodo.23921886" rel="noopener noreferrer"&gt;https://doi.org/10.5281/zenodo.23921886&lt;/a&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>opensource</category>
      <category>math</category>
      <category>lean4</category>
    </item>
  </channel>
</rss>
