Skip to content

Make lowerability models retain real NN and ASP signature witnesses - #5922

Merged
dmitrii-f-t27 merged 1 commit into
gHashTag:masterfrom
dmitrii-f-t27:codex/lean-completeness-witnesses
Oct 4, 2026
Merged

dmitrii-f-t27 merged 1 commit into
gHashTag:masterfrom
dmitrii-f-t27:codex/lean-completeness-witnesses

Conversation

@dmitrii-f-t27

@dmitrii-f-t27 dmitrii-f-t27 commented Oct 4, 2026 •

Copy link
Copy Markdown
Collaborator

The NN lowerability models were empty after their real sources gained f64 functions, so their true theorems disagreed with the actual Rust classifier. Full Lean compilation also exposed an unused ASP dummy marker: its empty module could not prove the asserted false verdict. Retain real signature/type projections for phi_rope, sacred_attention and ASP, couple them to actual compiler generation, and import Completeness from the root library so the default Lake build checks it.

Closes #5910
Closes #5917
Refs #2895

Validation: full local bootstrap cargo test --no-fail-fast passes (2,792 passed, zero failed, two inherited ignored). Actual Lean4.31.0 compiles full Completeness and ten unchanged dependency modules with exact pinned Mathlib. Exact-head Linux CI also compiles Completeness successfully (22s). All three false-to-true mutants fail native_decide; an integer control passes; no sorryAx appears in the changed theorems. Old NN/ASP empty models fail the source guard. The required three checks, Corpus ratchet and GitGuardian pass on the exact source head. Compiler/classifier and all ledgers remain unchanged.

These are negative structural signature projections with deliberately omitted bodies; they do not establish numerical correctness, solver correctness or complete inference. Whole-library CI remains red on unchanged H4Lagrangian and TernaryFPGABoot. Baseline and candidate locally reproduce the same H4 failures; the existing boot file is untouched. H4 proof repair is tracked in #5927/#3142, C test portability in #5907. No full-library/all-CI-green claim, exclusions, added admissions or ledger increase.

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.

Replace the empty ASP lowerability model with a real signature witness Restore Lean completeness agreement for phi_rope and sacred_attention

1 participant