Math Research · Paper F04 & Lean 4

When separated pieces stay positive together — checked by Lean 4.

Can a computer prove that prime-number waves stay positive — without a single skipped step? Yes, across 15 Lean 4.35.0 proof files (522 verified theorems).

What this page proves: Separated narrow prime windows stay strictly positive even when individual windows lean out of balance, alongside 29 locked zeta zeros, the exact overlap and width walls, and the classical two-way Weil test for any zero multiplicity.

What stays open: Overlapping windows, supports wider than $\log 2 \approx 0.693$, and the full unrestricted Riemann Hypothesis at unbounded height remain open Clay Millennium territory.

Drag to rotate · Ctrl+scroll to zoom
Lean-certified three-window geometry (Local and Global Balance) Three separated windows centered at 0, 0.7, and 1.4 on the log line u = log x. Both locally balanced and globally balanced (no local balance) certificates pass inside Lean 4.35.0. Lean-Certified 3-Window Global-Balance Theorem (Gap 1 Closed) L = 1/100 (ε = 1, N = 1) & L = 1/20 (ε = 1/6, N = 64 LDLᵀ) · No Local Balance Required u = log x Outer pair (I₁, I₃): P = ∅ · E_unbal < 0.008 (L=1/100) Prime 2 + F_unbal < 0.504 Prime 2 + F_unbal < 0.504 I₁ · c = 0 margin > +1.608 I₂ · c = 7/10 margin > +1.112 I₃ · c = 7/5 margin > +1.608 GlobalBalanceWindows.lean: covers all 2r − 2 = 4 non-locally-balanced cross-window directions strictly
All 7 Schur LDLᵀ pivots > 0 (N = 64)
Computer Audit 522 / 522 Checks Passed Every theorem & lemma verified
Proof Checker Lean 4.35.0 Kernel Pinned Mathlib4 · -DautoImplicit=false
Proof Codebase 15 Files · 13,946 Lines Zero skipped steps (0 sorry)
Foundations Standard Math Axioms Only propext, Classical.choice, Quot.sound
Honest Scope Gap 1 Closed · Walls Mapped RH open · overlap & $L > \log 2$ open

THE CORE ARCHITECTURE IN PLAIN ENGLISH

Three breakthroughs—and one exact proved wall.

Start with the everyday picture in each card, then open Math & Lean 4 Details whenever you want the exact inequalities and kernel-verified theorem files.

01 · GAP 1 CLOSED ON SEPARATED WINDOWS

Balanced as a team, not piece by piece

Think of crates on a seesaw: you do not need every individual crate to sit dead-level on its own for the whole beam to hold firm—as long as the crates stay slightly spaced apart. Our proof removes the rigid per-window balance restriction and proves that separated prime windows stay strictly positive across every cross-window lean.

Math & Lean 4 Details

Cauchy–Schwarz bounds the residual cross-moment directly by $F_{\mathrm{unbal}} = e^{-d/2}\sqrt{(1-e^{-L_1})(1-e^{-L_2})}$. Adding $F_{\mathrm{unbal}}$ to off-diagonal entries closes all $2r - 2$ cross-window directions on separated narrow windows, including explicit 3-window proofs at $L = 1/100$ ($\varepsilon = 1$) and $L = 1/20, N = 64$ ($\varepsilon = 1/6$).

theorem2_globally_balanced_subspace ↗

02 · GAP 2 SHARP BREAKDOWN WALL PROVED

The exact bridge span limit where the method stops

Think of a bridge’s hard load limit: push two support towers too close together, or stretch a single deck span wider than $0.693$, and the structure hits a proven breaking point. Lean pins down both walls so there is zero guesswork about where separated-window comparison stops working.

Math & Lean 4 Details

Overlapping smooth cutoffs incur an exact $L^2$ defect and a non-integrable $t \to 0^+$ singularity. Meanwhile, finite-chain diagonal gains saturate uniformly below $m(L) + e^{L/2}\pi^2/9$ while $R(L,L,d) \ge L/(4d) \to \infty$, forcing every $M_N$ negative as $d \to 0^+$. Above $L = \log 2 \approx 0.6931$, prime $p = 2$ enters a single window negatively and $m_N(\log 2) < 0$ for all $N$.

compMatrixChain_fails_small_gap_uniform ↗

03 · GAP 3 CLASSICAL WEIL EQUIVALENCE

A two-way smoke alarm for rogue zeros

Think of a calibrated smoke alarm: if every zero stays on the center balance line, the alarm stays quiet (total score $\ge 0$); if even one rogue zero wanders off the line—alone or stacked on itself—a tuned wave pulse makes the alarm flash negative. Lean proves both directions without assuming zeros are simple.

Math & Lean 4 Details

For any multiplicity-weighted critical-strip zero spectrum, critical-line zeros force $m(\rho)\|G(\rho)\|^2 \ge 0$, while any single off-line zero $\mathrm{Re}\,\rho_0 \neq \tfrac{1}{2}$ triggers a globally balanced two-shift Gaussian wave packet whose phase-aligned spectral sum drops strictly below zero ($\mathrm{RH} \iff Q \ge 0$).

weil_equivalence_gaussian_spectrum ↗

INTERACTIVE LEAN 4 WORKBENCH · 3 LIVE EXPERIMENTS

Test prime windows, break the overlap wall, and hunt a rogue zero live.

Every number, Schur pivot, breakdown curve, and 29-zero-pair spectral sum runs 100% locally in your browser using the exact formulas checked by our 15 Lean 4.35.0 modules.

Try this in 10 seconds Click 7-Win 21-Bridge LDLᵀ ✓ below, then gently drag Window Width (L) to watch the 7 exact Lean centers stay locked while prime bridges heat up and Schur pivots update live.
Wave Rule:
Pillar Strength:
Loading Lean 4 comparison matrix…

COMPLETE 15-MODULE LEAN 4.35.0 PROOF MAP · F04RIEMANN

Every theorem across 4 chapters, 15 files, and 13,946 verified lines.

Filter by chapter, search any theorem or 3D Act, open the raw .lean source directly, or jump straight into the matching 3D exhibition scene. Zero sorry, zero custom axioms, 522 kernel-audited declarations.

Showing 15 of 15 modules · 13,946 lines total (incl. root) · 522 audited declarations
Chapter I

Paper F04 Core · Foundations, Bounds & Codimension (Modules 1–8)

8 files · 5,091 lines

Defines the Weil kernel, Euler–Mascheroni constant $\gamma_E$, single-window floor $m(L) \ge \log(4/L) - A$, and Connes–Consani normalization (F04 §2).

883 lines
eulerGamma weilWeight_split residualWeight_antiOn integral_Ioi_weilWeight m_func_ge_log_four_div_sub_A connes_consani_normalization

Formalizes the prime-power weighting function $\Lambda(p^k) = \log p$ and proves clean upper bounds on prime-power sums inside any gap $[d, D]$ (F04 §2).

153 lines
vonMangoldt vonMangoldt_prime_pow arithWeight primePowerRange P_bound P_D_bound P_bound_le_P_D_bound

Builds smooth compactly supported test waves $C_c^\infty(\mathbb{R}, \mathbb{C})$, the $L^2$ coordinate isometry, balance eq. (1), differential operator $T\psi = \psi'' - \tfrac{1}{4}\psi$, and $O(t^2)$ integrability (F04 §2).

1,084 lines
TestFn normSq_toMultCoord l1Norm_le_sqrt_mul_l2Norm isBalanced_diffOp norm_corr_le integrableOn_weil_integrand normSq_sum_disjoint

Defines the Weil energy $Q(\varphi)$ (eq. 2), its Hermitian pairing $B(a,b)$ (eq. 3), finite prime-sum support, and multi-window sum expansion (F04 §2).

348 lines
Q_form B_form arithTermB_finite_support B_form_hermitian B_form_diag Q_form_sum_expansion

Proves Lemma 1 (single-window positivity floor up to $L = \log 2$) and Lemma 2 (exact Fubini cancellation plus inter-window bound $R + P$) (F04 §3–§4).

436 lines
lemma1_single_interval_lower_bound exact_interwindow_interaction fubini_exp_corr_eq_moments R_bound E_bound lemma2_interwindow_bound

Assembles Theorem 1 (comparison matrix $M$ & row-dominance test eq. 12) and Theorem 2 (uniform positivity for fixed centers & explicit width eq. 13) (F04 §5–§6).

507 lines
compMatrix row_dominance_implies_matrix_lower_bound theorem1_comparison theorem1_uniform_positivity explicitWidthBound theorem2_fixed_centers_explicit theorem2_fixed_centers

Constructs smooth bump waves, proves exact codimension $2r - 2$ between local and global balance, infinite-dimensionality, and cutoff rule eq. (14) (F04 §7).

962 lines
bumpTestFn dual_moment_nondegeneracy localMomentMap_surjective local_balance_codimension local_balanced_infinite_dimensional cutoff_product_rule cutoff_reconstruction_sum

Formalizes the §1 counterexample, the §6 prime-power triangle at $L = 1/20$, and the kernel-checked 3-window positivity theorem at $L = 1/100$.

718 lines
section1_counterexample arithmetic_illustration_L_one_twentieth m_func_one_hundredth_gt certified_three_window_L_one_hundredth
Chapter II

Sharper $N = 64$ Finite-Chain Floor & 7-Window Schur $LDL^\top$ (Modules 9–10)

2 files · 2,011 lines

Upgrades the single-window floor from $m_1(L)$ to the sharper $N$-step sine-chain floor $m_N(L)$ via fiber decomposition, giving the enhanced matrix $M_N$.

614 lines
discrete_finite_chain_bound re_autoCorr_le_cos_mul_normSq chainContrib m_chain lemma1_finite_chain_lower_bound compMatrixChain theorem1_chain_uniform_positivity

Kernel-proves symmetric $LDL^\top$ Schur positivity, $m_{64}(1/20) > 1.175$, the 3-window ($\varepsilon = 1/4$) certificate, and the full 7-window / 21-edge ($\varepsilon = 1/100$) certificate where naive row dominance fails.

1,397 lines
quadForm_eq_ldl_sum quadForm_gt_of_unit_lower_ldl m_chain_64_one_twentieth_gt certified_three_window_L_one_twentieth certified_seven_window_L_one_twentieth seven_window_row0_prime_sum_gt
Chapter III

29 Locked Zero Cages & Unconditional Tail Shield $B(100)$ (Modules 11–12)

2 files · 1,981 lines

Formalizes the 3D Gaussian zero-form, mirror-pair reflection symmetry, the unconditional multiplicity-weighted tail shield $B(100) \le 1.48 \times 10^{-159}$, and $3 \times 3$ Sylvester positivity.

891 lines
gaussianTransform_reflect reflectedPair_add_reflect_real norm_reflectedPair_le_tailEnvelope tail_shells_tsum_le_tailBoundB tailBoundB_100_le sylvester_3x3_hermitian_pos_def certified_gaussian_3x3_from_finite_and_tail

Proves exact rational polygon winding, box-cover winding invariance, IVT critical-line completeness, all 29 exact 192-bit zero intervals (58/58 endpoints), and the 3D Gaussian bridge.

1,090 lines
polyWinding arg_div_four_point_of_rectBox winding_eq_polyWinding_of_box_cover finite_critical_line_completeness zero29_width_lt certified_29_zeros_up_to_100 certified_3D_gaussian_from_29_zeros_and_tail
Chapter IV

§8 Frontier Tracks · Gap 1 Closed, Gap 2 Wall & Gap 3 Weil Equivalence (Modules 13–15)

3 files · 4,848 lines

§8 Gap 1 Closed: Bounds cross-window imbalance via Cauchy–Schwarz ($F_{\mathrm{unbal}}$), proves global-balance Theorem 2 across all $2r - 2$ cross-window directions, and certifies unbalanced 3-window proofs.

1,516 lines
F_unbal lemma2_interwindow_bound_unbalanced compMatrixChainUnbal theorem2_fixed_centers_global_balance theorem2_globally_balanced_subspace certified_three_window_L_one_hundredth_unbalanced certified_three_window_L_one_twentieth_unbalanced exists_globally_balanced_not_locally_balanced_positive

§8 Gap 2 Sharp Wall: Proves the exact overlapping cutoff $L^2$ defect, $t \to 0^+$ singular obstruction, uniform-in-$N$ small-gap breakdown, and $L > \log 2$ prime-entry failure.

1,546 lines
Q_form_cutoff_reconstruction normSq_cutoff_overlap_defect B_form_overlapping_singular_obstruction explicit_overlapping_cutoff_defect chainContrib_le_of_pos compMatrixChain_fails_small_gap_uniform single_window_diagonal_fails_large_L m_chain_log_two_neg

§8 Gap 3 (Option A): Proves classical bidirectional Weil equivalence ($\mathrm{RH} \iff Q \ge 0$) on arbitrary multiplicity-weighted zero spectra via Mellin transform & shifted Gaussian wave packets.

1,786 lines
mellinTransform_isBalanced_iff ZeroSpectrum.of_HSW weil_positivity_of_RH_TestFn shiftedGaussianTransform_zero_one summable_shiftedGaussian_re exists_negative_shiftedGaussian_of_not_RH weil_equivalence_gaussian_spectrum weil_equivalence_with_explicit_formula

HONEST RESEARCH STATUS · F04 SECTION 8

What Lean 4 certifies here—and what remains open.

Computer verification guarantees every logical step inside the stated theorems; it never stretches their assumptions. Both sides of the boundary are laid out plainly below.

Proved & Lean 4 Kernel-Checked (522 Decls)

Separated global balance, 7-window $LDL^\top$, 29 zeros & Weil $\iff$

  • Gap 1 closed on separated narrow windows: GlobalBalanceWindows.lean eliminates per-window balance via Cauchy–Schwarz ($F_{\mathrm{unbal}}$), proving positivity across all $2r - 2$ cross-window directions—including 3-window certificates at $L = 1/100$ ($\varepsilon = 1$) and $L = 1/20, N = 64$ ($\varepsilon = 1/6$).
  • 7-window / 21-edge Schur $LDL^\top$ & $m_{64}(1/20) > 1.175$: Kernel-checked inside SchurLDLAndSevenWindows.lean with all 7 rational pivots strictly positive ($\varepsilon = 1/100$) where naive row dominance fails.
  • 29 exact 192-bit zero pairs & $B(100) \le 1.48 \times 10^{-159}$: Box-cover winding, IVT completeness, 58/58 rational endpoints, multiplicity-weighted tail shield, and 3D Sylvester bridge proved in Lean (raw FLINT pointwise evaluations enter as explicit theorem hypotheses).
  • Gap 2 exact walls & Gap 3 bidirectional Weil equivalence: Exact $d \to 0^+$ uniform-in-$N$ breakdown, $L > \log 2$ prime-entry failure, and $\mathrm{RH} \iff Q \ge 0$ for arbitrary zero multiplicities on shifted Gaussian wave packets (with Weil’s explicit formula taken as hypothesis).
Still Open · Clay Millennium Frontier

Unrestricted overlapping/wide positivity & general RH

  • Overlapping smooth cutoffs & wide windows remain open: OverlappingCutoffBoundary.lean explicitly proves why separated-window comparison breaks down uniformly in $N$ as gap $d \to 0^+$ (non-integrable $t \to 0^+$ singularity) and fails above single-window width $L = \log 2$ (prime $p = 2$ enters negatively).
  • Schwartz wave packets vs. compact $C_c^\infty$ & explicit formula: Direction 2 of WeilEquivalence.lean uses globally balanced Schwartz-class shifted Gaussian transforms and takes Weil’s explicit formula as an explicit hypothesis rather than deriving it from the analytic continuation of $\zeta(s)$.
  • Unrestricted Riemann Hypothesis remains open: Neither the finite-height $T = 100$ zero certification nor the separated-window global-balance theorems establish unrestricted Weil positivity across all scales or prove RH at unbounded height.

EXACT EQUATIONS & LOCAL REPRODUCTION

Inspect all F04 & Gaps 1–3 equations or replay the Lean 4 audit.

For Mathematicians & Lean Users F04 Equations (1)–(14), Gap 1–3 Formulas & 15-Module Kernel Audit Commands
Show equations & commands ▾

EQUATIONS (1)–(3) · BALANCE & WEIL FORMS

Test space, balance moments & explicit functional

\int_{\mathbb{R}} \varphi(u)\,e^{-u/2}\,du = 0, \qquad \int_{\mathbb{R}} \varphi(u)\,e^{u/2}\,du = 0.
Q(\varphi) = -A\|\varphi\|_2^2 + \int_0^\infty w(t)\bigl(\|\varphi\|_2^2 - \operatorname{Re}C_\varphi(t)\bigr)\,dt - 2\sum_{n\ge 2}\frac{\Lambda(n)}{\sqrt{n}}\operatorname{Re}C_\varphi(\log n).
w(t) = \frac{e^{t/2}}{\sinh t} = 2e^{-t/2} + \frac{2e^{-5t/2}}{1 - e^{-2t}}, \qquad A = \log(8\pi) + \gamma_E + \frac{\pi}{2} \approx 5.372183.

The Connes–Consani normalization identity $\log(4\pi) + \gamma_E + \int_0^\infty \frac{e^{t/2}-1}{\sinh t}\,dt = A$ is proved directly in connes_consani_normalization.

FINITE-CHAIN, GAP 1 GLOBAL BALANCE, GAP 2 WALL & GAP 3 EQUIVALENCE

Diagonal floor $m_N(L)$, unbalanced $E^{\mathrm{unbal}}_{ij}$ & shifted Gaussian witness

m_N(L) = B(L) - A + \sum_{n=2}^N \!\left(1 - \cos\frac{\pi}{n+1}\right)\!\bigl(B(L/n) - B(L/(n-1))\bigr) \le m(L) + e^{L/2}\frac{\pi^2}{9}.
E^{\mathrm{unbal}}_{ij} = R_{ij} + P_{ij} + e^{-d_{ij}/2}\sqrt{(1 - e^{-L_i})(1 - e^{-L_j})}, \qquad Q\!\left(\sum_{i=1}^r c_i \varphi_i\right) \ge z^T M_N^{\mathrm{unbal}} z.
G_{\sigma,t,\tau,\theta}(s) = \bigl(e^{\tau(s - 1/2 - it)} + e^{i\theta}e^{-\tau(s - 1/2 - it)}\bigr)\,G_{\sigma,t}(s), \qquad \mathrm{RH}(Z) \iff \forall \sigma>0,\,t,\tau,\theta,\; Q_G(G_{\sigma,t,\tau,\theta}) \ge 0.

REPRODUCE THE LEAN 4 KERNEL AUDIT LOCALLY

Exact verification commands (f04-riemann-lean)

# 1. Recompile all 15 modules + root directly through Lean 4.35.0 (-DautoImplicit=false)
sh scripts/check.sh \
  F04Riemann.AnalyticFoundations \
  F04Riemann.Arithmetic \
  F04Riemann.TestFunctions \
  F04Riemann.WeilForm \
  F04Riemann.WindowBounds \
  F04Riemann.ComparisonAndPositivity \
  F04Riemann.CodimensionAndCutoff \
  F04Riemann.WorkedExamples \
  F04Riemann.FiniteChainBounds \
  F04Riemann.SchurLDLAndSevenWindows \
  F04Riemann.GaussianZeroForm \
  F04Riemann.CauchyWindingCages \
  F04Riemann.GlobalBalanceWindows \
  F04Riemann.OverlappingCutoffBoundary \
  F04Riemann.WeilEquivalence \
  F04Riemann

# 2. Run the transitive #print axioms & forbidden-token audit (522 declarations)
python3 scripts/audit_axioms.py
# Expected output:
# Status: PASS | Audited declarations: 522 across 15 modules