# Main theorem statements, plus the explicit formula for Dirichlet L-functions: its Lean files in plain English

Written by AI from the Lean source at commit 40e56bab; each sentence checked against the code by a second pass.

Alpöge original · Cluster k0677 (https://riemannhypothesissolved.com/cluster/k0677-main-theorem-statements-plus-the-explicit-formula-for/) · 65 Lean files, by distance from Main.lean · data: https://riemannhypothesissolved.com/api/file-lines/k0677.json

## Contents

- Main:
  - [Main](https://riemannhypothesissolved.com/cluster/k0677-main-theorem-statements-plus-the-explicit-formula-for/lean/#Main)
- 1 import step from Main:
  - [Statements](https://riemannhypothesissolved.com/cluster/k0677-main-theorem-statements-plus-the-explicit-formula-for/lean/#Statements)
- 7 import steps from Main:
  - [Development.AbelianVarietyTheory.Proofs.GlobalInterpolation.NegSumLogDerivNonneg](https://riemannhypothesissolved.com/cluster/k0677-main-theorem-statements-plus-the-explicit-formula-for/lean/#Development.AbelianVarietyTheory.Proofs.GlobalInterpolation.NegSumLogDerivNonneg)
- 8 import steps from Main:
  - [Formalism.StatementOC](https://riemannhypothesissolved.com/cluster/k0677-main-theorem-statements-plus-the-explicit-formula-for/lean/#Formalism.StatementOC)
- 9 import steps from Main:
  - [Formalism.Statement](https://riemannhypothesissolved.com/cluster/k0677-main-theorem-statements-plus-the-explicit-formula-for/lean/#Formalism.Statement)
- 10 import steps from Main:
  - [Formalism.PeriodIntegrals.ExplicitFormulaCounts.ExplicitFormula](https://riemannhypothesissolved.com/cluster/k0677-main-theorem-statements-plus-the-explicit-formula-for/lean/#Formalism.PeriodIntegrals.ExplicitFormulaCounts.ExplicitFormula)
- 11 import steps from Main:
  - [Formalism.LandauZeroFreeBounds.ExceptionalZeroBounds.LandauLocal3](https://riemannhypothesissolved.com/cluster/k0677-main-theorem-statements-plus-the-explicit-formula-for/lean/#Formalism.LandauZeroFreeBounds.ExceptionalZeroBounds.LandauLocal3)
  - [Formalism.LandauZeroFreeBounds.ExceptionalZeroBounds.Positivity](https://riemannhypothesissolved.com/cluster/k0677-main-theorem-statements-plus-the-explicit-formula-for/lean/#Formalism.LandauZeroFreeBounds.ExceptionalZeroBounds.Positivity)
  - [Formalism.LandauZeroFreeBounds.ExceptionalZeroBounds.TrivReal](https://riemannhypothesissolved.com/cluster/k0677-main-theorem-statements-plus-the-explicit-formula-for/lean/#Formalism.LandauZeroFreeBounds.ExceptionalZeroBounds.TrivReal)
  - [Formalism.PeriodIntegrals.ExplicitFormula](https://riemannhypothesissolved.com/cluster/k0677-main-theorem-statements-plus-the-explicit-formula-for/lean/#Formalism.PeriodIntegrals.ExplicitFormula)
  - [Formalism.PeriodIntegrals.ExplicitFormulaCounts.AnalyticInputs](https://riemannhypothesissolved.com/cluster/k0677-main-theorem-statements-plus-the-explicit-formula-for/lean/#Formalism.PeriodIntegrals.ExplicitFormulaCounts.AnalyticInputs)
  - [Formalism.PeriodIntegrals.OrbitalBoundsConclusion.ExplicitFormula](https://riemannhypothesissolved.com/cluster/k0677-main-theorem-statements-plus-the-explicit-formula-for/lean/#Formalism.PeriodIntegrals.OrbitalBoundsConclusion.ExplicitFormula)
  - [Formalism.PeriodIntegrals.OrbitalBoundsConclusion.ZerosWindow](https://riemannhypothesissolved.com/cluster/k0677-main-theorem-statements-plus-the-explicit-formula-for/lean/#Formalism.PeriodIntegrals.OrbitalBoundsConclusion.ZerosWindow)
  - [Formalism.ZeroFreeRegion.Statement](https://riemannhypothesissolved.com/cluster/k0677-main-theorem-statements-plus-the-explicit-formula-for/lean/#Formalism.ZeroFreeRegion.Statement)
- 12 import steps from Main:
  - [Formalism.LandauZeroFreeBounds.NoZeroComplexOf](https://riemannhypothesissolved.com/cluster/k0677-main-theorem-statements-plus-the-explicit-formula-for/lean/#Formalism.LandauZeroFreeBounds.NoZeroComplexOf)
  - [Formalism.PeriodIntegrals.UnitaryGroupMassFormula.ExplicitFormula.LocalLemmaOfHelpers](https://riemannhypothesissolved.com/cluster/k0677-main-theorem-statements-plus-the-explicit-formula-for/lean/#Formalism.PeriodIntegrals.UnitaryGroupMassFormula.ExplicitFormula.LocalLemmaOfHelpers)
  - [Formalism.PeriodIntegrals.UnitaryGroupMassFormula.ZeroWindow.Assemble](https://riemannhypothesissolved.com/cluster/k0677-main-theorem-statements-plus-the-explicit-formula-for/lean/#Formalism.PeriodIntegrals.UnitaryGroupMassFormula.ZeroWindow.Assemble)
  - [Formalism.PeriodIntegrals.UnitaryGroupMassFormula.ZeroWindow.Transfer](https://riemannhypothesissolved.com/cluster/k0677-main-theorem-statements-plus-the-explicit-formula-for/lean/#Formalism.PeriodIntegrals.UnitaryGroupMassFormula.ZeroWindow.Transfer)
  - [Formalism.PeriodIntegrals.ZerosWindow](https://riemannhypothesissolved.com/cluster/k0677-main-theorem-statements-plus-the-explicit-formula-for/lean/#Formalism.PeriodIntegrals.ZerosWindow)
  - [Formalism.PeriodIntegrals.ZerosWindowIn](https://riemannhypothesissolved.com/cluster/k0677-main-theorem-statements-plus-the-explicit-formula-for/lean/#Formalism.PeriodIntegrals.ZerosWindowIn)
- 13 import steps from Main:
  - [Formalism.LFunctionBounds.PositivityBound](https://riemannhypothesissolved.com/cluster/k0677-main-theorem-statements-plus-the-explicit-formula-for/lean/#Formalism.LFunctionBounds.PositivityBound)
  - [Formalism.LandauZeroFreeBounds.SameCharacterLFunctionOne](https://riemannhypothesissolved.com/cluster/k0677-main-theorem-statements-plus-the-explicit-formula-for/lean/#Formalism.LandauZeroFreeBounds.SameCharacterLFunctionOne)
  - [Formalism.PeriodIntegrals.UnitaryGroupMassFormula.ExplicitFormula.Assemble](https://riemannhypothesissolved.com/cluster/k0677-main-theorem-statements-plus-the-explicit-formula-for/lean/#Formalism.PeriodIntegrals.UnitaryGroupMassFormula.ExplicitFormula.Assemble)
  - [Formalism.PeriodIntegrals.UnitaryGroupMassFormula.ExplicitFormula.LGrowthFinal](https://riemannhypothesissolved.com/cluster/k0677-main-theorem-statements-plus-the-explicit-formula-for/lean/#Formalism.PeriodIntegrals.UnitaryGroupMassFormula.ExplicitFormula.LGrowthFinal)
  - [Formalism.PeriodIntegrals.UnitaryGroupMassFormula.ExplicitFormula.LocalProofs](https://riemannhypothesissolved.com/cluster/k0677-main-theorem-statements-plus-the-explicit-formula-for/lean/#Formalism.PeriodIntegrals.UnitaryGroupMassFormula.ExplicitFormula.LocalProofs)
  - [Formalism.PeriodIntegrals.UnitaryGroupMassFormula.ExplicitFormula.LogWindowLe](https://riemannhypothesissolved.com/cluster/k0677-main-theorem-statements-plus-the-explicit-formula-for/lean/#Formalism.PeriodIntegrals.UnitaryGroupMassFormula.ExplicitFormula.LogWindowLe)
  - [Formalism.PeriodIntegrals.UnitaryGroupMassFormula.ExplicitFormula.PerronGlue](https://riemannhypothesissolved.com/cluster/k0677-main-theorem-statements-plus-the-explicit-formula-for/lean/#Formalism.PeriodIntegrals.UnitaryGroupMassFormula.ExplicitFormula.PerronGlue)
  - [Formalism.PeriodIntegrals.UnitaryGroupMassFormula.ZeroWindow.FinsumMemLeFinsumMem](https://riemannhypothesissolved.com/cluster/k0677-main-theorem-statements-plus-the-explicit-formula-for/lean/#Formalism.PeriodIntegrals.UnitaryGroupMassFormula.ZeroWindow.FinsumMemLeFinsumMem)
  - [Formalism.PeriodIntegrals.UnitaryGroupMassFormula.ZeroWindow.Jensen](https://riemannhypothesissolved.com/cluster/k0677-main-theorem-statements-plus-the-explicit-formula-for/lean/#Formalism.PeriodIntegrals.UnitaryGroupMassFormula.ZeroWindow.Jensen)
  - [Formalism.PeriodIntegrals.UnitaryGroupMassFormula.ZeroWindow.RightHalfWith](https://riemannhypothesissolved.com/cluster/k0677-main-theorem-statements-plus-the-explicit-formula-for/lean/#Formalism.PeriodIntegrals.UnitaryGroupMassFormula.ZeroWindow.RightHalfWith)
  - [Formalism.PeriodIntegrals.UnitaryGroupMassFormula.ZeroWindow.RightOne](https://riemannhypothesissolved.com/cluster/k0677-main-theorem-statements-plus-the-explicit-formula-for/lean/#Formalism.PeriodIntegrals.UnitaryGroupMassFormula.ZeroWindow.RightOne)
- 14 import steps from Main:
  - [Formalism.LFunctionBounds.Statement](https://riemannhypothesissolved.com/cluster/k0677-main-theorem-statements-plus-the-explicit-formula-for/lean/#Formalism.LFunctionBounds.Statement)
  - [Formalism.PeriodIntegrals.UnitaryGroupMassFormula.ExplicitFormula.ContinuousInvSqrt](https://riemannhypothesissolved.com/cluster/k0677-main-theorem-statements-plus-the-explicit-formula-for/lean/#Formalism.PeriodIntegrals.UnitaryGroupMassFormula.ExplicitFormula.ContinuousInvSqrt)
  - [Formalism.PeriodIntegrals.UnitaryGroupMassFormula.ExplicitFormula.Contour](https://riemannhypothesissolved.com/cluster/k0677-main-theorem-statements-plus-the-explicit-formula-for/lean/#Formalism.PeriodIntegrals.UnitaryGroupMassFormula.ExplicitFormula.Contour)
  - [Formalism.PeriodIntegrals.UnitaryGroupMassFormula.ExplicitFormula.ExplicitFormulaFromGluing](https://riemannhypothesissolved.com/cluster/k0677-main-theorem-statements-plus-the-explicit-formula-for/lean/#Formalism.PeriodIntegrals.UnitaryGroupMassFormula.ExplicitFormula.ExplicitFormulaFromGluing)
  - [Formalism.PeriodIntegrals.UnitaryGroupMassFormula.ExplicitFormula.GoodHeight](https://riemannhypothesissolved.com/cluster/k0677-main-theorem-statements-plus-the-explicit-formula-for/lean/#Formalism.PeriodIntegrals.UnitaryGroupMassFormula.ExplicitFormula.GoodHeight)
  - [Formalism.PeriodIntegrals.UnitaryGroupMassFormula.ExplicitFormula.GoodHeightExists](https://riemannhypothesissolved.com/cluster/k0677-main-theorem-statements-plus-the-explicit-formula-for/lean/#Formalism.PeriodIntegrals.UnitaryGroupMassFormula.ExplicitFormula.GoodHeightExists)
  - [Formalism.PeriodIntegrals.UnitaryGroupMassFormula.ExplicitFormula.LGrowthMain](https://riemannhypothesissolved.com/cluster/k0677-main-theorem-statements-plus-the-explicit-formula-for/lean/#Formalism.PeriodIntegrals.UnitaryGroupMassFormula.ExplicitFormula.LGrowthMain)
  - [Formalism.PeriodIntegrals.UnitaryGroupMassFormula.ExplicitFormula.LGrowthZeta](https://riemannhypothesissolved.com/cluster/k0677-main-theorem-statements-plus-the-explicit-formula-for/lean/#Formalism.PeriodIntegrals.UnitaryGroupMassFormula.ExplicitFormula.LGrowthZeta)
  - [Formalism.PeriodIntegrals.UnitaryGroupMassFormula.ExplicitFormula.LStructC](https://riemannhypothesissolved.com/cluster/k0677-main-theorem-statements-plus-the-explicit-formula-for/lean/#Formalism.PeriodIntegrals.UnitaryGroupMassFormula.ExplicitFormula.LStructC)
  - [Formalism.PeriodIntegrals.UnitaryGroupMassFormula.ExplicitFormula.LocalAbstract](https://riemannhypothesissolved.com/cluster/k0677-main-theorem-statements-plus-the-explicit-formula-for/lean/#Formalism.PeriodIntegrals.UnitaryGroupMassFormula.ExplicitFormula.LocalAbstract)
  - [Formalism.PeriodIntegrals.UnitaryGroupMassFormula.ExplicitFormula.LogDerivBounds](https://riemannhypothesissolved.com/cluster/k0677-main-theorem-statements-plus-the-explicit-formula-for/lean/#Formalism.PeriodIntegrals.UnitaryGroupMassFormula.ExplicitFormula.LogDerivBounds)
  - [Formalism.PeriodIntegrals.UnitaryGroupMassFormula.ExplicitFormula.NormSubCtrSq](https://riemannhypothesissolved.com/cluster/k0677-main-theorem-statements-plus-the-explicit-formula-for/lean/#Formalism.PeriodIntegrals.UnitaryGroupMassFormula.ExplicitFormula.NormSubCtrSq)
  - [Formalism.PeriodIntegrals.UnitaryGroupMassFormula.ExplicitFormula.PerronKernelB](https://riemannhypothesissolved.com/cluster/k0677-main-theorem-statements-plus-the-explicit-formula-for/lean/#Formalism.PeriodIntegrals.UnitaryGroupMassFormula.ExplicitFormula.PerronKernelB)
  - [Formalism.PeriodIntegrals.UnitaryGroupMassFormula.ExplicitFormula.PerronLOf](https://riemannhypothesissolved.com/cluster/k0677-main-theorem-statements-plus-the-explicit-formula-for/lean/#Formalism.PeriodIntegrals.UnitaryGroupMassFormula.ExplicitFormula.PerronLOf)
  - [Formalism.PeriodIntegrals.UnitaryGroupMassFormula.ExplicitFormula.PerronSumBound](https://riemannhypothesissolved.com/cluster/k0677-main-theorem-statements-plus-the-explicit-formula-for/lean/#Formalism.PeriodIntegrals.UnitaryGroupMassFormula.ExplicitFormula.PerronSumBound)
  - [Formalism.PeriodIntegrals.UnitaryGroupMassFormula.ExplicitFormula.PerronTruncOf](https://riemannhypothesissolved.com/cluster/k0677-main-theorem-statements-plus-the-explicit-formula-for/lean/#Formalism.PeriodIntegrals.UnitaryGroupMassFormula.ExplicitFormula.PerronTruncOf)
  - [Formalism.PeriodIntegrals.UnitaryGroupMassFormula.ExplicitFormula.RectProofs](https://riemannhypothesissolved.com/cluster/k0677-main-theorem-statements-plus-the-explicit-formula-for/lean/#Formalism.PeriodIntegrals.UnitaryGroupMassFormula.ExplicitFormula.RectProofs)
  - [Formalism.PeriodIntegrals.UnitaryGroupMassFormula.ExplicitFormula.RegZero](https://riemannhypothesissolved.com/cluster/k0677-main-theorem-statements-plus-the-explicit-formula-for/lean/#Formalism.PeriodIntegrals.UnitaryGroupMassFormula.ExplicitFormula.RegZero)
  - [Formalism.PeriodIntegrals.UnitaryGroupMassFormula.ExplicitFormula.ShiftBoundOf](https://riemannhypothesissolved.com/cluster/k0677-main-theorem-statements-plus-the-explicit-formula-for/lean/#Formalism.PeriodIntegrals.UnitaryGroupMassFormula.ExplicitFormula.ShiftBoundOf)
  - [Formalism.PeriodIntegrals.UnitaryGroupMassFormula.ZeroWindow.RightChi](https://riemannhypothesissolved.com/cluster/k0677-main-theorem-statements-plus-the-explicit-formula-for/lean/#Formalism.PeriodIntegrals.UnitaryGroupMassFormula.ZeroWindow.RightChi)
- 15 import steps from Main:
  - [Formalism.GL3MeanSquares.GenusMeanAsymptotics.JacobiCharacterSums.PNTExplLF](https://riemannhypothesissolved.com/cluster/k0677-main-theorem-statements-plus-the-explicit-formula-for/lean/#Formalism.GL3MeanSquares.GenusMeanAsymptotics.JacobiCharacterSums.PNTExplLF)
  - [Formalism.PeriodIntegrals.UnitaryGroupMassFormula.ExplicitFormula.HalfLeNormLentCtr](https://riemannhypothesissolved.com/cluster/k0677-main-theorem-statements-plus-the-explicit-formula-for/lean/#Formalism.PeriodIntegrals.UnitaryGroupMassFormula.ExplicitFormula.HalfLeNormLentCtr)
  - [Formalism.PeriodIntegrals.UnitaryGroupMassFormula.ExplicitFormula.LGrowthDefs](https://riemannhypothesissolved.com/cluster/k0677-main-theorem-statements-plus-the-explicit-formula-for/lean/#Formalism.PeriodIntegrals.UnitaryGroupMassFormula.ExplicitFormula.LGrowthDefs)
  - [Formalism.PeriodIntegrals.UnitaryGroupMassFormula.ExplicitFormula.LStructA](https://riemannhypothesissolved.com/cluster/k0677-main-theorem-statements-plus-the-explicit-formula-for/lean/#Formalism.PeriodIntegrals.UnitaryGroupMassFormula.ExplicitFormula.LStructA)
  - [Formalism.PeriodIntegrals.UnitaryGroupMassFormula.ExplicitFormula.LStructB](https://riemannhypothesissolved.com/cluster/k0677-main-theorem-statements-plus-the-explicit-formula-for/lean/#Formalism.PeriodIntegrals.UnitaryGroupMassFormula.ExplicitFormula.LStructB)
  - [Formalism.PeriodIntegrals.UnitaryGroupMassFormula.ExplicitFormula.LogDerivBoundOfZeroFree](https://riemannhypothesissolved.com/cluster/k0677-main-theorem-statements-plus-the-explicit-formula-for/lean/#Formalism.PeriodIntegrals.UnitaryGroupMassFormula.ExplicitFormula.LogDerivBoundOfZeroFree)
  - [Formalism.PeriodIntegrals.UnitaryGroupMassFormula.ExplicitFormula.NormLogDerivReflLe](https://riemannhypothesissolved.com/cluster/k0677-main-theorem-statements-plus-the-explicit-formula-for/lean/#Formalism.PeriodIntegrals.UnitaryGroupMassFormula.ExplicitFormula.NormLogDerivReflLe)
  - [Formalism.PeriodIntegrals.UnitaryGroupMassFormula.ExplicitFormula.PerronKernelA](https://riemannhypothesissolved.com/cluster/k0677-main-theorem-statements-plus-the-explicit-formula-for/lean/#Formalism.PeriodIntegrals.UnitaryGroupMassFormula.ExplicitFormula.PerronKernelA)
  - [Formalism.PeriodIntegrals.UnitaryGroupMassFormula.ExplicitFormula.PerronSum](https://riemannhypothesissolved.com/cluster/k0677-main-theorem-statements-plus-the-explicit-formula-for/lean/#Formalism.PeriodIntegrals.UnitaryGroupMassFormula.ExplicitFormula.PerronSum)
  - [Formalism.PeriodIntegrals.UnitaryGroupMassFormula.ExplicitFormula.RectIntEqZeroOfDifferentiableOn](https://riemannhypothesissolved.com/cluster/k0677-main-theorem-statements-plus-the-explicit-formula-for/lean/#Formalism.PeriodIntegrals.UnitaryGroupMassFormula.ExplicitFormula.RectIntEqZeroOfDifferentiableOn)
  - [Formalism.StatementFL](https://riemannhypothesissolved.com/cluster/k0677-main-theorem-statements-plus-the-explicit-formula-for/lean/#Formalism.StatementFL)
- 16 import steps from Main:
  - [Formalism.PeriodIntegrals.UnitaryGroupMassFormula.ExplicitFormula.RectInv](https://riemannhypothesissolved.com/cluster/k0677-main-theorem-statements-plus-the-explicit-formula-for/lean/#Formalism.PeriodIntegrals.UnitaryGroupMassFormula.ExplicitFormula.RectInv)
  - [Formalism.ZetaNonvanishingChebyshevWeights](https://riemannhypothesissolved.com/cluster/k0677-main-theorem-statements-plus-the-explicit-formula-for/lean/#Formalism.ZetaNonvanishingChebyshevWeights)
- 17 import steps from Main:
  - [Formalism.ZetaNonvanishingGeneralWeights](https://riemannhypothesissolved.com/cluster/k0677-main-theorem-statements-plus-the-explicit-formula-for/lean/#Formalism.ZetaNonvanishingGeneralWeights)

## The files

### Main

★ Main · 12 lines · Checked against the code · [Open in the Lean viewer](https://riemannhypothesissolved.com/file/Main)

**Collects the Riemann hypothesis and four zero-location and nonvanishing statements for the Riemann zeta function and Dirichlet L-functions.**

The five theorems are wrappers around imported proofs. The two zeta formulations share a proof, and the critical-strip theorem for all Dirichlet characters is extracted from an imported conjunction.

Key declarations:

- `riemannHypothesis`: Every nontrivial zero of the Riemann zeta function has real part 1/2.

  ```lean
  theorem riemannHypothesis : RiemannHypothesis := …
  ```
- `riemannZeta_eq_zero_re`: Every zero of the Riemann zeta function other than 1 and the negative even integers has real part 1/2.

  ```lean
  theorem riemannZeta_eq_zero_re : RiemannZetaZerosOnLine := …
  ```
- `LFunction_ne_zero_of_half_lt_re`: For every Dirichlet character of positive modulus, its L-function is nonzero at every point with real part greater than 1/2, with the pair consisting of the principal character and the point 1 excluded.

  ```lean
  theorem LFunction_ne_zero_of_half_lt_re : DirichletLNonvanishingRightOfHalf := …
  ```
- `LFunction_eq_zero_re`: For every Dirichlet character of positive modulus, each zero of its L-function in the open strip 0 < Re(s) < 1 has real part 1/2.

  ```lean
  theorem LFunction_eq_zero_re : DirichletLZerosOnLine := …
  ```
- `LFunction_eq_zero_re_of_isPrimitive`: For every primitive Dirichlet character of positive modulus, each zero of its L-function in the open strip 0 < Re(s) < 1 has real part 1/2.

  ```lean
  theorem LFunction_eq_zero_re_of_isPrimitive : PrimitiveDirichletLZerosOnLine := …
  ```

Blueprint: [GRH for primitive characters](https://github.com/chrisflav/riemann-blueprint/blob/137d97602647e450901981a7decfb86ab3024a48/blueprint/main-theorems/thm-critical-line-primitive.md) (Merten's blueprint) · [GRH, critical-strip form](https://github.com/chrisflav/riemann-blueprint/blob/137d97602647e450901981a7decfb86ab3024a48/blueprint/main-theorems/thm-critical-line.md) (Merten's blueprint) · [GRH, half-plane form](https://github.com/chrisflav/riemann-blueprint/blob/137d97602647e450901981a7decfb86ab3024a48/blueprint/main-theorems/thm-half-plane.md) (Merten's blueprint) · [The Riemann Hypothesis](https://github.com/chrisflav/riemann-blueprint/blob/137d97602647e450901981a7decfb86ab3024a48/blueprint/main-theorems/thm-riemann-hypothesis.md) (Merten's blueprint) · [Mathlib RH](https://github.com/nasqret/riemann-rev/blob/6ccea03b21e96b70356c07afb85a88d581b61e86/data/model.json#L1297) (Naskręcki's atlas) · [Zeta in expanded form](https://github.com/nasqret/riemann-rev/blob/6ccea03b21e96b70356c07afb85a88d581b61e86/data/model.json#L1322) (Naskręcki's atlas) · [Nonvanishing right of one half](https://github.com/nasqret/riemann-rev/blob/6ccea03b21e96b70356c07afb85a88d581b61e86/data/model.json#L1347) (Naskręcki's atlas) · [Dirichlet GRH in the open strip](https://github.com/nasqret/riemann-rev/blob/6ccea03b21e96b70356c07afb85a88d581b61e86/data/model.json#L1372) (Naskręcki's atlas) · [Primitive critical-strip zeros](https://github.com/nasqret/riemann-rev/blob/6ccea03b21e96b70356c07afb85a88d581b61e86/data/model.json#L1397) (Naskręcki's atlas)

### Statements

1 import step from Main · 16 lines · Checked against the code · [Open in the Lean viewer](https://riemannhypothesissolved.com/file/Statements)

**Defines four propositions about the zeros of the Riemann zeta function and Dirichlet L-functions.**

The zeta proposition formulates the Riemann hypothesis with explicit exclusions for the negative even integers and the point 1. The Dirichlet propositions state nonvanishing to the right of the critical line, with one exceptional pair, and give critical-strip zero-location statements for all characters and for primitive characters. Main uses these four propositions as theorem statements.

Key declarations:

- `RiemannZetaZerosOnLine`: Every zero of the Riemann zeta function outside the negative even integers and the point 1 has real part 1/2.

  ```lean
  def RiemannZetaZerosOnLine : Prop :=
    ∀ s : ℂ, riemannZeta s = 0 → (¬∃ n : ℕ, s = -2 * ((n : ℂ) + 1)) → s ≠ 1 → s.re = 1 / 2
  ```
- `DirichletLNonvanishingRightOfHalf`: For every Dirichlet character of positive modulus, its L-function is nonzero at each point with real part greater than 1/2, with the pair consisting of the principal character and the point 1 excluded.

  ```lean
  def DirichletLNonvanishingRightOfHalf : Prop :=
    ∀ (N : ℕ) [NeZero N] (χ : DirichletCharacter ℂ N) (s : ℂ),
      1 / 2 < s.re → (χ ≠ 1 ∨ s ≠ 1) → DirichletCharacter.LFunction χ s ≠ 0
  ```
- `DirichletLZerosOnLine`: For every Dirichlet character of positive modulus, each zero of its L-function in the open strip 0 < Re(s) < 1 has real part 1/2.

  ```lean
  def DirichletLZerosOnLine : Prop :=
    ∀ (N : ℕ) [NeZero N] (χ : DirichletCharacter ℂ N) (s : ℂ),
      0 < s.re → s.re < 1 → DirichletCharacter.LFunction χ s = 0 → s.re = 1 / 2
  ```
- `PrimitiveDirichletLZerosOnLine`: For every primitive Dirichlet character of positive modulus, each zero of its L-function in the open strip 0 < Re(s) < 1 has real part 1/2.

  ```lean
  def PrimitiveDirichletLZerosOnLine : Prop :=
    ∀ (N : ℕ) [NeZero N] (χ : DirichletCharacter ℂ N), χ.IsPrimitive →
      ∀ s : ℂ, 0 < s.re → s.re < 1 → DirichletCharacter.LFunction χ s = 0 → s.re = 1 / 2
  ```

Blueprint: [Non-vanishing right of the critical line](https://github.com/chrisflav/riemann-blueprint/blob/137d97602647e450901981a7decfb86ab3024a48/blueprint/main-theorems/def-nonvanishing-half-plane.md) (Merten's blueprint) · [The Riemann Hypothesis](https://github.com/chrisflav/riemann-blueprint/blob/137d97602647e450901981a7decfb86ab3024a48/blueprint/main-theorems/def-riemann-hypothesis.md) (Merten's blueprint) · [Zeros in the critical strip lie on the line](https://github.com/chrisflav/riemann-blueprint/blob/137d97602647e450901981a7decfb86ab3024a48/blueprint/main-theorems/def-zeros-on-line.md) (Merten's blueprint) · [Zeta target type](https://github.com/nasqret/riemann-rev/blob/6ccea03b21e96b70356c07afb85a88d581b61e86/data/model.json#L1422) (Naskręcki's atlas) · [Half-plane target type](https://github.com/nasqret/riemann-rev/blob/6ccea03b21e96b70356c07afb85a88d581b61e86/data/model.json#L1446) (Naskręcki's atlas) · [Dirichlet strip target type](https://github.com/nasqret/riemann-rev/blob/6ccea03b21e96b70356c07afb85a88d581b61e86/data/model.json#L1470) (Naskręcki's atlas) · [Primitive strip target type](https://github.com/nasqret/riemann-rev/blob/6ccea03b21e96b70356c07afb85a88d581b61e86/data/model.json#L1494) (Naskręcki's atlas)

### Development.AbelianVarietyTheory.Proofs.GlobalInterpolation.NegSumLogDerivNonneg

7 import steps from Main · 54 lines · Checked against the code · [Open in the Lean viewer](https://riemannhypothesissolved.com/file/Development.AbelianVarietyTheory.Proofs.GlobalInterpolation.NegSumLogDerivNonneg)

**Proves that for real Dirichlet characters χ and ψ of one modulus, the sum of Re(L′/L) for 1, χ, ψ and χψ is nonpositive at real σ > 1.**

For any Dirichlet character χ and real σ > 1, the Dirichlet series with terms Re(χ(n))Λ(n)/n^σ sums to −Re(L′(σ, χ)/L(σ, χ)), where Λ is the von Mangoldt function. When χ² = ψ² = 1, the four character values sum to a nonnegative number on units by checking the signs of χ and ψ, and they vanish on nonunits. Adding the four series thus gives nonnegative terms because the von Mangoldt weights are nonnegative. OrderNeTop uses the inequality to show that for a fixed modulus there is at most one pair of a nonprincipal real character and a real zero in the stated region, and any such zero is simple. LFunctionConjEqZero uses χ = ψ in its zero-free region proof.

Key declarations:

- `GlobalTheory.TwoRealCharacters.hasSum_re_neg_logDeriv`: For a Dirichlet character χ modulo q ≥ 1 and real σ > 1, the series over positive integers n with terms Re(χ(n))Λ(n)/n^σ converges to −Re(L′(σ, χ)/L(σ, χ)).

  ```lean
  theorem hasSum_re_neg_logDeriv (q : ℕ) [NeZero q] (χ : DirichletCharacter ℂ q) (σ : ℝ)
      (hσ : 1 < σ) :
      HasSum (fun n : ℕ => (χ n).re * (vonMangoldt n / (n : ℝ) ^ σ))
        (-(deriv (LFunction χ) σ / LFunction χ σ).re) := …
  ```
- `GlobalTheory.TwoRealCharacters.re_sum_nonneg`: For Dirichlet characters χ and ψ modulo q satisfying χ² = ψ² = 1, the sum of the real parts of the principal character, χ, ψ, and χψ is nonnegative at every residue class modulo q.

  ```lean
  theorem re_sum_nonneg (q : ℕ) (χ ψ : DirichletCharacter ℂ q) (hχ : χ ^ 2 = 1) (hψ : ψ ^ 2 = 1)
      (a : ZMod q) :
      0 ≤ ((1 : DirichletCharacter ℂ q) a).re + (χ a).re + (ψ a).re + ((χ * ψ) a).re := …
  ```
- `GlobalTheory.TwoRealCharacters.neg_sum_logDeriv_nonneg`: For q ≥ 1, real σ > 1, and Dirichlet characters χ and ψ modulo q satisfying χ² = ψ² = 1, the negative of the sum of the real parts of the logarithmic derivatives at σ for the principal character, χ, ψ, and χψ is nonnegative.

  ```lean
  theorem neg_sum_logDeriv_nonneg : ∀ (q : ℕ) [NeZero q] (χ ψ : DirichletCharacter ℂ q) (σ : ℝ), χ ^ 2 = 1 → ψ ^ 2 = 1 → 1 < σ → 0 ≤ -((deriv (LFunction (1 : DirichletCharacter ℂ q)) σ / LFunction (1 : DirichletCharacter ℂ q) σ).re + (deriv (LFunction χ) σ / LFunction χ σ).re + (deriv (LFunction ψ) σ / LFunction ψ σ).re + (deriv (LFunction (χ * ψ)) σ / LFunction (χ * ψ) σ).re) := …
  ```

### Formalism.StatementOC

8 import steps from Main · 73 lines · Checked against the code · [Open in the Lean viewer](https://riemannhypothesissolved.com/file/Formalism.StatementOC)

**Defines corrected von Mangoldt sums and states one-sided bound implications for analytic orders, nonvanishing and the Riemann hypothesis.**

Both sums weight the von Mangoldt function by x/n − 1 up to ⌊x⌋, with a factor Re χ(n) in the twist. The corrections add −x log x + (1 + γ)x and x Re(L′(1, χ)/L(1, χ)), respectively, with γ Euler’s constant. For nonprincipal real characters and 0 < θ < 1, bounds are imposed for all x ≥ 1, with nonnegative weights of positive total in the weighted case. Lower propositions conclude and upper ones assume nonvanishing on (θ, 1) for single or positively weighted characters, and both compare orders directly or by weighted mean for Re(s) > θ and s ≠ 1. Bounds −Cx^(1/2+ε) for each character and ε > 0 imply the Riemann hypothesis if some member’s L-function is nonzero at each s with Re(s) > 1/2.

Key declarations:

- `Formalism.OCStep`: A lower bound of −Cx^θ on the corrected untwisted sum minus the corrected twist for all x ≥ 1 implies that the character L-function is nonzero on (θ, 1) and that its analytic order equals that of ζ at every s with Re(s) > θ and s ≠ 1.

  ```lean
  def OCStep : Prop :=
    ∀ (N : ℕ) [NeZero N] (χ : DirichletCharacter ℂ N), χ ≠ 1 → (∀ n : ℕ, (χ n).im = 0) →
    ∀ θ : ℝ, 0 < θ → θ < 1 →
    (∃ C : ℝ, ∀ x : ℝ, 1 ≤ x → -C * x ^ θ ≤ Gz x - Gchi χ x) →
    (∀ σ : ℝ, θ < σ → σ < 1 → DirichletCharacter.LFunction χ σ ≠ 0) ∧
    ∀ s : ℂ, θ < s.re → s ≠ 1 →
      analyticOrderAt riemannZeta s = analyticOrderAt (DirichletCharacter.LFunction χ) s
  ```
- `Formalism.OCStepUpper`: An upper bound of Cx^θ on the same difference for all x ≥ 1, together with real nonvanishing on (θ, 1), implies equality of the analytic orders of ζ and the character L-function at every s with Re(s) > θ and s ≠ 1.

  ```lean
  def OCStepUpper : Prop :=
    ∀ (N : ℕ) [NeZero N] (χ : DirichletCharacter ℂ N), χ ≠ 1 → (∀ n : ℕ, (χ n).im = 0) →
    ∀ θ : ℝ, 0 < θ → θ < 1 →
    (∀ σ : ℝ, θ < σ → σ < 1 → DirichletCharacter.LFunction χ σ ≠ 0) →
    (∃ C : ℝ, ∀ x : ℝ, 1 ≤ x → Gz x - Gchi χ x ≤ C * x ^ θ) →
    ∀ s : ℂ, θ < s.re → s ≠ 1 →
      analyticOrderAt riemannZeta s = analyticOrderAt (DirichletCharacter.LFunction χ) s
  ```
- `Formalism.OCAvg`: A lower bound of −Cx^θ on a finite weighted sum of the differences for all x ≥ 1, with nonnegative weights of positive total, implies real nonvanishing on (θ, 1) for each positively weighted character and identifies the finite analytic order of ζ with the weighted mean of the finite analytic orders of the character L-functions at every s with Re(s) > θ and s ≠ 1.

  ```lean
  def OCAvg : Prop := …
  ```
- `Formalism.OCAvgUpper`: With nonnegative weights of positive total, an upper bound of Cx^θ on the finite weighted sum for all x ≥ 1, together with real nonvanishing on (θ, 1) for each positively weighted character, implies finiteness of all the analytic orders and the same weighted-mean identity at every s with Re(s) > θ and s ≠ 1.

  ```lean
  def OCAvgUpper : Prop := …
  ```
- `Formalism.RiemannHypothesisOfLowerBounds`: The Riemann hypothesis is the conclusion of an implication assuming that each corrected difference in a family of nonprincipal real-valued characters is bounded below by −Cx^(1/2+ε) for all x ≥ 1 for every ε > 0, and that at every s with Re(s) > 1/2 some member’s L-function is nonzero.

  ```lean
  def RiemannHypothesisOfLowerBounds : Prop :=
    ∀ (ι : Type) (N : ι → ℕ) [∀ i, NeZero (N i)] (χ : (i : ι) → DirichletCharacter ℂ (N i)),
    (∀ i, χ i ≠ 1) → (∀ i (n : ℕ), (χ i n).im = 0) →
    (∀ i, ∀ ε : ℝ, 0 < ε → ∃ C : ℝ, ∀ x : ℝ, 1 ≤ x →
        -C * x ^ ((1 : ℝ) / 2 + ε) ≤ Gz x - Gchi (χ i) x) →
    (∀ s : ℂ, 1 / 2 < s.re → ∃ i, DirichletCharacter.LFunction (χ i) s ≠ 0) →
    RiemannHypothesis
  ```

Blueprint: [The weighted Chebyshev function](https://github.com/chrisflav/riemann-blueprint/blob/137d97602647e450901981a7decfb86ab3024a48/blueprint/chap-zero-free/sec-zf-windows/def-chebyshev-weighted.md) (Merten's blueprint)

### Formalism.Statement

9 import steps from Main · 50 lines · Checked against the code · [Open in the Lean viewer](https://riemannhypothesissolved.com/file/Formalism.Statement)

**Defines a corrected von Mangoldt sum and implications from its lower bounds to half-plane nonvanishing and the Riemann hypothesis.**

G sums Λ(n)(1 + Re χ(n))(x/n − 1) for 1 ≤ n ≤ ⌊x⌋, subtracts x log x and adds x(1 + γ + Re(L′(1, χ)/L(1, χ))), where γ is Euler’s constant. The module defines complex-valued quadratic characters modulo 3, 4, and 7. For nonprincipal real-valued χ with L(σ, χ) ≠ 0 on (σ₀, 1), both Landau propositions state that lower bounds on G for x ≥ 1 imply nonvanishing of ζ(s) and L(s, χ) for Re(s) > σ₀. LandauStep uses exponent σ₀ with 0 < σ₀ < 1, and LandauStepEps uses σ₀ + ε for each ε > 0 with 0 ≤ σ₀ < 1. RHofG states that lower bounds on G at exponent 1/2 + ε for each ε > 0, with an ε-dependent constant, imply the Riemann hypothesis and nonvanishing of L(s, χ) for Re(s) > 1/2.

Key declarations:

- `Formalism.S`: S(χ, x) is the sum of Λ(n)(1 + Re χ(n))(x/n − 1) over 1 ≤ n ≤ ⌊x⌋.

  ```lean
  def S {N : ℕ} (χ : DirichletCharacter ℂ N) (x : ℝ) : ℝ :=
    ∑ n ∈ Finset.Icc 1 ⌊x⌋₊, LamF χ n * (x / n - 1)
  ```
- `Formalism.G`: G(χ, x) is S(χ, x) − x log x + (1 + γ + Re(L′(1, χ)/L(1, χ)))x, where γ is Euler’s constant.

  ```lean
  def G {N : ℕ} [NeZero N] (χ : DirichletCharacter ℂ N) (x : ℝ) : ℝ :=
    S χ x - x * Real.log x + (1 + gammaF χ) * x
  ```
- `Formalism.LandauStep`: For a nonprincipal real-valued χ and 0 < σ₀ < 1, nonvanishing of L(σ, χ) on (σ₀, 1) and a lower bound G(χ, x) ≥ −Cx^σ₀ for all x ≥ 1 imply that both ζ(s) and L(s, χ) are nonzero throughout Re(s) > σ₀.

  ```lean
  def LandauStep : Prop :=
    ∀ (N : ℕ) [NeZero N] (χ : DirichletCharacter ℂ N), χ ≠ 1 → (∀ n : ℕ, (χ n).im = 0) →
    ∀ σ₀ : ℝ, 0 < σ₀ → σ₀ < 1 →
    (∀ σ : ℝ, σ₀ < σ → σ < 1 → DirichletCharacter.LFunction χ σ ≠ 0) →
    (∃ C : ℝ, ∀ x : ℝ, 1 ≤ x → -C * x ^ σ₀ ≤ G χ x) →
    ∀ s : ℂ, σ₀ < s.re → riemannZeta s ≠ 0 ∧ DirichletCharacter.LFunction χ s ≠ 0
  ```
- `Formalism.LandauStepEps`: For a nonprincipal real-valued χ and 0 ≤ σ₀ < 1, the same real nonvanishing hypothesis and lower bounds G(χ, x) ≥ −Cε x^(σ₀+ε) for all x ≥ 1, with a constant Cε for each ε > 0, imply nonvanishing of both ζ(s) and L(s, χ) throughout Re(s) > σ₀.

  ```lean
  def LandauStepEps : Prop :=
    ∀ (N : ℕ) [NeZero N] (χ : DirichletCharacter ℂ N), χ ≠ 1 → (∀ n : ℕ, (χ n).im = 0) →
    ∀ σ₀ : ℝ, 0 ≤ σ₀ → σ₀ < 1 →
    (∀ σ : ℝ, σ₀ < σ → σ < 1 → DirichletCharacter.LFunction χ σ ≠ 0) →
    (∀ ε : ℝ, 0 < ε → ∃ C : ℝ, ∀ x : ℝ, 1 ≤ x → -C * x ^ (σ₀ + ε) ≤ G χ x) →
    ∀ s : ℂ, σ₀ < s.re → riemannZeta s ≠ 0 ∧ DirichletCharacter.LFunction χ s ≠ 0
  ```
- `Formalism.RHofG`: For a Dirichlet character χ of nonzero modulus, lower bounds G(χ, x) ≥ −Cε x^(1/2+ε) for all x ≥ 1, with a constant Cε for each ε > 0, imply the Riemann hypothesis and nonvanishing of L(s, χ) throughout Re(s) > 1/2.

  ```lean
  def RHofG {N : ℕ} [NeZero N] (χ : DirichletCharacter ℂ N) : Prop :=
    (∀ ε : ℝ, 0 < ε → ∃ C : ℝ, ∀ x : ℝ, 1 ≤ x → -C * x ^ ((1 : ℝ) / 2 + ε) ≤ G χ x) →
    RiemannHypothesis ∧ ∀ s : ℂ, 1 / 2 < s.re → DirichletCharacter.LFunction χ s ≠ 0
  ```

### Formalism.PeriodIntegrals.ExplicitFormulaCounts.ExplicitFormula

10 import steps from Main · 10 lines · Checked against the code · [Open in the Lean viewer](https://riemannhypothesissolved.com/file/Formalism.PeriodIntegrals.ExplicitFormulaCounts.ExplicitFormula)

**Establishes a zero-window count and a truncated explicit formula for primitive Dirichlet L-functions.**

The theorem zerosWindow_closed bounds the total multiplicity of zeros with 0 < Re ρ < 1 and |Im ρ − t| ≤ 1 by an absolute constant times log(N(|t| + 2)) for primitive characters of positive modulus N. The theorem explicitFormula_closed bounds the error for 2 ≤ T ≤ u when the twisted von Mangoldt sum through u, after subtracting u for the principal character, is compared with the negative multiplicity-weighted sum of u^ρ/ρ over zeros with 0 < Re ρ < 1 and |Im ρ| < T. Both results are assembled from imported analytic estimates; the explicit formula also uses the zero-window theorem. An importer uses these bounds to establish corresponding properties for families of characters.

Key declarations:

- `zerosWindow_closed`: Proves that the zeros in each such window form a finite set and satisfy the uniform logarithmic multiplicity bound.

  ```lean
  theorem zerosWindow_closed : PI.ZerosWindow := …
  ```
- `explicitFormula_closed`: Proves a uniform truncated explicit formula for primitive Dirichlet characters, including finiteness of the zeros in the truncation.

  ```lean
  theorem explicitFormula_closed : PI.ExplicitFormula := …
  ```

### Formalism.LandauZeroFreeBounds.ExceptionalZeroBounds.LandauLocal3

11 import steps from Main · 11 lines · Checked against the code · [Open in the Lean viewer](https://riemannhypothesissolved.com/file/Formalism.LandauZeroFreeBounds.ExceptionalZeroBounds.LandauLocal3)

**Packages the local zero expansion and logarithmic derivative bound as Landau’s local lemma.**

The sole theorem, `landau_local3`, applies the imported zero-expansion theorem directly. It is used to bound the logarithmic derivative of Dirichlet L-functions after accounting for exceptional zeros in the Siegel–Walfisz argument, and to bound it inside a zero-free box in the Jacobi character-sum argument.

Key declarations:

- `Formalism.ZeroFreeDirichlet.landau_local3`: For a complex-differentiable function on the closed disk of radius r > 0 about z₀ with f(z₀) ≠ 0 and |f| ≤ M|f(z₀)| for M ≥ 1, the zeros ρ in the concentric closed disk of radius r/3 form a finite set with positive integer weights mρ, equal to one at simple zeros and at least two where f′ vanishes, whose sum is at most log M/log 2 and for which f′(z)/f(z) differs from the sum of mρ/(z − ρ) by at most 72 log M/r at every nonzero point of f in the concentric closed disk of radius r/6.

  ```lean
  theorem landau_local3 : LandauLocal3 := …
  ```

### Formalism.LandauZeroFreeBounds.ExceptionalZeroBounds.Positivity

11 import steps from Main · 147 lines · Checked against the code · [Open in the Lean viewer](https://riemannhypothesissolved.com/file/Formalism.LandauZeroFreeBounds.ExceptionalZeroBounds.Positivity)

**Proves three nonnegativity inequalities for real parts of negative logarithmic derivatives of Dirichlet L-functions.**

For Re s > 1, the negative logarithmic derivative is the Dirichlet series with coefficients Λ(n)χ(n), so each inequality follows by summing nonnegative real combinations of its terms. The 3–4–1 proof treats n = 0 separately and for positive n with unit residue modulo q uses 3 + 4 Re w + Re(w²) = 2(1 + Re w)² with |w| = 1 and w = χ(n)n^(−it). The other two inequalities use the fact that a real character takes values ±1 on units, while all the characters in each combination vanish on nonunits. The Dirichlet zero-free region proof uses these inequalities for nonreal characters and to constrain exceptional zeros of real characters.

Key declarations:

- `Formalism.ZeroFreeDirichlet.negLogDeriv_eq_LSeries`: For Re s > 1, −L′(s,χ)/L(s,χ) equals the Dirichlet series with coefficients Λ(n)χ(n).

  ```lean
  lemma negLogDeriv_eq_LSeries {q : ℕ} [NeZero q] (χ : DirichletCharacter ℂ q) {s : ℂ}
      (hs : 1 < s.re) : negLD χ s = LSeries (↗χ * ↗Λ) s := …
  ```
- `Formalism.ZeroFreeDirichlet.term_three_four_one_nonneg`: For each index, the real parts of the von Mangoldt Dirichlet-series terms for the principal character at σ, χ at σ + it, and χ² at σ + 2it have a nonnegative weighted sum with weights 3, 4, and 1.

  ```lean
  lemma term_three_four_one_nonneg {q : ℕ} [NeZero q] (χ : DirichletCharacter ℂ q) (σ t : ℝ) (n : ℕ) :
      0 ≤ 3 * (term (↗(1 : DirichletCharacter ℂ q) * ↗Λ) (σ : ℂ) n).re
        + 4 * (term (↗χ * ↗Λ) ((σ : ℂ) + t * I) n).re
        + (term (↗(χ ^ 2) * ↗Λ) ((σ : ℂ) + ((2 * t : ℝ) : ℂ) * I) n).re := …
  ```
- `Formalism.ZeroFreeDirichlet.term_one_add_real_nonneg`: At a real argument, the real parts of the corresponding terms for the principal character and a real character have a nonnegative sum.

  ```lean
  lemma term_one_add_real_nonneg {q : ℕ} [NeZero q] (χ : DirichletCharacter ℂ q) (hχ : χ ^ 2 = 1)
      (σ : ℝ) (n : ℕ) :
      0 ≤ (term (↗(1 : DirichletCharacter ℂ q) * ↗Λ) (σ : ℂ) n).re
        + (term (↗χ * ↗Λ) (σ : ℂ) n).re := …
  ```
- `Formalism.ZeroFreeDirichlet.term_two_real_nonneg`: At a real argument, the real parts of the corresponding terms for the principal character, two real characters of the same modulus, and their product have a nonnegative sum.

  ```lean
  lemma term_two_real_nonneg {q : ℕ} [NeZero q] (χ₁ χ₂ : DirichletCharacter ℂ q)
      (h₁ : χ₁ ^ 2 = 1) (h₂ : χ₂ ^ 2 = 1) (σ : ℝ) (n : ℕ) :
      0 ≤ (term (↗(1 : DirichletCharacter ℂ q) * ↗Λ) (σ : ℂ) n).re
        + (term (↗χ₁ * ↗Λ) (σ : ℂ) n).re + (term (↗χ₂ * ↗Λ) (σ : ℂ) n).re
        + (term (↗(χ₁ * χ₂) * ↗Λ) (σ : ℂ) n).re := …
  ```
- `Formalism.ZeroFreeDirichlet.negLogDerivPositivity`: For σ > 1, the 3–4–1 combination and both real-character combinations of the real parts of the negative logarithmic derivatives are nonnegative.

  ```lean
  theorem negLogDerivPositivity : Positivity := …
  ```

### Formalism.LandauZeroFreeBounds.ExceptionalZeroBounds.TrivReal

11 import steps from Main · 81 lines · Checked against the code · [Open in the Lean viewer](https://riemannhypothesissolved.com/file/Formalism.LandauZeroFreeBounds.ExceptionalZeroBounds.TrivReal)

**Reduces principal-character zeros with Re(s) > 0 and s ≠ 1 to zeta zeros and proves conjugation symmetry for nonprincipal real characters.**

The principal-character L-function factors as the Riemann zeta function times a finite product of Euler factors, each nonzero for Re s > 0 because |p^(−s)| < 1. For real characters, termwise conjugation of the Dirichlet series gives the symmetry for Re s > 1, and the identity theorem extends it to the whole plane for nonprincipal characters. The Dirichlet zero-free region proof uses the zeta reduction for the principal character and conjugation symmetry to constrain real-character zeros at small height. The symmetry also gives real values on the real axis in the proof of positivity on a zero-free real ray.

Key declarations:

- `Formalism.ZeroFreeDirichlet.one_sub_prime_cpow_neg_ne_zero`: For every prime p and every s with Re s > 0, the Euler factor 1 − p^(−s) is nonzero.

  ```lean
  lemma one_sub_prime_cpow_neg_ne_zero (p : ℕ) (hp : p.Prime) {s : ℂ} (hs : 0 < s.re) :
      (1 : ℂ) - (p : ℂ) ^ (-s) ≠ 0 := …
  ```
- `Formalism.ZeroFreeDirichlet.trivialCharZerosOfZeta`: Every zero of a principal Dirichlet L-function with Re s > 0 and s ≠ 1 is a zero of the Riemann zeta function.

  ```lean
  theorem trivialCharZerosOfZeta : TrivZeros := …
  ```
- `Formalism.ZeroFreeDirichlet.conj_apply_of_sq_eq_one`: If χ² is the principal character, every value of χ is fixed by complex conjugation.

  ```lean
  lemma conj_apply_of_sq_eq_one {q : ℕ} (χ : DirichletCharacter ℂ q) (hχ : χ ^ 2 = 1) (a : ZMod q) :
      starRingEnd ℂ (χ a) = χ a := …
  ```
- `Formalism.ZeroFreeDirichlet.conj_LFunction_conj_of_sq_eq_one`: For a real Dirichlet character χ and Re s > 1, the value at the conjugate of s is the conjugate of L(s,χ).

  ```lean
  lemma conj_LFunction_conj_of_sq_eq_one {q : ℕ} [NeZero q] (χ : DirichletCharacter ℂ q) (hχ : χ ^ 2 = 1)
      (z : ℂ) (hz : 1 < z.re) :
      starRingEnd ℂ (DirichletCharacter.LFunction χ (starRingEnd ℂ z)) =
        DirichletCharacter.LFunction χ z := …
  ```
- `Formalism.ZeroFreeDirichlet.realCharConj`: For every nonprincipal real Dirichlet character χ, the value at the conjugate of s is the conjugate of L(s,χ) for all complex s.

  ```lean
  theorem realCharConj : RealConj := …
  ```

### Formalism.PeriodIntegrals.ExplicitFormula

11 import steps from Main · 28 lines · Checked against the code · [Open in the Lean viewer](https://riemannhypothesissolved.com/file/Formalism.PeriodIntegrals.ExplicitFormula)

**Defines a uniform truncated explicit formula for primitive Dirichlet L-functions.**

The formula pairs a character-twisted von Mangoldt sum, corrected by subtracting u for the principal character, with a multiplicity-weighted sum over zeros in the open critical strip with |Im ρ| < T. It requires this set of zeros to be finite and bounds the absolute value of the sum of these two terms for every primitive character and every 2 ≤ T ≤ u, using one positive constant independent of the modulus, character, u, and T. The proposition is the conclusion of explicitFormula_of in Formalism.PeriodIntegrals.OrbitalBoundsConclusion.ExplicitFormula.

Key declarations:

- `PI.psi0`: Sums Λ(n)χ(n) over positive integers n ≤ u and subtracts u when χ is the principal character.

  ```lean
  def psi0 {N : ℕ} (χ : DirichletCharacter ℂ N) (u : ℝ) : ℂ :=
    (∑ n ∈ Finset.Icc 1 ⌊u⌋₊, ((ArithmeticFunction.vonMangoldt n : ℝ) : ℂ) * χ (n : ZMod N)) -
      (if χ = 1 then (u : ℂ) else 0)
  ```
- `PI.ZerosBelow`: Selects the zeros ρ of L(s, χ) satisfying 0 < Re ρ < 1 and |Im ρ| < T.

  ```lean
  def ZerosBelow {N : ℕ} [NeZero N] (χ : DirichletCharacter ℂ N) (T : ℝ) : Set ℂ :=
    {ρ | 0 < ρ.re ∧ ρ.re < 1 ∧ |ρ.im| < T ∧ DirichletCharacter.LFunction χ ρ = 0}
  ```
- `PI.ExplicitFormulaWith`: For every primitive χ modulo N and 2 ≤ T ≤ u, asserts finiteness of the truncated zero set and bounds |psi0(χ, u) + Σρ m(ρ)u^ρ/ρ|, with ρ summed over that set, by C times [u log²(NuT)/T + log(Nu) + Σ m(ρ)/|ρ|], where m(ρ) is the order of the zero and the last sum runs over the same strip with |Im ρ| < 1.

  ```lean
  def ExplicitFormulaWith (C : ℝ) : Prop := …
  ```
- `PI.ExplicitFormula`: Asserts the existence of a positive constant C satisfying PI.ExplicitFormulaWith.

  ```lean
  def ExplicitFormula : Prop := ∃ C : ℝ, 0 < C ∧ ExplicitFormulaWith C
  ```

### Formalism.PeriodIntegrals.ExplicitFormulaCounts.AnalyticInputs

11 import steps from Main · 24 lines · Checked against the code · [Open in the Lean viewer](https://riemannhypothesissolved.com/file/Formalism.PeriodIntegrals.ExplicitFormulaCounts.AnalyticInputs)

**Collects disk factorization, holomorphic logarithms, and right-half-plane bounds for the Dirichlet explicit formula.**

Four declarations supply imported results on extracting zeros in a disk, constructing a normalized holomorphic logarithm, bounding the Riemann zeta function, and bounding the reciprocal absolute value of a Dirichlet L-function. The fifth bounds L(s, χ) for nonprincipal χ and Re s > 0 by truncating a character-sum estimate at the first Dirichlet-series term and applying the triangle inequality to 1 + (L(s, χ) − 1). The importing ExplicitFormula module uses the three right-half-plane bounds to obtain the zero-window estimate and combines that estimate with all five inputs to derive the explicit formula.

Key declarations:

- `chk_discFactor`: If f is holomorphic on a closed disk and nonzero at its center, factors f on that disk into the linear factors of its zeros in a strictly smaller concentric closed disk, each raised to a positive integer power, and a holomorphic factor that is nonvanishing on the smaller disk.

  ```lean
  theorem chk_discFactor : PI.DiscFactor := …
  ```
- `chk_discLog`: For a nonvanishing holomorphic f on an open disk centered at z₀, gives a holomorphic g with g(z₀) = 0, g′ = f′/f, and f = f(z₀) exp(g) on the disk.

  ```lean
  theorem chk_discLog : PI.DiscLog := …
  ```
- `chk_zetaBoundRight`: Bounds |ζ(s)| by 1 + 1/|s − 1| + |s|(1 + 1/Re s) for Re s > 0 and s ≠ 1.

  ```lean
  theorem chk_zetaBoundRight : PI.ZetaBoundRight := …
  ```
- `chk_lInvRight`: Bounds 1/|L(s, χ)| by (Re s)/(Re s − 1) for every Dirichlet character χ and Re s > 1.

  ```lean
  theorem chk_lInvRight : PI.LInvRight := …
  ```
- `chk_lBoundRight`: Bounds |L(s, χ)| by 1 + 2(q + 1)(1 + |s|/Re s) for every nonprincipal character χ modulo q and Re s > 0.

  ```lean
  theorem chk_lBoundRight : PI.LBoundRight := …
  ```

### Formalism.PeriodIntegrals.OrbitalBoundsConclusion.ExplicitFormula

11 import steps from Main · 10 lines · Checked against the code · [Open in the Lean viewer](https://riemannhypothesissolved.com/file/Formalism.PeriodIntegrals.OrbitalBoundsConclusion.ExplicitFormula)

**Derives a truncated explicit formula for primitive Dirichlet L-functions from zero-counting and analytic bounds.**

The theorem explicitFormula_of assumes a logarithmic zero-window count, disc factorization and logarithm properties, and right-half-plane bounds for Dirichlet L-functions, the Riemann zeta function, and reciprocal L-functions. For primitive characters and 2 ≤ T ≤ u, it bounds the norm of the sum of two terms, the twisted von Mangoldt sum through u (with u subtracted for the principal character) and the multiplicity-weighted sum of u^ρ/ρ over open critical-strip zeros with |Im ρ| < T. The proof directly invokes the imported explicit formula theorem; an importer supplies the hypotheses to obtain an unconditional instance of the stated formula.

Key declarations:

- `explicitFormula_of`: Proves the uniform truncated explicit formula for primitive Dirichlet characters from the six stated zero-counting and analytic hypotheses.

  ```lean
  theorem explicitFormula_of : PI.ZerosWindow → PI.DiscFactor → PI.DiscLog → PI.LBoundRight →
      PI.ZetaBoundRight → PI.LInvRight → PI.ExplicitFormula := …
  ```

### Formalism.PeriodIntegrals.OrbitalBoundsConclusion.ZerosWindow

11 import steps from Main · 8 lines · Checked against the code · [Open in the Lean viewer](https://riemannhypothesissolved.com/file/Formalism.PeriodIntegrals.OrbitalBoundsConclusion.ZerosWindow)

**Packages the conditional zero count for primitive Dirichlet L-functions as a single theorem.**

The wrapper theorem applies an imported assembly result with the functional-equation transfer of zeros to the inverse character at reflected points 1 − ρ. The importing ExplicitFormula module supplies the three analytic bounds and uses the resulting zero count to derive the truncated explicit formula.

Key declarations:

- `zerosWindow_of`: Assuming the right-half-plane bounds LBoundRight for nonprincipal Dirichlet L-functions, ZetaBoundRight for zeta away from its pole, and LInvRight for reciprocal L-function moduli, proves that for every primitive character modulo N and every real t the zeros with 0 < Re ρ < 1 and |Im ρ − t| ≤ 1 form a finite set whose total multiplicity is at most C log(N(|t| + 2)) for a single absolute constant C > 0.

  ```lean
  theorem zerosWindow_of : PI.LBoundRight → PI.ZetaBoundRight → PI.LInvRight → PI.ZerosWindow := …
  ```

### Formalism.ZeroFreeRegion.Statement

11 import steps from Main · 20 lines · Checked against the code · [Open in the Lean viewer](https://riemannhypothesissolved.com/file/Formalism.ZeroFreeRegion.Statement)

**Defines propositions for zeta’s logarithmic zero-free region, its pole-corrected log derivative bound and a smoothed prime number theorem.**

The first two propositions concern regions of the form Re(s) ≥ 1 − c/log(|Im(s)| + 2) with s ≠ 1, with a positive constant c in each proposition. The first asserts nonvanishing of ζ, and the second bounds the modulus of ζ′/ζ + 1/(s − 1) by a constant times log²(|Im(s)| + 2). The third bounds the absolute value of the corrected, smoothed von Mangoldt sum Gz(y) by a constant times y exp(−c√log y) for all y ≥ 2.

Key declarations:

- `Formalism.ZF.ZeroFreeRegion`: There exists c > 0 such that ζ(s) is nonzero whenever s ≠ 1 and Re(s) ≥ 1 − c/log(|Im(s)| + 2).

  ```lean
  def ZeroFreeRegion : Prop :=
    ∃ c : ℝ, 0 < c ∧ ∀ s : ℂ, s ≠ 1 → 1 - c / Real.log (|s.im| + 2) ≤ s.re → riemannZeta s ≠ 0
  ```
- `Formalism.ZF.LogDerivRegion`: There exist constants c > 0 and C such that |ζ′(s)/ζ(s) + 1/(s − 1)| ≤ C log²(|Im(s)| + 2) whenever s ≠ 1 and Re(s) ≥ 1 − c/log(|Im(s)| + 2).

  ```lean
  def LogDerivRegion : Prop :=
    ∃ c C : ℝ, 0 < c ∧ ∀ s : ℂ, s ≠ 1 → 1 - c / Real.log (|s.im| + 2) ≤ s.re →
      ‖deriv riemannZeta s / riemannZeta s + 1 / (s - 1)‖ ≤ C * Real.log (|s.im| + 2) ^ 2
  ```
- `Formalism.ZF.GzPNT`: There exist constants c > 0 and K such that |Gz(y)| ≤ K y exp(−c√log y) for every real y ≥ 2.

  ```lean
  def GzPNT : Prop :=
    ∃ c K : ℝ, 0 < c ∧ ∀ y : ℝ, 2 ≤ y →
      |Formalism.Gz y| ≤ K * y * Real.exp (-c * Real.sqrt (Real.log y))
  ```

### Formalism.LandauZeroFreeBounds.NoZeroComplexOf

12 import steps from Main · 107 lines · Checked against the code · [Open in the Lean viewer](https://riemannhypothesissolved.com/file/Formalism.LandauZeroFreeBounds.NoZeroComplexOf)

**Defines the analytic estimates and conditional steps for a Dirichlet L-function zero-free region with a possible exceptional real zero.**

The module defines a local logarithmic-derivative expansion by simple fractions over zeros with positive integer weights and explicit error. A conditional estimate uses the expansion with growth and reciprocal bounds to bound the real part of −L′/L for nonprincipal characters. The case implications also use a right-half-plane logarithmic-derivative bound and positivity, plus a principal-character logarithmic-derivative bound at large heights and conjugation symmetry at small heights. The final implication combines the cases with the zeta zero-free region and the reduction of principal-character zeros in Re s > 0, s ≠ 1, to zeta zeros.

Key declarations:

- `Formalism.ZeroFreeDirichlet.LandauLocal2`: For r > 0 and M ≥ 1, the proposition assumes f is holomorphic on the closed disk of radius r, nonzero at its center and bounded there by M times its central modulus, and asserts a logarithmic-derivative expansion at points with f(z) ≠ 0 in the closed disk of radius r/6 over zeros in the closed disk of radius r/3, with positive integer weights at least 2 at zeros where f′ vanishes, total weight at most log M/log 2, and error at most 72 log M/r.

  ```lean
  def LandauLocal2 : Prop := …
  ```
- `Formalism.ZeroFreeDirichlet.LocalZerosOf`: States that the local expansion, the growth bound for nonprincipal L-functions, and the reciprocal bound for \(\operatorname{Re}s>1\) imply the local logarithmic-derivative inequality for nonprincipal characters.

  ```lean
  def LocalZerosOf : Prop := LandauLocal2 → LGrowth → LInvBound → LocalZeros
  ```
- `Formalism.ZeroFreeDirichlet.NoZeroComplexOf`: States that the local zero inequality, the right-half-plane logarithmic-derivative bound, and positivity imply a uniform zero-free region for characters satisfying \(\chi^2\ne 1\).

  ```lean
  def NoZeroComplexOf : Prop := LocalZeros → LLogDerivRight → Positivity → NoZeroComplex
  ```
- `Formalism.ZeroFreeDirichlet.RealSmallTOf`: States that the local zero inequality, the right-half-plane logarithmic-derivative bound, positivity, and conjugation symmetry imply that each nonprincipal real character has at most one zero in the small-height portion of the region and that any such zero is real and simple.

  ```lean
  def RealSmallTOf : Prop := LocalZeros → LLogDerivRight → Positivity → RealConj → RealSmallT
  ```
- `Formalism.ZeroFreeDirichlet.ZFRDirichletOf`: States that the zeta zero-free region, the principal-character reduction, and the nonvanishing and exceptional-zero assertions for nonprincipal characters together imply the Dirichlet zero-free-region statement.

  ```lean
  def ZFRDirichletOf : Prop :=
    Formalism.ZF.ZeroFreeRegion → TrivZeros → NoZeroComplex → RealLargeT → RealSmallT → TwoReal → ZFRDirichlet
  ```

### Formalism.PeriodIntegrals.UnitaryGroupMassFormula.ExplicitFormula.LocalLemmaOfHelpers

12 import steps from Main · 25 lines · Checked against the code · [Open in the Lean viewer](https://riemannhypothesissolved.com/file/Formalism.PeriodIntegrals.UnitaryGroupMassFormula.ExplicitFormula.LocalLemmaOfHelpers)

**Proves a local logarithmic derivative estimate and assembles it into a truncated explicit formula for primitive Dirichlet characters.**

The local estimate combines a multiplicity-weighted zero count in unit windows, factorization and logarithms on discs, right-half-plane bounds for Dirichlet L-functions and the Riemann zeta function, a reciprocal bound for Dirichlet L-functions on Re(s) > 1, and the known location of their zeros. The explicit formula combines that estimate and the zero count with the Perron contour bounds to express the character-twisted von Mangoldt sum, corrected by the principal-character main term, in terms of zeros below the truncation height. The importing module uses this theorem directly as its conditional explicit formula.

Key declarations:

- `PI.EF.localLemma_of_helpers`: Under the six analytic hypotheses, a uniform positive constant C bounds the error in approximating L′/L for primitive characters modulo N ≥ 1 on −1/2 ≤ Re(s) ≤ 3, away from zeros and s = 1, by the sum of m(ρ)/(s − ρ) over critical-strip zeros with |Im(ρ) − Im(s)| ≤ 1, plus 1/s for even nonprincipal characters and minus 1/(s − 1) for the principal character, with error at most C log(N(|Im(s)| + 2)).

  ```lean
  theorem localLemma_of_helpers (hZW : PI.ZerosWindow) (hDF : PI.DiscFactor) (hDL : PI.DiscLog)
      (hLB : PI.LBoundRight) (hZB : PI.ZetaBoundRight) (hLI : PI.LInvRight) :
      ∃ C, 0 < C ∧ LocalLemma C := …
  ```
- `PI.EF.explicitFormula_main`: Under the same hypotheses, for every primitive character modulo N and 2 ≤ T ≤ u, the twisted von Mangoldt sum through u, minus u for the principal character, equals the negative sum of m(ρ)u^ρ/ρ over the finite set of critical-strip zeros with |Im(ρ)| < T, up to a uniform constant times the sum of u log²(NuT)/T, log(Nu), and the sum of m(ρ)/|ρ| over critical-strip zeros with |Im(ρ)| < 1.

  ```lean
  theorem explicitFormula_main (hZW : PI.ZerosWindow) (hDF : PI.DiscFactor) (hDL : PI.DiscLog)
      (hLB : PI.LBoundRight) (hZB : PI.ZetaBoundRight) (hLI : PI.LInvRight) : PI.ExplicitFormula := …
  ```

### Formalism.PeriodIntegrals.UnitaryGroupMassFormula.ZeroWindow.Assemble

12 import steps from Main · 35 lines · Checked against the code · [Open in the Lean viewer](https://riemannhypothesissolved.com/file/Formalism.PeriodIntegrals.UnitaryGroupMassFormula.ZeroWindow.Assemble)

**Proves logarithmic bounds on critical-strip zero counts for primitive Dirichlet L-functions via right-half-plane bounds and zero transfer.**

Jensen’s formula gives finite zero sets and logarithmic multiplicity bounds in the right half of the critical strip, separately for nonprincipal characters and for modulus one. The assembly takes the maximum of the two constants and 1, then doubles it to account for the left half of the strip, using the assumed transfer from a zero ρ of L(s, χ) to a zero 1 − ρ of L(s, χ⁻¹) of at least the same multiplicity. The direct importer supplies the transfer theorem to obtain `zerosWindow_of` from the right-half-plane estimates alone.

Key declarations:

- `PI.ZW.rightChi`: Given the right-half-plane bounds for nonprincipal Dirichlet L-functions and the reciprocal bound, proves that for every nonprincipal character modulo N the zeros with 1/2 ≤ Re ρ < 1 and |Im ρ − t| ≤ 1 form a finite set with total multiplicity at most C log(N(|t| + 2)), for a uniform C.

  ```lean
  theorem rightChi : RightChi := …
  ```
- `PI.ZW.rightOne`: Given the right-half-plane bound for the Riemann zeta function and the reciprocal bound, proves that its zeros with 1/2 ≤ Re ρ < 1 and |Im ρ − t| ≤ 1 form a finite set with total multiplicity at most C log(|t| + 2), for a uniform C.

  ```lean
  theorem rightOne : RightOne := …
  ```
- `PI.ZW.zerosWindow_of_transfer`: Given the Dirichlet L-function, zeta, and reciprocal bounds and the zero-transfer principle, proves that for every primitive character modulo N the zeros with 0 < Re ρ < 1 and |Im ρ − t| ≤ 1 form a finite set with total multiplicity at most C log(N(|t| + 2)), for a uniform C > 0.

  ```lean
  theorem zerosWindow_of_transfer (hT : Transfer) :
      PI.LBoundRight → PI.ZetaBoundRight → PI.LInvRight → PI.ZerosWindow := …
  ```

### Formalism.PeriodIntegrals.UnitaryGroupMassFormula.ZeroWindow.Transfer

12 import steps from Main · 105 lines · Checked against the code · [Open in the Lean viewer](https://riemannhypothesissolved.com/file/Formalism.PeriodIntegrals.UnitaryGroupMassFormula.ZeroWindow.Transfer)

**Shows that a critical-strip zero ρ of a primitive Dirichlet L-function L(s, χ) yields a zero at 1 − ρ of L(s, χ⁻¹) of at least equal order.**

The functional equation for primitive Dirichlet L-functions expresses L(1 − s, χ⁻¹) as L(s, χ) times a factor involving the modulus, the root number, and the gamma factors. The proof shows that this factor is holomorphic and nonzero at ρ and that the change of variable s ↦ 1 − s preserves the order of vanishing, yielding equality of the two orders in the proof of the transfer inequality. The direct importer uses the transfer inequality to derive the full critical-strip zero-window bound from the right-half-plane estimates.

Key declarations:

- `PI.ZW.transfer`: For a primitive character χ of positive modulus and a zero ρ of L(s, χ) with 0 < Re ρ < 1, the point 1 − ρ is a zero of L(s, χ⁻¹) with multiplicity at least that of ρ.

  ```lean
  theorem transfer : Transfer := …
  ```
- `PI.ZW.rootNumber_ne_zero`: The root number of a primitive Dirichlet character of positive modulus is nonzero.

  ```lean
  lemma rootNumber_ne_zero {N : ℕ} [NeZero N] {χ : DirichletCharacter ℂ N} (hχ : χ.IsPrimitive) :
      rootNumber χ ≠ 0 := …
  ```
- `PI.ZW.isPrimitive_inv`: The inverse of a primitive Dirichlet character is primitive.

  ```lean
  lemma isPrimitive_inv {N : ℕ} {χ : DirichletCharacter ℂ N} (hχ : χ.IsPrimitive) :
      χ⁻¹.IsPrimitive := …
  ```
- `PI.ZW.gammaFactor_ne_zero_of_re_pos`: The gamma factor of a Dirichlet character is nonzero on Re s > 0.

  ```lean
  lemma gammaFactor_ne_zero_of_re_pos {N : ℕ} (χ : DirichletCharacter ℂ N) {s : ℂ}
      (hs : 0 < s.re) : gammaFactor χ s ≠ 0 := …
  ```
- `PI.ZW.differentiable_gammaFactor_inv`: The reciprocal gamma factor of a Dirichlet character is entire.

  ```lean
  lemma differentiable_gammaFactor_inv {N : ℕ} (χ : DirichletCharacter ℂ N) :
      Differentiable ℂ (fun s => (gammaFactor χ s)⁻¹) := …
  ```

### Formalism.PeriodIntegrals.ZerosWindow

12 import steps from Main · 18 lines · Checked against the code · [Open in the Lean viewer](https://riemannhypothesissolved.com/file/Formalism.PeriodIntegrals.ZerosWindow)

**Defines a uniform bound on the number of zeros of primitive Dirichlet L-functions within one unit of any height in the open critical strip.**

The definitions specify the set of zeros in the window and formulate an estimate that asserts its finiteness and bounds the sum of the orders of vanishing by C log(N(|t| + 2)), with one positive constant for all positive moduli N, primitive characters, and real heights t. The importing OrbitalBoundsConclusion.ExplicitFormula module takes this estimate as a hypothesis for the truncated explicit formula.

Key declarations:

- `PI.ZerosNear`: Selects the zeros ρ of L(s, χ) with 0 < Re ρ < 1 and |Im ρ − t| ≤ 1.

  ```lean
  def ZerosNear {N : ℕ} [NeZero N] (χ : DirichletCharacter ℂ N) (t : ℝ) : Set ℂ :=
    {ρ | 0 < ρ.re ∧ ρ.re < 1 ∧ |ρ.im - t| ≤ 1 ∧ DirichletCharacter.LFunction χ ρ = 0}
  ```
- `PI.ZerosWindowWith`: For a given C, asserts that for every primitive character modulo N and every real t the window contains finitely many zeros and their total multiplicity is at most C log(N(|t| + 2)).

  ```lean
  def ZerosWindowWith (C : ℝ) : Prop :=
    ∀ (N : ℕ) [NeZero N] (χ : DirichletCharacter ℂ N), χ.IsPrimitive → ∀ t : ℝ,
      (ZerosNear χ t).Finite ∧
      ∑ᶠ ρ ∈ ZerosNear χ t, (analyticOrderNatAt (DirichletCharacter.LFunction χ) ρ : ℝ) ≤
        C * Real.log (N * (|t| + 2))
  ```
- `PI.ZerosWindow`: Asserts the existence of a positive constant C satisfying PI.ZerosWindowWith.

  ```lean
  def ZerosWindow : Prop := ∃ C : ℝ, 0 < C ∧ ZerosWindowWith C
  ```

### Formalism.PeriodIntegrals.ZerosWindowIn

12 import steps from Main · 16 lines · Checked against the code · [Open in the Lean viewer](https://riemannhypothesissolved.com/file/Formalism.PeriodIntegrals.ZerosWindowIn)

**Defines three right-half-plane bounds used in counting zeros of Dirichlet L-functions.**

Two propositions specify upper bounds for the absolute values of nonprincipal Dirichlet L-functions and the Riemann zeta function on Re s > 0, with s = 1 excluded for zeta. The third specifies an upper bound for the reciprocal absolute value of every Dirichlet L-function on Re s > 1. The theorems zerosWindow_of and explicitFormula_of both take all three propositions as hypotheses.

Key declarations:

- `PI.LBoundRight`: Asserts that |L(s, χ)| ≤ 1 + 2(q + 1)(1 + |s|/Re s) for every nonprincipal character χ modulo q ≥ 1 and every s with Re s > 0.

  ```lean
  def LBoundRight : Prop :=
    ∀ (q : ℕ) [NeZero q] (χ : DirichletCharacter ℂ q), χ ≠ 1 → ∀ s : ℂ, 0 < s.re →
      ‖DirichletCharacter.LFunction χ s‖ ≤ 1 + 2 * ((q : ℝ) + 1) * (1 + ‖s‖ / s.re)
  ```
- `PI.ZetaBoundRight`: Asserts that |ζ(s)| ≤ 1 + 1/|s − 1| + |s|(1 + 1/Re s) for Re s > 0 and s ≠ 1.

  ```lean
  def ZetaBoundRight : Prop :=
    ∀ s : ℂ, 0 < s.re → s ≠ 1 → ‖riemannZeta s‖ ≤ 1 + 1 / ‖s - 1‖ + ‖s‖ * (1 + 1 / s.re)
  ```
- `PI.LInvRight`: Asserts that 1/|L(s, χ)| ≤ Re s/(Re s − 1) for every character χ modulo q ≥ 1 and every s with Re s > 1.

  ```lean
  def LInvRight : Prop :=
    ∀ (q : ℕ) [NeZero q] (χ : DirichletCharacter ℂ q) (s : ℂ), 1 < s.re →
      ‖DirichletCharacter.LFunction χ s‖⁻¹ ≤ s.re / (s.re - 1)
  ```

### Formalism.LFunctionBounds.PositivityBound

13 import steps from Main · 88 lines · Checked against the code · [Open in the Lean viewer](https://riemannhypothesissolved.com/file/Formalism.LFunctionBounds.PositivityBound)

**Defines a partial-sum bound for antisymmetric functions with positive sums on prescribed triples and bounds for Dirichlet characters.**

For odd ℓ ≥ 3, the positivity bound assumes φ(ℓ − x) = −φ(x) for 1 ≤ x < ℓ and positive sums on prescribed triples. For some 1 ≤ X ≤ (ℓ − 1)/2, X∑φ² is at most K(1 + log ℓ) times the squared initial sum, with absolute K. Gordan formulates the alternative of a zero convex combination or a linear functional positive on every vector of a nonempty finite family. Other propositions bound fourth moments, Pólya–Vinogradov sums, and truncation errors for Re(s) > 0. Special-value propositions state a finite sum for L(0, χ) for nonprincipal χ modulo a prime, Lerch’s Hurwitz zeta derivative at zero for 0 < a ≤ 1, and a log-derivative identity at 0 for odd χ modulo a prime and at 1 for χ⁻¹.

Key declarations:

- `Formalism.FX.PositivityBound`: There is an absolute K > 0 such that every φ satisfying the antisymmetry and triple-positivity hypotheses at odd ℓ ≥ 3 admits 1 ≤ X ≤ (ℓ − 1)/2 with X∑_{1≤x<ℓ} φ(x)² ≤ K(1 + log ℓ)(∑_{1≤x≤X} φ(x))².

  ```lean
  def PositivityBound : Prop :=
    ∃ K : ℝ, 0 < K ∧ ∀ l : ℕ, 3 ≤ l → Odd l → ∀ φ : ℕ → ℝ,
      (∀ x, 0 < x → x < l → φ (l - x) = -φ x) →
      (∀ S ∈ triples l, 0 < φ S.1 + φ S.2.1 + φ S.2.2) →
      ∃ X : ℕ, 1 ≤ X ∧ X ≤ (l - 1) / 2 ∧
        (X : ℝ) * ∑ x ∈ Finset.Ioo 0 l, φ x ^ 2 ≤
          K * (1 + Real.log l) * (∑ x ∈ Finset.Icc 1 X, φ x) ^ 2
  ```
- `Formalism.FX.Gordan`: For any nonempty finite family of real vectors, either zero belongs to its convex hull or a linear functional is strictly positive on every vector in the family.

  ```lean
  def Gordan : Prop :=
    ∀ (ι : Type) [Fintype ι] [Nonempty ι] (n : ℕ) (v : ι → Fin n → ℝ),
      (∃ ν : ι → ℝ, (∀ i, 0 ≤ ν i) ∧ ∑ i, ν i = 1 ∧ ∀ j, ∑ i, ν i * v i j = 0) ∨
      ∃ w : Fin n → ℝ, ∀ i, 0 < ∑ j, w j * v i j
  ```
- `Formalism.FX.M4`: For every ε > 0 there is a constant Cε such that, for every prime ℓ and 0 ≤ X ≤ ℓ, the sum of |∑_{1≤n≤X} χ(n)|⁴ over nonprincipal characters modulo ℓ is at most Cε ℓ^(1+ε) X².

  ```lean
  def M4 : Prop :=
    ∀ e : ℝ, 0 < e → ∃ C : ℝ, ∀ (l : ℕ) [NeZero l], l.Prime → ∀ X : ℕ, X ≤ l →
      ∑ χ ∈ (allChars l).filter (· ≠ 1), ‖IX χ X‖ ^ 4 ≤ C * (l : ℝ) ^ (1 + e) * (X : ℝ) ^ 2
  ```
- `Formalism.FX.PolyaVinogradov`: For every nonprincipal character modulo a prime ℓ, the modulus of its sum over any interval of nonnegative integers is bounded by an absolute constant times √ℓ(1 + log ℓ).

  ```lean
  def PolyaVinogradov : Prop :=
    ∃ K : ℝ, ∀ (l : ℕ) [NeZero l], l.Prime → ∀ χ : DirichletCharacter ℂ l, χ ≠ 1 → ∀ M N : ℕ,
      ‖∑ n ∈ Finset.Ico M (M + N), χ (n : ZMod l)‖ ≤ K * Real.sqrt l * (1 + Real.log l)
  ```
- `Formalism.FX.LPartialSum`: For a nonprincipal character whose initial sums are bounded in modulus by B, truncating the Dirichlet series for L(s, χ) after N ≥ 1 terms gives an error of modulus at most 2B(1 + |s|/Re(s))N^(−Re(s)) for Re(s) > 0.

  ```lean
  def LPartialSum : Prop :=
    ∀ (q : ℕ) [NeZero q] (χ : DirichletCharacter ℂ q), χ ≠ 1 → ∀ B : ℝ,
      (∀ M : ℕ, ‖∑ n ∈ Finset.Icc 1 M, χ (n : ZMod q)‖ ≤ B) →
      ∀ s : ℂ, 0 < s.re → ∀ N : ℕ, 1 ≤ N →
        ‖DirichletCharacter.LFunction χ s - ∑ n ∈ Finset.Icc 1 N, χ (n : ZMod q) * (n : ℂ) ^ (-s)‖ ≤
          2 * B * (1 + ‖s‖ / s.re) * (N : ℝ) ^ (-s.re)
  ```

### Formalism.LandauZeroFreeBounds.SameCharacterLFunctionOne

13 import steps from Main · 77 lines · Checked against the code · [Open in the Lean viewer](https://riemannhypothesissolved.com/file/Formalism.LandauZeroFreeBounds.SameCharacterLFunctionOne)

**Defines the analytic hypotheses and conditional implications for a Siegel lower bound at \(s=1\) for real Dirichlet characters.**

The auxiliary product multiplies ζ by the L-functions of two characters and their pointwise product modulo q₁q₂. The lower-bound implication assumes a nonnegative Dirichlet series with a₁ = 1 converging absolutely to the product for Re s > 1, an entire remainder after pole subtraction, a uniform modulus bound C(q₁q₂)^K on |s − 2| = 3/2, and a logarithmic upper bound for nonprincipal L-values at 1. Another proposition compares L-values at 1 for nonprincipal characters agreeing on integers coprime to both moduli. The final implication uses both bounds, that comparison, character existence, negativity of ζ on (0, 1) and positivity for nonprincipal real characters on zero-free rightward rays.

Key declarations:

- `Formalism.ZeroFreeDirichlet.Fbq`: Defines the auxiliary product \(\zeta(s)L(s,\chi_1)L(s,\chi_2)L(s,\psi)\), where \(\psi\) is a character modulo \(q_1q_2\).

  ```lean
  def Fbq {q₁ q₂ : ℕ} [NeZero q₁] [NeZero q₂] [NeZero (q₁ * q₂)] (χ₁ : DirichletCharacter ℂ q₁)
      (χ₂ : DirichletCharacter ℂ q₂) (ψ : DirichletCharacter ℂ (q₁ * q₂)) (s : ℂ) : ℂ :=
    riemannZeta s * DirichletCharacter.LFunction χ₁ s * DirichletCharacter.LFunction χ₂ s *
      DirichletCharacter.LFunction ψ s
  ```
- `Formalism.ZeroFreeDirichlet.BqKeyOf`: States that the coefficient, entire-remainder, circle-growth, and \(L(1,\chi)\) upper-bound hypotheses imply the auxiliary lower bound.

  ```lean
  def BqKeyOf : Prop := BqCoeff → BqEntire → BqGrowth → LFunctionOneUpperBound → BqKey
  ```
- `Formalism.ZeroFreeDirichlet.BqKey`: Defines the proposition that two nonprincipal real characters with nonprincipal product character \(\psi\) satisfy a uniform lower bound for the real part of the auxiliary product on \(7/8\le \sigma<1\) of the form \(1/2-C|\lambda|(q_1q_2)^{K(1-\sigma)}/(1-\sigma)\), where \(K\ge0\) and \(\lambda=L(1,\chi_1)L(1,\chi_2)L(1,\psi)\).

  ```lean
  def BqKey : Prop :=
    ∃ C K : ℝ, 0 ≤ K ∧ ∀ (q₁ q₂ : ℕ) [NeZero q₁] [NeZero q₂] [NeZero (q₁ * q₂)] (χ₁ : DirichletCharacter ℂ q₁)
      (χ₂ : DirichletCharacter ℂ q₂) (ψ : DirichletCharacter ℂ (q₁ * q₂)),
      χ₁ ^ 2 = 1 → χ₂ ^ 2 = 1 → χ₁ ≠ 1 → χ₂ ≠ 1 → ψ ≠ 1 → IsProdChar χ₁ χ₂ ψ →
      ∀ σ : ℝ, 7 / 8 ≤ σ → σ < 1 →
        1 / 2 - C * ‖lamBq χ₁ χ₂ ψ‖ * ((q₁ * q₂ : ℕ) : ℝ) ^ (K * (1 - σ)) / (1 - σ) ≤ (Fbq χ₁ χ₂ ψ σ).re
  ```
- `Formalism.ZeroFreeDirichlet.SameCharacterLFunctionOne`: For nonprincipal characters \(\chi_1\bmod q_1\) and \(\chi\bmod q\) agreeing on integers coprime to \(q_1q\), bounds \(|L(1,\chi_1)|\) by \((1+\omega(q_1q))^2|L(1,\chi)|\), where \(\omega\) counts distinct prime divisors.

  ```lean
  def SameCharacterLFunctionOne : Prop :=
    ∀ (q₁ q : ℕ) [NeZero q₁] [NeZero q] (χ₁ : DirichletCharacter ℂ q₁) (χ : DirichletCharacter ℂ q),
      χ₁ ≠ 1 → χ ≠ 1 → (∀ n : ℕ, Nat.Coprime n (q₁ * q) → χ₁ (n : ZMod q₁) = χ (n : ZMod q)) →
      ‖DirichletCharacter.LFunction χ₁ 1‖ ≤ (((q₁ * q).primeFactors.card : ℝ) + 1) ^ 2 *
        ‖DirichletCharacter.LFunction χ 1‖
  ```
- `Formalism.ZeroFreeDirichlet.SiegelOf`: States that product-character existence, existence of a nonprincipal real character, the auxiliary lower bound, the upper bound at \(1\), the real-axis sign assertions, and the comparison at \(1\) together imply the Siegel lower bound.

  ```lean
  def SiegelOf : Prop :=
    ProdCharExists → RealCharExists → BqKey → LFunctionOneUpperBound → ZetaNegReal → LRealPos → SameCharacterLFunctionOne → SiegelLower
  ```

### Formalism.PeriodIntegrals.UnitaryGroupMassFormula.ExplicitFormula.Assemble

13 import steps from Main · 36 lines · Checked against the code · [Open in the Lean viewer](https://riemannhypothesissolved.com/file/Formalism.PeriodIntegrals.UnitaryGroupMassFormula.ExplicitFormula.Assemble)

**Derives the truncated explicit formula for primitive Dirichlet characters from zero counts, local log derivative and Perron contour bounds.**

The proof uses the zero-window bound to choose a height within one unit of the target truncation height and to control the change in the zero sum when returning to that target. It obtains logarithmic derivative bounds on the horizontal sides and the left edge from the local estimate and the zero-window bound, then combines the resulting contour-side estimate with truncated Perron inversion, a rectangular residue identity, and a bound for the regular part at the origin. The direct importer supplies the local estimate and the implication from the two logarithmic derivative bounds to the Perron contour-side bound.

Key declarations:

- `PI.EF.explicitFormula_of_local`: Given a uniform multiplicity-weighted zero-window bound, a uniform local logarithmic derivative estimate, and an implication from horizontal and left-edge logarithmic derivative bounds to the Perron contour-side bound for each positive separation parameter κ, the theorem gives a uniform positive constant C such that for every primitive character modulo N and 2 ≤ T ≤ u, the twisted von Mangoldt sum through u, corrected by subtracting u for the principal character, differs from the negative sum of m(ρ)u^ρ/ρ over the finite set of critical-strip zeros with |Im(ρ)| < T by at most C times the sum of u log²(NuT)/T, log(Nu), and the sum of m(ρ)/|ρ| over critical-strip zeros with |Im(ρ)| < 1.

  ```lean
  theorem explicitFormula_of_local (hZW : PI.ZerosWindow) (hLL : ∃ C, 0 < C ∧ LocalLemma C)
      (hSides : GlueSides) : PI.ExplicitFormula := …
  ```

### Formalism.PeriodIntegrals.UnitaryGroupMassFormula.ExplicitFormula.LGrowthFinal

13 import steps from Main · 11 lines · Checked against the code · [Open in the Lean viewer](https://riemannhypothesissolved.com/file/Formalism.PeriodIntegrals.UnitaryGroupMassFormula.ExplicitFormula.LGrowthFinal)

**Specializes a polynomial growth bound for pole-cleared primitive Dirichlet L-functions to exponent 7 and constant 300000.**

The theorem converts the assumed right-half-plane zeta bound into a strip growth estimate, combines it with the assumed right-half-plane bound for nonprincipal Dirichlet L-functions, and evaluates the maximum of the two constants in the resulting bound.

Key declarations:

- `PI.EF.lGrowth_of_right`: Under the stated right-half-plane bounds, every primitive character χ modulo N satisfies the bound 300000·(N(|Im(s)| + 2))⁷ on the strip −4 ≤ Re(s) ≤ 8 for the absolute value of L(s, χ) for nonprincipal χ and of (s − 1)L(s, χ) for principal χ.

  ```lean
  theorem lGrowth_of_right (hB : PI.LBoundRight) (hZ : PI.ZetaBoundRight) : LGrowth 7 300000 := …
  ```

### Formalism.PeriodIntegrals.UnitaryGroupMassFormula.ExplicitFormula.LocalProofs

13 import steps from Main · 11 lines · Checked against the code · [Open in the Lean viewer](https://riemannhypothesissolved.com/file/Formalism.PeriodIntegrals.UnitaryGroupMassFormula.ExplicitFormula.LocalProofs)

**Packages a logarithmic derivative estimate on nested discs with a positive constant depending only on their three radii.**

The theorem applies the imported local estimate under the disc factorization and holomorphic logarithm hypotheses. The direct importer uses it to obtain the local logarithmic derivative bound for primitive Dirichlet L-functions.

Key declarations:

- `PI.EF.localAbstract_of`: Under the disc factorization and holomorphic logarithm hypotheses, for any 0 < r < R′ < R there is a constant C > 0 depending only on the radii such that if f is holomorphic on a neighborhood of the closed disc of radius R centered at s₀, f(s₀) ≠ 0, and |f| ≤ exp(M)|f(s₀)| on that closed disc for M ≥ 0, then the zeros in the closed disc of radius R′ form a finite set and f′(s)/f(s) differs from the sum of m(ρ)/(s − ρ) over those zeros by at most CM at every nonzero value of f in the closed disc of radius r.

  ```lean
  theorem localAbstract_of (hDF : PI.DiscFactor) (hDL : PI.DiscLog) : LocalAbstract := …
  ```

### Formalism.PeriodIntegrals.UnitaryGroupMassFormula.ExplicitFormula.LogWindowLe

13 import steps from Main · 164 lines · Checked against the code · [Open in the Lean viewer](https://riemannhypothesissolved.com/file/Formalism.PeriodIntegrals.UnitaryGroupMassFormula.ExplicitFormula.LogWindowLe)

**Bounds the error in approximating L′/L on −1/2 ≤ Re(s) ≤ 3 by nearby zero terms and character corrections under analytic hypotheses.**

The proof applies a nested-disc estimate to the pole-cleared L-function on discs centered at 2 + it, using polynomial growth to bound its size and the reciprocal estimate to control its value at the center. It splits the disc zero sum into critical-strip zeros within one unit of t, the remaining nonzero zeros, and the origin term when present, then uses the zero-window bounds at t ± 2 to absorb the remaining nonzero terms into the logarithmic error. The direct importer supplies these hypotheses to obtain the local estimate used in assembling the explicit formula.

Key declarations:

- `PI.EF.log_window_le`: For N ≥ 1 and |u| ≤ |t| + 2, the quantity log(N(|u| + 2)) is at most 2 log(N(|t| + 2)).

  ```lean
  lemma log_window_le (N : ℕ) [NeZero N] {t u : ℝ} (hu : |u| ≤ |t| + 2) :
      Real.log (N * (|u| + 2)) ≤ 2 * LL N t := …
  ```
- `PI.EF.mem_ball_ctr`: Every s with −1/2 ≤ Re(s) ≤ 3 lies in the closed disc of radius 5/2 centered at 2 + i Im(s).

  ```lean
  theorem mem_ball_ctr (s : ℂ) (h1 : -1 / 2 ≤ s.re) (h2 : s.re ≤ 3) :
      s ∈ closedBall (ctr s.im) (5 / 2) := …
  ```
- `PI.EF.sum_DZ_eq`: If the zero set of the pole-cleared L-function in the closed disc of radius 11/4 centered at 2 + it is finite, a sum over that set splits into the sum over critical-strip zeros within one unit of t, the remaining nonzero terms, and the term at zero if present.

  ```lean
  lemma sum_DZ_eq {χ : DirichletCharacter ℂ N} (t : ℝ)
      (hfin : (DZ χ t).Finite) (F : ℂ → ℂ) :
      ∃ E : Finset ℂ, (∀ ρ ∈ E, ρ ∈ DZ χ t ∧ ρ ∉ ZerosNear χ t ∧ ρ ≠ 0) ∧
        ∑ᶠ ρ ∈ DZ χ t, F ρ = ∑ᶠ ρ ∈ ZerosNear χ t, F ρ + ∑ ρ ∈ E, F ρ +
          (open Classical in if (0 : ℂ) ∈ DZ χ t then F 0 else 0) := …
  ```
- `PI.EF.localLemma_of`: Given the reciprocal bound on Re(s) > 1, a nested-disc estimate, polynomial strip growth, the zero-locus condition, and the zero-window bound, L′/L for primitive characters modulo N differs from the multiplicity-weighted sum of 1/(s − ρ) over critical-strip zeros within one unit of Im(s), with 1/s added for even nonprincipal characters and 1/(s − 1) subtracted for the principal character, by at most a uniform constant times log(N(|Im(s)| + 2)) on −1/2 ≤ Re(s) ≤ 3 away from zeros and s = 1.

  ```lean
  theorem localLemma_of (hI : PI.LInvRight) : GlueLocalLemma := …
  ```

### Formalism.PeriodIntegrals.UnitaryGroupMassFormula.ExplicitFormula.PerronGlue

13 import steps from Main · 13 lines · Checked against the code · [Open in the Lean viewer](https://riemannhypothesissolved.com/file/Formalism.PeriodIntegrals.UnitaryGroupMassFormula.ExplicitFormula.PerronGlue)

**Packages the Perron contour-side estimate with constant 21C₁ + 8C₂ from horizontal and left-edge logarithmic derivative bounds.**

The theorem supplies the positive constant in the imported estimate for the three sides added when the Perron contour is shifted. The direct importer supplies this theorem to the assembly of the truncated explicit formula.

Key declarations:

- `PI.EF.perron_gluing_sides`: For any positive height-separation parameter κ, horizontal and left-edge logarithmic derivative bounds with positive constants C₁ and C₂ imply the Perron contour-side error bound at the corresponding admissible heights with constant 21C₁ + 8C₂.

  ```lean
  theorem perron_gluing_sides : GlueSides := …
  ```

### Formalism.PeriodIntegrals.UnitaryGroupMassFormula.ZeroWindow.FinsumMemLeFinsumMem

13 import steps from Main · 91 lines · Checked against the code · [Open in the Lean viewer](https://riemannhypothesissolved.com/file/Formalism.PeriodIntegrals.UnitaryGroupMassFormula.ZeroWindow.FinsumMemLeFinsumMem)

**Extends a right-half critical-strip zero count with constant C to the full strip with constant 2C using a zero-transfer hypothesis.**

The right-half bound for nonprincipal characters and the bound for modulus one combine by taking the larger of their constants. For a primitive character χ, the proof counts zeros on and to the right of the critical line using the window centered at height t, then uses the injective map ρ ↦ 1 − ρ to bound the zeros to its left by those of the inverse character in the right-half window centered at −t. The transfer hypothesis bounds each original multiplicity by the multiplicity of its image, and the two window bounds add to 2C log(N(|t| + 2)) for modulus N. Assemble enlarges both constants, then uses rightHalf_of and zerosWindowWith_of to obtain the full-strip estimate.

Key declarations:

- `PI.ZW.zerosWindowWith_of`: Given the right-half window bound with constant C and the zero-transfer hypothesis, proves that the zeros of each primitive Dirichlet L-function modulo N with 0 < Re ρ < 1 and |Im ρ − t| ≤ 1 form a finite set with total multiplicity at most 2C log(N(|t| + 2)).

  ```lean
  theorem zerosWindowWith_of (C : ℝ) (hR : RightHalfWith C) (hT : Transfer) :
      PI.ZerosWindowWith (2 * C) := …
  ```
- `PI.ZW.rightHalf_of`: Combines right-half window bounds with constants C₁ for nonprincipal characters and C₂ for modulus one into a single bound with constant max(C₁, C₂).

  ```lean
  theorem rightHalf_of (C₁ C₂ : ℝ) (h₁ : RightChiWith C₁) (h₂ : RightOneWith C₂) :
      RightHalfWith (max C₁ C₂) := …
  ```
- `PI.ZW.ne_one_or_of_isPrimitive`: A primitive Dirichlet character is nonprincipal or has modulus one.

  ```lean
  lemma ne_one_or_of_isPrimitive {N : ℕ} [NeZero N] {χ : DirichletCharacter ℂ N} (hχ : χ.IsPrimitive) :
      χ ≠ 1 ∨ N = 1 := …
  ```
- `PI.ZW.finsum_mem_le_of_subset'`: The sum of a nonnegative function over a subset of a finite set is at most its sum over the whole set.

  ```lean
  lemma finsum_mem_le_of_subset' {s t : Set ℂ} (g : ℂ → ℝ) (hg : ∀ x, 0 ≤ g x) (ht : t.Finite)
      (hst : s ⊆ t) : ∑ᶠ x ∈ s, g x ≤ ∑ᶠ x ∈ t, g x := …
  ```
- `PI.ZW.finsum_mem_le_finsum_mem'`: A pointwise inequality on a finite set gives the same inequality between the sums over that set.

  ```lean
  lemma finsum_mem_le_finsum_mem' {s : Set ℂ} (f g : ℂ → ℝ) (hs : s.Finite) (h : ∀ x ∈ s, f x ≤ g x) :
      ∑ᶠ x ∈ s, f x ≤ ∑ᶠ x ∈ s, g x := …
  ```

### Formalism.PeriodIntegrals.UnitaryGroupMassFormula.ZeroWindow.Jensen

13 import steps from Main · 118 lines · Checked against the code · [Open in the Lean viewer](https://riemannhypothesissolved.com/file/Formalism.PeriodIntegrals.UnitaryGroupMassFormula.ZeroWindow.Jensen)

**Uses Jensen’s formula to bound zero multiplicities in a closed disk of radius 37/20 from a bound on the concentric circle of radius 19/10.**

For a function holomorphic near the larger closed disk and nonzero at its center c, the divisor has finite support on the disk and records the order of vanishing at each point. In Jensen’s formula, each zero in the smaller disk contributes at least its multiplicity times log(38/37), while the boundary bound |f| ≤ M with M ≥ 1 bounds the circle average of log |f| by log M. Assemble uses this estimate to derive right-half critical-strip zero counts from an inverse L-function bound together with an upper bound for Dirichlet L-functions in the nonprincipal case or for zeta in the modulus-one case.

Key declarations:

- `PI.ZW.jensenCount`: If f is holomorphic near the closed disk of radius 19/10 about c, f(c) ≠ 0, and |f| ≤ M with M ≥ 1 on its boundary, then every subset of the zeros in the concentric closed disk of radius 37/20 is finite and has total multiplicity at most log(M/|f(c)|)/log(38/37).

  ```lean
  theorem jensenCount : JensenCount := …
  ```
- `PI.ZW.order_ne_top_of_ball`: A function holomorphic near a closed disk and nonzero at its center has finite order of vanishing at every point of the disk.

  ```lean
  lemma order_ne_top_of_ball {f : ℂ → ℂ} {c z : ℂ} {R : ℝ} (hf : AnalyticOnNhd ℂ f (closedBall c R))
      (hfc : f c ≠ 0) (hz : z ∈ closedBall c R) : analyticOrderAt f z ≠ ⊤ := …
  ```
- `PI.ZW.divisor_eq_order`: For a function holomorphic near a closed disk and nonzero at its center, the divisor on any smaller concentric closed disk equals the order of vanishing at each point of that disk.

  ```lean
  lemma divisor_eq_order {f : ℂ → ℂ} {c z : ℂ} {r R : ℝ} (hf : AnalyticOnNhd ℂ f (closedBall c R))
      (hfc : f c ≠ 0) (hrR : r ≤ R) (hz : z ∈ closedBall c r) :
      MeromorphicOn.divisor f (closedBall c r) z = (analyticOrderNatAt f z : ℤ) := …
  ```

### Formalism.PeriodIntegrals.UnitaryGroupMassFormula.ZeroWindow.RightHalfWith

13 import steps from Main · 50 lines · Checked against the code · [Open in the Lean viewer](https://riemannhypothesissolved.com/file/Formalism.PeriodIntegrals.UnitaryGroupMassFormula.ZeroWindow.RightHalfWith)

**Defines right-half zero counts for Dirichlet L-functions, a zero-transfer principle, and a Jensen disk estimate.**

The zero window consists of zeros ρ with 1/2 ≤ Re ρ < 1 and |Im ρ − t| ≤ 1, and the counting statements assert finiteness and a total multiplicity bound of C log(N(|t| + 2)) for modulus N. The definitions give separate bounds for nonprincipal characters and for modulus one, together with conditional versions that assert the existence of a uniform C from the corresponding right-half-plane growth estimate and the reciprocal L-function estimate. Direct importers prove the Jensen and transfer statements and use the right-half bounds with the transfer hypothesis to derive a full-strip count.

Key declarations:

- `PI.ZW.RightHalfWith`: For every character that is nonprincipal or has modulus one and every height t, the right-half window is finite and has total multiplicity at most C log(N(|t| + 2)).

  ```lean
  def RightHalfWith (C : ℝ) : Prop :=
    ∀ (N : ℕ) [NeZero N] (χ : DirichletCharacter ℂ N), (χ ≠ 1 ∨ N = 1) → ∀ t : ℝ,
      (RightNear χ t).Finite ∧
      ∑ᶠ ρ ∈ RightNear χ t, (analyticOrderNatAt (DirichletCharacter.LFunction χ) ρ : ℝ) ≤
        C * Real.log (N * (|t| + 2))
  ```
- `PI.ZW.RightChiWith`: For every nonprincipal character modulo N and every height t, the right-half window is finite and has total multiplicity at most C log(N(|t| + 2)).

  ```lean
  def RightChiWith (C : ℝ) : Prop :=
    ∀ (N : ℕ) [NeZero N] (χ : DirichletCharacter ℂ N), χ ≠ 1 → ∀ t : ℝ,
      (RightNear χ t).Finite ∧
      ∑ᶠ ρ ∈ RightNear χ t, (analyticOrderNatAt (DirichletCharacter.LFunction χ) ρ : ℝ) ≤
        C * Real.log (N * (|t| + 2))
  ```
- `PI.ZW.RightOneWith`: For the character of modulus one and every height t, the right-half window is finite and has total multiplicity at most C log(|t| + 2).

  ```lean
  def RightOneWith (C : ℝ) : Prop :=
    ∀ (N : ℕ) [NeZero N] (χ : DirichletCharacter ℂ N), N = 1 → ∀ t : ℝ,
      (RightNear χ t).Finite ∧
      ∑ᶠ ρ ∈ RightNear χ t, (analyticOrderNatAt (DirichletCharacter.LFunction χ) ρ : ℝ) ≤
        C * Real.log (N * (|t| + 2))
  ```
- `PI.ZW.Transfer`: For a primitive character χ, each zero ρ of L(s, χ) with 0 < Re ρ < 1 maps to a zero 1 − ρ of L(s, χ⁻¹) of at least the same multiplicity.

  ```lean
  def Transfer : Prop :=
    ∀ (N : ℕ) [NeZero N] (χ : DirichletCharacter ℂ N), χ.IsPrimitive → ∀ ρ : ℂ, 0 < ρ.re → ρ.re < 1 →
      DirichletCharacter.LFunction χ ρ = 0 →
      DirichletCharacter.LFunction χ⁻¹ (1 - ρ) = 0 ∧
      analyticOrderNatAt (DirichletCharacter.LFunction χ) ρ ≤
        analyticOrderNatAt (DirichletCharacter.LFunction χ⁻¹) (1 - ρ)
  ```
- `PI.ZW.JensenCount`: If f is holomorphic near the closed disk of radius 19/10 about c, f(c) ≠ 0, and |f| ≤ M with M ≥ 1 on the boundary, then every subset of zeros in the concentric closed disk of radius 37/20 is finite and has total multiplicity at most log(M/|f(c)|)/log(38/37).

  ```lean
  def JensenCount : Prop :=
    ∀ (f : ℂ → ℂ) (c : ℂ) (M : ℝ), AnalyticOnNhd ℂ f (closedBall c (19 / 10)) → f c ≠ 0 → 1 ≤ M →
      (∀ z ∈ sphere c (19 / 10), ‖f z‖ ≤ M) →
      ∀ S : Set ℂ, S ⊆ {z | z ∈ closedBall c (37 / 20) ∧ f z = 0} →
        S.Finite ∧
        ∑ᶠ z ∈ S, (analyticOrderNatAt f z : ℝ) ≤ Real.log (M / ‖f c‖) / Real.log ((19 / 10) / (37 / 20))
  ```

### Formalism.PeriodIntegrals.UnitaryGroupMassFormula.ZeroWindow.RightOne

13 import steps from Main · 181 lines · Checked against the code · [Open in the Lean viewer](https://riemannhypothesissolved.com/file/Formalism.PeriodIntegrals.UnitaryGroupMassFormula.ZeroWindow.RightOne)

**Uses Jensen and right-half-plane estimates to bound zeta zero multiplicities logarithmically in right-half critical-strip windows.**

The proof uses the holomorphic regularization of ζ obtained by multiplying by s − 1 and assigning the value 1 at s = 1, which preserves orders of vanishing away from 1. It applies the Jensen disk estimate at 2 + it with outer radius 19/10 and inner radius 37/20, using the zeta growth bound to control the boundary and the reciprocal bound to obtain a lower bound at the center. This yields a finite zero set with total multiplicity at most 11 log(|t| + 2)/log(38/37), and the direct importer supplies the Jensen estimate to obtain the modulus-one case of the zero-window assembly.

Key declarations:

- `PI.ZW.rightOne_of`: Given the Jensen disk estimate, the right-half-plane growth bound for ζ, and the reciprocal L-function bound, proves that the zeros ρ of ζ with 1/2 ≤ Re ρ < 1 and |Im ρ − t| ≤ 1 form a finite set with total multiplicity at most 11 log(|t| + 2)/log(38/37).

  ```lean
  theorem rightOne_of (hJ : JensenCount) : RightOne := …
  ```
- `PI.ZW.zeta1_eq_sub_one_mul_riemannZeta_of_ne_one`: Away from s = 1, the regularized function equals (s − 1)ζ(s).

  ```lean
  lemma zeta1_eq_sub_one_mul_riemannZeta_of_ne_one {s : ℂ} (hs : s ≠ 1) : zeta1 s = (s - 1) * riemannZeta s := …
  ```
- `PI.ZW.zeta1_apply_one`: The regularized function takes the value 1 at s = 1.

  ```lean
  lemma zeta1_apply_one : zeta1 1 = 1 := …
  ```
- `PI.ZW.order_zeta1`: At every point s ≠ 1, the regularized function and ζ have the same order of vanishing.

  ```lean
  lemma order_zeta1 {s : ℂ} (hs : s ≠ 1) :
      analyticOrderNatAt zeta1 s = analyticOrderNatAt riemannZeta s := …
  ```

### Formalism.LFunctionBounds.Statement

14 import steps from Main · 127 lines · Checked against the code · [Open in the Lean viewer](https://riemannhypothesissolved.com/file/Formalism.LFunctionBounds.Statement)

**Defines weighted triple sums, odd-character period identities, zero-density bounds, and zeta nonvanishing criteria.**

Weights on ordered positive triples summing to ℓ define coefficients via coordinate counts and L(0, χ). For odd prime ℓ, the period identity expands a sawtooth sum in odd characters and relates weighted log gamma ratios corrected by −log ℓ to L′/L at 1. A proposition prescribes zero coefficients on small inversion-stable sets of odd characters, and two density bounds count characters with zeros on specified sets. Three criteria assert zeta nonvanishing in Re(s) > θ from pointwise, Chebyshev-averaged, or finite-range upper bounds on corrected smoothed von Mangoldt sums. PositivityBound uses the triples in its positivity hypothesis and Al in its asymptotic estimate.

Key declarations:

- `Formalism.FX.PeriodIdentity`: For probability weights on triples summing to an odd prime ℓ, the proposition expands the weighted sawtooth sum away from multiples of ℓ in conjugates of odd characters, requires the coefficients to sum to one and conjugate under inversion, and equates the weighted sum of log gamma ratios corrected by −log ℓ to the Euler–Mascheroni constant plus log(2π/ℓ) minus the weighted sum of L′(1, χ⁻¹)/L(1, χ⁻¹).

  ```lean
  def PeriodIdentity : Prop := …
  ```
- `Formalism.FX.KillingLemma`: For every ε > 0 and all sufficiently large primes ℓ, every inversion-stable set of at most ℓ^(1−ε) odd characters admits probability weights on the triples for which all its coefficients cW vanish.

  ```lean
  def KillingLemma : Prop :=
    ∀ ε : ℝ, 0 < ε → ∃ l₀ : ℕ, ∀ (l : ℕ) [NeZero l], l.Prime → l₀ ≤ l →
      ∀ BB : Finset (DirichletCharacter ℂ l), BB ⊆ oddChars l → (∀ χ ∈ BB, χ⁻¹ ∈ BB) →
        (BB.card : ℝ) ≤ (l : ℝ) ^ (1 - ε) →
        ∃ ν : ℕ × ℕ × ℕ → ℝ, IsProb l ν ∧ ∀ χ ∈ BB, cW l ν χ = 0
  ```
- `Formalism.FX.DensityRect`: For each 1/2 < θ < 1 there is δ > 0 such that for every T ≥ 1 the number of characters modulo a prime ℓ with a zero in Re(s) ≥ θ and |Im(s)| ≤ T is at most Cℓ^(1−δ), with C independent of ℓ.

  ```lean
  def DensityRect : Prop :=
    ∀ θ : ℝ, 1 / 2 < θ → θ < 1 → ∃ δ : ℝ, 0 < δ ∧ ∀ T : ℝ, 1 ≤ T → ∃ C : ℝ,
      ∀ (l : ℕ) [NeZero l], l.Prime → ((zeroCharsRect l θ T).card : ℝ) ≤ C * (l : ℝ) ^ (1 - δ)
  ```
- `Formalism.FX.FixedLW3`: For 1/2 ≤ θ < 1, the proposition implies zeta nonvanishing in Re(s) > θ if there are arbitrarily large primes ℓ each admitting, for every ε > 0 and all sufficiently large x, a positive natural m ≥ x^(1−θ−ε) giving a Chebyshev-averaged upper error bound Cx^(θ+ε) uniform over triples.

  ```lean
  def FixedLW3 : Prop :=
    ∀ θ : ℝ, 1 / 2 ≤ θ → θ < 1 →
    (∀ L₀ : ℕ, ∃ l : ℕ, L₀ ≤ l ∧ l.Prime ∧
      ∀ ε : ℝ, 0 < ε → ∃ C x₀ : ℝ, ∀ x : ℝ, x₀ ≤ x → ∃ m : ℕ, 0 < m ∧ x ^ (1 - θ - ε) ≤ m ∧
        ∀ S ∈ triples l,
          chebyshevWeightedAverage m x (fun y => AS l S y + 2 * Al l y) ≤ chebyshevWeightedAverage m x (tripleMainTerm l S) + C * x ^ (θ + ε)) →
    ∀ s : ℂ, θ < s.re → riemannZeta s ≠ 0
  ```
- `Formalism.FX.Theorem7`: For 1/2 ≤ θ < 1, an upper error bound x^(θ+ε) uniform over triples and over ℓ^(1/ε) ≤ x ≤ ℓ^(1300/ε) implies zeta nonvanishing in Re(s) > θ if the bound holds at arbitrarily large prime moduli ℓ for each ε > 0.

  ```lean
  def Theorem7 : Prop :=
    ∀ θ : ℝ, 1 / 2 ≤ θ → θ < 1 →
    (∀ ε : ℝ, 0 < ε → ∀ L₀ : ℕ, ∃ l : ℕ, L₀ ≤ l ∧ l.Prime ∧
      ∀ S ∈ triples l, ∀ x : ℝ, (l : ℝ) ^ (1 / ε) ≤ x → x ≤ (l : ℝ) ^ (1300 / ε) →
        AS l S x + 2 * Al l x ≤ tripleMainTerm l S x + x ^ (θ + ε)) →
    ∀ s : ℂ, θ < s.re → riemannZeta s ≠ 0
  ```

### Formalism.PeriodIntegrals.UnitaryGroupMassFormula.ExplicitFormula.ContinuousInvSqrt

14 import steps from Main · 240 lines · Checked against the code · [Open in the Lean viewer](https://riemannhypothesissolved.com/file/Formalism.PeriodIntegrals.UnitaryGroupMassFormula.ExplicitFormula.ContinuousInvSqrt)

**Bounds the two horizontal edges and the left edge in a rectangular shift of the Perron contour.**

The horizontal estimates use the pointwise bound uᶜ/T′ for the Perron kernel uˢ/s on the edges at heights ±T′. On the left edge Re(s) = −1/2, the proof integrates the kernel majorant 2/√(1 + 4t²) exactly and bounds the resulting inverse hyperbolic sine by a logarithm. After canceling the right-edge integral against the normalized Perron integral, it combines the three edge estimates with constant 21C₁ + 8C₂. The direct importer uses this result to supply the contour-side estimate for the explicit formula.

Key declarations:

- `PI.EF.PK.integral_inv_sqrt`: The oriented integral of 2/√(1 + 4t²) from −T to T equals 2 arsinh(2T).

  ```lean
  lemma integral_inv_sqrt (T : ℝ) :
      ∫ t in -T..T, 2 * (√(1 + (2 * t) ^ 2))⁻¹ = 2 * Real.arsinh (2 * T) := …
  ```
- `PI.EF.PK.hor_side`: If |G(s)| ≤ A on a horizontal segment at height ±T′ from real part −1/2 to c, the integral of G(s)uˢ/s along that segment has absolute value at most A(uᶜ/T′)(c + 1/2) for c ≥ −1/2, u ≥ 1 and T′ > 0.

  ```lean
  lemma hor_side (G : ℂ → ℂ) (u c T' A h : ℝ) (hu : 1 ≤ u) (hc : -1 / 2 ≤ c) (hT'0 : 0 < T')
      (hA : 0 ≤ A) (hh : |h| = T') (hb : ∀ σ : ℝ, -1 / 2 ≤ σ → σ ≤ c → ‖G ((σ : ℂ) + h * I)‖ ≤ A) :
      ‖∫ x : ℝ in (-1 / 2)..c, G ((x : ℂ) + h * I) * ((u : ℂ) ^ ((x : ℂ) + h * I) / ((x : ℂ) + h * I))‖ ≤
        A * (u ^ c / T') * (c - -1 / 2) := …
  ```
- `PI.EF.PK.left_side`: If |G(−1/2 + it)| ≤ K₂ for |t| ≤ T′, the integral of G(−1/2 + it)u⁻¹ᐟ²⁺ⁱᵗ/(−1/2 + it) with respect to t has absolute value at most 2K₂ arsinh(2T′) for u ≥ 1 and T′ > 0.

  ```lean
  lemma left_side (G : ℂ → ℂ) (u T' K2 : ℝ) (hu : 1 ≤ u) (hT'0 : 0 < T') (hK20 : 0 ≤ K2)
      (hb : ∀ t : ℝ, |t| ≤ T' → ‖G (((-1 / 2 : ℝ) : ℂ) + t * I)‖ ≤ K2) :
      ‖∫ t : ℝ in -T'..T', G (((-1 / 2 : ℝ) : ℂ) + t * I) *
          ((u : ℂ) ^ (((-1 / 2 : ℝ) : ℂ) + t * I) / (((-1 / 2 : ℝ) : ℂ) + t * I))‖ ≤
        K2 * (2 * Real.arsinh (2 * T')) := …
  ```
- `PI.EF.PK.vert_cancel`: Multiplying the normalized Perron integral by 2πi gives the negative of the upward right-edge contour integral.

  ```lean
  lemma vert_cancel (G k : ℝ → ℂ) (T' : ℝ) :
      2 * π * I * ((1 / (2 * Real.pi) : ℂ) * ∫ t : ℝ in -T'..T', -G t * k t) =
        -(I * ∫ t : ℝ in -T'..T', G t * k t) := …
  ```
- `PI.EF.PK.sidesBound_of`: For primitive characters modulo N and heights T ≤ T′ ≤ T + 1 with 2 ≤ T ≤ u satisfying GoodHeight, so T′ differs from each absolute critical-strip zero ordinate by at least 1/(κ log(NT′)), horizontal and left-edge logarithmic derivative bounds with nonnegative constants C₁ and C₂ yield a bound of (21C₁ + 8C₂)(u log²(NuT)/T + log(Nu)) for the absolute value of the combined three-edge contribution.

  ```lean
  theorem sidesBound_of {κ C1 C2 : ℝ} (hC1 : 0 ≤ C1) (hC2 : 0 ≤ C2) (hH : LogDerivHoriz κ C1)
      (hL : LogDerivLeft C2) : SidesBound κ (21 * C1 + 8 * C2) := …
  ```

### Formalism.PeriodIntegrals.UnitaryGroupMassFormula.ExplicitFormula.Contour

14 import steps from Main · 130 lines · Checked against the code · [Open in the Lean viewer](https://riemannhypothesissolved.com/file/Formalism.PeriodIntegrals.UnitaryGroupMassFormula.ExplicitFormula.Contour)

**Derives a rectangular contour identity for the logarithmic derivative of a primitive Dirichlet L-function weighted by the Perron kernel.**

The zero-locus hypothesis and the choice of height ensure that the boundary avoids zeros and the point s = 1, so the proof can evaluate the assumed logarithmic derivative expansion on the boundary and multiply it by uˢ/s, using a regular part complex-differentiable on the rectangle. The proof applies the supplied rectangular residue identity to the finite set of critical-strip zeros inside the contour and includes s = 1 with weight −1 for the principal character and weight zero otherwise. The direct importer uses this contour identity to assemble the truncated explicit formula.

Key declarations:

- `PI.EF.mem_rect_iff`: A complex number belongs to the closed rectangle exactly when its real and imaginary parts lie in the corresponding closed intervals.

  ```lean
  lemma mem_rect_iff {x₀ x₁ y₀ y₁ : ℝ} {s : ℂ} :
      s ∈ rect x₀ x₁ y₀ y₁ ↔ (x₀ ≤ s.re ∧ s.re ≤ x₁) ∧ (y₀ ≤ s.im ∧ s.im ≤ y₁) := …
  ```
- `PI.EF.rectInt_congr_sides`: Two integrands that agree on all four sides of a rectangle have equal boundary integrals.

  ```lean
  lemma rectInt_congr_sides {f g : ℂ → ℂ} {x₀ x₁ y₀ y₁ : ℝ} (hx : x₀ ≤ x₁) (hy : y₀ ≤ y₁)
      (h : ∀ s ∈ rect x₀ x₁ y₀ y₁, (s.re = x₀ ∨ s.re = x₁ ∨ s.im = y₀ ∨ s.im = y₁) → f s = g s) :
      rectInt f x₀ x₁ y₀ y₁ = rectInt g x₀ x₁ y₀ y₁ := …
  ```
- `PI.EF.glueContour`: Given the rectangular residue identity, the zero-locus condition, and finiteness of the truncated zero set, for primitive χ, u ≥ 2, T′ ≥ 2 avoiding absolute critical-strip zero ordinates and a supplied IsRegPart expansion with complex-differentiable regular part H, the contour integral of (L′/L)(s, χ)uˢ/s around [−1/2, 1 + 1/log u] × [−T′, T′] equals 2πi times the sum of H(0), the multiplicity-weighted terms (u^ρ − 1)/ρ over critical-strip zeros with |Im(ρ)| < T′, a term log u for even nonprincipal χ, and a term −(u − 1) for principal χ, where H is the regular part.

  ```lean
  theorem glueContour : GlueContour := …
  ```

### Formalism.PeriodIntegrals.UnitaryGroupMassFormula.ExplicitFormula.ExplicitFormulaFromGluing

14 import steps from Main · 99 lines · Checked against the code · [Open in the Lean viewer](https://riemannhypothesissolved.com/file/Formalism.PeriodIntegrals.UnitaryGroupMassFormula.ExplicitFormula.ExplicitFormulaFromGluing)

**Derives the truncated explicit formula for primitive Dirichlet characters from Perron, contour-shift, and zero-sum change bounds.**

For 2 ≤ T ≤ u, the proof chooses an admissible T′ in [T, T + 1] and writes the discrepancy at T as the sum of the Perron truncation and contour-shift errors at T′ minus the change in the zero sum from T to T′. The triangle inequality gives the sum of the three error constants, retaining the sum of mρ/|ρ| over open-strip zeros with |Im ρ| < 1, where mρ is the multiplicity. A second theorem derives the formula from Perron kernel and summation estimates, rectangle integration, and hypotheses on zeros and growth of Dirichlet L-functions via the stated implications. Assemble supplies the estimates to the first theorem.

Key declarations:

- `PI.EF.explicitFormula_of_perron_shift`: Truncated Perron inversion, a contour-shift bound, existence of admissible heights, control of changes in the zero sum, and finiteness of truncated zero sets together give the explicit formula with constant C₁ + C₂ + C₄, where these are the Perron, contour-shift, and zero-sum change constants.

  ```lean
  theorem explicitFormula_of_perron_shift (κ : ℝ) (h1 : ∃ C, 0 < C ∧ PerronL C)
      (h2 : ∃ C, 0 < C ∧ ShiftBound κ C) (h3 : GoodHeightExists κ)
      (h4 : ∃ C, 0 < C ∧ TruncChange C) (h5 : ZerosFinite) : PI.ExplicitFormula := …
  ```
- `PI.EF.explicitFormula_of_leaves`: The explicit formula follows from the stated Perron kernel and summation estimates, rectangular Cauchy identity, zero-locus and regular-part properties, zero-window bound, local disc estimate, and strip growth bound, given the implications connecting these hypotheses to the required estimates.

  ```lean
  theorem explicitFormula_of_leaves
  
      (hK : PerronKernel) (hPS : ∃ C, 0 < C ∧ PerronSumBound C) (hRC : RectCauchy)
      (hZL : ZeroLocus) (hRP : RegularPart) (hZW : PI.ZerosWindow) (hLA : LocalAbstract)
      (hG : ∃ A C, 0 < A ∧ 0 < C ∧ LGrowth A C)
  
      (g1 : GluePerronTrunc) (g2 : GluePerronL) (g3 : GlueRectResidue) (g4 : GlueGoodHeight)
      (g5 : GlueTruncChange) (g6 : GlueZerosFinite) (g7 : GlueLocalLemma) (g8 : GlueHoriz)
      (g9 : GlueLeft) (g10 : GlueRegAtZero) (g11 : GlueContour) (g12 : GlueSides) (g13 : GlueShift) :
      PI.ExplicitFormula := …
  ```
- `PI.EF.GlueLocalLemma`: This proposition states that a nested-disc estimate, polynomial strip growth with the principal pole cleared, the zero-locus condition, and a zero-window bound imply a uniform logarithmic bound for the local log-derivative remainder after the nearby-zero and s = 0 and s = 1 corrections.

  ```lean
  def GlueLocalLemma : Prop :=
    LocalAbstract → (∃ A C, 0 < A ∧ 0 < C ∧ LGrowth A C) → ZeroLocus → PI.ZerosWindow →
      ∃ C, 0 < C ∧ LocalLemma C
  ```
- `PI.EF.GlueSides`: This proposition states that for any positive height-separation parameter, horizontal and left-edge logarithmic derivative bounds imply a bound on the norm of the combined oriented contribution of the three edges after the right edge cancels.

  ```lean
  def GlueSides : Prop :=
    ∀ κ, 0 < κ → (∃ C, 0 < C ∧ LogDerivHoriz κ C) → (∃ C, 0 < C ∧ LogDerivLeft C) →
      ∃ C, 0 < C ∧ SidesBound κ C
  ```
- `PI.EF.GlueShift`: This proposition states that for any positive height-separation parameter, a regular-part decomposition, a rectangular contour identity, a contour-side bound, and a bound on the difference between the multiplicity-weighted truncated reciprocal-zero sum and the regular part at zero imply a contour-shift bound.

  ```lean
  def GlueShift : Prop :=
    ∀ κ, 0 < κ → RegularPart → ContourIdentity → (∃ C, 0 < C ∧ SidesBound κ C) →
      (∃ C, 0 < C ∧ RegAtZero C) → ∃ C, 0 < C ∧ ShiftBound κ C
  ```

### Formalism.PeriodIntegrals.UnitaryGroupMassFormula.ExplicitFormula.GoodHeight

14 import steps from Main · 349 lines · Checked against the code · [Open in the Lean viewer](https://riemannhypothesissolved.com/file/Formalism.PeriodIntegrals.UnitaryGroupMassFormula.ExplicitFormula.GoodHeight)

**Uses a zero-window bound to find a height away from absolute critical-strip zero ordinates and bound changes in the truncated zero sum.**

The height-selection proof bounds the number of distinct absolute ordinates in the windows centered at ±(T + 1/2), then uses the pigeonhole principle on an equally spaced grid in [T, T + 1] to find a height separated from those ordinates. The same two windows bound the total multiplicity of the zeros added when the cutoff moves from T to T′, and each such zero satisfies |u^ρ/ρ| ≤ u/T. The direct importer Assemble uses the resulting height-separation and truncation-change estimates in the explicit formula.

Key declarations:

- `PI.EF.exists_far_point`: For any finite set S of real numbers, each closed interval of length one contains a point at distance at least 1/(2(|S| + 1)) from every element of S.

  ```lean
  theorem exists_far_point (S : Finset ℝ) (a : ℝ) :
      ∃ x ∈ Set.Icc a (a + 1), ∀ y ∈ S, 1 / (2 * ((S.card : ℝ) + 1)) ≤ |x - y| := …
  ```
- `PI.EF.zerosBelow_finite`: The zero-window hypothesis implies that the critical-strip zeros of a primitive Dirichlet L-function with |Im(ρ)| < T form a finite set.

  ```lean
  theorem zerosBelow_finite {C : ℝ} (hC : ZerosWindowWith C) {N : ℕ} [NeZero N]
      (χ : DirichletCharacter ℂ N) (hχ : χ.IsPrimitive) (T : ℝ) : (ZerosBelow χ T).Finite := …
  ```
- `PI.EF.exists_good_height`: For a primitive character modulo N, a zero-window bound with constant C ≥ 0 gives, for every T ≥ 0, a height T′ in [T, T + 1] at distance at least 1/(4C log(N(T + 3)) + 2) from every absolute critical-strip zero ordinate.

  ```lean
  theorem exists_good_height {C : ℝ} (hC0 : 0 ≤ C) (hC : ZerosWindowWith C) {N : ℕ} [NeZero N]
      (χ : DirichletCharacter ℂ N) (hχ : χ.IsPrimitive) {T : ℝ} (hT : 0 ≤ T) :
      ∃ T' ∈ Set.Icc T (T + 1), ∀ ρ : ℂ, 0 < ρ.re → ρ.re < 1 → LFunction χ ρ = 0 →
        1 / (2 * (2 * C * Real.log (N * (T + 3)) + 1)) ≤ |(|ρ.im|) - T'| := …
  ```
- `PI.EF.trunc_change`: For T > 0, T ≤ T′ ≤ T + 1, and u ≥ 1, moving the cutoff from T to T′ changes the multiplicity-weighted sum of u^ρ/ρ by at most 2C log(N(T + 3))u/T.

  ```lean
  theorem trunc_change {C : ℝ} (hC0 : 0 ≤ C) (hC : ZerosWindowWith C) {N : ℕ} [NeZero N]
      (χ : DirichletCharacter ℂ N) (hχ : χ.IsPrimitive) {T T' u : ℝ} (hT : 0 < T)
      (hT' : T' ∈ Set.Icc T (T + 1)) (hu : 1 ≤ u) :
      ‖(∑ᶠ ρ ∈ ZerosBelow χ T', (mult χ ρ : ℂ) * ((u : ℂ) ^ ρ / ρ)) -
          ∑ᶠ ρ ∈ ZerosBelow χ T, (mult χ ρ : ℂ) * ((u : ℂ) ^ ρ / ρ)‖ ≤
        2 * C * Real.log (N * (T + 3)) * (u / T) := …
  ```
- `PI.EF.goodHeightExists_of`: For T ≥ 2, the zero-window bound with constant C ≥ 0 gives a height T′ in [T, T + 1] separated from every absolute critical-strip zero ordinate by at least 1/((12C + 4) log(NT′)).

  ```lean
  theorem goodHeightExists_of {C : ℝ} (hC0 : 0 ≤ C) (hC : ZerosWindowWith C) :
      GoodHeightExists (12 * C + 4) := …
  ```

### Formalism.PeriodIntegrals.UnitaryGroupMassFormula.ExplicitFormula.GoodHeightExists

14 import steps from Main · 180 lines · Checked against the code · [Open in the Lean viewer](https://riemannhypothesissolved.com/file/Formalism.PeriodIntegrals.UnitaryGroupMassFormula.ExplicitFormula.GoodHeightExists)

**Defines the sums, contour integrals, and estimates used to assemble the truncated explicit formula for primitive Dirichlet characters.**

The definitions specify the separation required of a truncation height, the Perron approximation to the twisted von Mangoldt sum, and the estimates for moving the contour and changing the zero cutoff. GoodHeight proves the height-selection and truncation-change estimates, and Contour derives ContourIdentity from the rectangle residue, zero-locus, and zero-finiteness hypotheses.

Key declarations:

- `PI.EF.GoodHeightExists`: For every primitive character modulo N and T ≥ 2, this condition requires a height T′ in [T, T + 1] at distance at least 1/(κ log(NT′)) from every absolute critical-strip zero ordinate.

  ```lean
  def GoodHeightExists (κ : ℝ) : Prop :=
    ∀ (N : ℕ) [NeZero N] (χ : DirichletCharacter ℂ N), χ.IsPrimitive → ∀ T : ℝ, 2 ≤ T →
      ∃ T' : ℝ, T ≤ T' ∧ T' ≤ T + 1 ∧ GoodHeight χ κ T'
  ```
- `PI.EF.PerronL`: This condition bounds the difference between the twisted von Mangoldt sum through u and its truncated Perron integral at height T′ by C times u log²(NuT)/T + log(Nu), for 2 ≤ T ≤ u and T ≤ T′ ≤ T + 1.

  ```lean
  def PerronL (C : ℝ) : Prop :=
    ∀ (N : ℕ) [NeZero N] (χ : DirichletCharacter ℂ N) (u T T' : ℝ), 2 ≤ T → T ≤ u → T ≤ T' → T' ≤ T + 1 →
      ‖psiRaw χ u - vertInt χ u T'‖ ≤ C * Err N u T
  ```
- `PI.EF.LocalLemma`: For primitive characters modulo N ≥ 1, this condition bounds the error in approximating L′/L on −1/2 ≤ Re(s) ≤ 3, away from zeros and s = 1, by the multiplicity-weighted pole sum over critical-strip zeros within one unit of Im(s), plus 1/s for even nonprincipal characters and minus 1/(s − 1) for principal characters, with error at most C log(N(|Im(s)| + 2)).

  ```lean
  def LocalLemma (C : ℝ) : Prop :=
    ∀ (N : ℕ) [NeZero N] (χ : DirichletCharacter ℂ N), χ.IsPrimitive → ∀ s : ℂ, -1 / 2 ≤ s.re → s.re ≤ 3 →
      DirichletCharacter.LFunction χ s ≠ 0 → s ≠ 1 →
      ‖logDeriv (DirichletCharacter.LFunction χ) s -
          (∑ᶠ ρ ∈ ZerosNear χ s.im, (mult χ ρ : ℂ) / (s - ρ)) - eps0 χ / s + del1 χ / (s - 1)‖ ≤
        C * Real.log (N * (|s.im| + 2))
  ```
- `PI.EF.ContourIdentity`: For primitive χ of positive modulus, u,T′ ≥ 2, no critical-strip zero ordinate of absolute value T′, and a regular part H on the Perron rectangle, this proposition requires the boundary integral of (L′/L)(s, χ)uˢ/s to equal 2πi times the sum of H(0), the multiplicity-weighted terms (u^ρ − 1)/ρ over critical-strip zeros with |Im(ρ)| < T′, and the applicable parity and principal-character terms.

  ```lean
  def ContourIdentity : Prop :=
    ∀ (N : ℕ) [NeZero N] (χ : DirichletCharacter ℂ N), χ.IsPrimitive → ∀ (u T' : ℝ) (H : ℂ → ℂ), 2 ≤ u →
      2 ≤ T' → NoOrdinate χ T' → IsRegPart χ (cLine u) T' H →
        rectInt (fun s => logDeriv (DirichletCharacter.LFunction χ) s * ((u : ℂ) ^ s / s))
            (-1 / 2) (cLine u) (-T') T' =
          2 * Real.pi * I * (H 0 + zsum χ T' u - (∑ᶠ ρ ∈ ZerosBelow χ T', (mult χ ρ : ℂ) / ρ) +
            eps0 χ * Real.log u - del1 χ * (u - 1))
  ```
- `PI.EF.ShiftBound`: For primitive χ of positive modulus, 2 ≤ T ≤ u, and T ≤ T′ ≤ T + 1 satisfying GoodHeight χ κ T′, this condition bounds the discrepancy between the Perron integral at height T′ corrected by the principal-character main term and the negative truncated zero sum by C times the sum of u log²(NuT)/T, log(Nu), and the multiplicity-weighted reciprocal magnitudes of critical-strip zeros with |Im(ρ)| < 1.

  ```lean
  def ShiftBound (κ C : ℝ) : Prop :=
    ∀ (N : ℕ) [NeZero N] (χ : DirichletCharacter ℂ N), χ.IsPrimitive →
      ∀ u T T' : ℝ, 2 ≤ T → T ≤ u → T ≤ T' → T' ≤ T + 1 → GoodHeight χ κ T' →
        ‖vertInt χ u T' - del1 χ * u + zsum χ T' u‖ ≤ C * (Err N u T + S1 χ)
  ```

### Formalism.PeriodIntegrals.UnitaryGroupMassFormula.ExplicitFormula.LGrowthMain

14 import steps from Main · 101 lines · Checked against the code · [Open in the Lean viewer](https://riemannhypothesissolved.com/file/Formalism.PeriodIntegrals.UnitaryGroupMassFormula.ExplicitFormula.LGrowthMain)

**Derives polynomial bounds on −4 ≤ Re(s) ≤ 8 for primitive Dirichlet L-functions from right-half-plane and pole-cleared zeta bounds.**

On 1/2 ≤ Re(s) ≤ 8, the assumed right-half-plane estimate gives a linear bound in N(|Im(s)| + 2) for nonprincipal characters. For primitive nonprincipal characters to the left of Re(s) = 1/2, the proof uses the functional equation to bound L(s, χ) in terms of L(1 − s, χ⁻¹) and applies the same right-hand estimate there. The primitive principal character has modulus one, so its contribution is bounded by the assumed strip estimate for (s − 1)ζ(s). The direct importer specializes the combined bound using its zeta estimate.

Key declarations:

- `PI.EF.L_right`: The assumed right-half-plane bound gives |L(s, χ)| ≤ 37N(|Im(s)| + 2) for every nonprincipal character modulo N on 1/2 ≤ Re(s) ≤ 8.

  ```lean
  theorem L_right (hB : PI.LBoundRight) {χ : DirichletCharacter ℂ N} (hχ1 : χ ≠ 1) {w : ℂ}
      (h1 : 1 / 2 ≤ w.re) (h2 : w.re ≤ 8) :
      ‖LFunction χ w‖ ≤ 37 * ((N : ℝ) * (|w.im| + 2)) := …
  ```
- `PI.EF.L_nontriv_growth`: Under the same assumption, every primitive nonprincipal character modulo N satisfies |L(s, χ)| ≤ 53946·(N(|Im(s)| + 2))⁷ on −4 ≤ Re(s) ≤ 8.

  ```lean
  theorem L_nontriv_growth (hB : PI.LBoundRight) {χ : DirichletCharacter ℂ N} (hχ : χ.IsPrimitive)
      (hχ1 : χ ≠ 1) {s : ℂ} (h1 : -4 ≤ s.re) (h2 : s.re ≤ 8) :
      ‖LFunction χ s‖ ≤ 53946 * ((N : ℝ) * (|s.im| + 2)) ^ 7 := …
  ```
- `PI.EF.lGrowth_of`: Given the right-half-plane bound and a strip bound of C(|Im(s)| + 2)⁷ for |(s − 1)ζ(s)|, the theorem bounds |L(s, χ)| for primitive nonprincipal χ and |(s − 1)L(s, χ)| for primitive principal χ by max(C, 53946)·(N(|Im(s)| + 2))⁷ on −4 ≤ Re(s) ≤ 8.

  ```lean
  theorem lGrowth_of (hB : PI.LBoundRight) {C : ℝ} (hZ : ZetaGrowth C) :
      LGrowth 7 (max C 53946) := …
  ```

### Formalism.PeriodIntegrals.UnitaryGroupMassFormula.ExplicitFormula.LGrowthZeta

14 import steps from Main · 136 lines · Checked against the code · [Open in the Lean viewer](https://riemannhypothesissolved.com/file/Formalism.PeriodIntegrals.UnitaryGroupMassFormula.ExplicitFormula.LGrowthZeta)

**Derives an explicit polynomial bound for (s − 1)ζ(s) on the strip −4 ≤ Re(s) ≤ 8 from an assumed right-half-plane bound for ζ.**

Multiplying the assumed estimate by |s − 1| gives quadratic growth on the right of Re(s) = 1/2, including the dividing line. To the left, the proof specializes the Dirichlet L-function functional equation estimate to modulus one and applies the right-half-plane bound at 1 − s where |s| ≥ 1/2. The maximum modulus principle extends a uniform boundary estimate to the disc |s| < 1/2. The direct importer uses the resulting strip bound to handle the principal character in the primitive Dirichlet L-function growth estimate.

Key declarations:

- `PI.EF.zeta_one_sub_le`: For 1/2 ≤ Re(w) ≤ 5 and w ≠ 1, the reflected value satisfies |ζ(1 − w)| ≤ 6|w + 1|⁵|ζ(w)|.

  ```lean
  theorem zeta_one_sub_le {w : ℂ} (h1 : 1 / 2 ≤ w.re) (h2 : w.re ≤ 5) (h : w ≠ 1) :
      ‖riemannZeta (1 - w)‖ ≤ 6 * ‖w + 1‖ ^ 5 * ‖riemannZeta w‖ := …
  ```
- `PI.EF.zeta_right`: Under the assumed right-half-plane bound, |(s − 1)ζ(s)| ≤ 51(|Im(s)| + 2)² on 1/2 ≤ Re(s) ≤ 8.

  ```lean
  theorem zeta_right (hZ : PI.ZetaBoundRight) {s : ℂ} (h1 : 1 / 2 ≤ s.re) (h2 : s.re ≤ 8) :
      ‖(s - 1) * riemannZeta s‖ ≤ 51 * (|s.im| + 2) ^ 2 := …
  ```
- `PI.EF.zeta_left`: Under the same assumption, |(s − 1)ζ(s)| ≤ 48114(|Im(s)| + 2)⁷ when −4 ≤ Re(s) < 1/2 and |s| ≥ 1/2.

  ```lean
  theorem zeta_left (hZ : PI.ZetaBoundRight) {s : ℂ} (h1 : -4 ≤ s.re) (h2 : s.re < 1 / 2)
      (h3 : 1 / 2 ≤ ‖s‖) : ‖(s - 1) * riemannZeta s‖ ≤ 48114 * (|s.im| + 2) ^ 7 := …
  ```
- `PI.EF.zetaGrowth_of`: Under the same assumption, |(s − 1)ζ(s)| ≤ 300000(|Im(s)| + 2)⁷ throughout −4 ≤ Re(s) ≤ 8.

  ```lean
  theorem zetaGrowth_of (hZ : PI.ZetaBoundRight) : ZetaGrowth 300000 := …
  ```

### Formalism.PeriodIntegrals.UnitaryGroupMassFormula.ExplicitFormula.LStructC

14 import steps from Main · 196 lines · Checked against the code · [Open in the Lean viewer](https://riemannhypothesissolved.com/file/Formalism.PeriodIntegrals.UnitaryGroupMassFormula.ExplicitFormula.LStructC)

**Proves truncated zero-set finiteness and a Perron rectangle regular-part decomposition via an entire Dirichlet L-function regularization.**

Lent is entire and agrees with L(s, χ) for nonprincipal characters and with (s − 1)L(s, χ) away from 1 for the principal character, preserving zero multiplicities away from 1. Its nonvanishing at 2 gives finiteness of the truncated critical-strip zeros by compactness. On a rectangle whose horizontal edges avoid zero ordinates, subtracting the strip-zero terms and the term at 0 for even nonprincipal χ from the logarithmic derivative of Lent leaves a holomorphic remainder. Returning to the original logarithmic derivative adds the principal-character correction at 1. Assemble uses these results for the contour identity and the contour-shift bound.

Key declarations:

- `PI.EF.differentiable_Lent`: The pole-cleared function is entire for every Dirichlet character.

  ```lean
  lemma differentiable_Lent (χ : DirichletCharacter ℂ N) : Differentiable ℂ (Lent χ) := …
  ```
- `PI.EF.order_Lent`: At every point other than s = 1, the pole-cleared function and the original L-function have the same order of vanishing.

  ```lean
  lemma order_Lent (χ : DirichletCharacter ℂ N) {s : ℂ} (hs : s ≠ 1) :
      analyticOrderNatAt (Lent χ) s = analyticOrderNatAt (LFunction χ) s := …
  ```
- `PI.EF.logDeriv_Lent`: Away from zeros and s = 1, the logarithmic derivative of the original L-function equals that of the entire function minus 1/(s − 1) for the principal character, with no correction for nonprincipal characters.

  ```lean
  lemma logDeriv_Lent (χ : DirichletCharacter ℂ N) {s : ℂ} (hs : s ≠ 1) (h0 : LFunction χ s ≠ 0) :
      logDeriv (LFunction χ) s = logDeriv (Lent χ) s - del1 χ / (s - 1) := …
  ```
- `PI.EF.zerosFinite`: For every primitive character and every real T, the zeros with 0 < Re(ρ) < 1 and |Im(ρ)| < T form a finite set.

  ```lean
  theorem zerosFinite : ZerosFinite := …
  ```
- `PI.EF.regularPart`: For a primitive character, x₁ > 1, and T′ > 0 avoiding absolute critical-strip zero ordinates, the logarithmic derivative on the rectangle [−1/2, x₁] × [−T′, T′], away from zeros and s = 1, is the sum of a holomorphic remainder, the multiplicity-weighted terms 1/(s − ρ) for critical-strip zeros below T′ in absolute ordinate, 1/s for even nonprincipal characters, and −1/(s − 1) for the principal character.

  ```lean
  theorem regularPart : RegularPart := …
  ```

### Formalism.PeriodIntegrals.UnitaryGroupMassFormula.ExplicitFormula.LocalAbstract

14 import steps from Main · 240 lines · Checked against the code · [Open in the Lean viewer](https://riemannhypothesissolved.com/file/Formalism.PeriodIntegrals.UnitaryGroupMassFormula.ExplicitFormula.LocalAbstract)

**Proves a logarithmic derivative estimate on nested discs with an explicit constant depending only on the three radii.**

The proof factors out the zeros in the intermediate disc and replaces their linear factors by reflected factors that preserve the modulus on the outer circle. The maximum modulus principle bounds the modified function and gives an upper bound for the total multiplicity of the factored zeros. A zero-free logarithmic derivative estimate for the modified function, together with bounds for the reflected factors, then controls the remainder after the zero terms are subtracted from f′/f. The direct importer LocalProofs uses this result to supply the abstract local estimate for the explicit formula.

Key declarations:

- `PI.EF.Loc.locC`: The radius-dependent constant is 4(r + R′)/(R′ − r)² + R′/[R(R − R′) log(R/R′)].

  ```lean
  def locC (r R' R : ℝ) : ℝ :=
    4 * (r + R') / (R' - r) ^ 2 + R' / (R * (R - R')) / Real.log (R / R')
  ```
- `PI.EF.Loc.gfun_bounds`: Under the disc factorization and outer growth hypotheses, the reflected product has growth at most exp(M) times its value in modulus at the center, and the total multiplicity of the factored zeros is at most M/log(R/R′).

  ```lean
  lemma gfun_bounds (hR' : 0 < R') (hR'R : R' < R)
      (hZ : ∀ ρ : ℂ, ρ ∈ Z ↔ (ρ ∈ closedBall s₀ R' ∧ f ρ = 0))
      (hh : DifferentiableOn ℂ h (closedBall s₀ R)) (hh0 : ∀ z ∈ closedBall s₀ R', h z ≠ 0)
      (hfac : ∀ z ∈ closedBall s₀ R, f z = (∏ ρ ∈ Z, (z - ρ) ^ m ρ) * h z)
      (hb : ∀ s ∈ closedBall s₀ R, ‖f s‖ ≤ Real.exp M * ‖f s₀‖) :
      (∀ z ∈ closedBall s₀ R, ‖gfun s₀ R Z m h z‖ ≤ Real.exp M * ‖gfun s₀ R Z m h s₀‖) ∧
        ((∑ ρ ∈ Z, m ρ : ℕ) : ℝ) * Real.log (R / R') ≤ M := …
  ```
- `PI.EF.Loc.core`: Given a disc factorization, the holomorphic logarithm hypothesis, and an outer growth bound with M > 0, the difference between f′/f and the sum of the factor terms m(ρ)/(s − ρ) has modulus at most locC(r, R′, R)·M on the inner closed disc wherever f(s) ≠ 0.

  ```lean
  theorem core (hDL : PI.DiscLog) (hr : 0 < r) (hrR' : r < R') (hR'R : R' < R) (hM : 0 < M)
      (hZ : ∀ ρ : ℂ, ρ ∈ Z ↔ (ρ ∈ closedBall s₀ R' ∧ f ρ = 0))
      (hh : DifferentiableOn ℂ h (closedBall s₀ R)) (hh0 : ∀ z ∈ closedBall s₀ R', h z ≠ 0)
      (hfac : ∀ z ∈ closedBall s₀ R, f z = (∏ ρ ∈ Z, (z - ρ) ^ m ρ) * h z)
      (hb : ∀ s ∈ closedBall s₀ R, ‖f s‖ ≤ Real.exp M * ‖f s₀‖) :
      ∀ s ∈ closedBall s₀ r, f s ≠ 0 →
        ‖logDeriv f s - ∑ ρ ∈ Z, (m ρ : ℂ) / (s - ρ)‖ ≤ locC r R' R * M := …
  ```
- `PI.EF.Loc.local_abstract`: Under the disc factorization and holomorphic logarithm hypotheses, a function holomorphic near the outer closed disc, nonzero at the center, and bounded there by exp(M) times its central modulus for M ≥ 0 has finitely many zeros in the intermediate closed disc, and their multiplicity-weighted pole sum approximates f′/f on the inner closed disc away from zeros with error at most locC(r, R′, R)·M.

  ```lean
  theorem local_abstract (hDF : PI.DiscFactor) (hDL : PI.DiscLog) {r R' R : ℝ} (hr : 0 < r)
      (hrR' : r < R') (hR'R : R' < R) (f : ℂ → ℂ) (s₀ : ℂ) (M : ℝ)
      (hf : AnalyticOnNhd ℂ f (closedBall s₀ R)) (hf0 : f s₀ ≠ 0) (hM : 0 ≤ M)
      (hb : ∀ s ∈ closedBall s₀ R, ‖f s‖ ≤ Real.exp M * ‖f s₀‖) :
      ({ρ | ρ ∈ closedBall s₀ R' ∧ f ρ = 0}).Finite ∧
        ∀ s ∈ closedBall s₀ r, f s ≠ 0 →
          ‖logDeriv f s - ∑ᶠ ρ ∈ {ρ | ρ ∈ closedBall s₀ R' ∧ f ρ = 0},
              (analyticOrderNatAt f ρ : ℂ) / (s - ρ)‖ ≤ locC r R' R * M := …
  ```

### Formalism.PeriodIntegrals.UnitaryGroupMassFormula.ExplicitFormula.LogDerivBounds

14 import steps from Main · 196 lines · Checked against the code · [Open in the Lean viewer](https://riemannhypothesissolved.com/file/Formalism.PeriodIntegrals.UnitaryGroupMassFormula.ExplicitFormula.LogDerivBounds)

**Derives logarithmic derivative bounds for primitive Dirichlet L-functions on the left and horizontal edges of the Perron rectangle.**

The proof combines a local expansion of L′/L with a multiplicity-weighted zero-window bound, controlling the nearby zero sum by the reciprocal of the distance to those zeros. On the left edge Re(s) = −1/2, a fixed distance of at least 1/2 gives a single logarithm, while at the admissible heights ±T′ the separation 1/(κ log(NT′)) gives a squared logarithm. The direct importer Assemble uses these estimates to bound the three contour sides that remain after cancellation of the Perron integral.

Key declarations:

- `PI.EF.norm_near_sum_le`: For a primitive character modulo N ≥ 1 with a zero-window bound of constant Cw, if all critical-strip zeros within one unit of Im(s) are at distance at least d > 0 from s, their multiplicity-weighted pole sum has modulus at most Cw log(N(|Im(s)| + 2))/d.

  ```lean
  theorem norm_near_sum_le {C : ℝ} (hC : ZerosWindowWith C) {N : ℕ} [NeZero N]
      (χ : DirichletCharacter ℂ N) (hχ : χ.IsPrimitive) (s : ℂ) {d : ℝ} (hd : 0 < d)
      (h : ∀ ρ ∈ ZerosNear χ s.im, d ≤ ‖s - ρ‖) :
      ‖∑ᶠ ρ ∈ ZerosNear χ s.im, (mult χ ρ : ℂ) / (s - ρ)‖ ≤
        C * Real.log (N * (|s.im| + 2)) / d := …
  ```
- `PI.EF.norm_logDeriv_le`: For a primitive character modulo N, at a nonzero value of L on −1/2 ≤ Re(s) ≤ 3 with |s| and |s − 1| at least 1/2 and nearby zeros at distance at least d > 0, the local estimate and zero-window bound give |L′/L| ≤ (Cl + Cw/d) log(N(|Im(s)| + 2)) + 4.

  ```lean
  theorem norm_logDeriv_le {Cw Cl : ℝ} (hW : ZerosWindowWith Cw) (hL : LocalLemma Cl) {N : ℕ} [NeZero N]
      (χ : DirichletCharacter ℂ N) (hχ : χ.IsPrimitive) (s : ℂ) (h1 : -1 / 2 ≤ s.re) (h2 : s.re ≤ 3)
      (h0 : LFunction χ s ≠ 0) (hs0 : 1 / 2 ≤ ‖s‖) (hs1 : 1 / 2 ≤ ‖s - 1‖) {d : ℝ} (hd : 0 < d)
      (h : ∀ ρ ∈ ZerosNear χ s.im, d ≤ ‖s - ρ‖) :
      ‖logDeriv (LFunction χ) s‖ ≤
        Cl * Real.log (N * (|s.im| + 2)) + Cw * Real.log (N * (|s.im| + 2)) / d + 4 := …
  ```
- `PI.EF.logDerivLeft_of`: For primitive characters modulo N ≥ 1, the zero-locus condition, zero-window bound with constant Cw, and local estimate with constant Cl give |L′/L| ≤ (Cl + 2Cw + 6) log(N(|t| + 2)) on s = −1/2 + it when Cw and Cl are nonnegative.

  ```lean
  theorem logDerivLeft_of {Cw Cl : ℝ} (hCw : 0 ≤ Cw) (hCl : 0 ≤ Cl) (hW : ZerosWindowWith Cw)
      (hL : LocalLemma Cl) (hZ : ZeroLocus) : LogDerivLeft (Cl + 2 * Cw + 6) := …
  ```
- `PI.EF.logDerivHoriz_of`: Under the same hypotheses with nonnegative Cw and Cl, for a primitive character modulo N ≥ 1 at any height T′ ≥ 2 satisfying the separation condition with κ > 0, both edges s = σ ± iT′ for −1/2 ≤ σ ≤ 3 satisfy |L′/L| ≤ (4Cl + 2Cwκ + 16) log²(NT′).

  ```lean
  theorem logDerivHoriz_of {Cw Cl κ : ℝ} (hCw : 0 ≤ Cw) (hCl : 0 ≤ Cl) (hκ : 0 < κ)
      (hW : ZerosWindowWith Cw) (hL : LocalLemma Cl) (hZ : ZeroLocus) :
      LogDerivHoriz κ (4 * Cl + 2 * Cw * κ + 16) := …
  ```

### Formalism.PeriodIntegrals.UnitaryGroupMassFormula.ExplicitFormula.NormSubCtrSq

14 import steps from Main · 156 lines · Checked against the code · [Open in the Lean viewer](https://riemannhypothesissolved.com/file/Formalism.PeriodIntegrals.UnitaryGroupMassFormula.ExplicitFormula.NormSubCtrSq)

**Classifies zeros in the local logarithmic derivative disc and bounds contributions outside the central zero window.**

The geometry of the disc centered at 2 + it with radius 11/4, together with the zero-locus hypothesis, restricts its zeros to critical-strip zeros and the possible simple zero at the origin for even nonprincipal characters. The nonzero disc zeros outside the central window lie in the unit windows centered at t ± 2 and have denominators of modulus at least one in the logarithmic derivative sum. The origin contribution differs from its prescribed correction by at most one, and the direct importer LogWindowLe combines these bounds with the nested-disc estimate.

Key declarations:

- `PI.EF.DZ`: This is the set of zeros of the pole-cleared L-function in the closed disc of radius 11/4 centered at 2 + it.

  ```lean
  def DZ (χ : DirichletCharacter ℂ N) (t : ℝ) : Set ℂ := {ρ | ρ ∈ closedBall (ctr t) (11 / 4) ∧ Lent χ ρ = 0}
  ```
- `PI.EF.DZ_facts`: Under the zero-locus hypothesis, each disc zero for a primitive character is a zero of L itself, has |Im(ρ) − t| ≤ 3, and lies either in the open critical strip or at the origin for an even nonprincipal character.

  ```lean
  lemma DZ_facts (hZL : ZeroLocus) {χ : DirichletCharacter ℂ N} (hχ : χ.IsPrimitive) {t : ℝ} {ρ : ℂ}
      (hρ : ρ ∈ DZ χ t) :
      ρ ≠ 1 ∧ LFunction χ ρ = 0 ∧ |ρ.im - t| ≤ 3 ∧
        ((0 < ρ.re ∧ ρ.re < 1) ∨ (ρ = 0 ∧ χ.Even ∧ χ ≠ 1)) := …
  ```
- `PI.EF.far_sum_le`: For a primitive character modulo N and Im(s) = t, the sum of m(ρ)/(s − ρ) over any finite set of nonzero disc zeros outside the central unit window has modulus at most Cw times the sum of log(N(|t + 2| + 2)) and log(N(|t − 2| + 2)), under the zero-locus and zero-window hypotheses with window constant Cw.

  ```lean
  lemma far_sum_le {Cw : ℝ} (hW : ZerosWindowWith Cw) (hZL : ZeroLocus) {χ : DirichletCharacter ℂ N}
      (hχ : χ.IsPrimitive) {t : ℝ} (s : ℂ) (hs : s.im = t) (E : Finset ℂ)
      (hE : ∀ ρ ∈ E, ρ ∈ DZ χ t ∧ ρ ∉ ZerosNear χ t ∧ ρ ≠ 0) :
      ‖∑ ρ ∈ E, (mult χ ρ : ℂ) / (s - ρ)‖ ≤
        Cw * Real.log (N * (|t + 2| + 2)) + Cw * Real.log (N * (|t - 2| + 2)) := …
  ```
- `PI.EF.zero_term_le`: For a primitive character under the zero-locus hypothesis and Im(s) = t, the origin term counted by the disc differs by at most one in modulus from the correction ε₀(χ)/s, where ε₀ is the indicator of even nonprincipal characters.

  ```lean
  lemma zero_term_le (hZL : ZeroLocus) {χ : DirichletCharacter ℂ N} (hχ : χ.IsPrimitive) {t : ℝ}
      (s : ℂ) (hs : s.im = t) :
      ‖(open Classical in if (0 : ℂ) ∈ DZ χ t then (mult χ 0 : ℂ) / (s - 0) else 0) - eps0 χ / s‖
        ≤ 1 := …
  ```

### Formalism.PeriodIntegrals.UnitaryGroupMassFormula.ExplicitFormula.PerronKernelB

14 import steps from Main · 175 lines · Checked against the code · [Open in the Lean viewer](https://riemannhypothesissolved.com/file/Formalism.PeriodIntegrals.UnitaryGroupMassFormula.ExplicitFormula.PerronKernelB)

**Proves two uniform bounds for the error in approximating the step function at 1 by the truncated Perron kernel.**

The proof sets ℓ = log y and uses the vertical-line estimates for positive and negative ℓ to control the error after multiplication by T|ℓ|. When T|ℓ| ≤ 1, it writes the oscillatory factor as 1 + (exp(iℓt) − 1), integrates the first term using the complex logarithm, and bounds the second term pointwise. The direct importer Assemble combines the resulting single-term estimate with a von Mangoldt weighted summation bound to obtain truncated Perron inversion.

Key declarations:

- `PI.EF.PK.norm_log_sub_log_le`: For real c > 0 and T, the principal logarithms satisfy |log(c + iT) − log(c − iT)| ≤ π.

  ```lean
  lemma norm_log_sub_log_le (c T : ℝ) (hc : 0 < c) :
      ‖Complex.log (((c : ℂ) + (T : ℂ) * I) - 0) - Complex.log (((c : ℂ) + ((-T : ℝ) : ℂ) * I) - 0)‖ ≤ π := …
  ```
- `PI.EF.PK.line_bound_small`: For c, T > 0 and real ℓ, the integral of exp(ℓ(c + it))/(c + it) over −T ≤ t ≤ T has modulus at most exp(ℓc)(π + 2T|ℓ|).

  ```lean
  lemma line_bound_small (l c T : ℝ) (hc : 0 < c) (hT : 0 < T) :
      ‖∫ t : ℝ in -T..T, ker l ((c : ℂ) + t * I)‖ ≤ Real.exp (l * c) * (π + |l| * (2 * T)) := …
  ```
- `PI.EF.PK.perron_kernel_single_term`: For y, c, T > 0, the modulus of the difference between the normalized truncated Perron kernel and the indicator of y ≥ 1 is at most 2yᶜ, and that same error multiplied by T|log y| is at most yᶜ.

  ```lean
  theorem perron_kernel_single_term : PerronKernel := …
  ```

### Formalism.PeriodIntegrals.UnitaryGroupMassFormula.ExplicitFormula.PerronLOf

14 import steps from Main · 62 lines · Checked against the code · [Open in the Lean viewer](https://riemannhypothesissolved.com/file/Formalism.PeriodIntegrals.UnitaryGroupMassFormula.ExplicitFormula.PerronLOf)

**Specializes truncated Perron inversion to Dirichlet-character twists of the von Mangoldt function.**

On Re(s) > 1, the twisted von Mangoldt Dirichlet series equals −L′(s, χ)/L(s, χ) because the character Dirichlet series agrees locally with L(s, χ) and has the same derivative there. The proof applies the general truncation estimate using |χ(n)| ≤ 1, substitutes the logarithmic derivative on the line Re(s) = 1 + 1/log u, and puts the error in terms of the target height T. The direct importer Assemble uses this estimate for the Perron approximation in the explicit formula.

Key declarations:

- `PI.EF.PK.LSeries_twist_eq_neg_logDeriv`: For every Dirichlet character χ and Re(s) > 1, the Dirichlet series with coefficients Λ(n)χ(n) equals −L′(s, χ)/L(s, χ).

  ```lean
  lemma LSeries_twist_eq_neg_logDeriv {N : ℕ} [NeZero N] (χ : DirichletCharacter ℂ N) {s : ℂ}
      (hs : 1 < s.re) :
      LSeries (fun n : ℕ => ((Λ n : ℝ) : ℂ) * χ (n : ZMod N)) s =
        -logDeriv (DirichletCharacter.LFunction χ) s := …
  ```
- `PI.EF.PK.perronL_of`: A general truncated Perron estimate with nonnegative constant C for coefficients bounded in modulus by Λ(n) implies that, for any character of positive modulus N and 2 ≤ T ≤ u with T ≤ T′ ≤ T + 1, the twisted von Mangoldt sum through u differs from the normalized Perron integral of −L′/L at height T′ by at most C · (u log²(NuT)/T + log(Nu)).

  ```lean
  theorem perronL_of {C : ℝ} (hC : 0 ≤ C) (h : PerronTrunc C) : PerronL C := …
  ```

### Formalism.PeriodIntegrals.UnitaryGroupMassFormula.ExplicitFormula.PerronSumBound

14 import steps from Main · 302 lines · Checked against the code · [Open in the Lean viewer](https://riemannhypothesissolved.com/file/Formalism.PeriodIntegrals.UnitaryGroupMassFormula.ExplicitFormula.PerronSumBound)

**Proves summability and an explicit bound with constant 500 for the von Mangoldt weighted Perron error majorant.**

For n ≤ u/2 or n ≥ 2u, the proof bounds the Perron weight by 4/T and uses a summable logarithmic Dirichlet-series majorant. For u/2 < n < 2u, it treats ⌊u⌋ and ⌊u⌋ + 1 individually and bounds the remaining weights by reciprocal distances to those integers, reducing their sum to harmonic sums. Uniform bounds on the nonnegative partial sums give convergence and the same bound for the full series, which the direct importer Assemble uses in truncated Perron inversion.

Key declarations:

- `PI.EF.sum_nearB`: Writing m = ⌊u⌋ for u ≥ 2, the sum of the near-cutoff majorant over 0 ≤ n ≤ 2m + 1 equals 4 + (8u/T) times the m-th harmonic number.

  ```lean
  theorem sum_nearB (u T : ℝ) :
      ∑ n ∈ range (⌊u⌋₊ + (⌊u⌋₊ + 2)), nearB u T n =
        4 + 2 * ((4 * u / T) * ∑ j ∈ range ⌊u⌋₊, 1 / ((j : ℝ) + 1)) := …
  ```
- `PI.EF.pTerm_le_far`: For u ≥ 2, T > 0, and positive integers n with n ≤ u/2 or n ≥ 2u, the weighted Perron error term is at most (4eu/T)(log n)n⁻ᶜ, where c = 1 + 1/log u.

  ```lean
  theorem pTerm_le_far {u T : ℝ} (hu : 2 ≤ u) (hT : 0 < T) {n : ℕ} (hn : 0 < n)
      (h : (n : ℝ) ≤ u / 2 ∨ 2 * u ≤ n) :
      pTerm u T n ≤ (4 * Real.exp 1 * u / T) * logTerm (cLine u) n := …
  ```
- `PI.EF.pTerm_le_near`: For u ≥ 2, T > 0, and u/2 < n < 2u, the weighted Perron error term is at most 16 log u times the near-cutoff majorant.

  ```lean
  theorem pTerm_le_near {u T : ℝ} (hu : 2 ≤ u) (hT : 0 < T) {n : ℕ}
      (h1 : u / 2 < (n : ℝ)) (h2 : (n : ℝ) < 2 * u) :
      pTerm u T n ≤ 16 * Real.log u * nearB u T n := …
  ```
- `PI.EF.sum_pTerm_le`: For u, T ≥ 2, every initial partial sum of the weighted Perron error majorant is at most 500(u log²(u)/T + log u).

  ```lean
  theorem sum_pTerm_le {u T : ℝ} (hu : 2 ≤ u) (hT : 2 ≤ T) (K : ℕ) :
      ∑ n ∈ range K, pTerm u T n ≤ 500 * (u * Real.log u ^ 2 / T + Real.log u) := …
  ```
- `PI.EF.perronSumBound`: For u, T ≥ 2, the series with terms Λ(n)(u/n)ᶜ kb(T, u/n), where kb is the piecewise Perron error weight and c = 1 + 1/log u, converges and has sum at most 500(u log²(u)/T + log u).

  ```lean
  theorem perronSumBound : PerronSumBound 500 := …
  ```

### Formalism.PeriodIntegrals.UnitaryGroupMassFormula.ExplicitFormula.PerronTruncOf

14 import steps from Main · 160 lines · Checked against the code · [Open in the Lean viewer](https://riemannhypothesissolved.com/file/Formalism.PeriodIntegrals.UnitaryGroupMassFormula.ExplicitFormula.PerronTruncOf)

**Derives truncated Perron inversion for coefficients dominated by von Mangoldt from single-term kernel bounds and a weighted sum estimate.**

On the line Re(s) = 1 + 1/log u, absolute convergence of the von Mangoldt Dirichlet series gives a summable majorant for termwise integration by dominated convergence. The proof rewrites the integral as a sum of single-term Perron kernels at u/n, replaces each kernel by the indicator of n ≤ u, and controls the total error by the assumed weighted summation bound. The direct importer Assemble combines this theorem with the single-term kernel and summation estimates to obtain the Perron approximation used in the explicit formula.

Key declarations:

- `PI.EF.PK.kernel_le_kb`: For y, c, T > 0, the two single-term kernel estimates combine to bound the distance from the truncated Perron kernel to the indicator of y ≥ 1 by yᶜ times the weight that equals 2 for T|log y| ≤ 1 and 1/(T|log y|) otherwise.

  ```lean
  lemma kernel_le_kb (hK : PerronKernel) (y c T : ℝ) (hy : 0 < y) (hc : 0 < c) (hT : 0 < T) :
      ‖perronK y c T - (if 1 ≤ y then 1 else 0)‖ ≤ y ^ c * kb T y := …
  ```
- `PI.EF.PK.term_mul_kernel`: For u > 0 and n ≥ 1, multiplying the Dirichlet-series term a(n)n⁻ˢ by uˢ/s gives a(n)(u/n)ˢ/s.

  ```lean
  lemma term_mul_kernel (a : ℕ → ℂ) (u : ℝ) (hu : 0 < u) (n : ℕ) (hn : n ≠ 0) (s : ℂ) :
      term a s n * ((u : ℂ) ^ s / s) = a n * (((u / n : ℝ) : ℂ) ^ s / s) := …
  ```
- `PI.EF.PK.perronTrunc_of`: Given the single-term Perron kernel bounds and a weighted summation bound with constant C, for |a(n)| ≤ Λ(n) and u, T ≥ 2 the sum of a(n) through u differs from the normalized Perron integral of its Dirichlet series on Re(s) = 1 + 1/log u up to height T by at most C(u log²(u)/T + log u).

  ```lean
  theorem perronTrunc_of {C : ℝ} (hK : PerronKernel) (hS : PerronSumBound C) : PerronTrunc C := …
  ```

### Formalism.PeriodIntegrals.UnitaryGroupMassFormula.ExplicitFormula.RectProofs

14 import steps from Main · 18 lines · Checked against the code · [Open in the Lean viewer](https://riemannhypothesissolved.com/file/Formalism.PeriodIntegrals.UnitaryGroupMassFormula.ExplicitFormula.RectProofs)

**Packages the rectangular Cauchy formula and a Perron-weighted residue identity for use in the explicit formula.**

The two theorems specialize the imported rectangle integration results to the boundary integral and hypotheses used in the explicit-formula argument. The direct importer Assemble passes rectResidue to glueContour to evaluate the contour integral of the logarithmic derivative multiplied by uˢ/s.

Key declarations:

- `PI.EF.rectCauchy`: If h is holomorphic on a closed rectangle and w is strictly inside it, the positively oriented boundary integral of h(s)/(s − w) equals 2πi h(w).

  ```lean
  theorem rectCauchy : RectCauchy := …
  ```
- `PI.EF.rectResidue`: For u > 0, a rectangle containing 0 in its interior, a holomorphic function H on the rectangle, and finitely many nonzero interior points ρ with weights w(ρ), the boundary integral of [H(s) + ∑ρ w(ρ)/(s − ρ) + e/s]uˢ/s equals 2πi · (H(0) + ∑ρ w(ρ)(u^ρ − 1)/ρ + e log u).

  ```lean
  theorem rectResidue : RectResidue := …
  ```

### Formalism.PeriodIntegrals.UnitaryGroupMassFormula.ExplicitFormula.RegZero

14 import steps from Main · 172 lines · Checked against the code · [Open in the Lean viewer](https://riemannhypothesissolved.com/file/Formalism.PeriodIntegrals.UnitaryGroupMassFormula.ExplicitFormula.RegZero)

**Bounds the discrepancy between the regular part of the logarithmic derivative at the origin and the truncated sum of reciprocal zeros.**

The proof compares the rectangular regular-part expansion with the local logarithmic derivative estimate at small positive real arguments, then lets the argument tend to zero using continuity and finiteness of the zero sums. The local estimate leaves a reciprocal-zero sum over |Im(ρ)| ≤ 1, whose boundary terms at |Im(ρ)| = 1 are bounded by the multiplicity-weighted zero-window estimate. The direct importer Assemble uses this bound in the contour shift for the explicit formula.

Key declarations:

- `PI.EF.regAtZero_of`: For a primitive character modulo N and a regular part H on the rectangle [−1/2, x₁] × [−T′, T′] with x₁ > 1 and T′ ≥ 2, the zero-window and local logarithmic derivative bounds with constants Cw and Cl imply that the sum of m(ρ)/ρ over critical-strip zeros with |Im(ρ)| < T′ differs from H(0) by at most (Cw + Cl) log(2N) plus the sum of m(ρ)/|ρ| over critical-strip zeros with |Im(ρ)| < 1.

  ```lean
  theorem regAtZero_of {Cw Cl : ℝ} (hW : ZerosWindowWith Cw) (hL : LocalLemma Cl) :
      RegAtZero (Cw + Cl) := …
  ```

### Formalism.PeriodIntegrals.UnitaryGroupMassFormula.ExplicitFormula.ShiftBoundOf

14 import steps from Main · 99 lines · Checked against the code · [Open in the Lean viewer](https://riemannhypothesissolved.com/file/Formalism.PeriodIntegrals.UnitaryGroupMassFormula.ExplicitFormula.ShiftBoundOf)

**Derives a contour-shift bound for the truncated Perron integral at heights separated from the critical-strip zeros.**

The proof uses the height separation to apply the rectangular contour identity with a holomorphic regular part. After canceling the right edge against the Perron integral, it bounds the discrepancy by the contribution of the other three sides, the difference between the reciprocal-zero sum and the regular part at zero, and the parity and principal-character corrections. The direct importer Assemble uses this bound to replace the Perron integral by the principal-character main term and the truncated zero sum.

Key declarations:

- `PI.EF.shiftBound_of`: Given a regular-part decomposition, the rectangular contour identity, a contour-side bound with nonnegative constant Cs, and a regular-part estimate at zero with nonnegative constant Cr, the truncated Perron integral for a primitive character modulo N, minus u for the principal character, differs from the negative multiplicity-weighted sum of u^ρ/ρ over critical-strip zeros with |Im(ρ)| < T′ by at most (Cs + Cr + 3) times the sum of u log²(NuT)/T, log(Nu), and the multiplicity-weighted reciprocal magnitudes of the zeros with |Im(ρ)| < 1, for 2 ≤ T ≤ u and T ≤ T′ ≤ T + 1 satisfying the height-separation condition with κ > 0.

  ```lean
  theorem shiftBound_of {κ Cs Cr : ℝ} (hκ : 0 < κ) (hCs : 0 ≤ Cs) (hCr : 0 ≤ Cr) (hRP : RegularPart)
      (hCI : ContourIdentity) (hS : SidesBound κ Cs) (hR : RegAtZero Cr) :
      ShiftBound κ (Cs + Cr + 3) := …
  ```

### Formalism.PeriodIntegrals.UnitaryGroupMassFormula.ZeroWindow.RightChi

14 import steps from Main · 96 lines · Checked against the code · [Open in the Lean viewer](https://riemannhypothesissolved.com/file/Formalism.PeriodIntegrals.UnitaryGroupMassFormula.ZeroWindow.RightChi)

**Uses Jensen and right-half-plane estimates to bound zero multiplicities logarithmically in right-half windows for nonprincipal characters.**

The proof encloses the window 1/2 ≤ Re ρ < 1 and |Im ρ − t| ≤ 1 in the closed disk of radius 37/20 centered at 2 + it. On the concentric circle of radius 19/10, the assumed growth bound controls |L(s, χ)|, while the reciprocal bound gives |L(2 + it, χ)| ≥ 1/2. For modulus N, the ratio of the boundary bound to the central value in absolute value is at most 170N(|t| + 2), so the Jensen estimate gives finiteness and a total multiplicity bound of 9 log(N(|t| + 2))/log(38/37). The zero-window assembly uses this theorem with the proved Jensen estimate to obtain the nonprincipal-character case.

Key declarations:

- `PI.ZW.rightChi_of`: Given the Jensen disk estimate, the right-half-plane growth bound for nonprincipal Dirichlet L-functions, and the reciprocal L-function bound, proves that for every nonprincipal character modulo N and every height t the right-half window is finite and has total multiplicity at most 9 log(N(|t| + 2))/log(38/37).

  ```lean
  theorem rightChi_of (hJ : JensenCount) : RightChi := …
  ```
- `PI.ZW.mem_closedBall_of_right`: Every point ρ with 1/2 ≤ Re ρ < 1 and |Im ρ − t| ≤ 1 lies in the closed disk of radius 37/20 centered at 2 + it.

  ```lean
  lemma mem_closedBall_of_right {ρ : ℂ} {t : ℝ} (h1 : 1 / 2 ≤ ρ.re) (h2 : ρ.re < 1) (h3 : |ρ.im - t| ≤ 1) :
      ρ ∈ closedBall (2 + t * I) (37 / 20) := …
  ```
- `PI.ZW.sphere_facts`: Every point z on the circle of radius 19/10 centered at 2 + it satisfies Re z ≥ 1/10 and |z| ≤ |t| + 4.

  ```lean
  lemma sphere_facts {z : ℂ} {t : ℝ} (hz : z ∈ sphere (2 + t * I) (19 / 10)) :
      1 / 10 ≤ z.re ∧ ‖z‖ ≤ |t| + 4 := …
  ```
- `PI.ZW.log_le_nine`: If X ≥ 2 and 0 < M′ ≤ 170X, then log M′ ≤ 9 log X.

  ```lean
  lemma log_le_nine (X M' : ℝ) (hX : 2 ≤ X) (hM : 0 < M') (h : M' ≤ 170 * X) :
      Real.log M' ≤ 9 * Real.log X := …
  ```

### Formalism.GL3MeanSquares.GenusMeanAsymptotics.JacobiCharacterSums.PNTExplLF

15 import steps from Main · 207 lines · Checked against the code · [Open in the Lean viewer](https://riemannhypothesissolved.com/file/Formalism.GL3MeanSquares.GenusMeanAsymptotics.JacobiCharacterSums.PNTExplLF)

**Establishes zero and multiplicity properties, a logarithmic derivative identity, and size bounds for pole-cleared Dirichlet L-functions.**

The entire function exLF equals L(s, χ) for nonprincipal χ and extends (s − 1)L(s, χ) to a nonzero value at s = 1 for principal χ. Its zeros coincide with those of the original L-function away from s = 1, lie in Re(s) < 1, and have finite positive multiplicity, with simple zeros remaining simple. Away from s = 1 and the zeros, the negative logarithmic derivative of L(s, χ) equals that of exLF plus the principal-character term 1/(s − 1). The upper bound on Re(s) ≥ 1/2 uses polynomial growth for nonprincipal characters and the factorization into ζ and a finite Euler product for the principal character. The lower bound on Re(s) > 1 follows from a reciprocal bound for L(s, χ).

Key declarations:

- `Formalism.HermitianLattices.Ext.PrimesInProgressions.exLF_re_lt_one`: Every zero of exLF has real part strictly less than 1.

  ```lean
  theorem exLF_re_lt_one (χ : DirichletCharacter ℂ M) {s : ℂ} (hs : exLF χ s = 0) : s.re < 1 := …
  ```
- `Formalism.HermitianLattices.Ext.PrimesInProgressions.exOrd_eq_one`: A zero of exLF at which its derivative is nonzero has multiplicity one.

  ```lean
  theorem exOrd_eq_one (χ : DirichletCharacter ℂ M) {ρ : ℂ} (hρ : exLF χ ρ = 0) (hd : deriv (exLF χ) ρ ≠ 0) :
      exOrd χ ρ = 1 := …
  ```
- `Formalism.HermitianLattices.Ext.PrimesInProgressions.negLD_eq_exLF`: For s ≠ 1 with exLF(χ, s) ≠ 0, the negative logarithmic derivative of L(s, χ) equals −exLF′(χ, s)/exLF(χ, s) plus a correction equal to 1/(s − 1) for the principal character and zero otherwise.

  ```lean
  theorem negLD_eq_exLF (χ : DirichletCharacter ℂ M) {s : ℂ} (hs : s ≠ 1) (h0 : exLF χ s ≠ 0) :
      negLD χ s = (if χ = 1 then 1 / (s - 1) else 0) - deriv (exLF χ) s / exLF χ s := …
  ```
- `Formalism.HermitianLattices.Ext.PrimesInProgressions.exLF_growth`: There is an absolute constant C ≥ 1 such that |exLF(χ, s)| ≤ CM(1 + |s|)² for every character modulo M ≥ 1 and every s with Re(s) ≥ 1/2.

  ```lean
  theorem exLF_growth : ∃ C : ℝ, 1 ≤ C ∧ ∀ (M : ℕ) [NeZero M] (χ : DirichletCharacter ℂ M) (s : ℂ), 1 / 2 ≤ s.re →
      ‖exLF χ s‖ ≤ C * M * (1 + ‖s‖) ^ 2 := …
  ```
- `Formalism.HermitianLattices.Ext.PrimesInProgressions.exLF_lower`: For σ = Re(s) > 1, the modulus of exLF(χ, s) is at least min(1, |s − 1|)(σ − 1)/σ.

  ```lean
  theorem exLF_lower (χ : DirichletCharacter ℂ M) (s : ℂ) (hs : 1 < s.re) :
      min 1 ‖s - 1‖ * ((s.re - 1) / s.re) ≤ ‖exLF χ s‖ := …
  ```

### Formalism.PeriodIntegrals.UnitaryGroupMassFormula.ExplicitFormula.HalfLeNormLentCtr

15 import steps from Main · 187 lines · Checked against the code · [Open in the Lean viewer](https://riemannhypothesissolved.com/file/Formalism.PeriodIntegrals.UnitaryGroupMassFormula.ExplicitFormula.HalfLeNormLentCtr)

**Bounds the pole-cleared Dirichlet L-function on a disc of radius six relative to its value at the center 2 + it.**

The assumed reciprocal bound on Re(s) > 1 gives a lower bound of 1/2 for the modulus at the center. For primitive χ, the assumed polynomial strip estimate with exponent A > 0 and constant C > 0 bounds the modulus throughout the closed disc, with continuity supplying the bound at s = 1 when needed. Combining the bounds gives an exponential majorant relative to the central value, with an exponent controlled by log(N(|t| + 2)). The direct importer NormSubCtrSq uses the same center to locate the zeros in the smaller disc of radius 11/4.

Key declarations:

- `PI.EF.Lent_bound`: A strip growth bound with exponent A > 0 and constant C > 0 gives |Lent(z, χ)| ≤ C[4N(|t| + 2)]ᴬ for primitive χ modulo N whenever −4 ≤ Re(z) ≤ 8 and |Im(z)| ≤ |t| + 6, where Lent denotes the pole-cleared L-function.

  ```lean
  lemma Lent_bound {A C : ℝ} (hA : 0 < A) (hC : 0 < C) (hG : LGrowth A C)
      {χ : DirichletCharacter ℂ N} (hχ : χ.IsPrimitive) {t : ℝ} {z : ℂ} (h1 : -4 ≤ z.re)
      (h2 : z.re ≤ 8) (h3 : |z.im| ≤ |t| + 6) :
      ‖Lent χ z‖ ≤ C * (4 * (N * (|t| + 2))) ^ A := …
  ```
- `PI.EF.half_le_norm_Lent_ctr`: The assumed reciprocal bound gives |Lent(2 + it, χ)| ≥ 1/2 for every Dirichlet character χ and real t.

  ```lean
  lemma half_le_norm_Lent_ctr (hI : PI.LInvRight) (χ : DirichletCharacter ℂ N) (t : ℝ) :
      1 / 2 ≤ ‖Lent χ (ctr t)‖ := …
  ```
- `PI.EF.Mfun`: The exponent in the relative disc bound is M = |log(2C)| + A log(4N(|t| + 2)).

  ```lean
  def Mfun (A C : ℝ) (N : ℕ) (t : ℝ) : ℝ := |Real.log (2 * C)| + A * Real.log (4 * (N * (|t| + 2)))
  ```
- `PI.EF.Mfun_le`: For A > 0, the exponent M is at most (2|log(2C)| + 3A) log(N(|t| + 2)).

  ```lean
  lemma Mfun_le {A C : ℝ} (hA : 0 < A) (N : ℕ) [NeZero N] (t : ℝ) :
      Mfun A C N t ≤ (2 * |Real.log (2 * C)| + 3 * A) * LL N t := …
  ```
- `PI.EF.Lent_disc_bound`: Under the polynomial strip growth and reciprocal bounds, every z with |z − (2 + it)| ≤ 6 satisfies |Lent(z, χ)| ≤ exp(M)|Lent(2 + it, χ)| for primitive χ.

  ```lean
  theorem Lent_disc_bound {A C : ℝ} (hA : 0 < A) (hC : 0 < C) (hG : LGrowth A C) (hI : PI.LInvRight)
      {χ : DirichletCharacter ℂ N} (hχ : χ.IsPrimitive) (t : ℝ) :
      ∀ z ∈ closedBall (ctr t) 6, ‖Lent χ z‖ ≤ Real.exp (Mfun A C N t) * ‖Lent χ (ctr t)‖ := …
  ```

### Formalism.PeriodIntegrals.UnitaryGroupMassFormula.ExplicitFormula.LGrowthDefs

15 import steps from Main · 10 lines · Checked against the code · [Open in the Lean viewer](https://riemannhypothesissolved.com/file/Formalism.PeriodIntegrals.UnitaryGroupMassFormula.ExplicitFormula.LGrowthDefs)

**Defines a seventh-power growth condition for (s − 1)ζ(s) on a fixed vertical strip.**

The condition gives a single constant for the entire strip, with the growth measured in |Im(s)| + 2. The direct importer LGrowthZeta proves the condition with constant 300000 from a right-half-plane zeta bound, and LGrowthMain uses it for the primitive principal character.

Key declarations:

- `PI.EF.ZetaGrowth`: For a real constant C, this condition requires |(s − 1)ζ(s)| ≤ C(|Im(s)| + 2)⁷ for every s with −4 ≤ Re(s) ≤ 8.

  ```lean
  def ZetaGrowth (C : ℝ) : Prop :=
    ∀ s : ℂ, -4 ≤ s.re → s.re ≤ 8 → ‖(s - 1) * riemannZeta s‖ ≤ C * (|s.im| + 2) ^ 7
  ```

### Formalism.PeriodIntegrals.UnitaryGroupMassFormula.ExplicitFormula.LStructA

15 import steps from Main · 119 lines · Checked against the code · [Open in the Lean viewer](https://riemannhypothesissolved.com/file/Formalism.PeriodIntegrals.UnitaryGroupMassFormula.ExplicitFormula.LStructA)

**Proves that the logarithmic derivative has a holomorphic remainder after subtraction of the simple pole terms weighted by zero multiplicity.**

Local factorization at a point of finite order gives the pole term m/(s − ρ) and a holomorphic remainder. Subtracting the pole terms for a finite set containing all zeros on the region gives a remainder that extends holomorphically across those zeros. The identity theorem also gives finite order at every point and finitely many zeros on compact sets for a nonzero entire function. The direct importer LStructC uses these results for the pole-cleared Dirichlet L-function.

Key declarations:

- `PI.EF.logDeriv_local`: If f is analytic at ρ and has finite order m there, then f′/f equals m/(s − ρ) plus a function analytic at ρ on a sufficiently small punctured neighborhood.

  ```lean
  lemma logDeriv_local {f : ℂ → ℂ} {ρ : ℂ} (hf : AnalyticAt ℂ f ρ)
      (hfin : analyticOrderAt f ρ ≠ ⊤) :
      ∃ k : ℂ → ℂ, AnalyticAt ℂ k ρ ∧ ∀ᶠ s in 𝓝[≠] ρ, f s ≠ 0 ∧
        logDeriv f s = (analyticOrderNatAt f ρ : ℂ) / (s - ρ) + k s := …
  ```
- `PI.EF.exists_regular_part`: If f is holomorphic near K and has finite order at every point of K, and Z is a finite set of zeros containing all zeros in K, then f′/f minus the sum of m(ρ)/(s − ρ) over Z agrees wherever f is nonzero on K with a function holomorphic near K.

  ```lean
  theorem exists_regular_part {f : ℂ → ℂ} {K : Set ℂ} (hf : AnalyticOnNhd ℂ f K) (Z : Finset ℂ)
      (hZ0 : ∀ ρ ∈ Z, f ρ = 0) (hK : ∀ s ∈ K, f s = 0 → s ∈ Z)
      (hfin : ∀ ρ ∈ K, analyticOrderAt f ρ ≠ ⊤) :
      ∃ H : ℂ → ℂ, AnalyticOnNhd ℂ H K ∧ ∀ s ∈ K, f s ≠ 0 →
        logDeriv f s = H s + ∑ ρ ∈ Z, (analyticOrderNatAt f ρ : ℂ) / (s - ρ) := …
  ```
- `PI.EF.finite_zeros_of_compact`: Every compact subset of the complex plane contains only finitely many zeros of a nonzero entire function.

  ```lean
  lemma finite_zeros_of_compact {f : ℂ → ℂ} (hf : Differentiable ℂ f) {x : ℂ} (hx : f x ≠ 0)
      {K : Set ℂ} (hK : IsCompact K) : (K ∩ f ⁻¹' {0}).Finite := …
  ```
- `PI.EF.order_ne_top_of_entire`: A nonzero entire function has finite order of vanishing at every point.

  ```lean
  lemma order_ne_top_of_entire {f : ℂ → ℂ} (hf : Differentiable ℂ f) {x : ℂ} (hx : f x ≠ 0)
      (y : ℂ) : analyticOrderAt f y ≠ ⊤ := …
  ```

### Formalism.PeriodIntegrals.UnitaryGroupMassFormula.ExplicitFormula.LStructB

15 import steps from Main · 175 lines · Checked against the code · [Open in the Lean viewer](https://riemannhypothesissolved.com/file/Formalism.PeriodIntegrals.UnitaryGroupMassFormula.ExplicitFormula.LStructB)

**Locates primitive Dirichlet L-function zeros for Re(s) ≥ −3/2, s ≠ 1, with a simple zero at 0 in the even nonprincipal case.**

The proof uses the functional equation to transfer right-half-plane nonvanishing of the completed L-function to Re(s) ≤ 0, using preservation of primitivity under character inversion. The parity-dependent gamma factor then restricts the possible zeros outside the open critical strip in the stated region. For primitive even nonprincipal characters, the reciprocal real gamma factor has a simple zero at the origin and the completed L-function is nonzero there, giving multiplicity one. The direct importer LStructC uses the zero classification and the multiplicity at zero to construct the regular part of the logarithmic derivative.

Key declarations:

- `PI.EF.completed_ne_zero_right`: The completed Dirichlet L-function is nonzero on Re(s) ≥ 1, with the principal-character case restricted to s ≠ 1.

  ```lean
  lemma completed_ne_zero_right (χ : DirichletCharacter ℂ N) {s : ℂ} (hs : 1 ≤ s.re)
      (h1 : χ ≠ 1 ∨ s ≠ 1) : completedLFunction χ s ≠ 0 := …
  ```
- `PI.EF.completed_ne_zero_left`: For a primitive character, the completed Dirichlet L-function is nonzero on Re(s) ≤ 0, with the principal-character case restricted to s ≠ 0.

  ```lean
  lemma completed_ne_zero_left {χ : DirichletCharacter ℂ N} (hχ : χ.IsPrimitive) {s : ℂ}
      (hs : s.re ≤ 0) (h1 : χ ≠ 1 ∨ s ≠ 0) : completedLFunction χ s ≠ 0 := …
  ```
- `PI.EF.zeroLocus`: For a primitive character, every zero with Re(s) ≥ −3/2 and s ≠ 1 lies in 0 < Re(s) < 1, occurs at s = 0 for an even nonprincipal character, or occurs at s = −1 for an odd character.

  ```lean
  theorem zeroLocus : ZeroLocus := …
  ```
- `PI.EF.order_Gammaℝ_inv_zero`: The reciprocal real gamma factor 1/Γℝ(s) vanishes to order one at s = 0.

  ```lean
  lemma order_Gammaℝ_inv_zero : analyticOrderAt (fun s : ℂ => (Gammaℝ s)⁻¹) 0 = 1 := …
  ```
- `PI.EF.mult_zero_of_even`: For every primitive even nonprincipal character χ, the function L(s, χ) has a simple zero at s = 0.

  ```lean
  theorem mult_zero_of_even {χ : DirichletCharacter ℂ N} (hχ : χ.IsPrimitive) (he : χ.Even)
      (h1 : χ ≠ 1) : LFunction χ 0 = 0 ∧ analyticOrderNatAt (LFunction χ) 0 = 1 := …
  ```

### Formalism.PeriodIntegrals.UnitaryGroupMassFormula.ExplicitFormula.LogDerivBoundOfZeroFree

15 import steps from Main · 75 lines · Checked against the code · [Open in the Lean viewer](https://riemannhypothesissolved.com/file/Formalism.PeriodIntegrals.UnitaryGroupMassFormula.ExplicitFormula.LogDerivBoundOfZeroFree)

**Bounds the logarithmic derivative of a zero-free holomorphic function on a smaller concentric disc.**

The proof takes a holomorphic logarithm of g/g(s₀), normalized to vanish at the center, and converts the growth bound for g into an upper bound M for the real part of that logarithm. Borel–Carathéodory on the open disc of radius R bounds the logarithm uniformly on the closed disc of radius (r + R)/2, and Cauchy’s derivative estimate then applies on a disc of radius (R − r)/2 about each evaluation point. The direct importer LocalAbstract applies this bound to the zero-free function obtained by replacing the local zero factors with reflected factors.

Key declarations:

- `PI.EF.Loc.logDeriv_bound_of_zero_free`: Under the holomorphic logarithm hypothesis, if g is holomorphic and zero-free on |z − s₀| < R and satisfies |g(z)| ≤ exp(M)|g(s₀)| there for M > 0, then |g′(z)/g(z)| ≤ 4M(r + R)/(R − r)² throughout |z − s₀| ≤ r for every 0 < r < R.

  ```lean
  theorem logDeriv_bound_of_zero_free (hDL : PI.DiscLog) {g : ℂ → ℂ} {s₀ : ℂ} {r R M : ℝ}
      (hr : 0 < r) (hrR : r < R) (hM : 0 < M) (hg : DifferentiableOn ℂ g (ball s₀ R))
      (hz : ∀ z ∈ ball s₀ R, g z ≠ 0) (hb : ∀ z ∈ ball s₀ R, ‖g z‖ ≤ Real.exp M * ‖g s₀‖) :
      ∀ z ∈ closedBall s₀ r, ‖deriv g z / g z‖ ≤ 4 * (r + R) / (R - r) ^ 2 * M := …
  ```

### Formalism.PeriodIntegrals.UnitaryGroupMassFormula.ExplicitFormula.NormLogDerivReflLe

15 import steps from Main · 105 lines · Checked against the code · [Open in the Lean viewer](https://riemannhypothesissolved.com/file/Formalism.PeriodIntegrals.UnitaryGroupMassFormula.ExplicitFormula.NormLogDerivReflLe)

**Establishes the boundary modulus and logarithmic derivative estimates for the reflected linear factors used in the local zero expansion.**

A reflected factor has the same modulus as z − ρ on the outer circle, takes the value R at the center, and has a positive lower bound throughout the closed disc when ρ lies in a smaller concentric disc. Its constant derivative and this lower bound give the logarithmic derivative estimate. The direct importer LocalAbstract uses these estimates to control the reflected product and uses the factorization lemmas to identify the coefficients in the local zero sum with the actual orders of vanishing.

Key declarations:

- `PI.EF.Loc.norm_refl_sphere`: On the circle of radius R > 0 centered at s₀, the reflected factor associated with ρ has modulus |z − ρ|.

  ```lean
  lemma norm_refl_sphere {s₀ ρ z : ℂ} {R : ℝ} (hR : 0 < R) (hz : z ∈ sphere s₀ R) :
      ‖refl s₀ R ρ z‖ = ‖z - ρ‖ := …
  ```
- `PI.EF.Loc.le_norm_refl`: If |ρ − s₀| ≤ R′ and |z − s₀| ≤ R with R > 0, the reflected factor at z has modulus at least R − R′.

  ```lean
  lemma le_norm_refl {s₀ ρ z : ℂ} {R R' : ℝ} (hR : 0 < R) (hρ : ρ ∈ closedBall s₀ R')
      (hz : z ∈ closedBall s₀ R) : R - R' ≤ ‖refl s₀ R ρ z‖ := …
  ```
- `PI.EF.Loc.norm_logDeriv_refl_le`: For ρ in the closed concentric disc of radius R′ < R, the reflected factor has logarithmic derivative of modulus at most R′/[R(R − R′)] throughout the closed disc of radius R.

  ```lean
  lemma norm_logDeriv_refl_le {s₀ ρ z : ℂ} {R R' : ℝ} (hR'R : R' < R) (hR : 0 < R)
      (hρ : ρ ∈ closedBall s₀ R') (hz : z ∈ closedBall s₀ R) :
      ‖logDeriv (refl s₀ R ρ) z‖ ≤ R' / (R * (R - R')) := …
  ```
- `PI.EF.Loc.logDeriv_prod_pow_mul`: At a point where all factors are differentiable and nonzero, the logarithmic derivative of h multiplied by a finite product of powers equals h′/h plus the sum of the factors’ logarithmic derivatives weighted by their exponents.

  ```lean
  lemma logDeriv_prod_pow_mul {Z : Finset ℂ} {m : ℂ → ℕ} {φ : ℂ → ℂ → ℂ} {h : ℂ → ℂ} {s : ℂ}
      (hφ : ∀ ρ ∈ Z, φ ρ s ≠ 0) (hφd : ∀ ρ ∈ Z, DifferentiableAt ℂ (φ ρ) s) (hh : h s ≠ 0)
      (hhd : DifferentiableAt ℂ h s) :
      logDeriv (fun z => (∏ ρ ∈ Z, (φ ρ z) ^ (m ρ)) * h z) s =
        (∑ ρ ∈ Z, (m ρ : ℂ) * logDeriv (φ ρ) s) + logDeriv h s := …
  ```
- `PI.EF.Loc.order_eq_of_factor`: In a local factorization into powers of distinct linear factors and a holomorphic factor nonzero at ρ, the exponent of z − ρ equals the order of vanishing at ρ.

  ```lean
  lemma order_eq_of_factor {f h : ℂ → ℂ} {Z : Finset ℂ} {m : ℂ → ℕ} {ρ : ℂ} (hρ : ρ ∈ Z) {U : Set ℂ}
      (hU : U ∈ 𝓝 ρ) (hf : AnalyticAt ℂ f ρ) (hh : DifferentiableOn ℂ h U) (hhρ : h ρ ≠ 0)
      (hfac : ∀ z ∈ U, f z = (∏ ρ' ∈ Z, (z - ρ') ^ (m ρ')) * h z) :
      analyticOrderNatAt f ρ = m ρ := …
  ```

### Formalism.PeriodIntegrals.UnitaryGroupMassFormula.ExplicitFormula.PerronKernelA

15 import steps from Main · 267 lines · Checked against the code · [Open in the Lean viewer](https://riemannhypothesissolved.com/file/Formalism.PeriodIntegrals.UnitaryGroupMassFormula.ExplicitFormula.PerronKernelA)

**Proves sign-dependent bounds for the truncated vertical integral of the Perron kernel exp(ℓs)/s.**

For ℓ < 0, the proof closes the rectangle to the right, where the kernel is holomorphic, and for ℓ > 0 it closes to the left, enclosing the pole at zero. The second contour integral is evaluated by splitting off 1/s and integrating it with logarithm branches along the edges. In both cases, the distant vertical edge can be made arbitrarily small, and the two horizontal edges give the error bound. The direct importer PerronKernelB uses these estimates to bound the difference between the normalized kernel and the step function at 1.

Key declarations:

- `PI.EF.PK.horiz_bound`: For a ≤ b, ℓ ≠ 0, and h ≠ 0, the horizontal integral of exp(ℓs)/s from a + ih to b + ih has modulus at most (exp(ℓb) − exp(ℓa))/(ℓ|h|).

  ```lean
  lemma horiz_bound (l a b h : ℝ) (hl : l ≠ 0) (hh : h ≠ 0) (hab : a ≤ b) :
      ‖∫ x : ℝ in a..b, ker l ((x : ℂ) + h * I)‖ ≤
        (Real.exp (l * b) - Real.exp (l * a)) / l / |h| := …
  ```
- `PI.EF.PK.vert_bound`: For x ≠ 0 and T ≥ 0, the integral of exp(ℓ(x + it))/(x + it) over −T ≤ t ≤ T has modulus at most 2T exp(ℓx)/|x|.

  ```lean
  lemma vert_bound (l x T : ℝ) (hx : x ≠ 0) (hT : 0 ≤ T) :
      ‖∫ t : ℝ in -T..T, ker l ((x : ℂ) + t * I)‖ ≤ Real.exp (l * x) / |x| * (2 * T) := …
  ```
- `PI.EF.PK.rectInt_ker`: The positively oriented integral of exp(ℓs)/s around a rectangle containing zero in its interior equals 2πi.

  ```lean
  lemma rectInt_ker (l a b c d : ℝ) (ha : a < 0) (hb : 0 < b) (hc : c < 0) (hd : 0 < d) :
      rectInt (ker l) a b c d = 2 * π * I := …
  ```
- `PI.EF.PK.line_bound_neg`: For ℓ < 0 and c, T > 0, the integral of exp(ℓ(c + it))/(c + it) over −T ≤ t ≤ T has modulus at most 2 exp(ℓc)/(|ℓ|T).

  ```lean
  lemma line_bound_neg (l c T : ℝ) (hl : l < 0) (hc : 0 < c) (hT : 0 < T) :
      ‖∫ t : ℝ in -T..T, ker l ((c : ℂ) + t * I)‖ ≤ 2 * (Real.exp (l * c) / (-l) / T) := …
  ```
- `PI.EF.PK.line_bound_pos`: For ℓ > 0 and c, T > 0, the same vertical integral with respect to t differs from 2π by at most 2 exp(ℓc)/(ℓT).

  ```lean
  lemma line_bound_pos (l c T : ℝ) (hl : 0 < l) (hc : 0 < c) (hT : 0 < T) :
      ‖(∫ t : ℝ in -T..T, ker l ((c : ℂ) + t * I)) - 2 * π‖ ≤ 2 * (Real.exp (l * c) / l / T) := …
  ```

### Formalism.PeriodIntegrals.UnitaryGroupMassFormula.ExplicitFormula.PerronSum

15 import steps from Main · 137 lines · Checked against the code · [Open in the Lean viewer](https://riemannhypothesissolved.com/file/Formalism.PeriodIntegrals.UnitaryGroupMassFormula.ExplicitFormula.PerronSum)

**Proves power-sum and kernel-weight estimates for bounding the weighted truncation error in Perron inversion.**

The proof bounds partial sums of n⁻¹⁻ᵋ by the integral of a decreasing power and then uses log n ≤ nᵋ/ε to bound the log-weighted sums. For T > 0 and 0 < d ≤ |log(u/x)|, the Perron error weight is at most 2/(Td), with d = log 2 available for positive u and x with x ≤ u/2 or x ≥ 2u. The direct importer PerronSumBound uses these estimates and the identity uᶜ = eu for the Perron line to bound the von Mangoldt weighted error sum.

Key declarations:

- `PI.EF.sum_rpow_le`: For ε > 0, every initial partial sum of n⁻¹⁻ᵋ starting at n = 2 is at most 1/ε.

  ```lean
  theorem sum_rpow_le {ε : ℝ} (hε : 0 < ε) (K : ℕ) :
      ∑ i ∈ range K, ((i : ℝ) + 2) ^ (-(1 + ε)) ≤ 1 / ε := …
  ```
- `PI.EF.sum_logTerm_le`: For ε > 0, every initial partial sum of (log n)n⁻¹⁻²ᵋ over positive integers is at most 1/ε².

  ```lean
  theorem sum_logTerm_le {ε : ℝ} (hε : 0 < ε) (K : ℕ) :
      ∑ n ∈ range K, logTerm (1 + 2 * ε) n ≤ 1 / ε ^ 2 := …
  ```
- `PI.EF.kb_le_of_le`: If T > 0 and 0 < d ≤ |log y|, the Perron error weight kb(T, y) is at most 2/(Td).

  ```lean
  theorem kb_le_of_le {T d y : ℝ} (hT : 0 < T) (hd : 0 < d) (h : d ≤ |Real.log y|) :
      kb T y ≤ 2 / (T * d) := …
  ```
- `PI.EF.abs_log_div_ge_far`: For positive u and x, either x ≤ u/2 or x ≥ 2u implies |log(u/x)| ≥ log 2.

  ```lean
  theorem abs_log_div_ge_far {u x : ℝ} (hu : 0 < u) (hx : 0 < x) (h : x ≤ u / 2 ∨ 2 * u ≤ x) :
      Real.log 2 ≤ |Real.log (u / x)| := …
  ```
- `PI.EF.rpow_cLine`: For u ≥ 2 and c = 1 + 1/log u, the identity uᶜ = eu holds.

  ```lean
  theorem rpow_cLine {u : ℝ} (hu : 2 ≤ u) : u ^ cLine u = Real.exp 1 * u := …
  ```

### Formalism.PeriodIntegrals.UnitaryGroupMassFormula.ExplicitFormula.RectIntEqZeroOfDifferentiableOn

15 import steps from Main · 404 lines · Checked against the code · [Open in the Lean viewer](https://riemannhypothesissolved.com/file/Formalism.PeriodIntegrals.UnitaryGroupMassFormula.ExplicitFormula.RectIntEqZeroOfDifferentiableOn)

**Proves rectangular Cauchy integral formulas for simple and double poles and derives the Perron-weighted residue identity.**

The proof integrates 1/(s − p) along the four edges using branches of the logarithm and uses a primitive to show that the integral of 1/(s − p)² vanishes. Subtracting the numerator’s value at p gives the simple-pole Cauchy formula, and applying it to the divided difference gives the derivative formula. Partial fractions and linearity then yield a residue identity for an arbitrary holomorphic weight E, which specializes to the Perron kernel by taking E(s) = uˢ. The direct importer RectProofs supplies the Cauchy formula and the Perron specialization in the form used by the explicit-formula argument.

Key declarations:

- `PI.EF.Rect.rectInt_inv_sub`: For p strictly inside the rectangle, the positively oriented boundary integral of 1/(s − p) equals 2πi.

  ```lean
  theorem rectInt_inv_sub {z w p : ℂ} (hp : p ∈ rectOpen z w) :
      rectInt (fun s => (s - p)⁻¹) z w = 2 * π * I := …
  ```
- `PI.EF.Rect.rectInt_div_sub`: For h complex differentiable on the closed rectangle and p strictly inside it, the boundary integral of h(s)/(s − p) equals 2πi h(p).

  ```lean
  theorem rectInt_div_sub {h : ℂ → ℂ} {z w p : ℂ} (hp : p ∈ rectOpen z w)
      (hh : DifferentiableOn ℂ h (rectClosed z w)) :
      rectInt (fun s => h s / (s - p)) z w = 2 * π * I * h p := …
  ```
- `PI.EF.Rect.rectInt_div_sub_sq`: Under the same hypotheses, the boundary integral of h(s)/(s − p)² equals 2πi h′(p).

  ```lean
  theorem rectInt_div_sub_sq {h : ℂ → ℂ} {z w p : ℂ} (hp : p ∈ rectOpen z w)
      (hh : DifferentiableOn ℂ h (rectClosed z w)) :
      rectInt (fun s => h s / (s - p) ^ 2) z w = 2 * π * I * deriv h p := …
  ```
- `PI.EF.Rect.rect_residue_gen`: For H and E complex differentiable on a closed rectangle containing 0 and the finite set of nonzero points ρ in its interior, the boundary integral of [H(s) + ∑ρ w(ρ)/(s − ρ) + e/s]E(s)/s equals 2πi · (H(0)E(0) + ∑ρ w(ρ)(E(ρ) − E(0))/ρ + eE′(0)).

  ```lean
  theorem rect_residue_gen {z w : ℂ} {H E : ℂ → ℂ} (Z : Finset ℂ) (wt : ℂ → ℂ) (e : ℂ)
      (h0 : (0 : ℂ) ∈ rectOpen z w) (hH : DifferentiableOn ℂ H (rectClosed z w))
      (hE : DifferentiableOn ℂ E (rectClosed z w)) (hZ : ∀ ρ ∈ Z, ρ ≠ 0 ∧ ρ ∈ rectOpen z w) :
      rectInt (fun s => (H s + (∑ ρ ∈ Z, wt ρ / (s - ρ)) + e / s) * (E s / s)) z w =
        2 * π * I * (H 0 * E 0 + (∑ ρ ∈ Z, wt ρ * ((E ρ - E 0) / ρ)) + e * deriv E 0) := …
  ```
- `PI.EF.Rect.rect_residue`: For u > 0, the same boundary integral with E(s) = uˢ equals 2πi · (H(0) + ∑ρ w(ρ)(u^ρ − 1)/ρ + e log u).

  ```lean
  theorem rect_residue {z w : ℂ} {H : ℂ → ℂ} (Z : Finset ℂ) (wt : ℂ → ℂ) (e : ℂ) {u : ℝ} (hu : 0 < u)
      (h0 : (0 : ℂ) ∈ rectOpen z w) (hH : DifferentiableOn ℂ H (rectClosed z w))
      (hZ : ∀ ρ ∈ Z, ρ ≠ 0 ∧ ρ ∈ rectOpen z w) :
      rectInt (fun s => (H s + (∑ ρ ∈ Z, wt ρ / (s - ρ)) + e / s) * ((u : ℂ) ^ s / s)) z w =
        2 * π * I * (H 0 + (∑ ρ ∈ Z, wt ρ * (((u : ℂ) ^ ρ - 1) / ρ)) + e * Real.log u) := …
  ```

### Formalism.StatementFL

15 import steps from Main · 44 lines · Checked against the code · [Open in the Lean viewer](https://riemannhypothesissolved.com/file/Formalism.StatementFL)

**Defines corrected character sums and states pointwise and Chebyshev-averaged zeta nonvanishing criteria from one-sided bounds.**

Each character sum weights Λ(n)χ(n) by x/n − 1 up to ⌊x⌋ and adds xL′(1, χ)/L(1, χ). The family remainder subtracts the real part of a complex linear combination of these corrected sums from the corrected untwisted sum Gz(x). Both criteria assume nonprincipal characters, a linear combination that is real for x ≥ 1, and nonvanishing on the real interval (θ, 1) for every character with a nonzero coefficient. Given the corresponding one-sided bound, each criterion concludes that ζ(ρ) is nonzero at every ρ ≠ 1 with Re(ρ) > θ where all characters with nonzero coefficients have nonvanishing L-functions.

Key declarations:

- `Formalism.SchiC`: SchiC is the sum of Λ(n)χ(n)(x/n − 1) over 1 ≤ n ≤ ⌊x⌋.

  ```lean
  def SchiC {N : ℕ} (χ : DirichletCharacter ℂ N) (x : ℝ) : ℂ :=
    ∑ n ∈ Finset.Icc 1 ⌊x⌋₊, (Λ n : ℂ) * χ n * ((x / n - 1 : ℝ) : ℂ)
  ```
- `Formalism.GchiC`: GchiC adds xL′(1, χ)/L(1, χ) to the complex character sum SchiC.

  ```lean
  def GchiC {N : ℕ} [NeZero N] (χ : DirichletCharacter ℂ N) (x : ℝ) : ℂ :=
    SchiC χ x + (deriv (DirichletCharacter.LFunction χ) 1 / DirichletCharacter.LFunction χ 1) * x
  ```
- `Formalism.famComb`: The family remainder is Gz(x) − Re(∑ᵢ cᵢ GchiC(χᵢ, x)) for a finite family of characters and complex coefficients.

  ```lean
  def famComb {ι : Type} [Fintype ι] (N : ι → ℕ) [∀ i, NeZero (N i)]
      (χ : (i : ι) → DirichletCharacter ℂ (N i)) (c : ι → ℂ) (x : ℝ) : ℝ :=
    Gz x - (∑ i, c i * GchiC (χ i) x).re
  ```
- `Formalism.FamilyLandauC`: For 0 < θ < 1, an eventual bound of Cx^θ on the family remainder multiplied by a fixed sign ±1 gives the zeta nonvanishing conclusion under the shared hypotheses.

  ```lean
  def FamilyLandauC : Prop := …
  ```
- `Formalism.FamilyLandauCW3`: For 0 ≤ θ < 1, the averaged criterion gives the same conclusion under the shared hypotheses if, for every ε > 0 and all sufficiently large x, some positive integer m ≥ x^(1−θ−ε) gives a Chebyshev-weighted average whose product with a fixed sign ±1 is at most Cε x^(θ+ε).

  ```lean
  def FamilyLandauCW3 : Prop := …
  ```

### Formalism.PeriodIntegrals.UnitaryGroupMassFormula.ExplicitFormula.RectInv

16 import steps from Main · 29 lines · Checked against the code · [Open in the Lean viewer](https://riemannhypothesissolved.com/file/Formalism.PeriodIntegrals.UnitaryGroupMassFormula.ExplicitFormula.RectInv)

**Evaluates the integral of 1/(s − w) along a vertical segment strictly to the right of w.**

On that segment, s − w stays in the open right half-plane, where the principal logarithm is a primitive of 1/(s − w). The fundamental theorem of calculus gives the endpoint difference for either orientation of the segment.

Key declarations:

- `PI.EF.PK.vert_inv_right`: If Re(w) < b, the contour integral of 1/(s − w) from b + ic to b + id along the vertical segment equals log(b + id − w) − log(b + ic − w), with the principal logarithm at both endpoints.

  ```lean
  lemma vert_inv_right (c d b : ℝ) (w : ℂ) (hb : w.re < b) :
      I • ∫ y : ℝ in c..d, 1 / (((b : ℂ) + y * I) - w) =
        Complex.log (((b : ℂ) + d * I) - w) - Complex.log (((b : ℂ) + c * I) - w) := …
  ```

### Formalism.ZetaNonvanishingChebyshevWeights

16 import steps from Main · 36 lines · Checked against the code · [Open in the Lean viewer](https://riemannhypothesissolved.com/file/Formalism.ZetaNonvanishingChebyshevWeights)

**Defines discrete and continuous Chebyshev averages of the corrected von Mangoldt sum and states one-sided zeta nonvanishing criteria.**

For x > 0 the discrete average is (1/m) ∑ⱼ aⱼ Gz(x/aⱼ), with aⱼ = sin²((2j + 1)π/(4m)), and the continuous average integrates sin²(φ/2) Gz(x/sin²(φ/2)) against dφ/π on [0, π]. The approximation proposition asserts an absolute error bound of Kx(1 + log m)/m. The continuous criteria formulate nonvanishing in Re(s) > θ from an eventual one-sided bound at exponent θ or at every exponent θ + ε with ε > 0. The discrete criterion allows the number of nodes to depend on x and ε, with m ≥ x^(1−θ−ε). StatementFL uses the discrete average in a zeta nonvanishing criterion for a finite family of Dirichlet characters, assuming nonvanishing of the L-functions with nonzero coefficients.

Key declarations:

- `Formalism.chebyshevWeightedAverage`: Defines the sum ∑ⱼ (1/m) · (x/(x/aⱼ)) · f(x/aⱼ) for j = 0, …, m − 1, with aⱼ = sin²((2j + 1)π/(4m)).

  ```lean
  def chebyshevWeightedAverage (m : ℕ) (x : ℝ) (f : ℝ → ℝ) : ℝ :=
    wavg (fun j : Fin m => x / chebNode m j) (fun _ => (1 : ℝ) / m) x f
  ```
- `Formalism.Gcheb`: The continuous average is the integral of sin²(φ/2) Gz(x/sin²(φ/2)) over 0 ≤ φ ≤ π, divided by π.

  ```lean
  def Gcheb (x : ℝ) : ℝ := (1 / π) * ∫ φ in (0 : ℝ)..π, Real.sin (φ / 2) ^ 2 * Gz (x / Real.sin (φ / 2) ^ 2)
  ```
- `Formalism.ChebyshevWeightApproximation`: Asserts the existence of a uniform K such that for every integer m ≥ 1 and real x ≥ 1 the discrete average of Gz differs from Gcheb(x) by at most Kx(1 + log m)/m.

  ```lean
  def ChebyshevWeightApproximation : Prop :=
    ∃ K : ℝ, ∀ (m : ℕ) (x : ℝ), 0 < m → 1 ≤ x →
      |chebyshevWeightedAverage m x Gz - Gcheb x| ≤ K * x * (1 + Real.log m) / m
  ```
- `Formalism.ZetaLandauChebEps`: For 0 ≤ θ < 1, eventual upper bounds Cε x^(θ+ε) on the continuous average multiplied by a fixed sign ±1, for every ε > 0, imply ζ(s) ≠ 0 throughout Re(s) > θ.

  ```lean
  def ZetaLandauChebEps : Prop :=
    ∀ s₀ : ℝ, (s₀ = 1 ∨ s₀ = -1) → ∀ θ : ℝ, 0 ≤ θ → θ < 1 →
    (∀ ε : ℝ, 0 < ε → ∃ C x₀ : ℝ, ∀ x : ℝ, x₀ ≤ x → s₀ * Gcheb x ≤ C * x ^ (θ + ε)) →
    ∀ s : ℂ, θ < s.re → riemannZeta s ≠ 0
  ```
- `Formalism.ZetaNonvanishingChebyshevWeights`: For 0 ≤ θ < 1, if for each ε > 0 and all sufficiently large x some integer m ≥ 1 with m ≥ x^(1−θ−ε) gives a discrete average of Gz whose product with a fixed sign ±1 is at most Cε x^(θ+ε), then ζ(s) ≠ 0 throughout Re(s) > θ.

  ```lean
  def ZetaNonvanishingChebyshevWeights : Prop :=
    ∀ s₀ : ℝ, (s₀ = 1 ∨ s₀ = -1) → ∀ θ : ℝ, 0 ≤ θ → θ < 1 →
    (∀ ε : ℝ, 0 < ε → ∃ C x₀ : ℝ, ∀ x : ℝ, x₀ ≤ x →
      ∃ m : ℕ, 0 < m ∧ x ^ (1 - θ - ε) ≤ m ∧ s₀ * chebyshevWeightedAverage m x Gz ≤ C * x ^ (θ + ε)) →
    ∀ s : ℂ, θ < s.re → riemannZeta s ≠ 0
  ```

### Formalism.ZetaNonvanishingGeneralWeights

17 import steps from Main · 26 lines · Checked against the code · [Open in the Lean viewer](https://riemannhypothesissolved.com/file/Formalism.ZetaNonvanishingGeneralWeights)

**Defines a grid average and states zeta nonvanishing criteria from one-sided bounds on weighted averages of the corrected von Mangoldt sum.**

The general criterion allows finitely many sampling points in [x/2, x] with probability weights ωⱼ and |xⱼ/x − 1| ≤ x^(θ−1+ε). The spread criterion uses xⱼ = x/(1 + j/m) and ωⱼ = 1/m for j = 1, …, m, with m a positive integer ≥ x^(1−θ−ε). For 0 ≤ θ < 1, both define propositions asserting nonvanishing of ζ on Re(s) > θ if, for a fixed sign s₀ = ±1, every ε > 0 admits Cε so that for all sufficiently large x the samples and weights can be chosen to satisfy s₀ Σⱼ ωⱼ(x/xⱼ)Gz(xⱼ) ≤ Cε x^(θ+ε).

Key declarations:

- `Formalism.spreadWeightedAverage`: The spread average of f at scale x is Σⱼ (1/m)(x/xⱼ)f(xⱼ), where xⱼ = x/(1 + j/m) for j = 1, …, m.

  ```lean
  def spreadWeightedAverage (m : ℕ) (x : ℝ) (f : ℝ → ℝ) : ℝ :=
    wavg (fun j : Fin m => x / (1 + ((j : ℕ) + 1 : ℝ) / m)) (fun _ => (1 : ℝ) / m) x f
  ```
- `Formalism.ZetaNonvanishingGeneralWeights`: Defines the proposition that for 0 ≤ θ < 1 and a fixed sign s₀ = ±1, ζ(s) is nonzero throughout Re(s) > θ if for each ε > 0 there is a Cε such that for all sufficiently large x, sampling points xⱼ in [x/2, x] with |xⱼ/x − 1| ≤ x^(θ−1+ε) and probability weights ωⱼ can be chosen with s₀ Σⱼ ωⱼ(x/xⱼ)Gz(xⱼ) ≤ Cε x^(θ+ε).

  ```lean
  def ZetaNonvanishingGeneralWeights : Prop :=
    ∀ s₀ : ℝ, (s₀ = 1 ∨ s₀ = -1) → ∀ θ : ℝ, 0 ≤ θ → θ < 1 →
    (∀ ε : ℝ, 0 < ε → ∃ C x₀ : ℝ, ∀ x : ℝ, x₀ ≤ x →
      ∃ (m : ℕ) (xs ω : Fin m → ℝ), (∀ j, 0 ≤ ω j) ∧ ∑ j, ω j = 1 ∧
        (∀ j, x / 2 ≤ xs j ∧ xs j ≤ x) ∧ (∀ j, |xs j / x - 1| ≤ x ^ (θ - 1 + ε)) ∧
        s₀ * wavg xs ω x Gz ≤ C * x ^ (θ + ε)) →
    ∀ s : ℂ, θ < s.re → riemannZeta s ≠ 0
  ```
- `Formalism.ZetaNonvanishingSpreadWeights`: Defines the proposition that for 0 ≤ θ < 1 and a fixed sign s₀ = ±1, ζ(s) is nonzero throughout Re(s) > θ if for each ε > 0 there is a Cε such that for all sufficiently large x, some positive integer m ≥ x^(1−θ−ε) can be chosen with s₀ Σⱼ (1/m)(x/xⱼ)Gz(xⱼ) ≤ Cε x^(θ+ε), where xⱼ = x/(1 + j/m) for j = 1, …, m.

  ```lean
  def ZetaNonvanishingSpreadWeights : Prop :=
    ∀ s₀ : ℝ, (s₀ = 1 ∨ s₀ = -1) → ∀ θ : ℝ, 0 ≤ θ → θ < 1 →
    (∀ ε : ℝ, 0 < ε → ∃ C x₀ : ℝ, ∀ x : ℝ, x₀ ≤ x →
      ∃ m : ℕ, 0 < m ∧ x ^ (1 - θ - ε) ≤ m ∧ s₀ * spreadWeightedAverage m x Gz ≤ C * x ^ (θ + ε)) →
    ∀ s : ℂ, θ < s.re → riemannZeta s ≠ 0
  ```


---

Main theorem statements, plus the explicit… · Alpöge Lean readings. Web page: https://riemannhypothesissolved.com/cluster/k0677-main-theorem-statements-plus-the-explicit-formula-for/lean/ · updated 2026-11-30 · site map for machines: https://riemannhypothesissolved.com/llms.txt
