# A proved depth-zero local Langlands map for GL(n) over p-adic fields: 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 k2401 (https://riemannhypothesissolved.com/cluster/k2401-a-proved-depth-zero-local-langlands-map-for-gl-n-over-p/) · 117 Lean files, by distance from Main.lean · part 2 of 2, files 57–117 of 117 · data: https://riemannhypothesissolved.com/api/file-lines/k2401.json

- Part 1: https://riemannhypothesissolved.com/cluster/k2401-a-proved-depth-zero-local-langlands-map-for-gl-n-over-p/lean/index.md
- Part 2: https://riemannhypothesissolved.com/cluster/k2401-a-proved-depth-zero-local-langlands-map-for-gl-n-over-p/lean/part-2/index.md

## Contents

- 5 import steps from Main:
  - [Development.AutomorphicArithmetic.Foundations.LocalLanglands.LocalCentralUnits.RecTExists](https://riemannhypothesissolved.com/cluster/k2401-a-proved-depth-zero-local-langlands-map-for-gl-n-over-p/lean/#Development.AutomorphicArithmetic.Foundations.LocalLanglands.LocalCentralUnits.RecTExists)
  - [Development.WeilBound.CoreStatements.StandardPublishedResults.StandardTheoremStatements.GreenRegularCharacters](https://riemannhypothesissolved.com/cluster/k2401-a-proved-depth-zero-local-langlands-map-for-gl-n-over-p/lean/#Development.WeilBound.CoreStatements.StandardPublishedResults.StandardTheoremStatements.GreenRegularCharacters)
  - [Development.WeilBound.RepresentationTheoryGL.GaloisPermutationReps.SubquotientEquivalence.DepthZeroIntermediateHolds](https://riemannhypothesissolved.com/cluster/k2401-a-proved-depth-zero-local-langlands-map-for-gl-n-over-p/lean/#Development.WeilBound.RepresentationTheoryGL.GaloisPermutationReps.SubquotientEquivalence.DepthZeroIntermediateHolds)
- 6 import steps from Main:
  - [Development.AutomorphicArithmetic.Foundations.LocalLanglands.LocalCentralUnits.ArtEx](https://riemannhypothesissolved.com/cluster/k2401-a-proved-depth-zero-local-langlands-map-for-gl-n-over-p/lean/#Development.AutomorphicArithmetic.Foundations.LocalLanglands.LocalCentralUnits.ArtEx)
  - [Development.AutomorphicArithmetic.Foundations.LocalLanglands.LocalCentralUnits.CuspEx](https://riemannhypothesissolved.com/cluster/k2401-a-proved-depth-zero-local-langlands-map-for-gl-n-over-p/lean/#Development.AutomorphicArithmetic.Foundations.LocalLanglands.LocalCentralUnits.CuspEx)
  - [Development.AutomorphicArithmetic.Foundations.LocalLanglands.LocalCentralUnits.ExtDepth](https://riemannhypothesissolved.com/cluster/k2401-a-proved-depth-zero-local-langlands-map-for-gl-n-over-p/lean/#Development.AutomorphicArithmetic.Foundations.LocalLanglands.LocalCentralUnits.ExtDepth)
  - [Development.AutomorphicArithmetic.Foundations.LocalLanglands.LocalCentralUnits.ExtDual](https://riemannhypothesissolved.com/cluster/k2401-a-proved-depth-zero-local-langlands-map-for-gl-n-over-p/lean/#Development.AutomorphicArithmetic.Foundations.LocalLanglands.LocalCentralUnits.ExtDual)
  - [Development.AutomorphicArithmetic.Foundations.LocalLanglands.LocalCentralUnits.ExtInj](https://riemannhypothesissolved.com/cluster/k2401-a-proved-depth-zero-local-langlands-map-for-gl-n-over-p/lean/#Development.AutomorphicArithmetic.Foundations.LocalLanglands.LocalCentralUnits.ExtInj)
  - [Development.AutomorphicArithmetic.Foundations.LocalLanglands.LocalCentralUnits.RcTwOfSegments](https://riemannhypothesissolved.com/cluster/k2401-a-proved-depth-zero-local-langlands-map-for-gl-n-over-p/lean/#Development.AutomorphicArithmetic.Foundations.LocalLanglands.LocalCentralUnits.RcTwOfSegments)
  - [Development.AutomorphicArithmetic.Foundations.LocalLanglands.LocalCentralUnits.TypeIff](https://riemannhypothesissolved.com/cluster/k2401-a-proved-depth-zero-local-langlands-map-for-gl-n-over-p/lean/#Development.AutomorphicArithmetic.Foundations.LocalLanglands.LocalCentralUnits.TypeIff)
  - [Development.AutomorphicArithmetic.Foundations.LocalLanglands.RecTTransport](https://riemannhypothesissolved.com/cluster/k2401-a-proved-depth-zero-local-langlands-map-for-gl-n-over-p/lean/#Development.AutomorphicArithmetic.Foundations.LocalLanglands.RecTTransport)
  - [Development.DiscreteGroups.GlobalIrreducibility.DzLCusp](https://riemannhypothesissolved.com/cluster/k2401-a-proved-depth-zero-local-langlands-map-for-gl-n-over-p/lean/#Development.DiscreteGroups.GlobalIrreducibility.DzLCusp)
  - [Development.WeilBound.RepresentationTheoryGL.GaloisPermutationReps.SubquotientEquivalence.ConjTorusSubApply](https://riemannhypothesissolved.com/cluster/k2401-a-proved-depth-zero-local-langlands-map-for-gl-n-over-p/lean/#Development.WeilBound.RepresentationTheoryGL.GaloisPermutationReps.SubquotientEquivalence.ConjTorusSubApply)
  - [Development.WeilBound.RepresentationTheoryGL.GaloisPermutationReps.SubquotientEquivalence.EquivariantPartsOfFiniteType](https://riemannhypothesissolved.com/cluster/k2401-a-proved-depth-zero-local-langlands-map-for-gl-n-over-p/lean/#Development.WeilBound.RepresentationTheoryGL.GaloisPermutationReps.SubquotientEquivalence.EquivariantPartsOfFiniteType)
  - [Development.WeilBound.RepresentationTheoryGL.GaloisPermutationReps.SubquotientEquivalence.ExistsLiftUnipotentRadical](https://riemannhypothesissolved.com/cluster/k2401-a-proved-depth-zero-local-langlands-map-for-gl-n-over-p/lean/#Development.WeilBound.RepresentationTheoryGL.GaloisPermutationReps.SubquotientEquivalence.ExistsLiftUnipotentRadical)
  - [Development.WeilBound.RepresentationTheoryGL.GaloisPermutationReps.SubquotientEquivalence.ExistsMaximalStableAvoiding](https://riemannhypothesissolved.com/cluster/k2401-a-proved-depth-zero-local-langlands-map-for-gl-n-over-p/lean/#Development.WeilBound.RepresentationTheoryGL.GaloisPermutationReps.SubquotientEquivalence.ExistsMaximalStableAvoiding)
  - [Development.WeilBound.RepresentationTheoryGL.GaloisPermutationReps.SubquotientEquivalence.FiniteCuspidalOfIsCuspidal](https://riemannhypothesissolved.com/cluster/k2401-a-proved-depth-zero-local-langlands-map-for-gl-n-over-p/lean/#Development.WeilBound.RepresentationTheoryGL.GaloisPermutationReps.SubquotientEquivalence.FiniteCuspidalOfIsCuspidal)
  - [Development.WeilBound.RepresentationTheoryGL.GaloisPermutationReps.SubquotientEquivalence.HasCentralCharOfEquiv](https://riemannhypothesissolved.com/cluster/k2401-a-proved-depth-zero-local-langlands-map-for-gl-n-over-p/lean/#Development.WeilBound.RepresentationTheoryGL.GaloisPermutationReps.SubquotientEquivalence.HasCentralCharOfEquiv)
  - [Development.WeilBound.RepresentationTheoryGL.GaloisPermutationReps.SubquotientEquivalence.IsUnitRho](https://riemannhypothesissolved.com/cluster/k2401-a-proved-depth-zero-local-langlands-map-for-gl-n-over-p/lean/#Development.WeilBound.RepresentationTheoryGL.GaloisPermutationReps.SubquotientEquivalence.IsUnitRho)
  - [Development.WeilBound.RepresentationTheoryGL.GaloisPermutationReps.SubquotientEquivalence.LabFinite](https://riemannhypothesissolved.com/cluster/k2401-a-proved-depth-zero-local-langlands-map-for-gl-n-over-p/lean/#Development.WeilBound.RepresentationTheoryGL.GaloisPermutationReps.SubquotientEquivalence.LabFinite)
  - [Development.WeilBound.RepresentationTheoryGL.GaloisPermutationReps.SubquotientEquivalence.LeviInductionForms](https://riemannhypothesissolved.com/cluster/k2401-a-proved-depth-zero-local-langlands-map-for-gl-n-over-p/lean/#Development.WeilBound.RepresentationTheoryGL.GaloisPermutationReps.SubquotientEquivalence.LeviInductionForms)
  - [Development.WeilBound.RepresentationTheoryGL.GaloisPermutationReps.SubquotientEquivalence.MemOfTameGeneratorFrobenius](https://riemannhypothesissolved.com/cluster/k2401-a-proved-depth-zero-local-langlands-map-for-gl-n-over-p/lean/#Development.WeilBound.RepresentationTheoryGL.GaloisPermutationReps.SubquotientEquivalence.MemOfTameGeneratorFrobenius)
  - [Development.WeilBound.RepresentationTheoryGL.GaloisPermutationReps.SubquotientEquivalence.PairingFactorsThroughPeriods](https://riemannhypothesissolved.com/cluster/k2401-a-proved-depth-zero-local-langlands-map-for-gl-n-over-p/lean/#Development.WeilBound.RepresentationTheoryGL.GaloisPermutationReps.SubquotientEquivalence.PairingFactorsThroughPeriods)
- 7 import steps from Main:
  - [Development.AutomorphicArithmetic.Foundations.LocalLanglands.LocalCentralUnits.ExponentMulAbsPow](https://riemannhypothesissolved.com/cluster/k2401-a-proved-depth-zero-local-langlands-map-for-gl-n-over-p/lean/#Development.AutomorphicArithmetic.Foundations.LocalLanglands.LocalCentralUnits.ExponentMulAbsPow)
  - [Development.AutomorphicArithmetic.Foundations.LocalLanglands.LocalCentralUnits.GoodMap](https://riemannhypothesissolved.com/cluster/k2401-a-proved-depth-zero-local-langlands-map-for-gl-n-over-p/lean/#Development.AutomorphicArithmetic.Foundations.LocalLanglands.LocalCentralUnits.GoodMap)
  - [Development.AutomorphicArithmetic.Foundations.LocalLanglands.LocalCentralUnits.JunkEx](https://riemannhypothesissolved.com/cluster/k2401-a-proved-depth-zero-local-langlands-map-for-gl-n-over-p/lean/#Development.AutomorphicArithmetic.Foundations.LocalLanglands.LocalCentralUnits.JunkEx)
  - [Development.AutomorphicArithmetic.Foundations.LocalLanglands.LocalCentralUnits.NormEqProd](https://riemannhypothesissolved.com/cluster/k2401-a-proved-depth-zero-local-langlands-map-for-gl-n-over-p/lean/#Development.AutomorphicArithmetic.Foundations.LocalLanglands.LocalCentralUnits.NormEqProd)
  - [Development.AutomorphicArithmetic.Foundations.LocalLanglands.LocalCentralUnits.ParDual](https://riemannhypothesissolved.com/cluster/k2401-a-proved-depth-zero-local-langlands-map-for-gl-n-over-p/lean/#Development.AutomorphicArithmetic.Foundations.LocalLanglands.LocalCentralUnits.ParDual)
  - [Development.AutomorphicArithmetic.Foundations.LocalLanglands.LocalCentralUnits.ParOne](https://riemannhypothesissolved.com/cluster/k2401-a-proved-depth-zero-local-langlands-map-for-gl-n-over-p/lean/#Development.AutomorphicArithmetic.Foundations.LocalLanglands.LocalCentralUnits.ParOne)
  - [Development.AutomorphicArithmetic.Foundations.LocalLanglands.LocalCentralUnits.ParUniq](https://riemannhypothesissolved.com/cluster/k2401-a-proved-depth-zero-local-langlands-map-for-gl-n-over-p/lean/#Development.AutomorphicArithmetic.Foundations.LocalLanglands.LocalCentralUnits.ParUniq)
  - [Development.AutomorphicArithmetic.Foundations.LocalLanglands.LocalCentralUnits.TwTame](https://riemannhypothesissolved.com/cluster/k2401-a-proved-depth-zero-local-langlands-map-for-gl-n-over-p/lean/#Development.AutomorphicArithmetic.Foundations.LocalLanglands.LocalCentralUnits.TwTame)
  - [Development.AutomorphicArithmetic.Foundations.LocalLanglands.LocalCentralUnits.WDBasic](https://riemannhypothesissolved.com/cluster/k2401-a-proved-depth-zero-local-langlands-map-for-gl-n-over-p/lean/#Development.AutomorphicArithmetic.Foundations.LocalLanglands.LocalCentralUnits.WDBasic)
  - [Development.DiscreteGroups.GlobalIrreducibility.DzLDepth](https://riemannhypothesissolved.com/cluster/k2401-a-proved-depth-zero-local-langlands-map-for-gl-n-over-p/lean/#Development.DiscreteGroups.GlobalIrreducibility.DzLDepth)
  - [Development.DiscreteGroups.GlobalIrreducibility.DzLcPerm](https://riemannhypothesissolved.com/cluster/k2401-a-proved-depth-zero-local-langlands-map-for-gl-n-over-p/lean/#Development.DiscreteGroups.GlobalIrreducibility.DzLcPerm)
  - [Development.WeilBound.RepresentationTheoryGL.GaloisPermutationReps.SubquotientEquivalence.IsTypeMap](https://riemannhypothesissolved.com/cluster/k2401-a-proved-depth-zero-local-langlands-map-for-gl-n-over-p/lean/#Development.WeilBound.RepresentationTheoryGL.GaloisPermutationReps.SubquotientEquivalence.IsTypeMap)
- 8 import steps from Main:
  - [Development.AbelianVarietyTheory.Proofs.InertiaEigenvalues.EpsilonFactorsAtOneHalf](https://riemannhypothesissolved.com/cluster/k2401-a-proved-depth-zero-local-langlands-map-for-gl-n-over-p/lean/#Development.AbelianVarietyTheory.Proofs.InertiaEigenvalues.EpsilonFactorsAtOneHalf)
  - [Development.AutomorphicArithmetic.Foundations.LocalLanglands.LocalCentralUnits.CentralUnit](https://riemannhypothesissolved.com/cluster/k2401-a-proved-depth-zero-local-langlands-map-for-gl-n-over-p/lean/#Development.AutomorphicArithmetic.Foundations.LocalLanglands.LocalCentralUnits.CentralUnit)
  - [Development.AutomorphicArithmetic.Foundations.LocalLanglands.LocalCentralUnits.DetByType](https://riemannhypothesissolved.com/cluster/k2401-a-proved-depth-zero-local-langlands-map-for-gl-n-over-p/lean/#Development.AutomorphicArithmetic.Foundations.LocalLanglands.LocalCentralUnits.DetByType)
  - [Development.AutomorphicArithmetic.Foundations.LocalLanglands.LocalCentralUnits.ExtEx](https://riemannhypothesissolved.com/cluster/k2401-a-proved-depth-zero-local-langlands-map-for-gl-n-over-p/lean/#Development.AutomorphicArithmetic.Foundations.LocalLanglands.LocalCentralUnits.ExtEx)
  - [Development.AutomorphicArithmetic.Foundations.LocalLanglands.LocalCentralUnits.IsoUniq](https://riemannhypothesissolved.com/cluster/k2401-a-proved-depth-zero-local-langlands-map-for-gl-n-over-p/lean/#Development.AutomorphicArithmetic.Foundations.LocalLanglands.LocalCentralUnits.IsoUniq)
  - [Development.AutomorphicArithmetic.Foundations.LocalLanglands.LocalCentralUnits.NameLaws](https://riemannhypothesissolved.com/cluster/k2401-a-proved-depth-zero-local-langlands-map-for-gl-n-over-p/lean/#Development.AutomorphicArithmetic.Foundations.LocalLanglands.LocalCentralUnits.NameLaws)
  - [Development.AutomorphicArithmetic.Foundations.LocalLanglands.LocalCentralUnits.TameUniq](https://riemannhypothesissolved.com/cluster/k2401-a-proved-depth-zero-local-langlands-map-for-gl-n-over-p/lean/#Development.AutomorphicArithmetic.Foundations.LocalLanglands.LocalCentralUnits.TameUniq)
  - [Development.AutomorphicArithmetic.Foundations.LocalLanglands.LocalCentralUnits.TypeEx](https://riemannhypothesissolved.com/cluster/k2401-a-proved-depth-zero-local-langlands-map-for-gl-n-over-p/lean/#Development.AutomorphicArithmetic.Foundations.LocalLanglands.LocalCentralUnits.TypeEx)
  - [Development.AutomorphicArithmetic.WhittakerHecke.CardResidueFieldAdicCompletionIntegersEqAbsNorm](https://riemannhypothesissolved.com/cluster/k2401-a-proved-depth-zero-local-langlands-map-for-gl-n-over-p/lean/#Development.AutomorphicArithmetic.WhittakerHecke.CardResidueFieldAdicCompletionIntegersEqAbsNorm)
  - [Development.AutomorphicArithmetic.WhittakerHecke.ContinuousInertiaRestrictionOfCompat](https://riemannhypothesissolved.com/cluster/k2401-a-proved-depth-zero-local-langlands-map-for-gl-n-over-p/lean/#Development.AutomorphicArithmetic.WhittakerHecke.ContinuousInertiaRestrictionOfCompat)
  - [Development.AutomorphicArithmetic.WhittakerHecke.ExistsAdicCompletionRingEquivExtendingOfStable](https://riemannhypothesissolved.com/cluster/k2401-a-proved-depth-zero-local-langlands-map-for-gl-n-over-p/lean/#Development.AutomorphicArithmetic.WhittakerHecke.ExistsAdicCompletionRingEquivExtendingOfStable)
  - [Development.AutomorphicArithmetic.WhittakerHecke.ExistsNumberFieldExtensionPlaceFrobeniusDegree](https://riemannhypothesissolved.com/cluster/k2401-a-proved-depth-zero-local-langlands-map-for-gl-n-over-p/lean/#Development.AutomorphicArithmetic.WhittakerHecke.ExistsNumberFieldExtensionPlaceFrobeniusDegree)
  - [Development.AutomorphicArithmetic.WhittakerHecke.ExistsUnitResidueLogarithmOfRootsOfUnity](https://riemannhypothesissolved.com/cluster/k2401-a-proved-depth-zero-local-langlands-map-for-gl-n-over-p/lean/#Development.AutomorphicArithmetic.WhittakerHecke.ExistsUnitResidueLogarithmOfRootsOfUnity)
  - [Development.AutomorphicArithmetic.WhittakerHecke.TameInertiaCharacterFrobeniusConjEqPow](https://riemannhypothesissolved.com/cluster/k2401-a-proved-depth-zero-local-langlands-map-for-gl-n-over-p/lean/#Development.AutomorphicArithmetic.WhittakerHecke.TameInertiaCharacterFrobeniusConjEqPow)
  - [Development.DiscreteGroups.GlobalIrreducibility.DzIsoKO](https://riemannhypothesissolved.com/cluster/k2401-a-proved-depth-zero-local-langlands-map-for-gl-n-over-p/lean/#Development.DiscreteGroups.GlobalIrreducibility.DzIsoKO)
  - [Development.DiscreteGroups.GlobalIrreducibility.DzTwFin](https://riemannhypothesissolved.com/cluster/k2401-a-proved-depth-zero-local-langlands-map-for-gl-n-over-p/lean/#Development.DiscreteGroups.GlobalIrreducibility.DzTwFin)
  - [Development.DiscreteGroups.GlobalIrreducibility.LTw](https://riemannhypothesissolved.com/cluster/k2401-a-proved-depth-zero-local-langlands-map-for-gl-n-over-p/lean/#Development.DiscreteGroups.GlobalIrreducibility.LTw)
- 9 import steps from Main:
  - [Development.AbelianVarietyTheory.Proofs.InertiaEigenvalues.IsTateEpsTateEpsAndNeZero](https://riemannhypothesissolved.com/cluster/k2401-a-proved-depth-zero-local-langlands-map-for-gl-n-over-p/lean/#Development.AbelianVarietyTheory.Proofs.InertiaEigenvalues.IsTateEpsTateEpsAndNeZero)
  - [Development.AutomorphicArithmetic.Foundations.GaloisRepresentations.RegularSemisimpleFibres.PTypeChar](https://riemannhypothesissolved.com/cluster/k2401-a-proved-depth-zero-local-langlands-map-for-gl-n-over-p/lean/#Development.AutomorphicArithmetic.Foundations.GaloisRepresentations.RegularSemisimpleFibres.PTypeChar)
  - [Development.AutomorphicArithmetic.Foundations.LocalLanglands.LocalCentralUnits.IsSemisimpleInducedParam](https://riemannhypothesissolved.com/cluster/k2401-a-proved-depth-zero-local-langlands-map-for-gl-n-over-p/lean/#Development.AutomorphicArithmetic.Foundations.LocalLanglands.LocalCentralUnits.IsSemisimpleInducedParam)
  - [Development.AutomorphicArithmetic.Foundations.LocalLanglands.LocalCentralUnits.NameCentral](https://riemannhypothesissolved.com/cluster/k2401-a-proved-depth-zero-local-langlands-map-for-gl-n-over-p/lean/#Development.AutomorphicArithmetic.Foundations.LocalLanglands.LocalCentralUnits.NameCentral)
  - [Development.AutomorphicArithmetic.Foundations.LocalLanglands.LocalCentralUnits.PairCheckThreeTwo](https://riemannhypothesissolved.com/cluster/k2401-a-proved-depth-zero-local-langlands-map-for-gl-n-over-p/lean/part-2/#Development.AutomorphicArithmetic.Foundations.LocalLanglands.LocalCentralUnits.PairCheckThreeTwo)
  - [Development.AutomorphicArithmetic.Foundations.LocalLanglands.LocalCentralUnits.ResIndep](https://riemannhypothesissolved.com/cluster/k2401-a-proved-depth-zero-local-langlands-map-for-gl-n-over-p/lean/part-2/#Development.AutomorphicArithmetic.Foundations.LocalLanglands.LocalCentralUnits.ResIndep)
  - [Development.AutomorphicArithmetic.WhittakerHecke.ExistsAddCharInvariantIffFiniteFieldAutEqOne](https://riemannhypothesissolved.com/cluster/k2401-a-proved-depth-zero-local-langlands-map-for-gl-n-over-p/lean/part-2/#Development.AutomorphicArithmetic.WhittakerHecke.ExistsAddCharInvariantIffFiniteFieldAutEqOne)
  - [Development.DiscreteGroups.GlobalIrreducibility.DzIsoRes](https://riemannhypothesissolved.com/cluster/k2401-a-proved-depth-zero-local-langlands-map-for-gl-n-over-p/lean/part-2/#Development.DiscreteGroups.GlobalIrreducibility.DzIsoRes)
  - [Development.DiscreteGroups.GlobalIrreducibility.DzKSchur](https://riemannhypothesissolved.com/cluster/k2401-a-proved-depth-zero-local-langlands-map-for-gl-n-over-p/lean/part-2/#Development.DiscreteGroups.GlobalIrreducibility.DzKSchur)
  - [Development.DiscreteGroups.GlobalIrreducibility.DzMatchCut](https://riemannhypothesissolved.com/cluster/k2401-a-proved-depth-zero-local-langlands-map-for-gl-n-over-p/lean/part-2/#Development.DiscreteGroups.GlobalIrreducibility.DzMatchCut)
  - [Development.DiscreteGroups.GlobalIrreducibility.DzTwChar](https://riemannhypothesissolved.com/cluster/k2401-a-proved-depth-zero-local-langlands-map-for-gl-n-over-p/lean/part-2/#Development.DiscreteGroups.GlobalIrreducibility.DzTwChar)
- 10 import steps from Main:
  - [Development.AutomorphicArithmetic.Foundations.LocalLanglands.LocalCentralUnits.PinFld](https://riemannhypothesissolved.com/cluster/k2401-a-proved-depth-zero-local-langlands-map-for-gl-n-over-p/lean/part-2/#Development.AutomorphicArithmetic.Foundations.LocalLanglands.LocalCentralUnits.PinFld)
  - [Development.AutomorphicArithmetic.ThetaCorrespondence.ThetaPairLifts.ThirdPlaceSeries.GlobalArtinReciprocityTrivial](https://riemannhypothesissolved.com/cluster/k2401-a-proved-depth-zero-local-langlands-map-for-gl-n-over-p/lean/part-2/#Development.AutomorphicArithmetic.ThetaCorrespondence.ThetaPairLifts.ThirdPlaceSeries.GlobalArtinReciprocityTrivial)
- 11 import steps from Main:
  - [Development.AutomorphicArithmetic.Foundations.LocalLanglands.LocalCentralUnits.PinChar](https://riemannhypothesissolved.com/cluster/k2401-a-proved-depth-zero-local-langlands-map-for-gl-n-over-p/lean/part-2/#Development.AutomorphicArithmetic.Foundations.LocalLanglands.LocalCentralUnits.PinChar)
  - [Development.AutomorphicArithmetic.Foundations.LocalLanglands.LocalCentralUnits.PinNum](https://riemannhypothesissolved.com/cluster/k2401-a-proved-depth-zero-local-langlands-map-for-gl-n-over-p/lean/part-2/#Development.AutomorphicArithmetic.Foundations.LocalLanglands.LocalCentralUnits.PinNum)
  - [Development.AutomorphicArithmetic.ThetaCorrespondence.FockModels.DzSwap](https://riemannhypothesissolved.com/cluster/k2401-a-proved-depth-zero-local-langlands-map-for-gl-n-over-p/lean/part-2/#Development.AutomorphicArithmetic.ThetaCorrespondence.FockModels.DzSwap)
  - [Development.AutomorphicArithmetic.ThetaCorrespondence.ThetaPairLifts.ThirdPlaceSeries.MDzInertia](https://riemannhypothesissolved.com/cluster/k2401-a-proved-depth-zero-local-langlands-map-for-gl-n-over-p/lean/part-2/#Development.AutomorphicArithmetic.ThetaCorrespondence.ThetaPairLifts.ThirdPlaceSeries.MDzInertia)
- 12 import steps from Main:
  - [Development.AutomorphicArithmetic.IntegralCasts.CapelliIdentities.SumChar](https://riemannhypothesissolved.com/cluster/k2401-a-proved-depth-zero-local-langlands-map-for-gl-n-over-p/lean/part-2/#Development.AutomorphicArithmetic.IntegralCasts.CapelliIdentities.SumChar)
  - [Development.AutomorphicArithmetic.ThetaCorrespondence.FockModels.DzNarrow](https://riemannhypothesissolved.com/cluster/k2401-a-proved-depth-zero-local-langlands-map-for-gl-n-over-p/lean/part-2/#Development.AutomorphicArithmetic.ThetaCorrespondence.FockModels.DzNarrow)
  - [Development.AutomorphicArithmetic.ThetaCorrespondence.ThetaPairLifts.ThirdPlaceSeries.SglobDzMatchCut](https://riemannhypothesissolved.com/cluster/k2401-a-proved-depth-zero-local-langlands-map-for-gl-n-over-p/lean/part-2/#Development.AutomorphicArithmetic.ThetaCorrespondence.ThetaPairLifts.ThirdPlaceSeries.SglobDzMatchCut)
- 13 import steps from Main:
  - [Development.AutomorphicArithmetic.ThetaCorrespondence.FockModels.MultiIrr](https://riemannhypothesissolved.com/cluster/k2401-a-proved-depth-zero-local-langlands-map-for-gl-n-over-p/lean/part-2/#Development.AutomorphicArithmetic.ThetaCorrespondence.FockModels.MultiIrr)
  - [Development.DiscreteGroups.GlobalIrreducibility.NarrowBigHolds](https://riemannhypothesissolved.com/cluster/k2401-a-proved-depth-zero-local-langlands-map-for-gl-n-over-p/lean/part-2/#Development.DiscreteGroups.GlobalIrreducibility.NarrowBigHolds)
- 14 import steps from Main:
  - [Development.DiscreteGroups.GlobalIrreducibility.DzDigMain](https://riemannhypothesissolved.com/cluster/k2401-a-proved-depth-zero-local-langlands-map-for-gl-n-over-p/lean/part-2/#Development.DiscreteGroups.GlobalIrreducibility.DzDigMain)
  - [Development.DiscreteGroups.GlobalIrreducibility.DzFeIter](https://riemannhypothesissolved.com/cluster/k2401-a-proved-depth-zero-local-langlands-map-for-gl-n-over-p/lean/part-2/#Development.DiscreteGroups.GlobalIrreducibility.DzFeIter)
  - [Development.DiscreteGroups.GlobalIrreducibility.DzFeMain](https://riemannhypothesissolved.com/cluster/k2401-a-proved-depth-zero-local-langlands-map-for-gl-n-over-p/lean/part-2/#Development.DiscreteGroups.GlobalIrreducibility.DzFeMain)
  - [Development.DiscreteGroups.GlobalIrreducibility.DzFinPair](https://riemannhypothesissolved.com/cluster/k2401-a-proved-depth-zero-local-langlands-map-for-gl-n-over-p/lean/part-2/#Development.DiscreteGroups.GlobalIrreducibility.DzFinPair)
  - [Development.DiscreteGroups.GlobalIrreducibility.DzKondo](https://riemannhypothesissolved.com/cluster/k2401-a-proved-depth-zero-local-langlands-map-for-gl-n-over-p/lean/part-2/#Development.DiscreteGroups.GlobalIrreducibility.DzKondo)
  - [Development.DiscreteGroups.GlobalIrreducibility.DzPinFinal](https://riemannhypothesissolved.com/cluster/k2401-a-proved-depth-zero-local-langlands-map-for-gl-n-over-p/lean/part-2/#Development.DiscreteGroups.GlobalIrreducibility.DzPinFinal)
  - [Development.DiscreteGroups.GlobalIrreducibility.EqTraceSmulOfFinrankOne](https://riemannhypothesissolved.com/cluster/k2401-a-proved-depth-zero-local-langlands-map-for-gl-n-over-p/lean/part-2/#Development.DiscreteGroups.GlobalIrreducibility.EqTraceSmulOfFinrankOne)
  - [Development.DiscreteGroups.GlobalIrreducibility.ExistsEqMulShiftToCircle](https://riemannhypothesissolved.com/cluster/k2401-a-proved-depth-zero-local-langlands-map-for-gl-n-over-p/lean/part-2/#Development.DiscreteGroups.GlobalIrreducibility.ExistsEqMulShiftToCircle)
  - [Development.DiscreteGroups.GlobalIrreducibility.FixedNeBotOfEquiv](https://riemannhypothesissolved.com/cluster/k2401-a-proved-depth-zero-local-langlands-map-for-gl-n-over-p/lean/part-2/#Development.DiscreteGroups.GlobalIrreducibility.FixedNeBotOfEquiv)
- 15 import steps from Main:
  - [Development.DiscreteGroups.GlobalIrreducibility.DzDigCover](https://riemannhypothesissolved.com/cluster/k2401-a-proved-depth-zero-local-langlands-map-for-gl-n-over-p/lean/part-2/#Development.DiscreteGroups.GlobalIrreducibility.DzDigCover)
  - [Development.DiscreteGroups.GlobalIrreducibility.DzDigShift](https://riemannhypothesissolved.com/cluster/k2401-a-proved-depth-zero-local-langlands-map-for-gl-n-over-p/lean/part-2/#Development.DiscreteGroups.GlobalIrreducibility.DzDigShift)
  - [Development.DiscreteGroups.GlobalIrreducibility.DzDigTot](https://riemannhypothesissolved.com/cluster/k2401-a-proved-depth-zero-local-langlands-map-for-gl-n-over-p/lean/part-2/#Development.DiscreteGroups.GlobalIrreducibility.DzDigTot)
  - [Development.DiscreteGroups.GlobalIrreducibility.DzFeCard](https://riemannhypothesissolved.com/cluster/k2401-a-proved-depth-zero-local-langlands-map-for-gl-n-over-p/lean/part-2/#Development.DiscreteGroups.GlobalIrreducibility.DzFeCard)
  - [Development.DiscreteGroups.GlobalIrreducibility.DzFpSum](https://riemannhypothesissolved.com/cluster/k2401-a-proved-depth-zero-local-langlands-map-for-gl-n-over-p/lean/part-2/#Development.DiscreteGroups.GlobalIrreducibility.DzFpSum)
  - [Development.DiscreteGroups.GlobalIrreducibility.DzGenA](https://riemannhypothesissolved.com/cluster/k2401-a-proved-depth-zero-local-langlands-map-for-gl-n-over-p/lean/part-2/#Development.DiscreteGroups.GlobalIrreducibility.DzGenA)
  - [Development.DiscreteGroups.GlobalIrreducibility.DzKLink](https://riemannhypothesissolved.com/cluster/k2401-a-proved-depth-zero-local-langlands-map-for-gl-n-over-p/lean/part-2/#Development.DiscreteGroups.GlobalIrreducibility.DzKLink)
  - [Development.DiscreteGroups.GlobalIrreducibility.DzKName](https://riemannhypothesissolved.com/cluster/k2401-a-proved-depth-zero-local-langlands-map-for-gl-n-over-p/lean/part-2/#Development.DiscreteGroups.GlobalIrreducibility.DzKName)
  - [Development.DiscreteGroups.GlobalIrreducibility.DzPinB](https://riemannhypothesissolved.com/cluster/k2401-a-proved-depth-zero-local-langlands-map-for-gl-n-over-p/lean/part-2/#Development.DiscreteGroups.GlobalIrreducibility.DzPinB)
  - [Development.DiscreteGroups.GlobalIrreducibility.ExistsCellFunctional](https://riemannhypothesissolved.com/cluster/k2401-a-proved-depth-zero-local-langlands-map-for-gl-n-over-p/lean/part-2/#Development.DiscreteGroups.GlobalIrreducibility.ExistsCellFunctional)
  - [Development.DiscreteGroups.GlobalIrreducibility.OrbitOfAgree](https://riemannhypothesissolved.com/cluster/k2401-a-proved-depth-zero-local-langlands-map-for-gl-n-over-p/lean/part-2/#Development.DiscreteGroups.GlobalIrreducibility.OrbitOfAgree)
  - [Development.DiscreteGroups.GlobalIrreducibility.RhoInvMulSelf](https://riemannhypothesissolved.com/cluster/k2401-a-proved-depth-zero-local-langlands-map-for-gl-n-over-p/lean/part-2/#Development.DiscreteGroups.GlobalIrreducibility.RhoInvMulSelf)
  - [Development.DiscreteGroups.GlobalIrreducibility.RowFixConj](https://riemannhypothesissolved.com/cluster/k2401-a-proved-depth-zero-local-langlands-map-for-gl-n-over-p/lean/part-2/#Development.DiscreteGroups.GlobalIrreducibility.RowFixConj)
- 16 import steps from Main:
  - [Development.DiscreteGroups.GlobalIrreducibility.DzFpSupp](https://riemannhypothesissolved.com/cluster/k2401-a-proved-depth-zero-local-langlands-map-for-gl-n-over-p/lean/part-2/#Development.DiscreteGroups.GlobalIrreducibility.DzFpSupp)
  - [Development.DiscreteGroups.GlobalIrreducibility.DzFpVec](https://riemannhypothesissolved.com/cluster/k2401-a-proved-depth-zero-local-langlands-map-for-gl-n-over-p/lean/part-2/#Development.DiscreteGroups.GlobalIrreducibility.DzFpVec)
  - [Development.DiscreteGroups.GlobalIrreducibility.DzGenFun](https://riemannhypothesissolved.com/cluster/k2401-a-proved-depth-zero-local-langlands-map-for-gl-n-over-p/lean/part-2/#Development.DiscreteGroups.GlobalIrreducibility.DzGenFun)
  - [Development.DiscreteGroups.GlobalIrreducibility.DzPinA](https://riemannhypothesissolved.com/cluster/k2401-a-proved-depth-zero-local-langlands-map-for-gl-n-over-p/lean/part-2/#Development.DiscreteGroups.GlobalIrreducibility.DzPinA)
  - [Development.DiscreteGroups.GlobalIrreducibility.DzStickTeich](https://riemannhypothesissolved.com/cluster/k2401-a-proved-depth-zero-local-langlands-map-for-gl-n-over-p/lean/part-2/#Development.DiscreteGroups.GlobalIrreducibility.DzStickTeich)
  - [Development.DiscreteGroups.GlobalIrreducibility.ExistsElliptic](https://riemannhypothesissolved.com/cluster/k2401-a-proved-depth-zero-local-langlands-map-for-gl-n-over-p/lean/part-2/#Development.DiscreteGroups.GlobalIrreducibility.ExistsElliptic)
  - [Development.DiscreteGroups.GlobalIrreducibility.IsRowFixConj](https://riemannhypothesissolved.com/cluster/k2401-a-proved-depth-zero-local-langlands-map-for-gl-n-over-p/lean/part-2/#Development.DiscreteGroups.GlobalIrreducibility.IsRowFixConj)
  - [Development.DiscreteGroups.GlobalIrreducibility.LongEltCornerEqCyc](https://riemannhypothesissolved.com/cluster/k2401-a-proved-depth-zero-local-langlands-map-for-gl-n-over-p/lean/part-2/#Development.DiscreteGroups.GlobalIrreducibility.LongEltCornerEqCyc)
  - [Development.DiscreteGroups.GlobalIrreducibility.MassEqZeroOfNotPrimary](https://riemannhypothesissolved.com/cluster/k2401-a-proved-depth-zero-local-langlands-map-for-gl-n-over-p/lean/part-2/#Development.DiscreteGroups.GlobalIrreducibility.MassEqZeroOfNotPrimary)
- 17 import steps from Main:
  - [Development.DiscreteGroups.GlobalIrreducibility.CellVecFixed](https://riemannhypothesissolved.com/cluster/k2401-a-proved-depth-zero-local-langlands-map-for-gl-n-over-p/lean/part-2/#Development.DiscreteGroups.GlobalIrreducibility.CellVecFixed)
  - [Development.DiscreteGroups.GlobalIrreducibility.DzFeCyc](https://riemannhypothesissolved.com/cluster/k2401-a-proved-depth-zero-local-langlands-map-for-gl-n-over-p/lean/part-2/#Development.DiscreteGroups.GlobalIrreducibility.DzFeCyc)
  - [Development.DiscreteGroups.GlobalIrreducibility.DzGenLin](https://riemannhypothesissolved.com/cluster/k2401-a-proved-depth-zero-local-langlands-map-for-gl-n-over-p/lean/part-2/#Development.DiscreteGroups.GlobalIrreducibility.DzGenLin)
  - [Development.DiscreteGroups.GlobalIrreducibility.DzKFour](https://riemannhypothesissolved.com/cluster/k2401-a-proved-depth-zero-local-langlands-map-for-gl-n-over-p/lean/part-2/#Development.DiscreteGroups.GlobalIrreducibility.DzKFour)
  - [Development.DiscreteGroups.GlobalIrreducibility.DzKOrb](https://riemannhypothesissolved.com/cluster/k2401-a-proved-depth-zero-local-langlands-map-for-gl-n-over-p/lean/part-2/#Development.DiscreteGroups.GlobalIrreducibility.DzKOrb)
  - [Development.DiscreteGroups.GlobalIrreducibility.DzStickValMain](https://riemannhypothesissolved.com/cluster/k2401-a-proved-depth-zero-local-langlands-map-for-gl-n-over-p/lean/part-2/#Development.DiscreteGroups.GlobalIrreducibility.DzStickValMain)
- 18 import steps from Main:
  - [Development.DiscreteGroups.GlobalIrreducibility.DzStickValSub](https://riemannhypothesissolved.com/cluster/k2401-a-proved-depth-zero-local-langlands-map-for-gl-n-over-p/lean/part-2/#Development.DiscreteGroups.GlobalIrreducibility.DzStickValSub)
  - [Development.DiscreteGroups.GlobalIrreducibility.InCellMulRightIff](https://riemannhypothesissolved.com/cluster/k2401-a-proved-depth-zero-local-langlands-map-for-gl-n-over-p/lean/part-2/#Development.DiscreteGroups.GlobalIrreducibility.InCellMulRightIff)
- 19 import steps from Main:
  - [Development.DiscreteGroups.GlobalIrreducibility.DzGenVec](https://riemannhypothesissolved.com/cluster/k2401-a-proved-depth-zero-local-langlands-map-for-gl-n-over-p/lean/part-2/#Development.DiscreteGroups.GlobalIrreducibility.DzGenVec)
  - [Development.DiscreteGroups.GlobalIrreducibility.DzStickValOne](https://riemannhypothesissolved.com/cluster/k2401-a-proved-depth-zero-local-langlands-map-for-gl-n-over-p/lean/part-2/#Development.DiscreteGroups.GlobalIrreducibility.DzStickValOne)
- 20 import steps from Main:
  - [Development.DiscreteGroups.GlobalIrreducibility.DzStickValBasic](https://riemannhypothesissolved.com/cluster/k2401-a-proved-depth-zero-local-langlands-map-for-gl-n-over-p/lean/part-2/#Development.DiscreteGroups.GlobalIrreducibility.DzStickValBasic)
  - [Development.DiscreteGroups.GlobalIrreducibility.ValuationUnitriLt](https://riemannhypothesissolved.com/cluster/k2401-a-proved-depth-zero-local-langlands-map-for-gl-n-over-p/lean/part-2/#Development.DiscreteGroups.GlobalIrreducibility.ValuationUnitriLt)

## The files

### Development.AutomorphicArithmetic.Foundations.LocalLanglands.LocalCentralUnits.PairCheckThreeTwo

9 import steps from Main · 181 lines · Checked against the code · [Open in the Lean viewer](https://riemannhypothesissolved.com/file/Development.AutomorphicArithmetic.Foundations.LocalLanglands.LocalCentralUnits.PairCheckThreeTwo)

**Proves that Frobenius orbit sums on field generators are nonzero somewhere and determine regular characters up to Frobenius conjugacy.**

Over a prime field, the Frobenius orbit sum of each regular multiplicative character is nonzero at some element that generates the extension, and its values on all such elements determine the character up to Frobenius conjugacy. The proof bounds the support of character-sum differences and reduces uniqueness in the four exceptional (prime, degree) pairs (2,2), (3,2), (2,4), and (2,6) to exhaustive congruence checks. NameLaws uses uniqueness to identify cuspidal parameters up to Frobenius, and NameCentral uses nonvanishing to compute the scalar action of the center.

Key declarations:

- `UpperTheory.Zero.LLC.pin`: For a finite extension of a prime field, a regular character has a nonzero Frobenius orbit sum at some field generator and is determined up to Frobenius by those sums on field generators.

  ```lean
  theorem UpperTheory.Zero.LLC.pin :
      UpperTheory.Zero.LLC.Pin := …
  ```
- `UpperTheory.Zero.LLC.CharacterSumPairs.Pair`: If the first n iterates of both t and t′ under multiplication by g are distinct and closed under translation by e modulo N, then t′ is congruent to t g^j for some j < n.

  ```lean
  private def Pair (g n N e t t' : ℕ) : Prop :=
    (Reg g n N t ∧ Cl g n N e t) → (Reg g n N t' ∧ Cl g n N e t') → ∃ j < n, t' % N = (t * g ^ j) % N
  ```
- `UpperTheory.Zero.LLC.CharacterSumPairs.exc`: If the translation exponent is divisible by the multiplicative group order of every maximal proper subfield and Pair holds for every pair of residues modulo g^n − 1, regular characters with equal sums on all field generators are Frobenius conjugate.

  ```lean
  private theorem exc (hn : 0 < n) (hr : Module.finrank (ZMod g) K = n) (e : ℕ)
      (he : ∀ p ∈ n.primeFactors, (g ^ (n / p) - 1) ∣ e)
      (hcheck : ∀ t < g ^ n - 1, ∀ t' < g ^ n - 1, Pair g n (g ^ n - 1) e t t')
      (θ θ' : Kˣ →* ℂˣ)
      (hθ : ∀ i j, i < n → j < n → θ ^ g ^ i = θ ^ g ^ j → i = j)
      (hθ' : ∀ i j, i < n → j < n → θ' ^ g ^ i = θ' ^ g ^ j → i = j)
      (hs : ∀ z : Kˣ, (minpoly (ZMod g) (z : K)).natDegree = n →
        ∑ j ∈ range n, ((θ (z ^ g ^ j) : ℂˣ) : ℂ) = ∑ j ∈ range n, ((θ' (z ^ g ^ j) : ℂˣ) : ℂ)) :
      ∃ j < n, θ' = θ ^ g ^ j := …
  ```
- `UpperTheory.Zero.LLC.CharacterSumPairs.pairCheck_three_two`: Any two length-two orbits under multiplication by 3 modulo 8 that are stable under translation by 2 coincide.

  ```lean
  private theorem pairCheck_three_two : ∀ t < 3 ^ 2 - 1, ∀ t' < 3 ^ 2 - 1, Pair 3 2 (3 ^ 2 - 1) 2 t t' := …
  ```

### Development.AutomorphicArithmetic.Foundations.LocalLanglands.LocalCentralUnits.ResIndep

9 import steps from Main · 141 lines · Checked against the code · [Open in the Lean viewer](https://riemannhypothesissolved.com/file/Development.AutomorphicArithmetic.Foundations.LocalLanglands.LocalCentralUnits.ResIndep)

**Shows that Artin inertia reductions over ℚₚ agree up to residue-field isomorphism for unramified data of equal positive residue degree.**

Fix a place with completion continuously isomorphic to ℚₚ and an ambient valuation above it. A residue-field isomorphism intertwines any two maps satisfying the Artin inertia reduction conditions for auxiliary data with uniformizer p at each auxiliary place and residue field size q = p^n, n > 0. The proof embeds both fields in the ambient residue field as the roots of X^q − X and identifies both embedded reductions of t with the residue of t(π)/π for a common root π of π^(q−1) = p. CentralUnit uses the isomorphism to transport regular cuspidal parameters and compare the resulting Weil–Deligne inertia formulas.

Key declarations:

- `UpperTheory.Zero.LLC.resIndep`: At a fixed place with completion continuously isomorphic to ℚₚ and a fixed ambient valuation, a residue-field isomorphism intertwines any two valid Artin inertia reductions for unramified auxiliary data of the same positive residue degree.

  ```lean
  theorem resIndep : ResIndep := …
  ```
- `UpperTheory.Zero.LLC.core`: The residue-field isomorphism intertwines the inertia maps if integral approximations to the two Artin values for the same automorphism differ by an element of the ambient maximal ideal.

  ```lean
  private theorem core {g n : ℕ} [Fact g.Prime] (hn : 0 < n) (D D' : Ext h g n)
      (R : Ine (F := E) A →* D.Kˣ) (R' : Ine (F := E) A →* D'.Kˣ) (hR : D.Res R) (hR' : D'.Res R')
      (hm : ∀ (t : Ine (F := D.E') A) (t' : Ine (F := D'.E') A), (∀ z : Ω, (t : G D.E' Ω) z = (t' : G D'.E' Ω) z) →
        ∀ (x : 𝓞 D.E') (y : 𝓞 D'.E'),
        Valued.v ((D.a' (ineIncl D.h' t) : D.w'.adicCompletion D.E') - algebraMap D.E' (D.w'.adicCompletion D.E') (x : D.E')) < 1 →
        Valued.v ((D'.a' (ineIncl D'.h' t') : D'.w'.adicCompletion D'.E') - algebraMap D'.E' (D'.w'.adicCompletion D'.E') (y : D'.E')) < 1 →
        A.valuation (algebraMap D.E' Ω (x : D.E') - algebraMap D'.E' Ω (y : D'.E')) < 1) :
      ∃ e : D.K ≃+* D'.K, ∀ t, ((R' t : D'.Kˣ) : D'.K) = e (R t : D.Kˣ) := …
  ```
- `UpperTheory.Zero.LLC.res_read`: Each inertia element lifts to auxiliary inertia, and its reduction is the residue of an algebraic integer approximating the lifted Artin value modulo the maximal ideal.

  ```lean
  private theorem res_read {g n : ℕ} [Fact g.Prime] (hn : 0 < n) (D : Ext h g n) (R : Ine (F := E) A →* D.Kˣ) (hR : D.Res R)
      (t : Ine (F := E) A) : ∃ (t' : Ine (F := D.E') A) (x : 𝓞 D.E'),
        (∀ z : Ω, (t : G E Ω) z = (t' : G D.E' Ω) z) ∧
        Valued.v ((D.a' (ineIncl D.h' t') : D.w'.adicCompletion D.E') - algebraMap D.E' (D.w'.adicCompletion D.E') (x : D.E')) < 1 ∧
        ((R t : D.Kˣ) : D.K) = D.red x := …
  ```
- `UpperTheory.Zero.LLC.range_sub`: The image of an embedded field of q elements is the root set of X^q − X.

  ```lean
  private theorem range_sub {κ K : Type} [Field κ] [Field K] (ι : K →+* κ) (q : ℕ) (hq : 1 < q) (hc : Nat.card K = q) :
      (ι.range : Set κ) = ((X ^ q - X : κ[X]).roots.toFinset : Set κ) := …
  ```
- `UpperTheory.Zero.LLC.exists_equiv`: Two finite fields of the same cardinality embedded in a common field admit an isomorphism compatible with both embeddings.

  ```lean
  private theorem exists_equiv {κ K K' : Type} [Field κ] [Field K] [Field K'] (ι : K →+* κ) (ι' : K' →+* κ) (q : ℕ) (hq : 1 < q)
      (hc : Nat.card K = q) (hc' : Nat.card K' = q) : ∃ e : K ≃+* K', ∀ y, ι' (e y) = ι y := …
  ```

### Development.AutomorphicArithmetic.WhittakerHecke.ExistsAddCharInvariantIffFiniteFieldAutEqOne

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

**Constructs a complex additive character of a finite field with trivial stabilizer under the powers of a prescribed automorphism.**

The character is x ↦ exp(2πi Tr(bx)/p), where p is the characteristic, b generates the multiplicative group, and the trace is to the prime field. Trace invariance and nondegeneracy of the trace pairing force any power of the automorphism that preserves the character to fix b, hence to act identically on the field. The direct importer pulls the character's orbit back along an inertia quotient to obtain distinct inertia characters indexed modulo the automorphism's order.

Key declarations:

- `UpperTheory.exists_addChar_invariant_iff_finiteField_aut_eq_one`: For every finite field K and automorphism f of K, there is a complex additive character of K invariant under fᵐ exactly when fᵐ is the identity, for every integer m.

  ```lean
  theorem UpperTheory.exists_addChar_invariant_iff_finiteField_aut_eq_one :
      ∀ (K : Type) [Field K] [Finite K] (f : RingAut K), ∃ ψ : Multiplicative K →* ℂˣ, ∀ m : ℤ,
          (∀ x : K, ψ (Multiplicative.ofAdd ((f ^ m) x)) = ψ (Multiplicative.ofAdd x)) ↔ f ^ m = 1 := …
  ```

### Development.DiscreteGroups.GlobalIrreducibility.DzIsoRes

9 import steps from Main · 74 lines · Checked against the code · [Open in the Lean viewer](https://riemannhypothesissolved.com/file/Development.DiscreteGroups.GlobalIrreducibility.DzIsoRes)

**Constructs reduction to 𝔽ₚ at a number-field completion isomorphic to ℚₚ and proves that p is a uniformizer.**

Given a continuous field isomorphism from ℚₚ to the completion, its inverse sends the valuation ring into ℤₚ. Composing with reduction modulo p gives a surjection onto 𝔽ₚ whose kernel is the maximal ideal, so the residue field has p elements. Comparison with the p-adic norm shows that the inverse image of any element of uniformizer valuation is divisible by p in ℤₚ, yielding the uniformizer valuation for p itself.

Key declarations:

- `DiscreteGroups.sglob.DzIso.toInt`: Restricts the inverse field isomorphism to a ring homomorphism from the valuation ring to ℤₚ.

  ```lean
  def toInt : 𝒪[w.adicCompletion E] →+* ℤ_[g] where
    toFun := toIntFun i hi
    map_one' := PadicInt.ext (by rw [coe_toIntFun, PadicInt.coe_one]; simp)
    map_mul' a b := PadicInt.ext (by rw [PadicInt.coe_mul, coe_toIntFun, coe_toIntFun, coe_toIntFun]; simp)
    map_zero' := PadicInt.ext (by rw [coe_toIntFun, PadicInt.coe_zero]; simp)
    map_add' a b := PadicInt.ext (by rw [PadicInt.coe_add, coe_toIntFun, coe_toIntFun, coe_toIntFun]; simp)
  ```
- `DiscreteGroups.sglob.DzIso.redO_surjective`: Every element of 𝔽ₚ is the reduction of an element of the valuation ring.

  ```lean
  theorem redO_surjective : Function.Surjective (redO i hi) := …
  ```
- `DiscreteGroups.sglob.DzIso.ker_redO`: The kernel of the reduction map is the maximal ideal of the valuation ring.

  ```lean
  theorem ker_redO : RingHom.ker (redO i hi) = IsLocalRing.maximalIdeal 𝒪[w.adicCompletion E] := …
  ```
- `DiscreteGroups.sglob.DzIso.resCard_eq`: The residue field of the completion has cardinality p.

  ```lean
  theorem resCard_eq : resCard (w.adicCompletion E) = g := …
  ```
- `DiscreteGroups.sglob.DzIso.valuation_natCast_eq_uniformizer`: The prime p viewed in the completion has the valuation of a uniformizer.

  ```lean
  theorem valuation_natCast_eq_uniformizer : valuation (w.adicCompletion E) (g : w.adicCompletion E) = uniformizer (w.adicCompletion E) := …
  ```

### Development.DiscreteGroups.GlobalIrreducibility.DzKSchur

9 import steps from Main · 53 lines · Checked against the code · [Open in the Lean viewer](https://riemannhypothesissolved.com/file/Development.DiscreteGroups.GlobalIrreducibility.DzKSchur)

**Applies Schur’s lemma to class-function sums on irreducible complex representations of finite groups.**

A finite-dimensional complex representation whose character agrees with an irreducible character is irreducible by the character norm criterion. For an irreducible representation ρ and a class function f, the operator ∑ᵧ f(y)ρ(y⁻¹) commutes with the group action by reindexing under conjugation, so Schur’s lemma makes it scalar. Taking the trace gives the scalar as the inverse-element character sum divided by the dimension.

Key declarations:

- `DiscreteGroups.sglob.DzType.Kon.simple_of_isIrr`: A finite-dimensional complex representation of a finite group is irreducible if it has the same character as an irreducible representation.

  ```lean
  theorem simple_of_isIrr (τ : FDRep ℂ G) (h : GlobalTheory.GLq.IsIrr τ.character) : Simple τ := …
  ```
- `DiscreteGroups.sglob.DzType.Kon.central_scalar`: The operator ∑ᵧ f(y)ρ(y⁻¹) for a class function f acts on an irreducible representation by a scalar c satisfying c dim ρ = ∑ᵧ f(y)χρ(y⁻¹).

  ```lean
  theorem central_scalar (τ : FDRep ℂ G) [Simple τ] (f : G → ℂ) (hf : ∀ x y : G, f (y * x * y⁻¹) = f x) :
      ∃ c : ℂ, (∀ v : τ, ∑ y, f y • τ.ρ y⁻¹ v = c • v) ∧
        c * (Module.finrank ℂ τ : ℂ) = ∑ y, f y * τ.character y⁻¹ := …
  ```

### Development.DiscreteGroups.GlobalIrreducibility.DzMatchCut

9 import steps from Main · 332 lines · Checked against the code · [Open in the Lean viewer](https://riemannhypothesissolved.com/file/Development.DiscreteGroups.GlobalIrreducibility.DzMatchCut)

**Derives the inertia polynomial of a depth-zero cuspidal parameter from finite-field character data under explicit hypotheses.**

In rank one or for p > 16n², the comparison gives an inertia polynomial with roots θ(z^(p^j)) for 0 ≤ j < n, where θ is the regular multiplicative character parametrizing the finite cuspidal type and z is the residue of the local Artin image on auxiliary inertia. In higher rank, comparison of twisted automorphic and Galois epsilon factors yields Gauss-sum identities that identify the regular parameters up to Frobenius. A cyclic shift then gives the polynomial identity. The norm pullback defined here supplies the parameter multiplier for finite determinant twists.

Key declarations:

- `DiscreteGroups.sglob.DzType.aut_eps`: Under the reduction and finite pairing hypotheses, a normalized automorphic epsilon factor for ranks m + 1 and m equals the mth power of the finite class-function scalar.

  ```lean
  theorem aut_eps (HFP : FinPair) (HR : Red) {E : Type} [Field E] [NumberField E] {w : HeightOneSpectrum (𝓞 E)} {g : ℕ}
      [Fact g.Prime] (i : ℚ_[g] ≃+* w.adicCompletion E) (hi : Continuous i) (ψ₀ : AddChar (ZMod g) Circle) (h₀ : ψ₀ ≠ 1)
      (ψ : AddChar (w.adicCompletion E) Circle) (hc : Continuous ψ) (hl : Lifts1 i ψ₀ ψ) (m : ℕ)
      (τ : FDRep ℂ (Gn g (m + 1))) (hτ : IsCusp τ.character) (γ : ℂ) (hγ : IsGamma ψ₀ τ γ)
      (σ : IrrRep (GL (Fin (m + 1)) (w.adicCompletion E))) (hσ : IsCuspidal σ.ρ)
      (hs : GlobalTheory.SerSys.TameGen.Inflates (σ.ρ.comp (Matrix.GeneralLinearGroup.map i.toRingHom)) τ)
      (τ₀ : IrrRep (GL (Fin m) (w.adicCompletion E))) (ω : (w.adicCompletion E)ˣ →* ℂˣ) (hω : HasCentralChar τ₀.ρ ω)
      (hv : HasCellVec i ψ τ₀.ρ) (e : ℂ) (he : HasPairEps ψ σ.ρ τ₀.ρ e) :
      (g : ℂ) ^ (m * (m + 1) ^ 2 / 2) * ((ω (-1) : ℂ) ^ m * e) = γ ^ m := …
  ```
- `DiscreteGroups.sglob.DzType.lMatchBig_of`: Under the stated local hypotheses, a regular character giving the inertia polynomial lies in the Frobenius orbit of the finite cuspidal character parameter.

  ```lean
  theorem lMatchBig_of (H1 : LCusp) (H2 : LDepth) (HO : LOne) (HP : LPin) (HK : LKondo) (HFP : FinPair) (HPs : LPsi)
      (HG : GenSph) (HR : Red) (HT : LTw) (HE : GalEps) : LMatchBig := …
  ```
- `DiscreteGroups.sglob.DzType.narrowBig_of`: Combines the existence of a regular tame parameter and its identification up to Frobenius to obtain the inertia polynomial from the finite cuspidal parameter.

  ```lean
  theorem narrowBig_of (H1 : LCusp) (H2 : LDepth) (H3 : LTame) (H4 : LMatchBig) : NarrowBig := …
  ```
- `DiscreteGroups.sglob.DzType.narrowBig_of_leaves`: Derives the inertia formula from the stated local inputs together with global Artin reciprocity, Chevalley’s units theorem, local Langlands for GL(n), and Bernstein’s unitary product irreducibility.

  ```lean
  theorem narrowBig_of_leaves (H1 : LCusp) (H2 : LDepth) (H3 : LTame) (hO : LOneOf) (hP : LPin) (hK : LKondo) (hFE : LFE)
      (hFP : LFinPair) (hPs : LPsi) (hG : LGen) (hR : LRed) (hT : LTw) (hTR : LTameRec) (hE : LGal)
      (cg : DiscreteGroups.sglob.LConv.CuspGen) (art : GlobalTheory.Published.GlobalArtinReciprocity) (chev : GlobalTheory.Published.ChevalleyUnits)
      (hL : GlobalTheory.Published.LocalLanglandsGL) (bern : GlobalTheory.Published.BernsteinUnitaryProductIrreducible) : NarrowBig := …
  ```
- `DiscreteGroups.sglob.DzType.nmChar`: Pulls a character of the base field’s multiplicative group back along the field norm.

  ```lean
  def nmChar {g : ℕ} (K : Type) [Field K] [Algebra (ZMod g) K] (χ : (ZMod g)ˣ →* ℂˣ) : Kˣ →* ℂˣ :=
    χ.comp (Units.map (Algebra.norm (ZMod g) : K →* ZMod g))
  ```

### Development.DiscreteGroups.GlobalIrreducibility.DzTwChar

9 import steps from Main · 60 lines · Checked against the code · [Open in the Lean viewer](https://riemannhypothesissolved.com/file/Development.DiscreteGroups.GlobalIrreducibility.DzTwChar)

**Lifts multiplicative characters of 𝔽ₚ to smooth local characters with value one at p.**

For a number-field completion continuously isomorphic to ℚₚ, reduction on the valuation ring descends to a map from its residue field to 𝔽ₚ. Using p as a uniformizer, the tame lift extends a character of 𝔽ₚˣ to a smooth character that is trivial on p and agrees with the original character after reduction on units. This lift supplies the local determinant character in the theorem on twisting inflated finite cuspidal types.

Key declarations:

- `DiscreteGroups.sglob.DzTw.resMap`: Descends reduction modulo p to a ring homomorphism from the residue field of the completion to 𝔽ₚ.

  ```lean
  def resMap : IsLocalRing.ResidueField 𝒪[w.adicCompletion E] →+* ZMod g :=
    Ideal.Quotient.lift (IsLocalRing.maximalIdeal 𝒪[w.adicCompletion E]) (DzIso.redO i hi) fun a ha => by
      rw [← RingHom.mem_ker, DzIso.ker_redO i hi]
      exact ha
  ```
- `DiscreteGroups.sglob.DzTw.norm_unit`: Every unit of ℤₚ has p-adic norm one.

  ```lean
  theorem norm_unit (u : ℤ_[g]ˣ) : ‖((u : ℤ_[g]) : ℚ_[g])‖ = 1 := …
  ```
- `DiscreteGroups.sglob.DzTw.exists_liftsChar`: Every complex character of 𝔽ₚˣ lifts to a smooth local character that agrees with reduction on units and sends p to one.

  ```lean
  theorem exists_liftsChar (χ₀ : (ZMod g)ˣ →* ℂˣ) :
      ∃ χ : (w.adicCompletion E)ˣ →* ℂˣ, IsSmoothChar χ ∧ DiscreteGroups.sglob.DzType.LiftsChar i χ₀ χ := …
  ```

### Development.AutomorphicArithmetic.Foundations.LocalLanglands.LocalCentralUnits.PinFld

10 import steps from Main · 195 lines · Checked against the code · [Open in the Lean viewer](https://riemannhypothesissolved.com/file/Development.AutomorphicArithmetic.Foundations.LocalLanglands.LocalCentralUnits.PinFld)

**Bounds the number of nonzero elements in proper subfields and proves Frobenius orbit identities for multiplicative characters.**

In a degree-n extension of F_p, the nonzero elements in proper subfields number at most ∑_{ℓ prime, ℓ|n}(p^(n/ℓ) − 1), by counting roots of unity for each prime divisor ℓ of n. The module constructs a generator of the complex character group of a finite cyclic group and proves that regular characters have n distinct Frobenius conjugates, with disjoint orbits for nonconjugate characters. PairCheckThreeTwo uses these results to show that each regular character has a nonzero sum at some field generator and that equality at every field generator forces two regular characters to be Frobenius conjugate.

Key declarations:

- `UpperTheory.Zero.LLC.CharacterSumPairs.exists_D`: The nonzero elements of degree less than n lie in a set of size at most ∑_{ℓ prime, ℓ|n}(p^(n/ℓ) − 1), each of whose elements has order dividing p^(n/ℓ) − 1 for some prime ℓ dividing n.

  ```lean
  theorem exists_D [Fintype Kˣ] (hn : 0 < n) (hr : Module.finrank (ZMod g) K = n) :
      ∃ D : Finset Kˣ, (∀ z : Kˣ, z ∉ D → (minpoly (ZMod g) (z : K)).natDegree = n) ∧
        (∀ z ∈ D, ∃ p ∈ n.primeFactors, z ^ (g ^ (n / p) - 1) = 1) ∧ #D ≤ bd g n := …
  ```
- `UpperTheory.Zero.LLC.CharacterSumPairs.pow_of_deg`: Every element of degree less than n is fixed by the (n/ℓ)-th iterate of Frobenius for some prime ℓ dividing n.

  ```lean
  theorem pow_of_deg (hn : 0 < n) (hr : Module.finrank (ZMod g) K = n) (z : K)
      (hd : (minpoly (ZMod g) z).natDegree ≠ n) : ∃ p ∈ n.primeFactors, z ^ g ^ (n / p) = z := …
  ```
- `UpperTheory.Zero.LLC.CharacterSumPairs.exists_gen_char`: Every complex character of a finite cyclic group is a power of a single character, and two powers agree exactly when their exponents are congruent modulo the group order.

  ```lean
  theorem exists_gen_char {G : Type} [CommGroup G] [Fintype G] [IsCyclic G] : ∃ η₀ : G →* ℂˣ,
      (∀ χ : G →* ℂˣ, ∃ t < Fintype.card G, χ = η₀ ^ t) ∧
      ∀ u v : ℕ, η₀ ^ u = η₀ ^ v ↔ u % Fintype.card G = v % Fintype.card G := …
  ```
- `UpperTheory.Zero.LLC.CharacterSumPairs.sum_cj`: For a regular character θ, the sum of its Frobenius conjugates evaluated at z is the sum of θ(z^(p^j)) over 0 ≤ j < n.

  ```lean
  theorem sum_cj {G : Type} [CommGroup G] {g n : ℕ} {θ : G →* ℂˣ}
      (hθ : ∀ i j, i < n → j < n → θ ^ g ^ i = θ ^ g ^ j → i = j) (z : G) :
      ∑ χ ∈ cj g n θ, ((χ z : ℂˣ) : ℂ) = ∑ j ∈ range n, ((θ (z ^ g ^ j) : ℂˣ) : ℂ) := …
  ```
- `UpperTheory.Zero.LLC.CharacterSumPairs.disj_cj`: Multiplicative characters of a finite extension of F_p in distinct Frobenius orbits have disjoint sets of conjugates.

  ```lean
  theorem disj_cj (hn : 0 < n) (hr : Module.finrank (ZMod g) K = n) (θ θ' : Kˣ →* ℂˣ)
      (hno : ¬ ∃ j < n, θ' = θ ^ g ^ j) : Disjoint (cj g n θ) (cj g n θ') := …
  ```

### Development.AutomorphicArithmetic.ThetaCorrespondence.ThetaPairLifts.ThirdPlaceSeries.GlobalArtinReciprocityTrivial

10 import steps from Main · 18 lines · Checked against the code · [Open in the Lean viewer](https://riemannhypothesissolved.com/file/Development.AutomorphicArithmetic.ThetaCorrespondence.ThetaPairLifts.ThirdPlaceSeries.GlobalArtinReciprocityTrivial)

**Derives a depth-zero inertia polynomial formula from the existence of local Langlands maps with the prescribed type law.**

At places of totally complex number fields with completion ℚ_g, let the Weil–Deligne map rc satisfy IsRecT and let a cuspidal representation contain the specified inflated finite cuspidal type. For rank n = 1 or 16n² < g, the inertia polynomial of the parameter assigned by rc at an inertia element tamely coupled to the label datum equals the Teichmüller lift of the type’s label polynomial. The proof applies the imported inertia theorem to the narrow type result and global Artin reciprocity. A second lemma returns True under the stated reciprocity and existence hypotheses. LocalSeriesConcreteOfDzSwap uses the formula to derive tame character labels and explicit depth-zero local series.

Key declarations:

- `UpperTheory.Lit.Dz.global_artin_reciprocity_trivial`: Assuming the global existence of reciprocity maps with the prescribed type law, proves DepthZeroInertiaBigAlt, the depth-zero inertia polynomial identity for maps satisfying IsRecT at the specified ℚ_g places, tamely coupled inertia elements, and cuspidal representations of rank n = 1 or 16n² < g containing the specified inflated finite cuspidal type.

  ```lean
  theorem global_artin_reciprocity_trivial (hL : _root_.UpperTheory.Zero.LLC.RecTExists) : _root_.DiscreteGroups.sglob.DzType.DepthZeroInertiaBigAlt := …
  ```
- `UpperTheory.Lit.Dz.true_of_artin_reciprocity_of_recTExists`: Concludes True from True, global Artin reciprocity, and the existence of local Langlands maps satisfying the prescribed type law.

  ```lean
  theorem true_of_artin_reciprocity_of_recTExists : True → GlobalTheory.Published.GlobalArtinReciprocity → _root_.UpperTheory.Zero.LLC.RecTExists → True := …
  ```

### Development.AutomorphicArithmetic.Foundations.LocalLanglands.LocalCentralUnits.PinChar

11 import steps from Main · 134 lines · Checked against the code · [Open in the Lean viewer](https://riemannhypothesissolved.com/file/Development.AutomorphicArithmetic.Foundations.LocalLanglands.LocalCentralUnits.PinChar)

**Bounds the support of a difference of character sums and proves stability under twisting by characters trivial on that support.**

For disjoint sets A and B of complex characters of a finite abelian group G, let f be the difference of their character sums. Character orthogonality gives the unnormalized Parseval identity ∑_{z∈G}|f(z)|² = |G|(|A|+|B|). Combining this with the pointwise bound |f(z)| ≤ |A|+|B| yields |G| ≤ |supp(f)|(|A|+|B|) when at least one set is nonempty. A character trivial on the support preserves the Fourier coefficients under twisting and hence permutes each of A and B.

Key declarations:

- `UpperTheory.Zero.LLC.CharacterSumPairs.sum_mul_conj`: The unnormalized inner product of two characters is |G| when they coincide and zero otherwise.

  ```lean
  theorem sum_mul_conj (χ ψ : G →* ℂˣ) :
      ∑ z, ((χ z : ℂˣ) : ℂ) * conj ((ψ z : ℂˣ) : ℂ) = if χ = ψ then (Fintype.card G : ℂ) else 0 := …
  ```
- `UpperTheory.Zero.LLC.CharacterSumPairs.inner_dif`: The unnormalized Fourier coefficient of the difference at ψ is |G| times the difference of the membership indicators of ψ in A and B.

  ```lean
  theorem inner_dif (A B : Finset (G →* ℂˣ)) (ψ : G →* ℂˣ) :
      ∑ z, dif A B z * conj ((ψ z : ℂˣ) : ℂ) =
        (Fintype.card G : ℂ) * ((if ψ ∈ A then 1 else 0) - (if ψ ∈ B then 1 else 0)) := …
  ```
- `UpperTheory.Zero.LLC.CharacterSumPairs.parseval`: The squared ℓ² norm of the difference of sums over disjoint character sets A and B is |G|(|A|+|B|).

  ```lean
  theorem parseval (A B : Finset (G →* ℂˣ)) (hd : Disjoint A B) :
      ∑ z, dif A B z * conj (dif A B z) = (Fintype.card G : ℂ) * ((#A : ℂ) + #B) := …
  ```
- `UpperTheory.Zero.LLC.CharacterSumPairs.card_le`: If D contains the support of the difference for disjoint A and B with positive total size, then |G| ≤ |D|(|A|+|B|).

  ```lean
  theorem card_le (A B : Finset (G →* ℂˣ)) (hd : Disjoint A B) (D : Finset G)
      (hD : ∀ z, z ∉ D → dif A B z = 0) (hne : 0 < #A + #B) :
      Fintype.card G ≤ #D * (#A + #B) := …
  ```
- `UpperTheory.Zero.LLC.CharacterSumPairs.mul_mem`: Multiplication by a character trivial on D preserves membership in each of the two disjoint character sets whenever D contains the support of their difference.

  ```lean
  theorem mul_mem (A B : Finset (G →* ℂˣ)) (hd : Disjoint A B) (D : Finset G)
      (hD : ∀ z, z ∉ D → dif A B z = 0) (η : G →* ℂˣ) (hη : ∀ z ∈ D, η z = 1) (ψ : G →* ℂˣ) :
      (ψ ∈ A → ψ * η ∈ A) ∧ (ψ ∈ B → ψ * η ∈ B) := …
  ```

### Development.AutomorphicArithmetic.Foundations.LocalLanglands.LocalCentralUnits.PinNum

11 import steps from Main · 254 lines · Checked against the code · [Open in the Lean viewer](https://riemannhypothesissolved.com/file/Development.AutomorphicArithmetic.Foundations.LocalLanglands.LocalCentralUnits.PinNum)

**Proves numerical bounds for a sum over the prime divisors of an extension degree.**

For integers g ≥ 2 and n ≥ 1, let B(g,n) = ∑_{ℓ prime, ℓ|n}(g^(n/ℓ) − 1). The inequalities are nB(g,n) < g^n − 1 for all such pairs and 2nB(g,n) < g^n − 1 outside the four pairs (2,2), (3,2), (2,4), and (2,6). The proof uses a geometric-series estimate for n ≥ 12 and evaluates the prime-divisor sum explicitly in smaller degrees. PinFld uses B(g,n) to bound the number of nonzero elements lying in proper subfields of a degree-n extension of the prime field F_g.

Key declarations:

- `UpperTheory.Zero.LLC.CharacterSumPairs.bd`: Defines B(g,n) as the sum of g^(n/ℓ) − 1 over the distinct prime divisors ℓ of n.

  ```lean
  def bd (g n : ℕ) : ℕ := ∑ p ∈ n.primeFactors, (g ^ (n / p) - 1)
  ```
- `UpperTheory.Zero.LLC.CharacterSumPairs.bd_le`: For g ≥ 2 and n ≥ 1, the sum B(g,n) is at most 2g^⌊n/2⌋.

  ```lean
  theorem bd_le (g n : ℕ) (hg : 2 ≤ g) (hn : 0 < n) : bd g n ≤ 2 * g ^ (n / 2) := …
  ```
- `UpperTheory.Zero.LLC.CharacterSumPairs.big`: For g ≥ 2 and n ≥ 12, one has 2nB(g,n) + 1 < g^n.

  ```lean
  theorem big (g n : ℕ) (hg : 2 ≤ g) (hn : 12 ≤ n) : 2 * n * bd g n + 1 < g ^ n := …
  ```
- `UpperTheory.Zero.LLC.CharacterSumPairs.two_bd`: For g ≥ 2 and n ≥ 1 outside the four exceptional pairs, one has 2nB(g,n) + 1 < g^n.

  ```lean
  theorem two_bd (g n : ℕ) (hg : 2 ≤ g) (hn : 0 < n)
      (hex : ¬ ((g = 2 ∧ n = 2) ∨ (g = 3 ∧ n = 2) ∨ (g = 2 ∧ n = 4) ∨ (g = 2 ∧ n = 6))) :
      2 * n * bd g n + 1 < g ^ n := …
  ```
- `UpperTheory.Zero.LLC.CharacterSumPairs.one_bd`: For every g ≥ 2 and n ≥ 1, one has nB(g,n) + 1 < g^n.

  ```lean
  theorem one_bd (g n : ℕ) (hg : 2 ≤ g) (hn : 0 < n) : n * bd g n + 1 < g ^ n := …
  ```

### Development.AutomorphicArithmetic.ThetaCorrespondence.FockModels.DzSwap

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

**Derives a depth-zero inertia formula for cuspidal representations from local Langlands for GL(n).**

Over a totally complex number field at a place whose completion is continuously isomorphic to ℚ_g, the formula applies when n = 1 or 16n² < g. If the local cuspidal representation contains the inflation of the finite-field cuspidal type labeled by P on GLₙ(ℤ_g), the characteristic polynomial of inertia tame-coupled to that label datum on the Weil–Deligne parameter supplied by local reciprocity equals the Teichmüller lift of P. The proof uses global Artin reciprocity and local Langlands to obtain a narrower matching statement, then invokes the implication from that statement to the inertia formula.

Key declarations:

- `UpperTheory.Lit.Dz.big`: Assumes local Langlands for GL(n) and, at a completion continuously isomorphic to ℚ_g in rank n = 1 or 16n² < g, identifies the tame-coupled inertia element's characteristic polynomial with the Teichmüller lift of the label of the inflated finite-field cuspidal type contained in the local cuspidal representation.

  ```lean
  theorem big (hL : GlobalTheory.Published.LocalLanglandsGL) : DiscreteGroups.sglob.DzType.DepthZeroInertiaBig := …
  ```

### Development.AutomorphicArithmetic.ThetaCorrespondence.ThetaPairLifts.ThirdPlaceSeries.MDzInertia

11 import steps from Main · 105 lines · Checked against the code · [Open in the Lean viewer](https://riemannhypothesissolved.com/file/Development.AutomorphicArithmetic.ThetaCorrespondence.ThetaPairLifts.ThirdPlaceSeries.MDzInertia)

**Derives the depth-zero inertia polynomial formula from the narrow type identity and global Artin reciprocity.**

Over ℚ_g, for n = 1 or 16n² < g, the theorem identifies the Weil–Deligne inertia polynomial at a tamely coupled element with the Teichmüller lift of the finite cuspidal type’s label polynomial. The proof passes to a number field extension unramified at the chosen place over g, with residue field of size g^n, and uses Artin reciprocity and Kummer theory to match the residue z of the local Artin unit to the label generator. The narrow type identity gives the factors X − θ(z^(g^j)) for j = 0,…,n−1, with θ a regular character. GlobalArtinReciprocityTrivial supplies the narrow type identity and global reciprocity, leaving local Langlands existence as the hypothesis.

Key declarations:

- `UpperTheory.Lit.Dz.depthZeroInertiaBig_of_narrowBig_m_alt`: Assuming the narrow type identity, global Artin reciprocity, and the existence of local Langlands maps with the prescribed type law, proves the inertia polynomial identity for cuspidal representations containing the specified inflated finite cuspidal type.

  ```lean
  theorem depthZeroInertiaBig_of_narrowBig_m_alt : _root_.DiscreteGroups.sglob.DzType.NarrowBigAlt → GlobalTheory.Published.GlobalArtinReciprocity → _root_.UpperTheory.Zero.LLC.RecTExists →
      _root_.DiscreteGroups.sglob.DzType.DepthZeroInertiaBigAlt := …
  ```

### Development.AutomorphicArithmetic.IntegralCasts.CapelliIdentities.SumChar

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

**Proves that every nontrivial complex character of a finite abelian group sums to zero.**

The proof embeds the character values from the multiplicative group of nonzero complex numbers into the complex numbers, checks that the resulting multiplicative map remains nontrivial, and applies Mathlib’s vanishing lemma. The direct importer PinChar applies the theorem to the quotient of two distinct characters to prove their orthogonality.

Key declarations:

- `UpperTheory.Reformulated.B.Qe46.sum_char`: The sum of the values of a nontrivial complex character over all elements of a finite abelian group is zero.

  ```lean
  theorem UpperTheory.Reformulated.B.Qe46.sum_char :
      ∀ {G : Type} [inst : CommGroup G] [inst_1 : Fintype G] (χ : G →* ℂˣ),
      χ ≠ (1 : G →* ℂˣ) → ∑ z : G, (↑((χ : G → ℂˣ) z) : ℂ) = (0 : ℂ) := …
  ```

### Development.AutomorphicArithmetic.ThetaCorrespondence.FockModels.DzNarrow

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

**Proves a depth-zero inertia matching formula using a spherical principal series and assuming global Artin reciprocity and local Langlands.**

The principal series with trivial inducing characters is irreducible and spherical with trivial central character. A vector fixed by the inverse image of the lower triangular subgroup pairs nontrivially with a Whittaker functional. Using this test representation, the matching argument gives eigenvalues θ(z^(g^j)) for 0 ≤ j < n when n = 1 or 16n² < g, for a local representation inflating the cuspidal type labeled by θ with the specified auxiliary place data. The formula evaluates auxiliary inertia restricted to the base, with z the residue of the auxiliary local Artin image. DzSwap uses this matching formula to deduce its depth-zero inertia theorem.

Key declarations:

- `UpperTheory.Lit.Dz.genA_free`: Proves that the principal series with trivial inducing characters over a nonarchimedean local field is irreducible and spherical with trivial central character.

  ```lean
  theorem genA_free (k : Type) [Field k] [ValuativeRel k] [TopologicalSpace k] [IsNonarchimedeanLocalField k] (m : ℕ) :
      (psOne k m).IsIrreducible ∧ IsSpherical (psOne k m) ∧ HasCentralChar (psOne k m) 1 := …
  ```
- `UpperTheory.Lit.Dz.genSph`: For a completion continuously identified with ℚ_g and each continuous lift of a nontrivial additive character of F_g, gives an irreducible spherical representation with a Whittaker functional for the inverse character that is nonzero on a vector fixed by the inverse image of the lower triangular subgroup.

  ```lean
  theorem genSph : GenSph := …
  ```
- `UpperTheory.Lit.Dz.narrowBig`: Under global Artin reciprocity and local Langlands for GL(n), gives the characteristic polynomial on auxiliary inertia restricted to the base when n = 1 or 16n² < g and the local representation inflates the specified finite cuspidal type, with roots counted with multiplicity given by the Frobenius conjugates of its regular character evaluated at the residue of the auxiliary local Artin image.

  ```lean
  theorem narrowBig (art : GlobalTheory.Published.GlobalArtinReciprocity) (hL : GlobalTheory.Published.LocalLanglandsGL) : NarrowBig := …
  ```

### Development.AutomorphicArithmetic.ThetaCorrespondence.ThetaPairLifts.ThirdPlaceSeries.SglobDzMatchCut

12 import steps from Main · 36 lines · Checked against the code · [Open in the Lean viewer](https://riemannhypothesissolved.com/file/Development.AutomorphicArithmetic.ThetaCorrespondence.ThetaPairLifts.ThirdPlaceSeries.SglobDzMatchCut)

**Defines the narrow depth-zero identity for Weil–Deligne inertia polynomials in terms of regular residue-field characters.**

For n = 1 or 16n² < g, the identity concerns a representation of GL_n(ℚ_g) containing an inflated finite cuspidal type. On elements with irreducible characteristic polynomial, the finite type character equals (−1)^(n−1) times the sum of the values of the regular character θ on the n Frobenius conjugates of a root of that polynomial. On restriction of an inertia element from an auxiliary place of residue cardinality g^n, the Weil–Deligne inertia polynomial has roots given by the regular character evaluated on the Frobenius conjugates of the reduction of its local Artin unit. MDzInertia uses this identity to derive the Teichmüller-lift formula for tamely coupled inertia elements.

Key declarations:

- `DiscreteGroups.sglob.DzType.NarrowBigAlt`: States that, under the full local reciprocity hypothesis IsRecT and the auxiliary place and finite type hypotheses, the inertia polynomial at the restricted element is the product of the factors X − θ(z^(g^j)) for 0 ≤ j < n, where z is the residue of the local Artin unit.

  ```lean
  def NarrowBigAlt : Prop := …
  ```

### Development.AutomorphicArithmetic.ThetaCorrespondence.FockModels.MultiIrr

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

**Proves irreducibility of the principal series of GL(m) induced from repeated copies of a smooth character of GL(1).**

Over a nonarchimedean local field, the proof applies the unlinked-segment criterion to repeated copies of the singleton segment attached to the character, since a segment is unlinked with itself. It transfers irreducibility to the iterated parabolic product via representation equivalences. DzNarrow uses the trivial-character case to prove irreducibility of its spherical principal series.

Key declarations:

- `UpperTheory.Lit.Dz.multi_irr`: For a nonarchimedean local field k and a smooth character χ of kˣ, the iterated parabolic product of m copies of χ is irreducible on GL(m, k).

  ```lean
  theorem multi_irr (k : Type) [Field k] [ValuativeRel k] [TopologicalSpace k] [IsNonarchimedeanLocalField k] (m : ℕ)
      (χ : kˣ →* ℂˣ) (hχ : IsSmoothChar χ) :
      (multiProd (Equiv.sigmaUnique (Fin m) fun _ => Fin 1) fun _ : Fin m => detRep (Fin 1) χ).IsIrreducible := …
  ```

### Development.DiscreteGroups.GlobalIrreducibility.NarrowBigHolds

13 import steps from Main · 38 lines · Checked against the code · [Open in the Lean viewer](https://riemannhypothesissolved.com/file/Development.DiscreteGroups.GlobalIrreducibility.NarrowBigHolds)

**Derives the depth-zero cuspidal inertia formula from four named theorem inputs.**

For compatible reciprocity over a totally complex base, the formula assumes a base completion continuously identified with ℚ_p, an auxiliary prime of norm pⁿ with p outside its square, and n = 1 or p > 16n². For a representation inflating the finite cuspidal type, the inertia polynomial at auxiliary inertia restricted to the base has roots given by the regular character on Frobenius conjugates of the local Artin residue. The proof combines the finite Whittaker functional equation, tame matching, and epsilon factors, using global Artin reciprocity, Chevalley’s units theorem, local Langlands existence for local Artin maps, and Bernstein’s unitary product irreducibility.

Key declarations:

- `DiscreteGroups.sglob.DzType.lFE`: For cuspidal τ of GLₘ₊₁ over 𝔽_p, a nontrivial additive character with a Whittaker form, and γ satisfying IsGamma, the finite functional equation equates p^{⌊m(m+1)²/2⌋} times the form on the translate by the product of the two long Weyl elements to γᵐ times its value on the original vector fixed by the embedded lower triangular subgroup.

  ```lean
  theorem lFE : LFE := …
  ```
- `DiscreteGroups.sglob.DzType.artEx_of`: Extracts a local Artin map from local Langlands existence for each finite place and chosen valuation subring of the algebraic closure lying over it.

  ```lean
  theorem artEx_of (hX : GlobalTheory.Published.LocalLanglandsExists) : ∀ (L Ω : Type) [Field L] [NumberField L] [Field Ω] [Algebra L Ω]
      [IsAlgClosure L Ω] (A : ValuationSubring Ω) (v : IsDedekindDomain.HeightOneSpectrum (NumberField.RingOfIntegers L))
      (h : Formalism.ConjugateSelfDual.IsPlaceOver A v), ∃ a, GlobalTheory.LocLanglands.IsLocalArtin h a := …
  ```
- `DiscreteGroups.sglob.DzType.narrowBig_holds`: Under the four theorem inputs, gives the inertia polynomial with roots θ(z^{pʲ}) for a representation inflating the finite cuspidal type attached to θ, evaluated on auxiliary inertia restricted to the totally complex base when its completion is continuously identified with ℚ_p, the auxiliary prime has norm pⁿ with p outside its square, n = 1 or p > 16n², and z is the local Artin residue.

  ```lean
  theorem narrowBig_holds (art : GlobalTheory.Published.GlobalArtinReciprocity) (chev : GlobalTheory.Published.ChevalleyUnits)
      (hX : GlobalTheory.Published.LocalLanglandsExists) (bern : GlobalTheory.Published.BernsteinUnitaryProductIrreducible) : NarrowBig := …
  ```

### Development.DiscreteGroups.GlobalIrreducibility.DzDigMain

14 import steps from Main · 39 lines · Checked against the code · [Open in the Lean viewer](https://riemannhypothesissolved.com/file/Development.DiscreteGroups.GlobalIrreducibility.DzDigMain)

**Proves that shifted digit sums determine a base-p rotation orbit modulo pⁿ − 1.**

For prime p > 16n² and n ≥ 2, set N = pⁿ − 1 and e = N/(p − 1). If k and k′ each have n distinct rotations modulo N and the base-p digit sums of uk and uk′ modulo N change equally under every shift by a multiple of e for every unit u modulo N, then k′ ≡ pʲk mod N for some j. The proof first matches the integer quotients by e after a rotation for each u, then uses a covering count and the bound φ(N) > 2ne to force an exact congruence. This supplies the digit-sum step in the Gauss-sum criterion for matching tame parameters.

Key declarations:

- `DiscreteGroups.sglob.DzType.dig`: For prime p > 16n² and n ≥ 2, if each exponent has n distinct rotations modulo N = pⁿ − 1 and their base-p digit sums modulo N change equally for all unit multipliers and shifts by multiples of N/(p − 1), then the exponents differ by multiplication by a power of p modulo N.

  ```lean
  theorem dig : Dig := …
  ```

### Development.DiscreteGroups.GlobalIrreducibility.DzFeIter

14 import steps from Main · 71 lines · Checked against the code · [Open in the Lean viewer](https://riemannhypothesissolved.com/file/Development.DiscreteGroups.GlobalIrreducibility.DzFeIter)

**Iterates the Whittaker identity in rank m + 1 for vectors fixed by the embedded rank m lower triangular subgroup.**

For a cuspidal representation of GL(m + 1, 𝔽ₚ), the indexed identity is applied to successive cyclic translates of a vector fixed by the embedded lower triangular subgroup. Conjugation gives the row and column stabilizers required at each step. After m steps, the normalizing powers of p combine to p raised to m(m + 1)²/2, and the final translate uses the rank m + 1 long Weyl element times the embedded rank m long Weyl element. The resulting equation supplies the finite pairing step in the depth-zero inertia comparison.

Key declarations:

- `DiscreteGroups.sglob.DzFe.lFE_of_fe`: Derives from the indexed identity that for a vector fixed by the embedded rank m lower triangular subgroup, the Whittaker value after translation by wₘ₊₁ · corner(wₘ), multiplied by p raised to m(m + 1)²/2, equals γᵐ times the original value, where w denotes the long Weyl element in the indicated rank and γ is the finite class-function scalar.

  ```lean
  theorem lFE_of_fe : FunctionalEquationAtIndex → DzType.LFE := …
  ```

### Development.DiscreteGroups.GlobalIrreducibility.DzFeMain

14 import steps from Main · 100 lines · Checked against the code · [Open in the Lean viewer](https://riemannhypothesissolved.com/file/Development.DiscreteGroups.GlobalIrreducibility.DzFeMain)

**Proves the indexed finite Whittaker functional equation for cuspidal representations of GL(m + 1, 𝔽ₚ).**

For a nontrivial additive character and its Whittaker functional, suppose the trace-weighted sum of inverse actions acts by γ on the cuspidal representation. For a vector with the prescribed row and column invariance, the equation relates its Whittaker evaluation to the evaluation on its inverse cyclic translate. The proof evaluates the same weighted sum in two orders, separating zero from nonzero values of a distinguished coordinate and summing the additive-character kernel over matrix parameters. Counting the surviving terms gives the power of p. Iterating the identity gives the finite functional equation used in the depth-zero inertia comparison.

Key declarations:

- `DiscreteGroups.sglob.DzFe.fe`: For a nontrivial additive character and its Whittaker functional on a cuspidal representation, if the trace-weighted sum of inverse actions acts by γ, then for a vector with the row and column invariance at j < m, the Whittaker value on the inverse cyclic translate times p raised to m(m + 1)/2 + m − j equals γ times the original value.

  ```lean
  theorem fe : FunctionalEquationAtIndex := …
  ```

### Development.DiscreteGroups.GlobalIrreducibility.DzFinPair

14 import steps from Main · 70 lines · Checked against the code · [Open in the Lean viewer](https://riemannhypothesissolved.com/file/Development.DiscreteGroups.GlobalIrreducibility.DzFinPair)

**Determines the proportionality scalar in a finite Whittaker pairing from the finite functional equation.**

For a nontrivial additive character, the pairing uses a nonzero Whittaker functional on a cuspidal representation of GL(m + 1, 𝔽ₚ) and a cell function on GL(m, 𝔽ₚ). The cell function has inverse Whittaker equivariance on the left, lower triangular invariance on the right and nonzero value at the identity. The proof reindexes by the Whittaker involution and reduces both sums to the lower triangular subgroup. Summing the lower triangular translates gives a fixed vector to which the finite functional equation applies, yielding the pairing scalar times p raised to m(m + 1)²/2 equal to γᵐ. The depth-zero inertia comparison uses this result in its automorphic epsilon-factor calculation.

Key declarations:

- `DiscreteGroups.sglob.DzType.lFinPair`: Derives from the finite functional equation that if the two finite Whittaker sums are proportional for every vector in the cuspidal representation, with a nonzero Whittaker functional for a nontrivial additive character and a cell function as above, then the scalar is γᵐ divided by p raised to m(m + 1)²/2, where γ is the class-function scalar.

  ```lean
  theorem lFinPair : LFinPair := …
  ```

### Development.DiscreteGroups.GlobalIrreducibility.DzKondo

14 import steps from Main · 101 lines · Checked against the code · [Open in the Lean viewer](https://riemannhypothesissolved.com/file/Development.DiscreteGroups.GlobalIrreducibility.DzKondo)

**Evaluates the scalar of the trace-weighted group algebra operator on a finite cuspidal representation of GL(n).**

For prime p > 16n² and n ≥ 2, fix a nontrivial additive character ψ of 𝔽ₚ and a regular character θ of the units of the field of size pⁿ whose signed Frobenius-orbit sum at unit roots gives the cuspidal character on matrices with irreducible characteristic polynomial. The operator ∑ᵧ ψ(tr y)ρ(y⁻¹) acts by a nonzero constant depending only on p and n times the Gauss sum for θ⁻¹ with ψ composed with the field trace. The proof uses the given identity to identify the cuspidal character in the explicit family, then computes the scalar by Schur’s lemma and a character inner product. This evaluation supplies the finite Gauss sum in the epsilon-factor comparison for depth-zero inertia.

Key declarations:

- `DiscreteGroups.sglob.DzType.lKondo`: For prime p > 16n², n ≥ 2, nontrivial additive ψ on 𝔽ₚ, and a regular character θ of the units of the field of size pⁿ whose signed Frobenius-orbit sum at unit roots gives the cuspidal character on matrices with irreducible characteristic polynomial, the scalar of ∑ᵧ ψ(tr y)ρ(y⁻¹) is κ(p,n) ≠ 0 times the Gauss sum for θ⁻¹ with ψ composed with the field trace.

  ```lean
  theorem lKondo : LKondo := …
  ```

### Development.DiscreteGroups.GlobalIrreducibility.DzPinFinal

14 import steps from Main · 101 lines · Checked against the code · [Open in the Lean viewer](https://riemannhypothesissolved.com/file/Development.DiscreteGroups.GlobalIrreducibility.DzPinFinal)

**Derives a Gauss-sum criterion for two regular finite-field characters to lie in the same Frobenius orbit.**

For n ≥ 2 and prime p > 16n², the criterion uses Gauss sums with a fixed nontrivial additive character of 𝔽ₚ pulled back by the field trace. For each norm twist it compares two products, twisting one character before inversion and taking the other’s untwisted inverse. If the products agree after raising both to a common positive power for each twist, the regular characters are Frobenius conjugate, assuming the digit-sum statement Dig. The proof writes the characters as powers of a generator, converts the Gauss-sum equalities to shifted base-p digit-sum identities, and applies Dig. This criterion identifies the finite and tame inertia parameters in the depth-zero comparison.

Key declarations:

- `DiscreteGroups.sglob.DzType.lPin_of_dig`: Assuming Dig, shows that regular characters θ and ξ are Frobenius conjugate if each norm twist gives equal common positive powers of two Gauss-sum products, one using θ twisted before inversion and ξ⁻¹, the other using ξ twisted before inversion and θ⁻¹, with a fixed nontrivial base-field additive character.

  ```lean
  theorem lPin_of_dig (hD : Dig) : LPin := …
  ```

### Development.DiscreteGroups.GlobalIrreducibility.EqTraceSmulOfFinrankOne

14 import steps from Main · 208 lines · Checked against the code · [Open in the Lean viewer](https://riemannhypothesissolved.com/file/Development.DiscreteGroups.GlobalIrreducibility.EqTraceSmulOfFinrankOne)

**Proves the GL(1) case of depth-zero Langlands character matching assuming a tame reciprocity congruence.**

The rank-one character formula gives scalar action on the finite-field representation, and a nonzero intertwiner identifies this scalar with the local representation’s central character on units. After restricting inertia to the base field, the proof applies the tame reciprocity congruence over both fields to match the residue of the local Artin unit with the argument of the Weil–Deligne inertia character. Central-character compatibility then gives equality of the two residue-field labels. The proof of narrowBig_holds uses this result for the rank-one case of character matching.

Key declarations:

- `DiscreteGroups.sglob.DzType.lOneOf`: Given the tame reciprocity congruence and the place and local reciprocity hypotheses of LOne, identifies in rank one the Green label of the inflated finite type with the label in the Weil–Deligne inertia-polynomial formula.

  ```lean
  theorem lOneOf : LOneOf := …
  ```
- `DiscreteGroups.sglob.DzType.tau_scalar`: Under the rank-one Green character formula, an element of GL(1) over the prime field acts by the labeling character evaluated at the image of its sole entry.

  ```lean
  theorem tau_scalar (g : ℕ) [Fact g.Prime] (K : Type) [Field K] [Algebra (ZMod g) K] (θ : Kˣ →* ℂˣ)
      (τ : FDRep ℂ (Gn g 1))
      (hf : ∀ y : Gn g 1, Irreducible (y : Mt g 1).charpoly → ∀ z : Kˣ, aeval (z : K) (y : Mt g 1).charpoly = 0 →
          τ.character y = (-1) ^ (1 - 1) * ∑ j ∈ Finset.range 1, ((θ (z ^ g ^ j) : ℂˣ) : ℂ))
      (y : Gn g 1) (z : Kˣ) (hz : (z : K) = algebraMap (ZMod g) K ((y : Mt g 1) 0 0)) (v : τ) :
      τ.ρ y v = ((θ z : ℂˣ) : ℂ) • v := …
  ```
- `DiscreteGroups.sglob.DzType.eq_trace_smul_of_finrank_one`: Every endomorphism of a one-dimensional complex vector space acts by multiplication by its trace.

  ```lean
  theorem eq_trace_smul_of_finrank_one {V : Type} [AddCommGroup V] [Module ℂ V] [FiniteDimensional ℂ V]
      (hV : Module.finrank ℂ V = 1) (f : V →ₗ[ℂ] V) (v : V) : f v = (LinearMap.trace ℂ V f) • v := …
  ```
- `DiscreteGroups.sglob.DzType.charpoly_fin_one`: Over a commutative ring, the characteristic polynomial of a one-by-one matrix with entry a is X − a.

  ```lean
  theorem charpoly_fin_one {R : Type} [CommRing R] (M : Matrix (Fin 1) (Fin 1) R) : M.charpoly = X - C (M 0 0) := …
  ```
- `DiscreteGroups.sglob.DzType.ine_restrict`: An inertia element over the larger number field remains an inertia element over the base field for the same valuation ring.

  ```lean
  theorem ine_restrict {E E' Ω : Type} [Field E] [NumberField E] [Field E'] [NumberField E'] [Field Ω] [Algebra E E']
      [Algebra E Ω] [Algebra E' Ω] [IsScalarTower E E' Ω] {A : ValuationSubring Ω} (t : Ine (F := E') A) :
      AlgEquiv.restrictScalars E (t : G E' Ω) ∈ Ine (F := E) A := …
  ```

### Development.DiscreteGroups.GlobalIrreducibility.ExistsEqMulShiftToCircle

14 import steps from Main · 76 lines · Checked against the code · [Open in the Lean viewer](https://riemannhypothesissolved.com/file/Development.DiscreteGroups.GlobalIrreducibility.ExistsEqMulShiftToCircle)

**Proves that nontrivial additive characters of a prime residue field lift continuously to the corresponding p-adic completion.**

Primitivity and a finite cardinality count show that every circle-valued additive character of ℤ/gℤ is obtained by multiplying the argument of the standard character by a residue s. For prime p, scaling the standard character of ℚₚ by the least representative of s divided by p gives the required restriction on ℤₚ. A continuous isomorphism from ℚₚ to the completion has a continuous inverse by the open mapping theorem, so the lift transports to the completion. The proof of narrowBig_holds uses these lifts in depth-zero character matching.

Key declarations:

- `DiscreteGroups.sglob.DzType.exists_eq_mulShift_toCircle`: For every positive modulus g, each circle-valued additive character of ℤ/gℤ is the standard character precomposed with multiplication by a residue class.

  ```lean
  theorem exists_eq_mulShift_toCircle (g : ℕ) [NeZero g] (l : AddChar (ZMod g) Circle) :
      ∃ s : ZMod g, l = (ZMod.toCircle : AddChar (ZMod g) Circle).mulShift s := …
  ```
- `DiscreteGroups.sglob.DzType.stdChar_shift_intCast`: For prime p, the standard character of ℚₚ evaluated at (r/p)x for x in ℤₚ equals the standard character of ℤ/pℤ evaluated at the reduction of rx, where r is the least representative of the chosen residue.

  ```lean
  theorem stdChar_shift_intCast (g : ℕ) [Fact g.Prime] (s : ZMod g) (x : ℤ_[g]) :
      GroundTheory.LocalField.Padic.stdChar g (((s.val : ℚ_[g]) / g) * (x : ℚ_[g])) =
        ZMod.toCircle (s * PadicInt.toZMod x) := …
  ```
- `DiscreteGroups.sglob.DzType.continuous_symm'`: A continuous field isomorphism from ℚₚ to a number-field completion has a continuous inverse.

  ```lean
  theorem continuous_symm' {E : Type} [Field E] [NumberField E] {w : HeightOneSpectrum (𝓞 E)} {g : ℕ}
      [Fact g.Prime] (i : ℚ_[g] ≃+* w.adicCompletion E) (hi : Continuous i) : Continuous i.symm := …
  ```
- `DiscreteGroups.sglob.DzType.lPsi`: Via a continuous field isomorphism from ℚₚ to the completion, every nontrivial circle-valued additive character of ℤ/pℤ lifts to a nontrivial continuous additive character that agrees on the image of ℤₚ with the given character composed with reduction modulo p.

  ```lean
  theorem lPsi : LPsi := …
  ```

### Development.DiscreteGroups.GlobalIrreducibility.FixedNeBotOfEquiv

14 import steps from Main · 123 lines · Checked against the code · [Open in the Lean viewer](https://riemannhypothesissolved.com/file/Development.DiscreteGroups.GlobalIrreducibility.FixedNeBotOfEquiv)

**Constructs a spherical principal series with an Iwahori-fixed vector detected by a Whittaker functional.**

Assuming Bernstein’s irreducibility theorem for unitary parabolic induction, the principal series induced from trivial characters over a number-field completion continuously identified with ℚ_g is irreducible and spherical with trivial central character. The lower Iwahori is the subgroup of integral matrices with lower triangular reduction, and a lifted residue-field character is trivial on the maximal ideal. These facts give an Iwahori-fixed vector on which a Whittaker functional for the inverse lifted character is nonzero. The proof of narrowBig_holds uses this representation in depth-zero character matching.

Key declarations:

- `DiscreteGroups.sglob.DzType.lGen`: Assuming Bernstein’s irreducibility theorem, at a number-field completion E_w continuously identified with ℚ_g there is, for every rank and every continuous lift through that identification of a nontrivial additive character of ℤ/gℤ, an irreducible spherical representation with trivial central character and a lower-Iwahori-fixed vector detected by a Whittaker functional for the inverse lifted character.

  ```lean
  theorem lGen : LGen := …
  ```
- `DiscreteGroups.sglob.DzType.lowS`: The lower Iwahori in the completion is the transported subgroup of invertible p-adic integral matrices with lower triangular reduction.

  ```lean
  def lowS (m : ℕ) : Subgroup (GL (Fin m) (w.adicCompletion E)) :=
    (lowZ g m).map ((Matrix.GeneralLinearGroup.map i.toRingHom).comp (GlobalTheory.GLp.inc g m))
  ```
- `DiscreteGroups.sglob.DzType.lowS_diag`: Every diagonal entry of a lower-Iwahori matrix is a unit in the valuation ring.

  ```lean
  theorem lowS_diag (m : ℕ) : ∀ y ∈ lowS i m, ∀ a,
      valuation (w.adicCompletion E) (((y : GL (Fin m) (w.adicCompletion E)) : Matrix (Fin m) (Fin m) _) a a) = 1 := …
  ```
- `DiscreteGroups.sglob.DzType.psi_of_lifts`: An additive character that agrees on the valuation ring with a residue-field character composed with reduction is trivial on the maximal ideal.

  ```lean
  theorem psi_of_lifts {ψ₀ : AddChar (ZMod g) Circle} {ψ : AddChar (w.adicCompletion E) Circle} (hL : Lifts1 i ψ₀ ψ) :
      ∀ y, valuation (w.adicCompletion E) y < 1 → ψ y = 1 := …
  ```
- `DiscreteGroups.sglob.DzType.fixed_ne_bot_of_equiv'`: An equivalence of complex representations carries a nonzero subgroup-fixed vector to a nonzero subgroup-fixed vector.

  ```lean
  theorem fixed_ne_bot_of_equiv' {G V W : Type} [Group G] [AddCommGroup V] [Module ℂ V] [AddCommGroup W]
      [Module ℂ W] {π : Representation ℂ G V} {σ : Representation ℂ G W} (φ : π.Equiv σ) {K : Subgroup G}
      (hπ : fixed π K ≠ ⊥) : fixed σ K ≠ ⊥ := …
  ```

### Development.DiscreteGroups.GlobalIrreducibility.DzDigCover

15 import steps from Main · 101 lines · Checked against the code · [Open in the Lean viewer](https://riemannhypothesissolved.com/file/Development.DiscreteGroups.GlobalIrreducibility.DzDigCover)

**Bounds Euler’s totient by counting modular differences between residues that lie in the same block.**

If k′ differs modulo N from every k pʲ with j < n, and each unit multiplier sends k′ and some k pʲ into the same block of width e, then φ(N) ≤ 2n(e − 1). The proof covers the units by two sets per exponent, one for each sign of the residue difference, and bounds each set by counting multiples of a gcd. The proof of dig uses the totient bound to force k′ ≡ k pʲ modulo pⁿ − 1 for some j < n.

Key declarations:

- `DiscreteGroups.sglob.DzDig.totient_le`: For N, e > 0, if k′ is incongruent to every k pʲ for j < n but every unit multiplier puts the least residues of k′ and some k pʲ at the same integer quotient by e, then φ(N) ≤ 2n(e − 1).

  ```lean
  theorem totient_le {N e n k k' p : ℕ} (hN : 0 < N) (he : 0 < e)
      (hno : ∀ j < n, ¬ k' ≡ k * p ^ j [MOD N])
      (hm : ∀ u < N, N.Coprime u → ∃ j < n, p ^ j * (u * k % N) % N / e = u * k' % N / e) :
      N.totient ≤ n * (2 * (e - 1)) := …
  ```
- `DiscreteGroups.sglob.DzDig.cover_bound`: For natural N, e and D, at most max(e − 1, 0) integers u with 0 ≤ u < N have the least residue of uD strictly between 0 and e.

  ```lean
  theorem cover_bound (N e D : ℕ) :
      #((range N).filter (fun u => 0 < u * D % N ∧ u * D % N < e)) ≤ e - 1 := …
  ```
- `DiscreteGroups.sglob.DzDig.diff_mod`: For N > 0, if the least residue of ua modulo N is at least that of ub, their ordinary difference is the least residue of u times the modular difference a − b.

  ```lean
  theorem diff_mod {N a b u : ℕ} (hN : 0 < N) (hle : u * b % N ≤ u * a % N) :
      u * (a % N + (N - b % N)) % N = u * a % N - u * b % N := …
  ```

### Development.DiscreteGroups.GlobalIrreducibility.DzDigShift

15 import steps from Main · 196 lines · Checked against the code · [Open in the Lean viewer](https://riemannhypothesissolved.com/file/Development.DiscreteGroups.GlobalIrreducibility.DzDigShift)

**Derives a match between modular residue blocks from equal changes in base-p digit sums.**

For p ≥ 2 and n ≥ 1, set N = pⁿ − 1 and e = N/(p − 1). For 0 ≤ x < N and 0 ≤ b < p − 1, shifting x by be modulo N changes its digit sum by nb minus (p − 1) times the number of indices i < n for which adding be to the least residue of pⁱx modulo N reaches or exceeds N. Equal changes for all shifts give equal counts above each block threshold, so some pʲ multiple of the first residue lies in the same width-e block as the second. The proof of dig uses this match for each unit multiplier to apply a totient bound.

Key declarations:

- `DiscreteGroups.sglob.DzDig.match_of_hyp`: For p ≥ 2 and n ≥ 1, if all translations by multiples of e give equal digit-sum changes for uk and uk′ modulo N, then the least residues of pʲuk and uk′ have the same quotient by e for some j < n.

  ```lean
  theorem match_of_hyp {p n k k' u : ℕ} (hp : 2 ≤ p) (hn : 1 ≤ n)
      (H : ∀ b : ℕ, Stick.dsum p ((u * k + b * ee p n) % (p ^ n - 1)) + Stick.dsum p (u * k' % (p ^ n - 1))
          = Stick.dsum p ((u * k' + b * ee p n) % (p ^ n - 1)) + Stick.dsum p (u * k % (p ^ n - 1))) :
      ∃ j < n, p ^ j * (u * k % (p ^ n - 1)) % (p ^ n - 1) / ee p n = u * k' % (p ^ n - 1) / ee p n := …
  ```
- `DiscreteGroups.sglob.DzDig.count_shift`: For p ≥ 2, n ≥ 1, 0 ≤ x < N and 0 ≤ b < p − 1, translating x by be modulo N changes its base-p digit sum by nb minus (p − 1) times the number of least residues of pⁱx, for i < n, whose quotient by e is at least p − 1 − b.

  ```lean
  theorem count_shift {p n x b : ℕ} (hp : 2 ≤ p) (hn : 1 ≤ n) (hx : x < p ^ n - 1) (hb : b < p - 1) :
      Stick.dsum p ((x + b * ee p n) % (p ^ n - 1)) + (p - 1) * cnt p n x (p - 1 - b)
        = Stick.dsum p x + n * b := …
  ```
- `DiscreteGroups.sglob.DzDig.e_mul_dsum`: For p ≥ 2 and 0 ≤ x < N, the sum of the least residues of pⁱx modulo N over i < n equals e times the base-p digit sum of x.

  ```lean
  theorem e_mul_dsum {p n a : ℕ} (hp : 2 ≤ p) (ha : a < p ^ n - 1) :
      ee p n * Stick.dsum p a = ∑ i ∈ range n, p ^ i * a % (p ^ n - 1) := …
  ```
- `DiscreteGroups.sglob.DzDig.cnt`: Counts the indices i < n for which the least residue of pⁱx modulo N has integer quotient by e at least the given threshold.

  ```lean
  def cnt (p n x c : ℕ) : ℕ := #((range n).filter (fun i => c ≤ p ^ i * x % (p ^ n - 1) / ee p n))
  ```
- `DiscreteGroups.sglob.DzDig.exists_match`: For n ≥ 1 and 0 ≤ x′ < N, if the threshold counts for x and x′ agree at the block index of x′ and the next index, some pʲx with j < n has least residue in the block containing x′, with block width given by the sum of pⁱ over i < n.

  ```lean
  theorem exists_match {p n x x' : ℕ} (hx' : x' < p ^ n - 1)
      (h0 : cnt p n x (x' / ee p n) = cnt p n x' (x' / ee p n))
      (h1 : cnt p n x (x' / ee p n + 1) = cnt p n x' (x' / ee p n + 1)) (hn : 1 ≤ n) :
      ∃ j < n, p ^ j * x % (p ^ n - 1) / ee p n = x' / ee p n := …
  ```

### Development.DiscreteGroups.GlobalIrreducibility.DzDigTot

15 import steps from Main · 160 lines · Checked against the code · [Open in the Lean viewer](https://riemannhypothesissolved.com/file/Development.DiscreteGroups.GlobalIrreducibility.DzDigTot)

**Proves a strict lower bound for Euler’s totient of pⁿ − 1 when p is prime, n ≥ 2 and p > 16n².**

For prime p and n ≥ 2 with p > 16n², the bound is (p − 1)φ(pⁿ − 1) > 2n(pⁿ − 1). Induction on the largest prime in a finite set gives a product estimate, which Euler’s product formula turns into a lower bound for φ(N) in terms of the number of distinct prime divisors of N. Comparing powers of p and 2 shows that twice the number of distinct prime divisors of pⁿ − 1 is strictly less than p. The proof of dig uses the strict lower bound to contradict the upper bound from modular residue counting.

Key declarations:

- `DiscreteGroups.sglob.DzDig.two_n_N_lt`: For prime p and n ≥ 2 with p > 16n², one has 2n(pⁿ − 1) < (p − 1)φ(pⁿ − 1).

  ```lean
  theorem two_n_N_lt {p n : ℕ} (hp : p.Prime) (hn : 2 ≤ n) (h16 : 16 * n ^ 2 < p) :
      2 * n * (p ^ n - 1) < (p - 1) * (p ^ n - 1).totient := …
  ```
- `DiscreteGroups.sglob.DzDig.sq_le_totient`: For N ≥ 2 with r distinct prime divisors, N² ≤ 4(2r − 1)φ(N)².

  ```lean
  theorem sq_le_totient {N : ℕ} (hN : 2 ≤ N) :
      N ^ 2 ≤ 4 * (2 * #N.primeFactors - 1) * N.totient ^ 2 := …
  ```
- `DiscreteGroups.sglob.DzDig.prod_sq_le`: For a nonempty set of r distinct primes q, the squared product of q is at most 4(2r − 1) times the squared product of q − 1.

  ```lean
  theorem prod_sq_le : ∀ s : Finset ℕ, (∀ q ∈ s, q.Prime) → s.Nonempty →
      (∏ q ∈ s, q) ^ 2 ≤ 4 * (2 * #s - 1) * (∏ q ∈ s, (q - 1)) ^ 2 := …
  ```
- `DiscreteGroups.sglob.DzDig.two_pow_card_le`: A positive integer with r distinct prime divisors is at least 2ʳ.

  ```lean
  theorem two_pow_card_le {N : ℕ} (hN : 0 < N) : 2 ^ #N.primeFactors ≤ N := …
  ```
- `DiscreteGroups.sglob.DzDig.pow_le_two_pow`: For integers n ≥ 1 and p > 16n², one has p²ⁿ ≤ 2ᵖ.

  ```lean
  theorem pow_le_two_pow {p n : ℕ} (hn : 1 ≤ n) (h16 : 16 * n ^ 2 < p) : p ^ (2 * n) ≤ 2 ^ p := …
  ```

### Development.DiscreteGroups.GlobalIrreducibility.DzFeCard

15 import steps from Main · 58 lines · Checked against the code · [Open in the Lean viewer](https://riemannhypothesissolved.com/file/Development.DiscreteGroups.GlobalIrreducibility.DzFeCard)

**Collects elementary counting and sum-factorization lemmas for a finite-field functional equation.**

The lemmas count strict upper-triangular positions and indices strictly between j and m, and factor a sum over coordinate assignments when the summand depends only on coordinate zero. The proof of fe uses the factorization to isolate the contribution from nonzero values of that coordinate and the cardinalities to determine the exponent of the field size.

Key declarations:

- `DiscreteGroups.sglob.DzFe.card_SIdx`: An (m + 1) × (m + 1) matrix has m(m + 1)/2 positions strictly above the diagonal.

  ```lean
  theorem card_SIdx : Fintype.card (SIdx m) = (m + 1) * m / 2 := …
  ```
- `DiscreteGroups.sglob.DzFe.card_WIdx`: There are max(m − j − 1, 0) indices strictly between j and m.

  ```lean
  theorem card_WIdx (j : ℕ) : Fintype.card (WIdx m j) = m - 1 - j := …
  ```
- `DiscreteGroups.sglob.DzFe.sum_split`: Summing f of coordinate zero over all finite-field assignments to coordinates 0 through min(j, m) gives the sum of f over the field times the number of assignments to the remaining coordinates.

  ```lean
  theorem sum_split (j : ℕ) (f : ZMod g → ℂ) :
      ∑ b : JIdx m j → ZMod g, f (b (j0 m j)) =
        (Fintype.card ({i : JIdx m j // i ≠ j0 m j} → ZMod g) : ℂ) * ∑ s : ZMod g, f s := …
  ```
- `DiscreteGroups.sglob.DzFe.sum_range_lt`: Among the integers 0 ≤ x < n, exactly min(n, k) satisfy x < k.

  ```lean
  theorem sum_range_lt (n k : ℕ) : ∑ x ∈ Finset.range n, (if x < k then 1 else 0) = min n k := …
  ```
- `DiscreteGroups.sglob.DzFe.sum_range_between`: Among the integers 0 ≤ x < n, exactly max(min(n, m) − min(n, j + 1), 0) satisfy j < x < m.

  ```lean
  theorem sum_range_between (n j m : ℕ) :
      ∑ x ∈ Finset.range n, (if j < x ∧ x < m then 1 else 0) = min n m - min n (j + 1) := …
  ```

### Development.DiscreteGroups.GlobalIrreducibility.DzFpSum

15 import steps from Main · 103 lines · Checked against the code · [Open in the Lean viewer](https://riemannhypothesissolved.com/file/Development.DiscreteGroups.GlobalIrreducibility.DzFpSum)

**Reduces finite Whittaker pairings to lower-triangular sums and constructs a subgroup-fixed orbit sum.**

For two functions with inverse left Whittaker characters induced by a nontrivial additive character via the superdiagonal sum, right lower-triangular invariance of one confines its support to the product of the upper unitriangular and lower triangular subgroups. The factorization there is unique, and the characters cancel in the product sum. In the next rank, summing a Whittaker eigenvector over the embedded lower triangular subgroup gives a fixed vector whose Whittaker functional value comes entirely from the identity term. The proof of lFinPair applies the finite functional equation to this fixed vector.

Key declarations:

- `DiscreteGroups.sglob.DzFp.sum_cell`: For L and W with left characters induced respectively by ψ and ψ⁻¹ via the superdiagonal sum for a nontrivial additive character ψ and W right invariant under the lower triangular subgroup B⁻, the sum of LW equals |U| times W(1) times the sum of L over B⁻, where U is the upper unitriangular subgroup.

  ```lean
  theorem sum_cell {m : ℕ} {ψ : AddChar k Circle} (hψ : ψ ≠ 1) (W : GL (Fin m) k → ℂ)
      (h1 : ∀ u ∈ unipB k (Fin m), ∀ x, W (u * x) = (((ψ (superDiag u))⁻¹ : Circle) : ℂ) * W x)
      (h2 : ∀ b ∈ lowB k m, ∀ x, W (x * b) = W x) (L : GL (Fin m) k → ℂ)
      (hL : ∀ u ∈ unipB k (Fin m), ∀ x, L (u * x) = (ψ (superDiag u) : ℂ) * L x) :
      ∑ᶠ x, L x * W x = (Nat.card (unipB k (Fin m)) : ℂ) * W 1 * ∑ᶠ b : lowB k m, L b := …
  ```
- `DiscreteGroups.sglob.DzFp.sum_lower_corner`: For a Whittaker functional and a vector transforming by the same character induced by a nontrivial additive character ψ via the superdiagonal sum, the functional takes the same value on the vector and on its sum over the embedded lower triangular subgroup.

  ```lean
  theorem sum_lower_corner {m : ℕ} {ψ : AddChar k Circle} (hψ : ψ ≠ 1) {ρ : Representation ℂ (GL (Fin (m + 1)) k) V}
      {l : Module.Dual ℂ V} (hl : IsFunctional ψ ρ l) {v : V}
      (hv : ∀ u ∈ unipB k (Fin (m + 1)), ρ u v = (ψ (superDiag u) : ℂ) • v) :
      ∑ᶠ b : lowB k m, l (ρ (corner (b : GL (Fin m) k)) v) = l v := …
  ```
- `DiscreteGroups.sglob.DzFp.corner_fixed`: The sum of the translates of a vector by the embedded lower triangular subgroup is fixed by that subgroup.

  ```lean
  theorem corner_fixed {m : ℕ} (ρ : Representation ℂ (GL (Fin (m + 1)) k) V) (v : V) (b' : GL (Fin m) k)
      (hb' : b' ∈ lowB k m) :
      ρ (corner b') (∑ᶠ b : lowB k m, ρ (corner (b : GL (Fin m) k)) v) = ∑ᶠ b : lowB k m, ρ (corner (b : GL (Fin m) k)) v := …
  ```
- `DiscreteGroups.sglob.DzFp.corner_lower`: The block embedding b ↦ diag(b, 1) preserves lower triangularity.

  ```lean
  theorem corner_lower {m : ℕ} {b : GL (Fin m) k} (hb : b ∈ lowB k m) :
      ∀ r c : Fin (m + 1), r < c → (corner b : Matrix (Fin (m + 1)) (Fin (m + 1)) k) r c = 0 := …
  ```
- `DiscreteGroups.sglob.DzFp.corner_last_row`: The last row of diag(b, 1) equals the last row of the identity matrix.

  ```lean
  theorem corner_last_row {m : ℕ} (b : GL (Fin m) k) (c : Fin (m + 1)) :
      (corner b : Matrix (Fin (m + 1)) (Fin (m + 1)) k) (Fin.last m) c =
        (1 : Matrix (Fin (m + 1)) (Fin (m + 1)) k) (Fin.last m) c := …
  ```

### Development.DiscreteGroups.GlobalIrreducibility.DzGenA

15 import steps from Main · 49 lines · Checked against the code · [Open in the Lean viewer](https://riemannhypothesissolved.com/file/Development.DiscreteGroups.GlobalIrreducibility.DzGenA)

**Proves, assuming Bernstein’s irreducibility theorem, that the trivial-character principal series is irreducible and spherical.**

The normalized principal series induced from the trivial character of the diagonal torus has trivial central character. The proof identifies it with the parabolic product of trivial GL(1) representations, applies Bernstein’s irreducibility theorem for unitarizable factors, and computes the central action from the inducing characters. A vector fixed by the standard maximal compact subgroup and taking value 1 at the identity proves sphericity. The proof of lGen uses this principal series to furnish a spherical representation with an Iwahori-fixed vector detected by a Whittaker functional.

Key declarations:

- `DiscreteGroups.sglob.DzType.genA`: Assuming Bernstein’s irreducibility theorem for parabolic products of irreducible unitarizable representations, the principal series of GL(m) induced from the trivial torus character is irreducible and spherical with trivial central character over every nonarchimedean local field.

  ```lean
  theorem genA : GenA := …
  ```

### Development.DiscreteGroups.GlobalIrreducibility.DzKLink

15 import steps from Main · 104 lines · Checked against the code · [Open in the Lean viewer](https://riemannhypothesissolved.com/file/Development.DiscreteGroups.GlobalIrreducibility.DzKLink)

**Identifies a coefficient in the finite GL(n) character calculation with a normalized Gauss sum.**

The matrix trace is the negative of the coefficient immediately below the leading term of the characteristic polynomial. The field trace is the negative of the coefficient immediately below the leading term of the minimal polynomial raised to the degree of K over the subfield generated by the element. For a field K of size gⁿ, the embedding identifies Kˣ with the (gⁿ − 1)-st roots of unity, and complex conjugation inverts the linked character values. The proof of lKondo uses these identities to express its character sum in terms of the Gauss sum.

Key declarations:

- `DiscreteGroups.sglob.DzType.Kon.aC_eq_gs`: When the multiplicative character θ on Kˣ is linked to the ambient character power, the coefficient aC equals the Gauss sum for θ⁻¹ and the trace pullback of ψ₀, divided by gⁿ − 1.

  ```lean
  theorem aC_eq_gs {g n : ℕ} [Fact g.Prime] (hn : 0 < n) {K : Type} [Field K] [Algebra (ZMod g) K]
      (hK : Nat.card K = g ^ n) (θ₀ : AlgebraicClosure (ZMod g) →* ℂ)
      (ι : K →ₐ[ZMod g] AlgebraicClosure (ZMod g)) (θ : Kˣ →* ℂˣ) (k : ℕ)
      (hlink : ∀ u : Kˣ, ((θ u : ℂˣ) : ℂ) = θ₀ (ι (u : K)) ^ k) (ψ₀ : AddChar (ZMod g) Circle) :
      aC n θ₀ (hT n fun a => ((ψ₀ a : Circle) : ℂ)) k =
        ((g ^ n - 1 : ℕ) : ℂ)⁻¹ * ∑ᶠ z : Kˣ, ((θ⁻¹ z : ℂˣ) : ℂ) * ((ψ₀ (Algebra.trace (ZMod g) K (z : K)) : Circle) : ℂ) := …
  ```
- `DiscreteGroups.sglob.DzType.Kon.trace_eq_hT`: On an embedded degree-n extension K of the prime field, the polynomial-coefficient function hT associated to ψ equals ψ composed with the field trace.

  ```lean
  theorem trace_eq_hT {g n : ℕ} [Fact g.Prime] {K : Type} [Field K] [Algebra (ZMod g) K]
      [FiniteDimensional (ZMod g) K] (hfr : Module.finrank (ZMod g) K = n)
      (ι : K →ₐ[ZMod g] AlgebraicClosure (ZMod g)) (ψ : ZMod g → ℂ) (z : K) :
      hT n ψ (ι z) = ψ (Algebra.trace (ZMod g) K z) := …
  ```
- `DiscreteGroups.sglob.DzType.Kon.trace_eq_nextCoeff`: For a square matrix of positive size over the prime field, its trace is the negative of the coefficient immediately below the leading term of its characteristic polynomial.

  ```lean
  theorem trace_eq_nextCoeff {g n : ℕ} [Fact g.Prime] (hn : 0 < n) (y : Mt g n) :
      Matrix.trace y = -(LinearMap.charpoly (Matrix.toLin' y)).nextCoeff := …
  ```

### Development.DiscreteGroups.GlobalIrreducibility.DzKName

15 import steps from Main · 237 lines · Checked against the code · [Open in the Lean viewer](https://riemannhypothesissolved.com/file/Development.DiscreteGroups.GlobalIrreducibility.DzKName)

**Constructs Green’s cuspidal characters of GL(d, 𝔽_g) for prime g and positive d and parametrizes them by regular Frobenius orbits.**

The construction writes characters of the multiplicative group of a degree-d extension of the prime field 𝔽_g as powers of a faithful Teichmüller character, then applies invariant-subspace Möbius inversion to the resulting root power sums. For regular labels it obtains the degree, Green’s signed Frobenius sum at a unit root of the irreducible characteristic polynomial, and equality exactly along Frobenius orbits via inner products. A count using irreducible polynomial labels proves exhaustiveness. The proof of lKondo uses the exhaustive family to insert the explicit formula into its character sum.

Key declarations:

- `DiscreteGroups.sglob.DzType.Kon.explicit_family`: For prime g and positive d, signed Möbius inversion of root power sums gives a family whose regular members are cuspidal of degree ∏_{i=1}^{d−1}(gⁱ − 1) and take the value (−1)^(d−1) ∑_{i=0}^{d−1} θ(z^(gⁱ)) on a matrix with irreducible characteristic polynomial and unit root z in the degree-d extension, with two regular labels giving the same member exactly when they are Frobenius conjugate.

  ```lean
  theorem explicit_family : ∀ (g : ℕ) [Fact g.Prime] (d : ℕ), 0 < d → ∀ (K : Type) [Field K] [Algebra (ZMod g) K],
      Module.finrank (ZMod g) K = d →
      ∃ (θ₀ : AlgebraicClosure (ZMod g) →* ℂ) (_ : ∀ x y : AlgebraicClosure (ZMod g), x ≠ 0 → y ≠ 0 → θ₀ x = θ₀ y → x = y)
        (ι : K →ₐ[ZMod g] AlgebraicClosure (ZMod g)) (kOf : (Kˣ →* ℂˣ) → ℕ),
        (∀ (θ : Kˣ →* ℂˣ) (u : Kˣ), ((θ u : ℂˣ) : ℂ) = θ₀ (ι (u : K)) ^ kOf θ) ∧
        ∃ τ : (Kˣ →* ℂˣ) → Gn g d → ℂ,
        (∀ θ x, τ θ x = (-1) ^ (d - 1) *
          psi (rootSum θ₀ (kOf θ)) (Fin d → ZMod g) (Matrix.toLin' (x : Matrix (Fin d) (Fin d) (ZMod g)))) ∧
        (∀ θ, IsRegularChar g d θ → IsCusp (τ θ) ∧ τ θ 1 = ∏ i ∈ Finset.Ico 1 d, ((g : ℂ) ^ i - 1) ∧
          ∀ y : Gn g d, Irreducible (y : Mt g d).charpoly → ∀ z : Kˣ, aeval (z : K) (y : Mt g d).charpoly = 0 →
            τ θ y = (-1) ^ (d - 1) * ∑ i ∈ Finset.range d, ((θ (z ^ g ^ i) : ℂˣ) : ℂ)) ∧
        (∀ θ θ', IsRegularChar g d θ → IsRegularChar g d θ' → (τ θ = τ θ' ↔ ∃ i < d, θ' = θ ^ g ^ i)) := …
  ```
- `DiscreteGroups.sglob.DzType.Kon.named_family`: For prime g and positive d, every cuspidal character of GL(d, 𝔽_g) occurs in the explicit family for a regular character of the degree-d extension’s multiplicative group.

  ```lean
  theorem named_family : ∀ (g : ℕ) [Fact g.Prime] (d : ℕ), 0 < d → ∀ (K : Type) [Field K] [Algebra (ZMod g) K],
      Module.finrank (ZMod g) K = d →
      ∃ (θ₀ : AlgebraicClosure (ZMod g) →* ℂ) (_ : ∀ x y : AlgebraicClosure (ZMod g), x ≠ 0 → y ≠ 0 → θ₀ x = θ₀ y → x = y)
        (ι : K →ₐ[ZMod g] AlgebraicClosure (ZMod g)) (kOf : (Kˣ →* ℂˣ) → ℕ),
        (∀ (θ : Kˣ →* ℂˣ) (u : Kˣ), ((θ u : ℂˣ) : ℂ) = θ₀ (ι (u : K)) ^ kOf θ) ∧
        ∃ τ : (Kˣ →* ℂˣ) → Gn g d → ℂ,
        (∀ θ x, τ θ x = (-1) ^ (d - 1) *
          psi (rootSum θ₀ (kOf θ)) (Fin d → ZMod g) (Matrix.toLin' (x : Matrix (Fin d) (Fin d) (ZMod g)))) ∧
        (∀ θ, IsRegularChar g d θ → IsCusp (τ θ) ∧ τ θ 1 = ∏ i ∈ Finset.Ico 1 d, ((g : ℂ) ^ i - 1) ∧
          ∀ y : Gn g d, Irreducible (y : Mt g d).charpoly → ∀ z : Kˣ, aeval (z : K) (y : Mt g d).charpoly = 0 →
            τ θ y = (-1) ^ (d - 1) * ∑ i ∈ Finset.range d, ((θ (z ^ g ^ i) : ℂˣ) : ℂ)) ∧
        (∀ θ θ', IsRegularChar g d θ → IsRegularChar g d θ' → (τ θ = τ θ' ↔ ∃ i < d, θ' = θ ^ g ^ i)) ∧
        ∀ χ : Gn g d → ℂ, IsCusp χ → ∃ θ, IsRegularChar g d θ ∧ χ = τ θ := …
  ```

### Development.DiscreteGroups.GlobalIrreducibility.DzPinB

15 import steps from Main · 176 lines · Checked against the code · [Open in the Lean viewer](https://riemannhypothesissolved.com/file/Development.DiscreteGroups.GlobalIrreducibility.DzPinB)

**Constructs cyclotomic Gauss-sum data with controlled character powers and computes the effect of norm twists.**

For K of size pⁿ, set N = pⁿ − 1 and choose a prime above p in ℚ(ζ_{pN}). A primitive N-th root retains its order upon reduction, so K embeds into the residue field and its elements lift multiplicatively. For each t coprime to pN, a complex embedding sends these lifts on Kˣ to the t-th power of a fixed faithful character, while a suitable primitive p-th root maps to ψ₀(1). The proof of lPin_of_dig uses these embeddings and the norm exponent N/(p − 1) to express twisted Gauss sums in terms of character exponents.

Key declarations:

- `DiscreteGroups.sglob.DzPin.exists_setup`: For a nontrivial additive character ψ₀ of 𝔽ₚ, constructs a fixed multiplicative lift and faithful complex character Ω such that each t coprime to pN admits a complex embedding realizing Ωᵗ on the lift and sending a primitive p-th root to ψ₀(1).

  ```lean
  theorem exists_setup (p : ℕ) [hp : Fact p.Prime] (n : ℕ) (hn : 1 ≤ n) (K : Type) [Field K]
      [Fintype K] [Algebra (ZMod p) K] (hK : Fintype.card K = p ^ n) (ψ₀ : AddChar (ZMod p) Circle)
      (hψ₀ : ψ₀ ≠ 1) :
      ∃ (Q : HeightOneSpectrum (𝓞 (CyclotomicField (p * (p ^ n - 1)) ℚ)))
        (ω : MulChar K (𝓞 (CyclotomicField (p * (p ^ n - 1)) ℚ))) (Ω : Kˣ →* ℂˣ),
        Function.Injective Ω ∧
        ∀ t : ℕ, t.Coprime (p * (p ^ n - 1)) →
          ∃ (Φ : 𝓞 (CyclotomicField (p * (p ^ n - 1)) ℚ) →+* ℂ) (D : Stick.GSDatum p n K _ Q),
            Function.Injective Φ ∧ D.ω = ω ∧ Φ D.ζ = ((ψ₀ 1 : Circle) : ℂ) ∧
            ∀ z : Kˣ, Φ (ω z) = ((Ω z : ℂˣ) : ℂ) ^ t := …
  ```
- `DiscreteGroups.sglob.DzPin.nm_eq`: Restricting a character Ω of Kˣ to 𝔽_gˣ, taking its m-th power, and pulling back by the norm gives Ω raised to m(gⁿ − 1)/(g − 1) when |K| = gⁿ.

  ```lean
  theorem nm_eq {g : ℕ} [hg : Fact g.Prime] {n : ℕ} {K : Type} [Field K] [Fintype K]
      [Algebra (ZMod g) K] (hK : Fintype.card K = g ^ n) (Ω : Kˣ →* ℂˣ) (m : ℕ) :
      ((Ω.comp (Units.map (algebraMap (ZMod g) K).toMonoidHom)) ^ m).comp
          (Units.map (Algebra.norm (ZMod g) : K →* ZMod g)) = Ω ^ ((g ^ n - 1) / (g - 1) * m) := …
  ```
- `DiscreteGroups.sglob.DzPin.exists_iota`: If a number field contains an integral primitive N-th root and N is coprime to p, every field of size N + 1 and characteristic p embeds into the residue field at a prime above p.

  ```lean
  theorem exists_iota (L : Type) [Field L] [NumberField L] (p : ℕ) [hp : Fact p.Prime]
      (Q : Ideal (𝓞 L)) [hQ : Q.IsMaximal] (hpQ : (p : 𝓞 L) ∈ Q) {N : ℕ} {μ : 𝓞 L}
      (hμ : IsPrimitiveRoot μ N) (hNQ : (N : 𝓞 L) ∉ Q) (K : Type) [Field K] [Fintype K]
      [Algebra (ZMod p) K] (hK : Fintype.card K = N + 1) : Nonempty (K →+* 𝓞 L ⧸ Q) := …
  ```
- `DiscreteGroups.sglob.DzPin.exists_emb`: An embedding of the m-th cyclotomic field into ℂ can send a given primitive m-th root to any prescribed primitive complex m-th root.

  ```lean
  theorem exists_emb (m : ℕ) [NeZero m] (L : Type) [Field L] [Algebra ℚ L]
      [IsCyclotomicExtension {m} ℚ L] {ζ : L} (hζ : IsPrimitiveRoot ζ m) (c : ℂ)
      (hc : IsPrimitiveRoot c m) : ∃ φ : L →+* ℂ, φ ζ = c := …
  ```
- `DiscreteGroups.sglob.DzPin.exists_maximal_above`: The ring of integers of any number field has a maximal ideal above each rational prime.

  ```lean
  theorem exists_maximal_above (L : Type) [Field L] [NumberField L] (p : ℕ) [hp : Fact p.Prime] :
      ∃ Q : Ideal (𝓞 L), Q.IsMaximal ∧ (p : 𝓞 L) ∈ Q := …
  ```

### Development.DiscreteGroups.GlobalIrreducibility.ExistsCellFunctional

15 import steps from Main · 80 lines · Checked against the code · [Open in the Lean viewer](https://riemannhypothesissolved.com/file/Development.DiscreteGroups.GlobalIrreducibility.ExistsCellFunctional)

**Proves that a Whittaker functional is nonzero on a specified cell vector in the trivial-character principal series.**

For each finite subset of the upper unitriangular subgroup, the proof constructs a character-weighted Haar integral over a compact subgroup containing that subset. Haar invariance gives equivariance there, and on the cell vector the integral is the positive volume of the intersection with the first congruence subgroup. A finite-consistency argument yields a Whittaker functional for the full upper unitriangular subgroup. The proof of lGen applies this result to the lower Iwahori.

Key declarations:

- `DiscreteGroups.sglob.DzType.exists_cell_functional`: Over a nonarchimedean local field k, for a subgroup between the first congruence subgroup and the integral general linear group with strict upper entries in the maximal ideal and unit diagonal entries, every continuous circle-valued additive character ψ trivial on the maximal ideal yields a ψ⁻¹-Whittaker functional nonzero on the associated cell vector.

  ```lean
  theorem exists_cell_functional {S : Subgroup (GL (Fin m) k)} (hS1 : KOne k (Fin m) ≤ S)
      (hS2 : S ≤ KO k (Fin m))
      (hS3 : ∀ y ∈ S, ∀ a b, a < b → valuation k (((y : GL (Fin m) k) : Matrix (Fin m) (Fin m) k) a b) < 1)
      (hS4 : ∀ y ∈ S, ∀ a, valuation k (((y : GL (Fin m) k) : Matrix (Fin m) (Fin m) k) a a) = 1)
      (ψ : AddChar k Circle) (hψc : Continuous ψ) (hψ : ∀ x, valuation k x < 1 → ψ x = 1) :
      ∃ l : Module.Dual ℂ (PS k m), IsFunctional ψ⁻¹ (psOne k m) l ∧ l (cellVec hS1 hS4) ≠ 0 := …
  ```

### Development.DiscreteGroups.GlobalIrreducibility.OrbitOfAgree

15 import steps from Main · 123 lines · Checked against the code · [Open in the Lean viewer](https://riemannhypothesissolved.com/file/Development.DiscreteGroups.GlobalIrreducibility.OrbitOfAgree)

**Proves that agreement of Frobenius sums on elliptic elements determines a regular character’s Frobenius orbit.**

For n ≥ 2 and prime g > 16n², two multiplicative characters of 𝔽_{gⁿ}ˣ lie in the same Frobenius orbit if one is regular and their Frobenius sums agree on elements of degree n over 𝔽_g. Character orthogonality makes the cross sum vanish for disjoint orbits, while regularity gives a self-pairing of n(gⁿ − 1). The summands of the pairing difference vanish outside an exceptional set of size at most ⌊n/2⌋g^⌊n/2⌋ and have absolute value at most 2n², contradicting the self-pairing. The proof of lKondo uses this criterion to identify the given cuspidal character with its explicitly labeled counterpart.

Key declarations:

- `DiscreteGroups.sglob.DzType.Kon.orbit_of_agree`: For K of size gⁿ with n ≥ 2 and prime g > 16n², if the Frobenius sums of θ and θ′ agree on roots of irreducible characteristic polynomials of elements of GL(n, 𝔽_g) and θ is regular, then θ′ = θ raised to gⁱ for some 0 ≤ i < n.

  ```lean
  theorem orbit_of_agree (hn : 2 ≤ n) (hbig : 16 * n ^ 2 < g) (hK : Nat.card K = g ^ n) (θ θ' : Kˣ →* ℂˣ)
      (hθ : IsRegularChar g n θ)
      (h : ∀ z : Kˣ, (∃ y : Gn g n, Irreducible (y : Mt g n).charpoly ∧ aeval (z : K) (y : Mt g n).charpoly = 0) →
        fo g n θ z = fo g n θ' z) : ∃ i < n, θ' = θ ^ g ^ i := …
  ```
- `DiscreteGroups.sglob.DzType.Kon.card_bad_le`: In a finite field containing 𝔽_g, at most ⌊n/2⌋g^⌊n/2⌋ nonzero elements are fixed by some i-th power of the g-power Frobenius with 1 ≤ i ≤ ⌊n/2⌋.

  ```lean
  theorem card_bad_le [Fintype K] [DecidableEq K] :
      (Finset.univ.filter fun z : Kˣ => ∃ i ∈ Finset.Icc 1 (n / 2), z ^ g ^ i = z).card ≤
        (n / 2) * g ^ (n / 2) := …
  ```

### Development.DiscreteGroups.GlobalIrreducibility.RhoInvMulSelf

15 import steps from Main · 153 lines · Checked against the code · [Open in the Lean viewer](https://riemannhypothesissolved.com/file/Development.DiscreteGroups.GlobalIrreducibility.RhoInvMulSelf)

**Evaluates the weighted matrix sum on the right-hand side of a finite-field functional equation.**

The matrices in the sum are parametrized by a cyclic permutation, a last-row factor, and an upper unitriangular factor. The proof recovers the unitriangular factor from the rotated matrix and then reads off the last-row parameters. Row invariance removes the last-row factor after conjugation, and Whittaker equivariance cancels the additive weight, so every summand equals the functional evaluated on the inverse cyclic translate. The proof of fe uses the resulting sum and the parameter count.

Key declarations:

- `DiscreteGroups.sglob.DzFe.rhs_sum`: For a vector fixed by the prescribed row subgroup and a Whittaker form for ψ₀, the sum over matrices y in the prescribed family of the form evaluated on the y⁻¹ translate with weight ψ₀(trace(y) − y₀₀) equals the parameter count times its evaluation on the inverse cyclic translate.

  ```lean
  theorem rhs_sum {j : ℕ} (hj : j < m) (l : Module.Dual ℂ τ) (hl : IsFunctional ψ₀ τ.ρ l) (v : τ)
      (hB : ∀ h, IsRowFix j h → τ.ρ h v = v) :
      ∑ y : Gn g (m + 1), (if IsY j (y : Mt g (m + 1)) then
          (ψ₀ (trace (y : Mt g (m + 1)) - (y : Mt g (m + 1)) 0 0) : ℂ) * l (τ.ρ y⁻¹ v) else 0) =
        (Fintype.card ((SIdx m → ZMod g) × (ZMod g)ˣ × (WIdx m j → ZMod g)) : ℂ) *
          l (τ.ρ (cyc g (m + 1))⁻¹ v) := …
  ```
- `DiscreteGroups.sglob.DzFe.phi_surj`: For j < m, every invertible matrix in the prescribed family at index j admits the cyclic, last-row, and upper unitriangular factorization.

  ```lean
  theorem phi_surj {j : ℕ} (_hj : j < m) (y : Gn g (m + 1)) (hy : IsY j (y : Mt g (m + 1))) :
      ∃ p, phi j p = y := …
  ```
- `DiscreteGroups.sglob.DzFe.card_P`: The parameter count is g to the number of strict upper-triangular positions, times g − 1 for the nonzero last entry, times g to the number of free last-row positions.

  ```lean
  theorem card_P (j : ℕ) :
      Fintype.card ((SIdx m → ZMod g) × (ZMod g)ˣ × (WIdx m j → ZMod g)) =
        g ^ Fintype.card (SIdx m) * (g - 1) * g ^ Fintype.card (WIdx m j) := …
  ```
- `DiscreteGroups.sglob.DzFe.rho_mul_inv_self`: Acting by a group element after acting by its inverse returns the original vector.

  ```lean
  theorem rho_mul_inv_self (a : Gn g (m + 1)) (x : τ) : τ.ρ a (τ.ρ a⁻¹ x) = x := …
  ```
- `DiscreteGroups.sglob.DzFe.rho_inv_mul_self`: Acting by the inverse of a group element after acting by the element returns the original vector.

  ```lean
  theorem rho_inv_mul_self (a : Gn g (m + 1)) (x : τ) : τ.ρ a⁻¹ (τ.ρ a x) = x := …
  ```

### Development.DiscreteGroups.GlobalIrreducibility.RowFixConj

15 import steps from Main · 112 lines · Checked against the code · [Open in the Lean viewer](https://riemannhypothesissolved.com/file/Development.DiscreteGroups.GlobalIrreducibility.RowFixConj)

**Proves that cyclic conjugation sends two families of matrices over a prime field into the embedded lower triangular subgroup.**

For prime g and 0 ≤ k < m, the column and row lemmas each show that conjugation by the kth power of the cyclic permutation matrix sends the specified elements of GL_{m+1}(F_g) to block diagonals diag(b, 1) with b invertible and lower triangular. Both proofs track entries under the inverse cyclic shift to check the last row, last column, and upper triangular entries above the diagonal. DzFeIter uses both lemmas to establish the vector invariance required at each step of its functional equation iteration.

Key declarations:

- `DiscreteGroups.sglob.DzFe.colFix_conj`: Under the shared prime-field and index hypotheses, the conjugate has form diag(b, 1) with b invertible and lower triangular if all columns except column 0 equal those of the identity and column 0 vanishes in rows with zero-based index greater than m − 1 − k.

  ```lean
  theorem colFix_conj [Fact g.Prime] {m k : ℕ} (hk : k < m) (h : GL (Fin (m + 1)) (ZMod g))
      (hh : IsColFix (m - 1 - k) h) :
      ∃ b : GL (Fin m) (ZMod g), (∀ i l : Fin m, i < l → (b : Matrix (Fin m) (Fin m) (ZMod g)) i l = 0) ∧
        corner b = cyc g (m + 1) ^ k * h * (cyc g (m + 1) ^ k)⁻¹ := …
  ```
- `DiscreteGroups.sglob.DzFe.rowFix_conj`: Under the shared prime-field and index hypotheses, the conjugate has form diag(b, 1) with b invertible and lower triangular if all rows except row 0 equal those of the identity and row 0 vanishes in columns with zero-based indices 1 through m − k.

  ```lean
  theorem rowFix_conj [Fact g.Prime] {m k : ℕ} (hk : k < m) (h : GL (Fin (m + 1)) (ZMod g))
      (hh : IsRowFix (m - 1 - k) h) :
      ∃ b : GL (Fin m) (ZMod g), (∀ i l : Fin m, i < l → (b : Matrix (Fin m) (Fin m) (ZMod g)) i l = 0) ∧
        corner b = cyc g (m + 1) ^ k * h * (cyc g (m + 1) ^ k)⁻¹ := …
  ```

### Development.DiscreteGroups.GlobalIrreducibility.DzFpSupp

16 import steps from Main · 107 lines · Checked against the code · [Open in the Lean viewer](https://riemannhypothesissolved.com/file/Development.DiscreteGroups.GlobalIrreducibility.DzFpSupp)

**Proves that Whittaker-equivariant, right lower-Borel-invariant functions on GLₘ(k) vanish outside the open Bruhat cell.**

Over any field k, let U be the upper unitriangular subgroup and B⁻ the lower triangular subgroup. A complex-valued function on GLₘ(k) that transforms on the left by the inverse of a nontrivial additive character applied to the sum of the first superdiagonal entries of U, and is right B⁻-invariant, has support contained in UB⁻. The proof uses Bruhat decomposition and a descent of each nonidentity inverse permutation to find a transvection whose left action multiplies the value by a nontrivial scalar and whose right action leaves it fixed. DzFpSum uses this support bound to restrict a finite sum to UB⁻.

Key declarations:

- `DiscreteGroups.sglob.DzFp.eq_zero_of_eq_inv_mul`: A complex number fixed by multiplication by the inverse of a nonidentity additive-character value is zero.

  ```lean
  theorem eq_zero_of_eq_inv_mul {ψ : AddChar k Circle} {s : k} (hs : ψ s ≠ 1) {z : ℂ}
      (h : z = (((ψ s)⁻¹ : Circle) : ℂ) * z) : z = 0 := …
  ```
- `DiscreteGroups.sglob.DzFp.vanish_perm`: Under the stated equivariance and invariance hypotheses, the function vanishes at every product wb with w a nonidentity permutation matrix and b ∈ B⁻.

  ```lean
  theorem vanish_perm {k' : ℕ} (ψ : AddChar k Circle) (hψ : ψ ≠ 1) (W : GL (Fin (k' + 1)) k → ℂ)
      (h1 : ∀ u ∈ unipB k (Fin (k' + 1)), ∀ x, W (u * x) = (((ψ (superDiag u))⁻¹ : Circle) : ℂ) * W x)
      (h2 : ∀ b ∈ lowB k (k' + 1), ∀ x, W (x * b) = W x)
      (π : Equiv.Perm (Fin (k' + 1))) (hπ : π ≠ 1) (b : GL (Fin (k' + 1)) k) (hb : b ∈ lowB k (k' + 1)) :
      W (GroundTheory.Automorphic.permGL k π * b) = 0 := …
  ```
- `DiscreteGroups.sglob.DzFp.supp`: Under the same hypotheses, every matrix at which the function is nonzero factors as an upper unitriangular matrix times an invertible lower triangular matrix.

  ```lean
  theorem supp {m : ℕ} (ψ : AddChar k Circle) (hψ : ψ ≠ 1) (W : GL (Fin m) k → ℂ)
      (h1 : ∀ u ∈ unipB k (Fin m), ∀ x, W (u * x) = (((ψ (superDiag u))⁻¹ : Circle) : ℂ) * W x)
      (h2 : ∀ b ∈ lowB k m, ∀ x, W (x * b) = W x) (x : GL (Fin m) k) (hx : W x ≠ 0) :
      ∃ u ∈ unipB k (Fin m), ∃ b ∈ lowB k m, x = u * b := …
  ```

### Development.DiscreteGroups.GlobalIrreducibility.DzFpVec

16 import steps from Main · 141 lines · Checked against the code · [Open in the Lean viewer](https://riemannhypothesissolved.com/file/Development.DiscreteGroups.GlobalIrreducibility.DzFpVec)

**Constructs Whittaker eigenvectors and proves vanishing for ψ ≠ 1 on nonidentity lower triangular GL elements with the identity last row.**

Let χ(u) = ψ(∑ᵢ uᵢ,ᵢ₊₁) on the upper unitriangular subgroup U. A nonzero χ-equivariant functional ℓ forces χ to be multiplicative, and over a finite field, averaging with χ⁻¹ produces a χ-eigenvector v with ℓ(v) ≠ 0. For nontrivial ψ, the coefficient ℓ(ρ(Y)v) vanishes at every nonidentity lower triangular Y whose last row equals that of the identity. The proof uses the last row where Y differs from the identity to find u₁, u₂ in U with u₁Y = Yu₂ and distinct χ-values. DzFpSum uses this vanishing to retain only the identity term in a sum over the embedded lower triangular subgroup.

Key declarations:

- `DiscreteGroups.sglob.DzFp.exists_ne_zero_of_ne`: A nonzero complex-linear functional takes a nonzero value on some vector.

  ```lean
  theorem exists_ne_zero_of_ne {l : Module.Dual ℂ V} (h0 : l ≠ 0) : ∃ v, l v ≠ 0 := …
  ```
- `DiscreteGroups.sglob.DzFp.chi_mul`: The existence of a nonzero χ-equivariant functional implies that χ is multiplicative on U.

  ```lean
  theorem chi_mul {n : ℕ} {ψ : AddChar k Circle} {ρ : Representation ℂ (GL (Fin n) k) V} {l : Module.Dual ℂ V}
      (hl : IsFunctional ψ ρ l) (h0 : l ≠ 0) {u u' : GL (Fin n) k} (hu : u ∈ unipB k (Fin n))
      (hu' : u' ∈ unipB k (Fin n)) :
      (ψ (superDiag (u * u')) : ℂ) = ψ (superDiag u) * ψ (superDiag u') := …
  ```
- `DiscreteGroups.sglob.DzFp.exists_eigen`: Over a finite field, a nonzero χ-equivariant functional is nonzero on some simultaneous χ-eigenvector for U.

  ```lean
  theorem exists_eigen [Fintype k] [DecidableEq k] {n : ℕ} {ψ : AddChar k Circle}
      {ρ : Representation ℂ (GL (Fin n) k) V} {l : Module.Dual ℂ V} (hl : IsFunctional ψ ρ l) (h0 : l ≠ 0) :
      ∃ v, l v ≠ 0 ∧ ∀ u ∈ unipB k (Fin n), ρ u v = (ψ (superDiag u) : ℂ) • v := …
  ```
- `DiscreteGroups.sglob.DzFp.vanish_of_comm`: For a χ-equivariant functional ℓ and a χ-eigenvector v, the coefficient ℓ(ρ(Y)v) vanishes if u₁Y = Yu₂ for u₁, u₂ in U with χ(u₁) ≠ χ(u₂).

  ```lean
  theorem vanish_of_comm {n : ℕ} {ψ : AddChar k Circle} {ρ : Representation ℂ (GL (Fin n) k) V}
      {l : Module.Dual ℂ V} (hl : IsFunctional ψ ρ l) {v : V}
      (hv : ∀ u ∈ unipB k (Fin n), ρ u v = (ψ (superDiag u) : ℂ) • v) {Y u₁ u₂ : GL (Fin n) k}
      (h1 : u₁ ∈ unipB k (Fin n)) (h2 : u₂ ∈ unipB k (Fin n)) (hc : u₁ * Y = Y * u₂)
      (hne : ψ (superDiag u₁) ≠ ψ (superDiag u₂)) : l (ρ Y v) = 0 := …
  ```
- `DiscreteGroups.sglob.DzFp.vanish_lower`: For nontrivial ψ, a χ-equivariant functional ℓ and a χ-eigenvector v give ℓ(ρ(Y)v) = 0 at every nonidentity invertible lower triangular Y with the last row of the identity.

  ```lean
  theorem vanish_lower {m : ℕ} {ψ : AddChar k Circle} (hψ : ψ ≠ 1) {ρ : Representation ℂ (GL (Fin (m + 1)) k) V}
      {l : Module.Dual ℂ V} (hl : IsFunctional ψ ρ l) {v : V}
      (hv : ∀ u ∈ unipB k (Fin (m + 1)), ρ u v = (ψ (superDiag u) : ℂ) • v) (Y : GL (Fin (m + 1)) k)
      (hlow : ∀ r c : Fin (m + 1), r < c → (Y : Matrix (Fin (m + 1)) (Fin (m + 1)) k) r c = 0)
      (hlast : ∀ c, (Y : Matrix (Fin (m + 1)) (Fin (m + 1)) k) (Fin.last m) c =
        (1 : Matrix (Fin (m + 1)) (Fin (m + 1)) k) (Fin.last m) c) (hY : Y ≠ 1) : l (ρ Y v) = 0 := …
  ```

### Development.DiscreteGroups.GlobalIrreducibility.DzGenFun

16 import steps from Main · 63 lines · Checked against the code · [Open in the Lean viewer](https://riemannhypothesissolved.com/file/Development.DiscreteGroups.GlobalIrreducibility.DzGenFun)

**Defines the normalized principal series induced from the trivial character and proves properties of the inverse Whittaker weight.**

For GLₘ(k) over a nonarchimedean local field, smoothness gives each principal-series function an open right stabilizer and hence local constancy. The weight c ↦ ψ(−∑ᵢ cᵢ,ᵢ₊₁) is multiplicative on the upper unitriangular subgroup, continuous for continuous ψ, and trivial on the first principal congruence subgroup when ψ is trivial on the maximal ideal. ExistsCellFunctional uses these facts to satisfy each finite set of equivariance constraints by Haar integration on a compact unipotent subgroup, then applies exists_functional_of_finite to obtain a fully equivariant functional nonzero on the cell vector.

Key declarations:

- `DiscreteGroups.sglob.DzType.PS`: The principal series is the smooth normalized induction of the trivial character from the standard Borel of GLₘ(k).

  ```lean
  abbrev PS (k : Type) [Field k] [ValuativeRel k] [TopologicalSpace k] [IsNonarchimedeanLocalField k] (m : ℕ) : Type :=
    IndSp (eOne m) (ofChar (1 : Levi k (fun _ : Fin m => Fin 1) →* ℂˣ))
  ```
- `DiscreteGroups.sglob.DzType.continuous_ps`: Every function in this principal series is continuous on GLₘ(k).

  ```lean
  theorem continuous_ps (f : PS k m) : Continuous f.1.1 := …
  ```
- `DiscreteGroups.sglob.DzType.thC_mul`: The inverse additive-character weight of the first superdiagonal sum is multiplicative on upper unitriangular matrices.

  ```lean
  theorem thC_mul (ψ : AddChar k Circle) {a b : GL (Fin m) k} (ha : a ∈ unipB k (Fin m)) (hb : b ∈ unipB k (Fin m)) :
      thC ψ (a * b) = thC ψ a * thC ψ b := …
  ```
- `DiscreteGroups.sglob.DzType.continuous_thC`: The weight is continuous on GLₘ(k) whenever the additive character is continuous.

  ```lean
  theorem continuous_thC (ψ : AddChar k Circle) (hψc : Continuous ψ) : Continuous (thC ψ : GL (Fin m) k → ℂ) := …
  ```
- `DiscreteGroups.sglob.DzType.thC_of_mem_KOne`: The weight equals one on the first principal congruence subgroup if the additive character is trivial on the maximal ideal.

  ```lean
  theorem thC_of_mem_KOne (ψ : AddChar k Circle) (hψ : ∀ x, valuation k x < 1 → ψ x = 1) {c : GL (Fin m) k}
      (hc : c ∈ KOne k (Fin m)) : thC ψ c = 1 := …
  ```

### Development.DiscreteGroups.GlobalIrreducibility.DzPinA

16 import steps from Main · 95 lines · Checked against the code · [Open in the Lean viewer](https://riemannhypothesissolved.com/file/Development.DiscreteGroups.GlobalIrreducibility.DzPinA)

**Relates complex and arithmetic Gauss sums, and derives base-p digit-sum identities from equal powers of Gauss-sum products.**

Every complex multiplicative character of a finite cyclic group is a power of a fixed faithful character, as follows by evaluating at a generator. A compatible ring homomorphism to ℂ carries the arithmetic Gauss sum to the complex sum with additive character pulled back by the finite-field trace. Applying the Stickelberger valuation formula to equal positive powers of two products of Gauss sums gives equality of the corresponding sums of base-p digit sums. Congruence lemmas record how to reduce character exponents and undo multiplication by an invertible residue.

Key declarations:

- `DiscreteGroups.sglob.DzPin.pow_eq_pow_of_modEq`: If xᴺ = 1, then exponents congruent modulo N give equal powers of x.

  ```lean
  theorem pow_eq_pow_of_modEq {M : Type*} [Monoid M] {x : M} {N a b : ℕ} (h : x ^ N = 1)
      (hab : a ≡ b [MOD N]) : x ^ a = x ^ b := …
  ```
- `DiscreteGroups.sglob.DzPin.modEq_twist`: If tu ≡ 1 modulo N, then multiplying the residue of uk + be by t gives k + e(tb) modulo N.

  ```lean
  theorem modEq_twist {N t u k b e : ℕ} (htu : t * u ≡ 1 [MOD N]) :
      t * ((u * k + b * e) % N) ≡ k + e * (t * b) [MOD N] := …
  ```
- `DiscreteGroups.sglob.DzPin.exists_eq_pow_of_injective`: Every complex character of a finite cyclic group is a nonnegative integral power of any faithful complex character of that group.

  ```lean
  theorem exists_eq_pow_of_injective {G : Type*} [CommGroup G] [Finite G] [IsCyclic G]
      (Ω θ : G →* ℂˣ) (hΩ : Function.Injective Ω) : ∃ k : ℕ, θ = Ω ^ k := …
  ```
- `DiscreteGroups.sglob.DzPin.dsum_eq_of_pow_eq`: In the Stickelberger Gauss-sum datum, equality of the rth powers of g(a₁)g(a₂) and g(a₃)g(a₄) for r > 0 and indices below pᶠ − 1 forces equality of the two sums of base-p digit sums.

  ```lean
  theorem dsum_eq_of_pow_eq {p f : ℕ} [Fact p.Prime] {k : Type*} [Field k] [Fintype k]
      [Algebra (ZMod p) k] {A : Type*} [CommRing A] [IsDedekindDomain A] {Q : HeightOneSpectrum A}
      (D : Stick.GSDatum p f k A Q) {a₁ a₂ a₃ a₄ r : ℕ} (h₁ : a₁ < p ^ f - 1) (h₂ : a₂ < p ^ f - 1)
      (h₃ : a₃ < p ^ f - 1) (h₄ : a₄ < p ^ f - 1) (hr : 0 < r)
      (h : (D.g a₁ * D.g a₂) ^ r = (D.g a₃ * D.g a₄) ^ r) :
      Stick.dsum p a₁ + Stick.dsum p a₂ = Stick.dsum p a₃ + Stick.dsum p a₄ := …
  ```
- `DiscreteGroups.sglob.DzPin.gs_eq`: A ring homomorphism to ℂ matching the chosen root of unity and multiplicative character sends the arithmetic Gauss sum to the complex Gauss sum with inverse multiplicative character and trace-pulled additive character.

  ```lean
  theorem gs_eq {g : ℕ} [Fact g.Prime] (ψ₀ : AddChar (ZMod g) Circle) {K : Type*} [Field K]
      [Fintype K] [Algebra (ZMod g) K] {A : Type*} [CommRing A] (Φ : A →+* ℂ) (ω : MulChar K A)
      (ζ : A) (hζ : ζ ^ g = 1) (hΦζ : Φ ζ = ((ψ₀ 1 : Circle) : ℂ)) (η : Kˣ →* ℂˣ) (a : ℕ)
      (hη : ∀ z : Kˣ, ((η z : ℂˣ) : ℂ) = Φ (ω z) ^ a) :
      (∑ᶠ z : Kˣ, (((η⁻¹) z : ℂˣ) : ℂ) * ((ψ₀ (Algebra.trace (ZMod g) K (z : K)) : Circle) : ℂ)) =
        Φ (gaussSum (ω ^ a)⁻¹ (Stick.psi g K ζ hζ)) := …
  ```

### Development.DiscreteGroups.GlobalIrreducibility.DzStickTeich

16 import steps from Main · 121 lines · Checked against the code · [Open in the Lean viewer](https://riemannhypothesissolved.com/file/Development.DiscreteGroups.GlobalIrreducibility.DzStickTeich)

**Constructs power-residue characters by lifting roots of unity from a quotient ring.**

Reduction modulo an ideal P of a domain is injective on nth roots of unity when n has nonzero image, by the factorization of aⁿ − bⁿ, so primitive roots retain their order. If F_q embeds into the quotient by a prime ideal P, n divides q − 1, and the domain contains a primitive nth root, the map x ↦ x^((q − 1)/n) lifts to a multiplicative character whose order divides n. Uniqueness of the root-of-unity lifts gives multiplicativity. DzPinB uses preservation of primitive roots to construct the finite-field embedding and takes n = q − 1 to lift its multiplicative character.

Key declarations:

- `DiscreteGroups.sglob.Stick.eq_of_pow_eq_one_of_mk_eq`: Two nth roots of unity in a domain with the same reduction modulo P are equal if n has nonzero image in the quotient.

  ```lean
  theorem eq_of_pow_eq_one_of_mk_eq {A : Type*} [CommRing A] [IsDomain A] (P : Ideal A) {n : ℕ}
      (hn : (n : A) ∉ P) {a b : A} (ha : a ^ n = 1) (hb : b ^ n = 1)
      (h : Ideal.Quotient.mk P a = Ideal.Quotient.mk P b) : a = b := …
  ```
- `DiscreteGroups.sglob.Stick.natCast_not_mem_of_dvd`: If F_q maps into the quotient by a prime ideal P, every divisor of q − 1 has nonzero image in the quotient.

  ```lean
  theorem natCast_not_mem_of_dvd {A : Type*} [CommRing A] (P : Ideal A) [P.IsPrime] {k : Type*}
      [Field k] [Fintype k] (ι : k →+* A ⧸ P) {n : ℕ} (hn : n ∣ Fintype.card k - 1) :
      (n : A) ∉ P := …
  ```
- `DiscreteGroups.sglob.Stick.isPrimitiveRoot_mk`: A primitive nth root of unity in a domain remains primitive after reduction modulo an ideal P whenever n has nonzero image.

  ```lean
  theorem isPrimitiveRoot_mk {A : Type*} [CommRing A] [IsDomain A] (P : Ideal A) {n : ℕ}
      (hn : (n : A) ∉ P) {μ : A} (hμ : IsPrimitiveRoot μ n) :
      IsPrimitiveRoot (Ideal.Quotient.mk P μ) n := …
  ```
- `DiscreteGroups.sglob.Stick.exists_powResChar`: For a given embedding ι of F_q into the quotient by P and a primitive nth root in the domain with n dividing q − 1, there is a multiplicative character ρ with ρⁿ = 1 whose reduction at each x is ι(x)^((q − 1)/n).

  ```lean
  theorem exists_powResChar {A : Type*} [CommRing A] [IsDomain A] (P : Ideal A) [P.IsPrime]
      {k : Type*} [Field k] [Fintype k] (ι : k →+* A ⧸ P) {n : ℕ} (hn : n ∣ Fintype.card k - 1)
      {μ : A} (hμ : IsPrimitiveRoot μ n) :
      ∃ ρ : MulChar k A,
        (∀ x, Ideal.Quotient.mk P (ρ x) = ι x ^ ((Fintype.card k - 1) / n)) ∧ ρ ^ n = 1 := …
  ```

### Development.DiscreteGroups.GlobalIrreducibility.ExistsElliptic

16 import steps from Main · 78 lines · Checked against the code · [Open in the Lean viewer](https://riemannhypothesissolved.com/file/Development.DiscreteGroups.GlobalIrreducibility.ExistsElliptic)

**Realizes full-degree finite-field elements as elliptic matrix eigenvalues and bounds the exceptional Frobenius fixed sets.**

For prime g and K/F_g of degree n, multiplication by a unit z of degree n gives a matrix in GLₙ(F_g) whose characteristic polynomial equals the minimal polynomial of z, by Cayley–Hamilton and degree comparison. A unit of smaller degree lies in a proper subfield and is fixed by the ith power of Frobenius for some 1 ≤ i ≤ ⌊n/2⌋. For each i > 0, the fixed units are roots of X^(g^i) − X, so there are at most g^i of them. OrbitOfAgree uses these lemmas to bound the exceptional set and apply its character-agreement hypothesis to the remaining units.

Key declarations:

- `DiscreteGroups.sglob.DzType.Kon.exists_elliptic`: Every unit of degree n in a degree-n extension of F_g is a root of the irreducible characteristic polynomial of some matrix in GLₙ(F_g).

  ```lean
  theorem exists_elliptic [FiniteDimensional (ZMod g) K] (hfr : Module.finrank (ZMod g) K = n) (z : Kˣ)
      (hz : (minpoly (ZMod g) (z : K)).natDegree = n) :
      ∃ y : Gn g n, Irreducible (y : Mt g n).charpoly ∧ aeval (z : K) (y : Mt g n).charpoly = 0 := …
  ```
- `DiscreteGroups.sglob.DzType.Kon.bad_of_deg`: A unit of degree less than n in a degree-n extension of F_g satisfies z^(g^i) = z for some 1 ≤ i ≤ ⌊n/2⌋.

  ```lean
  theorem bad_of_deg [FiniteDimensional (ZMod g) K] (hn : 0 < n) (hfr : Module.finrank (ZMod g) K = n) (z : Kˣ)
      (hz : (minpoly (ZMod g) (z : K)).natDegree ≠ n) : ∃ i ∈ Finset.Icc 1 (n / 2), z ^ g ^ i = z := …
  ```
- `DiscreteGroups.sglob.DzType.Kon.card_fixed_le`: For each positive i, at most g^i units in a finite extension of F_g satisfy z^(g^i) = z.

  ```lean
  theorem card_fixed_le [Fintype K] [DecidableEq K] (i : ℕ) (hi : 0 < i) :
      (Finset.univ.filter fun z : Kˣ => z ^ g ^ i = z).card ≤ g ^ i := …
  ```

### Development.DiscreteGroups.GlobalIrreducibility.IsRowFixConj

16 import steps from Main · 90 lines · Checked against the code · [Open in the Lean viewer](https://riemannhypothesissolved.com/file/Development.DiscreteGroups.GlobalIrreducibility.IsRowFixConj)

**Proves injectivity, a trace formula, and a cyclic conjugation identity for a finite-field matrix parametrization.**

Over the prime field F_g, the parametrization φ multiplies a cyclic permutation matrix, an identity matrix with its last row replaced, and an upper unitriangular factor. The parameters are recovered from matrix entries, and the trace of φ minus its (0,0) entry equals the first superdiagonal sum of the upper unitriangular factor. Cyclic conjugation moves the modified last row to the first row and shifts the prescribed zeros. RhoInvMulSelf uses these identities to reindex and evaluate a finite sum using Whittaker equivariance and row invariance.

Key declarations:

- `DiscreteGroups.sglob.DzFe.sd_eq`: The first superdiagonal sum of a matrix in GLₘ₊₁(F_g) is the sum of its entries at (i,i+1) for i from 0 through m−1.

  ```lean
  theorem sd_eq (A : Gn g (m + 1)) :
      superDiag A = ∑ l : Fin m, (A : Mt g (m + 1)) (Fin.castSucc l) (Fin.succ l) := …
  ```
- `DiscreteGroups.sglob.DzFe.trace_phi`: For each parameter tuple, the trace of its image under φ minus the (0,0) entry equals the first superdiagonal sum of its upper unitriangular factor.

  ```lean
  theorem trace_phi (j : ℕ) (p : (SIdx m → ZMod g) × (ZMod g)ˣ × (WIdx m j → ZMod g)) :
      trace ((phi j p : Gn g (m + 1)) : Mt g (m + 1)) - ((phi j p : Gn g (m + 1)) : Mt g (m + 1)) 0 0 =
        superDiag (umGL p.1) := …
  ```
- `DiscreteGroups.sglob.DzFe.isRowFix_conj`: If an invertible matrix equals the identity off its last row and that row vanishes in columns 0 through j, then its cyclic conjugate equals the identity off its first row and that row vanishes in columns 1 through j+1.

  ```lean
  theorem isRowFix_conj {j : ℕ} (r : Fin (m + 1) → ZMod g) (hr : ∀ l : Fin (m + 1), (l : ℕ) ≤ j → r l = 0)
      (hr0 : r (Fin.last m) ≠ 0) : IsRowFix j (cyc g (m + 1) * hpGL r hr0 * (cyc g (m + 1))⁻¹) := …
  ```
- `DiscreteGroups.sglob.DzFe.phi_inj`: For each fixed j, equality of the matrices parametrized by φ forces equality of all three parameters.

  ```lean
  theorem phi_inj {j : ℕ} {p q : (SIdx m → ZMod g) × (ZMod g)ˣ × (WIdx m j → ZMod g)} (h : phi j p = phi j q) :
      p = q := …
  ```

### Development.DiscreteGroups.GlobalIrreducibility.LongEltCornerEqCyc

16 import steps from Main · 90 lines · Checked against the code · [Open in the Lean viewer](https://riemannhypothesissolved.com/file/Development.DiscreteGroups.GlobalIrreducibility.LongEltCornerEqCyc)

**Factors a cyclic shift into two reversal matrices and characterizes a lower triangular block embedding by its entries.**

Over ℤ/gℤ, reversing the first m coordinates and then all m+1 coordinates gives the forward cyclic shift, as verified entry by entry. For prime g, an invertible matrix whose last row and column agree with the identity and whose upper-left block is lower triangular has the form diag(b, 1) with b invertible, by determinant expansion along the last row. RowFixConj uses this block criterion to identify the conjugates of its row- and column-constrained matrices.

Key declarations:

- `DiscreteGroups.sglob.DzFe.longElt_corner_eq_cyc`: If R_d reverses d coordinates, then Rₘ₊₁ diag(Rₘ, 1) sends each coordinate basis vector to the next one cyclically.

  ```lean
  theorem longElt_corner_eq_cyc (m : ℕ) :
      longElt (m + 1) (ZMod g) * corner (longElt m (ZMod g)) = cyc g (m + 1) := …
  ```
- `DiscreteGroups.sglob.DzFe.exists_corner`: An invertible matrix over F_g with the last row and column of the identity and a lower triangular upper-left block equals diag(b, 1) for some invertible lower triangular b.

  ```lean
  theorem exists_corner [Fact g.Prime] {m : ℕ} (M : GL (Fin (m + 1)) (ZMod g))
      (hr : ∀ l, (M : Matrix (Fin (m + 1)) (Fin (m + 1)) (ZMod g)) (Fin.last m) l = if l = Fin.last m then 1 else 0)
      (hc : ∀ i, (M : Matrix (Fin (m + 1)) (Fin (m + 1)) (ZMod g)) i (Fin.last m) = if i = Fin.last m then 1 else 0)
      (hlow : ∀ i l : Fin m, i < l → (M : Matrix (Fin (m + 1)) (Fin (m + 1)) (ZMod g)) i.castSucc l.castSucc = 0) :
      ∃ b : GL (Fin m) (ZMod g), (∀ i l : Fin m, i < l → (b : Matrix (Fin m) (Fin m) (ZMod g)) i l = 0) ∧
        corner b = M := …
  ```

### Development.DiscreteGroups.GlobalIrreducibility.MassEqZeroOfNotPrimary

16 import steps from Main · 149 lines · Checked against the code · [Open in the Lean viewer](https://riemannhypothesissolved.com/file/Development.DiscreteGroups.GlobalIrreducibility.MassEqZeroOfNotPrimary)

**Proves vanishing of nonprimary characteristic-polynomial masses and a Fourier formula for the trace pairing on finite GL.**

On a positive-dimensional space over a finite field, the Möbius inverse of a root power sum has zero total mass over endomorphisms with a given characteristic polynomial outside the positive powers of monic irreducibles. For the pairing with ψ of the trace, assume θ is injective on the nonzero elements of the algebraic closure. Grouping by characteristic polynomial, expanding the trace test function on primary polynomials, and using root-power-sum orthogonality reduce the pairing to a Frobenius-weighted Fourier sum. Periodicity and Frobenius invariance then give the order of the general linear group times the conjugate of the corresponding normalized Fourier coefficient.

Key declarations:

- `DiscreteGroups.sglob.DzType.Kon.aC_frob`: For the trace test function in positive dimension, multiplying the Fourier index by any power of the base-field cardinality preserves the coefficient.

  ```lean
  theorem aC_frob {n : ℕ} (hn : 0 < n) (θ : AlgebraicClosure F →* ℂ) (ψ : F → ℂ) (k i : ℕ) :
      aC n θ (hT n ψ) (k * Nat.card F ^ i) = aC n θ (hT n ψ) k := …
  ```
- `DiscreteGroups.sglob.DzType.Kon.sum_filter_aC`: Summing conjugate Fourier coefficients over residues modulo qⁿ − 1, weighted by their multiplicities among kqⁱ for 0 ≤ i < n, gives n times the conjugate coefficient at k.

  ```lean
  theorem sum_filter_aC {n : ℕ} (hn : 0 < n) (θ : AlgebraicClosure F →* ℂ) (ψ : F → ℂ) (k : ℕ) :
      ∑ l ∈ Finset.range (Nat.card F ^ n - 1), star (aC n θ (hT n ψ) l) *
        (((Finset.range n).filter fun i => k * Nat.card F ^ i ≡ l [MOD Nat.card F ^ n - 1]).card : ℂ) =
        (n : ℂ) * star (aC n θ (hT n ψ) k) := …
  ```
- `DiscreteGroups.sglob.DzType.Kon.mass_eq_zero_of_not_primary`: In positive dimension, the characteristic-polynomial mass of the Möbius-inverted root power sum vanishes unless the polynomial is a positive power of a monic irreducible.

  ```lean
  theorem mass_eq_zero_of_not_primary (V : Type) [AddCommGroup V] [Module F V] [FiniteDimensional F V]
      (hn : 0 < Module.finrank F V) (θ : AlgebraicClosure F →* ℂ) (k : ℕ) (P : F[X])
      (hP : ¬ ∃ (f : F[X]) (m : ℕ), f.Monic ∧ Irreducible f ∧ 0 < m ∧ P = f ^ m) :
      mass (psi (rootSum θ k) V) P = 0 := …
  ```
- `DiscreteGroups.sglob.DzType.Kon.finsum_mass_eq`: A weighted mass sum over monic polynomials of the prescribed degree with nonzero constant term reduces to the finite set of such polynomials realized by endomorphisms.

  ```lean
  theorem finsum_mass_eq (V : Type) [AddCommGroup V] [Module F V] [FiniteDimensional F V]
      (φ : Module.End F V → ℂ) (X : F[X] → ℂ) :
      ∑ᶠ P ∈ {P : F[X] | P.Monic ∧ P.natDegree = Module.finrank F V ∧ P.coeff 0 ≠ 0}, mass φ P * X P =
        ∑ P ∈ polys (F := F) V, mass φ P * X P := …
  ```
- `DiscreteGroups.sglob.DzType.Kon.ipGL_psi_trace`: For positive dimension and θ injective on nonzero elements, the pairing of the Möbius-inverted root power sum with ψ of the trace equals the group order times the conjugate Fourier coefficient at k.

  ```lean
  theorem ipGL_psi_trace (V : Type) [AddCommGroup V] [Module F V] [FiniteDimensional F V]
      (hn : 0 < Module.finrank F V) (θ : AlgebraicClosure F →* ℂ)
      (hθ : ∀ x y : AlgebraicClosure F, x ≠ 0 → y ≠ 0 → θ x = θ y → x = y) (k : ℕ) (ψ : F → ℂ) :
      ipGL (psi (rootSum θ k) V) (fun x => ψ (-(LinearMap.charpoly x).nextCoeff)) =
        glCard F (Module.finrank F V) * star (aC (Module.finrank F V) θ (hT (Module.finrank F V) ψ) k) := …
  ```

### Development.DiscreteGroups.GlobalIrreducibility.CellVecFixed

17 import steps from Main · 65 lines · Checked against the code · [Open in the Lean viewer](https://riemannhypothesissolved.com/file/Development.DiscreteGroups.GlobalIrreducibility.CellVecFixed)

**Constructs an S-fixed principal-series vector on a double coset and computes its restriction along the long Weyl element.**

For GLₘ over a nonarchimedean local field, the cell function on B w₀ S gives a vector in the normalized principal series induced from the trivial character of the standard Borel B. If S contains the first principal congruence subgroup K₁ and every element of S has unit diagonal entries, right S-invariance gives both smoothness and S-fixedness. If S is also integral with strictly upper triangular entries in the maximal ideal, the value at w₀c⁻¹ for upper unitriangular c is the indicator of K₁, by a valuation estimate for a lower triangular times upper unitriangular product.

Key declarations:

- `DiscreteGroups.sglob.DzType.cellVec`: The cell function on B w₀ S defines a smooth normalized principal-series vector when S contains K₁ and its elements have unit diagonal entries.

  ```lean
  def cellVec (hS1 : KOne k (Fin m) ≤ S)
      (hS4 : ∀ y ∈ S, ∀ a, valuation k (((y : GL (Fin m) k) : Matrix (Fin m) (Fin m) k) a a) = 1) :
      IndSp (eOne m) (ofChar (1 : Levi k (fun _ : Fin m => Fin 1) →* ℂˣ)) :=
    ⟨⟨cellFun S, fun p g => by
        rw [cellFun_mul_left hS4]
        simp [dl]⟩,
      mem_smoothPart_of_nhds (Filter.mem_of_superset (GlobalTheory.StepData.isOpen_KOne.mem_nhds (one_mem _)) fun x hx =>
        Subtype.ext (funext fun g => cellFun_mul_right hS4 (hS1 hx) g))⟩
  ```
- `DiscreteGroups.sglob.DzType.cellVec_apply`: The underlying function of the principal-series vector is the cell function for S.

  ```lean
  theorem cellVec_apply (g : GL (Fin m) k) : (cellVec hS1 hS4).1.1 g = cellFun S g := …
  ```
- `DiscreteGroups.sglob.DzType.cellVec_fixed`: Every element of S fixes the cell vector under right translation.

  ```lean
  theorem cellVec_fixed {s : GL (Fin m) k} (hs : s ∈ S) : psOne k m s (cellVec hS1 hS4) = cellVec hS1 hS4 := …
  ```
- `DiscreteGroups.sglob.DzType.cellFun_wRev`: If S contains K₁, is contained in KO, and every element of S has unit diagonal entries and strictly upper triangular entries in the maximal ideal, the value at w₀c⁻¹ is 1 for upper unitriangular c in K₁ and 0 otherwise.

  ```lean
  theorem cellFun_wRev (hS2 : S ≤ KO k (Fin m))
      (hS3 : ∀ y ∈ S, ∀ a b, a < b → valuation k (((y : GL (Fin m) k) : Matrix (Fin m) (Fin m) k) a b) < 1)
      {c : GL (Fin m) k} (hc : c ∈ unipB k (Fin m)) :
      cellFun S (wRev k m * c⁻¹) = if c ∈ KOne k (Fin m) then 1 else 0 := …
  ```

### Development.DiscreteGroups.GlobalIrreducibility.DzFeCyc

17 import steps from Main · 110 lines · Checked against the code · [Open in the Lean viewer](https://riemannhypothesissolved.com/file/Development.DiscreteGroups.GlobalIrreducibility.DzFeCyc)

**Collects entrywise lemmas for cyclic permutation matrices, their powers, and conjugation over ℤ/gℤ.**

Left and right multiplication by a cyclic permutation matrix reindex rows and columns, and induction shows that conjugation by its kth power applies the inverse kth rotation to both indices. The rotation formulas track wraparound in both directions, and the nth power of the cyclic permutation matrix in dimension n ≥ 1 is the identity.

Key declarations:

- `DiscreteGroups.sglob.DzFe.conj_apply`: Conjugation by the kth power of the cyclic permutation matrix evaluates the original matrix at the row and column indices shifted backward by k.

  ```lean
  theorem conj_apply {n : ℕ} (k : ℕ) (M : GL (Fin n) (ZMod g)) (i l : Fin n) :
      ((cyc g n ^ k * M * (cyc g n ^ k)⁻¹ : GL (Fin n) (ZMod g)) : Matrix (Fin n) (Fin n) (ZMod g)) i l =
        (M : Matrix (Fin n) (Fin n) (ZMod g)) ((finRotate n ^ k)⁻¹ i) ((finRotate n ^ k)⁻¹ l) := …
  ```
- `DiscreteGroups.sglob.DzFe.cyc_pow_apply`: The entry in row i and column l of the kth power is 1 if i is the kth forward rotation of l and 0 otherwise.

  ```lean
  theorem cyc_pow_apply {n : ℕ} (k : ℕ) (i l : Fin n) :
      ((cyc g n ^ k : GL (Fin n) (ZMod g)) : Matrix (Fin n) (Fin n) (ZMod g)) i l =
        if i = (finRotate n ^ k) l then 1 else 0 := …
  ```
- `DiscreteGroups.sglob.DzFe.rot_val`: For 0 ≤ k < n, the forward kth rotation adds k to the index and subtracts n if the sum reaches n.

  ```lean
  theorem rot_val {m : ℕ} (a : Fin (m + 1)) : ∀ k ≤ m,
      ((finRotate (m + 1) ^ k) a : ℕ) = (a : ℕ) + k ∨ ((finRotate (m + 1) ^ k) a : ℕ) + (m + 1) = (a : ℕ) + k := …
  ```
- `DiscreteGroups.sglob.DzFe.rot_inv_val`: For 0 ≤ k < n, the inverse kth rotation subtracts k from the index and adds n if the difference is negative.

  ```lean
  theorem rot_inv_val {m k : ℕ} (hk : k ≤ m) (i : Fin (m + 1)) :
      (i : ℕ) = (((finRotate (m + 1) ^ k)⁻¹ i : Fin (m + 1)) : ℕ) + k ∨
        (i : ℕ) + (m + 1) = (((finRotate (m + 1) ^ k)⁻¹ i : Fin (m + 1)) : ℕ) + k := …
  ```
- `DiscreteGroups.sglob.DzFe.cyc_pow_eq_one`: The nth power of the cyclic permutation matrix in dimension n ≥ 1 is the identity.

  ```lean
  theorem cyc_pow_eq_one (m : ℕ) : cyc g (m + 1) ^ (m + 1) = 1 := …
  ```

### Development.DiscreteGroups.GlobalIrreducibility.DzGenLin

17 import steps from Main · 49 lines · Checked against the code · [Open in the Lean viewer](https://riemannhypothesissolved.com/file/Development.DiscreteGroups.GlobalIrreducibility.DzGenLin)

**Proves that finite satisfiability of equivariance yields a single equivariant functional nonzero on a prescribed vector.**

For a complex representation ρ, impose the relations ℓ(ρ(u)x) = θ(u)ℓ(x) for all u in a specified subset of the group and all x. Finite satisfiability with ℓ(v) ≠ 0 keeps v outside the span of the relation vectors, since each linear combination involves only finitely many group elements. A functional on the quotient that is nonzero on the class of v pulls back to one satisfying every relation.

Key declarations:

- `DiscreteGroups.sglob.DzType.exists_functional_of_finite`: If every finite subset of N admits a complex-linear functional satisfying the prescribed equivariance on that subset and nonzero on v, then a single such functional satisfies equivariance on all of N.

  ```lean
  theorem exists_functional_of_finite {G X : Type} [Group G] [AddCommGroup X] [Module ℂ X]
      (ρ : Representation ℂ G X) (N : Set G) (θ : G → ℂ) (v : X)
      (h : ∀ F : Finset G, (↑F ⊆ N) →
        ∃ Λ : Module.Dual ℂ X, (∀ u ∈ F, ∀ x, Λ (ρ u x) = θ u * Λ x) ∧ Λ v ≠ 0) :
      ∃ l : Module.Dual ℂ X, (∀ u ∈ N, ∀ x, l (ρ u x) = θ u * l x) ∧ l v ≠ 0 := …
  ```

### Development.DiscreteGroups.GlobalIrreducibility.DzKFour

17 import steps from Main · 151 lines · Checked against the code · [Open in the Lean viewer](https://riemannhypothesissolved.com/file/Development.DiscreteGroups.GlobalIrreducibility.DzKFour)

**Proves Fourier inversion on a finite-field torus and expands the trace test function on primary polynomials.**

For a field of q elements, the module defines normalized Fourier coefficients on the (qⁿ − 1)st roots of unity in its algebraic closure. For n > 0, geometric-sum orthogonality gives inversion for a multiplicative monoid homomorphism θ from the algebraic closure to ℂ that is injective on nonzero elements. The trace test function is Frobenius-invariant because the minimal polynomial is unchanged under Frobenius. Applying inversion at the first n Frobenius iterates of a root, counting repetitions, gives a root-power-sum expansion on primary polynomials of degree n with nonzero constant term. MassEqZeroOfNotPrimary uses this expansion to evaluate a pairing against a function of the trace.

Key declarations:

- `DiscreteGroups.sglob.DzType.Kon.hT`: At β with minimal polynomial f of degree d, the trace test function applies ψ to the negative of the next-to-leading coefficient of the polynomial f^⌊n/d⌋.

  ```lean
  def hT (n : ℕ) (ψ : F → ℂ) (β : AlgebraicClosure F) : ℂ :=
    ψ (-((minpoly F β) ^ (n / (minpoly F β).natDegree)).nextCoeff)
  ```
- `DiscreteGroups.sglob.DzType.Kon.aC`: The coefficient at l is the normalized sum of the test function against the conjugate of θ raised to l on the (qⁿ − 1)st roots of unity.

  ```lean
  def aC (n : ℕ) (θ : AlgebraicClosure F →* ℂ) (h : AlgebraicClosure F → ℂ) (l : ℕ) : ℂ :=
    ((Nat.card F ^ n - 1 : ℕ) : ℂ)⁻¹ * ∑ᶠ β ∈ tor F n, h β * star (θ β ^ l)
  ```
- `DiscreteGroups.sglob.DzType.Kon.sum_aC`: For n > 0 and a multiplicative monoid homomorphism θ injective on nonzero elements, summing the Fourier coefficients against the corresponding powers of θ recovers the function on the torus.

  ```lean
  theorem sum_aC {n : ℕ} (hn : 0 < n) (θ : AlgebraicClosure F →* ℂ)
      (hθ : ∀ x y : AlgebraicClosure F, x ≠ 0 → y ≠ 0 → θ x = θ y → x = y) (h : AlgebraicClosure F → ℂ)
      {β : AlgebraicClosure F} (hβ : β ∈ tor F n) :
      ∑ l ∈ Finset.range (Nat.card F ^ n - 1), aC n θ h l * θ β ^ l = h β := …
  ```
- `DiscreteGroups.sglob.DzType.Kon.hT_pow_card`: The trace test function is invariant under every iterate of q-power Frobenius.

  ```lean
  theorem hT_pow_card (n : ℕ) (ψ : F → ℂ) (β : AlgebraicClosure F) (i : ℕ) :
      hT n ψ (β ^ Nat.card F ^ i) = hT n ψ β := …
  ```
- `DiscreteGroups.sglob.DzType.Kon.expand_primary`: For a multiplicative monoid homomorphism θ injective on nonzero elements and a polynomial P of degree n > 0 with nonzero constant term that is a positive power of a monic irreducible, the Fourier-weighted root power sums equal n times ψ evaluated at the negative next-to-leading coefficient of P.

  ```lean
  theorem expand_primary {n : ℕ} (hn : 0 < n) (θ : AlgebraicClosure F →* ℂ)
      (hθ : ∀ x y : AlgebraicClosure F, x ≠ 0 → y ≠ 0 → θ x = θ y → x = y) (ψ : F → ℂ)
      (P f : F[X]) (m : ℕ) (hf : f.Monic) (hirr : Irreducible f) (hm : 0 < m) (hP : P = f ^ m)
      (hdeg : P.natDegree = n) (h0 : P.coeff 0 ≠ 0) :
      (n : ℂ) * ψ (-P.nextCoeff) =
        ∑ l ∈ Finset.range (Nat.card F ^ n - 1), aC n θ (hT n ψ) l * rootSum θ l P := …
  ```

### Development.DiscreteGroups.GlobalIrreducibility.DzKOrb

17 import steps from Main · 79 lines · Checked against the code · [Open in the Lean viewer](https://riemannhypothesissolved.com/file/Development.DiscreteGroups.GlobalIrreducibility.DzKOrb)

**Defines power orbit sums of finite-field characters, proves bounds and orthogonality, and shows periodicity for |K| = gⁿ and g > 0.**

For a natural exponent base g, the orbit sum adds θ(z^(g^i)) over 0 ≤ i < n, and each character value has modulus one, giving a pointwise bound of n. Expanding the product of two orbit sums at z and z⁻¹ and applying character orthogonality gives |Kˣ| times the number of ordered pairs of indices for which the powered characters coincide. When |K| = gⁿ and g > 0, the identity z^(gⁿ) = z makes the character powers periodic in the iteration index modulo n.

Key declarations:

- `DiscreteGroups.sglob.DzType.Kon.fo`: The orbit sum at z is the sum of θ(z^(g^i)) for 0 ≤ i < n.

  ```lean
  def fo (g n : ℕ) {K : Type} [Field K] (θ : Kˣ →* ℂˣ) (z : Kˣ) : ℂ :=
    ∑ i ∈ Finset.range n, ((θ (z ^ g ^ i) : ℂˣ) : ℂ)
  ```
- `DiscreteGroups.sglob.DzType.Kon.charSum`: A multiplicative character of Kˣ sums to |Kˣ| if trivial and to zero otherwise.

  ```lean
  theorem charSum (χ : Kˣ →* ℂˣ) :
      ∑ z : Kˣ, ((χ z : ℂˣ) : ℂ) = if χ = 1 then (Fintype.card Kˣ : ℂ) else 0 := …
  ```
- `DiscreteGroups.sglob.DzType.Kon.norm_fo_le`: The absolute value of an orbit sum with n terms is at most n.

  ```lean
  theorem norm_fo_le (g n : ℕ) (θ : Kˣ →* ℂˣ) (z : Kˣ) : ‖fo g n θ z‖ ≤ n := …
  ```
- `DiscreteGroups.sglob.DzType.Kon.sum_fo_mul`: The sum over z of the orbit sums for θ at z and θ′ at z⁻¹ multiplied together equals |Kˣ| times the number of pairs (i,j) with 0 ≤ i,j < n and θ^(g^i) = θ′^(g^j).

  ```lean
  theorem sum_fo_mul (g n : ℕ) (θ θ' : Kˣ →* ℂˣ) :
      ∑ z : Kˣ, fo g n θ z * fo g n θ' z⁻¹ = ∑ i ∈ Finset.range n, ∑ j ∈ Finset.range n,
        if θ ^ g ^ i = θ' ^ g ^ j then (Fintype.card Kˣ : ℂ) else 0 := …
  ```
- `DiscreteGroups.sglob.DzType.Kon.char_pow_period`: If K has gⁿ elements with g > 0, then θ^(g^a) equals θ^(g^(a mod n)).

  ```lean
  theorem char_pow_period {g n : ℕ} {K : Type} [Field K] [Fintype K] [DecidableEq K] (hK : Fintype.card K = g ^ n)
      (θ : Kˣ →* ℂˣ) (hg : 0 < g) (a : ℕ) : θ ^ g ^ a = θ ^ g ^ (a % n) := …
  ```

### Development.DiscreteGroups.GlobalIrreducibility.DzStickValMain

17 import steps from Main · 39 lines · Checked against the code · [Open in the Lean viewer](https://riemannhypothesissolved.com/file/Development.DiscreteGroups.GlobalIrreducibility.DzStickValMain)

**Proves the Stickelberger valuation formula for Gauss sums in terms of base-p digit sums.**

For 0 ≤ a < pᶠ − 1, the multiplicative valuation of the Gauss sum g(a) at Q equals the valuation of ζ − 1 raised to the base-p digit sum of a. For positive a, the lower bounds for a and its complement pᶠ − 1 − a multiply to the exact valuation of the product, forcing equality in both bounds. DzPinA uses the formula to turn equal positive powers of Gauss-sum products into equal sums of digit sums.

Key declarations:

- `DiscreteGroups.sglob.Stick.GSDatum.val_g`: In the Stickelberger Gauss-sum datum, v_Q(g(a)) = v_Q(ζ − 1)^(s_p(a)) for every 0 ≤ a < pᶠ − 1, where s_p is the base-p digit sum.

  ```lean
  theorem val_g {a : ℕ} (ha : a < p ^ f - 1) :
      Q.intValuation (D.g a) = Q.intValuation (D.ζ - 1) ^ dsum p a := …
  ```

### Development.DiscreteGroups.GlobalIrreducibility.DzStickValSub

18 import steps from Main · 107 lines · Checked against the code · [Open in the Lean viewer](https://riemannhypothesissolved.com/file/Development.DiscreteGroups.GlobalIrreducibility.DzStickValSub)

**Proves a base-p digit-sum bound for Gauss-sum valuations and an exact product formula for complementary exponents.**

The Jacobi-sum identity bounds the product of two Gauss-sum valuations by the valuation for the product character when that character is nontrivial. Frobenius reindexing leaves the Gauss sum unchanged when its multiplicative character is raised to p, so induction on the base-p digits gives the lower bound in the multiplicative valuation. For 0 < a < pᶠ − 1, the inverse-character Gauss-sum identity gives the exact product of the valuations at a and pᶠ − 1 − a. DzStickValMain combines the bounds with this product formula to obtain equality.

Key declarations:

- `DiscreteGroups.sglob.Stick.GSDatum.val_mul_le`: For a nontrivial product character, the product of the two Gauss-sum valuations is at most the Gauss-sum valuation for that product character.

  ```lean
  theorem val_mul_le {χ₁ χ₂ : MulChar k A} (h : χ₁ * χ₂ ≠ 1) :
      Q.intValuation (gaussSum χ₁ D.ψ) * Q.intValuation (gaussSum χ₂ D.ψ) ≤
        Q.intValuation (gaussSum (χ₁ * χ₂) D.ψ) := …
  ```
- `DiscreteGroups.sglob.Stick.GSDatum.gaussSum_pow_p`: Raising the multiplicative character to the pth power preserves its Gauss sum with the datum’s trace additive character.

  ```lean
  theorem gaussSum_pow_p (χ : MulChar k A) : gaussSum (χ ^ p) D.ψ = gaussSum χ D.ψ := …
  ```
- `DiscreteGroups.sglob.Stick.GSDatum.pow_le_val_g_small`: For 0 ≤ a < pᶠ − 1, the multiplicative valuation of g(a) is at least v_Q(ζ − 1)^a.

  ```lean
  theorem pow_le_val_g_small {a : ℕ} (ha : a < p ^ f - 1) :
      Q.intValuation (D.ζ - 1) ^ a ≤ Q.intValuation (D.g a) := …
  ```
- `DiscreteGroups.sglob.Stick.GSDatum.pow_dsum_le_val_g`: For 0 ≤ a < pᶠ − 1, the multiplicative valuation of g(a) is at least v_Q(ζ − 1) raised to the base-p digit sum of a.

  ```lean
  theorem pow_dsum_le_val_g {a : ℕ} (ha : a < p ^ f - 1) :
      Q.intValuation (D.ζ - 1) ^ dsum p a ≤ Q.intValuation (D.g a) := …
  ```
- `DiscreteGroups.sglob.Stick.GSDatum.val_g_mul_val_g_compl`: For 0 < a < pᶠ − 1, the product of the valuations of g(a) and g(pᶠ − 1 − a) is v_Q(ζ − 1)^(f(p − 1)).

  ```lean
  theorem val_g_mul_val_g_compl {a : ℕ} (h0 : 0 < a) (ha : a < p ^ f - 1) :
      Q.intValuation (D.g a) * Q.intValuation (D.g (p ^ f - 1 - a)) =
        Q.intValuation (D.ζ - 1) ^ (f * (p - 1)) := …
  ```

### Development.DiscreteGroups.GlobalIrreducibility.InCellMulRightIff

18 import steps from Main · 55 lines · Checked against the code · [Open in the Lean viewer](https://riemannhypothesissolved.com/file/Development.DiscreteGroups.GlobalIrreducibility.InCellMulRightIff)

**Collects double-coset membership and translation lemmas for a principal-series cell function.**

Absorbing factors into the two sides of B w₀ S proves that membership is invariant under left translation by the standard Borel B and right translation by S. When every diagonal entry of every element of S has valuation 1, the cell function transforms on the left by δ_B^{1/2} and is invariant on the right by S, giving CellVecFixed the transformation laws for its S-fixed principal-series vector.

Key declarations:

- `DiscreteGroups.sglob.DzType.inCell_mul_left_iff`: For b in B, the product bg belongs to B w₀ S exactly when g does.

  ```lean
  theorem inCell_mul_left_iff (p₀ : parab k (eOne m)) (g : GL (Fin m) k) :
      InCell S ((p₀ : GL (Fin m) k) * g) ↔ InCell S g := …
  ```
- `DiscreteGroups.sglob.DzType.inCell_mul_right_iff`: For s in S, the product gs belongs to B w₀ S exactly when g does.

  ```lean
  theorem inCell_mul_right_iff {s : GL (Fin m) k} (hs : s ∈ S) (g : GL (Fin m) k) :
      InCell S (g * s) ↔ InCell S g := …
  ```
- `DiscreteGroups.sglob.DzType.cellFun_mul_left`: If every diagonal entry of every element of S has valuation 1, then left translation by b in B scales the cell function by δ_B(b)^{1/2}.

  ```lean
  theorem cellFun_mul_left (p₀ : parab k (eOne m)) (g : GL (Fin m) k) :
      cellFun S ((p₀ : GL (Fin m) k) * g) = dl p₀ * cellFun S g := …
  ```
- `DiscreteGroups.sglob.DzType.cellFun_mul_right`: If every diagonal entry of every element of S has valuation 1, then right translation by any element of S fixes the cell function.

  ```lean
  theorem cellFun_mul_right {s : GL (Fin m) k} (hs : s ∈ S) (g : GL (Fin m) k) :
      cellFun S (g * s) = cellFun S g := …
  ```

### Development.DiscreteGroups.GlobalIrreducibility.DzGenVec

19 import steps from Main · 70 lines · Checked against the code · [Open in the Lean viewer](https://riemannhypothesissolved.com/file/Development.DiscreteGroups.GlobalIrreducibility.DzGenVec)

**Defines a function on GL_m(k) weighted by the square root of the Borel modulus on the double coset B w₀ S.**

For a nonarchimedean local field k, the function is zero off B w₀ S, where B is the singleton-block parabolic, w₀ reverses the coordinates, and S is a subgroup. If every diagonal entry of every element of S is a valuation-ring unit, the value at b w₀ s is the square root of the modulus of b, independent of the factorization. The proof compares two Borel factors via conjugation by w₀, which permutes the diagonal entries. Under the same diagonal-unit hypothesis, InCellMulRightIff uses the formula to show that left multiplication by b ∈ B scales the function by the square root of the modulus of b and right multiplication by s ∈ S preserves it.

Key declarations:

- `DiscreteGroups.sglob.DzType.dl`: Defines the square root of the modulus character on the singleton-block parabolic via the Levi projection.

  ```lean
  def dl (p : parab k (eOne m)) : ℂˣ := deltaHalf k (fun _ : Fin m => Fin 1) (leviProj k (eOne m) p)
  ```
- `DiscreteGroups.sglob.DzType.dl_eq_one`: Shows that the square root of the modulus is one when all diagonal entries are valuation-ring units.

  ```lean
  theorem dl_eq_one {q : parab k (eOne m)} (hq : ∀ a, valuation k (((q : GL (Fin m) k) : Matrix (Fin m) (Fin m) k) a a) = 1) :
      dl q = 1 := …
  ```
- `DiscreteGroups.sglob.DzType.InCell`: Expresses membership in B w₀ S by the existence of a factorization b w₀ s.

  ```lean
  def InCell (g : GL (Fin m) k) : Prop := ∃ p : parab k (eOne m), ∃ y ∈ S, g = (p : GL (Fin m) k) * wRev k m * y
  ```
- `DiscreteGroups.sglob.DzType.cellFun`: Assigns the square root of the modulus of a chosen Borel factor on B w₀ S and zero elsewhere.

  ```lean
  def cellFun (g : GL (Fin m) k) : ℂ := if h : InCell S g then (dl h.choose : ℂ) else 0
  ```
- `DiscreteGroups.sglob.DzType.cellFun_eq`: Evaluates the function at b w₀ s as the square root of the modulus of b whenever all diagonal entries of all elements of S are valuation-ring units.

  ```lean
  theorem cellFun_eq (hS4 : ∀ y ∈ S, ∀ a, valuation k (((y : GL (Fin m) k) : Matrix (Fin m) (Fin m) k) a a) = 1)
      (p : parab k (eOne m)) {y : GL (Fin m) k} (hy : y ∈ S) :
      cellFun S ((p : GL (Fin m) k) * wRev k m * y) = dl p := …
  ```

### Development.DiscreteGroups.GlobalIrreducibility.DzStickValOne

19 import steps from Main · 113 lines · Checked against the code · [Open in the Lean viewer](https://riemannhypothesissolved.com/file/Development.DiscreteGroups.GlobalIrreducibility.DzStickValOne)

**Proves that the Gauss sum for the inverse character ω⁻¹ has the same valuation at Q as ζ − 1 when p^f > 2.**

Over a finite field of characteristic p, summing x⁻¹Tr(x) gives −1 by expanding the trace into Frobenius powers. The lifted trace sum is therefore congruent to −1 modulo Q. Expanding the additive character to first order in ζ − 1 and using cancellation of the nontrivial multiplicative character gives g(1) = (ζ − 1)(−1 + y) with y in Q, so the second factor has valuation one. The direct importer uses this equality to prove a multiplicative valuation bound in terms of the base-p digit sum of the Gauss sum index.

Key declarations:

- `DiscreteGroups.sglob.Stick.sum_inv_mul_trace`: Shows that the sum of x⁻¹Tr(x) over a finite field of characteristic p is −1, with trace to the prime field.

  ```lean
  theorem sum_inv_mul_trace (p : ℕ) [Fact p.Prime] (k : Type*) [Field k] [Fintype k]
      [Algebra (ZMod p) k] :
      ∑ x : k, x⁻¹ * algebraMap (ZMod p) k (Algebra.trace (ZMod p) k x) = -1 := …
  ```
- `DiscreteGroups.sglob.Stick.exists_pow_eq_one_add`: Shows in any commutative ring that ζⁿ is congruent to 1 + n(ζ − 1) modulo the ideal generated by (ζ − 1)².

  ```lean
  theorem exists_pow_eq_one_add {A : Type*} [CommRing A] (ζ : A) (n : ℕ) :
      ∃ r : A, ζ ^ n = 1 + n * (ζ - 1) + (ζ - 1) ^ 2 * r := …
  ```
- `DiscreteGroups.sglob.Stick.GSDatum.sum_inv_val_add_one_mem`: Shows that the sum of the integer trace representatives weighted by ω⁻¹ is congruent to −1 modulo Q.

  ```lean
  theorem sum_inv_val_add_one_mem :
      (∑ x : k, (D.ω⁻¹) x * ((Algebra.trace (ZMod p) k x).val : A)) + 1 ∈ Q.asIdeal := …
  ```
- `DiscreteGroups.sglob.Stick.GSDatum.exists_g_one_eq`: Factors g(1) as (ζ − 1)(−1 + y) for some y in Q when p^f > 2.

  ```lean
  theorem exists_g_one_eq (h : 1 < p ^ f - 1) :
      ∃ y ∈ Q.asIdeal, D.g 1 = (D.ζ - 1) * (-1 + y) := …
  ```
- `DiscreteGroups.sglob.Stick.GSDatum.val_g_one`: Identifies the multiplicative valuation at Q of g(1) with that of ζ − 1 when p^f > 2.

  ```lean
  theorem val_g_one (h : 1 < p ^ f - 1) : Q.intValuation (D.g 1) = Q.intValuation (D.ζ - 1) := …
  ```

### Development.DiscreteGroups.GlobalIrreducibility.DzStickValBasic

20 import steps from Main · 114 lines · Checked against the code · [Open in the Lean viewer](https://riemannhypothesissolved.com/file/Development.DiscreteGroups.GlobalIrreducibility.DzStickValBasic)

**Relates the valuations of p and ζ − 1 and proves character identities for Gauss sums over finite fields.**

For prime p, evaluating the pth cyclotomic polynomial at 1 shows that p is a unit multiple of (ζ − 1)^(p−1) for a primitive pth root ζ, giving the corresponding identity of multiplicative valuations at Q. Over the field of p^f elements, the additive trace character is primitive and Frobenius invariant, the distinguished character ω reducing modulo Q to the given field embedding has order p^f − 1, and g(0) = −1. When 1 < p^f − 1, the direct importer computes the valuation of g(1) using the trace-character formula, ζ − 1 ∈ Q, and ω_pow_ne_one at exponent one to show that ω⁻¹ is nontrivial.

Key declarations:

- `DiscreteGroups.sglob.Stick.associated_prime_pow`: For prime p, shows that p and (ζ − 1)^(p−1) differ by a unit in an integral domain containing a primitive pth root ζ.

  ```lean
  theorem associated_prime_pow {A : Type*} [CommRing A] [IsDomain A] {p : ℕ} (hp : p.Prime) {ζ : A}
      (hζ : IsPrimitiveRoot ζ p) : Associated (p : A) ((ζ - 1) ^ (p - 1)) := …
  ```
- `DiscreteGroups.sglob.Stick.psi_isPrimitive`: Proves that the additive trace character defined by a primitive pth root is primitive, using surjectivity of the finite-field trace.

  ```lean
  theorem psi_isPrimitive (p : ℕ) [Fact p.Prime] (k : Type*) [Field k] [Finite k] [Algebra (ZMod p) k]
      {A : Type*} [CommRing A] [IsDomain A] (ζ : A) (hζ : IsPrimitiveRoot ζ p) :
      (psi p k ζ hζ.pow_eq_one).IsPrimitive := …
  ```
- `DiscreteGroups.sglob.Stick.GSDatum.val_p`: Identifies the multiplicative valuation of p at Q with the (p−1)st power of the valuation of ζ − 1.

  ```lean
  theorem val_p : Q.intValuation (p : A) = Q.intValuation (D.ζ - 1) ^ (p - 1) := …
  ```
- `DiscreteGroups.sglob.Stick.GSDatum.ω_pow_ne_one`: Shows that every power ω^a with 0 < a < p^f − 1 is nontrivial.

  ```lean
  theorem ω_pow_ne_one {a : ℕ} (h0 : 0 < a) (ha : a < p ^ f - 1) : D.ω ^ a ≠ 1 := …
  ```
- `DiscreteGroups.sglob.Stick.GSDatum.g_zero`: Evaluates the Gauss sum with trivial multiplicative character as −1.

  ```lean
  theorem g_zero : D.g 0 = -1 := …
  ```

### Development.DiscreteGroups.GlobalIrreducibility.ValuationUnitriLt

20 import steps from Main · 74 lines · Checked against the code · [Open in the Lean viewer](https://riemannhypothesissolved.com/file/Development.DiscreteGroups.GlobalIrreducibility.ValuationUnitriLt)

**Proves that if the reduction of an integral product LU is lower triangular with invertible diagonal, then U reduces to the identity.**

Here L is lower triangular, U is upper unitriangular, and reduction is modulo the maximal ideal of the valuation ring. The proof inducts on the rows of U, bounding the entries of the corresponding row of L from left to right. The diagonal entry of LU then forces the diagonal entry of L to be a valuation-ring unit, and the ultrametric inequality puts the strictly upper entries of U in the maximal ideal.

Key declarations:

- `DiscreteGroups.sglob.DzType.valuation_unitri_lt`: For lower triangular L and upper unitriangular U, if LU has entries in the valuation ring, diagonal entries of valuation one, and strictly upper entries of valuation less than one, then every strictly upper entry of U has valuation less than one.

  ```lean
  theorem valuation_unitri_lt {K Γ : Type} [Field K] [LinearOrderedCommGroupWithZero Γ] (v : Valuation K Γ) {m : ℕ}
      (L U : Matrix (Fin m) (Fin m) K) (hL : ∀ i j, i < j → L i j = 0) (hU1 : ∀ i, U i i = 1)
      (hU0 : ∀ i j, j < i → U i j = 0) (hX : ∀ i j, v ((L * U) i j) ≤ 1) (hXd : ∀ i, v ((L * U) i i) = 1)
      (hXu : ∀ i j, i < j → v ((L * U) i j) < 1) : ∀ i j, i < j → v (U i j) < 1 := …
  ```


---

A proved depth-zero local Langlands… · Alpöge Lean readings, part 2. Web page: https://riemannhypothesissolved.com/cluster/k2401-a-proved-depth-zero-local-langlands-map-for-gl-n-over-p/lean/part-2/ · updated 2026-11-26 · site map for machines: https://riemannhypothesissolved.com/llms.txt
