# 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 1 of 2, files 1–56 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.RecTExists

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

**Proves existence of a local Langlands parameter map for GL(n) at every finite place of a number field.**

The proof extends a cuspidal assignment by Langlands segment sums. The map matches parameter dimension with rank, uses Artin reciprocity in rank one, sends cuspidals to irreducible parameters, and respects real norm twists and central-character absolute values. For support made up of characters or twists of depth-zero cuspidals over Q_p, it matches central characters, respects character twists and duals, identifies each input among all irreducibles, and sends depth-zero inputs to tame parameters. It gives zero monodromy and the inertia characteristic polynomial for the specified finite-field cuspidal types. It is used in proving local–global compatibility at Iwahori-fixed places.

Key declarations:

- `UpperTheory.Zero.LLC.recTExists`: For each finite place of a number field and each prolongation to its algebraic closure, there exists a map from irreducible smooth complex GL(n) representations over the completion, in all ranks, to Weil–Deligne parameters satisfying the stated compatibility laws.

  ```lean
  theorem UpperTheory.Zero.LLC.recTExists :
      UpperTheory.Zero.LLC.RecTExists := …
  ```

Blueprint: [Local parameters exist](https://github.com/chrisflav/riemann-blueprint/blob/137d97602647e450901981a7decfb86ab3024a48/blueprint/architecture/sec-outline-interfaces/thm-local-parameters-exist.md) (Merten's blueprint) · [Existence of local Langlands parameters](https://github.com/nasqret/riemann-rev/blob/6ccea03b21e96b70356c07afb85a88d581b61e86/data/model.json#L2129) (Naskręcki's atlas)

### Development.WeilBound.CoreStatements.StandardPublishedResults.StandardTheoremStatements.GreenRegularCharacters

5 import steps from Main · 8 lines · Checked against the code · [Open in the Lean viewer](https://riemannhypothesissolved.com/file/Development.WeilBound.CoreStatements.StandardPublishedResults.StandardTheoremStatements.GreenRegularCharacters)

**Restates Green's regular-character parametrization of cuspidal characters for finite general linear groups.**

The theorem supplies the imported proof of Green's parametrization under a new name. For a degree-d extension K of the prime field with g elements, it assigns cuspidal characters of GL(d, g) to regular characters of K×, gives their degrees and values on elements with irreducible characteristic polynomial, and identifies equal characters with Frobenius conjugacy. Every cuspidal character occurs in this parametrization.

Key declarations:

- `PositivityTheory.Stage1.PM.greenRegularCharacters`: Re-exports Green’s regular-character parametrization, including its character formula and exhaustion of the cuspidal characters.

  ```lean
  theorem greenRegularCharacters : GlobalTheory.Published.GreenRegularCharacters := …
  ```

Blueprint: [Cuspidal characters of GL(d) over a finite field](https://github.com/chrisflav/riemann-blueprint/blob/137d97602647e450901981a7decfb86ab3024a48/blueprint/chap-literature/sec-lit-depth-zero/thm-green-regular-characters.md) (Merten's blueprint)

### Development.WeilBound.RepresentationTheoryGL.GaloisPermutationReps.SubquotientEquivalence.DepthZeroIntermediateHolds

5 import steps from Main · 19 lines · Checked against the code · [Open in the Lean viewer](https://riemannhypothesissolved.com/file/Development.WeilBound.RepresentationTheoryGL.GaloisPermutationReps.SubquotientEquivalence.DepthZeroIntermediateHolds)

**Establishes two depth-zero labeling statements by assembling previously proved results.**

For a fixed place and a chosen degree −1 Frobenius element, the first theorem injects isomorphism classes of irreducible tame Weil–Deligne representations of fixed positive dimension and fixed Frobenius eigenvalue product into monic irreducible residue-field polynomials of that degree other than X. The second injects those labels into depth-zero cuspidal isomorphism classes with a prescribed nonzero central-character value at a uniformizer.

Key declarations:

- `PositivityTheory.Rg.DzCount.depth_zero_intermediate_holds`: At a fixed place and for a chosen degree −1 Frobenius element, the isomorphism classes of irreducible tame Weil–Deligne representations with fixed positive dimension and fixed eigenvalue product at that element admit distinct monic irreducible residue-field polynomial labels of that degree other than X.

  ```lean
  theorem depth_zero_intermediate_holds : St3 := …
  ```
- `PositivityTheory.Rg.DzCount.depth_zero_count_holds`: Over a nonarchimedean local field, monic irreducible residue-field polynomials of fixed positive degree n other than X inject into isomorphism classes of irreducible cuspidal GLₙ representations with nonzero principal-congruence fixed vectors and a prescribed nonzero central-character value at a uniformizer.

  ```lean
  theorem depth_zero_count_holds : St8a := …
  ```

### Development.AutomorphicArithmetic.Foundations.LocalLanglands.LocalCentralUnits.ArtEx

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

**Constructs the unique inverse local Artin map from each finite place’s Weil group to the completion’s multiplicative group.**

The map runs from the local Weil group to the multiplicative group of the completed field. Existence comes from local reciprocity, and uniqueness follows because any two such maps have the same image under global reciprocity, whose restriction to idèles supported at the given place is injective by the Chevalley units result. The correspondence existence proof chooses this map to construct a parameter assignment on all irreducible smooth representations, and the uniqueness proof identifies competing reciprocity maps before proving parameter agreement on representations satisfying Good.

Key declarations:

- `UpperTheory.Zero.LLC.artEx`: For every finite place and every prolongation to an algebraic closure, there is a unique homomorphism from the associated Weil group to the multiplicative group of the completion satisfying the local Artin reciprocity laws.

  ```lean
  theorem UpperTheory.Zero.LLC.artEx :
      UpperTheory.Zero.LLC.ArtEx := …
  ```

### Development.AutomorphicArithmetic.Foundations.LocalLanglands.LocalCentralUnits.CuspEx

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

**Constructs a Weil–Deligne parameter assignment for cuspidal GL(n) representations at finite places of number fields.**

Cuspidals receive irreducible parameters of dimension n, compatible with real norm twists and central-character absolute values. The proof uses Artin reciprocity in rank one, extends depth-zero parameters over Q_p by character twists, and uses norm twists of auxiliary parameters for the remaining cuspidals. Rank-one characters and twists of depth-zero cuspidals over Q_p are determined by their parameters among cuspidals and satisfy twist, duality, and central-character laws. The assignment gives tame parameters for depth-zero inputs in that class and the prescribed inertia polynomials for finite-field cuspidal types. It supplies the cuspidal input for the Langlands segment extension.

Key declarations:

- `UpperTheory.Zero.LLC.cuspEx`: Given a local Artin map at a finite place, there exists a Weil–Deligne parameter assignment satisfying the stated cuspidal laws in every rank.

  ```lean
  theorem cuspEx : CuspEx := …
  ```
- `UpperTheory.Zero.LLC.Gm.basic`: For an assignment satisfying Gm, rank-one characters and twists of depth-zero cuspidals over Q_p have irreducible parameters of dimension equal to the rank, with determinant given by any central character composed with reciprocity.

  ```lean
  private theorem Gm.basic (H : Gm a ha r) {x : IrrGL (w.adicCompletion E)} (hc : x.IsCusp) (hg : GoodCusp x) :
      IsIrrWD (r x) ∧ (r x).lpDim = x.1 ∧
        ∀ ω, HasCentralChar x.rep ω → ∀ σ, ((r x).eig σ).prod = (ω (a σ) : ℂ) := …
  ```
- `UpperTheory.Zero.LLC.Gm.dual`: Under the Gm laws, for rank-one characters and twists of depth-zero cuspidals over Q_p, the parameter of the contragredient is the dual parameter.

  ```lean
  private theorem Gm.dual (H : Gm a ha r) {x y : IrrGL (w.adicCompletion E)} (hc : x.IsCusp) (hg : GoodCusp x)
      (hd : DualCl x y) : r y = (r x).lpDual := …
  ```
- `UpperTheory.Zero.LLC.Gm.tw_inj`: Two smooth character twists of depth-zero cuspidals over Q_p represent the same class if their images under an assignment satisfying Gm agree.

  ```lean
  private theorem Gm.tw_inj (H : Gm a ha r) {u v : IrrGL (w.adicCompletion E)}
      (hq : ∃ (g : ℕ) (_ : Fact g.Prime) (i : ℚ_[g] ≃+* w.adicCompletion E), Continuous i)
      (hu : u.IsCusp) (hud : DZ u) (hv : v.IsCusp) (hvd : DZ v) {χ χ' : (w.adicCompletion E)ˣ →* ℂˣ}
      (hχ : IsSmoothChar χ) (hχ' : IsSmoothChar χ') (e : r (u.tw χ hχ) = r (v.tw χ' hχ')) :
      u.tw χ hχ = v.tw χ' hχ' := …
  ```

### Development.AutomorphicArithmetic.Foundations.LocalLanglands.LocalCentralUnits.ExtDepth

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

**Proves that the Langlands segment extension gives tame parameters for depth-zero GL(n) representations with the prescribed cuspidal support.**

The support condition allows rank-one characters and character twists of depth-zero cuspidals over Q_p. Depth zero passes to each member of the cuspidal support, so the cuspidal tameness law gives characteristic polynomial (X − 1)^m on wild inertia for each rank-m member. Multiplying these polynomials gives (X − 1)^n for the extension, which implies tameness. The local Langlands existence theorem uses this result to verify its depth-zero law.

Key declarations:

- `UpperTheory.Zero.LLC.extDepth`: The Langlands segment extension of a cuspidal assignment satisfying the cuspidal parameter laws sends every depth-zero representation with the prescribed cuspidal support to a tame Weil–Deligne parameter.

  ```lean
  theorem UpperTheory.Zero.LLC.extDepth :
      UpperTheory.Zero.LLC.ExtDepth := …
  ```

### Development.AutomorphicArithmetic.Foundations.LocalLanglands.LocalCentralUnits.ExtDual

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

**Proves that the Langlands segment extension sends contragredients to dual Weil–Deligne parameters under a cuspidal support condition.**

The theorem applies when each term in the cuspidal support is rank one or a smooth character twist of a cuspidal with nonzero KOne-fixed vectors over a completion continuously isomorphic to ℚₚ. The proof pairs the Langlands segments of a representation with the dual segments of its contragredient. Cuspidal duality and norm-twist compatibility show that each paired segment contributes the dual of the original summand, and duality commutes with the resulting direct sum. The local Langlands existence theorem uses this result to verify its contragredient law.

Key declarations:

- `UpperTheory.Zero.LLC.extDual`: The Langlands segment extension of a cuspidal parameter assignment satisfying CuspT assigns to the contragredient of a representation satisfying Good the dual of its original Weil–Deligne parameter.

  ```lean
  theorem UpperTheory.Zero.LLC.extDual :
      UpperTheory.Zero.LLC.ExtDual := …
  ```
- `UpperTheory.Zero.LLC.summand_dual`: For a cuspidal assignment satisfying CuspT, segments paired in duality have dual normalized Weil–Deligne summands when the first cuspidal term of the original segment satisfies GoodCusp.

  ```lean
  private theorem summand_dual (H : CuspT a ha r) {Δ Δ' : Segment (w.adicCompletion E)}
      (hg : GoodCusp Δ.first) (hd : SegDual Δ Δ') :
      ((r Δ'.first).lpTw (((Δ'.len : ℝ) - 1) / 2)).lpChar (WD.lpSp h Δ'.len) =
        (((r Δ.first).lpTw (((Δ.len : ℝ) - 1) / 2)).lpChar (WD.lpSp h Δ.len)).lpDual := …
  ```
- `UpperTheory.Zero.LLC.map_summand_dual`: For a cuspidal assignment satisfying CuspT and two lists of segments paired in duality, the second list of parameter summands is obtained by dualizing the first term by term when the first term of every original segment satisfies GoodCusp.

  ```lean
  private theorem map_summand_dual (H : CuspT a ha r) {l l' : List (Segment (w.adicCompletion E))}
      (hg : ∀ Δ ∈ l, GoodCusp Δ.first) (hF : List.Forall₂ SegDual l l') :
      l'.map (fun Δ => ((r Δ.first).lpTw (((Δ.len : ℝ) - 1) / 2)).lpChar (WD.lpSp h Δ.len)) =
        l.map (fun Δ => (((r Δ.first).lpTw (((Δ.len : ℝ) - 1) / 2)).lpChar (WD.lpSp h Δ.len)).lpDual) := …
  ```

### Development.AutomorphicArithmetic.Foundations.LocalLanglands.LocalCentralUnits.ExtInj

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

**Proves singleton fibers over images of inputs with prescribed cuspidal support for segment extensions of maps satisfying the cuspidal laws.**

The cuspidal support of one input must consist of rank-one characters or character twists of depth-zero cuspidals over Q_p. Equality of the Weil–Deligne parameters identifies the multiset of pairs of a segment length and its normalized cuspidal parameter by uniqueness of the decomposition into special summands. Cancelling the norm twists and applying cuspidal injectivity recovers the same multiset of Langlands segments, which determines the representation. The local Langlands existence theorem uses this result to verify its injectivity law.

Key declarations:

- `UpperTheory.Zero.LLC.extInj`: For a Langlands segment extension of a map satisfying the cuspidal correspondence laws, two irreducible representations with equal parameters have equal isomorphism classes when one has the prescribed cuspidal support.

  ```lean
  theorem UpperTheory.Zero.LLC.extInj :
      UpperTheory.Zero.LLC.ExtInj := …
  ```

### Development.AutomorphicArithmetic.Foundations.LocalLanglands.LocalCentralUnits.RcTwOfSegments

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

**Proves that the Langlands segment extension respects real norm twists and, under a cuspidal support condition, smooth character twists.**

For a cuspidal assignment satisfying CuspT, the proof twists each Langlands segment and uses the law on its first cuspidal term to identify the twisted Weil–Deligne summand of the segment extension. Summing gives compatibility with real powers of the absolute value for every irreducible representation. For cuspidal support consisting of rank-one characters or character twists of depth-zero cuspidals over Q_p, a smooth determinant twist corresponds to tensoring the parameter by the character composed with the local Artin map. The local Langlands existence theorem uses both twist laws.

Key declarations:

- `UpperTheory.Zero.LLC.rc_tw_of_segments`: If a smooth character twist is compatible with the cuspidal assignment on the first term of every segment, it is compatible with the extended parameter of the representation classified by those segments.

  ```lean
  private theorem rc_tw_of_segments {a : Weil h →* (w.adicCompletion E)ˣ} (ha : IsLocalArtin h a)
      {r rc : IrrGL (w.adicCompletion E) → WD h} (hL : IsLExt r rc)
      (l : List (Segment (w.adicCompletion E))) (x : IrrGL (w.adicCompletion E))
      (hx : IsL (l : Multiset (Segment (w.adicCompletion E))) x.rep)
      (χ : (w.adicCompletion E)ˣ →* ℂˣ) (hχ : IsSmoothChar χ)
      (hr : ∀ Δ ∈ l, r (Δ.first.tw χ hχ) = (r Δ.first).lpTwist (χ.comp a) (ha.smooth hχ)) :
      rc (x.tw χ hχ) = (rc x).lpTwist (χ.comp a) (ha.smooth hχ) := …
  ```
- `UpperTheory.Zero.LLC.extTw`: A Langlands segment extension of a cuspidal assignment satisfying CuspT commutes with real norm twists on all irreducibles and with smooth character twists on the prescribed cuspidal support class.

  ```lean
  theorem UpperTheory.Zero.LLC.extTw :
      UpperTheory.Zero.LLC.ExtTw := …
  ```

### Development.AutomorphicArithmetic.Foundations.LocalLanglands.LocalCentralUnits.TypeIff

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

**Proves the equivalence of two formulations of the depth-zero cuspidal inertia law.**

For representations containing the specified inflated finite cuspidal type under a continuous identification with ℚ_g, both formulations require zero monodromy and express the inertia characteristic polynomial using the Frobenius conjugates of the matching regular finite-field character. One computes the residue of a local Artin image at an auxiliary place, and the other evaluates a residue homomorphism directly on base inertia. The proof passes between them by lifting and restricting inertia elements and approximating Artin images by algebraic integers with the same residue. The local Langlands existence and uniqueness proofs use opposite directions of the equivalence.

Key declarations:

- `UpperTheory.Zero.LLC.typeIff`: A Weil–Deligne parameter map satisfies the depth-zero type law if and only if it satisfies the equivalent base-inertia residue formula under the same continuous identification and finite-type hypotheses.

  ```lean
  theorem UpperTheory.Zero.LLC.typeIff :
      UpperTheory.Zero.LLC.TypeIff := …
  ```
- `UpperTheory.Zero.LLC.restrict_mem_ine`: Restricting an extension-field inertia automorphism to scalars over the base gives a base-field inertia automorphism at the same valuation ring.

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

### Development.AutomorphicArithmetic.Foundations.LocalLanglands.RecTTransport

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

**Defines tame local Langlands conditions for finite cuspidal types, extension by segments, and transport across place isomorphisms.**

For a completion continuously identified with ℚₚ and a matching inflated finite cuspidal type, the law requires zero monodromy and gives inertia polynomial roots by evaluating the regular label’s Frobenius conjugates on the image of each inertia element under the compatible residue map. The cuspidal laws encode local Artin reciprocity in rank one and supply conditions on dimension, twisting, duality, and central characters for extension by Langlands segments. RecTExists uses the cuspidal existence and extension conditions to assemble the reciprocity map. RecTTransport formulates compatibility of two such maps across an isomorphism of places.

Key declarations:

- `UpperTheory.Zero.LLC.Names`: Relates a finite cuspidal character on matrices with irreducible characteristic polynomial to the signed Frobenius-orbit sum of a residue-field character evaluated at a root.

  ```lean
  def Names (g : ℕ) [Fact g.Prime] (n : ℕ) {K : Type} [Field K] [Algebra (ZMod g) K] (θ : Kˣ →* ℂˣ) (τ : FDRep ℂ (Gn g n)) : Prop :=
    ∀ y : Gn g n, Irreducible (y : Mt g n).charpoly → ∀ z : Kˣ, aeval (z : K) (y : Mt g n).charpoly = 0 →
      τ.character y = (-1) ^ (n - 1) * ∑ j ∈ Finset.range n, ((θ (z ^ g ^ j) : ℂˣ) : ℂ)
  ```
- `UpperTheory.Zero.LLC.TypeAt`: Requires zero monodromy and the inertia polynomial given by the regular label and compatible homomorphism from inertia to residue-field units for each matching inflated finite cuspidal type over a completion continuously identified with ℚₚ.

  ```lean
  def TypeAt (x : IrrGL (w.adicCompletion E)) (V : WD h) : Prop :=
    ∀ (g : ℕ) [Fact g.Prime] (i : ℚ_[g] ≃+* w.adicCompletion E), Continuous i → ∀ n : ℕ, 0 < n →
      ∀ (D : Ext h g n) (R : Ine (F := E) A →* D.Kˣ), D.Res R → ∀ θ : D.Kˣ →* ℂˣ, GlobalTheory.Published.IsRegularChar g n θ →
      ∀ τ : FDRep ℂ (Gn g n), IsCusp τ.character → Names g n θ τ → ∀ σ : IrrRep (GL (Fin n) (w.adicCompletion E)), cls σ = x →
        GlobalTheory.SerSys.TameGen.Inflates (σ.ρ.comp (GeneralLinearGroup.map i.toRingHom)) τ → V.mono0 ∧ InFor g n R θ V
  ```
- `UpperTheory.Zero.LLC.Par`: Specifies an irreducible tame Weil–Deligne parameter of the matching dimension, with the prescribed finite-type inertia law and determinant given by the central character through local reciprocity.

  ```lean
  structure Par (a : Weil h →* (w.adicCompletion E)ˣ) (y : IrrGL (w.adicCompletion E)) (V : WD h) : Prop where
    irr : IsIrrWD V
    dim : V.lpDim = y.1
    tame : IsTameWD V
    central : ∀ ω, HasCentralChar y.rep ω → ∀ σ, (V.eig σ).prod = (ω (a σ) : ℂ)
    type : TypeAt y V
  ```
- `UpperTheory.Zero.LLC.CuspT`: Packages the cuspidal reciprocity laws, including rank-one normalization, compatibility with twists and duality, central-character matching, injectivity, and tameness under the stated hypotheses.

  ```lean
  structure CuspT (a : Weil h →* (w.adicCompletion E)ˣ) (ha : IsLocalArtin h a) (r : IrrGL (w.adicCompletion E) → WD h) : Prop where
    irr : ∀ x, x.IsCusp → IsIrrWD (r x)
    dim : ∀ x, x.IsCusp → (r x).lpDim = x.1
    one : ∀ χ hχ, r (.ofChar χ hχ) = WD.lpOfChar h (χ.comp a) (ha.smooth hχ)
    nu : ∀ x, x.IsCusp → ∀ s : ℝ, r (x.nu s) = (r x).lpTw s
    absCentral : ∀ x : IrrGL (w.adicCompletion E), x.IsCusp → ∀ ω, HasCentralChar x.rep ω → ∀ σ, ‖((r x).eig σ).prod‖ = ‖(ω (a σ) : ℂ)‖
    twist : ∀ x, x.IsCusp → GoodCusp x → ∀ χ hχ, r (x.tw χ hχ) = (r x).lpTwist (χ.comp a) (ha.smooth hχ)
    central : ∀ x : IrrGL (w.adicCompletion E), x.IsCusp → GoodCusp x → ∀ ω, HasCentralChar x.rep ω → ∀ σ, ((r x).eig σ).prod = (ω (a σ) : ℂ)
    dual : ∀ x y, x.IsCusp → y.IsCusp → GoodCusp x → DualCl x y → r y = (r x).lpDual
    inj : ∀ x y, x.IsCusp → y.IsCusp → GoodCusp y → r x = r y → x = y
    depth : ∀ x, x.IsCusp → GoodCusp x → DZ x → IsTameWD (r x)
    type : ∀ x, x.IsCusp → TypeAt x (r x)
  ```
- `UpperTheory.Zero.LLC.RecTTransport`: Requires the parameters of corresponding representations under an isomorphism of places to correspond whenever both maps satisfy the tame reciprocity laws and the source representation has good cuspidal support.

  ```lean
  def RecTTransport : Prop :=
    ∀ (E Ω : Type) [Field E] [NumberField E] [Field Ω] [Algebra E Ω] [IsAlgClosure E Ω] (A : ValuationSubring Ω)
      (w : HeightOneSpectrum (𝓞 E)) (h : IsPlaceOver A w)
      (E' Ω' : Type) [Field E'] [NumberField E'] [Field Ω'] [Algebra E' Ω'] [IsAlgClosure E' Ω'] (A' : ValuationSubring Ω')
      (w' : HeightOneSpectrum (𝓞 E')) (h' : IsPlaceOver A' w') (φ : Ω ≃+* Ω') (j : E →+* E')
      (i : w.adicCompletion E ≃+* w'.adicCompletion E'), PlaceIso A w A' w' φ j i →
      ∀ (rc : IrrGL (w.adicCompletion E) → WD h) (rc' : IrrGL (w'.adicCompletion E') → WD h'), IsRecT h rc → IsRecT h' rc' →
        ∀ x x', RepRel i x x' → Good x → WDRel φ (rc x) (rc' x')
  ```

### Development.DiscreteGroups.GlobalIrreducibility.DzLCusp

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

**Proves cuspidality for irreducible GL(n, k) representations with a cuspidal type inflated via GL(n, ℤₚ) → GL(n, 𝔽ₚ) and continuous ℚₚ ≃ k.**

Let k be a nonarchimedean local field with a continuous field isomorphism ℚₚ ≃ k. A smooth irreducible representation of GL(n, k) is cuspidal if its pullback to GL(n, ℚₚ) contains, on GL(n, ℤₚ), a cuspidal representation of GL(n, 𝔽ₚ) inflated by reduction modulo p. For a two-block unipotent radical, finite unipotent averaging puts the inflated subspace in the kernel of the coinvariant quotient. Iwasawa decomposition and irreducibility then force the quotient to vanish. Permutation conjugacy gives the vanishing required by the cuspidality criterion, which is applied at number-field completions identified with a p-adic field.

Key declarations:

- `DiscreteGroups.sglob.DzLc.twKer_twoBlocks_eq_top`: For a nonarchimedean local field k with a continuous isomorphism ℚₚ ≃ k, the coinvariants of a smooth irreducible representation of GL(n, k) vanish for each proper two-block standard parabolic unipotent radical if its pullback contains, on GL(n, ℤₚ), a cuspidal type inflated from GL(n, 𝔽ₚ) by reduction modulo p.

  ```lean
  theorem twKer_twoBlocks_eq_top (i : ℚ_[g] ≃+* k) (hi : Continuous i) {n a : ℕ} (h0 : 0 < a) (ha : a < n)
      (τ : FDRep ℂ (Gn g n)) (hτ : GlobalTheory.GLq.IsCusp τ.character) (σ : GlobalTheory.SmGL.IrrRep (GL (Fin n) k))
      (hs : GlobalTheory.SerSys.TameGen.Inflates (σ.ρ.comp (Matrix.GeneralLinearGroup.map i.toRingHom)) τ) :
      twKer σ.ρ (GlobalTheory.FiniteGL.unipRadical k (GlobalTheory.FiniteGL.twoBlocks n a)) 1 = ⊤ := …
  ```
- `DiscreteGroups.sglob.DzLc.isCuspidal_of_inflates`: For a nonarchimedean local field k with a continuous isomorphism ℚₚ ≃ k, a smooth irreducible representation of GL(n, k) is cuspidal if its pullback contains, on GL(n, ℤₚ), a cuspidal type inflated from GL(n, 𝔽ₚ) by reduction modulo p.

  ```lean
  theorem isCuspidal_of_inflates (i : ℚ_[g] ≃+* k) (hi : Continuous i) {n : ℕ} (τ : FDRep ℂ (Gn g n))
      (hτ : GlobalTheory.GLq.IsCusp τ.character) (σ : GlobalTheory.SmGL.IrrRep (GL (Fin n) k))
      (hs : GlobalTheory.SerSys.TameGen.Inflates (σ.ρ.comp (Matrix.GeneralLinearGroup.map i.toRingHom)) τ) :
      IsCuspidal σ.ρ := …
  ```
- `DiscreteGroups.sglob.DzType.lCusp`: Establishes the finite cuspidal inflation criterion in positive rank at number-field completions equipped with a continuous field isomorphism from the p-adic rationals.

  ```lean
  theorem lCusp : LCusp := …
  ```

### Development.WeilBound.RepresentationTheoryGL.GaloisPermutationReps.SubquotientEquivalence.ConjTorusSubApply

6 import steps from Main · 220 lines · Checked against the code · [Open in the Lean viewer](https://riemannhypothesissolved.com/file/Development.WeilBound.RepresentationTheoryGL.GaloisPermutationReps.SubquotientEquivalence.ConjTorusSubApply)

**Identifies the first congruence subgroup invariants of an irreducible smooth GL(n) representation with the image of a cuspidal type.**

For an irreducible smooth GL(n) representation over a nonarchimedean local field with central character, an embedded nonzero cuspidal representation of the residue-field GL(n), inflated along reduction, fills the first congruence subgroup invariants. In the Cartan decomposition, scalar diagonals preserve the type image, while non-scalar diagonals send it into the kernel of passage to congruence subgroup coinvariants by averaging over a finite unipotent radical. Irreducibility makes the translates span, and compact averaging identifies invariants with coinvariants. The fixed-space equality is used in proving depth-zero counting.

Key declarations:

- `PositivityTheory.Rg.DzCount.B.st6`: The image of a nonzero cuspidal type equals the first congruence subgroup fixed space in an irreducible smooth representation with central character.

  ```lean
  theorem st6 : St6 := …
  ```
- `PositivityTheory.Rg.DzCount.B.TorusConjugationFixed.range_le_fixed`: The image of any type map is fixed by the first congruence subgroup because the action on its source factors through reduction.

  ```lean
  theorem range_le_fixed {τ : Representation ℂ (GL (Fin n) 𝓀[k]) W}
      {π : Representation ℂ (GL (Fin n) k) V} {j : W →ₗ[ℂ] V} (hj : IsTypeMap τ π j) :
      LinearMap.range j ≤ fixed π (KOne k (Fin n)) := …
  ```
- `PositivityTheory.Rg.DzCount.B.TorusConjugationFixed.conj_torus_sub_apply`: If the diagonal entries are ϖ^{a_i}, conjugation multiplies the (i,j)-entry of g − 𝟙 by ϖ^{a_i−a_j}.

  ```lean
  theorem conj_torus_sub_apply (ϖ : kˣ) (a : Fin n → ℤ) (g : GL (Fin n) k) (i l : Fin n) :
      ((GlobalTheory.GLDoubling.torusElt k (Fin n) ϖ a * g * (GlobalTheory.GLDoubling.torusElt k (Fin n) ϖ a)⁻¹).val - 1) i l =
        (ϖ : k) ^ a i * (g.val - 1) i l * ((ϖ : k) ^ a l)⁻¹ := …
  ```
- `PositivityTheory.Rg.DzCount.B.TorusConjugationFixed.torus_mem_twKer`: A uniformizer diagonal with nonconstant exponents sends the cuspidal type image into the kernel of passage to first congruence subgroup coinvariants.

  ```lean
  theorem torus_mem_twKer {τ : Representation ℂ (GL (Fin n) 𝓀[k]) W} (hτ : FinCusp τ)
      {π : Representation ℂ (GL (Fin n) k) V} {j : W →ₗ[ℂ] V} (hj : IsTypeMap τ π j)
      {ϖ : kˣ} (hϖ : valuation k (ϖ : k) = uniformizer k) (a : Fin n → ℤ) (ha : ∃ i l, a i ≠ a l) (w : W) :
      π (GlobalTheory.GLDoubling.torusElt k (Fin n) ϖ a) (j w) ∈ twKer π (KOne k (Fin n)) 1 := …
  ```
- `PositivityTheory.Rg.DzCount.B.TorusConjugationFixed.apply_mem_sup`: With a central character, every group translate of a cuspidal type vector lies in the sum of the type image and the kernel of passage to first congruence subgroup coinvariants.

  ```lean
  theorem apply_mem_sup {τ : Representation ℂ (GL (Fin n) 𝓀[k]) W} (hτ : FinCusp τ)
      {π : Representation ℂ (GL (Fin n) k) V} {ω : kˣ →* ℂˣ} (hω : HasCentralChar π ω) {j : W →ₗ[ℂ] V}
      (hj : IsTypeMap τ π j) (g : GL (Fin n) k) (w : W) :
      π g (j w) ∈ LinearMap.range j ⊔ twKer π (KOne k (Fin n)) 1 := …
  ```

### Development.WeilBound.RepresentationTheoryGL.GaloisPermutationReps.SubquotientEquivalence.EquivariantPartsOfFiniteType

6 import steps from Main · 164 lines · Checked against the code · [Open in the Lean viewer](https://riemannhypothesissolved.com/file/Development.WeilBound.RepresentationTheoryGL.GaloisPermutationReps.SubquotientEquivalence.EquivariantPartsOfFiniteType)

**Gives an M-eigenvalue of exact q-power period dim V for jointly irreducible invertible M, G on finite-dimensional complex V with MG = GM^q.**

For invertible operators M and G on a nonzero finite-dimensional complex space V, assume MG = GM^q and joint irreducibility. Iterating G carries an M-eigenvector of eigenvalue z to eigenvectors with eigenvalues z^(q^i), and finiteness of the spectrum yields a periodic eigenvalue. For its least period d, a G^d-eigenvector in the corresponding M-eigenspace generates d independent iterates whose span is stable under both operators, so d = dim V. The exact-period theorem is used to label tame Weil–Deligne representations and in the proof of tame uniqueness.

Key declarations:

- `PositivityTheory.Rg.DzCount.st1a`: For a jointly irreducible pair of invertible operators on a finite-dimensional complex vector space V satisfying MG = GM^q, some nonzero eigenvalue of M has least positive period dim V under z ↦ z^q.

  ```lean
  theorem st1a : St1a := …
  ```
- `PositivityTheory.Rg.DzCount.eigenvector_maps_power`: Under MG = GM^q, G sends the z-eigenspace of M into its z^q-eigenspace.

  ```lean
  lemma eigenvector_maps_power {V : Type} [AddCommGroup V] [Module ℂ V] (q : ℕ) (M G : Module.End ℂ V)
      (hMG : M * G = G * M ^ q) (z : ℂ) (v : V) (hv : M v = z • v) : M (G v) = z ^ q • G v := …
  ```
- `PositivityTheory.Rg.DzCount.eigenvector_iterate_power`: Under MG = GM^q, G^i sends the z-eigenspace of M into its z^(q^i)-eigenspace.

  ```lean
  lemma eigenvector_iterate_power {V : Type} [AddCommGroup V] [Module ℂ V] (q : ℕ) (M G : Module.End ℂ V)
      (hMG : M * G = G * M ^ q) (z : ℂ) (v : V) (hv : M v = z • v) :
      ∀ i : ℕ, M ((G ^ i) v) = z ^ q ^ i • (G ^ i) v := …
  ```
- `PositivityTheory.Rg.DzCount.pow_pow_pow_add`: Composing the power maps with exponents q^a and q^b gives the power map with exponent q^(a+b).

  ```lean
  lemma pow_pow_pow_add (z : ℂ) (q a b : ℕ) : (z ^ q ^ a) ^ q ^ b = z ^ q ^ (a + b) := …
  ```

### Development.WeilBound.RepresentationTheoryGL.GaloisPermutationReps.SubquotientEquivalence.ExistsLiftUnipotentRadical

6 import steps from Main · 210 lines · Checked against the code · [Open in the Lean viewer](https://riemannhypothesissolved.com/file/Development.WeilBound.RepresentationTheoryGL.GaloisPermutationReps.SubquotientEquivalence.ExistsLiftUnipotentRadical)

**Proves that an irreducible smooth GL(n) representation containing an inflated cuspidal type is cuspidal.**

For GL(n) over a nonarchimedean local field, reduction maps each integral parabolic unipotent radical onto its residue-field counterpart. The lift is obtained entrywise in the strictly upper blocks, with identity diagonal blocks. Averaging over the finite radical kills the cuspidal type in the local unipotent coinvariants. The parabolic–maximal compact decomposition extends this vanishing to every translate of the type, and irreducibility gives vanishing of the entire Jacquet module for each proper parabolic. The cuspidality theorem is used in the depth-zero counting argument.

Key declarations:

- `PositivityTheory.Rg.DzCount.st5`: An irreducible smooth complex representation of GL(n) over a nonarchimedean local field is cuspidal if it contains an inflated nonzero cuspidal representation of the residue-field GL(n).

  ```lean
  theorem st5 : St5 := …
  ```
- `PositivityTheory.Rg.DzCount.L5.mem_unipotent_radical_iff_alt`: A matrix lies in the unipotent radical exactly when its entries agree with the identity outside the strictly upper blocks.

  ```lean
  theorem mem_unipotent_radical_iff_alt {u : GL (Fin N) R} :
      u ∈ unipRad R e ↔
        ∀ i j, ¬ blk e i < blk e j → (u : Matrix (Fin N) (Fin N) R) i j = (1 : Matrix (Fin N) (Fin N) R) i j := …
  ```
- `PositivityTheory.Rg.DzCount.L5.unipotent_radical_ne_bot`: Over a field, a pair of indices in strictly ordered blocks gives a nonidentity transvection in the unipotent radical.

  ```lean
  theorem unipotent_radical_ne_bot {K : Type} [Field K] (h : ∃ i j, blk e i < blk e j) : unipRad K e ≠ ⊥ := …
  ```
- `PositivityTheory.Rg.DzCount.L5.exists_lift_unipotent_radical`: Every element of the residue-field unipotent radical lifts to an integral element of the corresponding local unipotent radical.

  ```lean
  theorem exists_lift_unipotent_radical (u : GL (Fin N) 𝓀[k]) (hu : u ∈ unipRad 𝓀[k] e) :
      ∃ g : KO k (Fin N), redK k (Fin N) g = u ∧ (g : GL (Fin N) k) ∈ unipRad k e := …
  ```
- `PositivityTheory.Rg.DzCount.L5.lift_mem_twisted_kernel`: If the finite unipotent radical has zero invariants in the source, every vector in the image of a reduction-equivariant map vanishes in the corresponding local unipotent coinvariants.

  ```lean
  theorem lift_mem_twisted_kernel {W V : Type} [AddCommGroup W] [Module ℂ W] [AddCommGroup V] [Module ℂ V]
      (τ : Representation ℂ (GL (Fin N) 𝓀[k]) W) (ρ : Representation ℂ (GL (Fin N) k) V) (j : W →ₗ[ℂ] V)
      (hj : ∀ (g : KO k (Fin N)) (v : W), j (τ (redK k (Fin N) g) v) = ρ (g : GL (Fin N) k) (j v))
      (hCF : ∀ v : W, (∀ u ∈ unipRad 𝓀[k] e, τ u v = v) → v = 0) (x : W) :
      j x ∈ twKer ρ (unipRad k e) 1 := …
  ```

### Development.WeilBound.RepresentationTheoryGL.GaloisPermutationReps.SubquotientEquivalence.ExistsMaximalStableAvoiding

6 import steps from Main · 216 lines · Checked against the code · [Open in the Lean viewer](https://riemannhypothesissolved.com/file/Development.WeilBound.RepresentationTheoryGL.GaloisPermutationReps.SubquotientEquivalence.ExistsMaximalStableAvoiding)

**Embeds irreducible residue-field GL(n) types in smooth irreducible local representations with prescribed central value at a uniformizer.**

An irreducible complex representation of the residue-field GL(n) embeds, after inflation to GL(n) of the valuation ring, in a smooth irreducible representation over the local field. Its central character extends that of the finite type on units and takes any prescribed nonzero complex value at a uniformizer. The proof takes the cyclic span of a nonzero type vector in the depth-zero representation and uses Zorn's lemma to quotient by a maximal invariant subspace avoiding that vector. This preserves the entire type by irreducibility and supplies the existence step in depth-zero counting.

Key declarations:

- `PositivityTheory.Rg.DzCount.st4`: For n > 0, every finite-dimensional irreducible complex representation of the residue-field GL(n) admits a reduction-equivariant embedding into a smooth irreducible local representation whose central character takes a prescribed nonzero value at a chosen uniformizer.

  ```lean
  theorem st4 : St4 := …
  ```
- `PositivityTheory.Rg.DzCount.exists_maximal_stable_avoiding`: Every nonzero vector in a complex group representation is avoided by an invariant subspace maximal among those avoiding it.

  ```lean
  theorem exists_maximal_stable_avoiding (π : Representation ℂ G V) (x₀ : V) (hx₀ : x₀ ≠ 0) :
      ∃ M : Submodule ℂ V, (∀ g, ∀ v ∈ M, π g v ∈ M) ∧ x₀ ∉ M ∧
        ∀ N : Submodule ℂ V, (∀ g, ∀ v ∈ N, π g v ∈ N) → x₀ ∉ N → M ≤ N → N = M := …
  ```
- `PositivityTheory.Rg.DzCount.quotRep4_irr`: Quotienting a cyclic representation by an invariant subspace maximal among those avoiding its generator yields an irreducible representation.

  ```lean
  theorem quotRep4_irr (π : Representation ℂ G V) (M : Submodule ℂ V) (hM : ∀ g, ∀ v ∈ M, π g v ∈ M) (x₀ : V)
      (hgen : ∀ N : Submodule ℂ V, (∀ g, ∀ v ∈ N, π g v ∈ N) → x₀ ∈ N → N = ⊤) (hx₀ : x₀ ∉ M)
      (hmax : ∀ N : Submodule ℂ V, (∀ g, ∀ v ∈ N, π g v ∈ N) → x₀ ∉ N → M ≤ N → N = M) :
      (quotRep4 π M hM).IsIrreducible := …
  ```
- `PositivityTheory.Rg.DzCount.subRep4`: The group action restricts to a representation on any invariant subspace.

  ```lean
  def subRep4 (π : Representation ℂ G V) (U : Submodule ℂ V) (hU : ∀ g, ∀ v ∈ U, π g v ∈ U) :
      Representation ℂ G U
  ```
- `PositivityTheory.Rg.DzCount.quotRep4`: The group action descends to a representation on the quotient by any invariant subspace.

  ```lean
  def quotRep4 (π : Representation ℂ G V) (M : Submodule ℂ V) (hM : ∀ g, ∀ v ∈ M, π g v ∈ M) :
      Representation ℂ G (V ⧸ M)
  ```

### Development.WeilBound.RepresentationTheoryGL.GaloisPermutationReps.SubquotientEquivalence.FiniteCuspidalOfIsCuspidal

6 import steps from Main · 137 lines · Checked against the code · [Open in the Lean viewer](https://riemannhypothesissolved.com/file/Development.WeilBound.RepresentationTheoryGL.GaloisPermutationReps.SubquotientEquivalence.FiniteCuspidalOfIsCuspidal)

**Proves a two-block cuspidality test for finite GL(n) and gives an injective parametrization of cuspidal classes by polynomial labels.**

Every nontrivial parabolic unipotent radical contains a two-block radical obtained by cutting its ordered blocks, so vanishing of invariants for two-block radicals suffices for cuspidality. For a finite field and n > 0, each monic irreducible polynomial of degree n with nonzero constant term is assigned an irreducible cuspidal complex representation of GL(n). Trace invariance under conjugacy transports labels across isomorphisms, and uniqueness of the label makes the assignment injective on isomorphism classes. This assignment is used in depth-zero counting.

Key declarations:

- `PositivityTheory.Rg.DzCount.finite_cuspidal_of_isCuspidal`: The finite cuspidality criterion implies vanishing of invariants under every nontrivial parabolic unipotent radical.

  ```lean
  theorem finite_cuspidal_of_isCuspidal {K : Type} [Field K] [Fintype K] [DecidableEq K] {n : ℕ}
      (τ : FDRep ℂ (GL (Fin n) K)) (h : Formalism.IrreducibleCountingLemmas.TYPES.IsCuspidal K τ) : FinCusp τ.ρ := …
  ```
- `PositivityTheory.Rg.DzCount.exists_block_lt_unipotent`: A nontrivial unipotent radical requires at least two distinct nonempty blocks in the ordered block decomposition.

  ```lean
  theorem exists_block_lt_unipotent {K : Type} [Field K] {n s : ℕ} {d : Fin s → ℕ}
      (e : (Σ a, Fin (d a)) ≃ Fin n) (h : GlobalTheory.SmGL.unipRad K e ≠ ⊥) :
      ∃ i j : Fin n, GlobalTheory.SmGL.blk e i < GlobalTheory.SmGL.blk e j := …
  ```
- `PositivityTheory.Rg.DzCount.hasCuspLabel_of_equiv`: An intertwining linear isomorphism preserves the cuspidal polynomial label.

  ```lean
  theorem hasCuspLabel_of_equiv {K : Type} [Field K] [Fintype K] [DecidableEq K]
      (C : Formalism.IrreducibleCountingLemmas.TYPES.LabelConv K) {n : ℕ} {τ τ' : FDRep ℂ (GL (Fin n) K)} (e : τ ≃ₗ[ℂ] τ')
      (he : ∀ g v, e (τ.ρ g v) = τ'.ρ g (e v)) {P : K[X]} (h : Formalism.IrreducibleCountingLemmas.TYPES.HasCuspLabel C τ P) :
      Formalism.IrreducibleCountingLemmas.TYPES.HasCuspLabel C τ' P := …
  ```
- `PositivityTheory.Rg.DzCount.st7`: Over a finite field, each monic irreducible polynomial of positive degree n with nonzero constant term can be assigned an irreducible cuspidal complex representation of GL(n), with distinct labels giving nonisomorphic representations.

  ```lean
  theorem st7 : St7 := …
  ```

### Development.WeilBound.RepresentationTheoryGL.GaloisPermutationReps.SubquotientEquivalence.HasCentralCharOfEquiv

6 import steps from Main · 140 lines · Checked against the code · [Open in the Lean viewer](https://riemannhypothesissolved.com/file/Development.WeilBound.RepresentationTheoryGL.GaloisPermutationReps.SubquotientEquivalence.HasCentralCharOfEquiv)

**Derives an injection from residue-field polynomial labels to depth-zero cuspidal GL(n) classes with a prescribed central value.**

Isomorphisms preserve central characters and identify subgroup fixed spaces. When the images of two embedded residue-field types are the full first congruence fixed spaces, a local isomorphism induces an isomorphism of the types by surjectivity of reduction. Given the type-existence, cuspidality, fixed-space, and finite labeling results, this yields an injection from monic irreducible degree-n polynomials with nonzero constant term to depth-zero cuspidal GL(n) classes with a prescribed central character value at a uniformizer. The direct importer supplies these four inputs to obtain the counting theorem.

Key declarations:

- `PositivityTheory.Rg.DzCount.st8a`: The four type and labeling results imply an injective assignment of admissible polynomial labels to depth-zero cuspidal GL(n) classes with a prescribed central character value at a uniformizer.

  ```lean
  theorem st8a : St4 → St5 → St6 → St7 → St8a := …
  ```
- `PositivityTheory.Rg.DzCount.CentralCharacterTransfer.transfer`: An isomorphism of local representations induces an isomorphism of their residue-field types when each type image equals the full first congruence fixed space.

  ```lean
  theorem transfer {W W' V V' : Type} [AddCommGroup W] [Module ℂ W] [AddCommGroup W'] [Module ℂ W']
      [AddCommGroup V] [Module ℂ V] [AddCommGroup V'] [Module ℂ V'] {n : ℕ}
      {τ : Representation ℂ (GL (Fin n) 𝓀[k]) W} {τ' : Representation ℂ (GL (Fin n) 𝓀[k]) W'}
      {π : Representation ℂ (GL (Fin n) k) V} {π' : Representation ℂ (GL (Fin n) k) V'}
      {j : W →ₗ[ℂ] V} {j' : W' →ₗ[ℂ] V'} (hj : IsTypeMap τ π j) (hj' : IsTypeMap τ' π' j')
      (hf : fixed π (KOne k (Fin n)) = LinearMap.range j) (hf' : fixed π' (KOne k (Fin n)) = LinearMap.range j')
      (φ : π.Equiv π') : ∃ e : W ≃ₗ[ℂ] W', ∀ g v, e (τ g v) = τ' g (e v) := …
  ```
- `PositivityTheory.Rg.DzCount.CentralCharacterTransfer.map_fixed`: A representation isomorphism maps the fixed space of any subgroup onto the corresponding fixed space in the target.

  ```lean
  theorem map_fixed {G V W : Type} [Group G] [AddCommGroup V] [Module ℂ V] [AddCommGroup W] [Module ℂ W]
      {ρ : Representation ℂ G V} {σ : Representation ℂ G W} (φ : ρ.Equiv σ) (H : Subgroup G) :
      (fixed ρ H).map φ.toLinearEquiv.toLinearMap = fixed σ H := …
  ```
- `PositivityTheory.Rg.DzCount.CentralCharacterTransfer.hasCentralChar_of_equiv`: An isomorphism of GL(n) representations preserves the character by which scalar matrices act.

  ```lean
  theorem hasCentralChar_of_equiv {k V W : Type} [Field k] [AddCommGroup V] [Module ℂ V] [AddCommGroup W] [Module ℂ W]
      {n : ℕ} {π : Representation ℂ (GL (Fin n) k) V} {σ : Representation ℂ (GL (Fin n) k) W} (φ : π.Equiv σ)
      {ω : kˣ →* ℂˣ} (h : HasCentralChar π ω) : HasCentralChar σ ω := …
  ```

### Development.WeilBound.RepresentationTheoryGL.GaloisPermutationReps.SubquotientEquivalence.IsUnitRho

6 import steps from Main · 88 lines · Checked against the code · [Open in the Lean viewer](https://riemannhypothesissolved.com/file/Development.WeilBound.RepresentationTheoryGL.GaloisPermutationReps.SubquotientEquivalence.IsUnitRho)

**Derives injective polynomial labels for irreducible tame Weil–Deligne classes of fixed dimension and Frobenius determinant.**

Fix a degree −1 Frobenius element, a positive dimension n, and its determinant on the representations under consideration. The proof uses an inertia eigenvalue of exact period n under the q-power map, where q is the residue-field size, to assign a monic irreducible degree-n polynomial with nonzero constant term. Equal labels put the eigenvalues in the same q-power orbit, and the common Frobenius determinant then yields an isomorphism by the two-operator comparison. The direct importer supplies the four inputs to obtain the tame labeling theorem.

Key declarations:

- `PositivityTheory.Rg.DzCount.st3`: Given the operator, Weil-group, and finite-field labeling results, the irreducible tame Weil–Deligne classes of fixed positive dimension and determinant at a degree −1 Frobenius element inject into the admissible polynomial labels.

  ```lean
  theorem st3 : St1a → St1b → St2 → St3a → St3 := …
  ```
- `PositivityTheory.Rg.DzCount.DepthZeroEigenvalues.exists_good`: Every irreducible tame Weil–Deligne class has a representative whose Weil action is irreducible and trivial on wild inertia.

  ```lean
  theorem exists_good {y : WD h} (hi : IsIrrWD y) (ht : IsTameWD y) :
      ∃ (m : ℕ) (a : WDRep h (Fin m → ℂ)), WD.mk a = y ∧ a.ρ.IsIrreducible ∧
        ∀ σ : Weil h, Formalism.MainNotions.BlochKatoReduction.IsWild A (σ : G E Ω) → a.ρ σ = 1 := …
  ```
- `PositivityTheory.Rg.DzCount.DepthZeroEigenvalues.isUnit_rho`: Every Weil group element acts by an invertible linear operator.

  ```lean
  theorem isUnit_rho {m : ℕ} (a : WDRep h (Fin m → ℂ)) (σ : Weil h) : IsUnit (a.ρ σ) := …
  ```
- `PositivityTheory.Rg.DzCount.DepthZeroEigenvalues.eig_prod`: The product of the eigenvalues of a Weil group element, counted with multiplicity, equals the determinant of its action.

  ```lean
  theorem eig_prod {m : ℕ} (a : WDRep h (Fin m → ℂ)) (σ : Weil h) :
      ((WD.mk a).eig σ).prod = LinearMap.det (a.ρ σ) := …
  ```
- `PositivityTheory.Rg.DzCount.DepthZeroEigenvalues.card_res`: The residue field of the completion at a finite place has cardinality equal to the norm of that place.

  ```lean
  theorem card_res (w : HeightOneSpectrum (𝓞 E)) : Nat.card 𝓀[w.adicCompletion E] = normV w := …
  ```

### Development.WeilBound.RepresentationTheoryGL.GaloisPermutationReps.SubquotientEquivalence.LabFinite

6 import steps from Main · 23 lines · Checked against the code · [Open in the Lean viewer](https://riemannhypothesissolved.com/file/Development.WeilBound.RepresentationTheoryGL.GaloisPermutationReps.SubquotientEquivalence.LabFinite)

**Proves a finiteness lemma for degree-n polynomial labels over a finite field.**

The labels are the monic irreducible polynomials of degree n with nonzero constant term. They lie in the space of polynomials of degree less than n + 1, which is finite because its elements are determined by their n + 1 coefficients.

Key declarations:

- `PositivityTheory.Rg.DzCount.lab_finite`: For every finite field and every n, the set of monic irreducible degree-n polynomials with nonzero constant term is finite.

  ```lean
  theorem lab_finite (K : Type) [Field K] [Finite K] (n : ℕ) : (Lab K n).Finite := …
  ```

### Development.WeilBound.RepresentationTheoryGL.GaloisPermutationReps.SubquotientEquivalence.LeviInductionForms

6 import steps from Main · 186 lines · Checked against the code · [Open in the Lean viewer](https://riemannhypothesissolved.com/file/Development.WeilBound.RepresentationTheoryGL.GaloisPermutationReps.SubquotientEquivalence.LeviInductionForms)

**Assigns finite-field polynomial labels that distinguish exact-period q-power orbits of nonzero complex numbers.**

For a finite field K of size q and n > 0, matching powers of primitive roots of order q^n − 1 in ℂ and an algebraic closure of K identifies the roots of unity of orders dividing q^n − 1. A nonzero complex number of exact q-power period n is labeled by the minimal polynomial of its counterpart, which has degree n by the Frobenius period calculation. Every root of that polynomial is a Frobenius iterate, so equal labels place the original complex numbers in the same q-power orbit. The labeling supplies the finite-field step in the injection on irreducible tame Weil–Deligne classes of fixed positive dimension and fixed determinant at a chosen degree −1 Weil element.

Key declarations:

- `PositivityTheory.Rg.DzCount.st3a`: Nonzero complex numbers of exact q-power period n admit labels by monic irreducible degree-n polynomials over K with nonzero constant term, and equal labels imply membership in the same q-power orbit.

  ```lean
  theorem st3a : St3a := …
  ```
- `PositivityTheory.Rg.DzCount.LeviInductionForms.natDegree_minpoly_eq`: An element of a field extension of K with exact Frobenius period n has minimal polynomial of degree n over K.

  ```lean
  theorem natDegree_minpoly_eq {K F : Type*} [Field K] [Finite K] [Field F] [Algebra K F] (n : ℕ)
      (hn : 0 < n) (w : F) (hw : IsIntegral K w) (h1 : w ^ (Nat.card K) ^ n = w)
      (h2 : ∀ d, 0 < d → d < n → w ^ (Nat.card K) ^ d ≠ w) : (minpoly K w).natDegree = n := …
  ```
- `PositivityTheory.Rg.DzCount.LeviInductionForms.exists_eq_pow_of_aeval`: Every root in the extension field of the minimal polynomial of an element of exact Frobenius period n is a Frobenius iterate of that element.

  ```lean
  theorem exists_eq_pow_of_aeval {K F : Type*} [Field K] [Fintype K] [Field F] [Algebra K F] (n : ℕ)
      (hn : 0 < n) (w w' : F) (hw : IsIntegral K w) (h1 : w ^ (Nat.card K) ^ n = w)
      (h2 : ∀ d, 0 < d → d < n → w ^ (Nat.card K) ^ d ≠ w)
      (hP : Polynomial.aeval w' (minpoly K w) = 0) : ∃ i : ℕ, w' = w ^ (Nat.card K) ^ i := …
  ```
- `PositivityTheory.Rg.DzCount.LeviInductionForms.pow_eq_pow_iff_mod`: Two nonnegative powers of a primitive root of positive order N agree exactly when their exponents are congruent modulo N.

  ```lean
  theorem pow_eq_pow_iff_mod {M : Type*} [CommMonoid M] {ζ : M} {N : ℕ} (h : IsPrimitiveRoot ζ N)
      (hN : 0 < N) (a b : ℕ) : ζ ^ a = ζ ^ b ↔ a % N = b % N := …
  ```

### Development.WeilBound.RepresentationTheoryGL.GaloisPermutationReps.SubquotientEquivalence.MemOfTameGeneratorFrobenius

6 import steps from Main · 255 lines · Checked against the code · [Open in the Lean viewer](https://riemannhypothesissolved.com/file/Development.WeilBound.RepresentationTheoryGL.GaloisPermutationReps.SubquotientEquivalence.MemOfTameGeneratorFrobenius)

**Reduces irreducibility and isomorphism of tame Weil–Deligne representations to a tame inertia generator and Frobenius.**

For a tame inertia generator γ and a degree −1 Frobenius element φ, the operators M = ρ(γ) and G = ρ(φ) satisfy MG = GM^q, where q is the residue-field size. Smoothness makes the kernel on inertia open, so stability and intertwining for these two operators extend to the full Weil action. An irreducible Weil action forces the nilpotent monodromy to vanish because its kernel is a nonzero invariant subspace. The two-operator reduction is used to construct injective polynomial labels for irreducible tame Weil–Deligne classes of fixed positive dimension and fixed eigenvalue product at the chosen Frobenius.

Key declarations:

- `PositivityTheory.Rg.DzCount.st2`: For a degree −1 Frobenius element one can choose a tame inertia generator satisfying the q-power relation on tame Weil actions, such that irreducibility gives a jointly irreducible pair and an isomorphism of pairs lifts to a Weil–Deligne isomorphism when both Weil actions are irreducible.

  ```lean
  theorem st2 : St2 := …
  ```
- `PositivityTheory.Rg.DzCount.TameWeilRepresentationIrreducibility.mem_of_tame_generator_frobenius`: A subgroup containing the kernel of a smooth homomorphism trivial on wild inertia, a tame inertia generator, and a degree −1 Frobenius element equals the whole Weil group.

  ```lean
  theorem mem_of_tame_generator_frobenius {M : Type*} [Monoid M] (f : Weil h →* M) (hf : GlobalTheory.WeilDeligne.IsSmooth f)
      (hw : ∀ σ : Weil h, (σ : G E Ω) ∈ GlobalTheory.WeilDeligne.Wild E A → f σ = 1)
      {γ0 : G E Ω} (hγ : Formalism.BasicNotions.TameGenAt A γ0) {φ : Weil h} (hφ : deg φ = -1)
      (S : Subgroup (Weil h)) (hS : ∀ σ, f σ = 1 → σ ∈ S)
      (h1 : (⟨γ0, GlobalTheory.WeilDeligne.Ine_le_Weil h hγ.1⟩ : Weil h) ∈ S) (h2 : φ ∈ S) (σ : Weil h) : σ ∈ S := …
  ```
- `PositivityTheory.Rg.DzCount.TameWeilRepresentationIrreducibility.irreducible_monodromy_zero`: The monodromy operator of a Weil–Deligne representation with irreducible Weil action is zero.

  ```lean
  theorem irreducible_monodromy_zero (a : WDRep h V) (ha : a.ρ.IsIrreducible) : a.N = 0 := …
  ```
- `PositivityTheory.Rg.DzCount.TameWeilRepresentationIrreducibility.wild_inertia_isWild`: Every wild inertia element σ belongs to inertia and satisfies the strict multiplicative valuation inequality v(σx − x) < v(x) for every nonzero x.

  ```lean
  theorem wild_inertia_isWild {σ : G E Ω} (hσ : σ ∈ GlobalTheory.WeilDeligne.Wild E A) : Formalism.MainNotions.BlochKatoReduction.IsWild A σ := …
  ```

### Development.WeilBound.RepresentationTheoryGL.GaloisPermutationReps.SubquotientEquivalence.PairingFactorsThroughPeriods

6 import steps from Main · 206 lines · Checked against the code · [Open in the Lean viewer](https://riemannhypothesissolved.com/file/Development.WeilBound.RepresentationTheoryGL.GaloisPermutationReps.SubquotientEquivalence.PairingFactorsThroughPeriods)

**Proves simultaneous conjugacy for MG = GM^q pairs with invertible G, equal G determinants, and a common full-length M-eigenvalue orbit.**

For two pairs satisfying MG = GM^q on n-dimensional complex spaces with G invertible, assume their M-eigenvalues include points on the same nonzero q-power orbit of exact length n. Iterating G on an eigenvector gives a basis because the resulting M-eigenvalues are distinct. After aligning the starting eigenvalue, both pairs have the same diagonal entries for M and the same cyclic shift for G, with the determinant of G fixing the scalar on the last step. This comparison is used to show that polynomial labels distinguish irreducible tame Weil–Deligne classes of fixed positive dimension and fixed Frobenius determinant.

Key declarations:

- `PositivityTheory.Rg.DzCount.st1b`: Two pairs satisfying MG = GM^q in the same positive dimension are simultaneously conjugate if their invertible shift operators have equal determinants and their M-eigenvalues include points on a common nonzero q-power orbit of length equal to that dimension.

  ```lean
  theorem st1b : St1b := …
  ```
- `PositivityTheory.Rg.DzCount.PairingFactorsThroughPeriods.basis_side`: If G is invertible and MG = GM^q, a nonzero M-eigenvalue of exact q-power period equal to the dimension yields a basis in which M is diagonal and G is a cyclic shift with a nonzero scalar on the last step.

  ```lean
  theorem basis_side {V : Type} [AddCommGroup V] [Module ℂ V] [FiniteDimensional ℂ V]
      {q m : ℕ} (M G : Module.End ℂ V) (hG : IsUnit G) (hMG : M * G = G * M ^ q) {z : ℂ}
      (hz : ExactPer q (m + 1) z) (hr : Module.finrank ℂ V = m + 1) {v : V} (hv0 : v ≠ 0)
      (hv : M v = z • v) :
      ∃ b : Module.Basis (Fin (m + 1)) ℂ V, (∀ j : Fin (m + 1), M (b j) = z ^ q ^ (j : ℕ) • b j) ∧
        (∀ k : Fin m, G (b k.castSucc) = b k.succ) ∧
        ∃ μ : ℂ, μ ≠ 0 ∧ G (b (Fin.last m)) = μ • b 0 := …
  ```
- `PositivityTheory.Rg.DzCount.PairingFactorsThroughPeriods.eig_G`: Under MG = GM^q, applying G^k to the c-eigenspace of M lands in the c^(q^k)-eigenspace.

  ```lean
  theorem eig_G {V : Type} [AddCommGroup V] [Module ℂ V] {q : ℕ} (M G : Module.End ℂ V)
      (hMG : M * G = G * M ^ q) {v : V} {c : ℂ} (hv : M v = c • v) (k : ℕ) :
      M ((G ^ k) v) = c ^ q ^ k • (G ^ k) v := …
  ```
- `PositivityTheory.Rg.DzCount.PairingFactorsThroughPeriods.per_inj`: The first n iterates under the q-power map of a number of exact period n are pairwise distinct.

  ```lean
  theorem per_inj {q n : ℕ} {z : ℂ} (hz : ExactPer q n z) {a b : ℕ} (ha : a < n) (hb : b < n)
      (h : z ^ q ^ a = z ^ q ^ b) : a = b := …
  ```

### Development.AutomorphicArithmetic.Foundations.LocalLanglands.LocalCentralUnits.ExponentMulAbsPow

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

**Constructs a central-character exponent that normalizes the determinant modulus of Weil–Deligne parameters.**

For an irreducible GL(n) representation with n positive, the exponent is the real exponent of its central-character modulus divided by n. The proof computes the change in the character exponent by evaluating at a uniformizer, so twisting by the s-th power of the determinant norm adds s to the normalized exponent. Twisting a matching-dimensional Weil–Deligne parameter of unit determinant modulus by this exponent makes its determinant modulus agree with that of the central character pulled back by local Artin reciprocity. The cuspidal parameter construction uses this normalization for its auxiliary parameters.

Key declarations:

- `UpperTheory.Zero.LLC.expo`: A real exponent on irreducible representations of positive rank shifts additively under real norm twists and, when used to twist a parameter of matching dimension and unit determinant modulus, makes its determinant modulus equal to the central-character modulus pulled back along the given local Artin map.

  ```lean
  theorem expo : Expo := …
  ```
- `UpperTheory.Zero.LLC.exponent_mul_absPow`: For smooth characters χ and χ′ with χ′ = χ · (|·|^s)^d, where |·| is the normalized absolute value, d is natural, and s is real, the real exponent of χ′ is that of χ plus d·s.

  ```lean
  private theorem exponent_mul_absPow {χ χ' : kˣ →* ℂˣ} (hχ : IsSmoothChar χ) (hχ' : IsSmoothChar χ') (d : ℕ) (s : ℝ)
      (e : χ' = χ * absPow k (s : ℂ) ^ d) :
      GroundTheory.LocalField.quasiCharExponent χ' = GroundTheory.LocalField.quasiCharExponent χ + d * s := …
  ```
- `UpperTheory.Zero.LLC.norm_smooth_char`: The modulus of a smooth complex character is the normalized absolute value raised to its real exponent.

  ```lean
  private theorem norm_smooth_char {χ : kˣ →* ℂˣ} (hχ : IsSmoothChar χ) (z : kˣ) :
      ‖(χ z : ℂ)‖ = nabs k z ^ GroundTheory.LocalField.quasiCharExponent χ := …
  ```
- `UpperTheory.Zero.LLC.nabs_eq_residue`: The normalized absolute value of a nonzero element is q raised to the negative of its valuation, where q is the residue field cardinality.

  ```lean
  private theorem nabs_eq_residue (z : kˣ) :
      nabs k z = (GroundTheory.LocalField.residueCard k : ℝ) ^ (-GroundTheory.LocalField.ord (z : k)) := …
  ```

### Development.AutomorphicArithmetic.Foundations.LocalLanglands.LocalCentralUnits.GoodMap

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

**Constructs twist-compatible Weil–Deligne parameters for rank-one characters at finite places and for depth-zero cuspidal twists over ℚₚ.**

Given a local Artin map at a finite completion, the assignment pulls rank-one characters back along it and, at completions isomorphic to ℚₚ, extends the prescribed depth-zero cuspidal parameters by smooth character twists. If two twists of depth-zero cuspidals give the same representation, the quotient of the twisting characters is tame and twists one base representation into the other, so tame twist compatibility and uniqueness of the depth-zero parameter give the same result. The rank-one Artin formula agrees with the twisting construction wherever both apply. The proof of cuspEx uses this assignment on these two classes.

Key declarations:

- `UpperTheory.Zero.LLC.goodMap`: There exists a parameter map with the rank-one Artin formula, the prescribed parameters on depth-zero cuspidals over Q_p, and smooth twist compatibility on the stated cuspidal class.

  ```lean
  theorem goodMap : GoodMap := …
  ```
- `UpperTheory.Zero.LLC.Rel`: The relation pairs a rank-one character with its Artin pullback and a twist of a depth-zero cuspidal over Q_p with the corresponding twist of its prescribed parameter.

  ```lean
  private def Rel (a : Weil h →* (w.adicCompletion E)ˣ) (ha : IsLocalArtin h a)
      (x : IrrGL (w.adicCompletion E)) (V : WD h) : Prop :=
    (∃ χ hχ, x = .ofChar χ hχ ∧ V = WD.lpOfChar h (χ.comp a) (ha.smooth hχ)) ∨
    ((∃ (g : ℕ) (_ : Fact g.Prime) (i : ℚ_[g] ≃+* w.adicCompletion E), Continuous i) ∧
      ∃ (y₀ : IrrGL (w.adicCompletion E)) (V₀ : WD h) (χ : (w.adicCompletion E)ˣ →* ℂˣ) (hχ : IsSmoothChar χ),
        y₀.IsCusp ∧ DZ y₀ ∧ Par a y₀ V₀ ∧ x = y₀.tw χ hχ ∧ V = V₀.lpTwist (χ.comp a) (ha.smooth hχ))
  ```
- `UpperTheory.Zero.LLC.twist_eq_of_tw_eq`: Two presentations of the same representation as character twists of depth-zero cuspidals over Q_p give equal twisted parameters.

  ```lean
  private theorem twist_eq_of_tw_eq {a : Weil h →* (w.adicCompletion E)ˣ} (ha : IsLocalArtin h a)
      (hq : ∃ (g : ℕ) (_ : Fact g.Prime) (i : ℚ_[g] ≃+* w.adicCompletion E), Continuous i)
      {y₀ y₁ : IrrGL (w.adicCompletion E)} {V₀ V₁ : WD h} {χ χ₁ : (w.adicCompletion E)ˣ →* ℂˣ}
      {hχ : IsSmoothChar χ} {hχ₁ : IsSmoothChar χ₁}
      (c : y₀.IsCusp) (d : DZ y₀) (p : Par a y₀ V₀) (c₁ : y₁.IsCusp) (d₁ : DZ y₁) (p₁ : Par a y₁ V₁)
      (e : y₀.tw χ hχ = y₁.tw χ₁ hχ₁) :
      V₀.lpTwist (χ.comp a) (ha.smooth hχ) = V₁.lpTwist (χ₁.comp a) (ha.smooth hχ₁) := …
  ```
- `UpperTheory.Zero.LLC.ofChar_eq_of_tw_eq`: When a rank-one character also has a depth-zero twisting presentation over Q_p, the Artin parameter equals the parameter obtained by twisting.

  ```lean
  private theorem ofChar_eq_of_tw_eq {a : Weil h →* (w.adicCompletion E)ˣ} (ha : IsLocalArtin h a)
      (hq : ∃ (g : ℕ) (_ : Fact g.Prime) (i : ℚ_[g] ≃+* w.adicCompletion E), Continuous i)
      {ψ χ : (w.adicCompletion E)ˣ →* ℂˣ} {hψ : IsSmoothChar ψ} {hχ : IsSmoothChar χ}
      {y₀ : IrrGL (w.adicCompletion E)} {V₀ : WD h} (c : y₀.IsCusp) (d : DZ y₀) (p : Par a y₀ V₀)
      (e : IrrGL.ofChar ψ hψ = y₀.tw χ hχ) :
      WD.lpOfChar h (ψ.comp a) (ha.smooth hψ) = V₀.lpTwist (χ.comp a) (ha.smooth hχ) := …
  ```
- `UpperTheory.Zero.LLC.rel_unique`: Any two parameters related to the same representation by the defining relation are equal.

  ```lean
  private theorem rel_unique {a : Weil h →* (w.adicCompletion E)ˣ} (ha : IsLocalArtin h a)
      {x : IrrGL (w.adicCompletion E)} {V V' : WD h} (H : Rel a ha x V) (H' : Rel a ha x V') : V = V' := …
  ```

### Development.AutomorphicArithmetic.Foundations.LocalLanglands.LocalCentralUnits.JunkEx

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

**Constructs auxiliary irreducible Weil–Deligne parameters of unit determinant modulus in every dimension n ≥ 2.**

At a finite place with residue cardinality q, the proof uses local Artin reciprocity and a residue logarithm on units to obtain an inertia quotient isomorphic to the additive group of a field of size q^n. Frobenius conjugation acts on this quotient by the q-power map of order n, and an inertia character with an orbit of length n gives the parameter. Over Q_p the parameter lies outside every character-twist orbit of a tame parameter. The cuspidal existence theorem uses norm twists of these auxiliary parameters to complete its assignment.

Key declarations:

- `UpperTheory.Zero.LLC.junkEx`: At each finite place and in each dimension n ≥ 2, there is an irreducible Weil–Deligne parameter of unit determinant modulus that, over Q_p, lies outside every character-twist orbit of a tame parameter.

  ```lean
  theorem UpperTheory.Zero.LLC.junkEx :
      UpperTheory.Zero.LLC.JunkEx := …
  ```
- `UpperTheory.Zero.LLC.junkData`: Inertia surjects with open kernel onto the additive group of a field of size q^n, with Frobenius conjugation inducing a field automorphism of order n.

  ```lean
  private theorem junkData (E Ω : Type) [Field E] [NumberField E] [Field Ω] [Algebra E Ω] [IsAlgClosure E Ω] (A : ValuationSubring Ω)
      (w : HeightOneSpectrum (𝓞 E)) (h : IsPlaceOver A w) (n : ℕ) (hn : 2 ≤ n) :
      ∃ (K : Type) (_ : Field K) (_ : Finite K) (f : RingAut K) (π : Ine (F := E) A →* Multiplicative K),
        Nat.card K = normV w ^ n ∧ orderOf f = n ∧ Function.Surjective π ∧ IsOpen (π.ker : Set (Ine (F := E) A)) ∧
        ∀ t t' : Ine (F := E) A, ineIncl h t' = frob h * ineIncl h t * (frob h)⁻¹ →
          π t' = Multiplicative.ofAdd (f (Multiplicative.toAdd (π t))) := …
  ```
- `UpperTheory.Zero.LLC.exists_frobAut`: On a finite field of size q^n with q > 1 and n > 0, the q-power map is a field automorphism of order n.

  ```lean
  private theorem exists_frobAut (K : Type) [Field K] [Finite K] (q n : ℕ) (hq : 1 < q) (hn : 0 < n)
      (hcard : Nat.card K = q ^ n) : ∃ f : RingAut K, (∀ x, f x = x ^ q) ∧ orderOf f = n := …
  ```

### Development.AutomorphicArithmetic.Foundations.LocalLanglands.LocalCentralUnits.NormEqProd

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

**Proves that the prescribed Weil–Deligne parameters for depth-zero cuspidals over Q_p are compatible with tame determinant twists.**

A tame character on local units factors through reduction, so the local determinant twist induces the corresponding twist of the finite cuspidal type. The proof identifies the character pulled back by local Artin reciprocity on inertia with the residue character composed with the finite-field norm, expressed as a product of Frobenius conjugates. This gives the required inertia polynomial for the twisted parameter, alongside irreducibility, dimension, tameness, and central-character compatibility. The cuspidal parameter constructions use this result to compare twisting presentations and prove injectivity on twists.

Key declarations:

- `UpperTheory.Zero.LLC.parTw`: If V satisfies the prescribed parameter laws for a depth-zero cuspidal over Q_p, then twisting V by χ composed with the Artin map satisfies those laws for the determinant twist by the smooth tame character χ.

  ```lean
  theorem UpperTheory.Zero.LLC.parTw : UpperTheory.Zero.LLC.ParTw := …
  ```
- `UpperTheory.Zero.LLC.exists_red`: The restriction of a tame character to the units of the valuation ring factors through the multiplicative group of the residue field.

  ```lean
  private theorem exists_red {E : Type} [Field E] [NumberField E] {w : HeightOneSpectrum (𝓞 E)} {g : ℕ} [Fact g.Prime]
      (i : ℚ_[g] ≃+* w.adicCompletion E) (hi : Continuous i) (χ : (w.adicCompletion E)ˣ →* ℂˣ) (ht : TameChar χ) :
      ∃ χ₀ : (ZMod g)ˣ →* ℂˣ, ∀ (u : ℤ_[g]ˣ) (x : (w.adicCompletion E)ˣ),
        (x : w.adicCompletion E) = i ((u : ℤ_[g]) : ℚ_[g]) →
        χ x = χ₀ (Units.map (PadicInt.toZMod (p := g)).toMonoidHom u) := …
  ```
- `UpperTheory.Zero.LLC.norm_eq_prod`: For a unit of a field of size p^n with n > 0, the norm to the prime field, viewed in the extension field, is the product of its n Frobenius conjugates.

  ```lean
  private theorem norm_eq_prod {g : ℕ} [Fact g.Prime] {n : ℕ} {K : Type} [Field K] [Algebra (ZMod g) K]
      (hK : Nat.card K = g ^ n) (hn : 0 < n) (z : Kˣ) :
      algebraMap (ZMod g) K (Algebra.norm (ZMod g) (z : K)) = ∏ j ∈ Finset.range n, ((z ^ g ^ j : Kˣ) : K) := …
  ```
- `UpperTheory.Zero.LLC.inflates_tw`: A local determinant twist preserves the inflation relation when the finite representation is twisted by the determinant character obtained by reduction.

  ```lean
  private theorem inflates_tw {E : Type} [Field E] [NumberField E] {w : HeightOneSpectrum (𝓞 E)} {g : ℕ} [Fact g.Prime]
      (i : ℚ_[g] ≃+* w.adicCompletion E) {n : ℕ} (σ : IrrRep (GL (Fin n) (w.adicCompletion E))) (τ : FDRep ℂ (Gn g n))
      (χ₀ : (ZMod g)ˣ →* ℂˣ) (χ : (w.adicCompletion E)ˣ →* ℂˣ) (hχs : IsSmoothChar χ)
      (hl : ∀ (u : ℤ_[g]ˣ) (x : (w.adicCompletion E)ˣ), (x : w.adicCompletion E) = i ((u : ℤ_[g]) : ℚ_[g]) →
        χ x = χ₀ (Units.map (PadicInt.toZMod (p := g)).toMonoidHom u))
      (hσ : GlobalTheory.SerSys.TameGen.Inflates (σ.ρ.comp (GeneralLinearGroup.map i.toRingHom)) τ) :
      GlobalTheory.SerSys.TameGen.Inflates
        ((irrTwist σ (detChar (Fin n) χ) (hχs.detChar (n := Fin n))).ρ.comp (GeneralLinearGroup.map i.toRingHom))
        (DiscreteGroups.sglob.DzTw.twFD τ χ₀) := …
  ```

### Development.AutomorphicArithmetic.Foundations.LocalLanglands.LocalCentralUnits.ParDual

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

**Proves that the prescribed Weil–Deligne parameters for depth-zero cuspidals over Q_p are compatible with contragredients.**

The proof transfers the finite cuspidal type by duality, using averaging over the finite quotient to construct a nonzero intertwiner. The dual finite type is cuspidal and its character formula replaces the regular character by its inverse, as seen by inverting the roots of the finite matrix characteristic polynomial. Dualizing the Weil–Deligne parameter then gives the required inertia polynomial, zero monodromy, and inverse central character while preserving dimension, irreducibility, and tameness. The cuspidal existence theorem uses this result to establish its duality law.

Key declarations:

- `UpperTheory.Zero.LLC.parDual`: If V satisfies the prescribed parameter laws for a depth-zero cuspidal over Q_p, its Weil–Deligne dual satisfies those laws for the contragredient.

  ```lean
  theorem UpperTheory.Zero.LLC.parDual :
      UpperTheory.Zero.LLC.ParDual := …
  ```
- `UpperTheory.Zero.LLC.ParameterDuality.inflates_dual`: Along the GL(n) map induced by a continuous ring isomorphism from ℚₚ to the completion, if an irreducible representative equivalent to the smooth contragredient contains an inflated finite type upon restriction, the original representation contains the inflated dual upon restriction.

  ```lean
  private theorem inflates_dual {E : Type} [Field E] [NumberField E] {w : HeightOneSpectrum (𝓞 E)} {g : ℕ} [Fact g.Prime]
      (i : ℚ_[g] ≃+* w.adicCompletion E) (hi : Continuous i) {n : ℕ} (π σ : IrrRep (GL (Fin n) (w.adicCompletion E)))
      (e : σ.ρ.Equiv (contra π.ρ)) (τ : FDRep ℂ (Gn g n))
      (hinf : GlobalTheory.SerSys.TameGen.Inflates (σ.ρ.comp (GeneralLinearGroup.map i.toRingHom)) τ) :
      GlobalTheory.SerSys.TameGen.Inflates (π.ρ.comp (GeneralLinearGroup.map i.toRingHom))
        (FDRep.of (Representation.dual τ.ρ)) := …
  ```
- `UpperTheory.Zero.LLC.ParameterDuality.isCusp_dual`: The dual of a finite representation with cuspidal character again has cuspidal character.

  ```lean
  private theorem isCusp_dual {n : ℕ} {τ : FDRep ℂ (Gn g n)} (h : IsCusp τ.character) :
      IsCusp (FDRep.of (Representation.dual τ.ρ)).character := …
  ```
- `UpperTheory.Zero.LLC.ParameterDuality.names_dual`: If the finite type satisfies the Names character formula for θ, its dual satisfies the formula for θ⁻¹.

  ```lean
  private theorem names_dual {n : ℕ} {K : Type} [Field K] [Algebra (ZMod g) K] {θ : Kˣ →* ℂˣ} {τ : FDRep ℂ (Gn g n)}
      (h : Names g n θ τ) : Names g n θ⁻¹ (FDRep.of (Representation.dual τ.ρ)) := …
  ```
- `UpperTheory.Zero.LLC.ParameterDuality.exists_dual_map`: A nonzero invariant pairing with a finite quotient representation gives a nonzero intertwiner from its dual into the smooth representation under the compact-kernel hypotheses.

  ```lean
  private theorem exists_dual_map {G K Γ V W : Type} [Group G] [TopologicalSpace G] [IsTopologicalGroup G] [Group K] [Group Γ]
      [Fintype Γ] [AddCommGroup V] [Module ℂ V] [AddCommGroup W] [Module ℂ W] [FiniteDimensional ℂ W]
      (π : Representation ℂ G V) (hπ : IsSmooth π) (ρ : Representation ℂ Γ W)
      (ι : K →* G) (q : K →* Γ) (hq : Function.Surjective q) (H : Subgroup G) (hH : IsCompact (H : Set G))
      (h1 : ∀ k, q k = 1 → ι k ∈ H) (h2 : ∀ x ∈ H, ∃ k, ι k = x ∧ q k = 1)
      (B : W →ₗ[ℂ] Module.Dual ℂ V) (hB : B ≠ 0)
      (hinv : ∀ k w v, B (ρ (q k) w) (π (ι k) v) = B w v) :
      ∃ ψ : Module.Dual ℂ W →ₗ[ℂ] V, ψ ≠ 0 ∧ ∀ k l, ψ (ρ.dual (q k) l) = π (ι k) (ψ l) := …
  ```

### Development.AutomorphicArithmetic.Foundations.LocalLanglands.LocalCentralUnits.ParOne

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

**Proves the rank-one local Langlands parameter formula via the local Artin map and its depth-zero and tame-type compatibilities.**

At a finite place, a smooth character χ of GL(1) has central character χ and gives an irreducible Weil–Deligne parameter of dimension one by pullback along local Artin. Depth zero is equivalent to tameness of χ and implies tameness of the parameter. The tame-type formula follows by comparing scalar actions on a nonzero vector in the image of an intertwiner, which identifies the inertia eigenvalue with the residue-field character value. Twisting and duality correspond to multiplication and inversion of characters. CuspEx uses these facts in rank one, and GoodMap uses character injectivity to prove uniqueness of the assigned parameter.

Key declarations:

- `UpperTheory.Zero.LLC.parOne`: Establishes the rank-one Artin parameter formula with irreducibility, dimension, central-character matching, depth zero, tame types, twisting, duality, and injectivity of the realization of characters as GL(1) classes.

  ```lean
  theorem UpperTheory.Zero.LLC.parOne :
      UpperTheory.Zero.LLC.ParOne := …
  ```
- `UpperTheory.Zero.LLC.typeAt_ofChar`: Under the finite-type hypotheses, the Artin parameter has zero monodromy and inertia characteristic polynomial X − θ(R(t)) at each inertia element t, where R is the residue-field map and θ is the type character.

  ```lean
  private theorem typeAt_ofChar {a : Weil h →* (w.adicCompletion E)ˣ} (ha : IsLocalArtin h a)
      (χ : (w.adicCompletion E)ˣ →* ℂˣ) (hχ : IsSmoothChar χ) :
      TypeAt (IrrGL.ofChar χ hχ) (WD.lpOfChar h (χ.comp a) (ha.smooth hχ)) := …
  ```
- `UpperTheory.Zero.LLC.val_of_inflates`: A nonzero intertwiner from the inflated finite type forces the local character value at each transported p-adic unit to equal the type character value at its reduction.

  ```lean
  private theorem val_of_inflates {i : ℚ_[g] ≃+* k} {θ : Kˣ →* ℂˣ} {τ : FDRep ℂ (Gn g 1)} (hN : Names g 1 θ τ)
      {σ : IrrRep (GL (Fin 1) k)} {χ : kˣ →* ℂˣ} {hχ : IsSmoothChar χ} (e : σ.ρ.Equiv (IrrRep.det (Fin 1) χ hχ).ρ)
      (hinf : GlobalTheory.SerSys.TameGen.Inflates (σ.ρ.comp (GeneralLinearGroup.map i.toRingHom)) τ)
      (u : ℤ_[g]ˣ) (z : Kˣ) (hz : algebraMap (ZMod g) K (PadicInt.toZMod (u : ℤ_[g])) = z) (x : kˣ)
      (hx : (x : k) = i ((u : ℤ_[g]) : ℚ_[g])) : χ x = θ z := …
  ```
- `UpperTheory.Zero.LLC.character_one`: Evaluating the finite character formula at the identity shows that a rank-one finite type has dimension one.

  ```lean
  private theorem character_one {θ : Kˣ →* ℂˣ} {τ : FDRep ℂ (Gn g 1)} (hN : Names g 1 θ τ) :
      Module.finrank ℂ τ = 1 := …
  ```
- `UpperTheory.Zero.LLC.dual_lpOfChar`: The dual of the Weil–Deligne parameter attached to a smooth Weil character is the parameter attached to its inverse.

  ```lean
  private theorem dual_lpOfChar {ξ ξ' : Weil h →* ℂˣ} (hξ : IsSmooth ξ) (hξ' : IsSmooth ξ') (e : ∀ σ, ξ' σ = (ξ σ)⁻¹) :
      (WD.lpOfChar h ξ hξ).lpDual = WD.lpOfChar h ξ' hξ' := …
  ```

### Development.AutomorphicArithmetic.Foundations.LocalLanglands.LocalCentralUnits.ParUniq

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

**Proves uniqueness in both directions for depth-zero cuspidal Weil–Deligne parameters over ℚₚ.**

For a fixed local Artin map at a completion continuously identified with ℚₚ, a depth-zero cuspidal representation and a matching tame Weil–Deligne parameter determine each other up to isomorphism. In one direction, the finite cuspidal type fixes the inertia polynomials and the central character fixes the determinant via local Artin reciprocity. In the other, the inertia polynomials recover the regular finite-field character up to Frobenius, giving the finite type character, and Artin surjectivity recovers the central character from the determinant. GoodMap uses parameter uniqueness for twist compatibility, and RecTUnique uses it to compare maps satisfying the reciprocity laws.

Key declarations:

- `UpperTheory.Zero.LLC.parUniq`: For a fixed local Artin map and a continuous identification of the completion with ℚₚ, a match satisfying Par determines the depth-zero cuspidal class and the irreducible tame Weil–Deligne class from one another.

  ```lean
  theorem UpperTheory.Zero.LLC.parUniq :
      UpperTheory.Zero.LLC.ParUniq := …
  ```

### Development.AutomorphicArithmetic.Foundations.LocalLanglands.LocalCentralUnits.TwTame

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

**Proves that a determinant twist of a depth-zero irreducible GL(n) representation remains depth zero exactly when the character is tame.**

Depth zero is expressed by nonzero fixed vectors under the first principal congruence subgroup. A tame character preserves these vectors because the determinant of every element of that subgroup is a principal unit. Conversely, a principal unit on which the character is nontrivial gives a diagonal matrix that, by Cartan decomposition and irreducibility, forces the original coinvariants to vanish, contradicting the injection of fixed vectors into coinvariants. ParOne tests χ by twisting the trivial GL(1) representation, and GoodMap deduces tameness of χχ₁⁻¹ when two twists of depth-zero cuspidals coincide.

Key declarations:

- `UpperTheory.Zero.LLC.twTame`: For n > 0 over a nonarchimedean local field of characteristic zero, the determinant twist of a depth-zero irreducible representation by a smooth character has depth zero exactly when the character is trivial on principal units.

  ```lean
  theorem UpperTheory.Zero.LLC.twTame :
      UpperTheory.Zero.LLC.TwTame := …
  ```
- `UpperTheory.Zero.LLC.tame_of_dz`: If an irreducible representation of GL(n) with n > 0 and its determinant twist both have depth zero, the twisting character is tame.

  ```lean
  private theorem tame_of_dz {k : Type} [Field k] [ValuativeRel k] [TopologicalSpace k] [IsNonarchimedeanLocalField k]
      (y : IrrGL k) (χ : kˣ →* ℂˣ) (hχ : IsSmoothChar χ) (h0 : 0 < y.1) (hy : DZ y) (ht : DZ (y.tw χ hχ)) : TameChar χ := …
  ```
- `UpperTheory.Zero.LLC.dz_of_tame`: A determinant twist by a tame character preserves depth zero.

  ```lean
  private theorem dz_of_tame {k : Type} [Field k] [ValuativeRel k] [TopologicalSpace k] [IsNonarchimedeanLocalField k]
      (y : IrrGL k) (χ : kˣ →* ℂˣ) (hχ : IsSmoothChar χ) (hy : DZ y) (ht : TameChar χ) : DZ (y.tw χ hχ) := …
  ```
- `UpperTheory.Zero.LLC.val_det_sub_one_lt`: The determinant of an element of the first principal congruence subgroup is congruent to one modulo the maximal ideal.

  ```lean
  private theorem val_det_sub_one_lt {g : GL (Fin n) k} (hg : g ∈ KOne k (Fin n)) :
      valuation k ((GeneralLinearGroup.det g : kˣ) - 1 : k) < 1 := …
  ```

### Development.AutomorphicArithmetic.Foundations.LocalLanglands.LocalCentralUnits.WDBasic

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

**Proves determinant, monodromy, duality, and character-twist identities for Weil–Deligne parameters.**

The product of the Weil eigenvalues is the determinant character, determined by inertia and a degree-one Frobenius lift. Irreducibility of the Weil action forces zero monodromy because the nilpotent operator has Weil-stable kernel. Duality preserves dimension, irreducibility, and tameness and inverts inertia eigenvalues. Twisting by a smooth Weil character ξ preserves dimension and irreducibility, scales each eigenvalue at σ by ξ(σ), multiplies their product by ξ(σ)^d in dimension d, and preserves tameness of a positive-dimensional tame parameter exactly when ξ is trivial on wild inertia. ParDual uses the duality identities to verify compatibility with contragredients.

Key declarations:

- `UpperTheory.Zero.LLC.wDBasic`: Establishes the determinant and Frobenius–inertia identities and the behavior of Weil–Deligne parameters under duality and smooth character twists.

  ```lean
  theorem UpperTheory.Zero.LLC.wDBasic :
      UpperTheory.Zero.LLC.WDBasic := …
  ```
- `UpperTheory.Zero.LLC.WDB.monodromy_zero_of_irreducible`: An irreducible underlying Weil representation has zero monodromy.

  ```lean
  private theorem monodromy_zero_of_irreducible (a : WDRep h V) (ha : a.ρ.IsIrreducible) : a.N = 0 := …
  ```
- `UpperTheory.Zero.LLC.WDB.irr_dual`: The dual of a finite-dimensional irreducible complex representation is irreducible.

  ```lean
  private theorem irr_dual [FiniteDimensional ℂ V] {ρ : Representation ℂ G V} (hρ : ρ.IsIrreducible) :
      ρ.dual.IsIrreducible := …
  ```
- `UpperTheory.Zero.LLC.WDB.charpoly_inv_prod`: The characteristic polynomial of the inverse of an invertible complex endomorphism has the reciprocal roots, with multiplicity.

  ```lean
  private theorem charpoly_inv_prod {n : ℕ} (f g : Module.End ℂ (Fin n → ℂ)) (hfg : f * g = 1)
      (s : Multiset ℂ) (hs : f.charpoly = (s.map fun μ => X - C μ).prod) :
      g.charpoly = (s.map fun μ => X - C μ⁻¹).prod := …
  ```
- `UpperTheory.Zero.LLC.WDB.irr_twist`: Twisting an irreducible Weil representation by a smooth character preserves irreducibility.

  ```lean
  private theorem irr_twist (b : WDRep h V) (ξ : Weil h →* ℂˣ) (hξ : IsSmooth ξ)
      (hb : b.ρ.IsIrreducible) : (b.twist ξ hξ).ρ.IsIrreducible := …
  ```

### Development.DiscreteGroups.GlobalIrreducibility.DzLDepth

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

**Proves depth zero for irreducible GL(n) representations with inflated finite type at number-field completions continuously isomorphic to ℚₚ.**

At a number-field completion equipped with a continuous field isomorphism from the p-adic rationals, a smooth irreducible representation of GL(n) containing an inflated finite type has a nonzero vector fixed by the first principal congruence subgroup. Every element of that subgroup lifts to an integral matrix reducing to the identity, so equivariance fixes every vector in the image of the inflation map. The equivalence with the chosen representative of the isomorphism class transports a nonzero fixed vector to that representative.

Key declarations:

- `DiscreteGroups.sglob.DzType.lDepth`: At a number-field completion continuously identified with ℚₚ, a smooth irreducible GL(n) representation whose pullback contains an inflated finite type on GL(n, ℤₚ) has nonzero first principal congruence fixed vectors in its chosen isomorphism-class representative.

  ```lean
  theorem lDepth : LDepth := …
  ```

### Development.DiscreteGroups.GlobalIrreducibility.DzLcPerm

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

**Proves normalizer and permutation-conjugacy lemmas for unipotent radicals of block parabolics in GL(N).**

Block upper triangular matrices normalize the corresponding unipotent radical because multiplication on either side preserves strict block upper triangularity. Every nontrivial block-parabolic unipotent radical contains a permutation conjugate of a proper standard two-block radical. The proof sorts the coordinate block labels and cuts at their first strict increase. The local cuspidality proof uses this inclusion to pass from vanishing of two-block coinvariants to vanishing for the radicals in the cuspidality criterion.

Key declarations:

- `DiscreteGroups.sglob.DzLc.strict_left_mul`: Left multiplication by a block upper triangular matrix preserves strict block upper triangularity for the same block labels.

  ```lean
  theorem strict_left_mul {b : Fin N → ℕ} {X Y : Matrix (Fin N) (Fin N) F}
      (hX : X.BlockTriangular b) (hY : GlobalTheory.FiniteGL.IsStrictBlock b Y) : GlobalTheory.FiniteGL.IsStrictBlock b (X * Y) := …
  ```
- `DiscreteGroups.sglob.DzLc.conj_mem_unipRadical`: Conjugation by an invertible block upper triangular matrix sends the corresponding unipotent radical into itself.

  ```lean
  theorem conj_mem_unipRadical {b : Fin N → ℕ} {p u : GL (Fin N) F}
      (hp : (p : Matrix (Fin N) (Fin N) F).BlockTriangular b) (hu : u ∈ GlobalTheory.FiniteGL.unipRadical F b) :
      p * u * p⁻¹ ∈ GlobalTheory.FiniteGL.unipRadical F b := …
  ```
- `DiscreteGroups.sglob.DzLc.blockUpper_le_normalizer`: The block upper triangular subgroup lies in the normalizer of its unipotent radical.

  ```lean
  theorem blockUpper_le_normalizer (b : Fin N → ℕ) :
      GroundTheory.Automorphic.Iwasawa.blockUpper F N b ≤
        Subgroup.normalizer (GlobalTheory.FiniteGL.unipRadical F b : Set (GL (Fin N) F)) := …
  ```
- `DiscreteGroups.sglob.DzLc.exists_cut`: A nonconstant nondecreasing sequence of block labels admits an interior cut with every label before it strictly smaller than every label after it.

  ```lean
  theorem exists_cut (f : Fin N → ℕ) (hf : Monotone f) (h : ∃ x y, f x ≠ f y) :
      ∃ a, 0 < a ∧ a < N ∧ ∀ i j : Fin N, (i : ℕ) < a → a ≤ (j : ℕ) → f i < f j := …
  ```
- `DiscreteGroups.sglob.DzLc.exists_perm_conj`: Every nontrivial block-parabolic unipotent radical contains a permutation conjugate of a proper standard two-block unipotent radical.

  ```lean
  theorem exists_perm_conj {s : ℕ} {d : Fin s → ℕ} (e : (Σ a, Fin (d a)) ≃ Fin N)
      (he : GlobalTheory.SmGL.unipRad F e ≠ ⊥) :
      ∃ (Q : GL (Fin N) F) (a : ℕ), 0 < a ∧ a < N ∧
        ∀ x ∈ GlobalTheory.FiniteGL.unipRadical F (GlobalTheory.FiniteGL.twoBlocks N a), Q * x * Q⁻¹ ∈ GlobalTheory.SmGL.unipRad F e := …
  ```

### Development.WeilBound.RepresentationTheoryGL.GaloisPermutationReps.SubquotientEquivalence.IsTypeMap

7 import steps from Main · 106 lines · Checked against the code · [Open in the Lean viewer](https://riemannhypothesissolved.com/file/Development.WeilBound.RepresentationTheoryGL.GaloisPermutationReps.SubquotientEquivalence.IsTypeMap)

**Collects definitions and theorem statements for counting depth-zero cuspidal GL(n) classes and labeling tame Weil–Deligne classes.**

A type map is an injective intertwiner after inflation along reduction, and finite cuspidality is vanishing of invariants under every nontrivial parabolic unipotent radical. The statements set out two injections involving the same residue-field polynomial labels, one from irreducible tame Weil–Deligne classes of fixed positive dimension and fixed determinant at a degree −1 Frobenius element and one into depth-zero cuspidal GL(n) classes at fixed rank and central value at a uniformizer. Direct importers prove the type-existence and fixed-space statements used for the second injection.

Key declarations:

- `PositivityTheory.Rg.DzCount.IsTypeMap`: A type map embeds a residue-field representation into a local GL(n) representation and intertwines the integral subgroup action through reduction.

  ```lean
  def IsTypeMap {k W V : Type} [Field k] [ValuativeRel k] [TopologicalSpace k] [IsNonarchimedeanLocalField k]
      [AddCommGroup W] [Module ℂ W] [AddCommGroup V] [Module ℂ V] {n : ℕ}
      (τ : Representation ℂ (GL (Fin n) 𝓀[k]) W) (π : Representation ℂ (GL (Fin n) k) V) (j : W →ₗ[ℂ] V) : Prop :=
    Function.Injective j ∧ ∀ (g : KO k (Fin n)) (v : W), j (τ (redK k (Fin n) g) v) = π (g : GL (Fin n) k) (j v)
  ```
- `PositivityTheory.Rg.DzCount.FinCusp`: The finite cuspidality condition requires zero invariants under every nontrivial parabolic unipotent radical.

  ```lean
  def FinCusp {K W : Type} [Field K] [AddCommGroup W] [Module ℂ W] {n : ℕ} (τ : Representation ℂ (GL (Fin n) K) W) : Prop :=
    ∀ (s : ℕ) (d : Fin s → ℕ) (e : (Σ a, Fin (d a)) ≃ Fin n), unipRad K e ≠ ⊥ →
      ∀ v : W, (∀ u ∈ unipRad K e, τ u v = v) → v = 0
  ```
- `PositivityTheory.Rg.DzCount.Lab`: The polynomial labels are monic irreducible polynomials of degree n with nonzero constant term.

  ```lean
  def Lab (K : Type) [Field K] (n : ℕ) : Set K[X] := {P | P.Monic ∧ Irreducible P ∧ P ≠ X ∧ P.natDegree = n}
  ```
- `PositivityTheory.Rg.DzCount.St3`: This proposition asserts an injection from irreducible tame Weil–Deligne classes of fixed positive dimension and determinant at a degree −1 Frobenius element into the polynomial labels.

  ```lean
  def St3 : Prop :=
    ∀ (E Ω : Type) [Field E] [NumberField E] [Field Ω] [Algebra E Ω] [IsAlgClosure E Ω] (A : ValuationSubring Ω)
      (w : HeightOneSpectrum (𝓞 E)) (h : IsPlaceOver A w) (φ : Weil h), deg φ = -1 → ∀ (n : ℕ) (c : ℂ), 0 < n →
      ∃ f : WD h → (𝓀[w.adicCompletion E])[X],
        Set.MapsTo f (TameSet φ n c) (Lab 𝓀[w.adicCompletion E] n) ∧ Set.InjOn f (TameSet φ n c)
  ```
- `PositivityTheory.Rg.DzCount.St8a`: This proposition asserts an injection from the polynomial labels into depth-zero cuspidal GL(n) classes with prescribed central character value at a uniformizer.

  ```lean
  def St8a : Prop :=
    ∀ (k : Type) [Field k] [ValuativeRel k] [TopologicalSpace k] [IsNonarchimedeanLocalField k] (n : ℕ), 0 < n →
      ∀ ϖ : kˣ, ord k ϖ = 1 → ∀ c : ℂˣ, ∃ X : (𝓀[k])[X] → IrrGL k,
        (∀ P ∈ Lab 𝓀[k] n, (X P).1 = n ∧ (X P).IsCusp ∧ fixed (X P).rep (KOne k (Fin (X P).1)) ≠ ⊥ ∧
          ∃ ω : kˣ →* ℂˣ, HasCentralChar (X P).rep ω ∧ ω ϖ = c) ∧ Set.InjOn X (Lab 𝓀[k] n)
  ```

### Development.AbelianVarietyTheory.Proofs.InertiaEigenvalues.EpsilonFactorsAtOneHalf

8 import steps from Main · 185 lines · Checked against the code · [Open in the Lean viewer](https://riemannhypothesissolved.com/file/Development.AbelianVarietyTheory.Proofs.InertiaEigenvalues.EpsilonFactorsAtOneHalf)

**Proves that the Tate epsilon factor agrees with the local epsilon factor at s = 1/2.**

The equality holds over nonarchimedean local fields for a continuous nontrivial additive character and a smooth complex multiplicative character. For unramified characters, both formulas reduce to the same power of the character evaluated at a uniformizer. In the ramified case, conductor congruences make the summand constant on each class of the valuation shell, and a bijection with the units modulo the conductor subgroup identifies the two Gauss sums. The continuity lemma is used in the proof of the norm formula for smooth central characters in ExponentMulAbsPow.

Key declarations:

- `GlobalTheory.DelEps.tateEps_eq_localEpsilon_half`: Identifies the Tate epsilon factor with the local epsilon factor at s = 1/2 for a smooth multiplicative character and a continuous nontrivial additive character.

  ```lean
  theorem GlobalTheory.DelEps.tateEps_eq_localEpsilon_half : ∀ (F : Type) [Field F] [ValuativeRel F] [TopologicalSpace F]
      [IsNonarchimedeanLocalField F] [MeasurableSpace F] [BorelSpace F] (ψ : AddChar F Circle), Continuous ψ →
      ψ ≠ 1 → ∀ χ : Fˣ →* ℂˣ, IsSmoothChar χ → tateEps ψ χ = GroundTheory.LocalField.localEpsilon χ ψ (1 / 2) := …
  ```
- `GlobalTheory.DelEps.GaussBridge.sum_shellReps_eq_gaussSum`: For a continuous ramified multiplicative character and a continuous nontrivial additive character, summing over representatives of the conductor congruence classes in the prescribed valuation shell gives the Gauss sum.

  ```lean
  theorem sum_shellReps_eq_gaussSum (hψ : Continuous ψ) (hψ1 : ψ ≠ 1) (hχ : Continuous χ)
      (hr : ¬ IsUnramifiedChar χ) {R : Finset Fˣ}
      (hR1 : ∀ r ∈ R, ordF (r : F) = addCharConductor ψ - quasiCharConductor χ)
      (hR2 : ∀ y : Fˣ, ordF (y : F) = addCharConductor ψ - quasiCharConductor χ →
        ∃! r : Fˣ, r ∈ R ∧ (y : F) - r ∈ valBall F (addCharConductor ψ)) :
      ∑ r ∈ R, ((χ r : ℂˣ) : ℂ)⁻¹ * (ψ (r : F) : ℂ) = gaussSum χ ψ := …
  ```
- `GlobalTheory.DelEps.GaussBridge.term_eq`: For a continuous ramified multiplicative character and a continuous nontrivial additive character, the product of the inverse multiplicative character and the additive character is constant modulo the additive conductor ball on the shell of order equal to the additive conductor minus the multiplicative conductor.

  ```lean
  theorem term_eq (hψ : Continuous ψ) (hψ1 : ψ ≠ 1) (hχ : Continuous χ) (hr : ¬ IsUnramifiedChar χ)
      {y z : Fˣ} (hy : ordF (y : F) = addCharConductor ψ - quasiCharConductor χ)
      (h : (z : F) - y ∈ valBall F (addCharConductor ψ)) :
      ((χ z : ℂˣ) : ℂ)⁻¹ * (ψ (z : F) : ℂ) = ((χ y : ℂˣ) : ℂ)⁻¹ * (ψ (y : F) : ℂ) := …
  ```
- `GlobalTheory.DelEps.GaussBridge.continuous_of_isSmoothChar`: Every smooth complex multiplicative character of a nonarchimedean local field is continuous.

  ```lean
  theorem continuous_of_isSmoothChar {χ : Fˣ →* ℂˣ} (hχ : IsSmoothChar χ) : Continuous χ := …
  ```

### Development.AutomorphicArithmetic.Foundations.LocalLanglands.LocalCentralUnits.CentralUnit

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

**Constructs tame Weil–Deligne parameters for depth-zero cuspidal representations of GL(n) over ℚₚ.**

The construction uses the Frobenius orbit of the regular finite-field character naming the finite cuspidal type to build an irreducible n-dimensional parameter with zero monodromy. It fixes the determinant on a Frobenius lift via the central character and matches it on inertia by comparing scalar actions through a type intertwiner and using the finite-field norm. The inertia polynomial is independent of the auxiliary residue-field realization and the representative of the character’s Frobenius orbit. GoodMap uses this existence theorem to construct its parameter assignment on the depth-zero cuspidal locus.

Key declarations:

- `UpperTheory.Zero.LLC.parEx`: At a completion continuously isomorphic to ℚₚ, every depth-zero cuspidal representation of GL(n) admits an irreducible tame n-dimensional Weil–Deligne parameter that matches its central character via local Artin reciprocity and satisfies the finite-type inertia formula.

  ```lean
  theorem parEx : ParEx := …
  ```
- `UpperTheory.Zero.LLC.eta`: Defines ηⱼ as θ ∘ R raised to the power g^((j mod n).toNat), with g and R specialized to the Frobenius base and residue map in parEx.

  ```lean
  private def eta {I K : Type} [Group I] [Field K] (g n : ℕ) (R : I →* Kˣ) (θ : Kˣ →* ℂˣ) (j : ℤ) : I →* ℂˣ :=
    (θ ^ g ^ (j % (n : ℤ)).toNat).comp R
  ```
- `UpperTheory.Zero.LLC.eta_apply`: Evaluates the indexed character by raising θ(R(t)) to the power g^((j mod n).toNat).

  ```lean
  private theorem eta_apply {I K : Type} [Group I] [Field K] (g n : ℕ) (R : I →* Kˣ) (θ : Kˣ →* ℂˣ) (j : ℤ) (t : I) :
      eta g n R θ j t = θ (R t) ^ g ^ (j % (n : ℤ)).toNat := …
  ```

### Development.AutomorphicArithmetic.Foundations.LocalLanglands.LocalCentralUnits.DetByType

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

**Proves that a finite cuspidal type and a central character determine an irreducible representation of GL(n) over ℚₚ.**

Two irreducible smooth representations with the same central character are isomorphic if they contain inflated finite cuspidal types with equal characters. The proof identifies the finite types by character equality and takes the span of the group translates of their common image in the product of the two representations. Its principal congruence fixed vectors are exactly that image, which forces both coordinate projections to be isomorphisms by irreducibility. ParUniq uses the result to recover the cuspidal representation from its tame parameter.

Key declarations:

- `UpperTheory.Zero.LLC.detByType`: At a completion continuously isomorphic to ℚₚ, two irreducible smooth representations of GL(n) with n > 0, the same central character, and inflated finite cuspidal types of equal character have the same isomorphism class.

  ```lean
  theorem UpperTheory.Zero.LLC.detByType :
      UpperTheory.Zero.LLC.DetByType := …
  ```
- `UpperTheory.Zero.LLC.DetT.equiv_of_typeMaps`: Two irreducible smooth representations with the same central character are isomorphic if a common nonzero finite cuspidal type embeds in both through equivariant maps.

  ```lean
  private theorem equiv_of_typeMaps [Nontrivial W] {T : Representation ℂ (GL (Fin n) 𝓀[k]) W} (hT : FinCusp T)
      (π π' : IrrRep (GL (Fin n) k)) {ω : kˣ →* ℂˣ} (hω : HasCentralChar π.ρ ω) (hω' : HasCentralChar π'.ρ ω)
      {j : W →ₗ[ℂ] π.V} {j' : W →ₗ[ℂ] π'.V} (hj : IsTypeMap T π.ρ j) (hj' : IsTypeMap T π'.ρ j') :
      Nonempty (π.ρ.Equiv π'.ρ) := …
  ```
- `UpperTheory.Zero.LLC.DetT.isTypeMap_of`: A nonzero intertwiner from an inflated finite cuspidal type is injective and equivariant for the integral group of the completion after transport from ℚₚ.

  ```lean
  private theorem isTypeMap_of {n : ℕ} (τ : FDRep ℂ (Gn g n)) (hτ : IsCusp τ.character) {V : Type} [AddCommGroup V]
      [Module ℂ V] (π : Representation ℂ (GL (Fin n) (w.adicCompletion E)) V) (φ : τ →ₗ[ℂ] V) (h0 : φ ≠ 0)
      (hφ : ∀ (κ : GL (Fin n) ℤ_[g]) (v : τ), φ (τ.ρ (GlobalTheory.GLp.red g n κ) v) =
        (π.comp (GeneralLinearGroup.map i.toRingHom)) (GlobalTheory.GLp.inc g n κ) (φ v)) :
      IsTypeMap (τ.ρ.comp (glMap i hi n)) π φ := …
  ```
- `UpperTheory.Zero.LLC.DetT.glMap_redK`: Reduction of integral matrices over the completion agrees with reduction over ℤₚ under the transported identification of residue fields.

  ```lean
  private theorem glMap_redK {n : ℕ} (κ : GL (Fin n) ℤ_[g]) :
      glMap i hi n (redK (w.adicCompletion E) (Fin n) (DiscreteGroups.sglob.DzIso.toKO i hi n κ)) = GlobalTheory.GLp.red g n κ := …
  ```

### Development.AutomorphicArithmetic.Foundations.LocalLanglands.LocalCentralUnits.ExtEx

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

**Packages an unramified extension at a place with completion ℚₚ together with residue-field and local Artin data.**

For each n > 0, the theorem combines an extension unramified at the place selected by the given valuation, with residue field of order pⁿ, and a local Artin map there, taking reduction to be the quotient by the prime ideal. CentralUnit and ParUniq use these data with resEx to obtain a homomorphism from inertia to the residue-field units for parameter existence and uniqueness.

Key declarations:

- `UpperTheory.Zero.LLC.extEx`: For a number-field place with completion continuously isomorphic to ℚₚ and any n > 0, produces an extension with a place selected by the given valuation, unramified there with residue field of order pⁿ, together with a local Artin map and the surjective reduction map with kernel the selected prime ideal.

  ```lean
  theorem UpperTheory.Zero.LLC.extEx :
      UpperTheory.Zero.LLC.ExtEx := …
  ```

### Development.AutomorphicArithmetic.Foundations.LocalLanglands.LocalCentralUnits.IsoUniq

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

**Proves uniqueness of p and of a continuous isomorphism from ℚₚ to a characteristic-zero nonarchimedean local field admitting one.**

Continuity carries the powers of p to a sequence tending to zero, so p lies in the maximal ideal of the target valuation ring. If two distinct primes lay there, Bézout’s identity would put 1 in the same ideal. For a fixed p, continuous field isomorphisms agree on the dense copy of ℚ and hence agree everywhere. CentralUnit uses this uniqueness to identify the prime and field isomorphism when comparing finite-type inertia formulas.

Key declarations:

- `UpperTheory.Zero.LLC.isoUniq`: For a fixed nonarchimedean local field of characteristic zero, any two continuous identifications with p-adic rational fields have the same prime, and the continuous isomorphism from that ℚₚ is unique.

  ```lean
  theorem UpperTheory.Zero.LLC.isoUniq :
      UpperTheory.Zero.LLC.IsoUniq := …
  ```
- `val_natCast_lt_one`: A continuous field isomorphism from ℚₚ sends p to an element of multiplicative valuation strictly less than one.

  ```lean
  private theorem val_natCast_lt_one {k : Type} [Field k] [ValuativeRel k] [TopologicalSpace k]
      [IsNonarchimedeanLocalField k] (g : ℕ) [Fact g.Prime] (i : ℚ_[g] ≃+* k) (hi : Continuous i) :
      valuation k (g : k) < 1 := …
  ```
- `val_intCast_le_one`: Every integer maps into the valuation ring, so its multiplicative valuation is at most one.

  ```lean
  private theorem val_intCast_le_one {k : Type} [Field k] [ValuativeRel k] (a : ℤ) :
      valuation k (a : k) ≤ 1 := …
  ```

### Development.AutomorphicArithmetic.Foundations.LocalLanglands.LocalCentralUnits.NameLaws

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

**Derives the laws for labeling cuspidal characters of GL(n, 𝔽ₚ) by Frobenius orbits of regular characters.**

Green’s formula labels each cuspidal character by a regular character of 𝔽ₚⁿ’s multiplicative group, using a signed Frobenius sum at matrices with irreducible characteristic polynomial. Uniqueness up to Frobenius follows by testing the sums on degree-n elements, realized as eigenvalues of multiplication matrices. Labels in the same orbit give equal cuspidal characters, and pullback along a field isomorphism preserves the labeling relation and regularity. CentralUnit uses these laws to compare different residue-field realizations, and ParUniq uses them to identify finite cuspidal type characters.

Key declarations:

- `UpperTheory.Zero.LLC.nameLaws`: Proves existence and Frobenius uniqueness of regular labels, equality of cuspidal characters for labels in one orbit, and compatibility with pullback along field isomorphisms.

  ```lean
  theorem nameLaws :
      UpperTheory.Zero.LLC.NameLaws := …
  ```
- `UpperTheory.Zero.LLC.exists_elt`: Every nonzero element of degree n over 𝔽ₚ is a root of the irreducible characteristic polynomial of some element of GL(n, 𝔽ₚ).

  ```lean
  private theorem exists_elt {g : ℕ} [Fact g.Prime] {n : ℕ} (hn : 0 < n) {K : Type} [Field K] [Algebra (ZMod g) K]
      (hK : 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 := …
  ```
- `UpperTheory.Zero.LLC.regular_pow`: Every Frobenius iterate of a regular multiplicative character is regular.

  ```lean
  private theorem regular_pow {g : ℕ} [Fact g.Prime] {n : ℕ} (hn : 0 < n) {K : Type} [Field K] [Algebra (ZMod g) K]
      (hK : Module.finrank (ZMod g) K = n) {θ : Kˣ →* ℂˣ} (hθ : GlobalTheory.Published.IsRegularChar g n θ) (j : ℕ) :
      GlobalTheory.Published.IsRegularChar g n (θ ^ g ^ j) := …
  ```
- `UpperTheory.Zero.LLC.pow_mod`: The j-th Frobenius iterate of a multiplicative character of a degree-n finite-field extension depends only on j modulo n.

  ```lean
  private theorem pow_mod {g : ℕ} [Fact g.Prime] {n : ℕ} (hn : 0 < n) {K : Type} [Field K] [Algebra (ZMod g) K]
      (hK : Module.finrank (ZMod g) K = n) (θ : Kˣ →* ℂˣ) (m : ℕ) : θ ^ g ^ (m % n) = θ ^ g ^ m := …
  ```

### Development.AutomorphicArithmetic.Foundations.LocalLanglands.LocalCentralUnits.TameUniq

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

**Proves Frobenius-orbit uniqueness of tame inertia labels and uniqueness of the associated irreducible parameter with fixed determinant.**

For a fixed tame residue map, the inertia polynomials are invariant under Frobenius conjugation of the finite-field character. Their trace coefficients recover its orbit by surjectivity of the residue map and linear independence of characters. The proof identifies two irreducible tame parameters with the same inertia formula and determinant by intertwining a tame inertia generator and an inverse Frobenius lift. ParUniq uses both uniqueness conclusions, and CentralUnit uses Frobenius invariance to compare inertia formulas.

Key declarations:

- `UpperTheory.Zero.LLC.tameUniq`: The tame inertia formula determines its regular character label up to Frobenius, and together with the determinant determines the irreducible tame Weil–Deligne parameter up to isomorphism.

  ```lean
  theorem UpperTheory.Zero.LLC.tameUniq :
      UpperTheory.Zero.LLC.TameUniq := …
  ```
- `UpperTheory.Zero.LLC.orbit_of_sums`: If the sums of the first n Frobenius iterates of two multiplicative characters agree at every unit, the second character is one of those iterates of the first.

  ```lean
  private theorem orbit_of_sums (hn : 0 < n) (θ θ' : Kˣ →* ℂˣ)
      (h : ∀ z : Kˣ, ∑ i ∈ Finset.range n, ((θ (z ^ g ^ i) : ℂˣ) : ℂ) =
        ∑ i ∈ Finset.range n, ((θ' (z ^ g ^ i) : ℂˣ) : ℂ)) :
      ∃ j < n, θ' = θ ^ g ^ j := …
  ```
- `UpperTheory.Zero.LLC.pair_of_gen`: A tame inertia generator and a degree-minus-one Frobenius lift act irreducibly on an irreducible tame parameter, and an isomorphism intertwining these two operators intertwines the entire parameter.

  ```lean
  private theorem pair_of_gen (φ : Weil h) (hφ : deg φ = -1) : ∃ t₀ : Ine (F := E) A,
      (∀ (n : ℕ) (a : WDRep h (Fin n → ℂ)), (∀ σ : Weil h, Formalism.MainNotions.BlochKatoReduction.IsWild A (σ : G E Ω) → a.ρ σ = 1) →
        a.ρ (ineIncl h t₀) * a.ρ φ = a.ρ φ * a.ρ (ineIncl h t₀) ^ normV w ∧
          (a.ρ.IsIrreducible → IrrPair (a.ρ (ineIncl h t₀)) (a.ρ φ))) ∧
      ∀ (n m : ℕ) (a : WDRep h (Fin n → ℂ)) (b : WDRep h (Fin m → ℂ)),
        (∀ σ : Weil h, Formalism.MainNotions.BlochKatoReduction.IsWild A (σ : G E Ω) → a.ρ σ = 1) →
        (∀ σ : Weil h, Formalism.MainNotions.BlochKatoReduction.IsWild A (σ : G E Ω) → b.ρ σ = 1) → a.ρ.IsIrreducible → b.ρ.IsIrreducible →
        ∀ e : (Fin n → ℂ) ≃ₗ[ℂ] (Fin m → ℂ), (∀ v, e (a.ρ (ineIncl h t₀) v) = b.ρ (ineIncl h t₀) (e v)) →
          (∀ v, e (a.ρ φ v) = b.ρ φ (e v)) → a.Iso b := …
  ```
- `UpperTheory.Zero.LLC.eigenvalue_iff`: The inertia eigenvalues at t are precisely the character values θ(R(t)^(p^j)) for 0 ≤ j < n.

  ```lean
  private theorem eigenvalue_iff {g n m : ℕ} {K : Type} [Field K] {R : Ine (F := E) A →* Kˣ}
      {θ : Kˣ →* ℂˣ} (a : WDRep h (Fin m → ℂ)) (hV : InFor g n R θ (WD.mk a)) (t : Ine (F := E) A)
      (z : ℂ) : Module.End.HasEigenvalue (a.ρ (ineIncl h t)) z ↔
        ∃ i < n, z = ((θ (R t ^ g ^ i) : ℂˣ) : ℂ) := …
  ```

### Development.AutomorphicArithmetic.Foundations.LocalLanglands.LocalCentralUnits.TypeEx

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

**Proves existence and uniqueness of the finite cuspidal type of a depth-zero cuspidal representation of GL(n) over ℚₚ.**

For a depth-zero cuspidal representation, a simple constituent of the first principal congruence fixed space has cuspidal character as a representation of GL(n, 𝔽ₚ). For an irreducible target with a central character, a nonzero intertwiner from an inflated finite cuspidal type is injective and has image equal to the entire fixed space. Transporting two such embeddings to the same representation identifies the finite actions and hence their characters. CentralUnit and ParUniq use these types to construct and characterize tame Weil–Deligne parameters.

Key declarations:

- `UpperTheory.Zero.LLC.typeEx`: At a finite place of a number field with a chosen prolongation to its algebraic closure and a continuous ring isomorphism from ℚₚ to the completion, every positive-rank depth-zero irreducible cuspidal representation admits an inflated finite cuspidal type whose character depends only on the local isomorphism class.

  ```lean
  theorem UpperTheory.Zero.LLC.typeEx :
      UpperTheory.Zero.LLC.TypeEx := …
  ```
- `UpperTheory.Zero.LLC.TypeExistence.exists_cusp`: In positive rank, the pullback of a cuspidal irreducible representation with nonzero first principal congruence fixed vectors along the chosen continuous identification with ℚₚ contains an inflated finite cuspidal type.

  ```lean
  private theorem exists_cusp {n : ℕ} (hn : 0 < n) (σ : IrrRep (GL (Fin n) (w.adicCompletion E)))
      (hc : IsCuspidal σ.ρ) (hf : fixed σ.ρ (KOne (w.adicCompletion E) (Fin n)) ≠ ⊥) :
      ∃ τ : FDRep ℂ (Gn g n), IsCusp τ.character ∧
        TameGen.Inflates (σ.ρ.comp (GeneralLinearGroup.map i.toRingHom)) τ := …
  ```
- `UpperTheory.Zero.LLC.TypeExistence.fixed_eq_range`: For an irreducible representation with a central character, a nonzero intertwiner from an inflated finite cuspidal type identifies the type with the full first principal congruence fixed space.

  ```lean
  private theorem fixed_eq_range {n : ℕ} (τ : FDRep ℂ (Gn g n)) (hτ : IsCusp τ.character)
      (σ : IrrRep (GL (Fin n) (w.adicCompletion E))) (ω : (w.adicCompletion E)ˣ →* ℂˣ) (hω : HasCentralChar σ.ρ ω)
      (φ : τ →ₗ[ℂ] σ.V) (h0 : φ ≠ 0)
      (hφ : ∀ (k : GL (Fin n) ℤ_[g]) (u : τ), φ (τ.ρ (GlobalTheory.GLp.red g n k) u) =
        σ.ρ (GeneralLinearGroup.map i.toRingHom (GlobalTheory.GLp.inc g n k)) (φ u)) :
      Function.Injective φ ∧ fixed σ.ρ (KOne (w.adicCompletion E) (Fin n)) = LinearMap.range φ := …
  ```
- `UpperTheory.Zero.LLC.TypeExistence.char_eq`: Two finite representations embedded with the same image and the same integral group action have equal characters.

  ```lean
  private theorem char_eq {n : ℕ} {V : Type} [AddCommGroup V] [Module ℂ V] (τ τ' : FDRep ℂ (Gn g n))
      (φ : τ →ₗ[ℂ] V) (φ' : τ' →ₗ[ℂ] V) (h1 : Function.Injective φ) (h2 : Function.Injective φ')
      (hr : LinearMap.range φ = LinearMap.range φ') (A : GL (Fin n) ℤ_[g] → V →ₗ[ℂ] V)
      (hA : ∀ k u, φ (τ.ρ (GlobalTheory.GLp.red g n k) u) = A k (φ u))
      (hA' : ∀ k u, φ' (τ'.ρ (GlobalTheory.GLp.red g n k) u) = A k (φ' u)) : τ'.character = τ.character := …
  ```

### Development.AutomorphicArithmetic.WhittakerHecke.CardResidueFieldAdicCompletionIntegersEqAbsNorm

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

**Proves that the residue field at a finite completion of a number field has cardinality equal to the prime ideal's absolute norm.**

Reduction from the global ring of integers to the residue field of the completion has kernel the prime ideal, by the valuation criterion for membership in the maximal ideal. Approximating each local integer by a global integer with error of valuation strictly less than one in multiplicative notation proves surjectivity, so the quotient by the prime ideal computes the cardinality. The direct importer uses this cardinality to construct a residue-field Frobenius automorphism.

Key declarations:

- `UpperTheory.card_residueField_adicCompletionIntegers_eq_absNorm`: For each nonzero prime ideal of the ring of integers of a number field, the residue field of the completed ring of integers has cardinality equal to the absolute norm of that ideal.

  ```lean
  theorem UpperTheory.card_residueField_adicCompletionIntegers_eq_absNorm :
      ∀ {L : Type} [Field L] [NumberField L] (u : HeightOneSpectrum (𝓞 L)),
          Nat.card (IsLocalRing.ResidueField (u.adicCompletionIntegers L)) = normV u := …
  ```

### Development.AutomorphicArithmetic.WhittakerHecke.ContinuousInertiaRestrictionOfCompat

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

**Proves continuity of a homomorphism between inertia groups that preserves the action on the ambient field.**

For a tower E ⊆ L ⊆ Ω with E and L number fields, the theorem compares the inertia groups of a fixed valuation ring of Ω over E and L. It checks continuity at the identity in the Krull topology: the preimage of each target neighborhood contains the source inertia subgroup fixing a suitable finite intermediate field over L, which is also finite over E. The direct importer composes this map with local reciprocity to prove that a homomorphism to the additive group of a residue field has open kernel.

Key declarations:

- `UpperTheory.continuous_inertia_restriction_of_compat`: A homomorphism from inertia over E to inertia over L for a fixed valuation ring of Ω is continuous if it sends each element to an automorphism with the same action on Ω.

  ```lean
  theorem UpperTheory.continuous_inertia_restriction_of_compat :
      ∀ {E L Ω : Type} [Field E] [NumberField E] [Field L] [NumberField L] [Field Ω] [Algebra E L] [Algebra E Ω] [Algebra L Ω]
          [IsScalarTower E L Ω] (A : ValuationSubring Ω) (ι : Ine (F := E) A →* Ine (F := L) A),
          (∀ (t : Ine (F := E) A) (x : Ω), (ι t : G L Ω) x = (t : G E Ω) x) → Continuous ι := …
  ```

### Development.AutomorphicArithmetic.WhittakerHecke.ExistsAdicCompletionRingEquivExtendingOfStable

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

**Proves that a prime-stabilizing automorphism of a number field extends continuously to its completion and preserves the valuation.**

Stability of the prime ideal implies stability of all its powers, which determines the valuation on the ring of integers. Applying the resulting inequality to the automorphism and its inverse gives equality, which passes to the field by taking fractions. Density makes the continuous extensions of the two maps inverse to one another and carries valuation preservation to the completion. The direct importer uses the extension of an automorphism induced by Frobenius to identify its action on the residue field.

Key declarations:

- `intValuation_le_of_equiv`: An automorphism of the ring of integers stabilizing a nonzero prime ideal does not increase its multiplicatively written valuation.

  ```lean
  private lemma intValuation_le_of_equiv {L : Type} [Field L] [NumberField L]
      (u : HeightOneSpectrum (𝓞 L)) (σ : 𝓞 L ≃+* 𝓞 L)
      (h : ∀ x : 𝓞 L, σ x ∈ u.asIdeal ↔ x ∈ u.asIdeal) (r : 𝓞 L) :
      u.intValuation (σ r) ≤ u.intValuation r := …
  ```
- `intValuation_eq_of_equiv`: An automorphism of the ring of integers stabilizing a nonzero prime ideal preserves the associated valuation on integral elements.

  ```lean
  private lemma intValuation_eq_of_equiv {L : Type} [Field L] [NumberField L]
      (u : HeightOneSpectrum (𝓞 L)) (σ : 𝓞 L ≃+* 𝓞 L)
      (h : ∀ x : 𝓞 L, σ x ∈ u.asIdeal ↔ x ∈ u.asIdeal) (r : 𝓞 L) :
      u.intValuation (σ r) = u.intValuation r := …
  ```
- `valuation_eq_of_equiv`: A number-field automorphism stabilizing a nonzero prime ideal of the ring of integers preserves that prime's valuation on the whole field.

  ```lean
  private lemma valuation_eq_of_equiv {L : Type} [Field L] [NumberField L]
      (u : HeightOneSpectrum (𝓞 L)) (s : L ≃+* L)
      (h : ∀ x : 𝓞 L, RingOfIntegers.mapRingHom (s : L →+* L) x ∈ u.asIdeal ↔ x ∈ u.asIdeal) (y : L) :
      u.valuation L (s y) = u.valuation L y := …
  ```
- `UpperTheory.exists_adicCompletion_ringEquiv_extending_of_stable`: A number-field automorphism stabilizing a nonzero prime ideal extends to a continuous, valuation-preserving automorphism of the completion at that prime.

  ```lean
  theorem UpperTheory.exists_adicCompletion_ringEquiv_extending_of_stable :
      ∀ {L : Type} [Field L] [NumberField L] (u : HeightOneSpectrum (𝓞 L)) (s : L ≃+* L),
          (∀ x : 𝓞 L, RingOfIntegers.mapRingHom (s : L →+* L) x ∈ u.asIdeal ↔ x ∈ u.asIdeal) →
          ∃ i : u.adicCompletion L ≃+* u.adicCompletion L, Continuous i ∧
            (∀ x, i (algebraMap L _ x) = algebraMap L _ (s x)) ∧ ∀ x, Valued.v (i x) = Valued.v x := …
  ```

### Development.AutomorphicArithmetic.WhittakerHecke.ExistsNumberFieldExtensionPlaceFrobeniusDegree

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

**Proves the existence of a cyclotomic extension with prescribed residue degree, fixed by inertia and stable under Frobenius.**

For a finite place w of norm q and n ≥ 2, the proof adjoins a primitive (qⁿ − 1)st root of unity to the base field. The polynomial X^(qⁿ − 1) − 1 has unit derivative at that root, so congruence forces inertia to fix the generator, and an element outside w² stays outside the square of the lifted prime. The root retains its order after reduction, and the nth power of Frobenius forces every residue to satisfy X^(qⁿ) = X, giving residue degree n. The direct importer uses the extension to construct a Frobenius-equivariant quotient of inertia isomorphic to the additive group of the residue field.

Key declarations:

- `UpperTheory.exists_numberField_extension_place_frobenius_degree`: For a finite place w, a valuation above it on an algebraic closure, a Frobenius lift, n ≥ 2, and an integer c outside w², there exists a number-field extension fixed pointwise by inertia and preserved by the lift, with an induced prime of residue degree n whose square excludes c.

  ```lean
  theorem UpperTheory.exists_numberField_extension_place_frobenius_degree :
      ∀ (E Ω : Type) [Field E] [NumberField E] [Field Ω] [Algebra E Ω] [IsAlgClosure E Ω] (A : ValuationSubring Ω)
          (w : HeightOneSpectrum (𝓞 E)), IsPlaceOver A w → ∀ (n : ℕ), 2 ≤ n → ∀ (φ : G E Ω), IsFrob A (normV w) φ →
          ∀ (c : 𝓞 E), c ∉ w.asIdeal ^ 2 →
          ∃ (L : Type) (_ : Field L) (_ : NumberField L) (_ : Algebra E L) (_ : Algebra L Ω) (_ : IsScalarTower E L Ω)
            (_ : IsAlgClosure L Ω) (u : HeightOneSpectrum (𝓞 L)) (_ : IsPlaceOver A u) (s : L ≃ₐ[E] L),
            (∀ x : L, φ (algebraMap L Ω x) = algebraMap L Ω (s x)) ∧
            (∀ t ∈ Ine (F := E) A, ∀ x : L, t (algebraMap L Ω x) = algebraMap L Ω x) ∧
            algebraMap (𝓞 E) (𝓞 L) c ∉ u.asIdeal ^ 2 ∧ normV u = normV w ^ n := …
  ```

### Development.AutomorphicArithmetic.WhittakerHecke.ExistsUnitResidueLogarithmOfRootsOfUnity

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

**Constructs a surjective residue logarithm from the units of a valuation ring to the additive group of its residue field.**

For a uniformizer π and residue field k, the logarithm sends a unit a to the reduction of (aᴺ − 1)/π, where N > 0, zᴺ = 1 for every z ∈ k×, and the image of N in k is −1. The product cross term vanishes on reduction, and the linear term of (1 + πx)ᴺ gives surjectivity. The map vanishes when v(a − 1) < v(π) in multiplicative notation and is equivariant for valuation-preserving automorphisms fixing π paired with residue automorphisms that intertwine reduction. The direct importer composes it with local reciprocity to obtain a Frobenius-equivariant quotient of inertia with open kernel.

Key declarations:

- `one_add_pow_expansion'`: In any commutative ring, (1 + z)ᴺ differs from 1 + Nz by a multiple of z².

  ```lean
  private theorem one_add_pow_expansion' {R : Type} [CommRing R] (z : R) (N : ℕ) :
      ∃ r : R, (1 + z) ^ N = 1 + N * z + z ^ 2 * r := …
  ```
- `UpperTheory.exists_unit_residue_logarithm_of_roots_of_unity`: Given a uniformizer and a positive exponent N annihilating the multiplicative residue group with N = −1 in the residue field, the theorem constructs a surjective additive logarithm on valuation-ring units that vanishes on the second principal unit subgroup and is equivariant under valuation-preserving automorphisms fixing the uniformizer.

  ```lean
  theorem UpperTheory.exists_unit_residue_logarithm_of_roots_of_unity :
      ∀ {C Γ K : Type} [Field C] [LinearOrderedCommGroupWithZero Γ] [Field K] (v : Valuation C Γ) (ϖ : C),
          ϖ ≠ 0 → v ϖ < 1 → (∀ x, v x < 1 → v x ≤ v ϖ) → ∀ (ρ : v.valuationSubring →+* K), Function.Surjective ρ →
          (∀ x : v.valuationSubring, ρ x = 0 ↔ v (x : C) < 1) → ∀ N : ℕ, 0 < N → (∀ z : K, z ≠ 0 → z ^ N = 1) → (N : K) = -1 →
          ∃ abelian₂ : Cˣ → K,
            (∀ a b : Cˣ, v (a : C) = 1 → v (b : C) = 1 → abelian₂ (a * b) = abelian₂ a + abelian₂ b) ∧
            (∀ y : K, ∃ a : Cˣ, v (a : C) = 1 ∧ abelian₂ a = y) ∧
            (∀ a : Cˣ, v ((a : C) - 1) < v ϖ → abelian₂ a = 0) ∧
            ∀ (i : C ≃+* C) (f : K ≃+* K), i ϖ = ϖ → (∀ x, v (i x) = v x) →
              (∀ (x y : v.valuationSubring), (y : C) = i x → ρ y = f (ρ x)) →
              ∀ a : Cˣ, v (a : C) = 1 → abelian₂ (Units.map i.toRingHom.toMonoidHom a) = f (abelian₂ a) := …
  ```

### Development.AutomorphicArithmetic.WhittakerHecke.TameInertiaCharacterFrobeniusConjEqPow

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

**Constructs irreducible Weil–Deligne parameters with unitary determinant outside all character twists of tame parameters.**

Assume n ≥ 2 and a Frobenius-equivariant inertia quotient with open kernel onto the additive group of a field of size qⁿ, where q is the residue cardinality and the induced field automorphism has order n. The proof pulls back n conjugate additive characters to build an irreducible n-dimensional parameter with determinant 1 on Frobenius and of finite order on inertia. If the first two characters agree on wild inertia, n Frobenius conjugations equate their ratio to its qⁿth power, which is 1 since both factor through the finite additive group. Their distinct wild values exclude all character twists of tame parameters. The direct importer supplies the quotient at each finite place.

Key declarations:

- `UpperTheory.IrreducibleNonTameWeilDeligne.eta`: The jth inertia character is the pullback of an additive character precomposed with the jth power of the finite-field automorphism.

  ```lean
  private def eta (f : RingAut K) (ψ : Multiplicative K →* ℂˣ) (π : Ine (F := E) A →* Multiplicative K) (j : ℤ) :
      Ine (F := E) A →* ℂˣ where
    toFun t := ψ (ofAdd ((f ^ j) (toAdd (π t))))
    map_one' := by simp
    map_mul' s t := by
      rw [map_mul, toAdd_mul, map_add, ofAdd_add, map_mul]
  ```
- `UpperTheory.IrreducibleNonTameWeilDeligne.eta_eq_iff`: For a surjective inertia quotient and an additive character with trivial stabilizer under the automorphism's powers, two indexed characters coincide exactly when their indices are congruent modulo the automorphism's order.

  ```lean
  private theorem eta_eq_iff (f : RingAut K) (ψ : Multiplicative K →* ℂˣ) (π : Ine (F := E) A →* Multiplicative K)
      (hψ : ∀ m : ℤ, (∀ x, ψ (ofAdd ((f ^ m) x)) = ψ (ofAdd x)) ↔ f ^ m = 1) (hs : Function.Surjective π) (j j' : ℤ) :
      eta f ψ π j = eta f ψ π j' ↔ ((orderOf f : ℕ) : ℤ) ∣ j - j' := …
  ```
- `UpperTheory.IrreducibleNonTameWeilDeligne.eta_pow_card`: Each value of an indexed inertia character is a root of unity of order dividing the finite field's cardinality.

  ```lean
  private theorem eta_pow_card [Finite K] (f : RingAut K) (ψ : Multiplicative K →* ℂˣ) (π : Ine (F := E) A →* Multiplicative K)
      (j : ℤ) (t : Ine (F := E) A) : eta f ψ π j t ^ Nat.card K = 1 := …
  ```
- `UpperTheory.IrreducibleNonTameWeilDeligne.eta_eq_of_wild`: For the Frobenius-equivariant quotient of size qⁿ with automorphism of order n, agreement of the first two characters on wild inertia implies agreement on all of inertia.

  ```lean
  private theorem eta_eq_of_wild [Finite K] (h : IsPlaceOver A w) (n : ℕ) (f : RingAut K) (ψ : Multiplicative K →* ℂˣ)
      (π : Ine (F := E) A →* Multiplicative K) (hcard : Nat.card K = normV w ^ n) (hord : orderOf f = n)
      (hπ : ∀ t t' : Ine (F := E) A, ineIncl h t' = frob h * ineIncl h t * (frob h)⁻¹ →
        π t' = ofAdd (f (toAdd (π t))))
      (hw : ∀ t : Ine (F := E) A, Formalism.MainNotions.BlochKatoReduction.IsWild A (t : G E Ω) → eta f ψ π 0 t = eta f ψ π 1 t) :
      eta f ψ π 0 = eta f ψ π 1 := …
  ```
- `UpperTheory.tameInertiaCharacter_frobenius_conj_eq_pow`: For n ≥ 2, a Frobenius-equivariant inertia quotient of size qⁿ with open kernel and automorphism of order n yields an irreducible n-dimensional Weil–Deligne parameter with unitary determinant lying outside all character twists of tame parameters.

  ```lean
  theorem UpperTheory.tameInertiaCharacter_frobenius_conj_eq_pow :
      ∀ {E Ω : Type} [Field E] [NumberField E] [Field Ω] [Algebra E Ω] [IsAlgClosure E Ω] {A : ValuationSubring Ω}
          {w : HeightOneSpectrum (𝓞 E)} (h : IsPlaceOver A w) (n : ℕ), 2 ≤ n → ∀ (K : Type) [Field K] [Finite K] (f : RingAut K)
          (π : Ine (F := E) A →* Multiplicative K), Nat.card K = normV w ^ n → orderOf f = n → Function.Surjective π →
          IsOpen (π.ker : Set (Ine (F := E) A)) →
          (∀ t t' : Ine (F := E) A, ineIncl h t' = frob h * ineIncl h t * (frob h)⁻¹ →
            π t' = Multiplicative.ofAdd (f (Multiplicative.toAdd (π t)))) →
          ∃ J : WD h, IsIrrWD J ∧ J.lpDim = n ∧ (∀ σ, ‖(J.eig σ).prod‖ = 1) ∧
            ∀ (V : WD h) ξ hξ, IsTameWD V → J ≠ V.lpTwist ξ hξ := …
  ```

### Development.DiscreteGroups.GlobalIrreducibility.DzIsoKO

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

**Identifies the integral subgroup at a p-adic completion and proves the exactness of reduction modulo p.**

A continuous field isomorphism from ℚₚ to a number-field completion identifies GL(n, ℤₚ) with the subgroup of matrices whose entries and inverse entries are integral. Surjectivity follows by lifting the matrix and its inverse entrywise and checking their inverse identities by injectivity. Transporting reduction modulo p across this isomorphism gives a surjection onto GL(n, 𝔽ₚ) with kernel the first principal congruence subgroup.

Key declarations:

- `DiscreteGroups.sglob.DzIso.exists_of_mem_KO`: Every element of the integral subgroup at the completion comes from an invertible matrix over ℤₚ.

  ```lean
  theorem exists_of_mem_KO {n : ℕ} {m : GL (Fin n) (w.adicCompletion E)} (hm : m ∈ KO (w.adicCompletion E) (Fin n)) :
      ∃ k : GL (Fin n) ℤ_[g], Matrix.GeneralLinearGroup.map i.toRingHom (inc g n k) = m := …
  ```
- `DiscreteGroups.sglob.DzIso.equivKO`: The field isomorphism induces a group isomorphism from GL(n, ℤₚ) to the integral subgroup at the completion.

  ```lean
  def equivKO (n : ℕ) : GL (Fin n) ℤ_[g] ≃* KO (w.adicCompletion E) (Fin n) :=
    MulEquiv.ofBijective (toKO i hi n) ⟨toKO_injective i hi n, toKO_surjective i hi n⟩
  ```
- `DiscreteGroups.sglob.DzIso.redKO`: Defines reduction to GL(n, 𝔽ₚ) by identifying the integral subgroup with GL(n, ℤₚ) and reducing entries modulo p.

  ```lean
  def redKO (n : ℕ) : KO (w.adicCompletion E) (Fin n) →* Gn g n :=
    (red g n).comp (equivKO i hi n).symm.toMonoidHom
  ```
- `DiscreteGroups.sglob.DzIso.redKO_surjective`: Every element of GL(n, 𝔽ₚ) is the reduction of an element of the integral subgroup.

  ```lean
  theorem redKO_surjective (n : ℕ) : Function.Surjective (redKO i hi n) := …
  ```
- `DiscreteGroups.sglob.DzIso.ker_redKO`: The kernel of the transported reduction map is the first principal congruence subgroup.

  ```lean
  theorem ker_redKO (n : ℕ) :
      (redKO i hi n).ker = (KOne (w.adicCompletion E) (Fin n)).subgroupOf (KO (w.adicCompletion E) (Fin n)) := …
  ```

### Development.DiscreteGroups.GlobalIrreducibility.DzTwFin

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

**Proves that determinant twists preserve finite GL(n) cuspidality and multiply the character parameter by a norm character.**

Twisting by χ composed with the determinant preserves cuspidality for GL(n, 𝔽ₚ). The twist preserves the character norm because the factors at an element and its inverse cancel, and it leaves the two-block unipotent averages unchanged because the determinant is one there. For a matrix with irreducible characteristic polynomial, the determinant is the field norm of a root in 𝔽ₚⁿ. In the signed Frobenius-orbit character formula, the twist therefore replaces the parameter θ by θ times χ composed with the norm, preserving Frobenius regularity.

Key declarations:

- `DiscreteGroups.sglob.DzTw.character_twFD`: The character of a determinant twist at a matrix is the original character value multiplied by χ evaluated on its determinant.

  ```lean
  theorem character_twFD (τ : FDRep ℂ (Gn g n)) (χ₀ : (ZMod g)ˣ →* ℂˣ) (y : Gn g n) :
      (twFD τ χ₀).character y = ((χ₀ (Matrix.GeneralLinearGroup.det y) : ℂˣ) : ℂ) * τ.character y := …
  ```
- `DiscreteGroups.sglob.DzTw.isCusp_twFD`: Twisting a finite cuspidal character by a multiplicative character composed with the determinant preserves cuspidality.

  ```lean
  theorem isCusp_twFD (τ : FDRep ℂ (Gn g n)) (χ₀ : (ZMod g)ˣ →* ℂˣ) (hτ : IsCusp τ.character) :
      IsCusp (twFD τ χ₀).character := …
  ```
- `DiscreteGroups.sglob.DzTw.det_eq_norm`: The determinant of a matrix with irreducible characteristic polynomial equals the norm of any root in the degree-n extension.

  ```lean
  theorem det_eq_norm (K : Type) [Field K] [Algebra (ZMod g) K] (hK : Nat.card K = g ^ n) (hn : 0 < n) (y : Gn g n)
      (hy : Irreducible (y : Mt g n).charpoly) (z : Kˣ) (hz : aeval (z : K) (y : Mt g n).charpoly = 0) :
      Matrix.GeneralLinearGroup.det y = Units.map (Algebra.norm (ZMod g) : K →* ZMod g) z := …
  ```
- `DiscreteGroups.sglob.DzTw.isRegularChar_mul`: Multiplying a Frobenius-regular character by a character pulled back along the norm preserves Frobenius regularity.

  ```lean
  theorem isRegularChar_mul (K : Type) [Field K] [Algebra (ZMod g) K] (χ₀ : (ZMod g)ˣ →* ℂˣ) {θ : Kˣ →* ℂˣ}
      (hθ : GlobalTheory.Published.IsRegularChar g n θ) : GlobalTheory.Published.IsRegularChar g n (θ * DiscreteGroups.sglob.DzType.nmChar K χ₀) := …
  ```
- `DiscreteGroups.sglob.DzTw.char_twFD`: If the character satisfies the signed Frobenius-orbit formula with parameter θ on matrices with irreducible characteristic polynomial, its determinant twist satisfies the formula with parameter θ multiplied by the norm pullback of χ.

  ```lean
  theorem char_twFD (K : Type) [Field K] [Algebra (ZMod g) K] (hK : Nat.card K = g ^ n) (hn : 0 < n)
      (χ₀ : (ZMod g)ˣ →* ℂˣ) (θ : Kˣ →* ℂˣ) (τ : FDRep ℂ (Gn g n))
      (hτ : ∀ y : Gn g n, Irreducible (y : Mt g n).charpoly → ∀ z : Kˣ, aeval (z : K) (y : Mt g n).charpoly = 0 →
          τ.character y = (-1) ^ (n - 1) * ∑ j ∈ Finset.range n, ((θ (z ^ g ^ j) : ℂˣ) : ℂ)) :
      ∀ y : Gn g n, Irreducible (y : Mt g n).charpoly → ∀ z : Kˣ, aeval (z : K) (y : Mt g n).charpoly = 0 →
        (twFD τ χ₀).character y =
          (-1) ^ (n - 1) * ∑ j ∈ Finset.range n, (((θ * DiscreteGroups.sglob.DzType.nmChar K χ₀) (z ^ g ^ j) : ℂˣ) : ℂ) := …
  ```

### Development.DiscreteGroups.GlobalIrreducibility.LTw

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

**Proves that compatible determinant twists preserve the inflation of a finite cuspidal type into a local GL(n) representation.**

A residue-field character lifts to a smooth character of the local multiplicative group at a completion identified with ℚₚ. Since the determinant commutes with reduction, the original inflation intertwiner also intertwines the finite and local determinant twists. The twisted finite type stays cuspidal. On matrices with irreducible characteristic polynomial, the assumed signed Frobenius-orbit formula carries over using a root in the specified extension field and multiplying the regular parameter by the norm pullback of the residue-field character. The twisted local representation realizes the corresponding twist of its isomorphism class.

Key declarations:

- `DiscreteGroups.sglob.DzType.lTw`: Lifts a residue-field character to a smooth local character and proves that the resulting determinant twists preserve the inflation relation and update the regular finite character parameter by the norm pullback.

  ```lean
  theorem lTw : LTw := …
  ```

### Development.AbelianVarietyTheory.Proofs.InertiaEigenvalues.IsTateEpsTateEpsAndNeZero

9 import steps from Main · 25 lines · Checked against the code · [Open in the Lean viewer](https://riemannhypothesissolved.com/file/Development.AbelianVarietyTheory.Proofs.InertiaEigenvalues.IsTateEpsTateEpsAndNeZero)

**Verifies that the chosen Tate epsilon factor satisfies its defining formula and is nonzero.**

For a continuous nontrivial additive character and a smooth complex multiplicative character of a nonarchimedean local field, the proof unfolds the definition by choice and applies the existing existence and nonvanishing theorem. The comparison with the local epsilon factor at s = 1/2 uses the resulting conductor data and finite-sum formula.

Key declarations:

- `GlobalTheory.DelEps.isTateEps_tateEps_and_ne_zero`: For a continuous nontrivial additive character and a smooth complex multiplicative character of a nonarchimedean local field, the chosen scalar satisfies the defining Tate epsilon-factor formula and is nonzero.

  ```lean
  theorem isTateEps_tateEps_and_ne_zero : ∀ (k : Type) [Field k] [ValuativeRel k] [TopologicalSpace k]
      [IsNonarchimedeanLocalField k] (ψ : AddChar k Circle), Continuous ψ → ψ ≠ 1 → ∀ (χ : kˣ →* ℂˣ), IsSmoothChar χ →
      IsTateEps ψ χ (tateEps ψ χ) ∧ tateEps ψ χ ≠ 0 := …
  ```

### Development.AutomorphicArithmetic.Foundations.GaloisRepresentations.RegularSemisimpleFibres.PTypeChar

9 import steps from Main · 148 lines · Checked against the code · [Open in the Lean viewer](https://riemannhypothesissolved.com/file/Development.AutomorphicArithmetic.Foundations.GaloisRepresentations.RegularSemisimpleFibres.PTypeChar)

**Proves that an inflated finite cuspidal type determines the level-zero character of an irreducible local GL(n) representation.**

For a completion identified continuously with ℚₚ, a nonzero GLₙ(ℤₚ)-intertwiner from an inflated cuspidal representation of GLₙ(𝔽ₚ) is injective and has image equal to the principal congruence subgroup invariants of the irreducible local target with a central character. The proof identifies the two actions through compatible reduction maps and uses invariance of trace under conjugation. Uniqueness of the residue-field identification with 𝔽ₚ gives the character identity for the identification specified in the statement.

Key declarations:

- `UpperTheory.Gal.InertialTypesAlt.TypeCharacters.resE_redK`: Reduction of integral matrices commutes with transport along the local field and residue-field isomorphisms.

  ```lean
  private theorem resE_redK {n : ℕ} (x : KO (w.adicCompletion E) (Fin n)) (κ : GL (Fin n) ℤ_[g])
      (hκ : GeneralLinearGroup.map i.toRingHom (GlobalTheory.GLp.inc g n κ) = x) :
      GeneralLinearGroup.map (resE i hi).toRingHom (redK (w.adicCompletion E) (Fin n) x) = GlobalTheory.GLp.red g n κ := …
  ```
- `UpperTheory.Gal.InertialTypesAlt.TypeCharacters.finCusp_comp`: Transport to the residue field preserves vanishing of invariants under nontrivial parabolic unipotent radicals.

  ```lean
  private theorem finCusp_comp {n : ℕ} (τ : FDRep ℂ (Gn g n)) (hτ : IsCusp τ.character) :
      PositivityTheory.Rg.DzCount.FinCusp (τ.ρ.comp (GeneralLinearGroup.map (n := Fin n) (resE i hi).toRingHom)) := …
  ```
- `UpperTheory.Gal.InertialTypesAlt.TypeCharacters.fixed_eq_range`: A nonzero intertwiner from the inflated finite cuspidal type into an irreducible local representation with a central character is injective and has image equal to the full principal congruence subgroup fixed space.

  ```lean
  private theorem fixed_eq_range {n : ℕ} (τ : FDRep ℂ (Gn g n)) (hτ : IsCusp τ.character)
      (σ : IrrRep (GL (Fin n) (w.adicCompletion E))) (ω : (w.adicCompletion E)ˣ →* ℂˣ) (hω : HasCentralChar σ.ρ ω)
      (φ : τ →ₗ[ℂ] σ.V) (h0 : φ ≠ 0)
      (hφ : ∀ (k : GL (Fin n) ℤ_[g]) (u : τ), φ (τ.ρ (GlobalTheory.GLp.red g n k) u) =
        σ.ρ (GeneralLinearGroup.map i.toRingHom (GlobalTheory.GLp.inc g n k)) (φ u)) :
      Function.Injective φ ∧ fixed σ.ρ (KOne (w.adicCompletion E) (Fin n)) = LinearMap.range φ := …
  ```
- `UpperTheory.Gal.InertialTypesAlt.TypeCharacters.trace_eq`: Under the same irreducibility, central-character, and intertwining hypotheses as fixed_eq_range, the transported finite cuspidal character at each residue-field matrix equals the trace of its action on the principal congruence subgroup fixed space.

  ```lean
  private theorem trace_eq {n : ℕ} (τ : FDRep ℂ (Gn g n)) (hτ : IsCusp τ.character)
      (σ : IrrRep (GL (Fin n) (w.adicCompletion E))) (ω : (w.adicCompletion E)ˣ →* ℂˣ) (hω : HasCentralChar σ.ρ ω)
      (φ : τ →ₗ[ℂ] σ.V) (h0 : φ ≠ 0)
      (hφ : ∀ (k : GL (Fin n) ℤ_[g]) (u : τ), φ (τ.ρ (GlobalTheory.GLp.red g n k) u) =
        σ.ρ (GeneralLinearGroup.map i.toRingHom (GlobalTheory.GLp.inc g n k)) (φ u))
      (γ : GL (Fin n) 𝓀[w.adicCompletion E]) :
      τ.character (GeneralLinearGroup.map (resE i hi).toRingHom γ) = LinearMap.trace ℂ _ (levelZero σ.ρ γ) := …
  ```
- `UpperTheory.Gal.InertialTypesAlt.typeChar`: For the specified residue-field identification, the finite cuspidal character agrees pointwise with the level-zero character of the local representation admitting that type.

  ```lean
  theorem UpperTheory.Gal.InertialTypesAlt.typeChar :
      TypeChar := …
  ```

### Development.AutomorphicArithmetic.Foundations.LocalLanglands.LocalCentralUnits.IsSemisimpleInducedParam

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

**Constructs irreducible Weil–Deligne parameters from Frobenius orbits of inertia characters with prescribed Frobenius determinant.**

The construction uses functions satisfying f(j+n)=bf(j), on which inertia acts diagonally by the orbit characters and Frobenius acts by shifting the argument. Distinct inertia characters isolate the coordinate lines, and the cyclic shift forces irreducibility. Smoothness gives finite inertia image, so a positive power of each Weil operator is a nonzero scalar, proving semisimplicity. The parameter has zero monodromy and is tame when the orbit characters are trivial on wild inertia. CentralUnit uses this construction to realize the inertia formula for depth-zero cuspidal types.

Key declarations:

- `UpperTheory.Zero.LLC.indEx`: An orbit of n inertia characters with open kernels gives an irreducible n-dimensional Weil–Deligne parameter with those inertia eigencharacters and any prescribed nonzero determinant on a degree-one Frobenius lift.

  ```lean
  theorem UpperTheory.Zero.LLC.indEx :
      UpperTheory.Zero.LLC.IndEx := …
  ```
- `UpperTheory.Zero.LLC.InducedExistence.rho0`: Defines the Weil action on functions satisfying f(j+n)=bf(j) by combining a shift given by the Weil degree with multiplication by an inertia character.

  ```lean
  private def rho0 {φ : Weil h} (hφ : deg φ = 1) {η : ℤ → (Ine (F := E) A →* ℂˣ)} {n : ℕ} (b : ℂ)
      (h1 : ∀ (j : ℤ) (t t' : Ine (F := E) A), ineIncl h t' = φ * ineIncl h t * φ⁻¹ → η j t' = η (j + 1) t)
      (h2 : ∀ j j' : ℤ, η j = η j' ↔ (n : ℤ) ∣ j - j') : Representation ℂ (Weil h) (per n b)
  ```
- `UpperTheory.Zero.LLC.InducedExistence.isSmooth_inducedParam`: The Weil action is smooth when the initial inertia character has open kernel.

  ```lean
  private theorem isSmooth_inducedParam (hn : 0 < n) (h0 : IsOpen ((η 0).ker : Set (Ine (F := E) A))) :
      IsSmooth (rho0 hφ b h1 h2) := …
  ```
- `UpperTheory.Zero.LLC.InducedExistence.isSemisimple_inducedParam`: Every Weil element acts semisimply in the smooth construction with n > 0 and b nonzero.

  ```lean
  private theorem isSemisimple_inducedParam (hn : 0 < n) (hb : b ≠ 0) (hs : IsSmooth (rho0 hφ b h1 h2)) (σ : Weil h) :
      Module.End.IsSemisimple (rho0 hφ b h1 h2 σ) := …
  ```
- `UpperTheory.Zero.LLC.InducedExistence.det_shift`: The shift on the space of functions satisfying f(j+n)=bf(j) has determinant (−1)ⁿ⁻¹b.

  ```lean
  private theorem det_shift {n : ℕ} (hn : 0 < n) {b : ℂ} (hb : b ≠ 0) (S : Module.End ℂ (per n b))
      (hS : ∀ f j, (S f).1 j = f.1 (j + 1)) : LinearMap.det S = (-1) ^ (n - 1) * b := …
  ```

### Development.AutomorphicArithmetic.Foundations.LocalLanglands.LocalCentralUnits.NameCentral

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

**Identifies the central character of a cuspidal representation of GL_n(F_p) with the restriction of its regular parameter.**

For prime p and n ≥ 1, if a regular character θ of F_{p^n}^× parametrizes a complex cuspidal representation via the Frobenius-sum character formula, then cI acts by θ(c) for every c in F_p^×. Schur's lemma gives a scalar, which the proof computes by comparing character values on multiplication by a degree-n element z with nonzero Frobenius sum and on multiplication by cz. CentralUnit uses this scalar action to match the Weil determinant with the local central character on inertia.

Key declarations:

- `UpperTheory.Zero.LLC.nameCentral`: The scalar matrix cI acts by θ(c) when the regular character θ names the complex cuspidal representation via the Frobenius-sum character formula.

  ```lean
  theorem UpperTheory.Zero.LLC.nameCentral :
      UpperTheory.Zero.LLC.NameCentral := …
  ```
- `UpperTheory.Zero.LLC.scalar_comm`: Scalar matrices commute with every element of GL_n(F_p).

  ```lean
  private theorem scalar_comm {g n : ℕ} [Fact g.Prime] (c : (ZMod g)ˣ) (x : Gn g n) :
      GeneralLinearGroup.scalar (Fin n) c * x = x * GeneralLinearGroup.scalar (Fin n) c := …
  ```
- `UpperTheory.Zero.LLC.schur_scalar`: A central element of a finite group acts by a scalar in every irreducible finite-dimensional complex representation.

  ```lean
  private theorem schur_scalar {G : Type} [Group G] [Fintype G] (τ : FDRep ℂ G) [Simple τ] (s : G)
      (hs : ∀ x : G, s * x = x * s) : ∃ l : ℂ, ∀ v : τ, τ.ρ s v = l • v := …
  ```
- `UpperTheory.Zero.LLC.charpoly_lmul`: If an element of a finite field extension has minimal polynomial of degree equal to the extension degree, then multiplication by that element has the minimal polynomial as its characteristic polynomial.

  ```lean
  private theorem charpoly_lmul {F K : Type} [Field F] [Field K] [Algebra F K] [FiniteDimensional F K] {n : ℕ}
      (b : Module.Basis (Fin n) F K) (x : K) (hd : (minpoly F x).natDegree = n) :
      (Algebra.leftMulMatrix b x).charpoly = minpoly F x := …
  ```
- `UpperTheory.Zero.LLC.natDegree_smul`: Multiplying an element of a finite field extension by a nonzero base-field scalar preserves the degree of its minimal polynomial.

  ```lean
  private theorem natDegree_smul {F K : Type} [Field F] [Field K] [Algebra F K] [FiniteDimensional F K]
      (c : Fˣ) (x : K) : (minpoly F (algebraMap F K c * x)).natDegree = (minpoly F x).natDegree := …
  ```


---

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