# An alternative route to GRH for Dirichlet L-functions, from three inputs: 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 k0695 (https://riemannhypothesissolved.com/cluster/k0695-an-alternative-route-to-grh-for-dirichlet-l-functions-from/) · 80 Lean files, by distance from Main.lean · data: https://riemannhypothesissolved.com/api/file-lines/k0695.json

## Contents

- 5 import steps from Main:
  - [Development.AutomorphicArithmetic.CharacterBoxes.EveryCharacter](https://riemannhypothesissolved.com/cluster/k0695-an-alternative-route-to-grh-for-dirichlet-l-functions-from/lean/#Development.AutomorphicArithmetic.CharacterBoxes.EveryCharacter)
- 6 import steps from Main:
  - [Development.AutomorphicArithmetic.CharacterBoxes.Imprimitive](https://riemannhypothesissolved.com/cluster/k0695-an-alternative-route-to-grh-for-dirichlet-l-functions-from/lean/#Development.AutomorphicArithmetic.CharacterBoxes.Imprimitive)
  - [Development.AutomorphicArithmetic.CharacterBoxes.SupplyChi](https://riemannhypothesissolved.com/cluster/k0695-an-alternative-route-to-grh-for-dirichlet-l-functions-from/lean/#Development.AutomorphicArithmetic.CharacterBoxes.SupplyChi)
- 7 import steps from Main:
  - [Development.AutomorphicArithmetic.CharacterBoxes.ExistsPageN](https://riemannhypothesissolved.com/cluster/k0695-an-alternative-route-to-grh-for-dirichlet-l-functions-from/lean/#Development.AutomorphicArithmetic.CharacterBoxes.ExistsPageN)
  - [Development.AutomorphicArithmetic.CharacterBoxes.HostOfField](https://riemannhypothesissolved.com/cluster/k0695-an-alternative-route-to-grh-for-dirichlet-l-functions-from/lean/#Development.AutomorphicArithmetic.CharacterBoxes.HostOfField)
  - [Development.AutomorphicArithmetic.CharacterBoxes.Imports](https://riemannhypothesissolved.com/cluster/k0695-an-alternative-route-to-grh-for-dirichlet-l-functions-from/lean/#Development.AutomorphicArithmetic.CharacterBoxes.Imports)
  - [Development.AutomorphicArithmetic.CoprimeRanks.AdmChi](https://riemannhypothesissolved.com/cluster/k0695-an-alternative-route-to-grh-for-dirichlet-l-functions-from/lean/#Development.AutomorphicArithmetic.CoprimeRanks.AdmChi)
  - [Formalism.SharpRestriction.RamificationFrobenius.TotientGaloisClasses.ExplicitFormulaErrorOfHostConditions](https://riemannhypothesissolved.com/cluster/k0695-an-alternative-route-to-grh-for-dirichlet-l-functions-from/lean/#Formalism.SharpRestriction.RamificationFrobenius.TotientGaloisClasses.ExplicitFormulaErrorOfHostConditions)
- 8 import steps from Main:
  - [Development.AutomorphicArithmetic.CharacterBoxes.TwistForm](https://riemannhypothesissolved.com/cluster/k0695-an-alternative-route-to-grh-for-dirichlet-l-functions-from/lean/#Development.AutomorphicArithmetic.CharacterBoxes.TwistForm)
  - [Development.AutomorphicArithmetic.CoprimeRanks.SecondSetNoRelation](https://riemannhypothesissolved.com/cluster/k0695-an-alternative-route-to-grh-for-dirichlet-l-functions-from/lean/#Development.AutomorphicArithmetic.CoprimeRanks.SecondSetNoRelation)
  - [Development.AutomorphicArithmetic.FrobeniusLocalisation.SizeDefs](https://riemannhypothesissolved.com/cluster/k0695-an-alternative-route-to-grh-for-dirichlet-l-functions-from/lean/#Development.AutomorphicArithmetic.FrobeniusLocalisation.SizeDefs)
  - [Development.AutomorphicArithmetic.ShortNorms.hostExOneOf](https://riemannhypothesissolved.com/cluster/k0695-an-alternative-route-to-grh-for-dirichlet-l-functions-from/lean/#Development.AutomorphicArithmetic.ShortNorms.hostExOneOf)
  - [Development.AutomorphicArithmetic.ShortNorms.hostOfFieldOf](https://riemannhypothesissolved.com/cluster/k0695-an-alternative-route-to-grh-for-dirichlet-l-functions-from/lean/#Development.AutomorphicArithmetic.ShortNorms.hostOfFieldOf)
  - [Development.AutomorphicArithmetic.ShortNorms.supplyOfAdmOf](https://riemannhypothesissolved.com/cluster/k0695-an-alternative-route-to-grh-for-dirichlet-l-functions-from/lean/#Development.AutomorphicArithmetic.ShortNorms.supplyOfAdmOf)
  - [Formalism.SharpRestriction.GlobalSchurBounds.TopDensityNGeSixteen](https://riemannhypothesissolved.com/cluster/k0695-an-alternative-route-to-grh-for-dirichlet-l-functions-from/lean/#Formalism.SharpRestriction.GlobalSchurBounds.TopDensityNGeSixteen)
  - [Formalism.SharpRestriction.RamificationFrobenius.TotientGaloisClasses.Analytic](https://riemannhypothesissolved.com/cluster/k0695-an-alternative-route-to-grh-for-dirichlet-l-functions-from/lean/#Formalism.SharpRestriction.RamificationFrobenius.TotientGaloisClasses.Analytic)
- 9 import steps from Main:
  - [Development.AutomorphicArithmetic.CharacterBoxes.BoundedTw](https://riemannhypothesissolved.com/cluster/k0695-an-alternative-route-to-grh-for-dirichlet-l-functions-from/lean/#Development.AutomorphicArithmetic.CharacterBoxes.BoundedTw)
  - [Development.AutomorphicArithmetic.CharacterBoxes.FieldChi](https://riemannhypothesissolved.com/cluster/k0695-an-alternative-route-to-grh-for-dirichlet-l-functions-from/lean/#Development.AutomorphicArithmetic.CharacterBoxes.FieldChi)
  - [Development.AutomorphicArithmetic.CharacterBoxes.IsChiField](https://riemannhypothesissolved.com/cluster/k0695-an-alternative-route-to-grh-for-dirichlet-l-functions-from/lean/#Development.AutomorphicArithmetic.CharacterBoxes.IsChiField)
  - [Development.AutomorphicArithmetic.CharacterBoxes.PairGood](https://riemannhypothesissolved.com/cluster/k0695-an-alternative-route-to-grh-for-dirichlet-l-functions-from/lean/#Development.AutomorphicArithmetic.CharacterBoxes.PairGood)
  - [Development.AutomorphicArithmetic.CharacterBoxes.PairHyp](https://riemannhypothesissolved.com/cluster/k0695-an-alternative-route-to-grh-for-dirichlet-l-functions-from/lean/#Development.AutomorphicArithmetic.CharacterBoxes.PairHyp)
  - [Development.AutomorphicArithmetic.CharacterBoxes.PairRows](https://riemannhypothesissolved.com/cluster/k0695-an-alternative-route-to-grh-for-dirichlet-l-functions-from/lean/#Development.AutomorphicArithmetic.CharacterBoxes.PairRows)
  - [Development.AutomorphicArithmetic.CharacterBoxes.RealBox](https://riemannhypothesissolved.com/cluster/k0695-an-alternative-route-to-grh-for-dirichlet-l-functions-from/lean/#Development.AutomorphicArithmetic.CharacterBoxes.RealBox)
  - [Development.AutomorphicArithmetic.CharacterBoxes.WinPairs](https://riemannhypothesissolved.com/cluster/k0695-an-alternative-route-to-grh-for-dirichlet-l-functions-from/lean/#Development.AutomorphicArithmetic.CharacterBoxes.WinPairs)
  - [Development.AutomorphicArithmetic.ConductorsKronecker.ChCond](https://riemannhypothesissolved.com/cluster/k0695-an-alternative-route-to-grh-for-dirichlet-l-functions-from/lean/#Development.AutomorphicArithmetic.ConductorsKronecker.ChCond)
  - [Development.AutomorphicArithmetic.ConductorsKronecker.Imports](https://riemannhypothesissolved.com/cluster/k0695-an-alternative-route-to-grh-for-dirichlet-l-functions-from/lean/#Development.AutomorphicArithmetic.ConductorsKronecker.Imports)
  - [Development.AutomorphicArithmetic.ConductorsKronecker.InertiaD](https://riemannhypothesissolved.com/cluster/k0695-an-alternative-route-to-grh-for-dirichlet-l-functions-from/lean/#Development.AutomorphicArithmetic.ConductorsKronecker.InertiaD)
  - [Development.AutomorphicArithmetic.ConductorsKronecker.IsInertIff](https://riemannhypothesissolved.com/cluster/k0695-an-alternative-route-to-grh-for-dirichlet-l-functions-from/lean/#Development.AutomorphicArithmetic.ConductorsKronecker.IsInertIff)
  - [Development.AutomorphicArithmetic.ConductorsKronecker.RecSurj](https://riemannhypothesissolved.com/cluster/k0695-an-alternative-route-to-grh-for-dirichlet-l-functions-from/lean/#Development.AutomorphicArithmetic.ConductorsKronecker.RecSurj)
  - [Development.AutomorphicArithmetic.ConductorsKronecker.dataField](https://riemannhypothesissolved.com/cluster/k0695-an-alternative-route-to-grh-for-dirichlet-l-functions-from/lean/#Development.AutomorphicArithmetic.ConductorsKronecker.dataField)
  - [Development.AutomorphicArithmetic.ConductorsKronecker.kronecker](https://riemannhypothesissolved.com/cluster/k0695-an-alternative-route-to-grh-for-dirichlet-l-functions-from/lean/#Development.AutomorphicArithmetic.ConductorsKronecker.kronecker)
  - [Development.AutomorphicArithmetic.CoprimeRanks.FieldAny](https://riemannhypothesissolved.com/cluster/k0695-an-alternative-route-to-grh-for-dirichlet-l-functions-from/lean/#Development.AutomorphicArithmetic.CoprimeRanks.FieldAny)
  - [Development.AutomorphicArithmetic.DedekindLFunctions.LandauTheorems.ChBalance](https://riemannhypothesissolved.com/cluster/k0695-an-alternative-route-to-grh-for-dirichlet-l-functions-from/lean/#Development.AutomorphicArithmetic.DedekindLFunctions.LandauTheorems.ChBalance)
  - [Development.AutomorphicArithmetic.MeanSquareBounds.GaussSumFunctionEq](https://riemannhypothesissolved.com/cluster/k0695-an-alternative-route-to-grh-for-dirichlet-l-functions-from/lean/#Development.AutomorphicArithmetic.MeanSquareBounds.GaussSumFunctionEq)
  - [Development.AutomorphicArithmetic.PrimitiveCosets.CoreAtH](https://riemannhypothesissolved.com/cluster/k0695-an-alternative-route-to-grh-for-dirichlet-l-functions-from/lean/#Development.AutomorphicArithmetic.PrimitiveCosets.CoreAtH)
  - [Development.AutomorphicArithmetic.PrimitiveCosets.hostFactsS](https://riemannhypothesissolved.com/cluster/k0695-an-alternative-route-to-grh-for-dirichlet-l-functions-from/lean/#Development.AutomorphicArithmetic.PrimitiveCosets.hostFactsS)
  - [Development.AutomorphicArithmetic.ShortNorms.levelData](https://riemannhypothesissolved.com/cluster/k0695-an-alternative-route-to-grh-for-dirichlet-l-functions-from/lean/#Development.AutomorphicArithmetic.ShortNorms.levelData)
  - [Development.AutomorphicArithmetic.ThickFrames.topsChoiceH](https://riemannhypothesissolved.com/cluster/k0695-an-alternative-route-to-grh-for-dirichlet-l-functions-from/lean/#Development.AutomorphicArithmetic.ThickFrames.topsChoiceH)
  - [Formalism.SharpRestriction.GlobalSchurBounds.GlobalRankLatticeProofs.ZetaZeroFreeRegion](https://riemannhypothesissolved.com/cluster/k0695-an-alternative-route-to-grh-for-dirichlet-l-functions-from/lean/#Formalism.SharpRestriction.GlobalSchurBounds.GlobalRankLatticeProofs.ZetaZeroFreeRegion)
  - [Formalism.SharpRestriction.RamificationFrobenius.TotientGaloisClasses.PrimePairSizeCondition](https://riemannhypothesissolved.com/cluster/k0695-an-alternative-route-to-grh-for-dirichlet-l-functions-from/lean/#Formalism.SharpRestriction.RamificationFrobenius.TotientGaloisClasses.PrimePairSizeCondition)
  - [Formalism.SizeWindowBrackets.ChainSlopeWindows.GaloisMapComplexConjugation](https://riemannhypothesissolved.com/cluster/k0695-an-alternative-route-to-grh-for-dirichlet-l-functions-from/lean/#Formalism.SizeWindowBrackets.ChainSlopeWindows.GaloisMapComplexConjugation)
  - [Formalism.SizeWindowBrackets.ChainSlopeWindows.LipschitzWeightAndMinimum](https://riemannhypothesissolved.com/cluster/k0695-an-alternative-route-to-grh-for-dirichlet-l-functions-from/lean/#Formalism.SizeWindowBrackets.ChainSlopeWindows.LipschitzWeightAndMinimum)
  - [Lemmata.GeneralBFactLeftBisAlt.Imports](https://riemannhypothesissolved.com/cluster/k0695-an-alternative-route-to-grh-for-dirichlet-l-functions-from/lean/#Lemmata.GeneralBFactLeftBisAlt.Imports)
- 10 import steps from Main:
  - [Development.AutomorphicArithmetic.CharacterBoxes.KerChiAny](https://riemannhypothesissolved.com/cluster/k0695-an-alternative-route-to-grh-for-dirichlet-l-functions-from/lean/#Development.AutomorphicArithmetic.CharacterBoxes.KerChiAny)
  - [Development.AutomorphicArithmetic.CharacterBoxes.OrdAny](https://riemannhypothesissolved.com/cluster/k0695-an-alternative-route-to-grh-for-dirichlet-l-functions-from/lean/#Development.AutomorphicArithmetic.CharacterBoxes.OrdAny)
  - [Development.AutomorphicArithmetic.CharacterBoxes.TwistAny](https://riemannhypothesissolved.com/cluster/k0695-an-alternative-route-to-grh-for-dirichlet-l-functions-from/lean/#Development.AutomorphicArithmetic.CharacterBoxes.TwistAny)
  - [Development.AutomorphicArithmetic.CoprimeRanks.AnyFramewindow](https://riemannhypothesissolved.com/cluster/k0695-an-alternative-route-to-grh-for-dirichlet-l-functions-from/lean/#Development.AutomorphicArithmetic.CoprimeRanks.AnyFramewindow)
  - [Development.AutomorphicArithmetic.DedekindLFunctions.SplitInertia](https://riemannhypothesissolved.com/cluster/k0695-an-alternative-route-to-grh-for-dirichlet-l-functions-from/lean/#Development.AutomorphicArithmetic.DedekindLFunctions.SplitInertia)
  - [Development.AutomorphicArithmetic.PrimitiveCosets.GzEq](https://riemannhypothesissolved.com/cluster/k0695-an-alternative-route-to-grh-for-dirichlet-l-functions-from/lean/#Development.AutomorphicArithmetic.PrimitiveCosets.GzEq)
  - [Development.AutomorphicArithmetic.PrimitiveCosets.RecH](https://riemannhypothesissolved.com/cluster/k0695-an-alternative-route-to-grh-for-dirichlet-l-functions-from/lean/#Development.AutomorphicArithmetic.PrimitiveCosets.RecH)
  - [Development.AutomorphicArithmetic.PrimitiveCosets.ToEBij](https://riemannhypothesissolved.com/cluster/k0695-an-alternative-route-to-grh-for-dirichlet-l-functions-from/lean/#Development.AutomorphicArithmetic.PrimitiveCosets.ToEBij)
  - [Development.AutomorphicArithmetic.ShortNorms.ExistsThreePrimesOneModLeRpow](https://riemannhypothesissolved.com/cluster/k0695-an-alternative-route-to-grh-for-dirichlet-l-functions-from/lean/#Development.AutomorphicArithmetic.ShortNorms.ExistsThreePrimesOneModLeRpow)
  - [Development.AutomorphicArithmetic.ThickFrames.topsBase](https://riemannhypothesissolved.com/cluster/k0695-an-alternative-route-to-grh-for-dirichlet-l-functions-from/lean/#Development.AutomorphicArithmetic.ThickFrames.topsBase)
  - [Formalism.SharpRestriction.GlobalSchurBounds.GlobalRankLatticeProofs.LandauZeroFreeHalfPlane](https://riemannhypothesissolved.com/cluster/k0695-an-alternative-route-to-grh-for-dirichlet-l-functions-from/lean/#Formalism.SharpRestriction.GlobalSchurBounds.GlobalRankLatticeProofs.LandauZeroFreeHalfPlane)
  - [Formalism.SharpRestriction.RamificationFrobenius.TotientGaloisClasses.Window](https://riemannhypothesissolved.com/cluster/k0695-an-alternative-route-to-grh-for-dirichlet-l-functions-from/lean/#Formalism.SharpRestriction.RamificationFrobenius.TotientGaloisClasses.Window)
  - [Formalism.SizeWindowBrackets.ChainSlopeWindows.RiemannHypothesisOfPowerBound](https://riemannhypothesissolved.com/cluster/k0695-an-alternative-route-to-grh-for-dirichlet-l-functions-from/lean/#Formalism.SizeWindowBrackets.ChainSlopeWindows.RiemannHypothesisOfPowerBound)
  - [Formalism.ThickAverageLoss.ThickAverageProofs.ThickAverage](https://riemannhypothesissolved.com/cluster/k0695-an-alternative-route-to-grh-for-dirichlet-l-functions-from/lean/#Formalism.ThickAverageLoss.ThickAverageProofs.ThickAverage)
- 11 import steps from Main:
  - [Development.AutomorphicArithmetic.CoprimeRanks.OfPInjective](https://riemannhypothesissolved.com/cluster/k0695-an-alternative-route-to-grh-for-dirichlet-l-functions-from/lean/#Development.AutomorphicArithmetic.CoprimeRanks.OfPInjective)
  - [Development.AutomorphicArithmetic.DedekindLFunctions.RunBaseDimensionLeRankAddGenusTerm](https://riemannhypothesissolved.com/cluster/k0695-an-alternative-route-to-grh-for-dirichlet-l-functions-from/lean/#Development.AutomorphicArithmetic.DedekindLFunctions.RunBaseDimensionLeRankAddGenusTerm)
  - [Development.AutomorphicArithmetic.ThickFrames.topsFrame](https://riemannhypothesissolved.com/cluster/k0695-an-alternative-route-to-grh-for-dirichlet-l-functions-from/lean/#Development.AutomorphicArithmetic.ThickFrames.topsFrame)
  - [Formalism.SharpRestriction.GlobalSchurBounds.FrameCodeOfAdditive](https://riemannhypothesissolved.com/cluster/k0695-an-alternative-route-to-grh-for-dirichlet-l-functions-from/lean/#Formalism.SharpRestriction.GlobalSchurBounds.FrameCodeOfAdditive)
  - [Formalism.SharpRestriction.RamificationFrobenius.TotientGaloisClasses.InertiaGaloisSymmetry.AnyLevel](https://riemannhypothesissolved.com/cluster/k0695-an-alternative-route-to-grh-for-dirichlet-l-functions-from/lean/#Formalism.SharpRestriction.RamificationFrobenius.TotientGaloisClasses.InertiaGaloisSymmetry.AnyLevel)
  - [Formalism.ThickAverageLoss.ParametersAveragedDifferenceBound](https://riemannhypothesissolved.com/cluster/k0695-an-alternative-route-to-grh-for-dirichlet-l-functions-from/lean/#Formalism.ThickAverageLoss.ParametersAveragedDifferenceBound)
  - [Formalism.ZetaNonvanishing.RHofHalfPlane](https://riemannhypothesissolved.com/cluster/k0695-an-alternative-route-to-grh-for-dirichlet-l-functions-from/lean/#Formalism.ZetaNonvanishing.RHofHalfPlane)
- 12 import steps from Main:
  - [Development.AutomorphicArithmetic.PrimitiveCosets.CardPsiA](https://riemannhypothesissolved.com/cluster/k0695-an-alternative-route-to-grh-for-dirichlet-l-functions-from/lean/#Development.AutomorphicArithmetic.PrimitiveCosets.CardPsiA)
  - [Development.AutomorphicArithmetic.PrimitiveCosets.PrimRead](https://riemannhypothesissolved.com/cluster/k0695-an-alternative-route-to-grh-for-dirichlet-l-functions-from/lean/#Development.AutomorphicArithmetic.PrimitiveCosets.PrimRead)
  - [Development.AutomorphicArithmetic.ThickFrames.topsGroup](https://riemannhypothesissolved.com/cluster/k0695-an-alternative-route-to-grh-for-dirichlet-l-functions-from/lean/#Development.AutomorphicArithmetic.ThickFrames.topsGroup)
  - [Formalism.SharpRestriction.GlobalSchurBounds.RamificationTwoAndConjugationAtQAndD](https://riemannhypothesissolved.com/cluster/k0695-an-alternative-route-to-grh-for-dirichlet-l-functions-from/lean/#Formalism.SharpRestriction.GlobalSchurBounds.RamificationTwoAndConjugationAtQAndD)
  - [Formalism.SharpRestriction.RamificationFrobenius.TotientGaloisClasses.InertiaGaloisSymmetry.AnyFrame](https://riemannhypothesissolved.com/cluster/k0695-an-alternative-route-to-grh-for-dirichlet-l-functions-from/lean/#Formalism.SharpRestriction.RamificationFrobenius.TotientGaloisClasses.InertiaGaloisSymmetry.AnyFrame)
  - [Formalism.SharpRestriction.RamificationFrobenius.TotientGaloisClasses.InertiaGaloisSymmetry.OfCharLevel](https://riemannhypothesissolved.com/cluster/k0695-an-alternative-route-to-grh-for-dirichlet-l-functions-from/lean/#Formalism.SharpRestriction.RamificationFrobenius.TotientGaloisClasses.InertiaGaloisSymmetry.OfCharLevel)
- 13 import steps from Main:
  - [Development.AutomorphicArithmetic.ConductorsKronecker.CostPropositionBasicBound](https://riemannhypothesissolved.com/cluster/k0695-an-alternative-route-to-grh-for-dirichlet-l-functions-from/lean/#Development.AutomorphicArithmetic.ConductorsKronecker.CostPropositionBasicBound)
  - [Development.AutomorphicArithmetic.ThickFrames.NotGoodLe](https://riemannhypothesissolved.com/cluster/k0695-an-alternative-route-to-grh-for-dirichlet-l-functions-from/lean/#Development.AutomorphicArithmetic.ThickFrames.NotGoodLe)
  - [Development.AutomorphicArithmetic.ThickFrames.SharesOfCounts](https://riemannhypothesissolved.com/cluster/k0695-an-alternative-route-to-grh-for-dirichlet-l-functions-from/lean/#Development.AutomorphicArithmetic.ThickFrames.SharesOfCounts)
  - [Development.AutomorphicArithmetic.ThickFrames.orbitSum](https://riemannhypothesissolved.com/cluster/k0695-an-alternative-route-to-grh-for-dirichlet-l-functions-from/lean/#Development.AutomorphicArithmetic.ThickFrames.orbitSum)
  - [Development.AutomorphicArithmetic.ThickFrames.orbitTerms](https://riemannhypothesissolved.com/cluster/k0695-an-alternative-route-to-grh-for-dirichlet-l-functions-from/lean/#Development.AutomorphicArithmetic.ThickFrames.orbitTerms)
  - [Development.AutomorphicArithmetic.ThickFrames.select](https://riemannhypothesissolved.com/cluster/k0695-an-alternative-route-to-grh-for-dirichlet-l-functions-from/lean/#Development.AutomorphicArithmetic.ThickFrames.select)
- 14 import steps from Main:
  - [Development.AutomorphicArithmetic.ThickFrames.MarkedLowBounds](https://riemannhypothesissolved.com/cluster/k0695-an-alternative-route-to-grh-for-dirichlet-l-functions-from/lean/#Development.AutomorphicArithmetic.ThickFrames.MarkedLowBounds)
  - [Development.AutomorphicArithmetic.ThickFrames.TailLe](https://riemannhypothesissolved.com/cluster/k0695-an-alternative-route-to-grh-for-dirichlet-l-functions-from/lean/#Development.AutomorphicArithmetic.ThickFrames.TailLe)
  - [Development.AutomorphicArithmetic.ThickFrames.TilesLe](https://riemannhypothesissolved.com/cluster/k0695-an-alternative-route-to-grh-for-dirichlet-l-functions-from/lean/#Development.AutomorphicArithmetic.ThickFrames.TilesLe)
- 15 import steps from Main:
  - [Development.AutomorphicArithmetic.ThickFrames.MarkedGe](https://riemannhypothesissolved.com/cluster/k0695-an-alternative-route-to-grh-for-dirichlet-l-functions-from/lean/#Development.AutomorphicArithmetic.ThickFrames.MarkedGe)

## The files

### Development.AutomorphicArithmetic.CharacterBoxes.EveryCharacter

5 import steps from Main · 18 lines · Checked against the code · [Open in the Lean viewer](https://riemannhypothesissolved.com/file/Development.AutomorphicArithmetic.CharacterBoxes.EveryCharacter)

**Proves conditional nonvanishing of Dirichlet L-functions in the half-plane Re s > 1/2.**

Given Green’s classification of cuspidal characters of finite general linear groups, the host-field hypothesis VWin, and a global interpolation hypothesis bundle, plugWin combines the interpolation theorem with host fields at parameter 3/2 to obtain nonvanishing for primitive characters. The theorem plugAll extends this to all characters using the finite Euler factors relating each character to its primitive associate. The resulting proposition excludes the principal character at s = 1. A direct importer uses it to put every zero of a primitive Dirichlet L-function in the open critical strip on the critical line.

Key declarations:

- `UpperTheory.Top.plugWin`: Derives nonvanishing for all primitive Dirichlet characters in Re s > 1/2 from the three hypotheses.

  ```lean
  theorem UpperTheory.Top.plugWin (hG : GlobalTheory.GLq.Green) (hV : UpperTheory.Top.VWin)
      (h : Nonempty (Hyps (fun 𝒞 => Closed 𝒞 fun Fm _ => LinkN Fm) DRS)) : Formalism.HC.ZeroFreeAll := …
  ```
- `UpperTheory.EveryCharacter`: States that L(s, χ) is nonzero for every Dirichlet character of positive modulus and every s with Re s > 1/2, except for the principal character at s = 1.

  ```lean
  def UpperTheory.EveryCharacter : Prop :=
    ∀ (N : ℕ) [NeZero N] (χ : DirichletCharacter ℂ N) (s : ℂ), 1 / 2 < s.re → (χ ≠ 1 ∨ s ≠ 1) → DirichletCharacter.LFunction χ s ≠ 0
  ```
- `UpperTheory.Top.plugAll`: Proves EveryCharacter under the same three hypotheses as plugWin.

  ```lean
  theorem UpperTheory.Top.plugAll (hG : GlobalTheory.GLq.Green) (hV : UpperTheory.Top.VWin)
      (h : Nonempty (Hyps (fun 𝒞 => Closed 𝒞 fun Fm _ => LinkN Fm) DRS)) : UpperTheory.EveryCharacter := …
  ```

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)

### Development.AutomorphicArithmetic.CharacterBoxes.Imprimitive

6 import steps from Main · 35 lines · Checked against the code · [Open in the Lean viewer](https://riemannhypothesissolved.com/file/Development.AutomorphicArithmetic.CharacterBoxes.Imprimitive)

**Reduces Dirichlet L-function nonvanishing in Re s > 1/2 to the case of primitive characters.**

When χ ≠ 1 or s ≠ 1, the proof expresses the Dirichlet L-function of χ at s as that of its inducing primitive character χ* times a finite product of Euler factors, which are nonzero because |χ*(p)p^(−s)| < 1 for each prime in the product. The importing module EveryCharacter uses this lemma in plugAll to extend its conditional nonvanishing theorem from primitive characters to all characters.

Key declarations:

- `UpperTheory.Top.imprimitive`: If all primitive Dirichlet L-functions are nonzero in Re s > 1/2, then the same holds for every Dirichlet character of positive modulus, with the principal character at s = 1 excepted.

  ```lean
  theorem UpperTheory.Top.imprimitive :
      ZeroFreeAll → ∀ (N : ℕ) [NeZero N] (χ : DirichletCharacter ℂ N) (s : ℂ), 1 / 2 < s.re → (χ ≠ 1 ∨ s ≠ 1) →
        DirichletCharacter.LFunction χ s ≠ 0 := …
  ```

Blueprint: [Primitive characters suffice](https://github.com/chrisflav/riemann-blueprint/blob/137d97602647e450901981a7decfb86ab3024a48/blueprint/architecture/sec-outline-chain/thm-zero-free-from-families/thm-primitive-suffice.md) (Merten's blueprint) · [Restore all characters](https://github.com/nasqret/riemann-rev/blob/6ccea03b21e96b70356c07afb85a88d581b61e86/data/model.json#L2619) (Naskręcki's atlas)

### Development.AutomorphicArithmetic.CharacterBoxes.SupplyChi

6 import steps from Main · 16 lines · Checked against the code · [Open in the Lean viewer](https://riemannhypothesissolved.com/file/Development.AutomorphicArithmetic.CharacterBoxes.SupplyChi)

**Supplies the auxiliary host fields at parameter 3/2 for each primitive Dirichlet character satisfying VWinAt at 401.**

The lemma applies a host-field existence criterion using admissible rank lifts of frames with host data and order in [x^(2+8ε), 2x^(2+8ε)] for 0 < ε < 1/52 and sufficiently large x. The importing module EveryCharacter uses it in plugWin to supply the host fields for its conditional nonvanishing theorem for primitive Dirichlet characters.

Key declarations:

- `UpperTheory.Top.supplyChi`: For each primitive Dirichlet character ψ, the hypothesis VWinAt ψ 401 implies host-field existence at parameter 3/2 with the character-specific requirements GChi ψ.

  ```lean
  theorem UpperTheory.Top.supplyChi :
      ∀ ψ : PChar, VWinAt ψ 401 → HostExW (3 / 2) (GChi ψ).req := …
  ```

Blueprint: [Auxiliary CM fields](https://github.com/chrisflav/riemann-blueprint/blob/137d97602647e450901981a7decfb86ab3024a48/blueprint/chap-zero-free/sec-zf-auxiliary-fields/thm-auxiliary-fields/_section.md) (Merten's blueprint) · [Produce cyclic character hosts](https://github.com/nasqret/riemann-rev/blob/6ccea03b21e96b70356c07afb85a88d581b61e86/data/model.json#L2786) (Naskręcki's atlas)

### Development.AutomorphicArithmetic.CharacterBoxes.ExistsPageN

7 import steps from Main · 81 lines · Checked against the code · [Open in the Lean viewer](https://riemannhypothesissolved.com/file/Development.AutomorphicArithmetic.CharacterBoxes.ExistsPageN)

**Defines a windowed Galois cohomology bound for cyclotomic subfields and proves that the required dyadic scales exist.**

The bound VVle requires finite lengths for the twisted Tate–Shafarevich groups below a twist cutoff and controls their sum weighted by log p. For each ψ, 0 < ε < 1/52 and PageN function e, VWin requires a J ≥ 1 such that for all sufficiently large X and all WinPair primes at X^(1/J), some Y satisfies X^(1/J) ≤ Y and Y² ≤ X. Throughout that window [Y,Y²], at every x, the associated cyclotomic subfields at exponent e(x) satisfy VVle with cutoff ⌊x^401⌋ and bound exp(x^ε/2). The proof of exists_pageN brackets x^(2+8ε) by successive powers of two and takes the upper power. The importer DivinNOfHypV uses VVle to express a cohomological bound on families of host fields.

Key declarations:

- `UpperTheory.Top.VVle`: For every algebraic closure Ω of E and family ld of local data, requires finite ℤₚ-module lengths for the twisted Tate–Shafarevich groups at all primes and twists 1 ≤ e < t, with the log p-weighted sum over those twists and any finite set of primes bounded by B.

  ```lean
  def VVle (E : Type) [Field E] [NumberField E] (t : ℕ) (B : ℝ) : Prop :=
    ∀ (Ω : Type) [Field Ω] [Algebra E Ω] [IsAlgClosure E Ω] (ld : ∀ (p : ℕ) [Fact p.Prime], Formalism.GaloisCohomology.LData E Ω p),
      (∀ (p : ℕ) [Fact p.Prime] (e : ℕ), 0 < e → e < t → Formalism.GaloisCohomology.shaLen (ld p) (e : ℤ) ≠ ⊤) ∧
      ∀ S : Finset Nat.Primes,
        ∑ l ∈ S, Real.log (l : ℕ) *
          ∑ e ∈ Finset.Ico 1 t, ((@Formalism.GaloisCohomology.shaLen E Ω _ _ _ _ _ l ⟨l.2⟩ (@ld l ⟨l.2⟩) (e : ℤ)).toNat : ℝ) ≤ B
  ```
- `UpperTheory.Top.IsChiField`: Specifies a cyclotomic subfield by the fixing subgroup cut out by a ≡ ±1 modulo 2^(e+2), ψ(a) = 1, and Jacobi symbols equal to 1 at q and d.

  ```lean
  def IsChiField (ψ : PChar) (e q d : ℕ) (E : Type) [Field E] [NumberField E] : Prop :=
    ∃ (N : ℕ) (_ : NeZero N) (j : E →ₐ[ℚ] CyclotomicField N ℚ) (ζ : CyclotomicField N ℚ),
      2 ^ (e + 2) ∣ N ∧ ψ.N ∣ N ∧ q ∣ N ∧ d ∣ N ∧ IsPrimitiveRoot ζ N ∧
      ∀ (τ : CyclotomicField N ℚ ≃ₐ[ℚ] CyclotomicField N ℚ) (a : ℕ), τ ζ = ζ ^ a →
        ((∀ x : E, τ (j x) = j x) ↔
          (a ≡ 1 [MOD 2 ^ (e + 2)] ∨ a + 1 ≡ 0 [MOD 2 ^ (e + 2)]) ∧ ψ.val a = 1 ∧
            jacobiSym (a : ℤ) q = 1 ∧ jacobiSym (a : ℤ) d = 1)
  ```
- `UpperTheory.Top.WinPair`: Prescribes logarithmic size ranges for the primes q ≡ 3 mod 8 and d ≡ 7 mod 16, with d + 1 divisible by q and by every odd prime at most Y^(ε/5).

  ```lean
  structure WinPair (eps Y : ℝ) (q d : ℕ) : Prop where
    q_prime : q.Prime
    q_mod : q % 8 = 3
    q_lo : Y ^ (eps / 5) / 2 < Real.log q
    q_up : Real.log q ≤ Y ^ (eps / 5)
    d_prime : d.Prime
    d_mod : d % 16 = 7
    d_lo : Y ^ (eps / 5) * Real.log Y ^ 2 / 2 < Real.log d
    d_up : Real.log d ≤ Y ^ (eps / 5) * Real.log Y ^ 2
    d_q : q ∣ d + 1
    d_small : ∀ p : ℕ, p.Prime → p ≠ 2 → (p : ℝ) ≤ Y ^ (eps / 5) → p ∣ d + 1
  ```
- `UpperTheory.Top.VWin`: Asserts the windowed bound VWinAt with cutoff exponent 401 for every primitive Dirichlet character.

  ```lean
  def VWin : Prop := ∀ ψ : PChar, VWinAt ψ 401
  ```
- `UpperTheory.Top.exists_pageN`: For every ε > 0, gives a function e from real numbers to natural numbers with x^(2+8ε) ≤ 2^(e(x)) ≤ 2x^(2+8ε) for all x ≥ 1.

  ```lean
  theorem exists_pageN (eps : ℝ) (he : 0 < eps) : ∃ e : ℝ → ℕ, ∀ x ≥ (1 : ℝ), PageN eps x (e x) := …
  ```

Blueprint: [The Tate–Shafarevich bound](https://github.com/chrisflav/riemann-blueprint/blob/137d97602647e450901981a7decfb86ab3024a48/blueprint/architecture/sec-outline-interfaces/def-sha-bound.md) (Merten's blueprint) · [Weighted lengths of local-global kernels](https://github.com/nasqret/riemann-rev/blob/6ccea03b21e96b70356c07afb85a88d581b61e86/data/model.json#L1566) (Naskręcki's atlas) · [The cohomological window](https://github.com/nasqret/riemann-rev/blob/6ccea03b21e96b70356c07afb85a88d581b61e86/data/model.json#L1590) (Naskręcki's atlas)

### Development.AutomorphicArithmetic.CharacterBoxes.HostOfField

7 import steps from Main · 23 lines · Checked against the code · [Open in the Lean viewer](https://riemannhypothesissolved.com/file/Development.AutomorphicArithmetic.CharacterBoxes.HostOfField)

**Proves a host construction from field-row data and derives a supply theorem from admissible ranks.**

The two theorems specialize imported constructions. Under boundedness, divisibility, pair, field-row, and admissibility hypotheses, hostOfField produces a host extending the given host data, satisfying HostGood and a shares condition. supplyOfAdm uses this result to obtain HostExW at exponent 3/2 for a character ψ satisfying VWinAt ψ 401, assuming the stated supply of admissible ranks.

Key declarations:

- `UpperTheory.Top.hostOfField`: For 0 < ε < 1/52 and C₀ ≥ 1, chooses uniform constants and, under the stated input bounds and field-row and admissibility hypotheses, constructs a host and auxiliary prime satisfying HostGood and the sharing bound x^(−1+ε).

  ```lean
  theorem UpperTheory.Top.hostOfField :
      ∀ eps C0 : ℝ, 0 < eps → eps < 1 / 52 → 1 ≤ C0 → ∃ CT2 C8 c6 Cb x0 : ℝ, C0 ≤ C8 ∧ 0 < c6 ∧ 0 < Cb ∧
      ∀ (s : Scale) (R : Ranks) (H0 : HostAx R.toFrame) (M : ℕ) (Y : ℝ), s.eps = eps → x0 ≤ s.x → RankVal s R →
        s.J ≤ C0 → (R.o : ℝ) ≤ C0 → (H0.QS : ℝ) ≤ C0 * R.n → 0 < M → (M : ℝ) ≤ C0 → H0.QS ∣ Nat.lcm (2 ^ (R.e + 2)) M →
        PairWin s Y → PairGood M eps Y s.x H0.q H0.d → FieldRows H0.toHostRaw ⌊Y ^ (eps / 5)⌋₊ → admitted R H0 →
        ∃ (H : Host R) (q0 : ℕ), H.toHostAx = H0 ∧ H.CT2 = CT2 ∧ HostGood s C8 4 c6 Cb H q0 ∧
          R.toFrame.Shares H.TT (s.x ^ (-1 + s.eps)) := …
  ```
- `UpperTheory.Top.supplyOfAdm`: For a character ψ satisfying VWinAt ψ 401 and the stated supply of admissible ranks, derives HostExW at exponent 3/2 with EAtH and VVle conditions.

  ```lean
  theorem UpperTheory.Top.supplyOfAdm :
      ∀ ψ : PChar, VWinAt ψ 401 →
      (∀ eps : ℝ, 0 < eps → eps < 1 / 52 → ∃ x0 : ℝ, ∀ (s : Scale) (φ : Frame) (H0 : HostAx φ), s.eps = eps → x0 ≤ s.x →
        s.x ^ (2 + 8 * eps) ≤ (φ.ord : ℝ) → (φ.ord : ℝ) ≤ 2 * s.x ^ (2 + 8 * eps) → φ.o = (Level.cyc ψ).o → KerChi ψ H0.toHostRaw →
        ∃ (R : Ranks) (h : R.toFrame = φ), RankVal s R ∧ admitted R (h ▸ H0)) →
      HostExW (3 / 2) (fun _ s R H _ => EAtH (Level.cyc ψ) H.toHostRaw H.TT s.x s.eps 4 ∧ VVle H.E R.t (Real.sqrt s.b)) := …
  ```

### Development.AutomorphicArithmetic.CharacterBoxes.Imports

7 import steps from Main · 16 lines · Checked against the code · [Open in the Lean viewer](https://riemannhypothesissolved.com/file/Development.AutomorphicArithmetic.CharacterBoxes.Imports)

**Defines admissibility for completing rank and field data to a host with prescribed auxiliary choices.**

The definition packages a host-completion condition for every splitting bound and every compatible choice of auxiliary data, including level primes and an ideal. The importer AdmChi verifies the condition using a host-existence theorem, and hostOfFieldOf uses it to realize its chosen auxiliary data.

Key declarations:

- `UpperTheory.Top.admitted`: For rank data R and host-field data H₀, requires a host extending H₀ with splitting bound b and realizing every compatible Choices value for the given frame and raw host data whenever FieldRows holds at b and both q and d exceed 4 · R.t · R.r + 1.

  ```lean
  def admitted (R : Ranks) (H0 : HostAx R.toFrame) : Prop :=
    ∀ (b : ℕ) (c : Choices R.toFrame H0.toHostRaw), FieldRows H0.toHostRaw b →
      (4 * R.t * R.r + 1 < H0.q ∧ 4 * R.t * R.r + 1 < H0.d) →
      ∃ D : Host R, D.toHostAx = H0 ∧ D.splitBound = b ∧ HEq (HostNF.ofHost D).ch c
  ```

### Development.AutomorphicArithmetic.CoprimeRanks.AdmChi

7 import steps from Main · 24 lines · Checked against the code · [Open in the Lean viewer](https://riemannhypothesissolved.com/file/Development.AutomorphicArithmetic.CoprimeRanks.AdmChi)

**Proves host admissibility for rank data and supplies admissible ranks for frames in a prescribed order range.**

The first theorem applies host existence to realize the prescribed choices while retaining the host axioms and the splitting bound. The second uses an imported rank-existence theorem and applies the first to the resulting ranks. For each 0 < ε < 1/52, a single threshold for x works for every frame with host axioms and order in [x^(2+8ε), 2x^(2+8ε)]. The character-supply and short-norm host-existence proofs use the resulting admissible ranks.

Key declarations:

- `UpperTheory.Top.admissible_ranks_of_CMDatum`: Given ranks and host axioms, realizes each prescribed choice by a host with the same axioms and specified splitting bound, subject to the field-row conditions and both q and d exceeding 4tr + 1.

  ```lean
  theorem admissible_ranks_of_CMDatum (R : Ranks) (H0 : HostAx R.toFrame) : admitted R H0 := …
  ```
- `UpperTheory.Top.admissibleClassesTwistedChar`: For each 0 < ε < 1/52 and all sufficiently large x, extends every frame with host axioms and order in [x^(2+8ε), 2x^(2+8ε)] to rank data satisfying RankVal and host admissibility.

  ```lean
  theorem admissibleClassesTwistedChar : ∀ eps : ℝ, 0 < eps → eps < 1 / 52 → ∃ x0 : ℝ, ∀ (s : Scale) (φ : Frame) (H0 : HostAx φ),
      s.eps = eps → x0 ≤ s.x → s.x ^ (2 + 8 * s.eps) ≤ (φ.ord : ℝ) → (φ.ord : ℝ) ≤ 2 * s.x ^ (2 + 8 * s.eps) →
      ∃ (R : Ranks) (h : R.toFrame = φ), RankVal s R ∧ admitted R (h ▸ H0) := …
  ```

### Formalism.SharpRestriction.RamificationFrobenius.TotientGaloisClasses.ExplicitFormulaErrorOfHostConditions

7 import steps from Main · 168 lines · Checked against the code · [Open in the Lean viewer](https://riemannhypothesissolved.com/file/Formalism.SharpRestriction.RamificationFrobenius.TotientGaloisClasses.ExplicitFormulaErrorOfHostConditions)

**Derives explicit-formula error data from host conditions and reduces family-wide zero-freeness to cyclic levels.**

A subgroup of Dirichlet characters defines a level by taking their primitive representatives. If the cyclic level generated by each character in a family is zero-free in Re(s) > 1/2, then so is the family. The weighted combination of corrected, smoothed Chebyshev terms uses the zeta term with its main term subtracted and nontrivial character terms with logarithmic-derivative corrections. A growth condition links its eventual upper bound to zero-freeness. Under the range and share hypotheses, the main theorem obtains the error data from the host conditions by rescaling the logarithmic derivative bound from κ.C log X to κ.C J log x.

Key declarations:

- `Formalism.HC.Level.Gm`: Adds the zeta term to a weighted sum of the real parts of the nontrivial retained characters’ Chebyshev terms.

  ```lean
  def Gm (y : ℝ) : ℝ := Formalism.Gz y + ∑ ψ ∈ Λ.Nt, Λ.wt ψ * (An.gChi ψ.χ y).re
  ```
- `Formalism.HC.Level.ChebyshevGrowthImpliesZeroFree`: States that an eventual upper bound of y^θ for the weighted Chebyshev sum implies zero-freeness in Re(s) > θ for every retained character, for 0 < θ < 1.

  ```lean
  def ChebyshevGrowthImpliesZeroFree : Prop :=
    ∀ θ : ℝ, 0 < θ → θ < 1 → ∀ y0 : ℝ, (∀ y ≥ y0, Λ.Gm y ≤ y ^ θ) → Λ.ZeroFreeAbove θ
  ```
- `Formalism.HC.zeroFreeOn_of_cyc`: Deduces zero-freeness in Re(s) > 1/2 for a family from zero-freeness of all primitive representatives in each member’s cyclic level.

  ```lean
  theorem zeroFreeOn_of_cyc {Q : PChar → Prop} (h : ∀ ψ, Q ψ → (Level.cyc ψ).ZeroFreeLevel) : ZeroFreeOn Q := …
  ```
- `Formalism.HC.EAtH`: Packages order agreement, character retention including the exceptional-character condition, share discrepancy, bounds at x on corrected Chebyshev terms for primitive representatives of bounded host characters, and bounds on logarithmic derivatives at 1.

  ```lean
  structure EAtH (Λ : Level) {φ : Frame} (H : HostRaw φ) (TT : Finset φ.A) (x eps C : ℝ) : Prop where
    o_eq : φ.o = Λ.o
    kept : H.KeptInXp Λ.KEPT
    ps : H.ExceptionalCharacterKept Λ.KEPT Λ.psK
    shares : φ.Shares TT (x ^ (-1 + eps))
    bdG : H.BoundedCharsPointwise Λ.KEPT x eps
    bdL : ∀ θ ∈ H.Bounded Λ.KEPT, ∀ (N : ℕ) [NeZero N] (χ : DirichletCharacter ℂ N), H.IsPrimOf θ χ →
      ‖An.logDerivativeAtOne χ‖ ≤ C * Real.log x
  ```
- `Formalism.HC.EAtH.explicit_formula_error_of_host_conditions`: Establishes the error data with logarithmic derivative bound κ.C J log x from the host conditions, the range and share hypotheses, and κ.C ≥ 0.

  ```lean
  theorem EAtH.explicit_formula_error_of_host_conditions {T : HType} {κ : HConst} {X x : ℝ} {φ : Frame} {H : HostRaw φ} (hr : T.InRange X x φ.e) (hC : 0 ≤ κ.C)
      (h : HostConditions T κ X x H) {TT : Finset φ.A} (hs : φ.Shares TT (x ^ (-1 + T.eps))) :
      EAtH (T.level φ.o) H TT x T.eps (κ.C * T.J) := …
  ```

Blueprint: [Slope data](https://github.com/chrisflav/riemann-blueprint/blob/137d97602647e450901981a7decfb86ab3024a48/blueprint/chap-zero-free/sec-zf-core/def-slope-data.md) (Merten's 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) · [Zero-freeness for primitive characters](https://github.com/chrisflav/riemann-blueprint/blob/137d97602647e450901981a7decfb86ab3024a48/blueprint/chap-zero-free/sec-zf-windows/def-zero-free-primitive.md) (Merten's blueprint) · [The weighted prime sum](https://github.com/nasqret/riemann-rev/blob/6ccea03b21e96b70356c07afb85a88d581b61e86/data/model.json#L1518) (Naskręcki's atlas)

### Development.AutomorphicArithmetic.CharacterBoxes.TwistForm

8 import steps from Main · 30 lines · Checked against the code · [Open in the Lean viewer](https://riemannhypothesissolved.com/file/Development.AutomorphicArithmetic.CharacterBoxes.TwistForm)

**Defines an Artin-kernel condition, a quadratic twist formula, and the scale data for auxiliary host fields.**

KerChi describes the Artin kernel through a 2-adic congruence, the kernel of the given character, and two Jacobi-symbol conditions. TwistForm expresses host characters trivial on the first factor as powers of the given character multiplied by quadratic factors at q and d. WinDatum combines the prime-pair conditions, a dyadic size range, and a cohomological length bound. BoundedTw uses the twist formula to transfer analytic bounds to host characters, and WinPairs constructs the scale data.

Key declarations:

- `UpperTheory.Top.KerChi`: Requires ψ.N to divide H.QS and identifies the Artin kernel on units with the simultaneous conditions a ≡ ±1 modulo 2^(e+2), ψ(a) = 1, and both Jacobi symbols at q and d equal to 1.

  ```lean
  def KerChi (ψ : PChar) {φ : Frame} (H : HostRaw φ) : Prop :=
    ψ.N ∣ H.QS ∧ ∀ (a : ℕ) (h : a.Coprime H.condN), H.art (ZMod.unitOfCoprime a h) = 1 ↔
      (a ≡ 1 [MOD 2 ^ (φ.e + 2)] ∨ a + 1 ≡ 0 [MOD 2 ^ (φ.e + 2)]) ∧ ψ.val a = 1 ∧
        jacobiSym (a : ℤ) H.q = 1 ∧ jacobiSym (a : ℤ) H.d = 1
  ```
- `UpperTheory.Top.TwistForm`: For each frame character θ trivial on the first factor, requires its Dirichlet values on units to agree with a power of ψ times the Jacobi symbols at q and d raised to exponents i and j in {0, 1}, with θ(iod) = (−1)^j.

  ```lean
  def TwistForm (ψ : PChar) {φ : Frame} (H : HostRaw φ) : Prop :=
    ∀ θ : φ.Char, Frame.TrivialOnFirstFactor θ → ∃ ξ ∈ Subgroup.zpowers ψ.χ, ∃ i j : Fin 2,
      θ φ.iod = (-1) ^ (j : ℕ) ∧
        ∀ a : ℕ, a.Coprime H.condN → H.dirAt θ a = tw (fun b => ξ (b : ZMod ψ.N)) H.q H.d i j a
  ```
- `UpperTheory.Top.WinDatum`: Records x^(1/J) ≤ Y ≤ x, an admissible prime pair with analytic bounds, and x^(2+8ε) ≤ c·2^e ≤ 2x^(2+8ε), and requires for each IsChiField field that shaLen be finite at every prime and exponent 1 ≤ k < ⌊x^400⌋₊ and that the sum over these exponents and any finite set of primes, weighted by log p at prime p, be at most exp((x^ε)/2).

  ```lean
  structure WinDatum (ψ : PChar) (eps J c x Y : ℝ) (q d e : ℕ) : Prop where
    lo : x ^ (1 / J) ≤ Y
    up : Y ≤ x
    good : PairGood ψ.N eps Y x q d
    n_lo : x ^ (2 + 8 * eps) ≤ c * 2 ^ e
    n_up : c * 2 ^ e ≤ 2 * x ^ (2 + 8 * eps)
    bound : ∀ (E : Type) [Field E] [NumberField E], IsChiField ψ e q d E →
      VVle E ⌊x ^ (400 : ℝ)⌋₊ (Real.sqrt (Real.exp (x ^ eps)))
  ```

Blueprint: [Auxiliary CM fields](https://github.com/chrisflav/riemann-blueprint/blob/137d97602647e450901981a7decfb86ab3024a48/blueprint/chap-zero-free/sec-zf-auxiliary-fields/thm-auxiliary-fields/_section.md) (Merten's blueprint)

### Development.AutomorphicArithmetic.CoprimeRanks.SecondSetNoRelation

8 import steps from Main · 164 lines · Checked against the code · [Open in the Lean viewer](https://riemannhypothesissolved.com/file/Development.AutomorphicArithmetic.CoprimeRanks.SecondSetNoRelation)

**Assembles host data from field hypotheses and auxiliary choices, and proves that such choices always exist.**

The field hypotheses include a Galois-equivariant square root of −q and a Jacobi-symbol condition for small odd primes. The host construction adjoins an embedding in the CM type and a factorization of the relative different into coprime conjugate ideals. The auxiliary choices can be made using four large primes, two congruent to 1 modulo 15, and the unit ideal. A separate predicate records logarithmic windows for q and d and a small-prime splitting condition. The character-specific and general frame constructions use the field hypotheses to state what their outputs satisfy.

Key declarations:

- `HostParam.Seam.FieldRows`: Collects the Galois action on a square root of −q, constraints on the modulus QS and frame parameters, and small-prime splitting and size bounds.

  ```lean
  structure FieldRows {φ : Frame} (H : HostRaw φ) (b : ℕ) : Prop where
    psQ : H.PsQ
    sqq : ∃ s : H.E, s ^ 2 = -(H.q : H.E) ∧ ∀ σ : H.E ≃ₐ[ℚ] H.E, σ s = ((((H.gal σ).1.1 : ℤˣ) : ℤ) : H.E) * s
    QS_exact : H.Exact
    QS_le : H.QS ≤ φ.ord ^ 2
    o_pow : φ.o ^ 64 ≤ 2 ^ φ.e
    q_ne_three : H.q ≠ 3
    split_small : ∀ p : ℕ, p.Prime → p ≠ 2 → p ≤ b → jacobiSym (-(H.d : ℤ)) p = 1
    small_le : ∀ l : ℕ, l.Prime → l ≠ 2 → l ∣ H.QS → 4 * l ≤ b
  ```
- `HostParam.Seam.Choices`: Specifies level primes, a primitive ideal with splitting and coprimality conditions, and finite sets including a set of integers subject to a range bound and a relation-exclusion condition.

  ```lean
  structure Choices (φ : Frame) (H : HostRaw φ)
  ```
- `HostParam.Seam.HostNF`: Packages the host axioms, field hypotheses, and auxiliary choices together with the square root, the CM-type embedding, and a factor of the relative different fixed by automorphisms whose image under ax.gal lies in R.Psi.

  ```lean
  structure HostNF (R : Ranks) where
    ax : HostAx R.toFrame
    splitBound : ℕ
    what₂ : FieldRows ax.toHostRaw splitBound
    qd_big : 4 * R.t * R.r + 1 < ax.q ∧ 4 * R.t * R.r + 1 < ax.d
    sqq : ax.E
    sqq_sq : sqq ^ 2 = -(ax.q : ax.E)
    gal_sqq : ∀ σ : ax.E ≃ₐ[ℚ] ax.E, σ sqq = ((((ax.gal σ).1.1 : ℤˣ) : ℤ) : ax.E) * sqq
    φ₀ : ax.E →+* ℂ
    φ₀_mem : φ₀ ∈ ax.toHostRaw.cmType
    𝔟 : Ideal (𝓞 ax.E)
    𝔟_spec : differentIdeal (𝓞 ax.toHostRaw.K) (𝓞 ax.E) = 𝔟 * (ax.toHostRaw.conj • 𝔟) ∧ 𝔟 ⊔ ax.toHostRaw.conj • 𝔟 = ⊤
    𝔟_stable : ∀ σ : ax.E ≃ₐ[ℚ] ax.E, ax.gal σ ∈ R.Psi → σ • 𝔟 = 𝔟
    ch : Choices R.toFrame ax.toHostRaw
  ```
- `HostParam.Seam.exists_host`: Extends the given host axioms to a host realizing the specified splitting bound and auxiliary choices, provided the field hypotheses hold and both q and d exceed 4tr + 1.

  ```lean
  theorem exists_host (R : Ranks) (H : HostAx R.toFrame) {b : ℕ} (h : FieldRows H.toHostRaw b)
      (hq : 4 * R.t * R.r + 1 < H.q ∧ 4 * R.t * R.r + 1 < H.d) (c : Choices R.toFrame H.toHostRaw) :
      ∃ D : Formalism.BasicNotions.Host R, D.toHostAx = H ∧ D.splitBound = b ∧ HEq (HostNF.ofHost D).ch c := …
  ```
- `HostParam.Seam.nonempty_choices`: Proves that every underlying host field datum admits a set of auxiliary choices.

  ```lean
  theorem nonempty_choices {φ : Frame} (H : HostRaw φ) : Nonempty (Choices φ H) := …
  ```

### Development.AutomorphicArithmetic.FrobeniusLocalisation.SizeDefs

8 import steps from Main · 63 lines · Checked against the code · [Open in the Lean viewer](https://riemannhypothesissolved.com/file/Development.AutomorphicArithmetic.FrobeniusLocalisation.SizeDefs)

**Defines Frobenius representatives and two bounded sets of inert primes, and proves that inert primes are coprime to the host modulus.**

A prime p is inert when the Jacobi symbol (−d/p) equals −1. Reduction modulo 8 rules out the prime 2, and the host divisibility lemma then gives coprimality with the host modulus. The first bounded set requires Frobenius to be distinct from complex conjugation and to generate a subgroup containing it, and the second requires the second Frobenius component to lie in the kernel of hH. The frame definitions record the size of the kernel of hH, membership in a translated image, and the place associated to g^iτ. The Frobenius representative is used to describe arithmetic Frobenius and prime decomposition in the host field.

Key declarations:

- `UpperTheory.HF.Formalism.HC.HostRaw.frobG`: Assigns to a natural number coprime to the host modulus the Artin image of its residue class, and assigns the identity in the remaining cases.

  ```lean
  def frobG (p : ℕ) : φ.GG :=
    if h : Nat.Coprime p H.condN then H.art (ZMod.unitOfCoprime p h) else 1
  ```
- `UpperTheory.HF.Formalism.HC.HostRaw.Inert`: Selects primes p for which the Jacobi symbol (−d/p) equals −1.

  ```lean
  def Inert (p : ℕ) : Prop := p.Prime ∧ jacobiSym (-(H.d : ℤ)) p = -1
  ```
- `UpperTheory.HF.Formalism.HC.HostRaw.DRC`: Collects inert primes p ≤ B whose Frobenius generates a subgroup containing complex conjugation and is distinct from complex conjugation.

  ```lean
  def DRC (B : ℝ) : Set ℕ :=
    {p | H.Inert p ∧ (p : ℝ) ≤ B ∧ φ.cc ∈ Subgroup.zpowers (H.frobG p) ∧ H.frobG p ≠ φ.cc}
  ```
- `UpperTheory.HF.Formalism.HC.HostRaw.DRh`: Collects inert primes p ≤ B for which the second component of Frobenius lies in the kernel of hH.

  ```lean
  def DRh (B : ℝ) : Set ℕ := {p | H.Inert p ∧ (p : ℝ) ≤ B ∧ φ.hH (H.frobG p).2 = 1}
  ```
- `UpperTheory.HF.Formalism.HC.HostRaw.Inert.coprime`: Proves that every inert prime is coprime to the host modulus.

  ```lean
  theorem Inert.coprime {H : HostRaw φ} {p : ℕ} (h : H.Inert p) : Nat.Coprime p H.condN := …
  ```

### Development.AutomorphicArithmetic.ShortNorms.hostExOneOf

8 import steps from Main · 57 lines · Checked against the code · [Open in the Lean viewer](https://riemannhypothesissolved.com/file/Development.AutomorphicArithmetic.ShortNorms.hostExOneOf)

**Derives host existence on all sufficiently large scales with J = 1 from a uniform extension hypothesis for admissible field data.**

For each 0 < ε < 1/52, the theorem obtains valid ranks, a host satisfying the HostGood conditions, and an auxiliary prime, with constants uniform in the scale. The proof sets M = 1 and Y = x, takes the trivial Dirichlet character subgroup modulo 1, and uses a prime pair with prescribed Jacobi symbols to construct field data through ⌊x^(ε/5)⌋. It chooses the frame order between x^(2+8ε) and 2x^(2+8ε), supplies admissible ranks, and applies the extension hypothesis with C₀ = 4.

Key declarations:

- `UpperTheory.T3.hostExOneOf`: If admissible field data meeting the pair, size, and divisibility conditions can be uniformly extended to hosts satisfying HostGood and the sharing bound, then for each 0 < ε < 1/52 the proof gives uniform constants and, on all sufficiently large scales with J = 1 and that ε, valid ranks, a HostGood host, and an auxiliary prime.

  ```lean
  theorem UpperTheory.T3.hostExOneOf :
      (∀ eps C0 : ℝ, 0 < eps → eps < 1 / 52 → 1 ≤ C0 → ∃ CT2 C8 c6 Cb x0 : ℝ, C0 ≤ C8 ∧ 0 < c6 ∧ 0 < Cb ∧
        ∀ (s : Scale) (R : Ranks) (H0 : HostAx R.toFrame) (M : ℕ) (Y : ℝ), s.eps = eps → x0 ≤ s.x → RankVal s R →
          s.J ≤ C0 → (R.o : ℝ) ≤ C0 → (H0.QS : ℝ) ≤ C0 * R.n → 0 < M → (M : ℝ) ≤ C0 → H0.QS ∣ Nat.lcm (2 ^ (R.e + 2)) M →
          PairWin s Y → PairGood M eps Y s.x H0.q H0.d → FieldRows H0.toHostRaw ⌊Y ^ (eps / 5)⌋₊ → admitted R H0 →
          ∃ (H : Host R) (q0 : ℕ), H.toHostAx = H0 ∧ H.CT2 = CT2 ∧ HostGood s C8 4 c6 Cb H q0 ∧
            R.toFrame.Shares H.TT (s.x ^ (-1 + s.eps))) → GlobalTheory.EX.HostEx := …
  ```

### Development.AutomorphicArithmetic.ShortNorms.hostOfFieldOf

8 import steps from Main · 255 lines · Checked against the code · [Open in the Lean viewer](https://riemannhypothesissolved.com/file/Development.AutomorphicArithmetic.ShortNorms.hostOfFieldOf)

**Extends admissible field data to hosts with controlled splitting, character zero-free regions, and a frame-sharing bound.**

Assuming ShortNorm and SmallOne, the theorem extends admissible field data to a host with uniform bounds for sufficiently large x. It requires valid ranks, the uniform bounds on J, rank order and conductor parameters, the conductor divisibility, PairWin and PairGood, and FieldRows with split bound ⌊Y^(ε/5)⌋₊. The proof selects level primes with norm and congruence conditions, constructs a large index set with Frobenius-orbit nonrelation, and chooses a frame subset with sharing bound x^(−1+ε). It obtains real-character zero-free bounds using the divisibility of the odd part of the conductor parameter. HostOfField supplies the two inputs to obtain UpperTheory.Top.hostOfField.

Key declarations:

- `UpperTheory.T3.hostOfFieldOf`: Given ShortNorm and SmallOne, produces for each 0 < ε < 1/52 and C₀ ≥ 1 uniform constants and a threshold beyond which the stated field data extend to a host satisfying HostGood and the sharing bound x^(−1+ε), together with an auxiliary prime.

  ```lean
  theorem UpperTheory.T3.hostOfFieldOf :
      UpperTheory.T3.ShortNorm → UpperTheory.T3.SmallOne → ∀ eps C0 : ℝ, 0 < eps → eps < 1 / 52 → 1 ≤ C0 → ∃ CT2 C8 c6 Cb x0 : ℝ, C0 ≤ C8 ∧ 0 < c6 ∧ 0 < Cb ∧
        ∀ (s : Scale) (R : Ranks) (H0 : HostAx R.toFrame) (M : ℕ) (Y : ℝ), s.eps = eps → x0 ≤ s.x → RankVal s R →
          s.J ≤ C0 → (R.o : ℝ) ≤ C0 → (H0.QS : ℝ) ≤ C0 * R.n → 0 < M → (M : ℝ) ≤ C0 → H0.QS ∣ Nat.lcm (2 ^ (R.e + 2)) M →
          PairWin s Y → PairGood M eps Y s.x H0.q H0.d → FieldRows H0.toHostRaw ⌊Y ^ (eps / 5)⌋₊ → admitted R H0 →
          ∃ (H : Host R) (q0 : ℕ), H.toHostAx = H0 ∧ H.CT2 = CT2 ∧ HostGood s C8 4 c6 Cb H q0 ∧
            R.toFrame.Shares H.TT (s.x ^ (-1 + s.eps)) := …
  ```
- `hof_exists_host`: Given admissibility, field rows, the lower bounds on q and d, the prime and coprimality conditions, and the index-set window and nonrelation conditions, builds a host retaining the prescribed level-prime set, index set, and window length.

  ```lean
  private theorem hof_exists_host (R : Ranks) (H0 : HostAx R.toFrame) (hA : admitted R H0) (b : ℕ) (hF : FieldRows H0.toHostRaw b)
      (hbig : 4 * R.t * R.r + 1 < H0.q ∧ 4 * R.t * R.r + 1 < H0.d)
      (g : Fin 2 → ℕ) (p p' q0 : ℕ) (hg : ∀ i, (g i).Prime) (hne : g 0 ≠ g 1) (hp : p.Prime) (hp' : p'.Prime)
      (hpp : p ≠ p') (hm : p % 15 = 1 ∧ p' % 15 = 1) (hpg : ∀ i, p ≠ g i ∧ p' ≠ g i)
      (T : Finset ℕ) (Lw : ℕ) (hL : 2 ≤ Lw) (hT : ∀ a ∈ T, 4 * Lw * a < R.n0) (hT' : Formalism.FrobeniusOrbits.NoRel T Lw) (CT2 : ℝ)
      (hS : ∀ l ∈ ({g 0, g 1, p, p', q0} : Finset ℕ), Nat.Coprime l H0.QS) :
      ∃ H : Host R, H.toHostAx = H0 ∧ H.splitBound = b ∧ H.g = g ∧ H.pde = p ∧ H.pde' = p' ∧
        H.levelPrimes = {g 0, g 1, p, p', q0} ∧ H.ccK = ⊤ ∧ H.T2 = T ∧ H.Lw = Lw ∧ H.CT2 = CT2 := …
  ```
- `hof_thick`: Constructs an index set T satisfying the Frobenius-orbit nonrelation condition, with cardinality at least x^(−ε)n and packing bound 4Lw·|T| ≤ n₀.

  ```lean
  private theorem hof_thick :
      ∃ CT2 : ℝ, ∀ eps Co : ℝ, 0 < eps → eps < 1 / 52 → ∃ x0 : ℝ, ∀ (s : Scale) (R : Ranks), s.eps = eps → x0 ≤ s.x →
        RankVal s R → (R.o : ℝ) ≤ Co → ∃ T : Finset ℕ, (∀ a ∈ T, 4 * Lwv s * a < R.n0) ∧ Formalism.FrobeniusOrbits.NoRel T (Lwv s) ∧
          (R.n0 : ℝ) * Real.exp (-(CT2 * Real.sqrt (Real.log (R.n0 : ℝ) * Real.log (Lwv s)))) / (Lwv s) ≤ T.card ∧
          s.x ^ (-s.eps) * R.n ≤ (T.card : ℝ) ∧ 4 * Lwv s * T.card ≤ R.n0 ∧ 2 ≤ Lwv s := …
  ```
- `hof_box`: Derives the BoxH and RealBox bounds for real host characters from the prime-pair estimates and the conductor divisibility condition.

  ```lean
  private theorem hof_box {R : Ranks} (H : Host R) {M : ℕ} {eps Y X : ℝ} (hM : 0 < M) (hQ : H.QS ∣ Nat.lcm (2 ^ (R.e + 2)) M)
      (hG : PairGood M eps Y X H.q H.d) : BoxH H Y eps ∧ UpperTheory.Top.RealBox H.toHostRaw := …
  ```
- `hof_abs_dlogH_le`: Bounds the absolute real part of the logarithmic derivative at 1 of the quadratic Dirichlet L-function modulo d by C log x under the QDq estimates.

  ```lean
  private theorem hof_abs_dlogH_le {R : Ranks} (H : Host R) {x eps C : ℝ} (h : QDq x eps C H.q H.d) :
      |dlogH H| ≤ C * Real.log x := …
  ```

### Development.AutomorphicArithmetic.ShortNorms.supplyOfAdmOf

8 import steps from Main · 135 lines · Checked against the code · [Open in the Lean viewer](https://riemannhypothesissolved.com/file/Development.AutomorphicArithmetic.ShortNorms.supplyOfAdmOf)

**Derives host existence on arbitrarily large scale intervals from admissible ranks, a field-extension theorem, and a character window bound.**

Given uniform host extension, admissible ranks for the character data, and the window hypothesis at exponent 401 for a primitive Dirichlet character ψ, the theorem supplies hosts for each 0 < ε < 1/52 at scales with that ε and a common J throughout arbitrarily large intervals [Z, Z^(3/2)]. The proof uses prime pairs and Jacobi-symbol conditions to construct field data adapted to ψ, then applies the rank and host-extension hypotheses. It transfers the window estimate to the host field and bounds the complex norms of the specified logarithmic derivatives at 1 by 4 log x. HostOfField supplies the extension theorem to obtain UpperTheory.Top.supplyOfAdm.

Key declarations:

- `UpperTheory.T3.supplyOfAdmOf`: Given the uniform field-extension theorem, the window hypothesis at 401, and admissible ranks for the specified character data, obtains hosts satisfying HostGood, the character conditions EAtH, and the field bound VVle at rank parameter t and cutoff √b.

  ```lean
  theorem UpperTheory.T3.supplyOfAdmOf :
      (∀ eps C0 : ℝ, 0 < eps → eps < 1 / 52 → 1 ≤ C0 → ∃ CT2 C8 c6 Cb x0 : ℝ, C0 ≤ C8 ∧ 0 < c6 ∧ 0 < Cb ∧
        ∀ (s : Scale) (R : Ranks) (H0 : HostAx R.toFrame) (M : ℕ) (Y : ℝ), s.eps = eps → x0 ≤ s.x → RankVal s R →
          s.J ≤ C0 → (R.o : ℝ) ≤ C0 → (H0.QS : ℝ) ≤ C0 * R.n → 0 < M → (M : ℝ) ≤ C0 → H0.QS ∣ Nat.lcm (2 ^ (R.e + 2)) M →
          PairWin s Y → PairGood M eps Y s.x H0.q H0.d → FieldRows H0.toHostRaw ⌊Y ^ (eps / 5)⌋₊ → admitted R H0 →
          ∃ (H : Host R) (q0 : ℕ), H.toHostAx = H0 ∧ H.CT2 = CT2 ∧ HostGood s C8 4 c6 Cb H q0 ∧
            R.toFrame.Shares H.TT (s.x ^ (-1 + s.eps))) → ∀ ψ : PChar, VWinAt ψ 401 →
        (∀ eps : ℝ, 0 < eps → eps < 1 / 52 → ∃ x0 : ℝ, ∀ (s : Scale) (φ : Frame) (H0 : HostAx φ), s.eps = eps → x0 ≤ s.x →
          s.x ^ (2 + 8 * eps) ≤ (φ.ord : ℝ) → (φ.ord : ℝ) ≤ 2 * s.x ^ (2 + 8 * eps) → φ.o = (Level.cyc ψ).o → KerChi ψ H0.toHostRaw →
          ∃ (R : Ranks) (h : R.toFrame = φ), RankVal s R ∧ admitted R (h ▸ H0)) →
        HostExW (3 / 2) (fun _ s R H _ => EAtH (Level.cyc ψ) H.toHostRaw H.TT s.x s.eps 4 ∧ VVle H.E R.t (Real.sqrt s.b)) := …
  ```

### Formalism.SharpRestriction.GlobalSchurBounds.TopDensityNGeSixteen

8 import steps from Main · 1,940 lines · Checked against the code · [Open in the Lean viewer](https://riemannhypothesissolved.com/file/Formalism.SharpRestriction.GlobalSchurBounds.TopDensityNGeSixteen)

**Identifies primitive Dirichlet characters of the host field and derives conditional lattice-frame, slope and loss bounds.**

Host-field characters are matched with primitive Dirichlet characters by their values on unramified Frobenius elements, yielding identities for the associated weighted prime-power sums. Orthonormal bases turn the Bessel identity into a block matrix realization, and Hilbert–Schmidt bounds feed into frame estimates. Separate reductions turn placewise inequalities into lattice slope bounds and average over admissible integer weights to obtain loss bounds with exponent zero. LinkPk uses the frame and character comparisons to assemble its global theorem.

Key declarations:

- `Formalism.MainNotions.LnkBr.prim_spec`: The selected Dirichlet character is primitive and agrees with the host-field character on Frobenius at every unramified prime.

  ```lean
  theorem prim_spec (ψ : Chr D) : Reads D ψ (prim D ψ) := …
  ```
- `Formalism.MainNotions.Lnk.blockReal_at_of`: The Bessel identity realizes the embedded lattice pairing matrices, up to invertible basis changes, as selected rows of orthonormal-coordinate matrices after scalar transport by identity or conjugation and an isometric column embedding.

  ```lean
  theorem blockReal_at_of (D : D7) (h : BesselId D) : BlockReal_at D := …
  ```
- `Formalism.MainNotions.Lnk.frameF_of`: A family of frame realizations yields frame bounds under the lattice, fullness and chosen parameter hypotheses.

  ```lean
  theorem frameF_of {eps : ℝ} (Fm : FamP eps) (CH C0 : ℝ) (hCH : 0 < CH) (hC0 : 1 ≤ C0)
      (hReal : FrameRealF Fm CH) (hLat : LatF Fm) (cPr : ChosenProviso Fm C0) (cCo : ChosenCode Fm C0 CH)
      (hNF : NuFullF Fm) : FrameF Fm CH := …
  ```
- `Formalism.MainNotions.Lnk.estimates_of_points_family`: Family coverage and pointwise prime estimates at sufficiently large admissible scales imply the family small-order-prime hypothesis.

  ```lean
  theorem estimates_of_points_family (Fm : FamP eps) (hCov : Fm.CoverAll) (h : StatementsAtPointsLargeScales Fm) : SmallOrderPrimes Fm := …
  ```
- `Formalism.MainNotions.Lnk.lossF_of_core`: The family small-order-prime hypothesis yields simultaneous loss bounds with exponent zero.

  ```lean
  theorem lossF_of_core (Fm : FamP eps) (h : SmallOrderPrimes Fm) : LossF Fm 0 := …
  ```

### Formalism.SharpRestriction.RamificationFrobenius.TotientGaloisClasses.Analytic

8 import steps from Main · 176 lines · Checked against the code · [Open in the Lean viewer](https://riemannhypothesissolved.com/file/Formalism.SharpRestriction.RamificationFrobenius.TotientGaloisClasses.Analytic)

**Defines smoothed Chebyshev terms and analytic host conditions, and proves uniqueness of primitive inducing characters.**

The smoothed Chebyshev term uses von Mangoldt weights and, for a nonprincipal character, adds y times the logarithmic derivative at 1. Primitive inducing characters are unique because agreement on integers coprime to the host modulus gives equality after lifting to a common modulus, where the conductors recover the primitive moduli. The host conditions combine character retention with Chebyshev and logarithmic derivative bounds. The explicit-formula error theorem uses the retention conditions and the pointwise and logarithmic derivative bounds.

Key declarations:

- `Formalism.HC.An.gChi`: With smoothing weight max(y/n − 1, 0), the principal branch is the untwisted von Mangoldt sum minus y(log y − 1 − γ), and the nonprincipal branch is the χ-weighted von Mangoldt sum plus y L′(1, χ)/L(1, χ).

  ```lean
  def gChi {N : ℕ} [NeZero N] (χ : DirichletCharacter ℂ N) (y : ℝ) : ℂ :=
    if χ = 1 then ((G y : ℝ) : ℂ) else sumLamChi χ y + (y : ℂ) * logDerivativeAtOne χ
  ```
- `Formalism.HC.An.Induces.unique`: Two primitive Dirichlet characters that agree with the same function on integers coprime to a fixed nonzero modulus are equal.

  ```lean
  theorem Induces.unique {ψ ψ' : PChar} {f : ℕ → ℂ} {M : ℕ} (hM : M ≠ 0) (h : Induces ψ.χ f M) (h' : Induces ψ'.χ f M) :
      ψ = ψ' := …
  ```
- `Formalism.HC.HostRaw.isPrimOf_iff`: A primitive Dirichlet character induces a given host character exactly when it is the primitive representative of the pullback along the host Artin map.

  ```lean
  theorem isPrimOf_iff (θ : φ.Char) (ψ : PChar) : H.IsPrimOf θ ψ.χ ↔ ψ = H.prim θ := …
  ```
- `Formalism.HC.HostConditions`: Requires the retained characters to come from the plus class, specifies exceptional-character retention, and imposes a large-argument Chebyshev bound, a pointwise bound, and logarithmic derivative bounds at 1.

  ```lean
  structure HostConditions (T : HType) (κ : HConst) (X x : ℝ) {φ : Frame} (H : HostRaw φ) : Prop where
    kept : H.KeptInXp T.KEPT
    a : H.ChebyshevCharacterBound x T.eps κ.c
    b : H.LogDerivativeBound T.KEPT X x T.eps κ.C
    c1 : H.BoundedCharsPointwise T.KEPT x T.eps
    e : H.ExceptionalCharacterKept T.KEPT T.psK
  ```
- `Formalism.HC.PreHostAn`: Extends the preliminary host conditions by imposing the analytic host conditions on the underlying host.

  ```lean
  structure PreHostAn (T : HType) (κ : HConst) (X x : ℝ) {φ : Frame} (H : HostAx φ) (rr rr' : ℕ) : Prop
      extends PreHost T κ X x H rr rr' where
    ha10 : HostConditions T κ X x H.toHostRaw
  ```

### Development.AutomorphicArithmetic.CharacterBoxes.BoundedTw

9 import steps from Main · 56 lines · Checked against the code · [Open in the Lean viewer](https://riemannhypothesissolved.com/file/Development.AutomorphicArithmetic.CharacterBoxes.BoundedTw)

**Transfers pointwise and log-derivative bounds from quadratic twists to primitive Dirichlet characters attached to the host’s bounded family.**

For each host character in the bounded family, the proof shows that its primitive Dirichlet character agrees on inputs coprime to 2ψ.Nqd with a power of ψ twisted by the Jacobi symbols at q and d. It rules out both twist exponents being zero by the exclusion of kept characters or by the prescribed sign on the distinguished involution. It then applies the prime-pair estimates at x to bound the pointwise quantity gχ(x) and the logarithmic derivative at 1. The importer supplyOfAdmOf uses both estimates in its host-field existence theorem.

Key declarations:

- `UpperTheory.Top.boundedTw_key`: Under the twist and divisibility hypotheses, each primitive character in the bounded family induces a Jacobi-symbol twist on units modulo 2ψ.Nqd, with at least one nonzero twist exponent.

  ```lean
  private theorem UpperTheory.Top.boundedTw_key (ψ : PChar) (φ : Frame) (H : HostRaw φ) (htw : TwistForm ψ H) (hdiv : ψ.N ∣ H.QS)
      (hpr : ∀ l : ℕ, l.Prime → l ∣ H.QS → l ∣ 2 * ψ.N) (θ : φ.Char) (hθ : θ ∈ H.Bounded (Level.cyc ψ).KEPT)
      (N : ℕ) (χ : DirichletCharacter ℂ N) (hχ : H.IsPrimOf θ χ) :
      ∃ (ξ : DirichletCharacter ℂ ψ.N) (i j : Fin 2), (i ≠ 0 ∨ j ≠ 0) ∧
        An.Induces χ (tw (fun a => ξ (a : ZMod ψ.N)) H.q H.d i j) (2 * ψ.N * H.q * H.d) := …
  ```
- `UpperTheory.Top.boundedTw`: Under the twist and divisibility hypotheses and the prime-pair estimates, with ε > 0, x ≥ 1 and Y ≤ x, every primitive Dirichlet character χ attached to the bounded family satisfies |gχ(x)| ≤ x^(1/2+ε) and |L′(1,χ)/L(1,χ)| ≤ 4 log x.

  ```lean
  theorem UpperTheory.Top.boundedTw :
      ∀ (ψ : PChar) (φ : Frame) (H : HostRaw φ) (eps Y x : ℝ), 0 < eps → 1 ≤ x → Y ≤ x → TwistForm ψ H → ψ.N ∣ H.QS →
        (∀ l : ℕ, l.Prime → l ∣ H.QS → l ∣ 2 * ψ.N) → PairGood ψ.N eps Y x H.q H.d →
        H.BoundedCharsPointwise (Level.cyc ψ).KEPT x eps ∧
          ∀ θ ∈ H.Bounded (Level.cyc ψ).KEPT, ∀ (N : ℕ) [NeZero N] (χ : DirichletCharacter ℂ N), H.IsPrimOf θ χ → ‖An.logDerivativeAtOne χ‖ ≤ 4 * Real.log x := …
  ```

### Development.AutomorphicArithmetic.CharacterBoxes.FieldChi

9 import steps from Main · 59 lines · Checked against the code · [Open in the Lean viewer](https://riemannhypothesissolved.com/file/Development.AutomorphicArithmetic.CharacterBoxes.FieldChi)

**Constructs host fields for primitive Dirichlet characters with controlled conductor data and explicit quadratic twist formulas.**

For a primitive character ψ and all sufficiently large e, the construction uses the cyclic group generated by ψ to obtain a host with frame order c·2^e, where c depends only on ψ. Assuming HostHyp q d, q ≠ 3, gcd(ψ.N,qd) = 1, b ≥ 4ψ.N, and Jacobi symbol (−d/p) = 1 for all odd primes p ≤ b, it bounds the conductor parameter QS, identifies the Artin kernel, and keeps the designated exceptional characters. For frame characters trivial on the first factor, it gives a quadratic twist of a power of ψ on arguments coprime to the host conductor. The importer supplyOfAdmOf uses this construction in its host-field existence theorem.

Key declarations:

- `conductor_divisor_bounds`: If M > 0, Q divides lcm(2^(e+2), M), and b ≥ 4M, then Q ≤ 4M·2^e and every odd prime divisor ℓ of Q satisfies 4ℓ ≤ b.

  ```lean
  private theorem conductor_divisor_bounds {M : ℕ} [NeZero M] {Q e b : ℕ} (hQ : Q ∣ Nat.lcm (2 ^ (e + 2)) M) (hb : 4 * M ≤ b) :
      (∀ l : ℕ, l.Prime → l ≠ 2 → l ∣ Q → 4 * l ≤ b) ∧ Q ≤ 4 * M * 2 ^ e := …
  ```
- `UpperTheory.Top.fieldChi`: For each primitive character ψ, gives c ≥ 1 and a threshold such that every e at or above the threshold and every admissible choice of q, d, and b yields a host with frame order c·2^e, conductor and splitting bounds, Artin-kernel and twist formulas, and the prescribed kept-character conditions.

  ```lean
  theorem UpperTheory.Top.fieldChi :
      ∀ ψ : PChar, ∃ c e0 : ℕ, 1 ≤ c ∧ ∀ e ≥ e0, ∀ q d b : ℕ, HostHyp q d → q ≠ 3 → Nat.Coprime ψ.N (q * d) → 4 * ψ.N ≤ b →
        (∀ p : ℕ, p.Prime → p ≠ 2 → p ≤ b → jacobiSym (-(d : ℤ)) p = 1) →
        ∃ (φ : Frame) (H : HostAx φ), φ.e = e ∧ φ.ord = c * 2 ^ e ∧ H.q = q ∧ H.d = d ∧ φ.o = (Level.cyc ψ).o ∧ FieldRows H.toHostRaw b ∧
          H.QS ∣ Nat.lcm (2 ^ (e + 2)) ψ.N ∧ H.QS ≤ 4 * ψ.N * φ.ord ∧
          H.KeptInXp (Level.cyc ψ).KEPT ∧ H.ExceptionalCharacterKept (Level.cyc ψ).KEPT (Level.cyc ψ).psK ∧
          KerChi ψ H.toHostRaw ∧ TwistForm ψ H.toHostRaw := …
  ```

### Development.AutomorphicArithmetic.CharacterBoxes.IsChiField

9 import steps from Main · 51 lines · Checked against the code · [Open in the Lean viewer](https://riemannhypothesissolved.com/file/Development.AutomorphicArithmetic.CharacterBoxes.IsChiField)

**Identifies the subgroup fixing the embedded host field from the prescribed Artin-kernel formula.**

In the cyclotomic field of modulus QS·q·d, the proof uses the action on a primitive root of unity to identify the fixing subgroup with the kernel of the host’s Artin map. The importer supplyOfAdmOf uses this identification to apply the windowed cohomological length bound to the host field.

Key declarations:

- `UpperTheory.Top.isChiField`: Under KerChi, supplies a host-field embedding into a cyclotomic field of modulus divisible by 2^(e+2), ψ.N, q and d, with a primitive root ζ such that an automorphism sending ζ to ζ^a for a natural number a fixes the embedded host field pointwise exactly when a ≡ ±1 modulo 2^(e+2), ψ(a) = 1, and both Jacobi symbols (a/q) and (a/d) equal 1.

  ```lean
  theorem UpperTheory.Top.isChiField :
      ∀ (ψ : PChar) (φ : Frame) (H : HostRaw φ), KerChi ψ H → IsChiField ψ φ.e H.q H.d H.E := …
  ```

### Development.AutomorphicArithmetic.CharacterBoxes.PairGood

9 import steps from Main · 46 lines · Checked against the code · [Open in the Lean viewer](https://riemannhypothesissolved.com/file/Development.AutomorphicArithmetic.CharacterBoxes.PairGood)

**Defines the estimates and zero-free regions required of quadratic twists attached to an auxiliary prime pair.**

PairGood combines size and congruence conditions on q and d with bounds for the corrected smoothed von Mangoldt sums gChi and absolute logarithmic derivatives at 1 on inducing characters for nontrivial quadratic twists of characters modulo M, and with zero-free regions for inducing characters for nontrivial quadratic twists of real primitive characters of conductor dividing 8M. Its monotonicity lemma restricts the interval on which the estimates are required. The module also formulates a real-axis nonvanishing condition and a conditional Chebyshev bound for host fields. The direct importer pairEx proves the prime-pair existence statement.

Key declarations:

- `UpperTheory.Top.PairGood`: Requires an admissible prime pair coprime to M, bounds of y^(1/2+ε/2) for |gChi| and 4 log y for the absolute logarithmic derivative at 1 on [Y, X] for primitive characters inducing nontrivial quadratic twists of characters modulo M, and nonvanishing on Re s > 399/400 with |Im s| ≤ height M ε Y j for primitive characters inducing nontrivial quadratic twists of real primitive characters of conductor dividing 8M.

  ```lean
  structure PairGood (M : ℕ) (eps Y X : ℝ) (q d : ℕ) : Prop where
    pair : WinPair eps Y q d
    coprime : Nat.Coprime M (q * d)
    bounds : ∀ (ξ : DirichletCharacter ℂ M) (i j : Fin 2), (i ≠ 0 ∨ j ≠ 0) →
      ∀ (N : ℕ) [NeZero N] (χ : DirichletCharacter ℂ N), An.Induces χ (tw (fun a => ξ (a : ZMod M)) q d i j) (2 * M * q * d) →
        ∀ y : ℝ, Y ≤ y → y ≤ X → ‖An.gChi χ y‖ ≤ y ^ ((1 : ℝ) / 2 + eps / 2) ∧ ‖An.logDerivativeAtOne χ‖ ≤ 4 * Real.log y
    boxes : ∀ ρ : PChar, ρ.IsReal → ρ.N ∣ 8 * M → ∀ i j : Fin 2, (i ≠ 0 ∨ j ≠ 0) →
      ∀ (N : ℕ) [NeZero N] (χ : DirichletCharacter ℂ N), An.Induces χ (tw ρ.val q d i j) (2 * M * q * d) →
        ZeroBox (height M eps Y j) χ
  ```
- `UpperTheory.Top.PairEx`: Asserts that for every M > 0, 0 < ε < 1/52, and A ≥ 1, such a pair exists on [Y, Y^A] for every sufficiently large Y.

  ```lean
  def PairEx : Prop :=
    ∀ (M : ℕ), 0 < M → ∀ eps A : ℝ, 0 < eps → eps < 1 / 52 → 1 ≤ A →
      ∃ Y1 : ℝ, ∀ Y ≥ Y1, ∃ q d : ℕ, PairGood M eps Y (Y ^ A) q d
  ```
- `UpperTheory.Top.RealBox`: Requires nonvanishing at every real β > 399/400 for each real primitive character of the host field whose conductor is divisible by q or d.

  ```lean
  def RealBox {φ : Frame} (H : HostRaw φ) : Prop :=
    ∀ ψ : PChar, H.IsCharE ψ.χ → ψ.IsReal → (H.q ∣ ψ.N ∨ H.d ∣ ψ.N) →
      ∀ β : ℝ, 1 - 1 / 400 < β → DirichletCharacter.LFunction ψ.χ β ≠ 0
  ```
- `UpperTheory.Top.ThinH`: Asserts a uniform Chebyshev character bound at sufficiently large scales for hosts satisfying RealBox and the given conductor restrictions.

  ```lean
  def ThinH : Prop :=
    ∃ c : ℝ, 0 < c ∧ ∀ B eps : ℝ, 0 < eps → eps < 1 / 52 → ∃ x0 : ℝ, ∀ x ≥ x0, ∀ (φ : Frame) (H : HostRaw φ),
      ((ordCompl[2] H.QS : ℕ) : ℝ) ≤ B → Real.log (H.condN : ℝ) ≤ 2 * x ^ (eps / 5) * Real.log x ^ 2 → RealBox H →
        H.ChebyshevCharacterBound x eps c
  ```
- `UpperTheory.Top.PairGood.mono`: Shows that the prime-pair conditions persist when the upper endpoint X is decreased.

  ```lean
  theorem PairGood.mono {M : ℕ} {eps Y X X' : ℝ} {q d : ℕ} (h : PairGood M eps Y X q d) (hX : X' ≤ X) : PairGood M eps Y X' q d := …
  ```

### Development.AutomorphicArithmetic.CharacterBoxes.PairHyp

9 import steps from Main · 35 lines · Checked against the code · [Open in the Lean viewer](https://riemannhypothesissolved.com/file/Development.AutomorphicArithmetic.CharacterBoxes.PairHyp)

**Derives the host-field congruence and Jacobi-symbol conditions from an admissible prime pair.**

The divisibility p ∣ d + 1 gives (−d/p) = 1 for p = q and for every odd prime p ≤ Y^(ε/5). Quadratic reciprocity and the supplementary law for −1 give the symbol identities at q and d for every odd a. The importer supplyOfAdmOf uses the resulting host hypotheses and small-prime conditions in its host-field construction.

Key declarations:

- `jac_neg_of_dvd`: Shows that the Jacobi symbol (−d/p) equals 1 whenever p divides d + 1.

  ```lean
  private theorem jac_neg_of_dvd {p d : ℕ} (h : p ∣ d + 1) : jacobiSym (-(d : ℤ)) p = 1 := …
  ```
- `jac_neg_recip`: Shows that (−n/a) = (a/n) for n ≡ 3 modulo 4 and odd a.

  ```lean
  private theorem jac_neg_recip {n a : ℕ} (hn : n % 4 = 3) (ha : Odd a) :
      jacobiSym (-(n : ℤ)) a = jacobiSym (a : ℤ) n := …
  ```
- `UpperTheory.Top.pairHyp`: Shows that an admissible prime pair supplies HostHyp, the small-prime conditions (−d/p) = 1, and the reciprocity identities (−q/a) = (a/q) and (−d/a) = (a/d) for odd a.

  ```lean
  theorem UpperTheory.Top.pairHyp :
      ∀ (eps Y : ℝ) (q d : ℕ), WinPair eps Y q d → HostHyp q d ∧
        (∀ p : ℕ, p.Prime → p ≠ 2 → (p : ℝ) ≤ Y ^ (eps / 5) → jacobiSym (-(d : ℤ)) p = 1) ∧
        (∀ a : ℕ, Odd a → jacobiSym (-(q : ℤ)) a = jacobiSym (a : ℤ) q ∧ jacobiSym (-(d : ℤ)) a = jacobiSym (a : ℤ) d) := …
  ```

### Development.AutomorphicArithmetic.CharacterBoxes.PairRows

9 import steps from Main · 387 lines · Checked against the code · [Open in the Lean viewer](https://riemannhypothesissolved.com/file/Development.AutomorphicArithmetic.CharacterBoxes.PairRows)

**Derives host-field conductor bounds, quadratic character estimates, and zero-free regions from a good prime pair.**

The proof uses quadratic reciprocity to express the Kronecker characters of −q and −d on odd a as (a/q) and (a/d), respectively. It constructs primitive representatives and uses their uniqueness to transfer zero-free regions to each of the three nontrivial products and to its χ₈ twist. It also transfers the corrected smoothed character-sum estimates at x and the absolute logarithmic derivative bounds at 1 for the three products and bounds the logarithm of the host conductor at sufficiently large scales. The importer hostOfFieldOf uses these conclusions in its host-field construction.

Key declarations:

- `boxes_core`: For a twist of a real primitive character of conductor dividing 8 by at least one of the factors at q and d, establishes realness, conductor at most Q = 8 X₁(Y, ε) X₂(Y, ε)^j, and nonvanishing for Re s > 1 − 1/400 and |Im s| ≤ Q for every primitive character agreeing with the twist on natural numbers coprime to 8qd, where j is the exponent of the factor at d.

  ```lean
  private theorem boxes_core {M : ℕ} {eps Y X : ℝ} {q d : ℕ} (hM : 0 < M) (h : PairGood M eps Y X q d)
      (ρ : Formalism.HC.PChar) (hρ : ρ.IsReal) (h8 : ρ.N ∣ 8) (i j : Fin 2) (hij : i ≠ 0 ∨ j ≠ 0) (f : ℕ → ℂ)
      (hf : ∀ a : ℕ, a % 2 = 1 → f a = tw ρ.val q d i j a) (Q : ℝ)
      (hQ : Q = 8 * GlobalTheoryTheory.X1 Y eps * GlobalTheoryTheory.X2 Y eps ^ (j : ℕ)) : GoodAllFor Q f (8 * q * d) := …
  ```
- `pairRow_of_pair`: Combines the prime-pair conditions with a logarithmic conductor bound to give the host’s size, congruence, and Kronecker-symbol conditions, including the symbol at 2.

  ```lean
  private theorem pairRow_of_pair {R : Ranks} (H : Host R) {eps Y : ℝ} (h : WinPair eps Y H.q H.d)
      (hN : Real.log (H.QS * H.q * H.d) ≤ 2 * Y ^ (eps / 5) * Real.log Y ^ 2) : PairRow Y eps H := …
  ```
- `qdq_of_pair`: Transfers the smoothed character-sum bound at x and the bound 4 log x for the absolute logarithmic derivative at 1 to the primitive characters for the factors at q and d and their product.

  ```lean
  private theorem qdq_of_pair {M : ℕ} {eps Y x : ℝ} {q d : ℕ} (he : 0 < eps) (hx : 1 ≤ x) (hY : Y ≤ x)
      (h : PairGood M eps Y x q d) : QDq x eps 4 q d := …
  ```
- `UpperTheory.Top.pairRows`: Under the rank, host, scale-window, and prime-pair hypotheses, with 0 < ε < 1/52 and M > 0, supplies all three sets of bounds at sufficiently large scales together with q, d > 4R.tR.r + 1.

  ```lean
  theorem UpperTheory.Top.pairRows :
      ∀ eps C0 : ℝ, 0 < eps → eps < 1 / 52 → ∃ x0 : ℝ, ∀ (s : Scale) (R : Ranks) (H : Host R) (M : ℕ) (Y : ℝ), s.eps = eps → x0 ≤ s.x →
        RankVal s R → HostConst s C0 H → 0 < M → PairWin s Y → PairGood M eps Y s.x H.q H.d →
        PairRow Y eps H ∧ QDq s.x eps 4 H.q H.d ∧ Boxq Y eps H.q H.d ∧ (4 * R.t * R.r + 1 < H.q ∧ 4 * R.t * R.r + 1 < H.d) := …
  ```

### Development.AutomorphicArithmetic.CharacterBoxes.RealBox

9 import steps from Main · 112 lines · Checked against the code · [Open in the Lean viewer](https://riemannhypothesissolved.com/file/Development.AutomorphicArithmetic.CharacterBoxes.RealBox)

**Derives zero-free regions and conductor bounds for real primitive host characters whose conductors are divisible by q or d.**

The proof decomposes each character as a real primitive character of conductor dividing eight times the odd part of QS, twisted by the quadratic factors at q and d. At least one factor occurs, and the factor at d occurs exactly when d divides the conductor, which determines the region’s height. The real-axis restriction gives nonvanishing for real β > 399/400. The importer hostOfFieldOf uses the zero-free region, conductor bound, and real-axis conclusion.

Key declarations:

- `UpperTheory.Top.realBox_level`: Shows that the conductor of a primitive Dirichlet character of the host field divides QS·q·d.

  ```lean
  private theorem UpperTheory.Top.realBox_level {φ : Frame} (H : HostRaw φ) (χ : PChar)
      (h : H.IsCharE χ.χ) : χ.N ∣ H.QS * H.q * H.d := …
  ```
- `UpperTheory.Top.realBox_main`: For each qualifying character, gives a zero-free region of height height(M, ε, Y, j) and a conductor bound given by the same formula with M replaced by the odd part of QS, where j indicates whether d divides the conductor.

  ```lean
  private theorem UpperTheory.Top.realBox_main (M : ℕ) (φ : Frame) (H : HostRaw φ) (eps Y X : ℝ)
      (hpr : ∀ l : ℕ, l.Prime → l ∣ H.QS → l ∣ 2 * M) (hM : ordCompl[2] H.QS ∣ M) (hg : PairGood M eps Y X H.q H.d)
      (χ : PChar) (hχ : H.IsCharE χ.χ) (hr : χ.IsReal) (hqd : H.q ∣ χ.N ∨ H.d ∣ χ.N) :
      ZeroBox (height M eps Y (if H.d ∣ χ.N then 1 else 0)) χ.χ ∧
        (χ.N : ℝ) ≤ height (ordCompl[2] H.QS) eps Y (if H.d ∣ χ.N then 1 else 0) := …
  ```
- `UpperTheory.Top.realBox`: Under PairGood and the divisibility hypotheses, transfers the assumed zero-free bounds to qualifying host characters, bounds their conductors uniformly, and deduces nonvanishing on the real axis to the right of 399/400.

  ```lean
  theorem UpperTheory.Top.realBox :
      ∀ (M : ℕ) (φ : Frame) (H : HostRaw φ) (eps Y X : ℝ), 0 < M → (∀ l : ℕ, l.Prime → l ∣ H.QS → l ∣ 2 * M) → ordCompl[2] H.QS ∣ M →
        PairGood M eps Y X H.q H.d →
        (∀ χ : PChar, H.IsCharE χ.χ → χ.IsReal → (H.q ∣ χ.N ∨ H.d ∣ χ.N) →
          ZeroBox (height M eps Y (if H.d ∣ χ.N then 1 else 0)) χ.χ ∧
            (χ.N : ℝ) ≤ height (ordCompl[2] H.QS) eps Y (if H.d ∣ χ.N then 1 else 0)) ∧ RealBox H := …
  ```

### Development.AutomorphicArithmetic.CharacterBoxes.WinPairs

9 import steps from Main · 81 lines · Checked against the code · [Open in the Lean viewer](https://riemannhypothesissolved.com/file/Development.AutomorphicArithmetic.CharacterBoxes.WinPairs)

**Combines prime-pair estimates and cohomological bounds on arbitrarily late intervals [Z, Z^(3/2)].**

The proof chooses a prime pair and retains it throughout a subinterval of the cohomology window. The dyadic estimate at x′ = x / c^(1/(2+8ε)) gives the size bound for c·2^e, and the cohomological bound transfers from cutoff exponent 401 at x′ to exponent 400 at x. The importer supplyOfAdmOf uses these intervals to supply the prime pairs and cohomological bounds for its host-field construction.

Key declarations:

- `UpperTheory.Top.winPairs`: For a primitive Dirichlet character ψ and parameters 0 < ε < 1/52 and c ≥ 1, assumes VWinAt ψ 401 and PairEx to give J ≥ 1 and arbitrarily large Z such that every x in [Z, Z^(3/2)] admits a good prime pair (q,d) at a scale Y with x^(1/J) ≤ Y ≤ x and an exponent e with x^(2+8ε) ≤ c·2^e ≤ 2x^(2+8ε), with cohomological lengths finite at degrees 1 ≤ j < ⌊x^400⌋ and every finite prime sum of those lengths weighted by log p bounded by √exp(x^ε) for each number field E satisfying IsChiField ψ e q d E.

  ```lean
  theorem UpperTheory.Top.winPairs :
      ∀ (ψ : PChar) (eps c : ℝ), 0 < eps → eps < 1 / 52 → 1 ≤ c → VWinAt ψ 401 → PairEx →
        ∃ J : ℝ, 1 ≤ J ∧ ∀ y : ℝ, ∃ Z : ℝ, y ≤ Z ∧ ∀ x : ℝ, Z ≤ x → x ≤ Z ^ ((3 : ℝ) / 2) →
          ∃ (Y : ℝ) (q d e : ℕ), WinDatum ψ eps J c x Y q d e := …
  ```

### Development.AutomorphicArithmetic.ConductorsKronecker.ChCond

9 import steps from Main · 153 lines · Checked against the code · [Open in the Lean viewer](https://riemannhypothesissolved.com/file/Development.AutomorphicArithmetic.ConductorsKronecker.ChCond)

**Computes conductors and Jacobi-symbol formulas for primitive values of characters attached to the host field.**

The character chC has conductor d and primitive values (n/d) for every positive integer n. Under the host hypothesis PsQ, psC has conductor q and primitive values (n/q), and the product character has primitive values (n/d)(n/q). The proof lifts quadratic nonresidues by the Chinese remainder theorem to detect nontrivial inertia at the relevant primes. Periodicity gives the upper bound on each conductor, while the primitive-value formulas follow from averaging over Frobenius cosets prime by prime.

Key declarations:

- `UpperTheory.GL.ch_cond`: Gives conductor d and Jacobi-symbol values modulo d for chC and, under PsQ, conductor q and Jacobi-symbol values modulo q for psC together with the product formula for chpsC.

  ```lean
  theorem UpperTheory.GL.ch_cond :
      ∀ {φ : Frame} (H : HostAx φ), (dirChar (recH H.toHostRaw) chC).conductor = H.d ∧
        (∀ n : ℕ, n ≠ 0 → primVal (arith H.toHostRaw) chC n = ((jacobiSym (n : ℤ) H.d : ℤ) : ℂ)) ∧
        (H.PsQ → (dirChar (recH H.toHostRaw) psC).conductor = H.q ∧
          (∀ n : ℕ, n ≠ 0 → primVal (arith H.toHostRaw) psC n = ((jacobiSym (n : ℤ) H.q : ℤ) : ℂ)) ∧
          ∀ n : ℕ, n ≠ 0 → primVal (arith H.toHostRaw) chpsC n = ((jacobiSym (n : ℤ) H.d * jacobiSym (n : ℤ) H.q : ℤ) : ℂ)) := …
  ```
- `UpperTheory.GL.primVal_of_periodic`: Identifies the primitive values on positive integers with a completely multiplicative function F periodic modulo c dividing N that agrees with the character on units modulo N and, for each prime p dividing c, satisfies F(p) = 0 and takes value −1 on the least nonnegative representative of some unit modulo N congruent to 1 modulo the prime-to-p part of N.

  ```lean
  private theorem UpperTheory.GL.primVal_of_periodic {N c : ℕ} [NeZero N] (q d : ℕ)
      (r : (ZMod N)ˣ →* Multiplicative (E0 × A)) (ψ : AddChar (E0 × A) ℂ) (F : ℕ →* ℤ) (hc : c ∣ N)
      (hF : ∀ x y, x ≡ y [MOD c] → F x = F y)
      (hψ : ∀ u : (ZMod N)ˣ, ψ (Multiplicative.toAdd (r u)) = ((F (u : ZMod N).val : ℤ) : ℂ))
      (hram : ∀ p, p.Prime → p ∣ c → F p = 0 ∧
        ∃ u : (ZMod N)ˣ, (u : ZMod N).val ≡ 1 [MOD ordCompl[p] N] ∧ F (u : ZMod N).val = -1)
      (n : ℕ) (hn : n ≠ 0) : primVal (cftData q d r) ψ n = ((F n : ℤ) : ℂ) := …
  ```
- `UpperTheory.GL.conductor_of_periodic`: Gives conductor c when c is a prime dividing N, the character agrees on units with a completely multiplicative function periodic modulo c, and that function takes value −1 on a unit congruent to 1 modulo the prime-to-c part of N.

  ```lean
  private theorem UpperTheory.GL.conductor_of_periodic {N c : ℕ} [NeZero N]
      (r : (ZMod N)ˣ →* Multiplicative (E0 × A)) (ψ : AddChar (E0 × A) ℂ) (F : ℕ →* ℤ) (hc : c ∣ N) (hp : c.Prime)
      (hF : ∀ x y, x ≡ y [MOD c] → F x = F y)
      (hψ : ∀ u : (ZMod N)ˣ, ψ (Multiplicative.toAdd (r u)) = ((F (u : ZMod N).val : ℤ) : ℂ))
      (hram : ∃ u : (ZMod N)ˣ, (u : ZMod N).val ≡ 1 [MOD ordCompl[c] N] ∧ F (u : ZMod N).val = -1) :
      (dirChar r ψ).conductor = c := …
  ```
- `UpperTheory.GL.exists_nonres`: For each odd prime ℓ dividing N, constructs a unit modulo N congruent to 1 modulo the prime-to-ℓ part of N and having Jacobi symbol −1 modulo ℓ.

  ```lean
  private theorem UpperTheory.GL.exists_nonres {N l : ℕ} [NeZero N] (hl : l.Prime) (h2 : l ≠ 2) (hN : l ∣ N) :
      ∃ u : (ZMod N)ˣ, (u : ZMod N).val ≡ 1 [MOD ordCompl[l] N] ∧ jacobiSym ((u : ZMod N).val : ℤ) l = -1 := …
  ```
- `UpperTheory.GL.jac`: Defines the Jacobi symbol with fixed denominator as a completely multiplicative integer-valued function on the natural numbers.

  ```lean
  private def UpperTheory.GL.jac (l : ℕ) : ℕ →* ℤ where
    toFun a := jacobiSym (a : ℤ) l
    map_one' := by simp
    map_mul' a b := by rw [Nat.cast_mul, jacobiSym.mul_left]
  ```

### Development.AutomorphicArithmetic.ConductorsKronecker.Imports

9 import steps from Main · 20 lines · Checked against the code · [Open in the Lean viewer](https://riemannhypothesissolved.com/file/Development.AutomorphicArithmetic.ConductorsKronecker.Imports)

**Proves triviality of inertia and gives a reciprocity formula for Frobenius at primes coprime to the host modulus.**

The proof maps the trivial local unit subgroup through host reciprocity and identifies the Frobenius unit with the residue class of the prime. Joints uses triviality of inertia to reduce a Frobenius coset average to evaluation at Frobenius.

Key declarations:

- `UpperTheory.GL.unram`: For a prime p coprime to the host modulus N, the host inertia subgroup is trivial and the Frobenius element is the reciprocity image of p modulo N, written additively.

  ```lean
  theorem UpperTheory.GL.unram :
      ∀ {φ : Frame} (H : HostRaw φ) (p : ℕ) (hc : p.Coprime H.condN), p.Prime →
        (arith H).inertia p = ⊥ ∧ (arith H).frob p = (recH H (ZMod.unitOfCoprime p hc)).toAdd := …
  ```

### Development.AutomorphicArithmetic.ConductorsKronecker.InertiaD

9 import steps from Main · 49 lines · Checked against the code · [Open in the Lean viewer](https://riemannhypothesissolved.com/file/Development.AutomorphicArithmetic.ConductorsKronecker.InertiaD)

**Determines inertia at the host prime d, the second sign coordinate of Frobenius, and a representative of each Frobenius coset.**

In the additive coordinates (ℤ/2ℤ)² × A, inertia at d consists of zero and ((1,0),0). The Frobenius congruence and the host reciprocity sign rule give second sign coordinate 1. Adding the nonzero inertia element flips the first sign coordinate, so each nonnegative multiple of Frobenius determines an inertia coset with exactly one representative whose first sign coordinate is 1. The importer RamificationTwoAndConjugationAtQAndD uses this uniqueness to reduce each filtered coset sum at d to a single term.

Key declarations:

- `UpperTheory.GL.inertia_d`: At d, inertia is generated by ((1,0),0), Frobenius has second sign coordinate 1, and each coset of inertia based at a nonnegative multiple of Frobenius has a unique element with first sign coordinate 1.

  ```lean
  theorem UpperTheory.GL.inertia_d :
      ∀ {φ : Frame} (H : HostAx φ), (∀ x, x ∈ (arith H.toHostRaw).inertia H.d ↔ x = 0 ∨ x = sgc0) ∧
        ((arith H.toHostRaw).frob H.d).1.2 = 1 ∧
        ∀ i : ℕ, ∃! g : E0 × φ.A, g - i • (arith H.toHostRaw).frob H.d ∈ (arith H.toHostRaw).inertia H.d ∧ ¬ InPhi g := …
  ```

### Development.AutomorphicArithmetic.ConductorsKronecker.IsInertIff

9 import steps from Main · 44 lines · Checked against the code · [Open in the Lean viewer](https://riemannhypothesissolved.com/file/Development.AutomorphicArithmetic.ConductorsKronecker.IsInertIff)

**Proves a Jacobi-symbol criterion for the inertness predicate on the host arithmetic data.**

A natural number p is inert exactly when p is prime, p does not divide the host conductor H.condN, and the Jacobi symbol (−d/p) is −1. For odd primes distinct from d, the proof reduces the Frobenius unit modulo d and uses the host reciprocity formula and quadratic reciprocity to read off the sign defining Φ. ArithP uses the criterion to identify the inert primes with the union of its inert and signal prime classes.

Key declarations:

- `UpperTheory.GL.isInert_iff`: Characterizes host inertness by primality, coprimality to the host modulus, and the condition (−d/p) = −1.

  ```lean
  theorem UpperTheory.GL.isInert_iff :
      ∀ {φ : Frame} (H : HostAx φ) (p : ℕ), IsInert (arith H.toHostRaw) p ↔ p.Prime ∧ ¬ p ∣ H.condN ∧ jacobiSym (-(H.d : ℤ)) p = -1 := …
  ```
- `notInPhi_iff`: For an odd prime p distinct from d, the Frobenius element at p lies outside Φ exactly when (−d/p) = −1.

  ```lean
  private lemma notInPhi_iff {φ : Frame} (H : HostAx φ) {p : ℕ} (hp : p.Prime) (h2 : p ≠ 2) (hd : p ≠ H.d) :
      ¬ Formalism.D5.InPhi ((arith H.toHostRaw).frob p) ↔ jacobiSym (-(H.d : ℤ)) p = -1 := …
  ```

### Development.AutomorphicArithmetic.ConductorsKronecker.RecSurj

9 import steps from Main · 17 lines · Checked against the code · [Open in the Lean viewer](https://riemannhypothesissolved.com/file/Development.AutomorphicArithmetic.ConductorsKronecker.RecSurj)

**Proves surjectivity of host reciprocity and injectivity of the induced pullback on characters.**

The host reciprocity map is the composite of the surjective Artin map with a bijective coordinate map. Evaluating the pulled-back Dirichlet characters at a unit lifting each target element shows that equality of the pullbacks forces equality of the original characters. TopDensityNGeSixteen uses injectivity to show that the associated primitive Dirichlet character is trivial exactly when the original character is trivial.

Key declarations:

- `UpperTheory.GL.rec_surj`: Shows that reciprocity from the units modulo the host modulus onto the host coordinate group is surjective and that pullback from its complex characters to Dirichlet characters is injective.

  ```lean
  theorem UpperTheory.GL.rec_surj :
      ∀ {φ : Frame} (H : HostAx φ), Function.Surjective (recH H.toHostRaw) ∧ Function.Injective (dirChar (recH H.toHostRaw)) := …
  ```

### Development.AutomorphicArithmetic.ConductorsKronecker.dataField

9 import steps from Main · 52 lines · Checked against the code · [Open in the Lean viewer](https://riemannhypothesissolved.com/file/Development.AutomorphicArithmetic.ConductorsKronecker.dataField)

**Identifies inertia and arithmetic Frobenius for the host field in additive reciprocity coordinates.**

At a prime ideal P above p, a host-field automorphism acts trivially modulo P exactly when its additive coordinate lies in the inertia subgroup at p. It is an arithmetic Frobenius at P exactly when its coordinate lies in the distinguished Frobenius coset of inertia. The proof expresses the local unit subgroup and the Frobenius coset by congruences to 1 and p, respectively, modulo the prime-to-p part of the host modulus, then transports them through the Artin map. TopDensityNGeSixteen uses the coset criterion to establish existence of an arithmetic Frobenius above p.

Key declarations:

- `UpperTheory.GL.dataField`: Identifies the congruence-to-identity condition and the arithmetic Frobenius condition at a prime ideal above p with membership in the additive inertia subgroup and its Frobenius coset, respectively.

  ```lean
  theorem UpperTheory.GL.dataField :
      ∀ {φ : Frame} (H : HostAx φ) (p : ℕ) [Fact p.Prime] (P : Ideal (𝓞 H.E)) [P.IsPrime] [P.LiesOver (span {(p : ℤ)})] (σ : H.E ≃ₐ[ℚ] H.E),
        ((∀ x : 𝓞 H.E, σ • x - x ∈ P) ↔ (toE φ (H.gal σ)).toAdd ∈ (arith H.toHostRaw).inertia p) ∧
        (IsArithFrobAt ℤ σ P ↔ (toE φ (H.gal σ)).toAdd - (arith H.toHostRaw).frob p ∈ (arith H.toHostRaw).inertia p) := …
  ```
- `UpperTheory.GL.df_inertia`: Characterizes membership in additive inertia at p by being the Artin image of a local unit at p.

  ```lean
  private theorem UpperTheory.GL.df_inertia {φ : Frame} (H : HostRaw φ) (p : ℕ) (g : φ.GG) :
      (toE φ g).toAdd ∈ (arith H).inertia p ↔ ∃ u ∈ Formalism.LFunctionChainParameters.LHost.localUnits H.condN p, g = H.art u := …
  ```
- `UpperTheory.GL.df_mem_frob`: Characterizes the coset of the distinguished Frobenius unit by congruence to p modulo the prime-to-p part of the modulus.

  ```lean
  private theorem UpperTheory.GL.df_mem_frob {N : ℕ} [NeZero N] (p : ℕ) (hp : p.Prime) (u : (ZMod N)ˣ) :
      u * (frobUnit N p)⁻¹ ∈ Formalism.LFunctionChainParameters.LHost.localUnits N p ↔ (u : ZMod N).val ≡ p [MOD ordCompl[p] N] := …
  ```
- `UpperTheory.GL.df_mem_local`: Characterizes local units at p by congruence to 1 modulo the prime-to-p part of the modulus.

  ```lean
  private theorem UpperTheory.GL.df_mem_local {N : ℕ} [NeZero N] (p : ℕ) (u : (ZMod N)ˣ) :
      u ∈ Formalism.LFunctionChainParameters.LHost.localUnits N p ↔ (u : ZMod N).val ≡ 1 [MOD ordCompl[p] N] := …
  ```

### Development.AutomorphicArithmetic.ConductorsKronecker.kronecker

9 import steps from Main · 32 lines · Checked against the code · [Open in the Lean viewer](https://riemannhypothesissolved.com/file/Development.AutomorphicArithmetic.ConductorsKronecker.kronecker)

**Computes the sign coordinates of host reciprocity using Jacobi symbols.**

For m coprime to the host modulus, the first additive sign coordinate encodes the Jacobi symbol (−d/m), with 0 for +1 and 1 for −1. The second encodes the first Artin sign and, under the host hypothesis PsQ, also encodes (−q/m). The proof obtains the first formula by reducing the unit representative modulo d and applying quadratic reciprocity, and identifies the remaining group coordinate by applying the frame’s inverse coordinate map to the remaining Artin component.

Key declarations:

- `UpperTheory.GL.kronecker`: For m coprime to the host modulus, gives the first reciprocity sign by (−d/m), the second by the first Artin sign and under PsQ by (−q/m), and the remaining coordinate by the inverse frame map.

  ```lean
  theorem UpperTheory.GL.kronecker :
      ∀ {φ : Frame} (H : HostAx φ) (m : ℕ) (hm : m.Coprime H.condN),
        ((recH H.toHostRaw (ZMod.unitOfCoprime m hm)).toAdd.1.1 = 0 ↔ jacobiSym (-(H.d : ℤ)) m = 1) ∧
        ((recH H.toHostRaw (ZMod.unitOfCoprime m hm)).toAdd.1.1 = 1 ↔ jacobiSym (-(H.d : ℤ)) m = -1) ∧
        ((recH H.toHostRaw (ZMod.unitOfCoprime m hm)).toAdd.1.2 = 0 ↔ (H.art (ZMod.unitOfCoprime m hm)).1.1 = 1) ∧
        ((recH H.toHostRaw (ZMod.unitOfCoprime m hm)).toAdd.1.2 = 1 ↔ (H.art (ZMod.unitOfCoprime m hm)).1.1 = -1) ∧
        (H.PsQ → ((recH H.toHostRaw (ZMod.unitOfCoprime m hm)).toAdd.1.2 = 0 ↔ jacobiSym (-(H.q : ℤ)) m = 1) ∧
          ((recH H.toHostRaw (ZMod.unitOfCoprime m hm)).toAdd.1.2 = 1 ↔ jacobiSym (-(H.q : ℤ)) m = -1)) ∧
        (recH H.toHostRaw (ZMod.unitOfCoprime m hm)).toAdd.2 = φ.iotaInv (H.art (ZMod.unitOfCoprime m hm)).2 := …
  ```
- `UpperTheory.GL.kron_sgn`: Identifies additive sign 0 with the unit +1 and additive sign 1 with the unit −1.

  ```lean
  private theorem UpperTheory.GL.kron_sgn (s : ℤˣ) :
      (Multiplicative.toAdd (Formalism.LFunctionChainParameters.LHost.sgn2 s) = 0 ↔ s = 1) ∧ (Multiplicative.toAdd (Formalism.LFunctionChainParameters.LHost.sgn2 s) = 1 ↔ s = -1) := …
  ```
- `UpperTheory.GL.kron_int`: Expresses the same sign equivalences as integer equalities for the value of the unit.

  ```lean
  private theorem UpperTheory.GL.kron_int (s : ℤˣ) (J : ℤ) (h : (s : ℤ) = J) :
      (Multiplicative.toAdd (Formalism.LFunctionChainParameters.LHost.sgn2 s) = 0 ↔ J = 1) ∧ (Multiplicative.toAdd (Formalism.LFunctionChainParameters.LHost.sgn2 s) = 1 ↔ J = -1) := …
  ```

### Development.AutomorphicArithmetic.CoprimeRanks.FieldAny

9 import steps from Main · 55 lines · Checked against the code · [Open in the Lean viewer](https://riemannhypothesissolved.com/file/Development.AutomorphicArithmetic.CoprimeRanks.FieldAny)

**Constructs host fields with conductor bounds for arbitrary subgroups of Dirichlet characters.**

For a subgroup Ξ of characters modulo M, the proof uses a specialized construction when every character is even and a general construction otherwise, obtaining the same frame order in both cases. The host modulus QS divides lcm(2^(e+2), M), so every odd prime ℓ dividing QS divides M and satisfies 4ℓ ≤ b, where b is the splitting bound. The construction also verifies compatibility with the retained characters and the exceptional-character condition. The short-norm host-existence proof uses the case M = 1 to obtain its frame and field hypotheses.

Key declarations:

- `HostParam.Seam.conductor_divisor_bounds`: If M > 0, QS divides lcm(2^(e+2), M), and b ≥ 4M, then QS ≤ 4M·2^e and every odd prime ℓ dividing QS divides M and satisfies 4ℓ ≤ b.

  ```lean
  private theorem conductor_divisor_bounds {φ : Frame} {H : HostRaw φ} {e b : ℕ} (hQ : H.QS ∣ Nat.lcm (2 ^ (e + 2)) M) (hb : 4 * M ≤ b) :
      (∀ l : ℕ, l.Prime → l ≠ 2 → l ∣ H.QS → l ∣ M ∧ 4 * l ≤ b) ∧ H.QS ≤ 4 * M * 2 ^ e := …
  ```
- `HostParam.Seam.exists_fieldRows_any_ord`: Under the host, coprimality, size, and splitting hypotheses, produces a frame of the prescribed order and a host field with parameters q and d, satisfying the field conditions at b, the conductor bounds, and the character conditions.

  ```lean
  theorem exists_fieldRows_any_ord {e q d b : ℕ} (hH : HostHyp q d) (hq3 : q ≠ 3) (hc : Nat.Coprime M (q * d))
      (he : 4 * M ≤ 2 ^ e) (ho : Nat.card Ξ ^ 64 ≤ 2 ^ e) (hb : 4 * M ≤ b)
      (hs : ∀ p : ℕ, p.Prime → p ≠ 2 → p ≤ b → jacobiSym (-(d : ℤ)) p = 1) :
      ∃ (φ : Frame) (H : HostAx φ), φ.ord = (AnyGrp.frame Ξ e).ord ∧ φ.e = e ∧ H.q = q ∧ H.d = d ∧ φ.o = Nat.card Ξ ∧ FieldRows H.toHostRaw b ∧
        H.QS ∣ Nat.lcm (2 ^ (e + 2)) M ∧ H.QS ≤ 4 * M * φ.ord ∧
        H.KeptInXp (Level.ofSub Ξ).KEPT ∧ H.ExceptionalCharacterKept (Level.ofSub Ξ).KEPT (Level.ofSub Ξ).psK ∧
        (Nat.Coprime M 15 → H.CoprimeFifteen) ∧ ((∃ j : ℕ, Nat.card Ξ = 2 ^ j) → φ.TwoGroup) ∧
        ((∀ χ ∈ Ξ, χ.Even) → H.MuPM ∧ H.KeptEqChat (Level.ofSub Ξ).KEPT) := …
  ```

### Development.AutomorphicArithmetic.DedekindLFunctions.LandauTheorems.ChBalance

9 import steps from Main · 264 lines · Checked against the code · [Open in the Lean viewer](https://riemannhypothesissolved.com/file/Development.AutomorphicArithmetic.DedekindLFunctions.LandauTheorems.ChBalance)

**Proves an exact main-term and error formula for a weighted sum over inert primes and a ramified prime.**

Under the host Frobenius and inertia hypotheses, with a positive parameter and with each weight indexed by Φ positive and the cutoff at least the parameter divided by that weight, the weighted prime-power sum minus its main term equals a weighted character error sum. Character orthogonality evaluates the von Mangoldt expansion through Frobenius and inertia, reducing it to inert-prime contributions and the term at the distinguished ramified prime. The main term comes from the trivial character and a single distinguished nontrivial character.

Key declarations:

- `Deduction.ch_balance`: Identifies the weighted prime-power sum minus its main term with the weighted character error sum.

  ```lean
  theorem ch_balance {H : Type} [AddCommGroup H] [Fintype H] [DecidableEq H] (D : ArithData H) (S : Finset ℕ) (hD : HostFactsS D S)
      (ell : AddChar (E0 × H) ℂ → ℂ) (a : ℝ) (t : H) (w : E0 × H → ℝ) (ha : 0 < a) (hw : ∀ ρ, InPhi ρ → 0 < w ρ)
      (N : ℕ) (hN : ∀ ρ, InPhi ρ → a / w ρ ≤ N) : (ASK D N a t w : ℂ) - MAIN ell a w = De D ell a t w := …
  ```
- `Deduction.CharacterBalance.askExp`: Expresses the arithmetic sum as a normalized character sum with von Mangoldt weights and positive-part smoothing.

  ```lean
  lemma askExp (D : ArithData H) {S0 : Finset ℕ} (hD : HostFactsS D S0) (a : ℝ) (t : H) (w : E0 × H → ℝ)
      (hw : ∀ ρ, InPhi ρ → 0 < w ρ) (N : ℕ) (hN : ∀ ρ, InPhi ρ → a / w ρ ≤ N) :
      (ASK D N a t w : ℂ) = (1 / ((PhiSet (H := H)).card : ℂ)) * ∑ g ∈ univ.filter (fun g : E0 × H => ¬ InPhi g),
          ∑ ψ : AddChar (E0 × H) ℂ, starRingEnd ℂ (ψ g) * ∑ n ∈ Icc 1 N,
            (Λ n : ℂ) * primVal D ψ n * ((max (a / n - w (partner t g)) 0 : ℝ) : ℂ) := …
  ```
- `Deduction.CharacterBalance.ounram`: At an unramified prime power, the normalized character kernel is two at the corresponding Frobenius multiple and zero elsewhere.

  ```lean
  lemma ounram (D : ArithData H) {S0 : Finset ℕ} (hD : HostFactsS D S0) (p i : ℕ) (hp : p.Prime) (h2 : p ∉ S0)
      (hd : p ≠ D.d) (hi : 1 ≤ i) (g : E0 × H) :
      (1 / ((PhiSet (H := H)).card : ℂ)) * ∑ ψ : AddChar (E0 × H) ℂ,
          starRingEnd ℂ (ψ g) * primVal D ψ (p ^ i)
        = if i • D.frob p = g then 2 else 0 := …
  ```
- `Deduction.CharacterBalance.lsplit`: The weighted contribution from each prime in the specified set vanishes.

  ```lean
  lemma lsplit (D : ArithData H) {S0 : Finset ℕ} (hD : HostFactsS D S0) (N : ℕ) (a : ℝ) (t : H) (w : E0 × H → ℝ)
      {p : ℕ} (hp : p.Prime) (h2 : p ∈ S0) :
      ∑ i ∈ Icc 1 N, (Real.log p : ℂ) * ∑ g ∈ univ.filter (fun g : E0 × H => ¬ InPhi g), Kc D (p ^ i) g * Fc a t w (p ^ i) g
        = 0 := …
  ```
- `Deduction.CharacterBalance.ld`: The weighted contribution at the distinguished ramified prime is its logarithm times the positive-part sum over g outside Φ in the coset i·Frob(d) + I_d for each exponent i from 1 to N.

  ```lean
  lemma ld (D : ArithData H) {S0 : Finset ℕ} (hD : HostFactsS D S0) (N : ℕ) (a : ℝ) (t : H) (w : E0 × H → ℝ) :
      ∑ i ∈ Icc 1 N, (Real.log D.d : ℂ) * ∑ g ∈ univ.filter (fun g : E0 × H => ¬ InPhi g),
          Kc D (D.d ^ i) g * Fc a t w (D.d ^ i) g
        = ((Real.log D.d * askD D N a t w : ℝ) : ℂ) := …
  ```

### Development.AutomorphicArithmetic.MeanSquareBounds.GaussSumFunctionEq

9 import steps from Main · 109 lines · Checked against the code · [Open in the Lean viewer](https://riemannhypothesissolved.com/file/Development.AutomorphicArithmetic.MeanSquareBounds.GaussSumFunctionEq)

**Proves a uniform smoothed Chebyshev bound for host characters under a real-zero exclusion hypothesis.**

The proof identifies two versions of the smoothed character sum by simplifying the weight on the summation range, treating the principal character separately. The conductor of each primitive host character divides the host modulus, so the modulus bound supplies the conductor bound required by the general estimate. For nontrivial characters with χ² = 1, the real-zero hypothesis covers conductors divisible by q or d, while the remaining conductors are at most 8⌊B⌋ and admit a uniform real-zero exclusion interval. The host construction uses this estimate to obtain its required smoothed character bounds.

Key declarations:

- `QH.gauss_sum_function_eq`: Identifies the smoothed character sums gChi and G0 for every Dirichlet character of positive modulus and every real cutoff.

  ```lean
  private theorem gauss_sum_function_eq {N : ℕ} [NeZero N] (χ : DirichletCharacter ℂ N) (y : ℝ) :
      Formalism.HC.An.gChi χ y = G0 χ y := …
  ```
- `QH.isReal_of_sq`: Shows that a Dirichlet character whose square is principal takes only real values.

  ```lean
  private theorem isReal_of_sq {N : ℕ} [NeZero N] (χ : DirichletCharacter ℂ N) (h2 : χ ^ 2 = 1) (a : ZMod N) :
      (χ a).im = 0 := …
  ```
- `QH.level_dvd`: Shows that the conductor of every primitive Dirichlet character associated with the host field divides the host modulus.

  ```lean
  private theorem level_dvd {φ : Formalism.HC.Frame} (H : Formalism.HC.HostRaw φ) {N : ℕ} [NeZero N] (χ : DirichletCharacter ℂ N)
      (h : H.IsCharE χ) : N ∣ H.condN := …
  ```
- `QH.thinH`: For fixed B and 0 < ε < 1/52 and sufficiently large x, bounds the absolute value of each smoothed host character sum by y exp(−x^(ε/8)) for y ≥ exp(x^(ε/3))/3 under the host modulus and odd-part bounds and real-zero exclusion above 1 − 1/400 for real host characters of conductor divisible by q or d.

  ```lean
  theorem thinH :
      UpperTheory.Top.ThinH := …
  ```

### Development.AutomorphicArithmetic.PrimitiveCosets.CoreAtH

9 import steps from Main · 51 lines · Checked against the code · [Open in the Lean viewer](https://riemannhypothesissolved.com/file/Development.AutomorphicArithmetic.PrimitiveCosets.CoreAtH)

**Defines the host-level slope-data hypothesis and auxiliary constructions for additive and primitive Dirichlet characters.**

The slope-data hypothesis asks for finite indexing sets, weights, and chain data satisfying the host identifications, size and error bounds, and scale and cost constraints. For each nontrivial additive character, its compatibility condition requires the assigned value to equal L′(1, χ)/L(1, χ) for every primitive Dirichlet character χ matching its host values on positive integers. The module also defines the retained additive characters, the level's sum of absolute logarithmic derivatives at one, and a bijection between two representations of primitive Dirichlet characters. The direct importer CoreGm uses the slope-data hypothesis to bound the level's weighted mean for sufficiently large x.

Key declarations:

- `UpperTheory.Comparison₂.CoreAtH`: Asserts the existence of finite chain data compatible with the host arithmetic and satisfying the prescribed identification, coverage, size, error, scale, and cost conditions.

  ```lean
  def CoreAtH (H : HostRaw φ) (TT : Finset φ.A) (eD eL K cHH eK eps x : ℝ) : Prop := …
  ```
- `UpperTheory.Comparison₂.HostAddCharCompatible`: Requires the assigned value of each nontrivial additive character to equal the logarithmic derivative at one of the Dirichlet L-function of every primitive character matching its host primitive values on positive integers.

  ```lean
  def HostAddCharCompatible (H : HostRaw φ) (ell : AddChar (E0 × φ.A) ℂ → ℂ) : Prop :=
    ∀ ψ : AddChar (E0 × φ.A) ℂ, ψ ≠ 0 → ∀ (N : ℕ) [NeZero N] (χ : DirichletCharacter ℂ N), χ.IsPrimitive →
      (∀ n : ℕ, n ≠ 0 → χ (n : ZMod N) = primVal (arith H) ψ n) → ell ψ = An.logDerivativeAtOne χ
  ```
- `UpperTheory.Comparison₂.keptA`: Selects the additive characters whose pullbacks are retained by the host at the given level.

  ```lean
  def keptA (Λ : Level) (H : HostRaw φ) : Finset (AddChar (E0 × φ.A) ℂ) :=
    Finset.univ.filter fun ψ => H.Kept Λ.KEPT (chr φ ψ)
  ```
- `UpperTheory.Comparison₂.koOf`: Sums the absolute values of the logarithmic derivatives at one of the Dirichlet L-functions attached to the level's retained primitive characters.

  ```lean
  def koOf (Λ : Level) : ℝ := ∑ ψ ∈ Λ.KEPT, ‖An.logDerivativeAtOne ψ.χ‖
  ```
- `UpperTheory.Comparison₂.pcEquiv`: Gives a bijection between the two representations of primitive Dirichlet characters by preserving the modulus, character, and primitivity witness.

  ```lean
  def pcEquiv : PChar ≃ Deduction.PC := ⟨pcOf, pcTo, fun _ => rfl, fun _ => rfl⟩
  ```

Blueprint: [Slope data](https://github.com/chrisflav/riemann-blueprint/blob/137d97602647e450901981a7decfb86ab3024a48/blueprint/chap-zero-free/sec-zf-core/def-slope-data.md) (Merten's blueprint)

### Development.AutomorphicArithmetic.PrimitiveCosets.hostFactsS

9 import steps from Main · 136 lines · Checked against the code · [Open in the Lean viewer](https://riemannhypothesissolved.com/file/Development.AutomorphicArithmetic.PrimitiveCosets.hostFactsS)

**Proves the host inertia and Frobenius formulas at primes dividing Q_S q and the inertia formula at d.**

The host is unramified outside the prime divisors of Q_S q and the distinguished prime d. At each prime dividing Q_S q, inertia and the chosen Frobenius representative lie in the kernel of the quadratic character modulo d. The proof applies quadratic reciprocity to the Frobenius congruences and uses the Chinese remainder theorem to realize the nonidentity element of the two-element inertia group at d. InertiaD uses this group to identify a unique element with nontrivial quadratic character in each coset of inertia represented by a power of Frobenius at d.

Key declarations:

- `UpperTheory.Comparison₂.hostFactsS`: For a host satisfying the stated axioms, proves the inertia and Frobenius formulas for the set obtained by adjoining q to the small primes, with inertia at d consisting of the identity and the distinguished involution.

  ```lean
  theorem UpperTheory.Comparison₂.hostFactsS :
      ∀ (φ : Frame) (H : HostAx φ), HostFactsS (arith H.toHostRaw) (insert H.q H.small) := …
  ```
- `inPhi_of_jac`: Shows that a conductor unit congruent modulo d to an integer of Jacobi symbol +1 has reciprocity image in the kernel of the quadratic character.

  ```lean
  private lemma inPhi_of_jac {φ : Frame} (H : HostAx φ) (u : (ZMod H.toHostRaw.condN)ˣ) (k : ℕ)
      (hk : (u : ZMod H.toHostRaw.condN).val ≡ k [MOD H.d]) (hj : jacobiSym (k : ℤ) H.d = 1) :
      Formalism.D5.InPhi (Multiplicative.toAdd (recH H.toHostRaw u)) := …
  ```
- `jac_of_dvd`: Shows that every prime divisor of Q_S q has Jacobi symbol +1 modulo d.

  ```lean
  private lemma jac_of_dvd {φ : Frame} (H : HostRaw φ) {p : ℕ} (hp : p.Prime) (h : p ∣ H.QS * H.q) :
      jacobiSym (p : ℤ) H.d = 1 := …
  ```
- `d_dvd_ordCompl`: Shows that d divides the prime-to-p part of the host conductor for every prime p dividing Q_S q.

  ```lean
  private lemma d_dvd_ordCompl {φ : Frame} (H : HostRaw φ) {p : ℕ} (hp : p.Prime) (h : p ∣ H.QS * H.q) :
      H.d ∣ ordCompl[p] H.condN := …
  ```

### Development.AutomorphicArithmetic.ShortNorms.levelData

9 import steps from Main · 77 lines · Checked against the code · [Open in the Lean viewer](https://riemannhypothesissolved.com/file/Development.AutomorphicArithmetic.ShortNorms.levelData)

**Constructs two norm primes and three congruence primes with size bounds and explicit distinctness conditions from ShortNorm and SmallOne.**

For 0 < ε < 1/52 and sufficiently large x, with scale exponent ε, valid ranks (RankVal), and modulus conditions (ModAt), the theorem combines two norm-one primes in [(kb)^8, 2(kb)^8] with three primes bounded by N^C₈. The norm primes have disjoint cyclotomic norm sets, while two congruence primes are 1 modulo 15N and the third is 1 modulo N. The proof uses the ModAt bound on log N to put N^C₈ below b = exp(x^ε), which is at most (kb)^8, separating the witnesses by size. hostOfFieldOf uses these primes as the host's level primes.

Key declarations:

- `UpperTheory.T3.levelData`: Under ShortNorm and SmallOne, supplies a uniform exponent C₈ ≥ 1 and primes with the stated norm, disjointness, congruence, and size conditions for valid ranks and moduli at sufficiently large scales.

  ```lean
  theorem UpperTheory.T3.levelData :
      UpperTheory.T3.ShortNorm → UpperTheory.T3.SmallOne → ∃ C8 : ℝ, 1 ≤ C8 ∧ ∀ eps : ℝ, 0 < eps → eps < 1 / 52 → ∃ x0 : ℝ,
        ∀ (s : Scale) (R : Ranks) (N d : ℕ), s.eps = eps → x0 ≤ s.x → RankVal s R → UpperTheory.T3.ModAt s.x eps N d →
        ∃ (g : Fin 2 → ℕ) (p p' q0 : ℕ), (∀ i, (g i).Prime ∧ ((R.k : ℝ) * s.b) ^ 8 ≤ (g i : ℝ) ∧ (g i : ℝ) ≤ 2 * ((R.k : ℝ) * s.b) ^ 8 ∧
            GlobalTheory.Mem.An.NormOne d N (g i)) ∧ g 0 ≠ g 1 ∧ Disjoint (Formalism.CyclotomicNorms.BB R.r (g 0)) (Formalism.CyclotomicNorms.BB R.r (g 1)) ∧
          p.Prime ∧ p'.Prime ∧ q0.Prime ∧ p ≠ p' ∧ q0 ≠ p ∧ q0 ≠ p' ∧ p % (15 * N) = 1 ∧ p' % (15 * N) = 1 ∧ q0 % N = 1 ∧
          (p : ℝ) ≤ (N : ℝ) ^ C8 ∧ (p' : ℝ) ≤ (N : ℝ) ^ C8 ∧ (q0 : ℝ) ≤ (N : ℝ) ^ C8 ∧ ∀ i, p ≠ g i ∧ p' ≠ g i := …
  ```
- `mod_small`: For C ≥ 1 and ε > 0, proves that 3C x^(ε/5)(log x)^2 < x^ε for all sufficiently large x.

  ```lean
  private theorem mod_small (C eps : ℝ) (hC : 1 ≤ C) (he : 0 < eps) :
      ∃ x₀ : ℝ, ∀ x ≥ x₀, 3 * x ^ (eps / 5) * Real.log x ^ 2 * C < x ^ eps := …
  ```

### Development.AutomorphicArithmetic.ThickFrames.topsChoiceH

9 import steps from Main · 67 lines · Checked against the code · [Open in the Lean viewer](https://riemannhypothesissolved.com/file/Development.AutomorphicArithmetic.ThickFrames.topsChoiceH)

**Proves that a host admits a finite subset of size between δ₁n/2 and 2δ₁n with frame sharing and a weighted bound on local failures.**

For fixed 0 < ε < 1/52 and host bound C8, the theorem gives uniform constants Cb > 0 and x0. For x ≥ x0, the rank, host, and prime-pair hypotheses yield TT of size between δ₁n/2 and 2δ₁n with frame sharing at x^(−1+ε). The bound sums local failure counts weighted by log(p)/p over residue-class-zero primes p < X′ whose assigned elements have additive order at least x^(ε/4). The proof uses the small-prime Kronecker symbol condition to bound inert-class primes below by x^(ε/(5 max(C8, 2))), then applies topsBase. The theorem hostOfFieldOf uses this result to choose TT for the host it constructs.

Key declarations:

- `UpperTheory.BernoulliSumsFrobeniusOrbits.topsChoiceH`: Under the rank, host, and prime-pair hypotheses, supplies a finite subset with the stated cardinality, frame sharing, and weighted bound on local failures.

  ```lean
  theorem UpperTheory.BernoulliSumsFrobeniusOrbits.topsChoiceH :
      ∀ eps C8 : ℝ, 0 < eps → eps < 1 / 52 → ∃ Cb x0 : ℝ, 0 < Cb ∧ ∀ (s : Scale) (R : Ranks) (H : Host R), s.eps = eps → x0 ≤ s.x →
        RankVal s R → HostConst s C8 H → (∃ Y : ℝ, PairWin s Y ∧ PairRow Y s.eps H) →
        ∃ TT : Finset R.A, s.delta1 * R.n / 2 ≤ (TT.card : ℝ) ∧ (TT.card : ℝ) ≤ 2 * s.delta1 * R.n ∧
          BadOK s Cb { H with TT := TT } ∧ R.toFrame.Shares TT (s.x ^ (-1 + eps)) := …
  ```
- `lt_of_classC0'`: If the Kronecker symbol (−d/p) equals 1 at every prime p ≤ y, then every prime in the host’s inert class exceeds y.

  ```lean
  private theorem lt_of_classC0' {R : Ranks} (H : Host R) {p : ℕ} {y : ℝ} (hp : p.Prime) (hc : H.cls p = PrimeClass.inertClass)
      (hs : ∀ p : ℕ, p.Prime → (p : ℝ) ≤ y → GlobalTheoryTheory.kronSym (-(H.d : ℤ)) p = 1) : y < p := …
  ```

### Formalism.SharpRestriction.GlobalSchurBounds.GlobalRankLatticeProofs.ZetaZeroFreeRegion

9 import steps from Main · 20 lines · Checked against the code · [Open in the Lean viewer](https://riemannhypothesissolved.com/file/Formalism.SharpRestriction.GlobalSchurBounds.GlobalRankLatticeProofs.ZetaZeroFreeRegion)

**Identifies two forms of a weighted prime-power remainder and transfers Landau’s zeta zero-free criterion between them.**

An algebraic identity identifies G with the sum of Λ(n)(y/n − 1) over 1 ≤ n ≤ y, minus y log y plus (1 + γ)y, where γ is Euler’s constant. It lets Landau’s criterion turn the eventual upper bound G(y) ≤ y^θ, for 0 < θ < 1, into nonvanishing of the Riemann zeta function on Re(s) > θ. RamificationTwoAndConjugationAtQAndD uses this implication in both its single-instance and family statements.

Key declarations:

- `Formalism.MainNotions.ZetaZeroFreeRegion.G_eq_Gz`: The global prime-power remainder G agrees with the explicit von Mangoldt remainder Gz for every real argument.

  ```lean
  theorem G_eq_Gz (y : ℝ) : Formalism.MainNotions.GlobalTheoryTheory.G y = Formalism.Gz y := …
  ```
- `Formalism.MainNotions.ZetaZeroFreeRegion.points_property_of_d7`: For 0 < θ < 1, an eventual upper bound G(y) ≤ y^θ implies that ζ(s) is nonzero for Re(s) > θ.

  ```lean
  theorem points_property_of_d7 : PointsLemma := …
  ```

### Formalism.SharpRestriction.RamificationFrobenius.TotientGaloisClasses.PrimePairSizeCondition

9 import steps from Main · 132 lines · Checked against the code · [Open in the Lean viewer](https://riemannhypothesissolved.com/file/Formalism.SharpRestriction.RamificationFrobenius.TotientGaloisClasses.PrimePairSizeCondition)

**Defines preliminary host conditions, including size and coprimality bounds for a pair of odd primes.**

The host parameters specify a finite inversion-closed set of primitive Dirichlet characters containing the trivial character, with an optional real odd member. The prime-pair condition requires odd primes r < r′ < 2r whose product is coprime to the full host conductor modulus H.condN = H.QS × H.d × H.q, with two upper bounds on r′. The preliminary host conditions combine this with scale, torsion-index, splitting, small-prime, discriminant, conductor, and size bounds on H.q. The analytic extension adds Chebyshev and logarithmic derivative bounds, a pointwise bound at x for bounded characters, and character retention conditions.

Key declarations:

- `Formalism.HC.PChar`: Packages a primitive complex Dirichlet character together with its nonzero modulus.

  ```lean
  structure PChar where
    N : ℕ
    [ne : NeZero N]
    χ : DirichletCharacter ℂ N
    prim : χ.IsPrimitive
  ```
- `Formalism.HC.KSet`: Specifies a finite set of retained primitive characters containing the trivial character and closed under inversion, with an optional distinguished member that is real and odd.

  ```lean
  structure KSet where
    KEPT : Finset PChar
    one_mem : PChar.one ∈ KEPT
    inv_mem : ∀ ψ ∈ KEPT, ψ.inv ∈ KEPT
  
    psK : Option PChar
    psK_spec : ∀ ψ, psK = some ψ → ψ ∈ KEPT ∧ ψ.χ.Odd ∧ ψ.IsReal
  ```
- `Formalism.HC.HType.InRange`: Requires 1 ≤ X and X^(1/J) ≤ x ≤ X, with 2^e between half and twice x^(2 + 8ε).

  ```lean
  def InRange (X x : ℝ) (e : ℕ) : Prop :=
    1 ≤ X ∧ X ^ ((1 : ℝ) / T.J) ≤ x ∧ x ≤ X ∧
      x ^ (2 + 8 * T.eps) / 2 ≤ (2 : ℝ) ^ e ∧ (2 : ℝ) ^ e ≤ 2 * x ^ (2 + 8 * T.eps)
  ```
- `Formalism.HC.HostRaw.PrimePairSizeCondition`: Requires odd primes r < r′ < 2r with rr′ coprime to the full host conductor modulus H.condN = H.QS × H.d × H.q and r′ bounded by both z and rB.

  ```lean
  def PrimePairSizeCondition (z : ℝ) (rB rr rr' : ℕ) : Prop :=
    rr.Prime ∧ rr'.Prime ∧ rr ≠ 2 ∧ rr < rr' ∧ rr' < 2 * rr ∧ Nat.Coprime (rr * rr') H.condN ∧ (rr' : ℝ) ≤ z ∧ rr' ≤ rB
  ```
- `Formalism.HC.PreHost`: Collects the scale range, torsion-index bound, splitting of small odd primes, small-prime size restrictions, logarithmic size bounds, and prime-pair condition.

  ```lean
  structure PreHost (T : HType) (κ : HConst) (X x : ℝ) {φ : Frame} (H : HostAx φ) (rr rr' : ℕ) : Prop where
    range : T.InRange X x φ.e
    ha5 : φ.TorsionIndexBounded κ.oB
    ha6 : H.OddPrimesSplitBelow (T.z X)
    ha7 : H.SmallPrimeSizeBounds T.SM (T.z X)
    ha8 : H.DiscriminantConductorSizes (T.z' X)
    ha9 : H.ModulusSizeBounds (T.z X)
    ha12 : H.PrimePairSizeCondition (T.z X) κ.rB rr rr'
  ```

### Formalism.SizeWindowBrackets.ChainSlopeWindows.GaloisMapComplexConjugation

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

**Computes inertia and arithmetic Frobenius cosets for the cyclotomic host field and identifies its primitive Dirichlet character values.**

Under the host hypotheses, Chinese remaindering and quadratic reciprocity give explicit inertia and Frobenius data for the modulus 2^(e+2)qd. The additive Galois coordinates identify these data with inertia groups and arithmetic Frobenius cosets at primes of the host field. Averaging over inertia cosets and multiplying over prime powers recovers primitive Dirichlet character values, and the distinguished quadratic character has conductor d. PrimeCongruenceConditions uses the primitive-value identity to express a host character sum in terms of the corresponding primitive Dirichlet character.

Key declarations:

- `Formalism.LFunctionChainParameters.LHost.extension_local`: Under the host hypotheses on q and d, gives the inertia subgroups and chosen Frobenius representatives at 2, q, and d and at primes coprime to the host modulus.

  ```lean
  theorem extension_local : HostLocal := …
  ```
- `Formalism.LFunctionChainParameters.LHost.extension_data_field`: For a realization of the host layer at e + 2 satisfying the host hypotheses on q and d, identifies inertia and the full coset of arithmetic Frobenius lifts at a prime above a rational prime p with their computed counterparts.

  ```lean
  theorem extension_data_field : HostDataField := …
  ```
- `Formalism.LFunctionChainParameters.LHost.galois_map_complex_conjugation`: Sends the sign tuple ((1, −1), 1) to the additive coordinate ((1, 0), 0), which generates inertia at d.

  ```lean
  lemma galois_map_complex_conjugation : galoisToProduct e (((1, -1), 1) : FrobeniusOrbits.GG e) = sgc0 := …
  ```
- `Formalism.LFunctionChainParameters.LHost.primitive_value_primitive`: For a positive modulus, identifies the product of local inertia-coset averages at a positive integer with the value of the associated primitive Dirichlet character.

  ```lean
  theorem primitive_value_primitive : PrimValPrimitive H := …
  ```
- `Formalism.LFunctionChainParameters.LHost.character_conductor`: Under the host hypotheses on q and d, proves that the distinguished quadratic character has conductor d and primitive value equal to the Jacobi symbol (n/d) for every positive integer n.

  ```lean
  theorem character_conductor : ChConductor := …
  ```

### Formalism.SizeWindowBrackets.ChainSlopeWindows.LipschitzWeightAndMinimum

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

**Proves Lipschitz bounds for smoothed prime sums and derives the Riemann hypothesis from reduced growth hypotheses.**

Finite-group averaging isolates the thick contribution and bounds the errors from changing weights and from the thin terms. The size-window estimates then give G_z(x) ≤ x^(1/2+(C+3)ε) for the smoothed zeta prime-sum error. Positive-part truncation, von Mangoldt sum bounds, and a zeta difference estimate supply the required control in both the weights and the summation argument. The Riemann hypothesis follows if, for the supplied Cd and a fixed C, reduced growth data exist at every sufficiently large x for each sufficiently small ε > 0. PChain uses this criterion to pass from weighted-mean data to the Riemann hypothesis.

Key declarations:

- `Formalism.LFunctionChainParameters.ThickSetMeanBounds.proposition_finite_group`: Bounds a density-weighted zeta contribution by the averaged excess over the main term and explicit errors for weight replacement, thin terms, and changes of argument.

  ```lean
  theorem proposition_finite_group {H : Type} [AddCommGroup H] [Fintype H] [DecidableEq H] : GrowthInequalityExplicit (H := H) := …
  ```
- `Formalism.LFunctionChainParameters.ThickSetMeanBounds.proposition_size_bound`: Converts the growth inequality under the size-window hypotheses into the upper bound x^(1/2+(C+3)ε).

  ```lean
  theorem proposition_size_bound : GrowthSizeBound := …
  ```
- `Formalism.LFunctionChainParameters.ThickSetMeanBounds.lipschitz_weight_all`: For positive A, w, and w′, bounds the change in wGψ(A/w) when w is replaced by w′ by 3A|w−w′|/min(w,w′), for every character.

  ```lean
  theorem lipschitz_weight_all : LipWAll := …
  ```
- `Formalism.LFunctionChainParameters.ThickSetMeanBounds.derivative_integral_all`: Supplies a universal constant Cd so that for y,z ≥ 1 the argument difference is bounded by |y−z| times (log(max(y,z)) + Cd + ‖ell ψ‖) for nontrivial characters and by Cd|y−z| for the zeta term.

  ```lean
  theorem derivative_integral_all : DerivIntAll := …
  ```
- `Formalism.LFunctionChainParameters.ThickSetMeanBounds.proposition_final_minimum`: Deduces the Riemann hypothesis from eventual reduced growth data by supplying the weight and argument estimates internally.

  ```lean
  theorem proposition_final_minimum : RiemannHypothesisOfReducedGrowthData := …
  ```

### Lemmata.GeneralBFactLeftBisAlt.Imports

9 import steps from Main · 40 lines · Checked against the code · [Open in the Lean viewer](https://riemannhypothesissolved.com/file/Lemmata.GeneralBFactLeftBisAlt.Imports)

**Proves that every vector in the field span of a module over a number field’s ring of integers has a common denominator.**

Let K be a number field, O_K its ring of integers, and L an O_K-submodule of a K-vector space under the restricted scalar action. Every vector v in the K-span of L admits a nonzero d in O_K with dv in L. The proof inducts on span membership, multiplying denominators for sums and writing each scalar in K as a quotient of elements of O_K.

Key declarations:

- `Bl.general_b_fact_left''''''''.goal1`: For every vector v in the K-span of L, there exists a nonzero d in O_K such that dv belongs to L.

  ```lean
  theorem goal1 :
    ∀ {K V : Type} [inst : Field.{0} K] [NumberField.{0} K] [inst_2 : AddCommGroup.{0} V] [inst_3 : Module.{0, 0} K V]
    [inst_4 : Module.{0, 0} (NumberField.RingOfIntegers.{0} K) V]
    [IsScalarTower.{0, 0, 0} (NumberField.RingOfIntegers.{0} K) K V]
    (L : Submodule.{0, 0} (NumberField.RingOfIntegers.{0} K) V) (v : V),
    Membership.mem.{0, 0} (Submodule.span.{0, 0} K (SetLike.coe.{0, 0} L)) v →
      Exists.{1} fun (d : NumberField.RingOfIntegers.{0} K) ↦
        And (Ne.{1} d 0) (Membership.mem.{0, 0} L (HSMul.hSMul.{0, 0, 0} d v)) := …
  ```

### Development.AutomorphicArithmetic.CharacterBoxes.KerChiAny

10 import steps from Main · 141 lines · Checked against the code · [Open in the Lean viewer](https://riemannhypothesissolved.com/file/Development.AutomorphicArithmetic.CharacterBoxes.KerChiAny)

**Computes the Artin kernel for the host attached to the cyclic group generated by a primitive Dirichlet character.**

The proof uses the Chinese remainder theorem to show that the character factors through the greatest common divisor of its conductor and the host parameter QS, so primitivity forces its conductor to divide QS. It then computes the kernel componentwise using the quotient of the unit group modulo 2^(e+2) by {±1}, the annihilator of the cyclic character group, and the two Jacobi symbols. The importer FieldChi uses this formula in its host-field construction.

Key declarations:

- `ann_zpowers`: Identifies the annihilator of the cyclic group generated by χ with the kernel of χ on units.

  ```lean
  private theorem ann_zpowers {M : ℕ} [NeZero M] (χ : DirichletCharacter ℂ M) (u : (ZMod M)ˣ) :
      u ∈ EvenGrp.ann (Subgroup.zpowers χ) ↔ χ u = 1 := …
  ```
- `dvd_QS`: Shows that the conductor of a primitive character divides the parameter QS for its cyclic character group.

  ```lean
  private theorem dvd_QS {M : ℕ} [NeZero M] (χ : DirichletCharacter ℂ M) (hχ : χ.IsPrimitive) (e : ℕ) :
      M ∣ EvenGrp.QS (Subgroup.zpowers χ) e := …
  ```
- `hcl_nat`: Shows that a unit modulo 2^(e+2) has trivial class in the quotient by {±1} exactly when it is congruent to ±1.

  ```lean
  private theorem hcl_nat (e a : ℕ) (h : a.Coprime (2 ^ (e + 2))) :
      hcl e (ZMod.unitOfCoprime a h) = 1 ↔ (a ≡ 1 [MOD 2 ^ (e + 2)] ∨ a + 1 ≡ 0 [MOD 2 ^ (e + 2)]) := …
  ```
- `art_iff`: Shows that a unit maps to the identity under the Artin map exactly when its η component is trivial and both Jacobi symbols equal 1.

  ```lean
  private theorem art_iff (D : ModData) {q d : ℕ} (hH : HostHyp q d) (a : ℕ) (h : a.Coprime (D.m * q * d)) :
      D.art hH (ZMod.unitOfCoprime a h) = 1 ↔
        D.eta (ZMod.unitOfCoprime a (h.coprime_dvd_right (D.m_dvd q d))) = 1 ∧
          jacobiSym (a : ℤ) q = 1 ∧ jacobiSym (a : ℤ) d = 1 := …
  ```
- `UpperTheory.Top.kerChiAny`: Shows that the conductor of ψ divides QS and that a unit represented by a lies in the Artin kernel exactly when a ≡ ±1 modulo 2^(e+2), ψ(a) = 1, and (a/q) = (a/d) = 1.

  ```lean
  theorem UpperTheory.Top.kerChiAny :
      ∀ (ψ : PChar) (e q d : ℕ) (hH : HostHyp q d) (hc : Nat.Coprime ψ.N (q * d)) (he : 2 ≤ e)
        (hs : ∀ l : ℕ, l.Prime → l ≠ 2 → l ∣ ψ.N → jacobiSym (-(d : ℤ)) l = 1),
        KerChi ψ (AnyGrp.host (Subgroup.zpowers ψ.χ) e hH hc he hs) := …
  ```

### Development.AutomorphicArithmetic.CharacterBoxes.OrdAny

10 import steps from Main · 107 lines · Checked against the code · [Open in the Lean viewer](https://riemannhypothesissolved.com/file/Development.AutomorphicArithmetic.CharacterBoxes.OrdAny)

**Proves that the frame order attached to a Dirichlet character subgroup is eventually a constant times 2^e.**

The proof factors the frame order as 2^e times the cardinality of the image under ξ of the kernel of the 2-adic quotient map. Reduction between levels preserves the classes ±1 and shows that these image subgroups are nested in a fixed finite group, so their cardinalities eventually stabilize. The importer FieldChi applies the formula to the cyclic subgroup generated by a primitive Dirichlet character.

Key declarations:

- `ord_eq_mul`: Expresses the frame order as 2^e times the cardinality of the image of ker(cl) under ξ.

  ```lean
  private theorem ord_eq_mul (D : ModData) : D.frame.ord = Nat.card (D.cl.ker.map D.ξ) * 2 ^ D.e := …
  ```
- `cl_eq_one_iff`: Shows that a unit lies in ker(cl) exactly when its reduction modulo 2^(e+2) is 1 or −1.

  ```lean
  private theorem cl_eq_one_iff (D : ModData) (u : (ZMod D.m)ˣ) :
      D.cl u = 1 ↔ ZMod.unitsMap D.tower u = 1 ∨ ZMod.unitsMap D.tower u = -1 := …
  ```
- `step`: Shows that the image of ker(cl) under ξ at level e+1 is a subgroup of the corresponding image at level e.

  ```lean
  private theorem step {M : ℕ} [NeZero M] (Ξ : Subgroup (DirichletCharacter ℂ M)) (e : ℕ) (b : EvenGrp.B Ξ)
      (hb : b ∈ (AnyGrp.data Ξ (e + 1)).cl.ker.map (AnyGrp.data Ξ (e + 1)).ξ) :
      b ∈ (AnyGrp.data Ξ e).cl.ker.map (AnyGrp.data Ξ e).ξ := …
  ```
- `UpperTheory.Top.ordAny`: For every subgroup Ξ of Dirichlet characters of positive modulus, gives a constant 1 ≤ c ≤ |Ξ| such that the associated frame has order c·2^e for all sufficiently large e.

  ```lean
  theorem UpperTheory.Top.ordAny :
      ∀ (M : ℕ) [NeZero M] (Ξ : Subgroup (DirichletCharacter ℂ M)), ∃ c e0 : ℕ, 1 ≤ c ∧ c ≤ Nat.card Ξ ∧
        ∀ e ≥ e0, (AnyGrp.frame Ξ e).ord = c * 2 ^ e := …
  ```

### Development.AutomorphicArithmetic.CharacterBoxes.TwistAny

10 import steps from Main · 168 lines · Checked against the code · [Open in the Lean viewer](https://riemannhypothesissolved.com/file/Development.AutomorphicArithmetic.CharacterBoxes.TwistAny)

**Proves that the induced Dirichlet values of eligible host characters are products of a power of the input character and two Jacobi factors.**

For the host attached to a primitive Dirichlet character ψ of modulus M, the theorem assumes the host hypotheses, coprimality of M with qd, e ≥ 2, and Jacobi symbol (−d/ℓ) = 1 at every odd prime ℓ dividing M. A host character trivial on the designated first factor yields a power χ of ψ by descent through the quotient by the annihilator. The Chinese remainder theorem and primitivity force M to divide the auxiliary modulus. Decomposing the Artin image then gives χ(a)(a/q)^i(a/d)^j on natural numbers coprime to the host conductor H.condN, with i and j in {0,1}.

Key declarations:

- `UpperTheory.Top.twistAny`: Under the stated hypotheses, each eligible host character has the Jacobi-symbol product formula, with the exponent on (a/d) determined by its value on the second sign factor.

  ```lean
  theorem UpperTheory.Top.twistAny :
      ∀ (ψ : PChar) (e q d : ℕ) (hH : HostHyp q d) (hc : Nat.Coprime ψ.N (q * d)) (he : 2 ≤ e)
        (hs : ∀ l : ℕ, l.Prime → l ≠ 2 → l ∣ ψ.N → jacobiSym (-(d : ℤ)) l = 1),
        TwistForm ψ (AnyGrp.host (Subgroup.zpowers ψ.χ) e hH hc he hs) := …
  ```
- `exA`: Pulling back the auxiliary component of a character trivial on the designated first factor gives the pullback of some Dirichlet character in the chosen subgroup.

  ```lean
  private theorem exA {M : ℕ} [NeZero M] (Ξ : Subgroup (DirichletCharacter ℂ M)) (e : ℕ)
      (θ : (AnyGrp.frame Ξ e).Char) (h1 : Frame.TrivialOnFirstFactor θ) :
      ∃ χ ∈ Ξ, ∀ u : (ZMod (Nat.lcm (2 ^ (e + 2)) M))ˣ,
        θ (1, (AnyGrp.data Ξ e).toA (ZMod.unitsMap (EvenGrp.QS_dvd Ξ e) u)) =
          χ.toUnitHom (ZMod.unitsMap (Nat.dvd_lcm_right _ _) u) := …
  ```
- `exSign`: Every homomorphism from the integer units to the complex units is a zeroth or first power of the sign character.

  ```lean
  private theorem exSign (f : ℤˣ →* ℂˣ) : ∃ i : Fin 2, f (-1) = (-1) ^ (i : ℕ) ∧
      ∀ s : ℤˣ, ((f s : ℂˣ) : ℂ) = (((s : ℤ) : ℤ) : ℂ) ^ (i : ℕ) := …
  ```
- `mem_ann_zpowers_iff_apply_eq_one`: The annihilator of the cyclic subgroup generated by a Dirichlet character is its kernel on the units.

  ```lean
  private theorem mem_ann_zpowers_iff_apply_eq_one {M : ℕ} [NeZero M] (χ : DirichletCharacter ℂ M) (u : (ZMod M)ˣ) :
      u ∈ EvenGrp.ann (Subgroup.zpowers χ) ↔ χ u = 1 := …
  ```
- `dvd_lemma_3`: The modulus of a primitive Dirichlet character divides the auxiliary modulus attached to its cyclic subgroup.

  ```lean
  private theorem dvd_lemma_3 {M : ℕ} [NeZero M] (χ : DirichletCharacter ℂ M) (hχ : χ.IsPrimitive) (e : ℕ) :
      M ∣ EvenGrp.QS (Subgroup.zpowers χ) e := …
  ```

### Development.AutomorphicArithmetic.CoprimeRanks.AnyFramewindow

10 import steps from Main · 94 lines · Checked against the code · [Open in the Lean viewer](https://riemannhypothesissolved.com/file/Development.AutomorphicArithmetic.CoprimeRanks.AnyFramewindow)

**Proves that for any Dirichlet character subgroup at a nonzero modulus, each sufficiently large interval [W, 2W] contains a frame order.**

The frame order is 2^e times the size of the image of a kernel under the character evaluation map. Reduction of units shows that these images are nested as e increases, so the order at e+1 is at most twice the order at e. If W ≥ |Ξ|·2^e₀, the first e ≥ e₀ with order at least W therefore has order in [W, 2W]. When all characters in Ξ are even, the specialized and general frames have the same order, an equality used in the host-field construction.

Key declarations:

- `HostParam.Seam.ord_eq_mul`: Expresses the frame order as 2^e times the cardinality of ξ(ker cl), where cl is the projection to the real cyclotomic quotient.

  ```lean
  private theorem ord_eq_mul (D : ModData) : D.frame.ord = Nat.card (D.cl.ker.map D.ξ) * 2 ^ D.e := …
  ```
- `HostParam.Seam.step`: Shows that the image ξ(ker cl) at exponent e+1 is contained in the corresponding image at exponent e.

  ```lean
  private theorem step {M : ℕ} [NeZero M] (Ξ : Subgroup (DirichletCharacter ℂ M)) (e : ℕ) (b : EvenGrp.B Ξ)
      (hb : b ∈ (AnyGrp.data Ξ (e + 1)).cl.ker.map (AnyGrp.data Ξ (e + 1)).ξ) :
      b ∈ (AnyGrp.data Ξ e).cl.ker.map (AnyGrp.data Ξ e).ξ := …
  ```
- `HostParam.Seam.ord_succ_le`: Bounds the frame order at exponent e+1 by twice the order at exponent e.

  ```lean
  private theorem ord_succ_le {M : ℕ} [NeZero M] (Ξ : Subgroup (DirichletCharacter ℂ M)) (e : ℕ) :
      (AnyGrp.frame Ξ (e + 1)).ord ≤ 2 * (AnyGrp.frame Ξ e).ord := …
  ```
- `HostParam.Seam.ord_le`: Bounds the frame order at exponent e by |Ξ|·2^e.

  ```lean
  private theorem ord_le {M : ℕ} [NeZero M] (Ξ : Subgroup (DirichletCharacter ℂ M)) (e : ℕ) :
      (AnyGrp.frame Ξ e).ord ≤ Nat.card Ξ * 2 ^ e := …
  ```
- `HostParam.Seam.anyFrame_window`: Combines the successive-order bound, equality of the two frame orders for an all-even subgroup, and existence of an exponent e ≥ e₀ with order in [W, 2W] whenever W ≥ |Ξ|·2^e₀.

  ```lean
  theorem anyFrame_window :
      ∀ {M : ℕ} [NeZero M] (Ξ : Subgroup (DirichletCharacter ℂ M)),
        (∀ e : ℕ, (AnyGrp.frame Ξ (e + 1)).ord ≤ 2 * (AnyGrp.frame Ξ e).ord) ∧
        (∀ (e : ℕ) (hev : ∀ χ ∈ Ξ, χ.Even), (EvenGrp.frame Ξ e hev).ord = (AnyGrp.frame Ξ e).ord) ∧
        ∀ (e₀ : ℕ) (W : ℝ), ((Nat.card Ξ * 2 ^ e₀ : ℕ) : ℝ) ≤ W →
          ∃ e : ℕ, e₀ ≤ e ∧ W ≤ (AnyGrp.frame Ξ e).ord ∧ ((AnyGrp.frame Ξ e).ord : ℝ) ≤ 2 * W := …
  ```

### Development.AutomorphicArithmetic.DedekindLFunctions.SplitInertia

10 import steps from Main · 104 lines · Checked against the code · [Open in the Lean viewer](https://riemannhypothesissolved.com/file/Development.AutomorphicArithmetic.DedekindLFunctions.SplitInertia)

**Defines the inertia and Frobenius hypotheses and bundles them with character and size conditions for the Landau argument.**

The host hypotheses specify where inertia is trivial, constrain Frobenius and inertia on a finite exceptional set, and prescribe the two-element inertia group at the distinguished prime. The module defines character sums and the total discrepancy between the arithmetic sum and its main term. It packages these data with size and error bounds and a correspondence with the retained primitive characters. ChBalance uses the host hypotheses to evaluate the local prime-power contributions.

Key declarations:

- `Deduction.CH.HostFactsS`: Requires trivial inertia at primes outside the exceptional set and the distinguished prime, places inertia and Frobenius in the distinguished subset on the exceptional set, and specifies inertia at the distinguished prime.

  ```lean
  structure HostFactsS (D : ArithData H) (S : Finset ℕ) : Prop where
    d_prime : D.d.Prime
    two_mem : 2 ∈ S
    q1_mem : D.q1 ∈ S
    d_not_mem : D.d ∉ S
    unram : ∀ p : ℕ, p.Prime → p ∉ S → p ≠ D.d → D.inertia p = ⊥
    split_inertia : ∀ p ∈ S, ∀ x ∈ D.inertia p, InPhi x
    split_frob : ∀ p ∈ S, InPhi (D.frob p)
    inertia_d : ∀ x, x ∈ D.inertia D.d ↔ x = 0 ∨ x = sgc0
  ```
- `Deduction.CH.SizesA`: Imposes positivity, weight bounds depending on thickness, and a common cutoff for the parameter-to-weight ratios.

  ```lean
  def SizesA (A0 : AddSubgroup H) {m : ℕ} (TT T2 : Finset H) (a : H → ℝ) (w : H → Fin m → E0 × H → ℝ) (N : ℕ)
      (x b b' η X' θ : ℝ) : Prop :=
    0 ≤ η ∧ 0 < X' ∧ 0 < b' ∧ b' * X' ≤ x * b ∧ 0 ≤ θ ∧ (∀ t ∈ TT, |a t / b - x| ≤ 1) ∧
    (∀ u0 ∈ A0, ∀ j ρ, InPhi ρ → 0 < w u0 j ρ) ∧
    (∀ u0 ∈ A0, ∀ j ρ, IsThickAt T2 u0 ρ → b ≤ w u0 j ρ ∧ w u0 j ρ ≤ b + η + 1) ∧
    (∀ u0 ∈ A0, ∀ j ρ, InPhi ρ → ¬ IsThickAt T2 u0 ρ → w u0 j ρ ≤ 2 * b') ∧
    (∀ u0 ∈ A0, ∀ j t ρ, t ∈ TT → InPhi ρ → a t / w u0 j ρ ≤ N)
  ```
- `Deduction.CH.CharsA`: Constrains the retained characters, bounds the number of characters trivial on the chosen subgroup, and bounds character sums and the associated constants.

  ```lean
  def CharsA (ell : AddChar (E0 × H) ℂ → ℂ) (A0 : AddSubgroup H) (Kp : Finset (AddChar (E0 × H) ℂ)) (TT : Finset H)
      (c M Ko CE ε x : ℝ) : Prop :=
    0 ∈ Kp ∧ (∀ ψ ∈ Kp, ψ ∈ PsiA A0 ∧ ψ sgc0 = 1) ∧ ((PsiA A0).card : ℝ) ≤ M ∧
    (∀ ψ ∈ Kp, (¬ ∀ h : H, ψ (0, h) = 1) →
      ‖(∑ t ∈ TT, ψ (0, t)) - (c : ℂ) * (TT.card : ℂ)‖ ≤ M * x ^ (-1 + ε) * (TT.card : ℝ)) ∧
    (∀ ψ ∈ Kp, ψ ≠ 0 → ‖ell ψ‖ ≤ Ko) ∧
    (∀ ψ ∈ PsiA A0, ψ ∉ Kp → ‖ell ψ‖ ≤ CE * Real.log x)
  ```
- `Deduction.CH.ReadsKept`: Requires an injective map from the retained primitive characters onto Kp that matches values on nonzero natural inputs and constants for ξ ≠ PC.one, sends exactly PC.one to the trivial additive character, and sends exactly the exceptional-or-trivial cases to psC or the trivial additive character.

  ```lean
  def ReadsKept (T : DType) (D : ArithData H) (ell : AddChar (E0 × H) ℂ → ℂ) (Kp : Finset (AddChar (E0 × H) ℂ)) : Prop :=
    ∃ rd : PC → AddChar (E0 × H) ℂ, Set.InjOn rd T.KEPT ∧ Kp = T.KEPT.image rd ∧
      ∀ ξ ∈ T.KEPT, (∀ n : ℕ, n ≠ 0 → ξ.χ (n : ZMod ξ.N) = primVal D (rd ξ) n) ∧ (rd ξ = 0 ↔ ξ = PC.one) ∧
        (ξ ≠ PC.one → ell (rd ξ) = ξ.kappa) ∧ (T.psK = some ξ ∨ ξ = PC.one ↔ rd ξ = psC ∨ rd ξ = 0)
  ```
- `Deduction.CH.ChainCoreH`: Asserts the existence of compatible host and chain data satisfying the local, size, character, and error conditions, including a bound for each omitted character trivial on the chosen subgroup.

  ```lean
  def ChainCoreH (T : DType) (eD eL K cHH eK M CE x : ℝ) : Prop := …
  ```

### Development.AutomorphicArithmetic.PrimitiveCosets.GzEq

10 import steps from Main · 50 lines · Checked against the code · [Open in the Lean viewer](https://riemannhypothesissolved.com/file/Development.AutomorphicArithmetic.PrimitiveCosets.GzEq)

**Proves that three definitions of the centered von Mangoldt ramp sum agree for every real argument.**

The proof matches the weights y/n − 1 and max(y/n − 1, 0) on the summation range 1 ≤ n ≤ ⌊y⌋, drops the zero term at n = 0 from the complex-valued sum, and matches the centering terms. LevelFamily and GmAEq use the identity to match the trivial-character contribution in their weighted means.

Key declarations:

- `UpperTheory.Comparison₂.Gz_eq`: For every real y, identifies Formalism.Gz(y), An.G(y), and Deduction.G(y) with the von Mangoldt ramp sum centered by subtracting y log y and adding (1 + γ)y, where γ is Euler's constant.

  ```lean
  theorem UpperTheory.Comparison₂.Gz_eq :
      ∀ y : ℝ, Formalism.Gz y = An.G y ∧ An.G y = Deduction.G y := …
  ```

### Development.AutomorphicArithmetic.PrimitiveCosets.RecH

10 import steps from Main · 27 lines · Checked against the code · [Open in the Lean viewer](https://riemannhypothesissolved.com/file/Development.AutomorphicArithmetic.PrimitiveCosets.RecH)

**Connects the host Artin map to additive coordinates and packages the resulting arithmetic data.**

The coordinate map reverses the two sign coordinates, sends +1 and −1 to 0 and 1 modulo 2, and applies the frame's inverse coordinate map on the remaining factor. Composing with the Artin map gives a reciprocity map on units modulo the host conductor, which supplies the arithmetic data that dataField relates to field-theoretic inertia and Frobenius.

Key declarations:

- `UpperTheory.Comparison₂.toE`: Defines the homomorphism from the frame's Galois group to E₀ × A by converting the two signs in reverse order and mapping the remaining coordinate into A.

  ```lean
  def toE (φ : Frame) : φ.GG →* Multiplicative (E0 × φ.A) where
    toFun g := Multiplicative.ofAdd ((Multiplicative.toAdd (sgn2 g.1.2), Multiplicative.toAdd (sgn2 g.1.1)), φ.iotaInv g.2)
    map_one' := by
      simp only [Prod.snd_one, Prod.fst_one, map_one]
      rfl
    map_mul' g h := by
      simp only [Prod.snd_mul, Prod.fst_mul, map_mul]
      rfl
  ```
- `UpperTheory.Comparison₂.recH`: Composes the host Artin map on units modulo the conductor with the additive coordinate homomorphism.

  ```lean
  def recH (H : HostRaw φ) : (ZMod H.condN)ˣ →* Multiplicative (E0 × φ.A) := (toE φ).comp H.art
  ```
- `UpperTheory.Comparison₂.arith`: Packages the host's arithmetic data from the parameters q and d and the reciprocity map recH.

  ```lean
  def arith (H : HostRaw φ) : ArithData φ.A := cftData H.q H.d (recH H)
  ```

### Development.AutomorphicArithmetic.PrimitiveCosets.ToEBij

10 import steps from Main · 84 lines · Checked against the code · [Open in the Lean viewer](https://riemannhypothesissolved.com/file/Development.AutomorphicArithmetic.PrimitiveCosets.ToEBij)

**Proves that the frame’s additive coordinate map is an isomorphism and identifies the images of its distinguished elements.**

The proof inverts the coordinate map one factor at a time, using the bijection from signs to residues modulo 2. The distinguished involution and complex conjugation map to ((1, 0), 0) and ((1, 1), 0), respectively, the embedded element t maps to ((0, 0), t), and the kernel of the frame’s quadratic character is the locus where the first sign coordinate vanishes. RecSurj uses the isomorphism to deduce surjectivity of the host reciprocity map from that of the Artin map.

Key declarations:

- `UpperTheory.Comparison₂.toE_bij`: Proves that toE is bijective and identifies the images of the distinguished involution, complex conjugation, the embedded factor A, and the kernel of the frame’s quadratic character.

  ```lean
  theorem UpperTheory.Comparison₂.toE_bij :
      ∀ φ : Frame, Function.Bijective (toE φ) ∧ toE φ φ.iod = Multiplicative.ofAdd sgc0 ∧ toE φ φ.cc = Multiplicative.ofAdd cconj ∧
        (∀ t, toE φ (φ.tau1 t) = Multiplicative.ofAdd ((0 : E0), t)) ∧ ∀ g : φ.GG, g ∈ φ.Psi ↔ InPhi (Multiplicative.toAdd (toE φ g)) := …
  ```
- `UpperTheory.Comparison₂.sign_character_bijective`: Shows that the sign map gives a bijection from the integer units to the residues modulo 2.

  ```lean
  private theorem UpperTheory.Comparison₂.sign_character_bijective : Function.Bijective Formalism.LFunctionChainParameters.LHost.sgn2 := …
  ```
- `UpperTheory.Comparison₂.sign_character_zero_iff`: Shows that an integer unit has sign coordinate zero exactly when it equals +1.

  ```lean
  private theorem UpperTheory.Comparison₂.sign_character_zero_iff : ∀ u : ℤˣ, u = 1 ↔ Multiplicative.toAdd (Formalism.LFunctionChainParameters.LHost.sgn2 u) = 0 := …
  ```

### Development.AutomorphicArithmetic.ShortNorms.ExistsThreePrimesOneModLeRpow

10 import steps from Main · 72 lines · Checked against the code · [Open in the Lean viewer](https://riemannhypothesissolved.com/file/Development.AutomorphicArithmetic.ShortNorms.ExistsThreePrimesOneModLeRpow)

**Derives a uniform power bound for three distinct primes in prescribed congruence classes from a bound for one prime.**

Assume that for some A ≥ 1 every modulus M ≥ 2 has a prime at most M^A congruent to 1 modulo M. For each N ≥ 30, the proof applies this bound successively to 15N, 15Np, and Npp′, so each new prime is 1 modulo every earlier prime. All three primes are at most N^C₈, where C₈ = A(1 + 2A + (2A + 2)A). The theorem levelData uses them as the three smaller level primes.

Key declarations:

- `UpperTheory.T3.exists_three_primes_one_mod_le_rpow`: Under SmallOne, gives a uniform C₈ ≥ 1 such that every N ≥ 30 admits distinct primes p, p′, q₀ ≤ N^C₈ with p and p′ congruent to 1 modulo 15N and q₀ congruent to 1 modulo N.

  ```lean
  theorem exists_three_primes_one_mod_le_rpow :
      SmallOne → ∃ C8 : ℝ, 1 ≤ C8 ∧ ∀ N : ℕ, 30 ≤ N → ∃ p p' q0 : ℕ, p.Prime ∧ p'.Prime ∧ q0.Prime ∧ p ≠ p' ∧ q0 ≠ p ∧ q0 ≠ p' ∧
        p % (15 * N) = 1 ∧ p' % (15 * N) = 1 ∧ q0 % N = 1 ∧ (p : ℝ) ≤ (N : ℝ) ^ C8 ∧ (p' : ℝ) ≤ (N : ℝ) ^ C8 ∧ (q0 : ℝ) ≤ (N : ℝ) ^ C8 := …
  ```
- `UpperTheory.T3.mod_eq_one_of_mod_mul`: Reduces a congruence to 1 modulo MK to a congruence to 1 modulo M when M > 1.

  ```lean
  private theorem mod_eq_one_of_mod_mul {p M K : ℕ} (h : p % (M * K) = 1) (hM : 1 < M) : p % M = 1 := …
  ```

### Development.AutomorphicArithmetic.ThickFrames.topsBase

10 import steps from Main · 139 lines · Checked against the code · [Open in the Lean viewer](https://riemannhypothesissolved.com/file/Development.AutomorphicArithmetic.ThickFrames.topsBase)

**Proves a finite subset selection theorem with frame sharing and a prime-weighted bound on local orbit failures.**

For 0 < ε < 1/52 and sufficiently large x, rank bounds and p > x^(ε/(5Cₒ)) for inert-class primes give a subset of size between δ₁n/2 and 2δ₁n with frame sharing at x^(−1+ε). For each such prime below X′ with assigned element of additive order at least x^(ε/4), count the selected points whose local orbit fails the test and weight the count by log(p)/p. The sum is at most 4C_b x^(−2)δ₁n times the total prime weight. A base-p logarithm estimate bounds L₂ uniformly, and the orbit-basepoint lemma allows topsFrame to be applied. Both topsChoiceH and topsChoice_of use the theorem to select subsets for hosts.

Key declarations:

- `UpperTheory.BernoulliSumsFrobeniusOrbits.topsBase`: Under the arithmetic base bounds, selects a subset of the required cardinality with frame sharing and a weighted bound on local orbit failures.

  ```lean
  theorem UpperTheory.BernoulliSumsFrobeniusOrbits.topsBase :
      ∀ eps Co : ℝ, 0 < eps → eps < 1 / 52 → 1 ≤ Co → ∃ Cb x₀ : ℝ, 0 < Cb ∧ ∀ (B : Arith.Base) (h : ℕ → B.H),
        B.sc.eps = eps → x₀ ≤ B.sc.x → B.sc.x ^ (2 + 8 * eps) / 2 ≤ (B.R.n : ℝ) → (B.R.n : ℝ) ≤ Co * B.sc.x ^ (2 + 8 * eps) →
        (B.R.toFrame.o : ℝ) ≤ Co → (B.R.k : ℝ) ≤ 2 * B.sc.x ^ (9 / 2 + 10 * eps) →
        (∀ p : ℕ, p.Prime → B.IsResidueClassZero p → B.sc.x ^ (eps / (5 * Co)) < p) →
        ∃ TT : Finset B.R.A, B.sc.delta1 * B.R.n / 2 ≤ (TT.card : ℝ) ∧ (TT.card : ℝ) ≤ 2 * B.sc.delta1 * B.R.n ∧
          B.R.toFrame.Shares TT (B.sc.x ^ (-1 + eps)) ∧
          ∑ p ∈ (Finset.range ⌈B.sc.X'⌉₊).filter (fun p => p.Prime ∧ B.IsResidueClassZero p ∧ B.sc.x ^ (B.sc.eps / 4) ≤ (addOrderOf (h p) : ℝ)),
              Real.log p / p * ((TT.filter (fun t => ¬ Arith.Loc.Good { B with TT := TT } (h p)
                (Arith.bsH (Arith.Loc.stepP { B with TT := TT } (h p) p) t))).card : ℝ) ≤
            4 * (Cb * B.sc.x ^ (-2 : ℝ)) * B.sc.delta1 * B.R.n *
              ∑ p ∈ (Finset.range ⌈B.sc.X'⌉₊).filter (fun p => p.Prime ∧ B.IsResidueClassZero p ∧ B.sc.x ^ (B.sc.eps / 4) ≤ (addOrderOf (h p) : ℝ)),
                Real.log p / p := …
  ```
- `logb_le'`: Under the scale and k bounds, p > x^(ε/(5Cₒ)) gives log base p of (kx^26)^4 at most 620Cₒ/ε.

  ```lean
  private theorem logb_le' {x eps Co k p : ℝ} (he : 0 < eps) (he' : eps < 1 / 52) (hCo : 1 ≤ Co) (hx : 16 ≤ x) (hk0 : 0 < k)
      (hk : k ≤ 2 * x ^ (9 / 2 + 10 * eps)) (hp : x ^ (eps / (5 * Co)) < p) :
      Real.logb p ((k * x ^ (26 : ℝ)) ^ 4) ≤ 620 * Co / eps := …
  ```
- `ltwo_le'`: Bounds L₂ by 2(620Cₒ/ε + 1) under the scale and rank bounds and the lower bound on inert-class primes.

  ```lean
  private theorem ltwo_le' (B : Arith.Base) {eps Co : ℝ} (he : 0 < eps) (he' : eps < 1 / 52) (hCo : 1 ≤ Co) (hx : 16 ≤ B.sc.x)
      (hk : (B.R.k : ℝ) ≤ 2 * B.sc.x ^ (9 / 2 + 10 * eps))
      (hp : ∀ p : ℕ, p.Prime → B.IsResidueClassZero p → B.sc.x ^ (eps / (5 * Co)) < p) :
      (B.Ltwo : ℝ) ≤ 2 * (620 * Co / eps + 1) := …
  ```
- `bsH_orb'`: For each h and t, the point t is a nonnegative integral translate of the chosen basepoint bsH(h,t) by h.

  ```lean
  private theorem bsH_orb' {φ : Formalism.HC.Frame} (h t : φ.A) : ∃ i : ℕ, Arith.bsH h t + i • h = t := …
  ```

### Formalism.SharpRestriction.GlobalSchurBounds.GlobalRankLatticeProofs.LandauZeroFreeHalfPlane

10 import steps from Main · 20 lines · Checked against the code · [Open in the Lean viewer](https://riemannhypothesissolved.com/file/Formalism.SharpRestriction.GlobalSchurBounds.GlobalRankLatticeProofs.LandauZeroFreeHalfPlane)

**Specializes Landau’s zeta nonvanishing theorem to an eventual one-sided bound on a weighted prime-power remainder.**

The proof takes the positive sign and unit constant in the imported Landau theorem, so an eventual bound Gz(y) ≤ y^θ for 0 < θ < 1 gives ζ(s) ≠ 0 on Re(s) > θ. The downstream ZetaZeroFreeRegion module applies this specialization after identifying its remainder G with Gz.

Key declarations:

- `Formalism.MainNotions.ZetaZeroFreeRegion.SlopeTestRemainingChoices.LandauZeroFreeHalfPlane`: States that for every 0 < θ < 1, an eventual upper bound Gz(y) ≤ y^θ implies nonvanishing of the Riemann zeta function on Re(s) > θ.

  ```lean
  def LandauZeroFreeHalfPlane : Prop :=
    ∀ θ : ℝ, 0 < θ → θ < 1 → ∀ y₀ : ℝ, (∀ y : ℝ, y₀ ≤ y → Gz y ≤ y ^ θ) →
      ∀ s : ℂ, θ < s.re → riemannZeta s ≠ 0
  ```
- `Formalism.MainNotions.ZetaZeroFreeRegion.SlopeTestRemainingChoices.landau_zero_free_half_plane`: Proves that one-sided zero-free half-plane criterion from the imported Landau theorem.

  ```lean
  theorem landau_zero_free_half_plane : LandauZeroFreeHalfPlane := …
  ```

### Formalism.SharpRestriction.RamificationFrobenius.TotientGaloisClasses.Window

10 import steps from Main · 50 lines · Checked against the code · [Open in the Lean viewer](https://riemannhypothesissolved.com/file/Formalism.SharpRestriction.RamificationFrobenius.TotientGaloisClasses.Window)

**Defines power windows for Chebyshev bounds and zero-freeness, and proves monotonicity in the window exponent.**

A set has power windows if it contains intervals [Y, Y^λ] with arbitrarily large left endpoints, a property preserved under eventual inclusion. The Landau condition requires a zero to the right of Re(s) = θ to force a point with Gm(y) > y^θ in every sufficiently late window. Form B asks that for each λ > 1 and 0 < θ < 1 an upper bound Gm(x) ≤ x^θ on arbitrarily late λ-windows imply zero-freeness in Re(s) > θ for the retained characters. At a fixed exponent λ, the property FormBAt passes to any λ′ ≥ λ by restricting λ′-windows with Y ≥ 1.

Key declarations:

- `Formalism.HC.HasWindows`: Requires that for every lower threshold there be a left endpoint Y at or above it with [Y, Y^λ] contained in the given set.

  ```lean
  def HasWindows (S : Set ℝ) (la : ℝ) : Prop :=
    ∀ y : ℝ, ∃ Y : ℝ, y ≤ Y ∧ ∀ x : ℝ, Y ≤ x → x ≤ Y ^ la → x ∈ S
  ```
- `Formalism.HC.HasWindows.mono`: Transfers the window property to any set that contains all sufficiently large elements of the original set.

  ```lean
  theorem HasWindows.mono {S S' : Set ℝ} {la x0 : ℝ} (h : HasWindows S la) (hS : ∀ x ≥ x0, x ∈ S → x ∈ S') :
      HasWindows S' la := …
  ```
- `Formalism.HC.Level.LandauWinAt`: For 0 < θ < 1, requires any retained character’s zero with Re(s) > θ to force Gm(y) > y^θ somewhere in every sufficiently late window of exponent λ.

  ```lean
  def LandauWinAt (la : ℝ) : Prop :=
    ∀ θ : ℝ, 0 < θ → θ < 1 → (∃ ψ ∈ Λ.KEPT, ∃ s : ℂ, θ < s.re ∧ DirichletCharacter.LFunction ψ.χ s = 0) →
      ∃ Y0 : ℝ, ∀ Y ≥ Y0, ∃ y : ℝ, Y ≤ y ∧ y ≤ Y ^ la ∧ y ^ θ < Λ.Gm y
  ```
- `Formalism.HC.Level.FormB`: For every λ > 1 and 0 < θ < 1, asserts that Gm(x) ≤ x^θ on arbitrarily late windows of exponent λ implies zero-freeness in Re(s) > θ for all retained characters.

  ```lean
  def FormB : Prop := ∀ la : ℝ, 1 < la → Λ.FormBAt la
  ```
- `Formalism.HC.Level.FormBAt.mono`: Shows that Form B at exponent λ implies Form B at every exponent λ′ ≥ λ.

  ```lean
  theorem FormBAt.mono {la la' : ℝ} (h : Λ.FormBAt la) (hl : la ≤ la') : Λ.FormBAt la' := …
  ```

Blueprint: [Landau's theorem on windows](https://github.com/chrisflav/riemann-blueprint/blob/137d97602647e450901981a7decfb86ab3024a48/blueprint/chap-zero-free/sec-zf-windows/thm-zero-free-from-windows/thm-landau-windows.md) (Merten's blueprint)

### Formalism.SizeWindowBrackets.ChainSlopeWindows.RiemannHypothesisOfPowerBound

10 import steps from Main · 38 lines · Checked against the code · [Open in the Lean viewer](https://riemannhypothesissolved.com/file/Formalism.SizeWindowBrackets.ChainSlopeWindows.RiemannHypothesisOfPowerBound)

**Derives a zero-free half-plane for ζ and the Riemann hypothesis from one-sided power bounds on a smoothed prime-sum error.**

Specializes Landau’s criterion to the upper bound G_z(x) ≤ x^θ for the smoothed von Mangoldt sum error, with 0 < θ < 1. For fixed C, eventual bounds with exponent 1/2 + Cε for all sufficiently small positive ε give an eventual bound with exponent 1/2 + δ for every δ > 0 by choosing ε with Cε ≤ δ. Landau’s criterion then gives nonvanishing to the right of the critical line, which implies the Riemann hypothesis. LipschitzWeightAndMinimum applies the power-bound criterion to the exponent 1/2 + (C + 3)ε obtained from its size estimates.

Key declarations:

- `Formalism.LFunctionChainParameters.ConditionalMainTheorem.landau_zero_free_half_plane`: For 0 < θ < 1, an eventual upper bound G_z(x) ≤ x^θ implies that ζ has no zeros in Re s > θ.

  ```lean
  theorem landau_zero_free_half_plane : LandauZeroFreeHalfPlane := …
  ```
- `Formalism.LFunctionChainParameters.ConditionalMainTheorem.riemann_hypothesis_of_power_bound`: For fixed real C, an eventual upper bound G_z(x) ≤ x^(1/2+Cε) for each sufficiently small positive ε implies the Riemann hypothesis.

  ```lean
  theorem riemann_hypothesis_of_power_bound : PowerBoundGivesRiemannHypothesis := …
  ```

### Formalism.ThickAverageLoss.ThickAverageProofs.ThickAverage

10 import steps from Main · 334 lines · Checked against the code · [Open in the Lean viewer](https://riemannhypothesissolved.com/file/Formalism.ThickAverageLoss.ThickAverageProofs.ThickAverage)

**Proves that the shift-averaged balance equals a signed four-character contribution from the thick set plus the complementary average.**

For a finite abelian group H, the proof reindexes the thick terms by the set T₂, on which the weight is fixed for each j. Character orthogonality over H leaves the trivial character, the second coordinate sign, the first coordinate sign, and their product, with coefficients +,+,−,−. The thick contribution is the sum of the weighted real parts of this combination of GC values, multiplied by |T₂|/(2|H|). The direct importer uses the identity to bound the signal and the complementary average separately in its finite-group growth inequality.

Key declarations:

- `Formalism.D5.thick_filter`: Identifies the thick summation indices as the elements ((1,0), s + u₀ − t) with s in T₂.

  ```lean
  lemma thick_filter (T2 : Finset H) (u0 t : H) :
      univ.filter (fun g : E0 × H => ¬ InPhi (g + topPl t) ∧ IsThickAt T2 u0 (cconj + g + topPl t))
        = T2.image (fun s => ((((1 : ZMod 2), (0 : ZMod 2)), s + u0 - t) : E0 × H)) := …
  ```
- `Formalism.D5.sum_H`: The sum of a character over H equals |H| for a trivial restriction and vanishes for a nontrivial restriction.

  ```lean
  lemma sum_H (ψ : AddChar (E0 × H) ℂ) :
      ∑ h : H, ψ ((0, 0), h) = if TrivH ψ then (Fintype.card H : ℂ) else 0 := …
  ```
- `Formalism.D5.balTop_split`: Decomposes the balance at each shift and pair of indices into the real part of thickZ and the complementary contribution.

  ```lean
  lemma balTop_split {m : ℕ} (Hs : CycHost H) (Nd : Nodes H m) (u0 t : H) (j : Fin m) :
      balTop Hs (Nd.a t) t (Nd.w u0 j) = (thickZ Hs Nd u0 t j).re +
        ((1 / ((PhiSet (H := H)).card : ℂ)) * ∑ g ∈ univ.filter (fun g : E0 × H =>
          ¬ InPhi (g + topPl t) ∧ ¬ IsThickAt Nd.T2 u0 (cconj + g + topPl t)),
        ∑ ψ : AddChar (E0 × H) ℂ, ψ (-g) * ((Nd.w u0 j (cconj + g + topPl t) : ℝ) : ℂ)
          * GC Hs ψ (Nd.a t / Nd.w u0 j (cconj + g + topPl t))).re := …
  ```
- `Formalism.D5.sum_thick_term_eq_gaussSums`: Evaluates the sum of thickZ over shifts as |T₂|bⱼ/2 times the signed combination of the four GC values at a(t)/bⱼ.

  ```lean
  lemma sum_thick_term_eq_gaussSums {m : ℕ} (Hs : CycHost H) (Nd : Nodes H m) (t : H) (j : Fin m) :
      ∑ u0 : H, thickZ Hs Nd u0 t j = ((Nd.T2.card : ℂ) / 2) * ((Nd.bj j : ℝ) : ℂ) *
        (GC Hs 0 (Nd.a t / Nd.bj j) + GC Hs Hs.psC (Nd.a t / Nd.bj j) - GC Hs Hs.chC (Nd.a t / Nd.bj j)
          - GC Hs Hs.chpsC (Nd.a t / Nd.bj j)) := …
  ```
- `Formalism.D5.thick_average_formula`: Identifies the shift average of the summed balances with the thick signal plus the complementary average.

  ```lean
  theorem thick_average_formula {H : Type} [AddCommGroup H] [Fintype H] [DecidableEq H] :
      ThickAverage (H := H) := …
  ```

### Development.AutomorphicArithmetic.CoprimeRanks.OfPInjective

11 import steps from Main · 142 lines · Checked against the code · [Open in the Lean viewer](https://riemannhypothesissolved.com/file/Development.AutomorphicArithmetic.CoprimeRanks.OfPInjective)

**Compares Galois and frame data, identifies primitive character representations, and transfers host estimates between scales.**

A frame comparison identifies the core Galois group with the host frame group and matches their Artin maps on integers coprime to both moduli. A primitive Dirichlet character is determined by its modulus and character, and the image of this pairing consists exactly of primitive characters at positive moduli. The module also records splitting, inertia, and conductor divisibility hypotheses. With X ≥ 1, J ≥ 1, and C ≥ 0, the inequality X^(1/J) ≤ x gives C log X ≤ CJ log x in the bound for logarithmic derivatives at 1.

Key declarations:

- `HostParam.Seam.Comparison₂`: Extends a frame isomorphism by requiring agreement of the parameter d and compatibility of the Artin maps on common units.

  ```lean
  structure Comparison₂ (C : Core) {φ : Frame} (H : HostRaw φ) extends FrameIso C φ where
    d_eq : H.d = C.d
    art_res : ∀ (a : ℕ) (h : a.Coprime C.E.N) (h' : a.Coprime H.condN),
      H.art (ZMod.unitOfCoprime a h') = iso (C.E.res (ZMod.unitOfCoprime a h))
  ```
- `HostParam.Seam.admitted`: Requires a prime q ≡ 3 mod 8 that splits and has inertia group of order at most two, together with a positive QS coprime to qd whose prime divisors split and for which the conductor divides QS·q·d.

  ```lean
  structure admitted (C : Core) (q QS : ℕ) : Prop extends AdmQ C q where
    QS_pos : 0 < QS
    QS_coprime : Nat.Coprime QS (q * C.d)
    QS_split : ∀ l : ℕ, l.Prime → l ∣ QS → SplitsIn C.d l
    cond_dvd : C.E.conductor ∣ QS * q * C.d
  ```
- `HostParam.Seam.ofP_injective`: Proves that a primitive character is uniquely determined by its modulus and underlying Dirichlet character.

  ```lean
  theorem ofP_injective : Function.Injective ofP := …
  ```
- `HostParam.Seam.mem_range_ofP`: Characterizes the image as pairs consisting of a positive modulus and a primitive character at that modulus.

  ```lean
  theorem mem_range_ofP (κ : PrimChar) : κ ∈ Set.range ofP ↔ 0 < κ.1 ∧ κ.2.IsPrimitive := …
  ```
- `HostParam.Seam.PreRows.eAtH`: Combines the scale, host, and share hypotheses and 0 ≤ C to obtain the host estimate at x with logarithmic-derivative constant CJ.

  ```lean
  theorem PreRows.eAtH {T : HType} {κ : HConst} {X x : ℝ} {φ : Frame} {H : HostRaw φ} {rr rr' : ℕ}
      (hr : PreRows T κ X x H rr rr') (hC : 0 ≤ κ.C) (h : Formalism.HC.HostConditions T κ X x H) {TT : Finset φ.A}
      (hs : φ.Shares TT (x ^ (-1 + T.eps))) : EAtH (T.level φ.o) H TT x T.eps (κ.C * T.J) := …
  ```

### Development.AutomorphicArithmetic.DedekindLFunctions.RunBaseDimensionLeRankAddGenusTerm

11 import steps from Main · 238 lines · Checked against the code · [Open in the Lean viewer](https://riemannhypothesissolved.com/file/Development.AutomorphicArithmetic.DedekindLFunctions.RunBaseDimensionLeRankAddGenusTerm)

**Defines primitive-character data, arithmetic host quotients, and window bounds for weighted prime-power discrepancies.**

For each primitive Dirichlet character the module defines its L-function and the formal quotient L′(1)/L(1). The host is a finite abelian quotient of a residue-class unit group with prescribed Jacobi-symbol and inertia data. The analytic conditions impose character-sum bounds and control the averaged discrepancy between a weighted prime-power sum and its main term, with a weighted mean-square bound for a fixed character family across a window. SplitInertia’s ReadsKept requires an injective map from the retained primitive characters onto Kp, a finite set of additive characters on E0 × H.

Key declarations:

- `Deduction.PC`: Packages a primitive complex Dirichlet character with its modulus.

  ```lean
  structure PC where
    N : ℕ
    [nz : NeZero N]
    χ : DirichletCharacter ℂ N
    prim : χ.IsPrimitive
  ```
- `Deduction.BFrame`: Specifies a finite abelian quotient of a residue-class unit group, a Jacobi-symbol character, inertia data, and a base subgroup.

  ```lean
  structure BFrame
  ```
- `Deduction.AnHost`: Imposes size and index bounds on a host, realizes the retained characters in it, and bounds character sums and selected logarithmic derivatives.

  ```lean
  structure AnHost (T : DType) (X x : ℝ) (F : BFrame) (n : ℕ) : Prop where
    x_ge : X ^ (1 / T.J) ≤ x
    x_le : x ≤ X
    n_ge : x ^ (2 + 8 * T.eps) / 2 ≤ n
    n_le : (n : ℝ) ≤ 2 * x ^ (2 + 8 * T.eps)
    n_le_A : n ≤ Nat.card F.A
    n0_le_Ns : F.n0 ≤ n
    o_le : F.o ≤ T.oB
    kept : ∀ ξ ∈ T.KEPT, ∃ θ ∈ F.Xp, F.prim θ = ξ
    character_prime_sum_bound : ∀ θ : F.Char, ∀ y : ℝ, Real.exp (x ^ (T.eps / 3)) / 3 ≤ y →
      ‖(F.prim θ).G y‖ ≤ y * Real.exp (-(T.cA * x ^ (T.eps / 8)))
    kappa_norm_le_log : ∀ θ ∈ F.bounded T.KEPT, ‖(F.prim θ).kappa‖ ≤ T.CB * Real.log X
    exceptional_character_condition : (∀ ψ, T.psK = some ψ → F.prim F.ps = ψ) ∧ (T.psK = none → F.prim F.ps ∉ T.KEPT)
  ```
- `Deduction.Rows`: Specifies finite indexing sets, their distribution among subgroup cosets, and size bounds on the parameters and weights used in the discrepancy.

  ```lean
  structure Rows (T : DType) (x : ℝ) (F : BFrame) (n : ℕ)
  ```
- `Deduction.WindowBoundedCharacters`: Requires a single finite family of primitive characters whose total weighted mean-square integral over [X^(1/J), X] is at most one and, for each x in [Y, Y^la], a host whose bounded characters have exactly that family as their image under prim, together with rows satisfying an averaged discrepancy bound.

  ```lean
  def WindowBoundedCharacters (T : DType) (C₁ la X Y : ℝ) : Prop :=
    X ^ (1 / T.J) ≤ Y ∧ Y ^ la ≤ X ∧ ∃ B : Finset PC,
      (∑ ψ ∈ B, ∫ y in (X ^ (1 / T.J))..X, ‖ψ.G y‖ ^ 2 * y ^ (-1 - 2 * T.eps) / y ≤ 1) ∧
      ∀ x ∈ Icc Y (Y ^ la), ∃ (F : BFrame) (n : ℕ), AnHost T X x F n ∧
        (∀ ψ, ψ ∈ B ↔ ∃ θ ∈ F.bounded T.KEPT, F.prim θ = ψ) ∧ ∃ D : Rows T x F n, D.TL C₁
  ```

### Development.AutomorphicArithmetic.ThickFrames.topsFrame

11 import steps from Main · 41 lines · Checked against the code · [Open in the Lean viewer](https://riemannhypothesissolved.com/file/Development.AutomorphicArithmetic.ThickFrames.topsFrame)

**Specializes finite-group subset selection to frames with prescribed coset proportions and weighted control of orbit failures.**

For ε > 0 and large x, under bounds on the frame order n, subgroup index o, and L₂, the theorem selects a subset of size between d_E(ε,x)n/2 and 2d_E(ε,x)n. Its coset proportions are within x^(−1+ε) of 4/(3o+1) on the subgroup and 3/(3o+1) elsewhere. The orbit tests use finitely many indices with nonnegative weights, steps of additive order at least x^(ε/4), and basepoints in the corresponding step orbits. The weighted count of selected points failing the tests is at most 4C_b x^(−2)d_E(ε,x)n times the total weight. The proof applies topsGroup, and topsBase uses the result with inert-class primes weighted by log(p)/p.

Key declarations:

- `UpperTheory.BernoulliSumsFrobeniusOrbits.topsFrame`: Selects a finite subset with size and coset proportion bounds and a weighted orbit-failure bound for nonnegative weights, steps of additive order at least x^(ε/4), and basepoints in the corresponding step orbits.

  ```lean
  theorem UpperTheory.BernoulliSumsFrobeniusOrbits.topsFrame :
      ∀ eps Co Lb : ℝ, 0 < eps → ∃ Cb x₀ : ℝ, 0 < Cb ∧ ∀ x ≥ x₀, ∀ (φ : Formalism.HC.Frame) (L₂ : ℕ),
        x ^ hE eps / 2 ≤ (φ.ord : ℝ) → (φ.ord : ℝ) ≤ Co * x ^ hE eps → (φ.o : ℝ) ≤ Co → (L₂ : ℝ) ≤ Lb →
        ∀ bs : φ.A → φ.A → φ.A, (∀ h t, ∃ i : ℕ, bs h t + i • h = t) →
        ∀ (PP : Finset ℕ) (hp : ℕ → φ.A) (ω : ℕ → ℝ), (∀ p, 0 ≤ ω p) → (∀ p ∈ PP, x ^ (eps / 4) ≤ (addOrderOf (hp p) : ℝ)) →
        ∃ TT : Finset φ.A, dE eps x * φ.ord / 2 ≤ (TT.card : ℝ) ∧ (TT.card : ℝ) ≤ 2 * dE eps x * φ.ord ∧
          φ.Shares TT (x ^ (-1 + eps)) ∧
          ∑ p ∈ PP, ω p * (({t : φ.A | t ∈ TT ∧ ¬ Formalism.MainNotions.G.IsGoodOrbit (addOrderOf (hp p))
              (Finset.univ.filter (fun i : Fin (addOrderOf (hp p)) => bs (hp p) t + (i : ℕ) • hp p ∈ TT)) L₂ (KE eps) (rE eps)
              (dE eps x) (hE eps) x}.ncard : ℕ) : ℝ) ≤ 4 * (Cb * x ^ (-2 : ℝ)) * dE eps x * φ.ord * ∑ p ∈ PP, ω p := …
  ```

### Formalism.SharpRestriction.GlobalSchurBounds.FrameCodeOfAdditive

11 import steps from Main · 560 lines · Checked against the code · [Open in the Lean viewer](https://riemannhypothesissolved.com/file/Formalism.SharpRestriction.GlobalSchurBounds.FrameCodeOfAdditive)

**Identifies the division-side prime-power sum with its character-sum counterpart and transfers family slope and loss bounds.**

At inert primes, the Frobenius sign selects odd powers, and weights bounded below by one give a finite cutoff for the von Mangoldt sum. Matching the weights in additive coordinates then identifies the two formulas for the arithmetic loss term throughout the family at sufficiently large scales. The identity and the nonnegativity of the weighted local sum let LinkPk use the division-side loss and slope estimates in its global theorem. LinkPk also uses the eventual x^ε bound for the absolute logarithmic derivative at one under the chosen quadratic-character hypotheses.

Key declarations:

- `Formalism.MainNotions.Lnk.inert_sum`: Under the parameter and size hypotheses, the inert-prime contribution equals the finite sum over signal or inert-class primes p ≤ (L.aT t).toNat of the von Mangoldt class sums weighted by 2 log p.

  ```lean
  theorem inert_sum {X : G.Inst D L} {K : G.Consts} (P : ℕ → Prop) [DecidablePred P] [DecidablePred (ZetaZeroFreeRegion.InertK D)]
      (hP : ∀ p, P p ↔ (D.host.cls p = PrimeClass.signal ∨ D.host.cls p = PrimeClass.inertClass))
      (hF : ∀ w, G.ParametersFill X K w) (hN : NumN_at L) {j : ℕ} (hj : j ∈ SizeData₂.lifts D) (t : D.host.TT) :
      (∑' p : ℕ, if ZetaZeroFreeRegion.InertK D p then
          2 * Real.log p * askP D (L.aT t : ℝ) (LocalQuadraticParts.wAt D j) (D.R.tau1 (t : D.R.A)) p else 0) =
        ∑ p ∈ (LocalQuadraticParts.askPrimes (L.aT t)).filter P, 2 * Real.log p * L.vonMangoldtClassSum j t p := …
  ```
- `Formalism.MainNotions.Lnk.askIsF`: At sufficiently large scales, the character-sum formula agrees with the division-side arithmetic loss term for every member of the family.

  ```lean
  theorem askIsF {eps : ℝ} (Fm : FamP eps) : AskIsF Fm := …
  ```
- `Formalism.MainNotions.Lnk.losses_family_of_division_side`: The division-side loss estimates and the arithmetic sum identity imply the family loss bounds with the same exponent.

  ```lean
  theorem losses_family_of_division_side (Fm : FamP eps) (eL : ℝ) (h5 : LocalQuadraticParts.SlopeLossFamily Fm eL) (hAsk : AskIsF Fm) : LossF Fm eL := …
  ```
- `Formalism.MainNotions.Lnk.slopes_family_of_division_side`: The division-side slope estimates and eventual nonnegativity of the weighted local sum imply the family lattice slope bounds.

  ```lean
  theorem slopes_family_of_division_side (Fm : FamP eps) (h4 : LocalQuadraticParts.SlopeLemmaFamily Fm) (hIo : IoNonnegF Fm) : SlopesNF Fm := …
  ```
- `Formalism.MainNotions.Lnk.dl_of_chosen`: The chosen quadratic-character hypotheses imply that the absolute logarithmic derivative at one is eventually bounded by x^ε uniformly over the family.

  ```lean
  theorem dl_of_chosen {eps : ℝ} (Fm : FamP eps) (C5 : ℝ) (h : ChosenQD Fm C5) :
      ∃ x0 : ℝ, ∀ x ≥ x0, ∀ i : Fm.Ix x, |(Fm.L x i).logDerivativeAtOne| ≤ (Fm.L x i).sc.x ^ (Fm.L x i).sc.eps := …
  ```

### Formalism.SharpRestriction.RamificationFrobenius.TotientGaloisClasses.InertiaGaloisSymmetry.AnyLevel

11 import steps from Main · 213 lines · Checked against the code · [Open in the Lean viewer](https://riemannhypothesissolved.com/file/Formalism.SharpRestriction.RamificationFrobenius.TotientGaloisClasses.InertiaGaloisSymmetry.AnyLevel)

**Constructs cyclotomic hosts for arbitrary Dirichlet character subgroups and realizes their primitive characters by Artin pullback.**

For a character subgroup Ξ modulo M, the frame has o = |Ξ| and uses the least divisor m of lcm(2^(e+2), M) divisible by 2^(e+2) for which the quotient map kills units congruent to 1 modulo m. For e ≥ 2, the host construction assumes coprimality and Jacobi-symbol conditions. Exactness at primes dividing m follows from minimality and an explicit unit when halving m breaks the 2-power divisibility. A sign correction puts each lift θ in Xp, and evaluation on common units identifies its primitive Artin pullback with the primitive character inducing the original character. OrdAny uses the frame to show that its order is eventually a fixed multiple of 2^e.

Key declarations:

- `Formalism.HC.AnyGrp.host`: Constructs the host from Ξ and e ≥ 2 under the host hypotheses on q and d, with M coprime to qd and Jacobi symbol (−d/ℓ) equal to 1 at every odd prime ℓ dividing M.

  ```lean
  def host : HostRaw (frame Ξ e) :=
    (data Ξ e).host hH (coprime_QS Ξ e hH hc) he fun l hl h2 h => hs l hl h2 (dvd_of_dvd_QS Ξ e hl h2 h)
  ```
- `Formalism.HC.AnyGrp.exact`: For each prime ℓ dividing m, gives a unit modulo N = mqd that is congruent to 1 modulo N/ℓ and has nonidentity Artin image.

  ```lean
  theorem exact : (host Ξ e hH hc he hs).Exact := …
  ```
- `Formalism.HC.AnyGrp.prim_theta`: Identifies the primitive Dirichlet character obtained from the Artin pullback of θ with the primitive character inducing the original character in Ξ.

  ```lean
  theorem prim_theta (χ : DirichletCharacter ℂ M) (hχ : χ ∈ Ξ) :
      PChar.of χ = (host Ξ e hH hc he hs).prim (theta Ξ e χ hχ) := …
  ```
- `Formalism.HC.AnyGrp.keptInXp`: Realizes every primitive character induced from Ξ by Artin pullback from Xp, the frame characters trivial on τ₁(A₀) and on the distinguished element iod.

  ```lean
  theorem keptInXp : (host Ξ e hH hc he hs).KeptInXp (Level.ofSub Ξ).KEPT := …
  ```
- `Formalism.HC.AnyGrp.exceptional_character_condition`: Shows that the primitive Dirichlet character attached to the host’s distinguished sign character lies outside the set of primitive characters induced from Ξ.

  ```lean
  theorem exceptional_character_condition : (host Ξ e hH hc he hs).ExceptionalCharacterKept (Level.ofSub Ξ).KEPT (Level.ofSub Ξ).psK := …
  ```

### Formalism.ThickAverageLoss.ParametersAveragedDifferenceBound

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

**Defines bounds for thin sums, aggregate losses, an averaged explicit-formula difference, and narrow averages of Gz.**

ThinSmall asserts that under DLVP and the stated size and function bounds the absolute weighted thin sum is at most 2CK + 1 for large x. LossBound asserts a bound of K′x^(1/2 + 3ε) for the sum of individually controlled losses, including a normalized divisor term, under the size conditions. ParametersAveragedDifferenceBound asserts that under DLVP, the size conditions, and explicit-formula data with a lower bound on the ps average, the Gz average minus the GJ and chps averages is at most K′x^(1/2 + 4ε) for large x. NarrowGz asserts a bound of K√x for the absolute change from Gz(x) under probability-weighted averaging at points y ≥ 1 within √x, for x ≥ 1.

Key declarations:

- `Formalism.D5.ThinSmall`: Under DLVP and the stated size and function bounds, the absolute value of the thin sum with coefficients βᵢuᵢ/b and arguments Aᵢ/uᵢ is at most 2CK + 1 for sufficiently large x.

  ```lean
  def ThinSmall : Prop := …
  ```
- `Formalism.D5.LossBound`: Under the size conditions and individual loss and divisor bounds, the combined loss is at most K′x^(1/2 + 3ε) uniformly for x ≥ 1.

  ```lean
  def LossBound : Prop := …
  ```
- `Formalism.D5.ParametersAveragedDifferenceBound`: Under DLVP, the size conditions, and explicit-formula data whose ps average is at least −Cx^(1/2 + ε), the average of Gz minus the averages of GJ and the chps term is at most K′x^(1/2 + 4ε) for sufficiently large x.

  ```lean
  def ParametersAveragedDifferenceBound : Prop :=
    DLVP → ∀ ε C K : ℝ, 0 < ε → ε ≤ 1 / 20 → 0 ≤ C → ∃ K' x₀ : ℝ, 0 ≤ K' ∧ ∀ x : ℝ, x₀ ≤ x →
      ∀ P : SizeParameters, SizeConditions ε K x P →
      ∀ (nn : ℕ) (w y : Fin nn → ℝ) (d : ℕ) (χ : DirichletCharacter ℂ d) (large₂ : ExplicitFormulaData C ε x P w y d χ),
        -(C * x ^ ((1 : ℝ) / 2 + ε)) ≤ gavg w y (Gch large₂.ps large₂.ellPs) →
        gavg w y Gz - gavg w y (GJ d χ) - gavg w y (Gch large₂.chps large₂.ellChPs) ≤ K' * x ^ ((1 : ℝ) / 2 + 4 * ε)
  ```
- `Formalism.D5.NarrowGz`: Defines the assertion that one constant K bounds the absolute difference between Gz(x) and any probability-weighted average of Gz at points y ≥ 1 with |y − x| ≤ √x by K√x for all x ≥ 1.

  ```lean
  def NarrowGz : Prop :=
    ∃ K : ℝ, ∀ (nn : ℕ) (w y : Fin nn → ℝ) (x : ℝ), 1 ≤ x → AvgNarrow w y x →
      |gavg w y Gz - Gz x| ≤ K * x ^ ((1 : ℝ) / 2)
  ```

### Formalism.ZetaNonvanishing.RHofHalfPlane

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

**Proves that nonvanishing of the Riemann zeta function for Re(s) > 1/2 implies the Riemann hypothesis.**

The functional equation proves nonvanishing at negative odd integers by relating them to positive even integers, where the cosine factor is ±1 and ζ is nonzero. After handling the nonpositive integers separately, the proof uses the same equation to send any zero strictly left of the critical line to a zero at 1 − s in the assumed zero-free half-plane. The direct importer uses this implication to deduce the Riemann hypothesis from a power bound.

Key declarations:

- `Formalism.zeta_neg_odd_ne_zero`: For every integer m ≥ 0, ζ(−(2m + 1)) is nonzero.

  ```lean
  lemma zeta_neg_odd_ne_zero (m : ℕ) : riemannZeta (-((2 * m + 1 : ℕ) : ℂ)) ≠ 0 := …
  ```
- `Formalism.riemannHypothesis_of_zero_free_halfPlane`: If ζ has no zeros for Re(s) > 1/2, every nontrivial zero of ζ has real part 1/2.

  ```lean
  theorem riemannHypothesis_of_zero_free_halfPlane : RHofHalfPlane := …
  ```

### Development.AutomorphicArithmetic.PrimitiveCosets.CardPsiA

12 import steps from Main · 63 lines · Checked against the code · [Open in the Lean viewer](https://riemannhypothesissolved.com/file/Development.AutomorphicArithmetic.PrimitiveCosets.CardPsiA)

**Counts the complex additive characters of E₀ × A that are trivial on {0} × A₀, obtaining 4[A : A₀].**

A character trivial on the kernel of a surjection is constant on its fibers and descends to the target. Pullback therefore identifies the characters counted by Ψ_A with the dual of E₀ × (A/A₀). Finite abelian duality gives 4[A : A₀], which is 4o for the frame. SigALe uses this count to bound the number of terms in the sum over unretained characters.

Key declarations:

- `UpperTheory.Comparison₂.card_PsiA`: Shows that the frame’s set Ψ_A has exactly 4o characters, where o is the index of A₀ in A.

  ```lean
  theorem UpperTheory.Comparison₂.card_PsiA :
      ∀ φ : Frame, (PsiA φ.A0).card = 4 * φ.o := …
  ```
- `card_PsiA_index`: For any subgroup A₀ of a finite abelian group H, counts exactly 4[H : A₀] complex additive characters on E₀ × H that are trivial on {0} × A₀.

  ```lean
  private theorem card_PsiA_index {H : Type} [AddCommGroup H] [Fintype H] [DecidableEq H] (A0 : AddSubgroup H) :
      (PsiA A0).card = 4 * A0.index := …
  ```
- `exists_comp_eq`: Shows that an additive character trivial on the kernel of a surjective homomorphism is the pullback of a character on the target.

  ```lean
  private theorem exists_comp_eq {G Q M : Type} [AddCommGroup G] [AddCommGroup Q] [CommGroupWithZero M] (π : G →+ Q)
      (hπ : Function.Surjective π) (ψ : AddChar G M) (h : ∀ x, π x = 0 → ψ x = 1) :
      ∃ χ : AddChar Q M, χ.compAddMonoidHom π = ψ := …
  ```

### Development.AutomorphicArithmetic.PrimitiveCosets.PrimRead

12 import steps from Main · 97 lines · Checked against the code · [Open in the Lean viewer](https://riemannhypothesissolved.com/file/Development.AutomorphicArithmetic.PrimitiveCosets.PrimRead)

**Identifies host additive-character ramp sums with those of the associated primitive Dirichlet characters.**

Under host compatibility, the assigned coefficient of a nontrivial additive character is the logarithmic derivative at one of the associated primitive Dirichlet L-function. The proof identifies the Dirichlet characters on conductor units, then uses surjectivity of reciprocity to match the trivial cases. In the nontrivial case the primitive values give termwise equality of the corrected von Mangoldt ramp sums, while in the trivial case both sums reduce to the centered zeta sum. GmAEq uses the identity to rewrite the summands of the retained-character weighted mean.

Key declarations:

- `UpperTheory.Comparison₂.prim_read`: Identifies the corrected host ramp sum with the primitive Dirichlet ramp sum for every real argument and identifies the correction coefficient for every nontrivial additive character.

  ```lean
  theorem UpperTheory.Comparison₂.prim_read :
      ∀ (φ : Frame) (H : HostAx φ) (ell : AddChar (E0 × φ.A) ℂ → ℂ), HostAddCharCompatible H.toHostRaw ell → ∀ ψ : AddChar (E0 × φ.A) ℂ,
        (ψ ≠ 0 → ell ψ = An.logDerivativeAtOne (H.toHostRaw.prim (chr φ ψ)).χ) ∧
          ∀ y, GPsi (arith H.toHostRaw) ell ψ y = An.gChi (H.toHostRaw.prim (chr φ ψ)).χ y := …
  ```
- `UpperTheory.Comparison₂.prim_read_dir`: Shows that the host Dirichlet character obtained via the frame coordinates equals the one obtained by pulling the additive character back along host reciprocity.

  ```lean
  private theorem UpperTheory.Comparison₂.prim_read_dir (φ : Frame) (H : HostRaw φ) (ψ : AddChar (E0 × φ.A) ℂ) :
      H.dir (chr φ ψ) = dirChar (recH H) ψ := …
  ```
- `UpperTheory.Comparison₂.prim_read_one`: Shows that a Dirichlet character has trivial primitive associate exactly when the character itself is trivial.

  ```lean
  private theorem UpperTheory.Comparison₂.prim_read_one {N : ℕ} [NeZero N] (χ : DirichletCharacter ℂ N) :
      χ.primitiveCharacter = 1 ↔ χ = 1 := …
  ```
- `UpperTheory.Comparison₂.prim_read_Gz`: Shows that the two centered zeta ramp sums agree for every real argument.

  ```lean
  private theorem UpperTheory.Comparison₂.prim_read_Gz (y : ℝ) : Gz y = An.G y := …
  ```

### Development.AutomorphicArithmetic.ThickFrames.topsGroup

12 import steps from Main · 143 lines · Checked against the code · [Open in the Lean viewer](https://riemannhypothesissolved.com/file/Development.AutomorphicArithmetic.ThickFrames.topsGroup)

**Proves that a finite abelian group admits a subset with prescribed coset proportions and few weighted orbit failures.**

For ε > 0 and large x, under the group-size, subgroup-index, and orbit-parameter bounds, the theorem selects a subset of size between δ|A|/2 and 2δ|A|, where δ = x^(−ε/8). Coset proportions are within x^(−1+ε) of 4/(3o+1) on the subgroup of index o and 3/(3o+1) elsewhere. A finite family of steps h of additive order at least x^(ε/4) has nonnegative weights and basepoints with t = bs(h,t) + i·h for some i ∈ ℕ. The weighted count of selected points failing the tests is at most 4C_b x^(−2)δ|A| times the total weight. The proof samples independently with probabilities δ on the subgroup and 3δ/4 off it, and topsFrame applies the result to frames.

Key declarations:

- `UpperTheory.BernoulliSumsFrobeniusOrbits.topsGroup`: Selects a subset of a finite abelian group satisfying simultaneous size, coset-proportion, and weighted orbit-failure bounds.

  ```lean
  theorem UpperTheory.BernoulliSumsFrobeniusOrbits.topsGroup :
      ∀ eps Co Lb : ℝ, 0 < eps → ∃ Cb x₀ : ℝ, 0 < Cb ∧ ∀ x ≥ x₀,
        ∀ (A : Type) [Fintype A] [DecidableEq A] [AddCommGroup A] (A0 : AddSubgroup A) (L₂ : ℕ),
        x ^ hE eps / 2 ≤ (Fintype.card A : ℝ) → (Fintype.card A : ℝ) ≤ Co * x ^ hE eps → (A0.index : ℝ) ≤ Co → (L₂ : ℝ) ≤ Lb →
        ∀ bs : A → A → A, (∀ h t, ∃ i : ℕ, bs h t + i • h = t) →
        ∀ (PP : Finset ℕ) (hp : ℕ → A) (ω : ℕ → ℝ), (∀ p, 0 ≤ ω p) → (∀ p ∈ PP, x ^ (eps / 4) ≤ (addOrderOf (hp p) : ℝ)) →
        ∃ TT : Finset A, dE eps x * Fintype.card A / 2 ≤ (TT.card : ℝ) ∧ (TT.card : ℝ) ≤ 2 * dE eps x * Fintype.card A ∧
          (∀ γ : A, |((TT.filter fun t => t - γ ∈ A0).card : ℝ) -
            (if γ ∈ A0 then 4 else 3) / (3 * (A0.index : ℝ) + 1) * (TT.card : ℝ)| ≤ x ^ (-1 + eps) * (TT.card : ℝ)) ∧
          ∑ p ∈ PP, ω p * (({t : A | t ∈ TT ∧ ¬ Formalism.MainNotions.G.IsGoodOrbit (addOrderOf (hp p))
              (Finset.univ.filter (fun i : Fin (addOrderOf (hp p)) => bs (hp p) t + (i : ℕ) • hp p ∈ TT)) L₂ (KE eps) (rE eps)
              (dE eps x) (hE eps) x}.ncard : ℕ) : ℝ) ≤ 4 * (Cb * x ^ (-2 : ℝ)) * dE eps x * Fintype.card A * ∑ p ∈ PP, ω p := …
  ```
- `tg_num`: Under the scale and index bounds, shows that 4o√(2δN) is at most δn₀/x, where N = on₀.

  ```lean
  private theorem tg_num (x eps Co δ N o n0 : ℝ) (he : 0 < eps) (hx : 1 ≤ x) (hbig : 64 * Co ^ 4 ≤ x ^ eps)
      (hδe : δ = x ^ (-(eps / 8))) (hN : x ^ (2 + 8 * eps) / 2 ≤ N) (ho1 : 1 ≤ o) (ho : o ≤ Co) (hn : o * n0 = N) :
      4 * o * Real.sqrt (2 * δ * N) ≤ x⁻¹ * (δ * n0) := …
  ```
- `tg_class_sum`: Sums a weight constant on the subgroup and constant on its complement over a coset, giving the coset’s weight times the subgroup order.

  ```lean
  private theorem tg_class_sum (A : Type) [Fintype A] [DecidableEq A] [AddCommGroup A] (A0 : AddSubgroup A)
      (u v : ℝ) (γ : A) :
      ∑ a ∈ univ.filter (fun a : A => a - γ ∈ A0), (if a ∈ A0 then u else v) =
        (if γ ∈ A0 then u else v) * Nat.card A0 := …
  ```

### Formalism.SharpRestriction.GlobalSchurBounds.RamificationTwoAndConjugationAtQAndD

12 import steps from Main · 1,042 lines · Checked against the code · [Open in the Lean viewer](https://riemannhypothesissolved.com/file/Formalism.SharpRestriction.GlobalSchurBounds.RamificationTwoAndConjugationAtQAndD)

**Matches host-field character sums with weighted prime-power sums and derives a conditional Riemann hypothesis.**

Additive coordinates transport inertia and Frobenius, and primitive Dirichlet characters give the corresponding weighted character sums. Matching the inert-prime terms and the ramified term at d gives an exact balance between the prime-power sum, its main term and the character remainder. A thick-set estimate yields G(x) ≤ x^(1/2 + (C + 3)ε), and the eventual bounds for all sufficiently small ε imply the Riemann hypothesis under the family assumptions. FrameCodeOfAdditive uses the prime-power sum comparison to identify its arithmetic loss term.

Key declarations:

- `Formalism.MainNotions.ZetaZeroFreeRegion.Br.fieldFacts`: In additive coordinates, inertia is subgroup membership and the arithmetic Frobenius lifts are the corresponding inertia coset.

  ```lean
  theorem fieldFacts (p : ℕ) (hp : p.Prime) (P : Ideal (𝓞 D.host.E)) (hP : P.IsPrime)
      (hL : P.LiesOver (Ideal.span {(p : ℤ)})) (σ : D.host.E ≃ₐ[ℚ] D.host.E) :
      ((∀ x : 𝓞 D.host.E, σ • x - x ∈ P) ↔
        tE D (D.host.galE σ) ∈ (AD D).inertia p) ∧
      (IsArithFrobAt ℤ σ P ↔
        tE D (D.host.galE σ) - (AD D).frob p ∈ (AD D).inertia p) := …
  ```
- `Formalism.MainNotions.ZetaZeroFreeRegion.Br.prim_val`: At every positive integer, the primitive Dirichlet character attached to a host-field character agrees with the arithmetic value computed in additive coordinates.

  ```lean
  theorem prim_val (ψ : Chr D) (n : ℕ) (hn : n ≠ 0) :
      (prim D ψ).2 (n : ZMod (prim D ψ).1) = characterSumData.primVal (AD D) (aOf D ψ) n := …
  ```
- `Formalism.MainNotions.ZetaZeroFreeRegion.Br.balance`: For a > 0 and weights positive on D.R.Psi, the weighted prime-power sum at the top place tau1 t minus its main term equals the character remainder there.

  ```lean
  theorem balance (a : ℝ) (ha : 0 < a) (w : D.R.GG → ℝ) (hw : ∀ ρ ∈ D.R.Psi, 0 < w ρ) (t : HH D) :
      ((ASKjt D a w (D.R.tau1 t) : ℝ) : ℂ) - MAINjt D a w = Dejt D a w (D.R.tau1 t) := …
  ```
- `Formalism.MainNotions.ZetaZeroFreeRegion.Br.proposition_eleven_two_at_scale`: At a scale satisfying the large-x conditions, nonnegative C and Cd, the derivative-integral estimate, character bounds, the top-excess bound, and size and place hypotheses give G(x) ≤ x^(1/2 + (C + 3)ε).

  ```lean
  theorem proposition_eleven_two_at_scale (s : Scale) (C c CL Cd : ℝ) (hC : 0 ≤ C) (hCd0 : 0 ≤ Cd)
      (hCd : ThickSetMeanBounds.DerivInt (AD D) (ell D) Cd)
      (h5 : adm5 D s c) (h6 : adm6 D s CL) (h7 : adm7 D s C)
      (hS : SizesAt D s (s.eps / 4)) (hP : PlacesAt D s) (hL : LargeX s.x s.eps c Cd CL) :
      Conclusion2 s.x s.eps (C + 3) := …
  ```
- `Formalism.MainNotions.ZetaZeroFreeRegion.rh_of`: For a positive cutoff ε₀, the family Proposition 2.6 estimate, character-sum bounds, uniform top-excess bound, and size and place hypotheses imply the Riemann hypothesis.

  ```lean
  theorem rh_of (Fm : DFamP) (ε0 : ℝ) (hε0 : 0 < ε0) (h5 : FamilyPropTwoSix Fm ε0) (h6 : FamilyCharacterSumBounds Fm ε0)
      (h7 : FamilyTopBoundAbsolute Fm ε0) (hS : SizesFe Fm ε0) : RiemannHypothesis := …
  ```

### Formalism.SharpRestriction.RamificationFrobenius.TotientGaloisClasses.InertiaGaloisSymmetry.AnyFrame

12 import steps from Main · 421 lines · Checked against the code · [Open in the Lean viewer](https://riemannhypothesissolved.com/file/Formalism.SharpRestriction.RamificationFrobenius.TotientGaloisClasses.InertiaGaloisSymmetry.AnyFrame)

**Constructs finite abelian frames and cyclotomic hosts from homomorphisms on unit groups modulo m.**

The frame group is the image of the map pairing reduction modulo 2^(e+2) up to sign with a homomorphism ξ on units modulo m. Its projection onto the image of ξ has cyclic kernel. For the host, two Jacobi symbols give the signs in the Artin map, and the first sign governs the Galois action on a square root of −q. The Chinese remainder theorem gives Artin surjectivity and lifts witnesses for exactness at primes dividing m. AnyLevel specializes the construction to arbitrary subgroups of Dirichlet characters.

Key declarations:

- `Formalism.HC.ModData.frame`: Builds the frame from the joint image of the two unit-group maps, using a generator of the kernel of projection onto the image of ξ.

  ```lean
  def frame : Frame := Frame.ofGroup D.e D.hA D.hA_surj (Additive.ofMul D.gen) D.hA_ker
  ```
- `Formalism.HC.ModData.art_surj`: Proves that the Artin map from units modulo mqd onto the frame’s Galois group is surjective under the host hypotheses and coprimality of m and qd.

  ```lean
  theorem art_surj : Function.Surjective (D.art hH) := …
  ```
- `Formalism.HC.ModData.host`: Constructs the cyclotomic host from the frame for e ≥ 2 under the host and coprimality hypotheses, with Jacobi symbol (−d/ℓ) equal to 1 at every odd prime ℓ dividing m.

  ```lean
  def host : HostRaw D.frame := (D.charData hH hc he hs).toHostRaw
  ```
- `Formalism.HC.ModData.exists_sqq`: Produces a square root of −q in the host field on which each Galois automorphism acts by its first sign component.

  ```lean
  theorem exists_sqq : ∃ s : (D.host hH hc he hs).E, s ^ 2 = -((D.host hH hc he hs).q : (D.host hH hc he hs).E) ∧
      ∀ σ : (D.host hH hc he hs).E ≃ₐ[ℚ] (D.host hH hc he hs).E,
        σ s = (((((D.host hH hc he hs).gal σ).1.1 : ℤˣ) : ℤ) : (D.host hH hc he hs).E) * s := …
  ```
- `Formalism.HC.ModData.exact`: If every prime ℓ dividing m admits a unit congruent to 1 modulo m/ℓ with nonidentity joint image, produces for each ℓ a unit congruent to 1 modulo mqd/ℓ with nonidentity Artin image.

  ```lean
  theorem exact (h : ∀ l : ℕ, l.Prime → l ∣ D.m → ∃ v : (ZMod D.m)ˣ, (v : ZMod D.m).val ≡ 1 [MOD D.m / l] ∧ D.eta v ≠ 1) :
      (D.host hH hc he hs).Exact := …
  ```

### Formalism.SharpRestriction.RamificationFrobenius.TotientGaloisClasses.InertiaGaloisSymmetry.OfCharLevel

12 import steps from Main · 376 lines · Checked against the code · [Open in the Lean viewer](https://riemannhypothesissolved.com/file/Formalism.SharpRestriction.RamificationFrobenius.TotientGaloisClasses.InertiaGaloisSymmetry.OfCharLevel)

**Constructs cyclotomic hosts for subgroups of even Dirichlet characters and identifies their primitive Artin pullbacks.**

For an even character subgroup Ξ modulo M, the construction chooses the least divisor QS of lcm(2^(e+2), M) that is divisible by 2^(e+2) and through which the annihilator quotient map factors. For e ≥ 1, exactness at each prime ℓ dividing QS follows from minimality when QS/ℓ retains divisibility by 2^(e+2) and from an explicit unit at ℓ = 2 when that divisibility fails. Characters of Ξ descend through the quotient, and comparison on common units identifies their primitive characters with the Artin pullbacks from the frame character set Chat. AnyLevel reuses QS and the quotient map for arbitrary character subgroups.

Key declarations:

- `Formalism.HC.EvenGrp.QS`: Selects the least modulus divisible by 2^(e+2) among the divisors of lcm(2^(e+2), M) through which the map to the quotient by the annihilator of Ξ factors.

  ```lean
  def QS : ℕ := Nat.find (exists_good Ξ e)
  ```
- `Formalism.HC.EvenGrp.exact_data`: For e ≥ 1 and each prime ℓ dividing QS, produces a unit congruent to 1 modulo QS/ℓ with nonidentity image in the frame group.

  ```lean
  theorem exact_data (he : 1 ≤ e) (l : ℕ) (hl : l.Prime) (hd : l ∣ QS Ξ e) :
      ∃ v : (ZMod (QS Ξ e))ˣ, (v : ZMod (QS Ξ e)).val ≡ 1 [MOD QS Ξ e / l] ∧ (data Ξ e hev).eta v ≠ 1 := …
  ```
- `Formalism.HC.EvenGrp.host`: Constructs the cyclotomic host for e ≥ 2 under the hypotheses on q and d, coprimality of M and qd, and the Jacobi-symbol condition at odd primes dividing M.

  ```lean
  def host : HostRaw (frame Ξ e hev) :=
    (data Ξ e hev).host hH (coprime_QS Ξ e hH hc) he fun l hl h2 h => hs l hl h2 (dvd_of_dvd_QS Ξ e hl h2 h)
  ```
- `Formalism.HC.EvenGrp.prim_theta`: Identifies the primitive character associated to a member of Ξ with the primitive Dirichlet character obtained by pulling its frame lift back along the Artin map.

  ```lean
  theorem prim_theta (χ : DirichletCharacter ℂ M) (hχ : χ ∈ Ξ) :
      PChar.of χ = (host Ξ e hev hH hc he hs).prim (theta Ξ e hev χ hχ) := …
  ```
- `Formalism.HC.EvenGrp.keptEqChat`: Shows that the primitive characters inducing members of Ξ are exactly those obtained by Artin pullback and passage to the primitive character from the frame character set Chat.

  ```lean
  theorem keptEqChat : (host Ξ e hev hH hc he hs).KeptEqChat (Level.ofSub Ξ).KEPT := …
  ```

### Development.AutomorphicArithmetic.ConductorsKronecker.CostPropositionBasicBound

13 import steps from Main · 187 lines · Checked against the code · [Open in the Lean viewer](https://riemannhypothesissolved.com/file/Development.AutomorphicArithmetic.ConductorsKronecker.CostPropositionBasicBound)

**Bounds a centered weighted von Mangoldt sum by combining a character average with explicit error estimates.**

The basic inequality rewrites the averaged top excess using the character-balance identity. It estimates the change from replacing the weights by a Lipschitz bound and uses the thick-set average formula to isolate the four-character contribution and bound the thin remainder. The small-cost hypotheses absorb the displacement cost and reduce the remaining additive error to Err + 2|TT|mb/x. Size-window inequalities then give Gz(x) ≤ x^(1/2 + (C+3)ε), which the importer RamificationTwoAndConjugationAtQAndD uses to establish its scale bound.

Key declarations:

- `UpperTheory.GL.cost_proposition_basic_bound`: Under the host facts and growth hypotheses, bounds the density-weighted main term after subtracting 3x^(1/2+ε) and the displacement cost by Err plus the thin-set and Lipschitz errors.

  ```lean
  theorem cost_proposition_basic_bound {H : Type} [AddCommGroup H] [Fintype H] [DecidableEq H] (D : ArithData H) (S : Finset ℕ)
      (hD : HostFactsS D S) (ell : AddChar (E0 × H) ℂ → ℂ) (N m : ℕ) (TT T2 : Finset H) (a : H → ℝ)
      (w : H → Fin m → E0 × H → ℝ) (x ε b b' η X' θ Cd CL Err : ℝ)
      (hH : GrowthInequalityHypotheses D ell N TT T2 a w x ε b b' η X' θ Cd CL Err) :
      (TT.card : ℝ) * m * b * (delta2 T2 / 2) * (Gz x - 3 * x ^ ((1 : ℝ) / 2 + ε) - moveCost x Cd CL)
        ≤ Err + (TT.card : ℝ) * m * (2 * fPl H * (x + 1) * b * θ)
          + (TT.card : ℝ) * m * (6 * fPl H * (x + 1) * (η + 1)) := …
  ```
- `UpperTheory.GL.card_mul_delta_le_err`: Under the additional small-cost hypotheses, bounds |TT|mb(δ₂/2)(Gz(x) − 4x^(1/2+ε)) by Err + 2|TT|mb/x, where δ₂ is the density of T2 in H.

  ```lean
  theorem card_mul_delta_le_err {H : Type} [AddCommGroup H] [Fintype H] [DecidableEq H] (D : ArithData H) (S : Finset ℕ)
      (hD : HostFactsS D S) (ell : AddChar (E0 × H) ℂ → ℂ) (N m : ℕ) (TT T2 : Finset H) (a : H → ℝ)
      (w : H → Fin m → E0 × H → ℝ) (x ε b b' η X' θ Cd CL Err : ℝ)
      (hH : GrowthInequalityHypotheses D ell N TT T2 a w x ε b b' η X' θ Cd CL Err) (hS : SmallCosts x ε (fPl H) b η θ Cd CL) :
      (TT.card : ℝ) * m * b * (delta2 T2 / 2) * (Gz x - 4 * x ^ ((1 : ℝ) / 2 + ε))
        ≤ Err + 2 * (TT.card : ℝ) * m * b / x := …
  ```
- `UpperTheory.GL.cost_proposition_at_scale`: Under the host facts, growth, small-cost, and size-window hypotheses, gives the pointwise upper bound Gz(x) ≤ x^(1/2 + (C+3)ε).

  ```lean
  theorem cost_proposition_at_scale {H : Type} [AddCommGroup H] [Fintype H] [DecidableEq H] (D : ArithData H) (S : Finset ℕ)
      (hD : HostFactsS D S) (ell : AddChar (E0 × H) ℂ → ℂ) (N m : ℕ) (TT T2 : Finset H) (a : H → ℝ)
      (w : H → Fin m → E0 × H → ℝ) (C x ε b b' η X' θ Cd CL Err k aE : ℝ)
      (hH : GrowthInequalityHypotheses D ell N TT T2 a w x ε b b' η X' θ Cd CL Err) (hS : SmallCosts x ε (fPl H) b η θ Cd CL)
      (hW : SizeWindows C ε x (Fintype.card H) TT.card T2.card m b k aE Err) :
      Gz x ≤ x ^ ((1 : ℝ) / 2 + (C + 3) * ε) := …
  ```

### Development.AutomorphicArithmetic.ThickFrames.NotGoodLe

13 import steps from Main · 138 lines · Checked against the code · [Open in the Lean viewer](https://riemannhypothesissolved.com/file/Development.AutomorphicArithmetic.ThickFrames.NotGoodLe)

**Bounds the probability that a Bernoulli subset with one forced index fails the interval and tile conditions for a good orbit.**

With independent inclusion probabilities in [3δ/4, δ], 0 ≤ δ ≤ 1, one index forced into the sample, u ≥ 1 and (M₀ + 1)((6r + 1)u) ≤ n, the theorem bounds failure by two occupancy bounds and a marked-tile bound. The window lemma turns a bound b for a single window into nb for n cyclic windows, accounting for the possible count increase of one on insertion. The proof takes a union bound using the subset estimate C(L₂,K)δ^K for short windows and the binomial upper tail at N₁ − 1 for intervals. The theorem topsGroup uses this estimate to control weighted orbit failures in its subset selection.

Key declarations:

- `UpperTheory.BernoulliSumsFrobeniusOrbits.not_good_le`: Under the tile-length hypothesis, bounds the failure probability by n times the sum of the short-window binomial estimate, the marked-tile failure bound, and the interval binomial tail.

  ```lean
  theorem UpperTheory.BernoulliSumsFrobeniusOrbits.not_good_le :
      ∀ (p : ℕ → ℝ) (δ : ℝ) (n L₂ K r u M₀ G' N₁ i₀ : ℕ), (∀ a, 3 / 4 * δ ≤ p a ∧ p a ≤ δ) → 0 ≤ δ → δ ≤ 1 → 1 ≤ u →
        (M₀ + 1) * ((6 * r + 1) * u) ≤ n →
        exP p ((range n).erase i₀) (fun U => ind (¬ GoodOrbitIntervalTileCondition n (insert i₀ U) L₂ K r u M₀ G' N₁)) ≤
          n * (L₂.choose K : ℝ) * δ ^ K + n * (1 - markedLow δ r u) ^ M₀ + n * binUpper G' δ (N₁ - 1) := …
  ```
- `ngl_windows_le`: If a Bernoulli sample on any set of at most L positions has probability at most b of reaching K′, then after forcing one index the probability that any of n length-L cyclic windows exceeds K ≥ K′ is at most nb.

  ```lean
  private theorem ngl_windows_le (p : ℕ → ℝ) (hp : ∀ a, 0 ≤ p a ∧ p a ≤ 1) (n i₀ L K K' : ℕ)
      (hK : K' ≤ K) (b : ℝ)
      (hb : ∀ A : Finset ℕ, A.card ≤ L → exP p A (fun T => ind (K' ≤ T.card)) ≤ b) :
      exP p ((Finset.range n).erase i₀)
        (fun U => ind (¬ ∀ i < n, (insert i₀ U ∩ window n i L).card ≤ K)) ≤ n * b := …
  ```

### Development.AutomorphicArithmetic.ThickFrames.SharesOfCounts

13 import steps from Main · 112 lines · Checked against the code · [Open in the Lean viewer](https://riemannhypothesissolved.com/file/Development.AutomorphicArithmetic.ThickFrames.SharesOfCounts)

**Converts absolute coset count bounds into relative proportion bounds and a cardinality estimate.**

Let A₀ have order n and index m in a finite abelian group A. If the counts of T in A₀ and in each other coset are within D of δn and 3δn/4, respectively, with δ > 0, D ≥ 0, 4mD ≤ ηδn, and η ≤ 1, then δ|A|/2 ≤ |T| ≤ 2δ|A|. Dividing the count estimate by |T| > 0 shows that the corresponding coset proportions differ from 4/(3m+1) and 3/(3m+1) by at most η. Summing over all γ ∈ A counts every member of T exactly n times and bounds the error in |T| from (3m+1)δn/4 by mD. The theorem topsGroup uses this estimate to convert Bernoulli sampling discrepancies into coset proportion bounds.

Key declarations:

- `UpperTheory.BernoulliSumsFrobeniusOrbits.shares_of_counts`: Derives a factor-two cardinality bound and coset proportion bounds when every count error is at most D, with D ≥ 0, δ > 0, η ≤ 1, and 4mD ≤ ηδn.

  ```lean
  theorem UpperTheory.BernoulliSumsFrobeniusOrbits.shares_of_counts :
      ∀ (A : Type) [Fintype A] [DecidableEq A] [AddCommGroup A] (A0 : AddSubgroup A) (T : Finset A) (δ η D : ℝ),
        0 < δ → η ≤ 1 → 0 ≤ D → 4 * A0.index * D ≤ η * (δ * Nat.card A0) →
        (∀ γ : A, |((T.filter fun t => t - γ ∈ A0).card : ℝ) - (if γ ∈ A0 then δ else 3 / 4 * δ) * Nat.card A0| ≤ D) →
        δ * Fintype.card A / 2 ≤ (T.card : ℝ) ∧ (T.card : ℝ) ≤ 2 * δ * Fintype.card A ∧
          ∀ γ : A, |((T.filter fun t => t - γ ∈ A0).card : ℝ) -
            (if γ ∈ A0 then 4 else 3) / (3 * (A0.index : ℝ) + 1) * (T.card : ℝ)| ≤ η * (T.card : ℝ) := …
  ```

### Development.AutomorphicArithmetic.ThickFrames.orbitSum

13 import steps from Main · 159 lines · Checked against the code · [Open in the Lean viewer](https://riemannhypothesissolved.com/file/Development.AutomorphicArithmetic.ThickFrames.orbitSum)

**Factors a Bernoulli-weighted orbit sum into a point’s inclusion weight and a sum with that point forced in.**

For the orbit b + ⟨h⟩ in a finite abelian group, the theorem indexes its points from 0 to ord(h)−1 and identifies the index i₀ of a specified point t. For real weights p, the product-weight sum for selecting t and satisfying an orbit property equals p(t) times the corresponding sum over other orbit indices with i₀ inserted. If all p-values lie in [0,1], the sums are probabilities under independent sampling. The proof sums out weights off the orbit, reindexes by the additive order, and factors out the weight at i₀. The theorem topsGroup uses the identity to estimate the joint event that a point is selected and its orbit fails the test.

Key declarations:

- `UpperTheory.BernoulliSumsFrobeniusOrbits.orbit_sum`: Expresses the joint Bernoulli weight of selecting t and satisfying an orbit property as p(t) times the weight of the property with t forced in.

  ```lean
  theorem UpperTheory.BernoulliSumsFrobeniusOrbits.orbit_sum :
      ∀ (α : Type) [Fintype α] [DecidableEq α] [AddCommGroup α] (p : α → ℝ) (b h t : α), (∃ i : ℕ, b + i • h = t) →
        ∀ A : Finset ℕ → Prop, ∃ i₀ < addOrderOf h, b + i₀ • h = t ∧
          ∑ T : Finset α, pw p T * ind (t ∈ T ∧ A ((univ.filter (fun i : Fin (addOrderOf h) => b + (i : ℕ) • h ∈ T)).map Fin.valEmbedding)) =
            p t * exP (fun i => p (b + i • h)) ((range (addOrderOf h)).erase i₀) (fun U => ind (A (insert i₀ U))) := …
  ```
- `UpperTheory.BernoulliSumsFrobeniusOrbits.fibre_sum`: Sums the product weights of all subsets with a prescribed restriction along an injection to obtain the product weight on that restriction.

  ```lean
  private lemma fibre_sum {α β : Type} [Fintype α] [Fintype β] [DecidableEq α] [DecidableEq β]
      (p : α → ℝ) (f : β → α) (hf : Function.Injective f) (S : Finset β) :
      ∑ T : Finset α, (if univ.filter (fun i => f i ∈ T) = S then pw p T else 0) =
        pw (fun i => p (f i)) S := …
  ```
- `UpperTheory.BernoulliSumsFrobeniusOrbits.marginal`: Identifies the expectation of any function of a restricted subset with its expectation under the pulled-back product weights.

  ```lean
  private lemma marginal {α β : Type} [Fintype α] [Fintype β] [DecidableEq α] [DecidableEq β]
      (p : α → ℝ) (f : β → α) (hf : Function.Injective f) (F : Finset β → ℝ) :
      ∑ T : Finset α, pw p T * F (univ.filter (fun i => f i ∈ T)) =
        ∑ S : Finset β, pw (fun i => p (f i)) S * F S := …
  ```
- `UpperTheory.BernoulliSumsFrobeniusOrbits.fin_sum_eq`: Reindexes the expectation over length-n finite indices as an expectation over the integers from 0 to n−1.

  ```lean
  private lemma fin_sum_eq (n : ℕ) (q : ℕ → ℝ) (F : Finset ℕ → ℝ) :
      (∑ S : Finset (Fin n), pw (fun i : Fin n => q i) S * F (S.map Fin.valEmbedding)) =
        exP q (range n) F := …
  ```
- `UpperTheory.BernoulliSumsFrobeniusOrbits.bernoulliExpectation_mem_and`: Factors the weight of a joint membership and subset event by extracting the specified index’s inclusion weight and inserting that index into the remaining sample.

  ```lean
  private lemma bernoulliExpectation_mem_and (q : ℕ → ℝ) {S : Finset ℕ} {i₀ : ℕ} (hm : i₀ ∈ S) (A : Finset ℕ → Prop) :
      exP q S (fun T => ind (i₀ ∈ T ∧ A T)) =
        q i₀ * exP q (S.erase i₀) (fun U => ind (A (insert i₀ U))) := …
  ```

### Development.AutomorphicArithmetic.ThickFrames.orbitTerms

13 import steps from Main · 261 lines · Checked against the code · [Open in the Lean viewer](https://riemannhypothesissolved.com/file/Development.AutomorphicArithmetic.ThickFrames.orbitTerms)

**Proves that the prescribed tiles fit in the orbit and that the three failure terms sum to at most C_b x^(−2).**

For fixed ε > 0 and bounded L₂, the estimates hold uniformly for sufficiently large x and orbit lengths x^(ε/4) ≤ n ≤ Cₒx^(2+8ε). The tile count grows logarithmically and the tile length is O(x^(ε/8)), so the prescribed tiles fit within n positions. The proof bounds the short-window term by a power of δ = x^(−ε/8), the marked-tile term by exponential decay, and the long-window binomial tail by a geometric series. The theorem topsGroup uses the tile-fit condition and the resulting inverse-square bound to control failures in its subset selection.

Key declarations:

- `UpperTheory.BernoulliSumsFrobeniusOrbits.orbit_terms`: For fixed ε > 0, Cₒ and L_b, gives C_b > 0 and a uniform large-x threshold ensuring the tiles fit and the three orbit-failure terms sum to at most C_b x^(−2) whenever x^(ε/4) ≤ n ≤ Cₒx^(2+8ε) and L₂ ≤ L_b.

  ```lean
  set_option maxHeartbeats 400000 in
  theorem UpperTheory.BernoulliSumsFrobeniusOrbits.orbit_terms :
      ∀ eps Co Lb : ℝ, 0 < eps → ∃ Cb x₀ : ℝ, 0 < Cb ∧ ∀ x ≥ x₀, ∀ n L₂ : ℕ, x ^ (eps / 4) ≤ (n : ℝ) → (n : ℝ) ≤ Co * x ^ hE eps →
        (L₂ : ℝ) ≤ Lb →
        (Formalism.MainNotions.G.orbitSmallMultiplicity (rE eps) (hE eps) x + 1) * ((6 * rE eps + 1) * Formalism.MainNotions.G.goodU (dE eps x)) ≤ n ∧
        (n : ℝ) * (L₂.choose (KE eps) : ℝ) * dE eps x ^ KE eps +
          n * (1 - markedLow (dE eps x) (rE eps) (Formalism.MainNotions.G.goodU (dE eps x))) ^ Formalism.MainNotions.G.orbitSmallMultiplicity (rE eps) (hE eps) x +
          n * binUpper (Formalism.MainNotions.G.goodG' (rE eps) (dE eps x) (hE eps) x) (dE eps x)
            (Formalism.MainNotions.G.orbitWindowCount (rE eps) (dE eps x) (hE eps) x - 1) ≤ Cb * x ^ (-2 : ℝ) := …
  ```
- `ot_binUpper_le`: For G independent Bernoulli trials with success probability 0 ≤ δ ≤ 1, bounds the probability of at least N successes by exp(−N) when N ≥ 6eGδ.

  ```lean
  private theorem ot_binUpper_le (G N : ℕ) (δ : ℝ) (h0 : 0 ≤ δ) (h1 : δ ≤ 1)
      (hN : 6 * Real.exp 1 * (G : ℝ) * δ ≤ N) :
      Formalism.G0.binUpper G δ N ≤ Real.exp (-(N : ℝ)) := …
  ```
- `ot_exists_log_le_rpow`: For positive C and a, proves that C(log x + 1) ≤ x^a for all sufficiently large x.

  ```lean
  private theorem ot_exists_log_le_rpow (C a : ℝ) (hC : 0 < C) (ha : 0 < a) :
      ∃ x₀ : ℝ, ∀ x : ℝ, x₀ ≤ x → C * (Real.log x + 1) ≤ x ^ a := …
  ```

### Development.AutomorphicArithmetic.ThickFrames.select

13 import steps from Main · 174 lines · Checked against the code · [Open in the Lean viewer](https://riemannhypothesissolved.com/file/Development.AutomorphicArithmetic.ThickFrames.select)

**Proves a Bernoulli selection theorem that controls class counts and weighted failures in the same subset.**

On a finite set of size N partitioned into classes, sample points independently with probabilities at most δ. For a finite family of tests with nonnegative weights, assume each point’s joint probability of selection and failure is at most βδ, allowing the test to depend on the sampled subset. For D > 0 with D ≥ √(2δN), some subset has every class count within D of its mean and a weighted count of failures among selected points at most 4βδN times the total test weight. The proof averages squared discrepancies and weighted failures using the Bernoulli second-moment identity. The theorem topsGroup applies the result to subgroup cosets and orbit tests.

Key declarations:

- `UpperTheory.BernoulliSumsFrobeniusOrbits.select`: Selects one subset satisfying simultaneous class discrepancy and weighted failure bounds from pointwise bounds on joint selection and failure probabilities.

  ```lean
  theorem UpperTheory.BernoulliSumsFrobeniusOrbits.select :
      ∀ (α κ ι : Type) [Fintype α] [DecidableEq α] [Fintype κ] [DecidableEq κ] (cl : α → κ) (p : α → ℝ) (δ β D : ℝ)
          (I : Finset ι) (ω : ι → ℝ) (BAD : ι → α → Finset α → Prop),
        (∀ a, 0 ≤ p a ∧ p a ≤ δ) → 0 ≤ δ → δ ≤ 1 → 0 ≤ β → (∀ i, 0 ≤ ω i) → 0 < D → 2 * δ * Fintype.card α ≤ D ^ 2 →
        (∀ i ∈ I, ∀ t, ∑ T : Finset α, pw p T * ind (t ∈ T ∧ BAD i t T) ≤ β * δ) →
        ∃ T : Finset α, (∀ c : κ, |((T.filter fun a => cl a = c).card : ℝ) - ∑ a ∈ univ.filter (fun a => cl a = c), p a| ≤ D) ∧
          ∑ i ∈ I, ω i * (({t | t ∈ T ∧ BAD i t T}.ncard : ℕ) : ℝ) ≤ 4 * β * δ * Fintype.card α * ∑ i ∈ I, ω i := …
  ```
- `sel_moment`: Expresses the second moment of a constant plus a sum of independent Bernoulli variables with coefficients g(a) as the squared mean plus ∑ₐ g(a)² p(a)(1−p(a)).

  ```lean
  private theorem sel_moment {α : Type} [DecidableEq α] (p g : α → ℝ) (S : Finset α) (c : ℝ) :
      ∑ T ∈ S.powerset, ((∏ a ∈ T, p a) * ∏ a ∈ S \ T, (1 - p a)) * (c + ∑ a ∈ T, g a) ^ 2 =
        (c + ∑ a ∈ S, g a * p a) ^ 2 + ∑ a ∈ S, g a ^ 2 * (p a * (1 - p a)) := …
  ```
- `sel_exists`: For a finite probability distribution, finds a positive-weight outcome whose score is at most the mean score.

  ```lean
  private theorem sel_exists {γ : Type} [Fintype γ] (w F : γ → ℝ) (hw : ∀ T, 0 ≤ w T)
      (h1 : ∑ T, w T = 1) : ∃ T, 0 < w T ∧ F T ≤ ∑ U, w U * F U := …
  ```
- `sel_ncard`: Expresses the number of elements satisfying a predicate as the sum of its indicators.

  ```lean
  private theorem sel_ncard {α : Type} [Fintype α] (P : α → Prop) :
      (({t | P t}.ncard : ℕ) : ℝ) = ∑ t, ind (P t) := …
  ```

### Development.AutomorphicArithmetic.ThickFrames.MarkedLowBounds

14 import steps from Main · 95 lines · Checked against the code · [Open in the Lean viewer](https://riemannhypothesissolved.com/file/Development.AutomorphicArithmetic.ThickFrames.MarkedLowBounds)

**Bounds the marked-tile expression between 10^(−(6r+1)) and 1 at the reciprocal-density scale.**

For 0 < δ ≤ 1/100 and u = ⌈1/δ⌉, the theorem bounds markedLow(δ,r,u) uniformly in δ for each r. The proof uses log(1−δ) ≥ −δ/(1−δ) to bound (1−δ)^u below by 3/10, then uses the rounding bounds on ⌊u/2⌋ to bound the second factor below by 1/10. Both factors are at most 1. The theorem orbit_terms uses the lower bound to turn the repeated marked-tile failure term into exponential decay.

Key declarations:

- `UpperTheory.BernoulliSumsFrobeniusOrbits.markedLow_bounds`: For every nonnegative integer r and 0 < δ ≤ 1/100, proves 10^(−(6r+1)) ≤ markedLow(δ,r,⌈1/δ⌉) ≤ 1.

  ```lean
  theorem UpperTheory.BernoulliSumsFrobeniusOrbits.markedLow_bounds :
      ∀ (δ : ℝ) (r : ℕ), 0 < δ → δ ≤ 1 / 100 →
        (1 / 10 : ℝ) ^ (6 * r + 1) ≤ markedLow δ r (Formalism.MainNotions.G.goodU δ) ∧ markedLow δ r (Formalism.MainNotions.G.goodU δ) ≤ 1 := …
  ```

### Development.AutomorphicArithmetic.ThickFrames.TailLe

14 import steps from Main · 41 lines · Checked against the code · [Open in the Lean viewer](https://riemannhypothesissolved.com/file/Development.AutomorphicArithmetic.ThickFrames.TailLe)

**Bounds the upper tail of a sum of independent Bernoulli variables with possibly unequal success probabilities.**

If at most G independent Bernoulli trials each have success probability at most δ, the probability of at least K successes is bounded both by the binomial coefficient C(G,K) times δ^K and by the upper tail of Binomial(G,δ). The proof compares expectations of functions increasing under inclusion by replacing each success probability with δ, using induction on the trial set. The theorem not_good_le uses the two bounds for its two window occupancy conditions.

Key declarations:

- `UpperTheory.BernoulliSumsFrobeniusOrbits.tail_le`: Gives both the binomial-coefficient bound and the binomial upper-tail bound for the number of successes among at most G trials with rates bounded by δ.

  ```lean
  theorem UpperTheory.BernoulliSumsFrobeniusOrbits.tail_le :
      ∀ (p : ℕ → ℝ) (δ : ℝ) (A : Finset ℕ) (G K : ℕ), (∀ a ∈ A, 0 ≤ p a ∧ p a ≤ δ) → 0 ≤ δ → δ ≤ 1 → A.card ≤ G →
        exP p A (fun T => ind (K ≤ T.card)) ≤ (G.choose K : ℝ) * δ ^ K ∧ exP p A (fun T => ind (K ≤ T.card)) ≤ binUpper G δ K := …
  ```
- `UpperTheory.BernoulliSumsFrobeniusOrbits.bernoulliExpectation_le_of_monotone`: Bounds the expectation of any inclusion-monotone function of a Bernoulli subset by its expectation under the common inclusion probability δ.

  ```lean
  private theorem UpperTheory.BernoulliSumsFrobeniusOrbits.bernoulliExpectation_le_of_monotone (p : ℕ → ℝ) (δ : ℝ) (h0 : 0 ≤ δ) (h1 : δ ≤ 1) (A : Finset ℕ) :
      ∀ f : Finset ℕ → ℝ, Monotone f → (∀ a ∈ A, 0 ≤ p a ∧ p a ≤ δ) →
        exP p A f ≤ GlobalTheory.RandomTops.ex δ A f := …
  ```

### Development.AutomorphicArithmetic.ThickFrames.TilesLe

14 import steps from Main · 105 lines · Checked against the code · [Open in the Lean viewer](https://riemannhypothesissolved.com/file/Development.AutomorphicArithmetic.ThickFrames.TilesLe)

**Bounds the probability that some cyclic block has no marked tile when one index is forced into the sample.**

With independent inclusion probabilities in [3δ/4, δ], the theorem bounds the probability that some cyclic block of M₀+1 consecutive tiles has no marked tile by n(1−markedLow(δ,r,u))^M₀. The tiles have length (6r+1)u, with u ≥ 1 and (M₀+1)(6r+1)u ≤ n. Omitting the tile that can contain the forced index leaves at least M₀ disjoint tiles per block. The proof multiplies their failure probabilities by independence and takes a union bound over starting tiles. The theorem not_good_le uses this as the tile contribution to the orbit-failure bound.

Key declarations:

- `UpperTheory.BernoulliSumsFrobeniusOrbits.tiles_le`: Bounds the probability that the marked-tile condition fails after inserting a specified index into a Bernoulli sample.

  ```lean
  theorem UpperTheory.BernoulliSumsFrobeniusOrbits.tiles_le :
      ∀ (p : ℕ → ℝ) (δ : ℝ) (n r u M₀ i₀ : ℕ), (∀ a, 3 / 4 * δ ≤ p a ∧ p a ≤ δ) → 0 ≤ δ → δ ≤ 1 → 1 ≤ u →
        (M₀ + 1) * ((6 * r + 1) * u) ≤ n →
        exP p ((range n).erase i₀) (fun U => ind (¬ CondTiles n (insert i₀ U) r u M₀)) ≤ n * (1 - markedLow δ r u) ^ M₀ := …
  ```
- `bernoulliExpectation_one_sub`: Shows that the Bernoulli expectation of 1−f is 1 minus the expectation of f.

  ```lean
  private theorem bernoulliExpectation_one_sub (p : ℕ → ℝ) (S : Finset ℕ) (f : Finset ℕ → ℝ) :
      exP p S (fun T => 1 - f T) = 1 - exP p S f := …
  ```

### Development.AutomorphicArithmetic.ThickFrames.MarkedGe

15 import steps from Main · 185 lines · Checked against the code · [Open in the Lean viewer](https://riemannhypothesissolved.com/file/Development.AutomorphicArithmetic.ThickFrames.MarkedGe)

**Lower-bounds the probability that independent Bernoulli sampling marks a tile with an alternating occupancy pattern.**

With inclusion probabilities in [3δ/4, δ], a tile of 6r+1 consecutive cells of length u is marked with probability at least markedLow(δ,r,u). The pattern alternates 3r+1 empty cells with 3r cells containing exactly one selected point, at an even integer. The proof bounds the empty-cell and singleton probabilities separately, counting at least ⌊u/2⌋ even integers in each cell, then multiplies the bounds by independence. The theorem tiles_le uses this estimate to bound the probability that some cyclic block of M₀ + 1 tiles has no marked tile after inserting i₀.

Key declarations:

- `UpperTheory.BernoulliSumsFrobeniusOrbits.marked_ge`: Bounds the probability of the alternating marked-tile pattern below by the product markedLow(δ,r,u).

  ```lean
  theorem UpperTheory.BernoulliSumsFrobeniusOrbits.marked_ge :
      ∀ (p : ℕ → ℝ) (δ : ℝ) (r u s : ℕ), (∀ a, 3 / 4 * δ ≤ p a ∧ p a ≤ δ) → 0 ≤ δ → δ ≤ 1 →
        markedLow δ r u ≤ exP p (Finset.Ico (s * ((6 * r + 1) * u)) ((s + 1) * ((6 * r + 1) * u))) (fun T => ind (Marked T r u s)) := …
  ```
- `one_sub_pow_le_bernoulliExpectation_empty`: Bounds the probability of selecting no element of C below by (1−δ)^|C| when every inclusion probability is at most δ.

  ```lean
  private theorem one_sub_pow_le_bernoulliExpectation_empty {p : ℕ → ℝ} {δ : ℝ} (hp : ∀ a, p a ≤ δ) (h1 : δ ≤ 1) (C : Finset ℕ) :
      (1 - δ) ^ C.card ≤ exP p C (fun V => ind (V = ∅)) := …
  ```
- `le_bernoulliExpectation_singleton_even`: For independent inclusion probabilities in [3δ/4, δ] with 0 ≤ δ ≤ 1, bounds the probability of selecting exactly one point at an even integer in a length-u interval below by ⌊u/2⌋(3δ/4)(1−δ)^(u−1).

  ```lean
  private theorem le_bernoulliExpectation_singleton_even {p : ℕ → ℝ} {δ : ℝ} (hp : ∀ a, 3 / 4 * δ ≤ p a ∧ p a ≤ δ)
      (h0 : 0 ≤ δ) (h1 : δ ≤ 1) (a u : ℕ) :
      ((u / 2 : ℕ) : ℝ) * (3 / 4 * δ) * (1 - δ) ^ (u - 1) ≤
        exP p (Finset.Ico a (a + u)) (fun V => ind (∃ x, V = {x} ∧ Even x)) := …
  ```


---

An alternative route to GRH for Dirichlet… · Alpöge Lean readings. Web page: https://riemannhypothesissolved.com/cluster/k0695-an-alternative-route-to-grh-for-dirichlet-l-functions-from/lean/ · updated 2026-11-30 · site map for machines: https://riemannhypothesissolved.com/llms.txt
