You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The user has explicitly authorized (2026-07-24) investigation and deletion of genuinely-dead reference-0 declarations:
時間と労力がかかっても構わない. 慎重に調べて余計なものは削除しろ
This campaign conducts item-specific dead-declaration deletion from the ~1,665-candidate reference-0 pool identified after the exhausted _bundle pattern sweep (#4665–#4690, main 9a7b2c3).
Context & related: see .self-local/reports/handoff-2026-07-24-campaign-exhausted.md and memory project_refactor_buildspeed_2026_07_20.md.
Issue #4559 "Follow-up: detached subtree, zero-ref decl, unused import (out of #4557 dedup scope)" contains three pre-vetted items that now fall under this Option-D authorization and are incorporated as the first work batch:
Item 1: Delete IsingModel/ClusterExpansion/MayerCore/Truncations.lean and MayerTermThreeEval.lean (doc-sync-gated, conditionally).
(e) a ℤ^d latticeGraph Λ-layer / tanh / ferromagnetic / high-temp specialization that CLAUDE.local.md mandates as concrete-model deliverable API surface bundled into GJ-proposition PRs (per "1 GJ 命題 + helper + 合成 + 系 + tanh 変換 + Λ-layer wrap" bundling rule)
(f) cited by docs/index.md or tex/proof-guide.tex (grep both before any deletion)
(g) referenced by the GKSTest executable or any decide/property test
Only declarations that are reference-0 AND fail ALL of (a)–(g) AND do not transitively feed any kept result are deletion-eligible. When uncertain, KEEP — do not resolve ambiguity in favor of deletion. This mirrors the already-litigated false-positive lesson (10/22 in Profile.lean audit, #4639) and the two REFUTED tier-2 candidates from 2026-07-21 recorded in project_abstraction_candidates_2026_07_21.md.
Per-PR Verification Protocol
For each PR claiming reference-0 deletions, dev-issue-manager applies after closure:
Evidence-of-dead check: every deleted declaration must have a recorded rg -n scan showing zero consumers (both declaration-side and consumer-side, per the 2026-07-21 lesson), AND explicit confirmation it fails all keep-criteria (a)–(g) with citation of the grep/search used for each. Unicode-aware tokenization only (no naive ASCII word-boundary scanner — recurring bug noted 2026-07-21).
Build health: lake build reproduces zero warnings post-deletion (not just pre-deletion baseline).
Axiom/sorry hygiene: grep -rn "sorry" IsingModel/ = 0, grep -rn "^axiom" IsingModel/ = 0 (or repo-standard axiom-decl scan), and #print axioms on any touched/downstream theorem still yields exactly [propext, Classical.choice, Quot.sound].
Docs/tex staleness: rgdocs/index.md and tex/proof-guide.tex for the deleted declaration names — zero stale references remain (any hit must be fixed in the same PR, not deferred).
Three-layer sync: canonical (docs/index.md, if it ever cites the item), local mirror .self-local/issues/<n>.md, and the GitHub issue body/checklist all reflect the actual deletion set (no ledger drift), following the pattern already used in .self-local/issues/4691.md.
Any single failure above → PR does not close its issue; issue-manager reports unresolved.
Authorization
The user has explicitly authorized (2026-07-24) investigation and deletion of genuinely-dead reference-0 declarations:
This campaign conducts item-specific dead-declaration deletion from the ~1,665-candidate reference-0 pool identified after the exhausted
_bundlepattern sweep (#4665–#4690, main 9a7b2c3).Context & related: see
.self-local/reports/handoff-2026-07-24-campaign-exhausted.mdand memoryproject_refactor_buildspeed_2026_07_20.md.Scope
This issue does NOT authorize:
Those remain separately gated.
Folded-in work: #4559 items
Issue #4559 "Follow-up: detached subtree, zero-ref decl, unused import (out of #4557 dedup scope)" contains three pre-vetted items that now fall under this Option-D authorization and are incorporated as the first work batch:
IsingModel/ClusterExpansion/MayerCore/Truncations.leanandMayerTermThreeEval.lean(doc-sync-gated, conditionally).alternatingConnectedSubgraphSum_cycleGraph_seven(already resolved by refactor: drop six reference-0 declarations covered by the general cycle closed form #4636 cleanup).IsingModel/ClusterExpansion/StrictPositivity/IffCharacterisations.lean:1(pure hygiene, first-batch target).#4559 will be closed once its 3 items are fully disposed via PRs.
Keep-Criteria (frozen, authoritative for this campaign)
A reference-0 declaration MUST BE KEPT (i.e., is NOT deletion-eligible) if it is ANY of:
sum_prod_eq_sum_doubled_subFinsetetc.latticeGraphΛ-layer / tanh / ferromagnetic / high-temp specialization that CLAUDE.local.md mandates as concrete-model deliverable API surface bundled into GJ-proposition PRs (per "1 GJ 命題 + helper + 合成 + 系 + tanh 変換 + Λ-layer wrap" bundling rule)docs/index.mdortex/proof-guide.tex(grep both before any deletion)GKSTestexecutable or anydecide/property testOnly declarations that are reference-0 AND fail ALL of (a)–(g) AND do not transitively feed any kept result are deletion-eligible. When uncertain, KEEP — do not resolve ambiguity in favor of deletion. This mirrors the already-litigated false-positive lesson (10/22 in Profile.lean audit, #4639) and the two REFUTED tier-2 candidates from 2026-07-21 recorded in
project_abstraction_candidates_2026_07_21.md.Per-PR Verification Protocol
For each PR claiming reference-0 deletions,
dev-issue-managerapplies after closure:Evidence-of-dead check: every deleted declaration must have a recorded
rg -nscan showing zero consumers (both declaration-side and consumer-side, per the 2026-07-21 lesson), AND explicit confirmation it fails all keep-criteria (a)–(g) with citation of the grep/search used for each. Unicode-aware tokenization only (no naive ASCII word-boundary scanner — recurring bug noted 2026-07-21).Build health:
lake buildreproduces zero warnings post-deletion (not just pre-deletion baseline).Axiom/sorry hygiene:
grep -rn "sorry" IsingModel/= 0,grep -rn "^axiom" IsingModel/= 0 (or repo-standard axiom-decl scan), and#print axiomson any touched/downstream theorem still yields exactly[propext, Classical.choice, Quot.sound].Docs/tex staleness:
rgdocs/index.mdandtex/proof-guide.texfor the deleted declaration names — zero stale references remain (any hit must be fixed in the same PR, not deferred).Three-layer sync: canonical (
docs/index.md, if it ever cites the item), local mirror.self-local/issues/<n>.md, and the GitHub issue body/checklist all reflect the actual deletion set (no ledger drift), following the pattern already used in.self-local/issues/4691.md.Any single failure above → PR does not close its issue; issue-manager reports
unresolved.Status
retraction of the resulting stale references)