Repository navigation
simplify Zeta23, removed ~30.3% of lean source lines - #65
Open
muayyad-alsadi wants to merge 1 commit into
Open
muayyad-alsadi wants to merge 1 commit into
muayyad-alsadi wants to merge 1 commit into
Conversation
muayyad-alsadi
force-pushed
the
zeta23-simplify
branch
2 times, most recently
from
December 1, 2026 23:00
f858589 to
5ada4cd
Compare
muayyad-alsadi
force-pushed
the
zeta23-simplify
branch
from
December 5, 2026 13:30
5ada4cd to
63a44ea
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
details in zeta23/alsadi-simplification.md
Zeta23 Simplification Report
Summary
We measure all
.leanfiles inzeta23/(excluding.lake/anddocbuild/).We report two numbers for each snapshot:
.leanfile.--and/- ... -/) removed.main)From baseline to current, we removed 24,530 Code LOC (30.3%) and 28,793 total lines (27.9%).
All three headline theorem groups stay complete, with no new
sorryand no new axioms:Solution.lean: 17 Palomar theorems.Solution/XiPrime.lean: 6 XiPrime theorems.Zeta23/PairCeiling/: 11 PairCeiling theorems.Where the Savings Came From
From baseline to current, the net 24,530 Code LOC reduction splits into three parts:
Deleted Files (38 files, 11,267 Code LOC saved)
We deleted files that no headline theorem used, or files replaced by a shared module.
Zeta23/XiPrime/Hardy/Zeta23/FromPNTPlus/MediumPNT.leanZeta23/FromPNTPlus/MellinCalculus.leanZeta23/ThmD/PsiC.leanZeta23/Taper/PsiC.leanZeta23/XiPrime/QuarticWindow/ModWindow.leanZeta23/ThmD/ModWindow.leanZeta23/XiPrime/Transfer/W.lean,InputsW.leanZeta23/FromPNTPlus/Sobolev.leanTightMult,CertificateC3Top Shrunk Files (288 kept files, 16,193 net Code LOC saved)
Zeta23/FromPNTPlus/ZetaBounds.leanZeta23Zeta23/ThmD/Window.leanThmD/ModWindow.leanZeta23/Assembly.leanAssembly/{Endgame,Growth,Matrix,Windows}.leanZeta23/WeilEF/Effective.leanZeta23/FromPNTPlus/ResidueCalcOnRectangles.leanZeta23Zeta23/XiPrime/ExplicitFormula/TestWeight.leanZeta23/ThmE/PPChi.leanPrimeSideB/PPKernel.leanZeta23/Taper/Decay.leanTaper/PsiC.leanZeta23/XiPrime/QuarticWindow/Moments.leanThmD/ModWindow.leanZeta23/ThmE/IntMuChi.leanZeta23/ThmDE/Mult.leanc = 2andc = 3multiplicity endgamesZeta23/ThmDE/Endgame.leanThmDendgame and pruned unused wrappersZeta23/XiPrime/PrimeSide/PP.leanPrimeSideB/PPKernel.leanZeta23/ThmE/MainTermChi.leanrvM_main_scaledinRvM/Generic.leanZeta23/ThmD/Mult.leanc = 2andc = 3multiplicity endgamesPrimeSideB/PPKernel.lean+377)Added Shared and Split Files (8 files, +2,930 Code LOC)
To replace duplicated proofs, we added 8 shared or split files:
Zeta23/Assembly/{Endgame,Growth,Matrix,Windows}.lean(4 files)Assembly.leanand unifiedc-generic matrix and endgame proofsZeta23/ThmD/ModWindow.leanThmDandXiPrime/QuarticWindowZeta23/RvM/Generic.leanZeta23/Taper/PsiC.leanTaper/Decay.leanandThmDZeta23/Analytic/BacklundInduction.leanRvMandThmEWhat We Merged and Generalized
ThmD/ModWindow.lean,ThmD/WindowCore.lean,Taper/PsiC.lean):We combined the
phiDwindow (ThmD/Window.lean) and the quartic window (XiPrime/QuarticWindow/Moments.lean) onto oneModFactorengine. We unifiedvandv²Fourier bounds inWindowCore.leanunderRealWindow, and merged the repeatedpsidecay proofs intoTaper/PsiC.lean.RvM/Generic.lean,WeilEF/Landau.lean,WeilEF/GoodHeights.lean,Defs/Counting.lean):We replaced parallel zero-counting, Gamma-side, and Riemann–von Mangoldt proofs across
RvM/,ThmE/, andXiPrime/ZeroCount/withDiscCountDataandrvM_main_scaled. We unified the Landau partial-fraction and good-heights proofs underTwoLineLandauData, and moved sharedZeroConfigwindow lemmas intoDefs/Counting.lean.Assembly/Matrix.lean,Assembly/Certificate.lean,ThmD/,ThmE/,ThmDE/,XiPrime/Assembly.lean):We unified the
c = 2(simple zeros) andc = 3(distinct zeros) perturbation, moment, certificate, and endgame proofs intoc-generic lemmas, and deletedAssembly/CertificateC3.leanalong with unused Cauchy–Schwarz wrappers.PrimeSideB/PPKernel.lean,Analytic/RectangleLogDeriv.lean):We generalized the prime-pair kernel for
PrimeSideB,ThmE/PPChi.lean, andXiPrime/PrimeSide/PP.lean, and shared contour-rectangle and Backlund helpers across ζ, χ, and ξ′.We deleted unused modules (
XiPrime/Hardy/,MediumPNT.lean,MellinCalculus.lean,Sobolev.lean) and trimmed unused declarations fromFromPNTPlus/and over 100 internal files.