Skip to content

samlavery/Robespierre

Repository files navigation

RequestProject: Offline Detector RH Proof

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.


Main entrypoint

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.PrimeHarmonicAmplitude

Its job is to make the comparison point precise:

the cosh detector and the Weil prime side observe the same zero-pair amplitude channel.


Primary theorem: offline detection + no cancellation

Inside:

namespace ZD
namespace WeilPositivity
namespace Contour
namespace CoshReflectedClassifier

the 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.

1. Bridge

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.

2. Detection

If ρ.re ≠ 1 / 2, then at every prime,

1 < coshDetector ρ.re (log p)

An off-line zero is visible at every prime.

3. No cancellation

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.


Prime-side amplitude-defect bridge

OfflineDetectorProof.lean also contains the prime-side amplitude bridge under:

namespace ZD
namespace WeilPositivity
namespace PrimeBoundedness

The summary theorem is:

theorem weil_prime_amplitudeDefect_bridge_summary : ...

It bundles:

  1. per-prime amplitude bridge;
  2. sinh-squared / amplitude-defect identity;
  3. FE-pair symmetry of the amplitude envelope;
  4. closed-form Weil prime aggregate at σ = 2;
  5. per-n Weil positivity;
  6. 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_summary

This is the bridge from the detector world to the explicit-formula prime side.


Endpoint / forcing boundary

The endpoint namespace is:

namespace ZD
namespace WeilPositivity
namespace OfflineDetectorEndpoint

The 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.


Forcing theory: why the RH proof works

The proof is a forcing argument.

Step 1: off-line zeros force positive prime excess

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.

Step 2: the excess has a sign

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.

Step 3: the Weil prime side sees the same channel

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.

Step 4: the Weil β-family imposes global vanishing constraints

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.

Step 5: beta-totality turns global β-vanishing into signal vanishing

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.

Step 6: countable moment uniqueness makes it per-zero

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.

Step 7: per-zero vanishing contradicts positive off-line defect

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_rh

upgrades this to Mathlib’s RiemannHypothesis.


Why this is not just detector positivity

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.


RH proof stack

Zero definitions

ZetaZeroDefs.lean

Defines:

ZD.NontrivialZeros
ZD.OffLineZeros
ZD.OnLineZeros

and the amplitude/cosh detector vocabulary.

Detector and amplitude side

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

Weil identity side

WeilContour.lean
WeilRightEdgePrimeSum.lean
WeilCoshPairPositivity.lean
WeilFinalAssembly.lean
WeilExplicitFormulaFromPerC.lean
ExplicitFormulaBridgeOfRH.lean

This layer supplies the pair-cosh Gaussian explicit formula / global β-family identity.

Orthogonality and vanishing extraction

WeilZeroOrthogonality.lean
PairTestMellinBetaTotalality.lean
CountableTsumMomentUniqueness.lean

This layer upgrades aggregate identities to per-zero vanishing.

Mathlib RH bridge

RiemannHypothesisBridge.lean

This upgrades the internal critical-line statement to Mathlib’s literal:

RiemannHypothesis

Remaining formalization work

The 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 / tsum exchange;
  • absolute convergence;
  • cosh-transform analyticity;
  • Riemann–Lebesgue;
  • Fourier cosine injectivity;
  • beta-resolvent moment extraction;
  • countable tsum moment 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.


Helix files

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.”


RHHelixFaithfulness.lean

This file proves basic faithfulness of the 3D log helix.

Main definitions

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.2

What it proves

1. Injectivity

helix3D_injective_on_nat
helixLog_injective_pos
helix3D_injective_pos
helixAngle_injective_nat
helixAngle_injective_pos

The helix map is injective on positive naturals / positive reals because the z coordinate is log x, and log is injective on positive reals.

2. Radial projection recovers the number

radial_projection_of_helix3D
helix_radial_projection_recovers_angle

The radial projection

(cos θ, sin θ, log x) ↦ exp(log x)

recovers x, and therefore recovers the angle θ(x) = (π/3) log x.

3. Multiplication becomes addition of helix angles

helixAngle_mul

For positive a,b:

θ(ab) = θ(a) + θ(b)

because:

log(ab) = log a + log b

4. Full faithfulness theorem

faithfulness_theorem

Bundles:

helix3D injective on ℕ⁺
radial projection recovers n
angle recovery from radial projection
angle injectivity on ℕ⁺

5. Critical-line symmetry

critical_line_symmetry

Proves:

s.re = 1/2 ↔ s = 1 - conj(s)

So the critical line is the fixed locus of the standard functional-equation reflection.


HelixMap.lean

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

Main definitions

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 : ℂ))

What it proves

1. Multiplication becomes addition

helix_multiplication_additive
helix_power_scalar

For 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.

2. Factorization becomes vector decomposition

log_factorization_sum
helix_factorization_vector_sum

For 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.

3. Prime-basis uniqueness

prime_factorization_unique
prime_helix_positions_independent
int_linear_combination_log_primes_eq_zero

These 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.

4. Prime angle distinctness

prime_angles_distinct

Distinct 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.

5. Critical-line symmetry

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.

What HelixMap.lean contributes

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

Agent instructions

When working on this repo:

  1. Start with OfflineDetectorProof.lean.
  2. Treat RHHelixFaithfulness.lean and HelixMap.lean as geometric support / explanation files, not as the RH proof root.
  3. Do not substitute HelixModel.lean for HelixMap.lean in the README.
  4. 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.
  5. Do not collapse global Weil identity into per-zero vanishing.
  6. Do not replace the forcing argument with informal “detector sees off-line zeros” language.
  7. Keep #print axioms clean.
  8. No project axioms. No hidden RH assumptions.

One-sentence summary

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.

About

Proof of No Cancellation Conspiracy for Offline Zeros in Lean4

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors