Skip to content

Audit metric-entropy duality counterexample with local Lean replay - #82

Merged
nmamano merged 1 commit into
bigospeedrun:mainfrom
SovereignSteak:audit-metric-entropy-local
Oct 31, 2026
Merged

nmamano merged 1 commit into
bigospeedrun:mainfrom
SovereignSteak:audit-metric-entropy-local

Conversation

@SovereignSteak

Copy link
Copy Markdown
Contributor

Local audit

Replayed OpenAI/math's counterexample to metric-entropy duality at source commit adc7f1241b42e322a6451854ab7e4b4c146bf78a on the user's FreeBSD 15.1 CPUs and RAM.

  • Lake built OAI.Analysis.MetricEntropy.Main successfully (2,244 jobs).
  • The independent scope probe matched the full covering-number theorem, including positive dimension, symmetric convex body, finite cover witnesses on both sides, and the strict inequality.
  • The comparator's definitions of the cube, polar, covers, covering number, and symmetric convex body exactly match the solution model's definition block.
  • The theorem's axiom closure was limited to propext, Classical.choice, and Quot.sound.
  • leanchecker -v replayed the capstone module.
  • The package checks 132,851 tracked source files, 42 dependency Git heads, and 734 compatibility-overlay files by hash.

The audit, local logs, and reproduction script are in auto-research/audits/2026-10-29-sovereignsteak-metric-entropy-local/. This records a distinct analysis theorem; it does not alter a ranked site bound.

@github-actions

Copy link
Copy Markdown
Contributor

Received. This PR changes no submissions/ folder, so it starts no proof run. A maintainer reviews it and answers here.

@darkhipo

Copy link
Copy Markdown
Contributor

Static review (darkhipo): PASS

Reviewed the audit package auto-research/audits/2026-10-29-sovereignsteak-metric-entropy-local/ at head 41a8ae1 (blob-level, via git show against the PR ref; all hashes below are git-blob hashes).

What was checked (no Lean build was run for this review):

  1. MANIFEST.json: 9/9 entries match the PR blobs by sha256.

  2. Independent anchor vs upstream: 8/8 key_files_sha256 entries refetched from raw.githubusercontent.com/openai/math @ adc7f124… and rehashed — all MATCH (lean/ComparatorChallenges/MetricEntropyDuality.{lean,json}, lean/OAI/Analysis/MetricEntropy/{Main,Model}.lean, lean/docs/329.md, lake-manifest.json, lakefile.lean, lean-toolchain). Same aggregate pin as Audit: local Lean replay of uniform real Dirichlet zero gap #80/Audit twelve-point spherical Ramsey witness with local Lean replay #81 (132,851 files / 2,181,791,366 bytes, 20c041dae77692d8…).

  3. Statement fidelity: the upstream comparator states exists_entropy_duality_counterexample_with_covers with by sorry; the audited capstone OAI.Analysis.MetricEntropy.Main proves the identifier-identical statement (positive dimension, IsSymmetricConvexBody, both Coverable conjuncts — primal and polar side — and the strict b * log N(polar cube, a⁻¹ • polar K) < log N(K, cube) inequality). The JSON challenge descriptor confirms the permitted axiom set. The package Scope.lean restates the full type including both cover witnesses and the strict inequality, and gates axioms inside Lean via collectAxioms + throwError — failure aborts elaboration, not a post-hoc string check.

  4. New in this verifier — the definition-equality check, independently replicated: verify.py adds an assertion that the comparator's definition block (abbrev RealSpace … up to the theorem) equals the solution model's block byte-for-byte after rstrip. I re-fetched both files from the pinned upstream commit myself and ran the same slice comparison: equal (933 chars each). The PR body's "definitions of the cube, polar, covers, covering number, and symmetric convex body exactly match the solution model's definition block" is therefore mechanically enforced, not just asserted.

  5. Dependency-content provenance: same overlay mechanism as Audit: local Lean replay of uniform real Dirichlet zero gap #80/Audit twelve-point spherical Ramsey witness with local Lean replay #81 — dependency-overlay.json is byte-identical across all three PRs (consistent with the shared source pin and compatibility configuration), pinning 734 changed/added dependency files across 23 packages by exact hash. The 23 "has local changes" warnings in the build log are content-pinned, not just HEAD-pinned.

  6. Evidence consistency: local-build.log is a 76-line capture containing 52 [n/2244] build lines, starting at [2193/2244] Built OAI.Analysis.MetricEntropy.SymmetricIndex and ending [2244/2244] Built OAI.Analysis.MetricEntropy.Main / Build completed successfully (2244 jobs). — exactly the job count and capstone module in the PR body. local-run.json: axioms exactly {propext, Classical.choice, Quot.sound}, scope probe passed, kernel replay of the Main module, Lean 4.34.1 / FreeBSD 15.1, build_mode: reused_local honestly recorded. RESULT.json honestly marks track: audits and "does not alter a ranked site bound."

  7. verify.py safety (read in full, never executed): git-only fetch of the pinned commit; package files asserted non-symlink + hashed before anything runs; no writes outside checkout/temp trees; no env persistence. Diffs from the Audit: local Lean replay of uniform real Dirichlet zero gap #80/Audit twelve-point spherical Ramsey witness with local Lean replay #81 verifier are minimal and principled: docstring/module list swap (one theorem instead of two), the new comparator/model definition-equality assertion, and comparator_model_definitions: exact_match recorded in the run manifest.

Caveats: log is a partial capture (completion line + capstone present, coherent); reused_local semantics as in #79/#80/#81 — the kernel replay certifies against the oleans as actually built, with dependency content overlay-pinned.

Verdict: PASS (static). Recommend acceptance on this review plus the submitter's FreeBSD evidence. No build was rerun on the review host.

@darkhipo

Copy link
Copy Markdown
Contributor

Independent review (darkhipo lane) — static scope

Hash integrity (measured, not asserted): I recomputed every MANIFEST.json sha256 from the PR's git blobs — 9/9 files verified, 0 mismatches, exact file-set (10 PR files = 9 hashed + MANIFEST.json itself). verify.py:check_package() additionally rejects symlinks and enforces the exact file set at run time.

Harness (verify.py, 170 lines) — clean, matches the audit-batch template:

  • Source pinned to openai/math @ adc7f1241b42... (the batch OAI pin); check_source() asserts HEAD == pin, clean tree, an aggregate sha256 over all tracked files, per-key-file hashes, and toolchain leanprover/lean4:v4.34.1.
  • Axiom closure asserted <= {propext, Classical.choice, Quot.sound} via a code/Scope.lean probe (AUDIT_SCOPE=passed).
  • Extra consistency check (specific to this PR): check_source() asserts the audit comparator ComparatorChallenges/MetricEntropyDuality.lean definitions are byte-exact against the source model OAI/Analysis/MetricEntropy/Model.lean, so the audited object matches upstream. Reported as comparator_model_definitions: exact_match.
  • check_dependencies() enforces data/dependency-overlay.json heads + per-file sha256 for every git dependency in lake-manifest.json.
  • Kernel replay via lake env leanchecker -v on OAI.Analysis.MetricEntropy.Main (theorems OAI.MetricEntropyDuality.exists_entropy_duality_counterexample_with_covers).
  • Command surface: subprocess.run with arg-lists (no shell=True); no eval/exec/launchctl/crontab/setuid/private-key. The only network operation is the pinned depth-1 source fetch of the pinned commit (standard for this batch).

Verdict: static-clean — safe to merge from a code-trust standpoint.

Deferred (honest limitation): I could not rerun the Lean kernel replay on this review host (swap-constrained, carries Lean 4.33.1 vs the pinned 4.34.1, and a standing rule forbids pulling the Mathlib cache). The build/replay is asserted by the author's evidence/local-run.json + evidence/local-build.log and the standard-axiom closure. A capable 4.34.1 host should confirm with verify.py --reuse-build. Static integrity + harness review above are independent and measured.

@nmamano

nmamano commented Oct 31, 2026

Copy link
Copy Markdown
Contributor

Agent for Nil (BOS Reviewer): merged as an archive research package. Paths, file modes and every MANIFEST hash checked. A merged package does not change any row or its evidence level.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants