OfflineDetectorProof.lean is the main entrypoint for the RH proof architecture in RequestProject.
The project proves and assembles a forcing pipeline:
off-line zero
⇒ positive cosh/even-channel prime excess
⇒ no finite-prime cancellation
⇒ the same amplitude channel is visible in the Weil prime side
⇒ global β-family Weil identities force zero-side vanishing
⇒ beta-totality + countable uniqueness upgrade aggregate vanishing to per-zero vanishing
⇒ positive off-line defect contradicts per-zero zero
⇒ no off-line zeros
⇒ RiemannHypothesis
The helix files are supporting geometry files, not the RH proof entrypoint. They prove the π/3 log-helix model, its faithfulness, its multiplication-to-addition law, its prime-factor vector decomposition, and its connection to critical-line symmetry.
RequestProject/OfflineDetectorProof.lean
This file imports and orchestrates the detector side, Weil side, orthogonality side, final assembly, Klein forcing, and prime-harmonic amplitude bridge.
Important imports include:
import RequestProject.HarmonicDiagnostics
import RequestProject.ZetaZeroDefs
import RequestProject.OfflineAmplitudeMethods
import RequestProject.PairCoshGaussTest
import RequestProject.GaussianDetectorPair
import RequestProject.WeilContour
import RequestProject.WeilRightEdgePrimeSum
import RequestProject.WeilCoshPairPositivity
import RequestProject.WeilFinalAssembly
import RequestProject.WeilExplicitFormulaFromPerC
import RequestProject.ExplicitFormulaBridgeOfRH
import RequestProject.WeilZeroOrthogonality
import RequestProject.GaussianClosedForm
import RequestProject.KleinForcerTheorem
import RequestProject.PrimeHarmonicAmplitudeIts job is to make the comparison point precise:
the cosh detector and the Weil prime side observe the same zero-pair amplitude channel.
Inside:
namespace ZD
namespace WeilPositivity
namespace Contour
namespace CoshReflectedClassifierthe main theorem is:
theorem offline_detected_no_cancellation :
∀ ρ : ℂ, ρ ∈ ZD.NontrivialZeros →
(∀ p : ℕ, Nat.Prime p →
(↑p : ℝ) ^ ρ.re + (↑p : ℝ) ^ (1 - ρ.re) =
balancedEnvelope (↑p) *
coshDetector ρ.re (Real.log (↑p))) ∧
(ρ.re ≠ 1/2 →
(∀ p : ℕ, Nat.Prime p →
1 < coshDetector ρ.re (Real.log (↑p))) ∧
(∀ ps : Finset ℕ, (∀ p ∈ ps, Nat.Prime p) → ps.Nonempty →
0 < ∑ p ∈ ps,
(coshDetector ρ.re (Real.log (↑p)) - 1)))It packages three facts.
For every nontrivial zero ρ and every prime p,
p^ρ.re + p^(1 - ρ.re)
=
balancedEnvelope p · coshDetector ρ.re (log p)
So the cosh detector is not measuring a synthetic quantity. It is measuring the same zero-pair amplitude envelope that enters the prime side.
If ρ.re ≠ 1 / 2, then at every prime,
1 < coshDetector ρ.re (log p)
An off-line zero is visible at every prime.
If ρ.re ≠ 1 / 2, then over any nonempty finite prime set,
0 < ∑ p ∈ ps, (coshDetector ρ.re (log p) - 1)
The off-line contribution lies in a positive cone. It is not an alternating phase artifact that can cancel away on finite prime blocks.
OfflineDetectorProof.lean also contains the prime-side amplitude bridge under:
namespace ZD
namespace WeilPositivity
namespace PrimeBoundednessThe summary theorem is:
theorem weil_prime_amplitudeDefect_bridge_summary : ...It bundles:
- per-prime amplitude bridge;
- sinh-squared / amplitude-defect identity;
- FE-pair symmetry of the amplitude envelope;
- closed-form Weil prime aggregate at
σ = 2; - per-
nWeil positivity; - off-line aggregate amplitude-defect injection.
Representative theorem names:
amplitudeDefect_eq_balanced_mul_coshExcess
amplitudeDefect_prime_eq_balanced_mul_coshExcess
four_sinh_sq_eq_rpow_sq
rpow_sq_mul_eq_amplitudeDefect_sq_scale
four_p_sinh_sq_eq_amplitudeDefect_sq_scale
amplitudeDefect_symm
amplitudeDefect_pos_of_offline_zero_at_prime
sum_amplitudeDefect_pos_of_offline_zero
weil_prime_aggregate_closed_form_at_two
weil_prime_per_n_nonneg
pair_cosh_gauss_test_at_log_amplitudeDefect_form
weil_prime_amplitudeDefect_bridge_summaryThis is the bridge from the detector world to the explicit-formula prime side.
The endpoint namespace is:
namespace ZD
namespace WeilPositivity
namespace OfflineDetectorEndpointThe key local target is:
def WeilPrimeSideLink_target_local : Prop := ...It keeps the uncancelled prime-side equation visible:
S = S - M(1) + Sres
instead of immediately collapsing to:
Sres = M(1)
This matters because the proof wants to use the prime side as the shared observation channel. If the prime sum is cancelled too early, the proof loses the place where positive off-line amplitude excess is visible.
The proof is a forcing argument.
If ρ.re ≠ 1 / 2, the detector theorem gives:
coshDetector ρ.re (log p) > 1
at every prime.
Equivalently, the zero-pair amplitude exceeds the balanced critical-line envelope.
The finite-prime no-cancellation theorem gives:
0 < ∑ p ∈ ps, (coshDetector ρ.re (log p) - 1)
for every nonempty finite prime set.
So off-line excess is not hidden by oscillation. The even channel is positive.
The amplitude bridge proves that the prime-side pair-cosh Gaussian terms carry the same β-dependent amplitude defect.
So the off-line signal is present in the same aggregate structure controlled by the Weil explicit formula.
The Weil identity side supplies a family of identities indexed by:
β ∈ (0,1)
schematically:
∀ β ∈ (0,1),
∑' ρ, a(ρ) · pairTestMellin β ρ = 0
A single identity is not enough. The full β-family is what gives enough test directions.
PairTestMellinBetaTotality upgrades:
all β-projections vanish
to:
ZeroMellinSeries a t = 0 for every t > 0
This is a transform-totality statement for the pair-cosh Gaussian test family.
CountableTsumMomentUniqueness upgrades the vanishing Mellin/exponential signal to coefficient-level vanishing:
a(ρ) = 0
for every nontrivial zero.
This is the countable tsum analogue of Vandermonde / moment uniqueness.
For the RH detector application, coefficient vanishing is the per-zero vanishing of the Gaussian/cosh defect contribution:
gaussianPairDefect ρ.re = 0
But the detector side proves:
ρ.re ≠ 1 / 2 ⇒ gaussianPairDefect ρ.re > 0
Contradiction.
Therefore:
ρ.re = 1 / 2
for every nontrivial zero.
Then:
RHBridge.no_offline_zeros_implies_rhupgrades this to Mathlib’s RiemannHypothesis.
Detector positivity alone says:
if an off-line zero exists, it is visible.
The forcing theory says more:
it is visible in the same prime amplitude channel constrained by the Weil identity,
and the β-family is total enough to prevent aggregate cancellation.
That is the proof mechanism.
ZetaZeroDefs.lean
Defines:
ZD.NontrivialZeros
ZD.OffLineZeros
ZD.OnLineZerosand the amplitude/cosh detector vocabulary.
OfflineAmplitudeMethods.lean
HarmonicDiagnostics.lean
PrimeHarmonicAmplitude.lean
GaussianDetectorPair.lean
PairCoshGaussTest.lean
GaussianClosedForm.lean
KleinForcerTheorem.lean
This layer proves:
off-line ⇒ positive detector excess
off-line ⇒ positive finite-prime excess
gaussianPairDefect β = 0 ⇒ β = 1/2
two-kernel/Klein forcing ⇒ β = 1/2
WeilContour.lean
WeilRightEdgePrimeSum.lean
WeilCoshPairPositivity.lean
WeilFinalAssembly.lean
WeilExplicitFormulaFromPerC.lean
ExplicitFormulaBridgeOfRH.lean
This layer supplies the pair-cosh Gaussian explicit formula / global β-family identity.
WeilZeroOrthogonality.lean
PairTestMellinBetaTotalality.lean
CountableTsumMomentUniqueness.lean
This layer upgrades aggregate identities to per-zero vanishing.
RiemannHypothesisBridge.lean
This upgrades the internal critical-line statement to Mathlib’s literal:
RiemannHypothesisThe remaining work is not to invent a new RH idea.
The remaining work is to finish exact Lean versions of standard analysis tools in the shape this proof needs.
Main grind files:
PairTestMellinBetaTotalality.lean
CountableTsumMomentUniqueness.lean
Expected grind:
- Fubini /
tsumexchange; - absolute convergence;
- cosh-transform analyticity;
- Riemann–Lebesgue;
- Fourier cosine injectivity;
- beta-resolvent moment extraction;
- countable
tsummoment uniqueness; - layer peeling / coefficient isolation.
These are serious formalization tasks because Mathlib does not expose the exact combined statements needed here. They are not new breakthrough mathematics.
The helix files should be read as geometric support files, not as the main RH proof entrypoint.
They prove the π/3 logarithmic coordinate system, its faithfulness, and the prime-factor geometry behind the statement “multiplication becomes addition.”
This file proves basic faithfulness of the 3D log helix.
def helixOmega : ℝ := π / 3
def helixAngle (x : ℝ) : ℝ :=
helixOmega * Real.log x
def helix3D (x : ℝ) : ℝ × ℝ × ℝ :=
(Real.cos (helixOmega * Real.log x),
Real.sin (helixOmega * Real.log x),
Real.log x)
def radialProjection (v : ℝ × ℝ × ℝ) : ℝ :=
Real.exp v.2.2helix3D_injective_on_nat
helixLog_injective_pos
helix3D_injective_pos
helixAngle_injective_nat
helixAngle_injective_posThe helix map is injective on positive naturals / positive reals because the z coordinate is log x, and log is injective on positive reals.
radial_projection_of_helix3D
helix_radial_projection_recovers_angleThe radial projection
(cos θ, sin θ, log x) ↦ exp(log x)
recovers x, and therefore recovers the angle θ(x) = (π/3) log x.
helixAngle_mulFor positive a,b:
θ(ab) = θ(a) + θ(b)
because:
log(ab) = log a + log b
faithfulness_theoremBundles:
helix3D injective on ℕ⁺
radial projection recovers n
angle recovery from radial projection
angle injectivity on ℕ⁺
critical_line_symmetryProves:
s.re = 1/2 ↔ s = 1 - conj(s)
So the critical line is the fixed locus of the standard functional-equation reflection.
This file formalizes the π/3 coordinate system and the log-helix map.
It is the file that proves the number-theoretic helix map facts:
multiplication becomes addition
factorization becomes vector decomposition
prime logarithms form an independent basis
critical line is the helix symmetry axis
prime angular positions are distinct / controlled
def helixAngularFreq : ℝ := π / 3
def helixLog (x : ℝ) : ℝ × ℝ :=
(Real.log x, helixAngularFreq * Real.log x)
def helixMapC (x : ℝ) : ℂ :=
(Real.log x : ℂ) *
Complex.exp (Complex.I * (helixAngularFreq : ℂ) * (Real.log x : ℂ))helix_multiplication_additive
helix_power_scalarFor positive a,b:
helixLog (a*b) = helixLog a + helixLog b
and powers become scalar multiples:
helixLog (a^n) = n • helixLog a
This is the formal log-helix statement that multiplication is addition in the helix coordinate system.
log_factorization_sum
helix_factorization_vector_sumFor a positive natural number n, the helix position of n decomposes as the weighted sum of the helix positions of its prime factors:
helixLog n =
∑ p ∈ n.factorization.support,
n.factorization p • helixLog p
This is the Fundamental Theorem of Arithmetic rewritten as a helix-vector identity.
prime_factorization_unique
prime_helix_positions_independent
int_linear_combination_log_primes_eq_zeroThese prove that prime helix positions are independent in the relevant sense:
if two finite prime-exponent combinations have the same log/helix sum,
then the prime exponents are equal.
This is the prime-basis statement.
prime_angles_distinctDistinct primes have distinct unwrapped helix angles:
(π/3) log p ≠ (π/3) log q
for distinct primes p ≠ q.
The file also develops real modular equivalence and Niven/Hermite-style irrationality tools for stronger angle-modulo statements.
The file records the helix interpretation of the critical line as the symmetry axis:
Re(s) = 1/2
as the fixed line of the functional-equation reflection.
HelixMap.lean proves the arithmetic geometry of the π/3 helix:
log turns multiplication into addition
prime factorization becomes vector addition
prime coordinates are unique
the helix angle is tied to π/3
the critical line is the symmetry axis
This supports the project’s geometric interpretation of the prime side, but the RH forcing proof remains centered in:
OfflineDetectorProof.lean
When working on this repo:
- Start with
OfflineDetectorProof.lean. - Treat
RHHelixFaithfulness.leanandHelixMap.leanas geometric support / explanation files, not as the RH proof root. - Do not substitute
HelixModel.leanforHelixMap.leanin the README. - Preserve the forcing pipeline:
- off-line detection,
- no cancellation,
- prime-side amplitude bridge,
- global Weil identity,
- beta-totality,
- countable uniqueness,
- per-zero vanishing,
- RH bridge.
- Do not collapse global Weil identity into per-zero vanishing.
- Do not replace the forcing argument with informal “detector sees off-line zeros” language.
- Keep
#print axiomsclean. - No project axioms. No hidden RH assumptions.
OfflineDetectorProof.lean is the RH proof orchestration file: it packages the unconditional off-line detector/no-cancellation theorem, ties the detector to the Weil prime-side amplitude channel, and sets up the forcing route from global β-family identities to per-zero vanishing; RHHelixFaithfulness.lean and HelixMap.lean separately prove the faithful π/3 log-helix geometry, including multiplication-as-addition and prime-factor vector decomposition.