Skip to content

G-cert: Lean-checked certificates for the geo-bound network enumeration - #133

Merged
rollrat merged 3 commits into
masterfrom
claude/fastopt-geo-cert
Dec 6, 2026
Merged

rollrat merged 3 commits into
masterfrom
claude/fastopt-geo-cert

Conversation

@rollrat

@rollrat rollrat commented Dec 6, 2026

Copy link
Copy Markdown
Member

Turns the class-network enumerator's completeness from argued into checked, for the cases with certificates.

  • Lean, Domain/GeoCert.lean:
    • check_sound: if the certificate checks, every ClassNet satisfies b ≤ inputs + cost.
    • Fast checker, proved equal to the plain one: checkCertFast_eq, checkFast_sound.
  • Lean, Domain/GeoCertBound.lean: phys_cert_bound and phi_cert_bound_default complete the chain physics → projection → certificate → block bound.
  • Kernel-checked examples: 10 A-tier certificates, both modes, checked by decide.
  • Exe: lake exe geo-cert-check. Emitter: exact/geo_cert.rs.
  • Measured:
    • A tier: VERIFIED in ≤1 ms.
    • XOR2 2x6x4 default b13: 1.2 M nodes, 17 s.
    • XOR2 2x6x4 default b15: 20.9 M nodes, 702 MB, VERIFIED in 390 s.
  • Gaps:
    • The G3–G5 tight-layout bound 16 is outside this chain; it needs a survivor-list leaf kind.
    • No merged Φ chain, because WireRanked fails in merged mode.
    • The compiled exe and its JSON parser are trusted.

Docs: docs/geometric_network_bound.md (geo-cert section). No sorry or native_decide; no SAT.

🤖 Generated with Claude Code

rollrat and others added 3 commits December 6, 2026 23:59
The geo_bound.rs enumerator's minimum (levers + class-network cost) rested
on an argument that the enumeration is complete. This replaces the argument
with a certificate tree that Rust emits and a Lean checker with a soundness
theorem, without SAT, so the class-network lower bound becomes a Lean
result relative to the checked certificate.

- Domain/GeoCert.lean: geo-cert/1 trees over node and lever-attachment
  atoms, obligations computed from the instance (ranked, unranked,
  single-torch, lever exclusivity), checkCert with check_sound/check_bound,
  checkCertFast proved equal (checkCertFast_eq, checkFast_sound).
- Domain/GeoCertBound.lean: physics -> projection -> certificate chain
  (phys_cert_bound, phi_cert_bound_default).
- Domain/GeoCertExamples.lean: A-tier bounds (not/nor2/or2/and2/nand2, both
  modes) checked by kernel decide; generated by tools/geo_cert/to_lean.py.
- GeoCertCheck.lean (lake exe geo-cert-check), exact/geo_cert.rs emitter and
  the A-tier test against the enumerator.
- XOR2 2x6x4 default-Phi bound 15: 20.9M-node certificate (702 MB) VERIFIED
  in 390 s by the compiled checker (measured, docs 11.4).
- Audit guards for all new theorems; docs/geometric_network_bound.md 11절.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Brings in the G5 xor_tight5r option; the geo_cert test's Options literal gets the new field and the import/Audit lists keep both sides.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@rollrat
rollrat merged commit 5b05876 into master Dec 6, 2026
rollrat added a commit that referenced this pull request Dec 6, 2026
…t doc section

Intent: geo_cert.rs (#133) constructs geo_bound Options without G5b's new fields; the
G-cert section collided with G4's number 11 and becomes 14.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.

1 participant