# Hecke characters on ideles: local factors, finiteness and rigidity: 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 k0704 (https://riemannhypothesissolved.com/cluster/k0704-hecke-characters-on-ideles-local-factors-finiteness-and/) · 89 Lean files, by distance from Main.lean · part 2 of 2, files 40–89 of 89 · data: https://riemannhypothesissolved.com/api/file-lines/k0704.json

- Part 1: https://riemannhypothesissolved.com/cluster/k0704-hecke-characters-on-ideles-local-factors-finiteness-and/lean/index.md
- Part 2: https://riemannhypothesissolved.com/cluster/k0704-hecke-characters-on-ideles-local-factors-finiteness-and/lean/part-2/index.md

## Contents

- 6 import steps from Main:
  - [Development.AbelianVarietyTheory.Proofs.IwasawaDecomposition.KeyFinitenessGlobal](https://riemannhypothesissolved.com/cluster/k0704-hecke-characters-on-ideles-local-factors-finiteness-and/lean/#Development.AbelianVarietyTheory.Proofs.IwasawaDecomposition.KeyFinitenessGlobal)
- 7 import steps from Main:
  - [Development.AbelianVarietyTheory.Definitions.AutomorphicMembership.IsOpenKerFinIdele](https://riemannhypothesissolved.com/cluster/k0704-hecke-characters-on-ideles-local-factors-finiteness-and/lean/#Development.AbelianVarietyTheory.Definitions.AutomorphicMembership.IsOpenKerFinIdele)
  - [Development.AbelianVarietyTheory.Proofs.IwasawaDecomposition.FiniteChars](https://riemannhypothesissolved.com/cluster/k0704-hecke-characters-on-ideles-local-factors-finiteness-and/lean/#Development.AbelianVarietyTheory.Proofs.IwasawaDecomposition.FiniteChars)
  - [Development.AbelianVarietyTheory.Proofs.IwasawaDecomposition.HeckeCharTrivialOnCongruenceUnitIdelesStatement](https://riemannhypothesissolved.com/cluster/k0704-hecke-characters-on-ideles-local-factors-finiteness-and/lean/#Development.AbelianVarietyTheory.Proofs.IwasawaDecomposition.HeckeCharTrivialOnCongruenceUnitIdelesStatement)
  - [Development.AbelianVarietyTheory.Proofs.IwasawaDecomposition.IsOpenConnectedComponentOfOneInf](https://riemannhypothesissolved.com/cluster/k0704-hecke-characters-on-ideles-local-factors-finiteness-and/lean/#Development.AbelianVarietyTheory.Proofs.IwasawaDecomposition.IsOpenConnectedComponentOfOneInf)
  - [Development.AbelianVarietyTheory.Proofs.IwasawaDecomposition.RayClassGroupIdelicFiniteIndexStatement](https://riemannhypothesissolved.com/cluster/k0704-hecke-characters-on-ideles-local-factors-finiteness-and/lean/#Development.AbelianVarietyTheory.Proofs.IwasawaDecomposition.RayClassGroupIdelicFiniteIndexStatement)
  - [Development.AbelianVarietyTheory.Proofs.TwistedOperators.EqOneOfInfOfVal](https://riemannhypothesissolved.com/cluster/k0704-hecke-characters-on-ideles-local-factors-finiteness-and/lean/#Development.AbelianVarietyTheory.Proofs.TwistedOperators.EqOneOfInfOfVal)
  - [Development.AbelianVarietyTheory.Proofs.TwistedOperators.ExtensionEmbeddingMixedSymmOfIsComplex](https://riemannhypothesissolved.com/cluster/k0704-hecke-characters-on-ideles-local-factors-finiteness-and/lean/#Development.AbelianVarietyTheory.Proofs.TwistedOperators.ExtensionEmbeddingMixedSymmOfIsComplex)
  - [Development.AbelianVarietyTheory.Proofs.TwistedOperators.HeckeCharUniformiserValueIsAlgebraicStatement](https://riemannhypothesissolved.com/cluster/k0704-hecke-characters-on-ideles-local-factors-finiteness-and/lean/#Development.AbelianVarietyTheory.Proofs.TwistedOperators.HeckeCharUniformiserValueIsAlgebraicStatement)
  - [Development.AbelianVarietyTheory.PublishedTheorems.Divisors₂.IsCMTypeEmbedding](https://riemannhypothesissolved.com/cluster/k0704-hecke-characters-on-ideles-local-factors-finiteness-and/lean/#Development.AbelianVarietyTheory.PublishedTheorems.Divisors₂.IsCMTypeEmbedding)
  - [Development.AbelianVarietyTheory.PublishedTheorems.TwistedTraceFormula.HeckeLEntireAndNonzeroAtOne](https://riemannhypothesissolved.com/cluster/k0704-hecke-characters-on-ideles-local-factors-finiteness-and/lean/#Development.AbelianVarietyTheory.PublishedTheorems.TwistedTraceFormula.HeckeLEntireAndNonzeroAtOne)
  - [Development.WeilBound.CoreStatements.PublishedTheorems.SmoothVectorEstimates.FiniteInfinitePlaceProduct](https://riemannhypothesissolved.com/cluster/k0704-hecke-characters-on-ideles-local-factors-finiteness-and/lean/#Development.WeilBound.CoreStatements.PublishedTheorems.SmoothVectorEstimates.FiniteInfinitePlaceProduct)
  - [Formalism.LocalToGlobal.UnitaryNorms.IsUnitaryNormOf](https://riemannhypothesissolved.com/cluster/k0704-hecke-characters-on-ideles-local-factors-finiteness-and/lean/#Formalism.LocalToGlobal.UnitaryNorms.IsUnitaryNormOf)
  - [Formalism.PeriodIntegrals.UnitaryGroupMassFormula.AlgebraicValuesFinite.AlgValsFinMain](https://riemannhypothesissolved.com/cluster/k0704-hecke-characters-on-ideles-local-factors-finiteness-and/lean/#Formalism.PeriodIntegrals.UnitaryGroupMassFormula.AlgebraicValuesFinite.AlgValsFinMain)
- 8 import steps from Main:
  - [Development.AbelianVarietyTheory.Definitions.Foundations.AbsCharNotUnitary](https://riemannhypothesissolved.com/cluster/k0704-hecke-characters-on-ideles-local-factors-finiteness-and/lean/#Development.AbelianVarietyTheory.Definitions.Foundations.AbsCharNotUnitary)
  - [Development.AbelianVarietyTheory.Proofs.IwasawaDecomposition.ContinuousInfIdele](https://riemannhypothesissolved.com/cluster/k0704-hecke-characters-on-ideles-local-factors-finiteness-and/lean/#Development.AbelianVarietyTheory.Proofs.IwasawaDecomposition.ContinuousInfIdele)
  - [Development.AbelianVarietyTheory.Proofs.IwasawaDecomposition.ContinuousOfValuedEq](https://riemannhypothesissolved.com/cluster/k0704-hecke-characters-on-ideles-local-factors-finiteness-and/lean/#Development.AbelianVarietyTheory.Proofs.IwasawaDecomposition.ContinuousOfValuedEq)
  - [Development.AbelianVarietyTheory.Proofs.IwasawaDecomposition.DetCharEqOneOfHasWt](https://riemannhypothesissolved.com/cluster/k0704-hecke-characters-on-ideles-local-factors-finiteness-and/lean/#Development.AbelianVarietyTheory.Proofs.IwasawaDecomposition.DetCharEqOneOfHasWt)
  - [Development.AbelianVarietyTheory.Proofs.IwasawaDecomposition.ExistsProdInfMulFinPart](https://riemannhypothesissolved.com/cluster/k0704-hecke-characters-on-ideles-local-factors-finiteness-and/lean/#Development.AbelianVarietyTheory.Proofs.IwasawaDecomposition.ExistsProdInfMulFinPart)
  - [Development.AbelianVarietyTheory.Proofs.IwasawaDecomposition.HeckeCharTrivialOnCongruenceUnitIdeles](https://riemannhypothesissolved.com/cluster/k0704-hecke-characters-on-ideles-local-factors-finiteness-and/lean/#Development.AbelianVarietyTheory.Proofs.IwasawaDecomposition.HeckeCharTrivialOnCongruenceUnitIdeles)
  - [Development.AbelianVarietyTheory.Proofs.IwasawaDecomposition.RayClassGroupIdelicFiniteIndex](https://riemannhypothesissolved.com/cluster/k0704-hecke-characters-on-ideles-local-factors-finiteness-and/lean/#Development.AbelianVarietyTheory.Proofs.IwasawaDecomposition.RayClassGroupIdelicFiniteIndex)
  - [Development.AbelianVarietyTheory.Proofs.TwistedOperators.ExistsSmoothMulExtensionOfContinuousChar](https://riemannhypothesissolved.com/cluster/k0704-hecke-characters-on-ideles-local-factors-finiteness-and/lean/#Development.AbelianVarietyTheory.Proofs.TwistedOperators.ExistsSmoothMulExtensionOfContinuousChar)
  - [Development.AbelianVarietyTheory.Proofs.TwistedOperators.HeckeCharUniformiserValueIsAlgebraic](https://riemannhypothesissolved.com/cluster/k0704-hecke-characters-on-ideles-local-factors-finiteness-and/lean/#Development.AbelianVarietyTheory.Proofs.TwistedOperators.HeckeCharUniformiserValueIsAlgebraic)
  - [Formalism.LocalToGlobal.UnitaryNorms.CharTransport](https://riemannhypothesissolved.com/cluster/k0704-hecke-characters-on-ideles-local-factors-finiteness-and/lean/#Formalism.LocalToGlobal.UnitaryNorms.CharTransport)
  - [Formalism.PeriodIntegrals.UnitaryGroupMassFormula.AlgebraicValuesFinite.AlgValsFinOfTors](https://riemannhypothesissolved.com/cluster/k0704-hecke-characters-on-ideles-local-factors-finiteness-and/lean/#Formalism.PeriodIntegrals.UnitaryGroupMassFormula.AlgebraicValuesFinite.AlgValsFinOfTors)
  - [Formalism.PeriodIntegrals.UnitaryGroupMassFormula.AlgebraicValuesFinite.InvMemUFin](https://riemannhypothesissolved.com/cluster/k0704-hecke-characters-on-ideles-local-factors-finiteness-and/lean/#Formalism.PeriodIntegrals.UnitaryGroupMassFormula.AlgebraicValuesFinite.InvMemUFin)
  - [Formalism.PeriodIntegrals.UnitaryGroupMassFormula.AlgebraicValuesFinite.TorsUnitsOfNbhd](https://riemannhypothesissolved.com/cluster/k0704-hecke-characters-on-ideles-local-factors-finiteness-and/lean/#Formalism.PeriodIntegrals.UnitaryGroupMassFormula.AlgebraicValuesFinite.TorsUnitsOfNbhd)
  - [ReciprocityTheory.NeutralLocalFields.LocalFieldComparison.HCFFromRecipB](https://riemannhypothesissolved.com/cluster/k0704-hecke-characters-on-ideles-local-factors-finiteness-and/lean/#ReciprocityTheory.NeutralLocalFields.LocalFieldComparison.HCFFromRecipB)
- 9 import steps from Main:
  - [Development.AbelianVarietyTheory.Definitions.Foundations.DiagUnitsEqLocalIdele](https://riemannhypothesissolved.com/cluster/k0704-hecke-characters-on-ideles-local-factors-finiteness-and/lean/#Development.AbelianVarietyTheory.Definitions.Foundations.DiagUnitsEqLocalIdele)
  - [Development.AbelianVarietyTheory.Definitions.Foundations.IsUnitaryOfOrder](https://riemannhypothesissolved.com/cluster/k0704-hecke-characters-on-ideles-local-factors-finiteness-and/lean/#Development.AbelianVarietyTheory.Definitions.Foundations.IsUnitaryOfOrder)
  - [Development.AbelianVarietyTheory.Definitions.Foundations.ValuedAlgebraMapEqOne](https://riemannhypothesissolved.com/cluster/k0704-hecke-characters-on-ideles-local-factors-finiteness-and/lean/#Development.AbelianVarietyTheory.Definitions.Foundations.ValuedAlgebraMapEqOne)
  - [Development.AbelianVarietyTheory.Definitions.GaloisGeometry.DegOneIffSurjective](https://riemannhypothesissolved.com/cluster/k0704-hecke-characters-on-ideles-local-factors-finiteness-and/lean/#Development.AbelianVarietyTheory.Definitions.GaloisGeometry.DegOneIffSurjective)
  - [Development.AbelianVarietyTheory.Proofs.DivisorProofs.ExistsOddPrimeGtTwoBounds](https://riemannhypothesissolved.com/cluster/k0704-hecke-characters-on-ideles-local-factors-finiteness-and/lean/#Development.AbelianVarietyTheory.Proofs.DivisorProofs.ExistsOddPrimeGtTwoBounds)
  - [Development.AbelianVarietyTheory.Proofs.IwasawaDecomposition.ContinuousOfTameLoc](https://riemannhypothesissolved.com/cluster/k0704-hecke-characters-on-ideles-local-factors-finiteness-and/lean/#Development.AbelianVarietyTheory.Proofs.IwasawaDecomposition.ContinuousOfTameLoc)
  - [Development.AbelianVarietyTheory.Proofs.IwasawaDecomposition.EtaTildeIsUnitArgAtCmTypePlaces](https://riemannhypothesissolved.com/cluster/k0704-hecke-characters-on-ideles-local-factors-finiteness-and/lean/#Development.AbelianVarietyTheory.Proofs.IwasawaDecomposition.EtaTildeIsUnitArgAtCmTypePlaces)
  - [Development.AbelianVarietyTheory.Proofs.SatakeParameters.ContinuousIdeleCharLocalFactorization](https://riemannhypothesissolved.com/cluster/k0704-hecke-characters-on-ideles-local-factors-finiteness-and/lean/#Development.AbelianVarietyTheory.Proofs.SatakeParameters.ContinuousIdeleCharLocalFactorization)
  - [Formalism.LocalToGlobal.UnitaryNorms.UnrAe](https://riemannhypothesissolved.com/cluster/k0704-hecke-characters-on-ideles-local-factors-finiteness-and/lean/#Formalism.LocalToGlobal.UnitaryNorms.UnrAe)
  - [Formalism.PeriodIntegrals.UnitaryGroupMassFormula.AlgebraicValuesFinite.ClassSame](https://riemannhypothesissolved.com/cluster/k0704-hecke-characters-on-ideles-local-factors-finiteness-and/lean/#Formalism.PeriodIntegrals.UnitaryGroupMassFormula.AlgebraicValuesFinite.ClassSame)
  - [Formalism.PeriodIntegrals.UnitaryGroupMassFormula.AlgebraicValuesFinite.EvFLocalIdeleSelf](https://riemannhypothesissolved.com/cluster/k0704-hecke-characters-on-ideles-local-factors-finiteness-and/lean/#Formalism.PeriodIntegrals.UnitaryGroupMassFormula.AlgebraicValuesFinite.EvFLocalIdeleSelf)
  - [Formalism.PeriodIntegrals.UnitaryGroupMassFormula.AlgebraicValuesFinite.FactorOne](https://riemannhypothesissolved.com/cluster/k0704-hecke-characters-on-ideles-local-factors-finiteness-and/lean/part-2/#Formalism.PeriodIntegrals.UnitaryGroupMassFormula.AlgebraicValuesFinite.FactorOne)
  - [Formalism.PeriodIntegrals.UnitaryGroupMassFormula.AlgebraicValuesFinite.FinprodNormEmbedding](https://riemannhypothesissolved.com/cluster/k0704-hecke-characters-on-ideles-local-factors-finiteness-and/lean/part-2/#Formalism.PeriodIntegrals.UnitaryGroupMassFormula.AlgebraicValuesFinite.FinprodNormEmbedding)
  - [Formalism.PeriodIntegrals.UnitaryGroupMassFormula.AlgebraicValuesFinite.IsIntegralOfMemCompo](https://riemannhypothesissolved.com/cluster/k0704-hecke-characters-on-ideles-local-factors-finiteness-and/lean/part-2/#Formalism.PeriodIntegrals.UnitaryGroupMassFormula.AlgebraicValuesFinite.IsIntegralOfMemCompo)
  - [Formalism.PeriodIntegrals.UnitaryGroupMassFormula.AlgebraicValuesFinite.NormEqOneOfForallZpow](https://riemannhypothesissolved.com/cluster/k0704-hecke-characters-on-ideles-local-factors-finiteness-and/lean/part-2/#Formalism.PeriodIntegrals.UnitaryGroupMassFormula.AlgebraicValuesFinite.NormEqOneOfForallZpow)
  - [Formalism.PeriodIntegrals.UnitaryGroupMassFormula.AlgebraicValuesFinite.OrdFEqOfClassOf](https://riemannhypothesissolved.com/cluster/k0704-hecke-characters-on-ideles-local-factors-finiteness-and/lean/part-2/#Formalism.PeriodIntegrals.UnitaryGroupMassFormula.AlgebraicValuesFinite.OrdFEqOfClassOf)
  - [Formalism.PeriodIntegrals.UnitaryGroupMassFormula.AlgebraicValuesFinite.PowCardSubOneMem](https://riemannhypothesissolved.com/cluster/k0704-hecke-characters-on-ideles-local-factors-finiteness-and/lean/part-2/#Formalism.PeriodIntegrals.UnitaryGroupMassFormula.AlgebraicValuesFinite.PowCardSubOneMem)
- 10 import steps from Main:
  - [Development.AbelianVarietyTheory.Proofs.DivisorProofs.CmAlgCharEqArgMulAbsStatement](https://riemannhypothesissolved.com/cluster/k0704-hecke-characters-on-ideles-local-factors-finiteness-and/lean/part-2/#Development.AbelianVarietyTheory.Proofs.DivisorProofs.CmAlgCharEqArgMulAbsStatement)
  - [Development.AbelianVarietyTheory.Proofs.DivisorProofs.HeckeCharacterRamifiedFinite](https://riemannhypothesissolved.com/cluster/k0704-hecke-characters-on-ideles-local-factors-finiteness-and/lean/part-2/#Development.AbelianVarietyTheory.Proofs.DivisorProofs.HeckeCharacterRamifiedFinite)
  - [Development.AbelianVarietyTheory.Proofs.DivisorProofs.ProdArgRealUnitEqOneStatement](https://riemannhypothesissolved.com/cluster/k0704-hecke-characters-on-ideles-local-factors-finiteness-and/lean/part-2/#Development.AbelianVarietyTheory.Proofs.DivisorProofs.ProdArgRealUnitEqOneStatement)
  - [Development.AbelianVarietyTheory.Proofs.DivisorProofs.UnitRealOfCongrOneStatement](https://riemannhypothesissolved.com/cluster/k0704-hecke-characters-on-ideles-local-factors-finiteness-and/lean/part-2/#Development.AbelianVarietyTheory.Proofs.DivisorProofs.UnitRealOfCongrOneStatement)
  - [Development.AutomorphicArithmetic.IntegralCasts.CapelliIdentities.EqOneOfForallZpow](https://riemannhypothesissolved.com/cluster/k0704-hecke-characters-on-ideles-local-factors-finiteness-and/lean/part-2/#Development.AutomorphicArithmetic.IntegralCasts.CapelliIdentities.EqOneOfForallZpow)
  - [Formalism.PeriodIntegrals.AlgValsFin](https://riemannhypothesissolved.com/cluster/k0704-hecke-characters-on-ideles-local-factors-finiteness-and/lean/part-2/#Formalism.PeriodIntegrals.AlgValsFin)
  - [Formalism.PeriodIntegrals.UnitaryGroupMassFormula.AlgebraicValuesFinite.ValuedAtFin](https://riemannhypothesissolved.com/cluster/k0704-hecke-characters-on-ideles-local-factors-finiteness-and/lean/part-2/#Formalism.PeriodIntegrals.UnitaryGroupMassFormula.AlgebraicValuesFinite.ValuedAtFin)
  - [Formalism.PeriodIntegrals.UnitaryGroupMassFormula.NormOneCharacters.NormOneCharacterApply](https://riemannhypothesissolved.com/cluster/k0704-hecke-characters-on-ideles-local-factors-finiteness-and/lean/part-2/#Formalism.PeriodIntegrals.UnitaryGroupMassFormula.NormOneCharacters.NormOneCharacterApply)
  - [Formalism.UnipotentAdelicQuotients.FinOrdValGen](https://riemannhypothesissolved.com/cluster/k0704-hecke-characters-on-ideles-local-factors-finiteness-and/lean/part-2/#Formalism.UnipotentAdelicQuotients.FinOrdValGen)
- 11 import steps from Main:
  - [Development.AbelianVarietyTheory.Proofs.DivisorProofs.CmAlgCharEqArgMulAbs](https://riemannhypothesissolved.com/cluster/k0704-hecke-characters-on-ideles-local-factors-finiteness-and/lean/part-2/#Development.AbelianVarietyTheory.Proofs.DivisorProofs.CmAlgCharEqArgMulAbs)
  - [Development.AbelianVarietyTheory.Proofs.DivisorProofs.ProdArgRealUnitEqOne](https://riemannhypothesissolved.com/cluster/k0704-hecke-characters-on-ideles-local-factors-finiteness-and/lean/part-2/#Development.AbelianVarietyTheory.Proofs.DivisorProofs.ProdArgRealUnitEqOne)
  - [Development.AbelianVarietyTheory.Proofs.DivisorProofs.UnitRealOfCongrOne](https://riemannhypothesissolved.com/cluster/k0704-hecke-characters-on-ideles-local-factors-finiteness-and/lean/part-2/#Development.AbelianVarietyTheory.Proofs.DivisorProofs.UnitRealOfCongrOne)
  - [Development.AbelianVarietyTheory.Proofs.IwasawaDecomposition.HeckeCharFiniteOrderOfTrivialAtInfinity](https://riemannhypothesissolved.com/cluster/k0704-hecke-characters-on-ideles-local-factors-finiteness-and/lean/part-2/#Development.AbelianVarietyTheory.Proofs.IwasawaDecomposition.HeckeCharFiniteOrderOfTrivialAtInfinity)
  - [Development.AbelianVarietyTheory.Proofs.SatakeParameters.ExistsWeakApproxUnitFinitePlace](https://riemannhypothesissolved.com/cluster/k0704-hecke-characters-on-ideles-local-factors-finiteness-and/lean/part-2/#Development.AbelianVarietyTheory.Proofs.SatakeParameters.ExistsWeakApproxUnitFinitePlace)
  - [Formalism.LocalToGlobal.NumberFieldFamilies.IdTransSM](https://riemannhypothesissolved.com/cluster/k0704-hecke-characters-on-ideles-local-factors-finiteness-and/lean/part-2/#Formalism.LocalToGlobal.NumberFieldFamilies.IdTransSM)
  - [Formalism.PeriodIntegrals.ChiExCM](https://riemannhypothesissolved.com/cluster/k0704-hecke-characters-on-ideles-local-factors-finiteness-and/lean/part-2/#Formalism.PeriodIntegrals.ChiExCM)
  - [Formalism.PeriodIntegrals.OrbitalBoundsConclusion.CharExtend](https://riemannhypothesissolved.com/cluster/k0704-hecke-characters-on-ideles-local-factors-finiteness-and/lean/part-2/#Formalism.PeriodIntegrals.OrbitalBoundsConclusion.CharExtend)
- 12 import steps from Main:
  - [Formalism.PeriodIntegrals.UnitaryGroupMassFormula.CharacterExtension.UnitsComplexExistsZpow](https://riemannhypothesissolved.com/cluster/k0704-hecke-characters-on-ideles-local-factors-finiteness-and/lean/part-2/#Formalism.PeriodIntegrals.UnitaryGroupMassFormula.CharacterExtension.UnitsComplexExistsZpow)
- 13 import steps from Main:
  - [Formalism.LocalToGlobal.UnitaryNorms.CharExGen](https://riemannhypothesissolved.com/cluster/k0704-hecke-characters-on-ideles-local-factors-finiteness-and/lean/part-2/#Formalism.LocalToGlobal.UnitaryNorms.CharExGen)
- 14 import steps from Main:
  - [Development.AbelianVarietyTheory.Proofs.IwasawaDecomposition.EtaTildeIsUnitArgAtCmTypePlacesStatement](https://riemannhypothesissolved.com/cluster/k0704-hecke-characters-on-ideles-local-factors-finiteness-and/lean/part-2/#Development.AbelianVarietyTheory.Proofs.IwasawaDecomposition.EtaTildeIsUnitArgAtCmTypePlacesStatement)
  - [Development.AbelianVarietyTheory.Proofs.IwasawaDecomposition.HeckeCharFiniteOrderOfTrivialAtInfinityStatement](https://riemannhypothesissolved.com/cluster/k0704-hecke-characters-on-ideles-local-factors-finiteness-and/lean/part-2/#Development.AbelianVarietyTheory.Proofs.IwasawaDecomposition.HeckeCharFiniteOrderOfTrivialAtInfinityStatement)
  - [Development.AbelianVarietyTheory.Proofs.SatakeParameters.ContinuousIdeleCharLocalFactorizationStatement](https://riemannhypothesissolved.com/cluster/k0704-hecke-characters-on-ideles-local-factors-finiteness-and/lean/part-2/#Development.AbelianVarietyTheory.Proofs.SatakeParameters.ContinuousIdeleCharLocalFactorizationStatement)
- 16 import steps from Main:
  - [Development.AbelianVarietyTheory.Proofs.SatakeParameters.ExistsWeakApproxUnitFinitePlaceStatement](https://riemannhypothesissolved.com/cluster/k0704-hecke-characters-on-ideles-local-factors-finiteness-and/lean/part-2/#Development.AbelianVarietyTheory.Proofs.SatakeParameters.ExistsWeakApproxUnitFinitePlaceStatement)
  - [Development.AbelianVarietyTheory.Proofs.TwistedOperators.HeckeCharIsUnitaryOfUnitaryInfinityType](https://riemannhypothesissolved.com/cluster/k0704-hecke-characters-on-ideles-local-factors-finiteness-and/lean/part-2/#Development.AbelianVarietyTheory.Proofs.TwistedOperators.HeckeCharIsUnitaryOfUnitaryInfinityType)
  - [Development.AbelianVarietyTheory.Proofs.TwistedOperators.HeckeCharIsUnitaryOfUnitaryInfinityTypeStatement](https://riemannhypothesissolved.com/cluster/k0704-hecke-characters-on-ideles-local-factors-finiteness-and/lean/part-2/#Development.AbelianVarietyTheory.Proofs.TwistedOperators.HeckeCharIsUnitaryOfUnitaryInfinityTypeStatement)
- 17 import steps from Main:
  - [Formalism.LocalToGlobal.UnitaryNorms.CharExCol](https://riemannhypothesissolved.com/cluster/k0704-hecke-characters-on-ideles-local-factors-finiteness-and/lean/part-2/#Formalism.LocalToGlobal.UnitaryNorms.CharExCol)
- 18 import steps from Main:
  - [Formalism.LocalToGlobal.UnitaryNorms.CharExEta](https://riemannhypothesissolved.com/cluster/k0704-hecke-characters-on-ideles-local-factors-finiteness-and/lean/part-2/#Formalism.LocalToGlobal.UnitaryNorms.CharExEta)
  - [Formalism.PeriodIntegrals.OrbitalBoundsConclusion.IdeleUnitsOpen](https://riemannhypothesissolved.com/cluster/k0704-hecke-characters-on-ideles-local-factors-finiteness-and/lean/part-2/#Formalism.PeriodIntegrals.OrbitalBoundsConclusion.IdeleUnitsOpen)
- 19 import steps from Main:
  - [Formalism.LocalToGlobal.UnitaryNorms.CharExHost](https://riemannhypothesissolved.com/cluster/k0704-hecke-characters-on-ideles-local-factors-finiteness-and/lean/part-2/#Formalism.LocalToGlobal.UnitaryNorms.CharExHost)
  - [Formalism.PeriodIntegrals.UnitaryGroupMassFormula.IdeleUnitsOpen.IsOpenAdicCompletionIntegers](https://riemannhypothesissolved.com/cluster/k0704-hecke-characters-on-ideles-local-factors-finiteness-and/lean/part-2/#Formalism.PeriodIntegrals.UnitaryGroupMassFormula.IdeleUnitsOpen.IsOpenAdicCompletionIntegers)
- 23 import steps from Main:
  - [Formalism.LocalToGlobal.Columns.HeckeEx](https://riemannhypothesissolved.com/cluster/k0704-hecke-characters-on-ideles-local-factors-finiteness-and/lean/part-2/#Formalism.LocalToGlobal.Columns.HeckeEx)
- 24 import steps from Main:
  - [Formalism.LocalToGlobal.UnitaryNorms.CharExFacts](https://riemannhypothesissolved.com/cluster/k0704-hecke-characters-on-ideles-local-factors-finiteness-and/lean/part-2/#Formalism.LocalToGlobal.UnitaryNorms.CharExFacts)
  - [Formalism.LocalToGlobal.UnitaryNorms.CharExMu](https://riemannhypothesissolved.com/cluster/k0704-hecke-characters-on-ideles-local-factors-finiteness-and/lean/part-2/#Formalism.LocalToGlobal.UnitaryNorms.CharExMu)
  - [Formalism.PeriodIntegrals.UnitaryGroupMassFormula.CMTypeEmbeddings.OnePsi](https://riemannhypothesissolved.com/cluster/k0704-hecke-characters-on-ideles-local-factors-finiteness-and/lean/part-2/#Formalism.PeriodIntegrals.UnitaryGroupMassFormula.CMTypeEmbeddings.OnePsi)
  - [Formalism.PeriodIntegrals.UnitaryGroupMassFormula.GlobalFormGenerator.IntValuationConjP](https://riemannhypothesissolved.com/cluster/k0704-hecke-characters-on-ideles-local-factors-finiteness-and/lean/part-2/#Formalism.PeriodIntegrals.UnitaryGroupMassFormula.GlobalFormGenerator.IntValuationConjP)
  - [Formalism.PeriodIntegrals.UnitaryGroupMassFormula.HostFieldFacts.HostFieldFacts](https://riemannhypothesissolved.com/cluster/k0704-hecke-characters-on-ideles-local-factors-finiteness-and/lean/part-2/#Formalism.PeriodIntegrals.UnitaryGroupMassFormula.HostFieldFacts.HostFieldFacts)
  - [Formalism.PeriodIntegrals.UnitaryGroupMassFormula.HostPrimeSplitting.DSplit](https://riemannhypothesissolved.com/cluster/k0704-hecke-characters-on-ideles-local-factors-finiteness-and/lean/part-2/#Formalism.PeriodIntegrals.UnitaryGroupMassFormula.HostPrimeSplitting.DSplit)
  - [Formalism.PeriodIntegrals.UnitaryGroupMassFormula.InfiniteEtaGenerators.CompEqEmbedding](https://riemannhypothesissolved.com/cluster/k0704-hecke-characters-on-ideles-local-factors-finiteness-and/lean/part-2/#Formalism.PeriodIntegrals.UnitaryGroupMassFormula.InfiniteEtaGenerators.CompEqEmbedding)
  - [Formalism.PeriodIntegrals.UnitaryGroupMassFormula.InfinityTypeCharacter.ContinuousUnitsMap](https://riemannhypothesissolved.com/cluster/k0704-hecke-characters-on-ideles-local-factors-finiteness-and/lean/part-2/#Formalism.PeriodIntegrals.UnitaryGroupMassFormula.InfinityTypeCharacter.ContinuousUnitsMap)
- 25 import steps from Main:
  - [Formalism.LocalToGlobal.UnitaryNorms.CharExFrame](https://riemannhypothesissolved.com/cluster/k0704-hecke-characters-on-ideles-local-factors-finiteness-and/lean/part-2/#Formalism.LocalToGlobal.UnitaryNorms.CharExFrame)
  - [Formalism.PeriodIntegrals.EtaInfGen](https://riemannhypothesissolved.com/cluster/k0704-hecke-characters-on-ideles-local-factors-finiteness-and/lean/part-2/#Formalism.PeriodIntegrals.EtaInfGen)
  - [Formalism.PeriodIntegrals.InfTypeChar](https://riemannhypothesissolved.com/cluster/k0704-hecke-characters-on-ideles-local-factors-finiteness-and/lean/part-2/#Formalism.PeriodIntegrals.InfTypeChar)
  - [Formalism.PeriodIntegrals.UnitaryGroupMassFormula.CMTypeEmbeddings.EmbMemCmType](https://riemannhypothesissolved.com/cluster/k0704-hecke-characters-on-ideles-local-factors-finiteness-and/lean/part-2/#Formalism.PeriodIntegrals.UnitaryGroupMassFormula.CMTypeEmbeddings.EmbMemCmType)
  - [Formalism.PeriodIntegrals.UnitaryGroupMassFormula.InfinityTypeCharacter.ExtensionEmbeddingAlgebraMap](https://riemannhypothesissolved.com/cluster/k0704-hecke-characters-on-ideles-local-factors-finiteness-and/lean/part-2/#Formalism.PeriodIntegrals.UnitaryGroupMassFormula.InfinityTypeCharacter.ExtensionEmbeddingAlgebraMap)

## The files

### Formalism.PeriodIntegrals.UnitaryGroupMassFormula.AlgebraicValuesFinite.FactorOne

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

**Derives the twisted Hecke character product identity by cancelling the archimedean and finite norm factors.**

Evaluating a Hecke character on a principal idele gives a product of its archimedean value, unramified local values, and its value on a finite idelic unit. The norm formula cancels the archimedean twist against the finite twists, expressing that product in terms of the archimedean embedding monomial and twisted uniformizer values. AlgValsFinOfTors uses this identity to derive the common number-field bound from bounded torsion on finite idelic units.

Key declarations:

- `PI.AlgValsFin.W.absNorm_pos`: Every height-one prime of the ring of integers of the number field L has positive absolute norm.

  ```lean
  theorem absNorm_pos (v : HeightOneSpectrum (𝓞 L)) : (0 : ℝ) < ((Ideal.absNorm v.asIdeal : ℕ) : ℝ) := …
  ```
- `PI.AlgValsFin.W.factor_one`: For every positive real N, integer o, and real s, (N^o)^s · (N^(-s))^o = 1.

  ```lean
  theorem factor_one (N : ℝ) (hN : 0 < N) (o : ℤ) (s : ℝ) : (N ^ o) ^ s * (N ^ (-s)) ^ o = 1 := …
  ```
- `PI.AlgValsFin.W.keyIdOf`: Given principal-idele decomposition, unramified local evaluation and the norm formula, if the twisted archimedean value on the diagonal of Lˣ equals the embedding monomial and the character is unramified throughout a finite set T containing the divisor support of k ∈ Lˣ, there is a finite idelic unit r whose character value times the monomial at k and the product over T of twisted uniformizer values raised to the orders of k equals 1.

  ```lean
  theorem keyIdOf : KeyIdOf L := …
  ```

### Formalism.PeriodIntegrals.UnitaryGroupMassFormula.AlgebraicValuesFinite.FinprodNormEmbedding

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

**Relates the product of archimedean embedding moduli to prime ideal norms raised to the corresponding finite orders.**

The product of the moduli over all complex embeddings equals the absolute field norm. For a nonzero element, the finite-place product is the reciprocal of the product of prime ideal norms raised to its orders, computed over any finite set containing the support of its divisor. The finite-place product formula identifies the finite-place product with the reciprocal of the absolute field norm, linking the two evaluations to give the norm identity that AlgValsFinOfTors uses to cancel the archimedean and finite norm twists in the character product.

Key declarations:

- `PI.AlgValsFin.W.valuation_eq_exp`: For every nonzero k, the multiplicative valuation at a finite prime v is WithZero.exp of the negative additive order of k at v.

  ```lean
  theorem valuation_eq_exp (v : HeightOneSpectrum (𝓞 L)) (k : Lˣ) :
      v.valuation L (k : L) = WithZero.exp (-ordF v k) := …
  ```
- `PI.AlgValsFin.W.prod_norm_emb`: For every element of the number field, the product of its moduli over all embeddings into ℂ equals the absolute value of its field norm to ℚ.

  ```lean
  theorem prod_norm_emb (x : L) : ∏ φ : L →+* ℂ, ‖φ x‖ = |((Algebra.norm ℚ x : ℚ) : ℝ)| := …
  ```
- `PI.AlgValsFin.W.finprod_norm_embedding`: For a nonzero element k, the product of its normalized finite-place absolute values equals the product of (Nv)^(-ordᵥ(k)) over any finite set containing all places with nonzero order.

  ```lean
  theorem finprod_norm_embedding (k : Lˣ) (T : Finset (HeightOneSpectrum (𝓞 L)))
      (hT : ∀ v, v ∉ T → ordF v k = 0) :
      ∏ᶠ w : FinitePlace L, w (k : L) =
        ∏ v ∈ T, (((Ideal.absNorm v.asIdeal : ℕ) : ℝ) ^ ordF v k)⁻¹ := …
  ```
- `PI.AlgValsFin.W.prodNorm`: For a nonzero element k, the product of |φ(k)| over all embeddings φ into ℂ equals the product of (Nv)^ordᵥ(k) over any finite set containing all places with nonzero order.

  ```lean
  theorem prodNorm : ProdNorm L := …
  ```

### Formalism.PeriodIntegrals.UnitaryGroupMassFormula.AlgebraicValuesFinite.IsIntegralOfMemCompo

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

**Places each algebraic Hecke norm twist’s unramified values in one number field given torsion, character and ideal-class hypotheses.**

The proof adjoins to the compositum of the embedded copies of the base field the roots of unity allowed by the torsion bound and one twisted uniformizer value from each class containing an unramified prime. Relations from principal prime powers put a common positive power of each representative value in the compositum, proving algebraicity over ℚ. Principal quotients of primes in the same class then express every other twisted unramified value in the resulting field. AlgValsFinOfTors supplies the character identity and the two ideal-class relations.

Key declarations:

- `PI.AlgValsFin.W.compo`: Defines the compositum in ℂ of the images of the base field under all its complex embeddings.

  ```lean
  def compo (L : Type) [Field L] [NumberField L] : IntermediateField ℚ ℂ :=
    ⨆ φ : L →+* ℂ, φ.toRatAlgHom.fieldRange
  ```
- `PI.AlgValsFin.W.mem_compo`: Every image of a base-field element under a complex embedding lies in the compositum.

  ```lean
  theorem mem_compo (φ : L →+* ℂ) (x : L) : φ x ∈ compo L := …
  ```
- `PI.AlgValsFin.W.prod_mem_compo`: Every product of integer powers of the complex embeddings of a base-field element lies in the compositum.

  ```lean
  theorem prod_mem_compo (m : (L →+* ℂ) → ℤ) (k : L) : ∏ φ : L →+* ℂ, φ k ^ m φ ∈ compo L := …
  ```
- `PI.AlgValsFin.W.isIntegral_of_mem_compo`: Every element of the compositum is algebraic over ℚ.

  ```lean
  theorem isIntegral_of_mem_compo {y : ℂ} (hy : y ∈ compo L) : IsIntegral ℚ y := …
  ```
- `PI.AlgValsFin.W.assemble`: Given bounded torsion on finite idelic units, the twisted character identity, and the two ideal-class relations, every Hecke character satisfying the norm-twisted archimedean algebraicity condition has all its twisted unramified uniformizer values in one number field.

  ```lean
  theorem assemble : Assemble L := …
  ```

### Formalism.PeriodIntegrals.UnitaryGroupMassFormula.AlgebraicValuesFinite.NormEqOneOfForallZpow

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

**Restates the criterion that a complex number equals 1 if all its integer powers are at distance less than 1 from 1.**

The sole theorem passes through an imported lemma stating that a complex number equals 1 if all its integer powers lie in the open disk of radius 1 centered at 1. TorsUnitsOfNbhd applies it to powers of Hecke character values to obtain a common torsion exponent on finite idelic units.

Key declarations:

- `PI.AlgValsFin.W.eq_one_of_forall_zpow`: If a complex number z satisfies |z^k − 1| < 1 for every integer k, then z = 1.

  ```lean
  theorem eq_one_of_forall_zpow {z : ℂ} (h : ∀ k : ℤ, ‖z ^ k - 1‖ < 1) : z = 1 := …
  ```

### Formalism.PeriodIntegrals.UnitaryGroupMassFormula.AlgebraicValuesFinite.OrdFEqOfClassOf

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

**Uses the ideal class group to produce principal powers of prime ideals and principal quotients of primes in the same class.**

An idele of trivial class has the same finite orders as a principal idele. The proof applies this fact to ideles supported at a single prime with a uniformizer there. Raising such an idele to the class number gives a principal prime power, while taking the quotient of two such ideles in the same class gives a principal fractional ideal. With bounded torsion, AlgValsFinOfTors uses both relations to place the twisted unramified values in one number field for each character and twist satisfying the archimedean monomial identity.

Key declarations:

- `PI.AlgValsFin.W.eU`: Defines the idele with a chosen uniformizer at a given finite prime and component 1 everywhere else.

  ```lean
  def eU (v : HeightOneSpectrum (𝓞 L)) : Ideles L := localIdele L v (piU v)
  ```
- `PI.AlgValsFin.W.ordAt_eU`: The uniformizer idele has order 1 at its chosen prime and order 0 at every other finite prime.

  ```lean
  theorem ordAt_eU (v w : HeightOneSpectrum (𝓞 L)) [Decidable (w = v)] :
      ordAt L w (eU v) = if w = v then 1 else 0 := …
  ```
- `PI.AlgValsFin.W.ordF_eq_of_classOf`: For every idele of trivial class, a nonzero field element realizes its orders at all finite primes.

  ```lean
  theorem ordF_eq_of_classOf (a : Ideles L) (ha : classOf L a = 1) :
      ∃ k : Lˣ, ∀ w : HeightOneSpectrum (𝓞 L), ordF w k = ordAt L w a := …
  ```
- `PI.AlgValsFin.W.classSame`: Labels the finite primes by the classes of their uniformizer ideles and proves that primes with the same label have principal quotient.

  ```lean
  theorem classSame : ClassSame L := …
  ```
- `PI.AlgValsFin.W.classPow`: Supplies a single positive exponent making every nonzero prime ideal power principal, with the class number chosen in the proof.

  ```lean
  theorem classPow : ClassPow L := …
  ```

### Formalism.PeriodIntegrals.UnitaryGroupMassFormula.AlgebraicValuesFinite.PowCardSubOneMem

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

**Proves that a single positive power sends every local unit to 1 modulo any prescribed power of the maximal ideal.**

At a finite prime, the order of the unit group of the global integers modulo the chosen prime power gives an exponent for the congruence. Approximation by global integers and a valuation estimate for differences of powers transfer the congruence to every unit in the completion. TorsUnitsOfNbhd multiplies these local exponents to enforce congruences simultaneously at finitely many primes.

Key declarations:

- `PI.AlgValsFin.W.val_alg`: The valuation on the completion restricts to the original valuation on the number field.

  ```lean
  theorem val_alg (y : L) : Valued.v (algebraMap L (v.adicCompletion L) y) = v.valuation L y := …
  ```
- `PI.AlgValsFin.W.val_pow_sub_le`: Taking the same nonnegative integer power of two local integers does not increase their distance in the multiplicative valuation.

  ```lean
  theorem val_pow_sub_le {x b : v.adicCompletion L} (hx : Valued.v x ≤ 1) (hb : Valued.v b ≤ 1) (k : ℕ) :
      Valued.v (x ^ k - b ^ k) ≤ Valued.v (x - b) := …
  ```
- `PI.AlgValsFin.W.pow_card_sub_one_mem`: If a global integer lies outside the chosen prime ideal, raising it to the order of the unit group modulo the nth power of that ideal gives 1 modulo that power.

  ```lean
  theorem pow_card_sub_one_mem (n : ℕ) (b : 𝓞 L) (hb : b ∉ v.asIdeal) :
      b ^ Nat.card ((𝓞 L ⧸ v.asIdeal ^ n)ˣ) - 1 ∈ v.asIdeal ^ n := …
  ```
- `PI.AlgValsFin.W.card_units_pos`: The unit group of the quotient of the global integers by any power of the chosen prime ideal has positive finite order.

  ```lean
  theorem card_units_pos (n : ℕ) : 0 < Nat.card ((𝓞 L ⧸ v.asIdeal ^ n)ˣ) := …
  ```
- `PI.AlgValsFin.W.exists_pow_close`: For each nonnegative integer n, one positive exponent sends every unit of the local ring of integers to 1 modulo the nth power of its maximal ideal.

  ```lean
  theorem exists_pow_close (n : ℕ) : ∃ N : ℕ, 0 < N ∧ ∀ x : v.adicCompletion L, Valued.v x = 1 →
      Valued.v (x ^ N - 1) ≤ exp (-(n : ℤ)) := …
  ```

### Development.AbelianVarietyTheory.Proofs.DivisorProofs.CmAlgCharEqArgMulAbsStatement

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

**Restates an imported identity factoring a CM infinity type into phase and absolute-value terms.**

For nonzero k in a CM field, suppose the integer exponents n(φ) sum to w₀ on each conjugate pair. The identity writes the product of φ(k) to the powers n(φ) as the product of phases at the infinite places, with exponents 2n(φ) − w₀ for the chosen embeddings, times the product of absolute values over all complex embeddings, each raised to w₀/2. ExistsOddPrimeGtTwoBounds uses this identity to verify the prescribed infinity type of a Hecke character unramified above a given prime.

Key declarations:

- `GlobalTheory.T.cm_algChar_eq_arg_mul_abs`: For a CM infinity type of common conjugate-pair weight w₀, the embedding monomial on nonzero field elements equals the phase product with exponents 2n(φ) − w₀ times the absolute field norm to the power w₀/2.

  ```lean
  set_option maxHeartbeats 1000000 in
  theorem _root_.GlobalTheory.T.cm_algChar_eq_arg_mul_abs : ∀ (E : Type) [Field E] [NumberField E] [IsCMField E] (n : (E →+* ℂ) → ℤ) (w0 : ℤ),
      (∀ φ, n φ + n (NumberField.ComplexEmbedding.conjugate φ) = w0) → ∀ k : E, k ≠ 0 →
      (∏ w : InfinitePlace E, (w.embedding k / ((‖w.embedding k‖ : ℝ) : ℂ)) ^ (2 * n w.embedding - w0)) *
        ∏ φ : E →+* ℂ, ((‖φ k‖ : ℝ) : ℂ) ^ ((((w0 : ℝ) / 2 : ℝ)) : ℂ) = ∏ φ : E →+* ℂ, φ k ^ n φ := …
  ```

### Development.AbelianVarietyTheory.Proofs.DivisorProofs.HeckeCharacterRamifiedFinite

10 import steps from Main · 14 lines · Checked against the code · [Open in the Lean viewer](https://riemannhypothesissolved.com/file/Development.AbelianVarietyTheory.Proofs.DivisorProofs.HeckeCharacterRamifiedFinite)

**Deduces that a Hecke character of a number field ramifies at only finitely many finite places.**

The lemma applies the almost-everywhere unramifiedness theorem to the continuous idele character underlying a Hecke character, expressing its conclusion as finiteness of the ramified set. ExistsNat uses that finite set to form a product of local congruence moduli over the ramified primes of ℚ.

Key declarations:

- `GlobalTheory.HCharRam.ram_finite`: For any Hecke character of a number field, the finite places where its local component is nontrivial on local units form a finite set.

  ```lean
  theorem ram_finite : ∀ (K : Type) [Field K] [NumberField K] (χ : HChar K),
      {w : HeightOneSpectrum (𝓞 K) | ¬ χ.UnrAt w}.Finite := …
  ```

### Development.AbelianVarietyTheory.Proofs.DivisorProofs.ProdArgRealUnitEqOneStatement

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

**Restates an imported sign product identity for units in CM fields.**

If a unit is congruent to 1 modulo an odd rational prime and has real image under every complex embedding, the product of its signs, taken once per infinite place, is 1. ExistsOddPrimeGtTwoBounds uses the identity to prove that the product stays 1 when the signs are raised to integer exponents of a common parity.

Key declarations:

- `GlobalTheory.T.prod_arg_real_unit_eq_one'`: For a unit of a CM field that is real under every complex embedding and congruent to 1 modulo an odd rational prime, the product of its normalized embedding values over the infinite places equals 1.

  ```lean
  set_option maxHeartbeats 1000000 in
  theorem _root_.GlobalTheory.T.prod_arg_real_unit_eq_one' : ∀ (E : Type) [Field E] [NumberField E] [IsCMField E] (q : ℕ), q.Prime → 2 < q →
      ∀ u : (𝓞 E)ˣ, (u : 𝓞 E) - 1 ∈ Ideal.span {((q : ℕ) : 𝓞 E)} →
      (∀ φ : E →+* ℂ, starRingEnd ℂ (φ ((u : 𝓞 E) : E)) = φ ((u : 𝓞 E) : E)) →
      ∏ w : InfinitePlace E, (w.embedding ((u : 𝓞 E) : E) / ((‖w.embedding ((u : 𝓞 E) : E)‖ : ℝ) : ℂ)) = 1 := …
  ```

### Development.AbelianVarietyTheory.Proofs.DivisorProofs.UnitRealOfCongrOneStatement

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

**Restates an imported criterion for units in a CM field to have real images under all complex embeddings.**

Let q be a rational prime coprime to the number of roots of unity in a CM field E. Every unit of the ring of integers congruent to 1 modulo q has real image under every complex embedding of E, so its normalized embedding values are signs in the phase product argument of ExistsOddPrimeGtTwoBounds.

Key declarations:

- `GlobalTheory.T.unit_real_of_sub_one_mem_span_prime`: If q is a rational prime coprime to the order of the group of roots of unity of a CM field E, every unit congruent to 1 modulo q𝒪_E has real image under every complex embedding of E.

  ```lean
  set_option maxHeartbeats 1000000 in
  theorem _root_.GlobalTheory.T.unit_real_of_sub_one_mem_span_prime : ∀ (E : Type) [Field E] [NumberField E] [IsCMField E] (q : ℕ), q.Prime →
      ¬ q ∣ Nat.card (Units.torsion E) → ∀ u : (𝓞 E)ˣ, (u : 𝓞 E) - 1 ∈ Ideal.span {((q : ℕ) : 𝓞 E)} →
      ∀ φ : E →+* ℂ, starRingEnd ℂ (φ ((u : 𝓞 E) : E)) = φ ((u : 𝓞 E) : E) := …
  ```

### Development.AutomorphicArithmetic.IntegralCasts.CapelliIdentities.EqOneOfForallZpow

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

**Proves that a complex number equals 1 if all its integer powers lie in the open unit disk centered at 1.**

A real-part estimate for a complex number whose inverse lies in the disk gives a lower bound of one half for the real part of every nonnegative power. The norm of the sum of the first n powers is therefore at least n/2. If the number differs from 1, the geometric-sum identity bounds that norm by the reciprocal of its distance from 1, contradicting the lower bound for large n.

Key declarations:

- `UpperTheory.Reformulated.B.Qk23.half_le_re`: If the inverse of a complex number lies at distance less than 1 from 1, the number has real part at least one half.

  ```lean
  private theorem UpperTheory.Reformulated.B.Qk23.half_le_re {w : ℂ} (h : ‖w⁻¹ - 1‖ < 1) : (1 / 2 : ℝ) ≤ w.re := …
  ```
- `UpperTheory.Reformulated.B.Qk23.eq_one_of_forall_zpow`: A complex number equals 1 if each of its integer powers lies at distance less than 1 from 1.

  ```lean
  theorem UpperTheory.Reformulated.B.Qk23.eq_one_of_forall_zpow :
      ∀ {z : ℂ}, (∀ (k : ℤ), ‖z ^ k - (1 : ℂ)‖ < (1 : ℝ)) → z = (1 : ℂ) := …
  ```

### Formalism.PeriodIntegrals.AlgValsFin

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

**Defines a proposition placing all norm-twisted unramified Hecke values in one number field when the twisted infinity type is algebraic.**

For a Hecke character of a number field L and a real exponent s, the hypothesis is that on L× the archimedean component times the product of the embedding absolute values raised to s equals a monomial in the embeddings with integer exponents. The proposition asserts that a single finite extension of ℚ inside ℂ contains all the values at local uniformizers at unramified primes, each multiplied by the prime’s absolute norm to the power −s. The orbital-bounds conclusion proves this proposition for every number field.

Key declarations:

- `PI.AlgValsFin.AlgValsFin`: States that an integral monomial formula for the norm-twisted archimedean component on L× forces all correspondingly twisted unramified uniformizer values to lie in one number field.

  ```lean
  def AlgValsFin (L : Type) [Field L] [NumberField L] : Prop :=
    ∀ (χ : HChar L) (s : ℝ) (m : (L →+* ℂ) → ℤ),
      (∀ k : Lˣ, ((χ.inf k : ℂˣ) : ℂ) * ∏ φ : L →+* ℂ, ((‖φ (k : L)‖ : ℝ) : ℂ) ^ (s : ℂ) = ∏ φ : L →+* ℂ, φ (k : L) ^ m φ) →
      ∃ C : Subfield ℂ, FiniteDimensional ℚ C ∧ χ.ValuesIn s C.subtype
  ```

### Formalism.PeriodIntegrals.UnitaryGroupMassFormula.AlgebraicValuesFinite.ValuedAtFin

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

**Proves local formulas for the valuation and unramified Hecke character value of a nonzero field element.**

The first lemma identifies the valuation in the completion with the multiplicative value corresponding to the negative of the finite order, which EvFLocalIdeleSelf uses to check that the remainder in the principal-idele factorization is a local unit away from the selected places. The second divides the element by the corresponding power of a uniformizer and uses unramifiedness to show that the remaining unit contributes 1.

Key declarations:

- `PI.AlgValsFin.W.valued_atFin`: The multiplicative valuation of a nonzero field element in its finite completion is the value-group element indexed by the negative of its additive order.

  ```lean
  theorem valued_atFin (v : HeightOneSpectrum (𝓞 L)) (k : Lˣ) :
      Valued.v ((atFin v k : (v.adicCompletion L)ˣ) : v.adicCompletion L) = WithZero.exp (-ordF v k) := …
  ```
- `PI.AlgValsFin.W.locVal`: At an unramified finite place, the local Hecke character value on a nonzero field element is its uniformizer value raised to the order of the element at that place.

  ```lean
  theorem locVal : LocVal L := …
  ```

### Formalism.PeriodIntegrals.UnitaryGroupMassFormula.NormOneCharacters.NormOneCharacterApply

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

**Constructs a character on invertible submodules with prescribed values on principal submodules generated by norm-one elements.**

Let c induce complex conjugation under every complex embedding of the number field. If the product of a chosen finite family of embeddings is trivial on roots of unity, its reciprocal descends to a character on principal submodules generated by elements u with u c(u) = 1. The kernel calculation uses Kronecker’s theorem, since an element in the kernel is an algebraic integer whose conjugates all have modulus one. The character then extends to the full group of invertible submodules over the ring of integers.

Key declarations:

- `PI.UnitaryGroupMassFormula.ChiExCM.kron_step`: A norm-one element that generates the unit ideal is a root of unity when c induces complex conjugation under every embedding.

  ```lean
  theorem kron_step (c : E →+* E) (hc : ∀ (φ : E →+* ℂ) (x : E), φ (c x) = (starRingEnd ℂ) (φ x))
      (u : E) (hu : u * c u = 1) (h1 : Submodule.span (𝓞 E) {u} = 1) : ∃ m : ℕ, 0 < m ∧ u ^ m = 1 := …
  ```
- `PI.UnitaryGroupMassFormula.ChiExCM.ker_le`: The reciprocal product of embeddings is trivial on the kernel of the principal-submodule map if the product is trivial on roots of unity.

  ```lean
  theorem ker_le (c : E →+* E) (hc : ∀ (φ : E →+* ℂ) (x : E), φ (c x) = (starRingEnd ℂ) (φ x))
      (S : Type) [Fintype S] (emb : S → E →+* ℂ) (hμ : ∀ x : E, (∃ m : ℕ, 0 < m ∧ x ^ m = 1) → ∏ s, emb s x = 1) :
      (iota c).ker ≤ (lam c S emb).ker := …
  ```
- `PI.UnitaryGroupMassFormula.ChiExCM.chi0`: Defines the character on the image of the principal-submodule map by descent through its kernel.

  ```lean
  noncomputable def chi0 (c : E →+* E) (S : Type) [Fintype S] (emb : S → E →+* ℂ)
      (hker : (iota c).ker ≤ (lam c S emb).ker) : (iota c).range →* ℂˣ :=
    (QuotientGroup.lift (iota c).ker (lam c S emb) hker).comp
      (QuotientGroup.quotientKerEquivRange (iota c)).symm.toMonoidHom
  ```
- `PI.UnitaryGroupMassFormula.ChiExCM.normOne_character_apply`: The descended character takes the principal submodule generated by a norm-one element to the reciprocal product of its chosen embedding values.

  ```lean
  theorem normOne_character_apply (c : E →+* E) (S : Type) [Fintype S] (emb : S → E →+* ℂ)
      (hker : (iota c).ker ≤ (lam c S emb).ker) (u : normOne c) :
      chi0 c S emb hker ⟨iota c u, MonoidHom.mem_range.2 ⟨u, rfl⟩⟩ = lam c S emb u := …
  ```
- `PI.UnitaryGroupMassFormula.ChiExCM.main`: Proves the existence of a function that is multiplicative on submodules whose c-conjugates are their inverses and realizes the prescribed values on norm-one principal submodules.

  ```lean
  theorem main : PI.ChiExCM := …
  ```

### Formalism.UnipotentAdelicQuotients.FinOrdValGen

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

**Defines idelic embeddings and formulates a generation statement for the finite-place values of finite-order Hecke characters.**

The idele group of a number field is the unit group of its adele ring, with field elements embedded diagonally and local multiplicative groups embedded by inserting their elements at a single finite place. FinOrdValGen states that every finite-place local value of a continuous finite-order Hecke character lies in the subgroup of ℂˣ generated by its values on chosen uniformizers at unramified finite places outside any prescribed finite set. DegOneIffSurjective uses the local embedding to compute its finite and archimedean projections.

Key declarations:

- `HeckeValGen.Ideles`: Identifies the idele group with the unit group of the adele ring.

  ```lean
  abbrev Ideles : Type := (AdeleRing (𝓞 L) L)ˣ
  ```
- `HeckeValGen.diagUnits`: Sends each nonzero field element to its diagonal idele.

  ```lean
  def diagUnits : Lˣ →* Ideles L :=
    Units.map (algebraMap L (AdeleRing (𝓞 L) L)).toMonoidHom
  ```
- `HeckeValGen.finiteSingle`: Sends an element of a finite completion to the finite adele with that component at the chosen place and 1 elsewhere.

  ```lean
  def finiteSingle (v : HeightOneSpectrum (𝓞 L)) :
      v.adicCompletion L →* FiniteAdeleRing (𝓞 L) L where
    toFun x := RestrictedProduct.mulSingle
      (fun w : HeightOneSpectrum (𝓞 L) => w.adicCompletionIntegers L) v x
    map_one' := RestrictedProduct.mulSingle_one _ _
    map_mul' x y := RestrictedProduct.mulSingle_mul _ _ x y
  ```
- `HeckeValGen.localIdele`: Sends a nonzero element of a finite completion to the idele with that component at the chosen place and 1 at every other place.

  ```lean
  def localIdele (v : HeightOneSpectrum (𝓞 L)) : (v.adicCompletion L)ˣ →* Ideles L :=
    Units.map
      { toFun := fun x => ((1 : InfiniteAdeleRing L), finiteSingle L v x)
        map_one' := Prod.ext rfl (map_one (finiteSingle L v))
        map_mul' := fun x y => Prod.ext (mul_one 1).symm (map_mul (finiteSingle L v) x y) }
  ```
- `HeckeValGen.FinOrdValGen`: Asserts that all finite-place local values of a continuous finite-order Hecke character belong to the subgroup generated by its values on chosen uniformizers at unramified finite places outside any given finite set.

  ```lean
  def FinOrdValGen : Prop := …
  ```

### Development.AbelianVarietyTheory.Proofs.DivisorProofs.CmAlgCharEqArgMulAbs

11 import steps from Main · 74 lines · Checked against the code · [Open in the Lean viewer](https://riemannhypothesissolved.com/file/Development.AbelianVarietyTheory.Proofs.DivisorProofs.CmAlgCharEqArgMulAbs)

**Proves that a CM infinity-type monomial factors into a phase product and a power of the absolute field norm.**

For nonzero k in a CM field, suppose the integer exponents n(φ) sum to w₀ on every conjugate pair. The product of φ(k) raised to n(φ) equals the phase product over the infinite places, with exponent 2n(φ) − w₀ for each chosen embedding φ, times the absolute field norm of k to the power w₀/2. The proof groups the embeddings into distinct conjugate pairs and applies the identity zᵃz̄ᵇ = (z/|z|)^(a−b)|z|^(a+b) at each place. CmAlgCharEqArgMulAbsStatement restates the resulting factorization.

Key declarations:

- `GlobalTheory.Div.CMAlgChar.algChar_eq_arg_mul_abs`: For a CM infinity type of common weight w₀, the embedding monomial at a nonzero field element is a product of phases times the absolute field norm to the power w₀/2.

  ```lean
  theorem algChar_eq_arg_mul_abs : ∀ (E : Type) [Field E] [NumberField E] [IsCMField E]
      (n : (E →+* ℂ) → ℤ) (w0 : ℤ),
      (∀ φ, n φ + n (NumberField.ComplexEmbedding.conjugate φ) = w0) → ∀ k : E, k ≠ 0 →
      (∏ w : InfinitePlace E, (w.embedding k / ((‖w.embedding k‖ : ℝ) : ℂ)) ^ (2 * n w.embedding - w0)) *
        ∏ φ : E →+* ℂ, ((‖φ k‖ : ℝ) : ℂ) ^ ((((w0 : ℝ) / 2 : ℝ)) : ℂ) = ∏ φ : E →+* ℂ, φ k ^ n φ := …
  ```
- `GlobalTheory.Div.CMAlgChar.place_factor`: For nonzero z and integers a and b, the monomial zᵃz̄ᵇ has phase factor (z/|z|)^(a−b) and absolute-value factor |z|^(a+b).

  ```lean
  theorem place_factor (z : ℂ) (hz : z ≠ 0) (a b w0 : ℤ) (hab : a + b = w0) :
      (z / ((‖z‖ : ℝ) : ℂ)) ^ (2 * a - w0) *
        (((‖z‖ : ℝ) : ℂ) ^ ((((w0 : ℝ) / 2 : ℝ)) : ℂ) *
          ((‖(starRingEnd ℂ) z‖ : ℝ) : ℂ) ^ ((((w0 : ℝ) / 2 : ℝ)) : ℂ)) =
        z ^ a * (starRingEnd ℂ z) ^ b := …
  ```
- `GlobalTheory.Div.CMAlgChar.fiber_eq`: The embeddings inducing an infinite place of a totally complex number field are its chosen representative and that representative’s complex conjugate.

  ```lean
  theorem fiber_eq {E : Type} [Field E] [NumberField E] [IsTotallyComplex E] [DecidableEq (E →+* ℂ)]
      [DecidableEq (InfinitePlace E)]
      (w : InfinitePlace E) :
      (Finset.univ.filter fun φ : E →+* ℂ => InfinitePlace.mk φ = w) =
        {w.embedding, ComplexEmbedding.conjugate w.embedding} := …
  ```
- `GlobalTheory.Div.CMAlgChar.embedding_ne_conjugate`: At an infinite place of a totally complex field, the chosen embedding differs from its complex conjugate.

  ```lean
  theorem embedding_ne_conjugate {E : Type} [Field E] [IsTotallyComplex E] (w : InfinitePlace E) :
      w.embedding ≠ ComplexEmbedding.conjugate w.embedding := …
  ```

### Development.AbelianVarietyTheory.Proofs.DivisorProofs.ProdArgRealUnitEqOne

11 import steps from Main · 76 lines · Checked against the code · [Open in the Lean viewer](https://riemannhypothesissolved.com/file/Development.AbelianVarietyTheory.Proofs.DivisorProofs.ProdArgRealUnitEqOne)

**Proves that a real-valued unit of a CM field congruent to 1 modulo an odd prime has sign product 1.**

Let u be a unit of a CM field, real under every complex embedding and congruent to 1 modulo an odd rational prime q. The absolute field norm of u is 1, so the product of its embedding values, taken once per infinite place, equals its sign product and lies in {−1, 1}. This product is congruent to 1 modulo q in the ring of algebraic integers, and the value −1 would force the rational number −2/q to be an integer. ProdArgRealUnitEqOneStatement restates the theorem.

Key declarations:

- `GlobalTheory.prod_arg_real_unit_eq_one`: For a unit of a CM field with real image under every complex embedding and congruent to 1 modulo an odd rational prime, the product of its signs over the infinite places is 1.

  ```lean
  theorem prod_arg_real_unit_eq_one (E : Type) [Field E] [NumberField E] [IsCMField E] (q : ℕ)
      (hq : q.Prime) (hq2 : 2 < q)
      (u : (𝓞 E)ˣ) (hu : (u : 𝓞 E) - 1 ∈ Ideal.span {((q : ℕ) : 𝓞 E)})
      (hreal : ∀ φ : E →+* ℂ, starRingEnd ℂ (φ ((u : 𝓞 E) : E)) = φ ((u : 𝓞 E) : E)) :
      ∏ w : InfinitePlace E, (w.embedding ((u : 𝓞 E) : E) /
        ((‖w.embedding ((u : 𝓞 E) : E)‖ : ℝ) : ℂ)) = 1 := …
  ```

### Development.AbelianVarietyTheory.Proofs.DivisorProofs.UnitRealOfCongrOne

11 import steps from Main · 67 lines · Checked against the code · [Open in the Lean viewer](https://riemannhypothesissolved.com/file/Development.AbelianVarietyTheory.Proofs.DivisorProofs.UnitRealOfCongrOne)

**Proves that units congruent to 1 modulo a prime coprime to the root-of-unity count of a CM field are fixed by conjugation.**

Let E be a CM field and q a rational prime coprime to the order M of its group of roots of unity. For a unit u congruent to 1 modulo q𝒪_E, the quotient of u by its CM conjugate is a root of unity congruent to 1 modulo q𝒪_E. If the quotient were nontrivial, its M-term geometric sum would vanish, and reduction modulo q followed by taking norms would force q to divide M. Thus u has real image under every complex embedding, the conclusion restated in UnitRealOfCongrOneStatement.

Key declarations:

- `GlobalTheory.UnitReal.unit_real_of_congr_one`: Every unit of a CM field E congruent to 1 modulo q𝒪_E has real image under every complex embedding when q is a rational prime coprime to the order of the group of roots of unity of E.

  ```lean
  theorem unit_real_of_congr_one : ∀ (E : Type) [Field E] [NumberField E] [IsCMField E] (q : ℕ), q.Prime →
      ¬ q ∣ Nat.card (Units.torsion E) → ∀ u : (𝓞 E)ˣ, (u : 𝓞 E) - 1 ∈ Ideal.span {((q : ℕ) : 𝓞 E)} →
      ∀ φ : E →+* ℂ, starRingEnd ℂ (φ ((u : 𝓞 E) : E)) = φ ((u : 𝓞 E) : E) := …
  ```

### Development.AbelianVarietyTheory.Proofs.IwasawaDecomposition.HeckeCharFiniteOrderOfTrivialAtInfinity

11 import steps from Main · 139 lines · Checked against the code · [Open in the Lean viewer](https://riemannhypothesissolved.com/file/Development.AbelianVarietyTheory.Proofs.IwasawaDecomposition.HeckeCharFiniteOrderOfTrivialAtInfinity)

**Proves that a Hecke character trivial on the archimedean diagonal has finite order.**

Density extends triviality on the archimedean diagonal to the full archimedean factor. At each ramified finite place, the order of a finite congruence quotient’s unit group gives an exponent that kills the character on local units. The product of these exponents gives a power trivial on the subgroup generated by unit ideles and principal ideles. Raising that power to the subgroup’s finite index makes the character trivial on all ideles. ExistsPowHeckeCharUnramifiedEverywhere uses the local exponent lemma to make a power unramified at every finite place.

Key declarations:

- `GlobalTheory.Mem.FinOrder.exists_pow_congr`: For each finite place and congruence level, a single positive exponent sends every local unit to one modulo the prescribed prime power.

  ```lean
  theorem exists_pow_congr (v : HeightOneSpectrum (𝓞 L)) (n : ℕ) :
      ∃ m : ℕ, 0 < m ∧ ∀ x : (v.adicCompletion L)ˣ, IsUnitAt v x →
        Valued.v (((x ^ m : (v.adicCompletion L)ˣ) : v.adicCompletion L) - 1) ≤ WithZero.exp (-(n : ℤ)) := …
  ```
- `GlobalTheory.Mem.FinOrder.triv_inf`: A Hecke character trivial on the archimedean diagonal of the field’s multiplicative group is trivial on the whole archimedean factor.

  ```lean
  theorem triv_inf (χ : HChar L) (h : ∀ k, χ.inf k = 1) (u : ∀ w : InfinitePlace L, (w.Completion)ˣ) :
      χ.1 (∏ w, infIdele L w (u w)) = 1 := …
  ```
- `GlobalTheory.Mem.FinOrder.exists_decomp`: Every idele is the product of its single-place archimedean factors and its finite part.

  ```lean
  theorem exists_decomp (a : Ideles L) :
      ∃ u : ∀ w : InfinitePlace L, (w.Completion)ˣ, a = (∏ w, infIdele L w (u w)) * finPartI L a := …
  ```
- `GlobalTheory.Mem.FinOrder.finite_order_of_inf_eq_one`: A Hecke character whose archimedean component is trivial on the diagonal image of the field’s multiplicative group has a positive power equal to the trivial character.

  ```lean
  theorem finite_order_of_inf_eq_one : ∀ (L : Type) [Field L] [NumberField L] (χ : HChar L),
      (∀ k, χ.inf k = 1) → ∃ n : ℕ, 0 < n ∧ χ.OrderDvd n := …
  ```

### Development.AbelianVarietyTheory.Proofs.SatakeParameters.ExistsWeakApproxUnitFinitePlace

11 import steps from Main · 36 lines · Checked against the code · [Open in the Lean viewer](https://riemannhypothesissolved.com/file/Development.AbelianVarietyTheory.Proofs.SatakeParameters.ExistsWeakApproxUnitFinitePlace)

**Proves multiplicative weak approximation at a chosen finite place, with simultaneous approximation to 1 at other specified places.**

Given a nonzero local target x at a finite place w and an integer n ≥ 0, the theorem finds a nonzero field element y for which y/x − 1 has additive valuation at least n at w and y − 1 has additive valuation at least n at every other place in a prescribed finite set. The proof applies additive weak approximation with target x at w and target 1 elsewhere, scaling the error bound at w by the local absolute value of x to control the relative error.

Key declarations:

- `GlobalTheory.HkFin.exists_weak_approx_unit`: For any prescribed depth n, a nonzero field element approximates a given nonzero target multiplicatively at one finite place and is congruent to 1 modulo the nth power of the local maximal ideal at every other specified finite place.

  ```lean
  theorem exists_weak_approx_unit (E : Type) [Field E] [NumberField E] (S : Finset (HeightOneSpectrum (𝓞 E)))
      (w : HeightOneSpectrum (𝓞 E)) (x : (w.adicCompletion E)ˣ) (n : ℕ) :
      ∃ y : E, y ≠ 0 ∧ Valued.v ((y : w.adicCompletion E) * ((x⁻¹ : (w.adicCompletion E)ˣ) : w.adicCompletion E) - 1)
        ≤ WithZero.exp (-(n : ℤ)) ∧ ∀ v ∈ S, v ≠ w → v.valuation E (y - 1) ≤ WithZero.exp (-(n : ℤ)) := …
  ```

### Formalism.LocalToGlobal.NumberFieldFamilies.IdTransSM

11 import steps from Main · 213 lines · Checked against the code · [Open in the Lean viewer](https://riemannhypothesissolved.com/file/Formalism.LocalToGlobal.NumberFieldFamilies.IdTransSM)

**Proves that every continuous complex character of a number field’s ideles is unramified at all but finitely many finite places.**

The restricted product topology puts every local unit and its inverse, viewed as ideles, in any prescribed identity neighborhood outside finitely many places. Continuity then places all integer powers of their character values in the open unit disk centered at 1, forcing the values to equal 1. The module defines the finite and infinite idele projections and states a character-triviality criterion as a proposition. The Hecke character specialization is used to show that only finitely many finite local factors on a principal idele differ from 1.

Key declarations:

- `Formalism.L2.Fam.IdTrans.unrAE`: Every continuous character from the ideles to the nonzero complex numbers is trivial on the local unit groups at all but finitely many finite places.

  ```lean
  theorem unrAE {L : Type} [Field L] [NumberField L] : UnrAE L := …
  ```
- `Formalism.L2.Fam.IdTrans.unrAe`: Every Hecke character is unramified at all but finitely many finite places.

  ```lean
  theorem unrAe {L : Type} [Field L] [NumberField L] (χ : HChar L) : ∀ᶠ v in cofinite, χ.UnrAt v := …
  ```
- `Formalism.L2.Fam.IdTrans.single_mem_nhds`: Every neighborhood of 1 in the adele ring contains, outside finitely many places, every adele with an integral entry at one such place and 1 elsewhere.

  ```lean
  theorem single_mem_nhds {S : Set (AdeleRing (𝓞 L) L)} (hS : S ∈ 𝓝 (1 : AdeleRing (𝓞 L) L)) :
      ∃ I : Set (HeightOneSpectrum (𝓞 L)), I.Finite ∧ ∀ v ∉ I, ∀ (x : v.adicCompletion L) (_hx : x ∈ v.adicCompletionIntegers L),
        (((1 : InfiniteAdeleRing L), finiteSingle L v x) : AdeleRing (𝓞 L) L) ∈ S := …
  ```
- `Formalism.L2.Fam.IdTrans.eq_one_of_pow`: A nonzero complex number equals 1 if all its integer powers lie in the open unit disk centered at 1.

  ```lean
  theorem eq_one_of_pow {a : ℂ} (h : ∀ n : ℤ, ‖a ^ n - 1‖ < 1) (ha : a ≠ 0) : a = 1 := …
  ```
- `Formalism.L2.Fam.IdTrans.UnitsTrivP`: It names the proposition that a continuous character unramified outside a finite set of places is trivial on ideles with unit components at all finite places and component 1 at infinity and throughout that set.

  ```lean
  def UnitsTrivP : Prop :=
    ∀ (χ : Ideles L →* ℂˣ), Continuous χ → ∀ (T : Set (HeightOneSpectrum (𝓞 L))), T.Finite →
      (∀ v ∉ T, ∀ x : (v.adicCompletion L)ˣ, IsUnitAt v x → χ (localIdele L v x) = 1) →
      ∀ u : Ideles L, (u : AdeleRing (𝓞 L) L).1 = 1 → (∀ v, IsUnitAt v (compAt v u)) → (∀ v ∈ T, compAt v u = 1) → χ u = 1
  ```

### Formalism.PeriodIntegrals.ChiExCM

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

**Defines an existence proposition for a multiplicative function on fractional ideals whose conjugates are their inverses.**

Let E be a number field with an endomorphism c inducing complex conjugation under every complex embedding, and let a finite family of embeddings have product 1 on the roots of unity of E. The proposition asserts that a complex-valued function on all 𝒪_E-submodules of E is multiplicative on pairs of ideals satisfying A c(A) = 𝒪_E and takes (z) to the reciprocal of the product of the chosen embeddings of z whenever z c(z) = 1. The direct importer NormOneCharacterApply proves the proposition.

Key declarations:

- `PI.ChiExCM`: Asserts that a finite family of embeddings whose product is trivial on roots of unity prescribes reciprocal product values on norm-one principal ideals for a function multiplicative on ideals with conjugate inverse.

  ```lean
  def ChiExCM : Prop :=
    ∀ (E : Type) [Field E] [NumberField E] (c : E →+* E), (∀ (φ : E →+* ℂ) (x : E), φ (c x) = (starRingEnd ℂ) (φ x)) →
      ∀ (S : Type) [Fintype S] (emb : S → E →+* ℂ), (∀ x : E, (∃ m : ℕ, 0 < m ∧ x ^ m = 1) → ∏ s, emb s x = 1) →
      ∃ χ : Submodule (𝓞 E) E → ℂ,
        (∀ 𝔞 𝔟 : Submodule (𝓞 E) E, (∃ 𝔞' : Submodule (𝓞 E) E, (∀ x, x ∈ 𝔞' ↔ c x ∈ 𝔞) ∧ 𝔞 * 𝔞' = 1) →
          (∃ 𝔟' : Submodule (𝓞 E) E, (∀ x, x ∈ 𝔟' ↔ c x ∈ 𝔟) ∧ 𝔟 * 𝔟' = 1) → χ (𝔞 * 𝔟) = χ 𝔞 * χ 𝔟) ∧
        ∀ z : E, z * c z = 1 → χ (Submodule.span (𝓞 E) {z}) = ∏ s, (emb s z)⁻¹
  ```

### Formalism.PeriodIntegrals.OrbitalBoundsConclusion.CharExtend

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

**Exports the theorem that ℂˣ-valued characters of subgroups of commutative groups extend to the whole group.**

The file packages the character extension result as PI.character_extension_exists. For a subgroup H of a commutative group G, every group homomorphism from H to the nonzero complex numbers extends to a homomorphism from G.

Key declarations:

- `PI.character_extension_exists`: Every homomorphism from a subgroup of a commutative group to the multiplicative group of nonzero complex numbers extends to the whole group.

  ```lean
  theorem character_extension_exists : PI.CharExtend := …
  ```

### Formalism.PeriodIntegrals.UnitaryGroupMassFormula.CharacterExtension.UnitsComplexExistsZpow

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

**Proves that every character from a subgroup of an abelian group to ℂˣ extends to the whole group.**

Algebraic closedness supplies a nonzero |n|-th root of each element of ℂˣ for every nonzero integer n, and inversion handles negative n. Choosing these roots supplies division by integers on the additive ℤ-module of ℂˣ. The extension theorem applies the Baer extension property of divisible ℤ-modules to the subgroup inclusion and translates the resulting homomorphism back to multiplicative notation.

Key declarations:

- `PI.CharExtendWork.units_complex_exists_zpow`: For every a in ℂˣ and every nonzero integer n, some x in ℂˣ satisfies xⁿ = a.

  ```lean
  theorem units_complex_exists_zpow (a : ℂˣ) (n : ℤ) (hn : n ≠ 0) : ∃ x : ℂˣ, x ^ n = a := …
  ```
- `PI.CharExtendWork.divisibleUnitsComplex`: Supplies the DivisibleBy structure on the existing additive ℤ-module of ℂˣ by choosing roots.

  ```lean
  noncomputable def divisibleUnitsComplex : DivisibleBy (Additive ℂˣ) ℤ where
    div a n := if h : n = 0 then 0 else
      Additive.ofMul (Classical.choose (units_complex_exists_zpow a.toMul n h))
    div_zero a := by simp
    div_cancel {n} a hn := by
      rw [dif_neg hn, ← ofMul_zpow, Classical.choose_spec (units_complex_exists_zpow a.toMul n hn)]
      rfl
  ```
- `PI.CharExtendWork.charExtend_main`: Every homomorphism from a subgroup of an abelian group to ℂˣ extends to a homomorphism on the whole group.

  ```lean
  theorem charExtend_main : PI.CharExtend := …
  ```

### Formalism.LocalToGlobal.UnitaryNorms.CharExGen

13 import steps from Main · 107 lines · Checked against the code · [Open in the Lean viewer](https://riemannhypothesissolved.com/file/Formalism.LocalToGlobal.UnitaryNorms.CharExGen)

**Proves a conditional extension theorem for Hecke characters and reduces unitarity to ideles that are units at every finite place.**

Assuming openness of the idele subgroup of finite-place units and algebraic extension of complex characters from subgroups, the extension theorem passes to the idele class group and recovers continuity by agreement near the identity. Raising an idele to the order of the ideal class group puts it in the unit subgroup up to a diagonal factor, so modulus one on that subgroup implies global unitarity for a Hecke character. CharExHost uses the extension theorem to construct characters with prescribed finite and archimedean restrictions.

Key declarations:

- `Formalism.L2.Host.CharEx.unitIdeles`: Defines the subgroup of ideles whose component is a local unit at every finite place.

  ```lean
  def unitIdeles : Subgroup (Ideles L)
  ```
- `Formalism.L2.Host.CharEx.DivExtC`: States that every homomorphism from a subgroup of an abelian group into ℂ× extends to the whole group.

  ```lean
  def DivExtC : Prop :=
    ∀ (G : Type) [CommGroup G] (H : Subgroup G) (g : H →* ℂˣ), ∃ g' : G →* ℂˣ, ∀ x : H, g' x = g x
  ```
- `Formalism.L2.Host.CharEx.classExp`: Proves that a fixed positive power of every idele belongs to the unit subgroup after multiplication by a suitable diagonal field element.

  ```lean
  theorem classExp : ClassExp L := …
  ```
- `Formalism.L2.Host.CharEx.exists_hchar_eq_on`: Under the openness and extension hypotheses, produces a Hecke character agreeing with a continuous idele character on a subgroup containing the unit ideles, provided that the character is trivial on the subgroup’s intersection with the diagonal field group.

  ```lean
  theorem exists_hchar_eq_on (hD : DivExtC) (hO : OpenUnits L) (M : Subgroup (Ideles L)) (hM : unitIdeles L ≤ M)
      (Φ : Ideles L →* ℂˣ) (hΦ : Continuous Φ) (h1 : ∀ k : Lˣ, diagUnits L k ∈ M → Φ (diagUnits L k) = 1) :
      ∃ χ : HChar L, ∀ m ∈ M, χ.1 m = Φ m := …
  ```
- `Formalism.L2.Host.CharEx.isUnitary_of_unitIdeles`: Proves that a Hecke character of modulus one on the unit ideles has modulus one on every idele.

  ```lean
  theorem isUnitary_of_unitIdeles (χ : HChar L) (h : ∀ u ∈ unitIdeles L, ‖((χ.1 u : ℂˣ) : ℂ)‖ = 1) : χ.IsUnitary := …
  ```

### Development.AbelianVarietyTheory.Proofs.IwasawaDecomposition.EtaTildeIsUnitArgAtCmTypePlacesStatement

14 import steps from Main · 10 lines · Checked against the code · [Open in the Lean viewer](https://riemannhypothesissolved.com/file/Development.AbelianVarietyTheory.Proofs.IwasawaDecomposition.EtaTildeIsUnitArgAtCmTypePlacesStatement)

**Re-exports the unit-phase formula for the eta-type Hecke character at the places of the host CM type.**

At each place selected by the host CM type, the local component of an eta-type Hecke character takes the value f(z)/|f(z)| on a nonzero element z of the completion, where f continuously extends the chosen embedding. ExistsTwistRingsCharactersClassGroups invokes this formula in its eta_unitArg theorem.

Key declarations:

- `GlobalTheory.T.etaTilde_isUnitArg_at_cmType_places`: For every embedding in the host CM type, the local character attached to an eta-type Hecke character is the unit phase under the extended embedding.

  ```lean
  set_option maxHeartbeats 1000000 in
  theorem _root_.GlobalTheory.T.etaTilde_isUnitArg_at_cmType_places : ∀ {R : Ranks} (H : Host R) (χ : HChar H.E), IsEtaT H χ → ∀ (h : Formalism.L2.NC.HC H.E), h.χ = (χ : Ideles H.E →* ℂˣ) → ∀ (g : R.Psi), h.IsUnitArg (H.emb (g : R.GG)) := …
  ```

### Development.AbelianVarietyTheory.Proofs.IwasawaDecomposition.HeckeCharFiniteOrderOfTrivialAtInfinityStatement

14 import steps from Main · 10 lines · Checked against the code · [Open in the Lean viewer](https://riemannhypothesissolved.com/file/Development.AbelianVarietyTheory.Proofs.IwasawaDecomposition.HeckeCharFiniteOrderOfTrivialAtInfinityStatement)

**Re-exports the finite-order theorem for Hecke characters trivial on the archimedean diagonal.**

If the archimedean component of a Hecke character is trivial on the diagonal image of the field’s multiplicative group, some positive power of the character is trivial. HostDeltaCharacterInertialOrderFifteenExists uses this theorem to certify that the constructed delta character has finite order.

Key declarations:

- `GlobalTheory.T.heckeChar_finiteOrder_of_trivial_at_infinity`: A Hecke character of a number field has finite order if it takes the value one on the archimedean part of every principal idele.

  ```lean
  set_option maxHeartbeats 1000000 in
  theorem _root_.GlobalTheory.T.heckeChar_finiteOrder_of_trivial_at_infinity : ∀ (L : Type) [Field L] [NumberField L] (χ : HChar L), (∀ k, χ.inf k = 1) → ∃ n : ℕ, 0 < n ∧ χ.OrderDvd n := …
  ```

### Development.AbelianVarietyTheory.Proofs.SatakeParameters.ContinuousIdeleCharLocalFactorizationStatement

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

**Restates the local factorization theorem for continuous characters of the ideles of a number field.**

The sole declaration invokes the imported factorization theorem to assert that every continuous idele character with values in the nonzero complex numbers is unramified at almost all finite places and trivial on a sufficiently deep principal unit subgroup at each finite place. Its value on an idele is the archimedean factor times the product over any finite set of finite places containing all nontrivial finite local factors of that idele.

Key declarations:

- `GlobalTheory.T.continuous_ideleChar_local_factorization`: A continuous complex idele character is unramified at almost all finite places, is trivial on some principal unit subgroup at each finite place, and satisfies the local product formula over every finite set of finite places containing the nontrivial finite factors of the given idele.

  ```lean
  set_option maxHeartbeats 1000000 in
  theorem _root_.GlobalTheory.T.continuous_ideleChar_local_factorization : ∀ (L : Type) [Field L] [NumberField L] (χ : Ideles L →* ℂˣ), Continuous χ → (∀ᶠ v in Filter.cofinite, UnrAt χ v) ∧ (∀ v : HeightOneSpectrum (𝓞 L), ∃ n : ℕ, ∀ x : (v.adicCompletion L)ˣ, Valued.v ((x : v.adicCompletion L) - 1) ≤ WithZero.exp (-(n : ℤ)) → χ (localIdele L v x) = 1) ∧ ∀ (x : Ideles L) (S : Finset (HeightOneSpectrum (𝓞 L))), (∀ v ∉ S, χ (localIdele L v (finPart L v x)) = 1) → χ x = χ (infIdele L (infPart L x)) * ∏ v ∈ S, χ (localIdele L v (finPart L v x)) := …
  ```

### Development.AbelianVarietyTheory.Proofs.SatakeParameters.ExistsWeakApproxUnitFinitePlaceStatement

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

**Restates multiplicative weak approximation at a finite place with simultaneous approximation to 1 at other specified places.**

The sole declaration follows directly from the imported weak approximation theorem. Given a finite set S of finite places of a number field, a finite place w, a nonzero target x in the completion at w, and n ≥ 0, it gives a nonzero field element y such that y/x − 1 has normalized additive valuation at least n at w and y − 1 has normalized additive valuation at least n at each place in S other than w.

Key declarations:

- `GlobalTheory.T.exists_weak_approx_unit_finite_place`: For any prescribed depth n, a nonzero field element has relative error of valuation at least n with respect to a given nonzero local target at one finite place and is congruent to 1 modulo the nth power of the local maximal ideal at every other specified place.

  ```lean
  set_option maxHeartbeats 1000000 in
  theorem _root_.GlobalTheory.T.exists_weak_approx_unit_finite_place : ∀ (E : Type) [Field E] [NumberField E] (S : Finset (HeightOneSpectrum (𝓞 E))) (w : HeightOneSpectrum (𝓞 E)) (x : (w.adicCompletion E)ˣ) (n : ℕ), ∃ y : E, y ≠ 0 ∧ Valued.v ((y : w.adicCompletion E) * ((x⁻¹ : (w.adicCompletion E)ˣ) : w.adicCompletion E) - 1) ≤ WithZero.exp (-(n : ℤ)) ∧ ∀ v ∈ S, v ≠ w → v.valuation E (y - 1) ≤ WithZero.exp (-(n : ℤ)) := …
  ```

### Development.AbelianVarietyTheory.Proofs.TwistedOperators.HeckeCharIsUnitaryOfUnitaryInfinityType

16 import steps from Main · 44 lines · Checked against the code · [Open in the Lean viewer](https://riemannhypothesissolved.com/file/Development.AbelianVarietyTheory.Proofs.TwistedOperators.HeckeCharIsUnitaryOfUnitaryInfinityType)

**Proves that a Hecke character with unitary infinity type is unitary on the entire idele group.**

The prescribed product of integer powers of normalized complex embeddings has modulus one on the archimedean diagonal image of the field’s multiplicative group. Density and continuity extend this to all archimedean ideles. A positive power of any finite idele is a product of a finite unit idele and a principal idele, up to an archimedean correction. The character is trivial on principal ideles and has modulus one on the finite unit and the correction, so both the power and the original finite idele have character values of modulus one. The Hecke L-function nonvanishing argument in HeckeCharacterUnramifiedExponent uses this criterion to supply unitarity.

Key declarations:

- `GlobalTheory.HeckeUnitaryInf.isUnitary_of_hasInf`: A Hecke character is unitary if its archimedean value on each embedded nonzero field element k is a finite product of factors φ(k)/|φ(k)| raised to fixed integer powers, where φ ranges over a finite family of complex embeddings.

  ```lean
  theorem isUnitary_of_hasInf : ∀ (L : Type) [Field L] [NumberField L] (χ : Formalism.L2.Host.HChar L) {I : Type} [Fintype I]
      (φ : I → L →+* ℂ) (n : I → ℤ), χ.HasInf φ n → χ.IsUnitary := …
  ```

### Development.AbelianVarietyTheory.Proofs.TwistedOperators.HeckeCharIsUnitaryOfUnitaryInfinityTypeStatement

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

**Restates the theorem that a Hecke character with unitary infinity type has modulus one on all ideles.**

The sole declaration restates an imported unitarity criterion whose hypothesis expresses the archimedean values on embedded nonzero field elements as products of fixed integer powers of normalized complex embeddings. The auxiliary character test-grid proof applies the criterion to establish unitarity of each grid character from its prescribed infinity type.

Key declarations:

- `GlobalTheory.T.heckeChar_isUnitary_of_unitary_infinityType`: A Hecke character has modulus one on every idele if its archimedean value on each embedded nonzero field element k is a product of fixed integer powers of φ(k)/|φ(k)| over a finite family of complex embeddings φ.

  ```lean
  set_option maxHeartbeats 1000000 in
  theorem _root_.GlobalTheory.T.heckeChar_isUnitary_of_unitary_infinityType : ∀ (L : Type) [Field L] [NumberField L] (χ : Formalism.L2.Host.HChar L) {I : Type} [Fintype I] (φ : I → L →+* ℂ) (n : I → ℤ), χ.HasInf φ n → χ.IsUnitary := …
  ```

### Formalism.LocalToGlobal.UnitaryNorms.CharExCol

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

**Constructs unitary Hecke characters of types η and μ₀ from idele characters with prescribed local behavior.**

The η and μ₀ constructions extend idele character data while preserving the required values on unit ideles and on the embedded base-field ideles. The η construction multiplies unramified finite signs by an archimedean character and checks triviality on diagonal elements in unitF by reducing to base-field elements and one specified extra factor. The μ₀ construction preserves the prescribed infinity exponents, tame ramification, and inverse residue characters at the designated places. CharExVal uses the separate AlgValsFin predicate to state that norm-twisted unramified values lie in a single number field when the twisted infinity type is algebraic.

Key declarations:

- `Formalism.L2.Host.CharEx.etaTExistsC_of`: Under the character-extension and openness hypotheses, obtains a unitary Hecke character unramified at every finite place, with the prescribed base-field signs and infinity exponents all equal to one, from an idele character satisfying EtaTQc.

  ```lean
  theorem etaTExistsC_of (hD : DivExtC) (hO : OpenUnits X.E) {Φ : Ideles X.E →* ℂˣ} (hq : EtaTQc σ₀ Φ) :
      ∃ χ : HChar X.E, Col.IsEtaT X σ₀ χ := …
  ```
- `Formalism.L2.Host.CharEx.etaTExistsC_of_leaves'`: Obtains a Hecke character of type η from an archimedean character and explicit finite, archimedean, and diagonal compatibility conditions.

  ```lean
  theorem etaTExistsC_of_leaves' (hI : InfChar (X.embC σ₀) (fun _ => (1 : ℤ)))
      (hF : EtaFinCheckC X) (hIn : EtaInfCheckC σ₀) (s0 : X.E) (h1 : GlobFormC X s0) (h2 : EtaRecFC σ₀)
      (h3 : EtaSqrtDC σ₀ s0) : ∃ χ : HChar X.E, Col.IsEtaT X σ₀ χ := …
  ```
- `Formalism.L2.Host.CharEx.MuZeroQuasiCharacterCondition`: Specifies continuity, modulus one on unit ideles, base-field triviality, integral infinity exponents nτ = −2eτ, unramifiedness away from primes dividing the designated gᵢ, tame behavior at every finite place, inverse residue-character values at the selected places, and diagonal compatibility for a candidate μ₀ idele character.

  ```lean
  structure MuZeroQuasiCharacterCondition {Pr : Primes X} {m : ℕ} (Ch : Chars X Pr m) (e : X.Tau → ℚ) (j : Fin m) (Φ : Ideles X.E →* ℂˣ) : Prop where
    cont : Continuous Φ
    unitU : ∀ u ∈ unitIdeles X.E, ‖((Φ u : ℂˣ) : ℂ)‖ = 1
    trivFin : ∀ v k, Φ (aF X.F v k) = 1
    trivInf : ∀ w k, Φ (aFi X.F w k) = 1
    inf : ∃ n : X.Tau → ℤ, (∀ τ, (n τ : ℚ) = 2 * (-e τ)) ∧ ∀ k : X.Eˣ, ((Φ (infDiag k) : ℂˣ) : ℂ) =
      ∏ τ, (X.embC σ₀ τ (k : X.E) / ((‖X.embC σ₀ τ (k : X.E)‖ : ℝ) : ℂ)) ^ n τ
    unr : ∀ v : HeightOneSpectrum (𝓞 X.E), (∀ i, ((Pr.g i : ℕ) : 𝓞 X.E) ∉ v.asIdeal) → ∀ x, IsUnitAt v x →
      Φ (localIdele X.E v x) = 1
    tame : ∀ v x, IsUnitAt v x → Valued.v ((x : v.adicCompletion X.E) - 1) ≤ WithZero.exp (-((1 : ℕ) : ℤ)) →
      Φ (localIdele X.E v x) = 1
    atg : ∀ (w : {w // w ∈ Pr.vGs}) (x : X.Eˣ) (y : 𝓞 X.E) (c : (𝓞 X.E ⧸ w.1.asIdeal)ˣ), (x : X.E) = (y : X.E) →
      (c : 𝓞 X.E ⧸ w.1.asIdeal) = Ideal.Quotient.mk w.1.asIdeal y →
      ((Φ (localIdele X.E w.1 (atFin w.1 x)) : ℂˣ) : ℂ) = σ₀ (((Ch.chi j w c)⁻¹ : X.Kˣ) : X.K)
    glob : ∀ k : X.Eˣ, diagUnits X.E k ∈ unitF (L := X.E) X.F → Φ (diagUnits X.E k) = 1
  ```
- `Formalism.L2.Host.CharEx.mu0ExistsC_of'`: Produces a unitary Hecke character of type μ₀ from an idele character satisfying the stated compatibility conditions.

  ```lean
  theorem mu0ExistsC_of' {Pr : Primes X} {m : ℕ} {Ch : Chars X Pr m} {e : X.Tau → ℚ} {j : Fin m} {Φ : Ideles X.E →* ℂˣ}
      (hq : MuZeroQuasiCharacterCondition σ₀ Ch e j Φ) : ∃ χ : HChar X.E, Col.IsMu0 Ch σ₀ e j χ := …
  ```
- `Formalism.L2.Host.CharEx.AlgValsFin`: States that if a norm twist makes the infinity type a product of integral powers of embeddings, the corresponding twisted uniformizer values at all unramified places lie in a common finite extension of ℚ inside ℂ.

  ```lean
  def AlgValsFin (L : Type) [Field L] [NumberField L] : Prop :=
    ∀ (χ : HChar L) (s : ℝ) (m : (L →+* ℂ) → ℤ),
      (∀ k : Lˣ, ((χ.inf k : ℂˣ) : ℂ) * ∏ φ : L →+* ℂ, ((‖φ (k : L)‖ : ℝ) : ℂ) ^ (s : ℂ) = ∏ φ : L →+* ℂ, φ (k : L) ^ m φ) →
      ∃ C : Subfield ℂ, FiniteDimensional ℚ C ∧ χ.ValuesIn s C.subtype
  ```

### Formalism.LocalToGlobal.UnitaryNorms.CharExEta

18 import steps from Main · 79 lines · Checked against the code · [Open in the Lean viewer](https://riemannhypothesissolved.com/file/Formalism.LocalToGlobal.UnitaryNorms.CharExEta)

**Constructs the unramified idele factor and specifies the compatibility conditions for an η-character.**

Prescribed nonzero complex values at finite places define an idele homomorphism by a finite product of valuation powers. It is trivial on unit ideles and continuous when that subgroup is open. For η, the module pairs finite signs with normalized archimedean embedding values and specifies the required base-field restrictions and diagonal triviality, with separate tests on base-field elements and a distinguished square root. CharExCol uses the valuation product and the archimedean character condition to construct an η-character under compatibility hypotheses.

Key declarations:

- `Formalism.L2.Host.CharEx.unrQ`: Sends an idele to the product of the prescribed finite-place values raised to the corresponding component valuations.

  ```lean
  def unrQ (c : HeightOneSpectrum (𝓞 L) → ℂˣ) : Ideles L →* ℂˣ where
    toFun x := ∏ᶠ v, c v ^ ordAt L v x
    map_one' := by simp only [ordAt_one, zpow_zero, finprod_one]
    map_mul' x y := by
      simp only [ordAt_mul, zpow_add]
      exact finprod_mul_distrib (mulSupport_ord_finite L c x) (mulSupport_ord_finite L c y)
  ```
- `Formalism.L2.Host.CharEx.InfChar`: Asserts the existence of a continuous unitary idele character trivial on each finite local multiplicative group whose values on diagonal elements and their components at a finite set of infinite places are products of normalized embedding values to integer powers nᵢ, restricted in the latter case to embeddings inducing places in that set.

  ```lean
  def InfChar {I : Type} [Fintype I] (φ : I → L →+* ℂ) (n : I → ℤ) : Prop :=
    ∃ Φ : Ideles L →* ℂˣ, Continuous Φ ∧ (∀ x, ‖((Φ x : ℂˣ) : ℂ)‖ = 1) ∧ (∀ v x, Φ (localIdele L v x) = 1) ∧
      (∀ k : Lˣ, ((Φ (diagUnits L k) : ℂˣ) : ℂ) = ∏ i, (φ i (k : L) / ((‖φ i (k : L)‖ : ℝ) : ℂ)) ^ n i) ∧
      ∀ (S : Finset (InfinitePlace L)) (k : Lˣ), ((Φ (∏ w ∈ S, infIdele L w (atInf w k)) : ℂˣ) : ℂ) =
        ∏ i ∈ Finset.univ.filter (fun i => InfinitePlace.mk (φ i) ∈ S), (φ i (k : L) / ((‖φ i (k : L)‖ : ℝ) : ℂ)) ^ n i
  ```
- `Formalism.L2.Host.CharEx.cEta`: Assigns a finite place the sign −1 if it is the unique place above its base-field place, and +1 otherwise.

  ```lean
  def cEta (P : HeightOneSpectrum (𝓞 H.E)) : ℂˣ :=
    if (aboveF (L := H.E) H.F (P.under (𝓞 H.F))).card = 1 then -1 else 1
  ```
- `Formalism.L2.Host.CharEx.etaVal`: Multiplies the finite sign factor on a diagonal field element by the product of the phases of its selected complex embeddings.

  ```lean
  def etaVal (k : H.Eˣ) : ℂ :=
    ((unrQ H.E (cEta H) (diagUnits H.E k) : ℂˣ) : ℂ) *
      ∏ τ, (embPsi H τ (k : H.E) / ((‖embPsi H τ (k : H.E)‖ : ℝ) : ℂ)) ^ (1 : ℤ)
  ```
- `Formalism.L2.Host.CharEx.GlobForm`: Requires each field element whose diagonal idele lies in the subgroup generated by unit ideles and embedded base-field ideles to be a base-field element or a base-field multiple of the distinguished square root.

  ```lean
  def GlobForm : Prop := ∀ k : H.Eˣ, diagUnits H.E k ∈ unitF (L := H.E) H.F →
    ∃ a : H.Fˣ, k = upF H.F a ∨ ∃ s : H.Eˣ, (s : H.E) = H.sqrtMinusD ∧ k = s * upF H.F a
  ```

### Formalism.PeriodIntegrals.OrbitalBoundsConclusion.IdeleUnitsOpen

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

**Proves that the unit ideles of a number field form an open subgroup of its idele group.**

The theorem IdeleUnitsOpen restates the imported openness result PI.IdeleUnitsOpenW.openUnits for unit ideles. For a number field, the subgroup consists of ideles whose finite components are local units at every nonzero prime, equivalently have multiplicative valuation 1.

Key declarations:

- `IdeleUnitsOpen`: For every number field, the subgroup of unit ideles is open in the idele group.

  ```lean
  theorem IdeleUnitsOpen (L : Type) [Field L] [NumberField L] : Formalism.L2.Host.CharEx.OpenUnits L := …
  ```

### Formalism.LocalToGlobal.UnitaryNorms.CharExHost

19 import steps from Main · 222 lines · Checked against the code · [Open in the Lean viewer](https://riemannhypothesissolved.com/file/Formalism.LocalToGlobal.UnitaryNorms.CharExHost)

**Proves conditional existence of η, μ₀, and δ Hecke characters with prescribed local behavior.**

The input is a continuous homomorphism on all ideles whose restriction to the subgroup generated by unit ideles and placewise base-field images descends modulo diagonal field units by diagonal compatibility. Algebraic character extension and openness of the unit subgroup give a Hecke character agreeing there, preserving the specified local and archimedean data. The class group exponent promotes modulus one on unit ideles to global unitarity for η and μ₀, and a bounded order there to finite order for δ. CharExEta uses the same subgroup to formulate diagonal compatibility for η.

Key declarations:

- `Formalism.L2.Host.CharEx.unitF`: Defines the subgroup generated by unit ideles and the images of base-field elements inserted simultaneously at all places above a single finite or infinite base-field place.

  ```lean
  def unitF : Subgroup (Ideles L) := unitIdeles L ⊔ idF (L := L) F
  ```
- `Formalism.L2.Host.CharEx.resFin_eq`: Identifies the finite-place restriction of a Hecke character on a base-field element with evaluation on the idele formed from its components at the places above that base-field place.

  ```lean
  theorem resFin_eq (χ : HChar L) (v : HeightOneSpectrum (𝓞 F)) (k : Fˣ) : χ.resFin v k = χ.1 (aF F v k) := …
  ```
- `Formalism.L2.Host.CharEx.etaTExists_of`: Under the extension and openness hypotheses, obtains a unitary Hecke character unramified at every finite place with prescribed base-field signs and infinity exponents all equal to one from a candidate satisfying EtaTQ.

  ```lean
  theorem etaTExists_of (hD : DivExtC) (hO : OpenUnits H.E) {Φ : Ideles H.E →* ℂˣ} (hq : EtaTQ (H := H) Φ) :
      EtaTExists H := …
  ```
- `Formalism.L2.Host.CharEx.mu0Exists_of`: Under the extension and openness hypotheses, obtains from a candidate satisfying Mu0Q a unitary Hecke character with trivial base-field restrictions, prescribed infinity exponents and local values, and tame ramification confined to the designated primes.

  ```lean
  theorem mu0Exists_of (hD : DivExtC) (hO : OpenUnits H.E) {P : PiBar H} {W : Omg H} {e : R.Psi → ℚ} {j : ℕ}
      {Φ : Ideles H.E →* ℂˣ} (hq : Mu0Q P W e j Φ) : Mu0Exists P W e j := …
  ```
- `Formalism.L2.Host.CharEx.deltaExists_of`: Under the extension and openness hypotheses, obtains from a candidate satisfying DeltaQ a finite-order Hecke character with trivial base-field restrictions, tame ramification confined to places above p, and exact order 15 on the local unit group at each such place.

  ```lean
  theorem deltaExists_of (hD : DivExtC) (hO : OpenUnits H.E) {p : ℕ} {Φ : Ideles H.E →* ℂˣ} (hq : DeltaQ (H := H) p Φ) :
      DeltaExists (H := H) p := …
  ```

### Formalism.PeriodIntegrals.UnitaryGroupMassFormula.IdeleUnitsOpen.IsOpenAdicCompletionIntegers

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

**Proves that the subgroup of ideles whose finite components are local units is open.**

Each finite completion has an open valuation ring, so the product of all local integer rings is open in the finite adele ring. Pullback along the finite projection gives the open set of adeles integral at every finite place. An idele has unit components at every finite place exactly when both it and its inverse lie in this set, so continuity of inversion and of the map to adeles gives the result.

Key declarations:

- `PI.IdeleUnitsOpenW.isOpen_adicCompletionIntegers`: The valuation ring of each finite completion is open in that completion.

  ```lean
  theorem isOpen_adicCompletionIntegers (v : HeightOneSpectrum (𝓞 L)) :
      IsOpen (v.adicCompletionIntegers L : Set (v.adicCompletion L)) := …
  ```
- `PI.IdeleUnitsOpenW.isOpen_integralFinite`: The finite adeles integral at every finite place form an open subset of the finite adele ring.

  ```lean
  theorem isOpen_integralFinite :
      IsOpen {f : FiniteAdeleRing (𝓞 L) L | ∀ v, f v ∈ v.adicCompletionIntegers L} := …
  ```
- `PI.IdeleUnitsOpenW.isOpen_integralAdeles`: The adeles integral at every finite place form an open subset of the full adele ring.

  ```lean
  theorem isOpen_integralAdeles : IsOpen (integralAdeles L) := …
  ```
- `PI.IdeleUnitsOpenW.unitIdeles_eq`: An idele has unit components at every finite place exactly when it and its inverse are both integral at every finite place.

  ```lean
  theorem unitIdeles_eq :
      (Formalism.L2.Host.CharEx.unitIdeles L : Set (Ideles L)) =
        (fun u : Ideles L => (u : AdeleRing (𝓞 L) L)) ⁻¹' integralAdeles L ∩
          (fun u : Ideles L => ((u⁻¹ : Ideles L) : AdeleRing (𝓞 L) L)) ⁻¹' integralAdeles L := …
  ```
- `PI.IdeleUnitsOpenW.openUnits`: The subgroup of ideles with unit components at every finite place is open in the idele topology.

  ```lean
  theorem openUnits : Formalism.L2.Host.CharEx.OpenUnits L := …
  ```

### Formalism.LocalToGlobal.Columns.HeckeEx

23 import steps from Main · 188 lines · Checked against the code · [Open in the Lean viewer](https://riemannhypothesissolved.com/file/Formalism.LocalToGlobal.Columns.HeckeEx)

**Defines a finite-place idelic character from tame local lifts at selected primes and their conjugates.**

The tame lifting condition prescribes a residue-field character on local units and normalizes the lift to be trivial on a chosen uniformizer. Assuming such lifts exist, the construction takes inverse conjugate pairs of residue characters, lifts them to the local multiplicative groups, and multiplies the resulting characters through the idele projections. Under the field compatibility condition X.Ok, conjugate primes contract to the same base-field prime. HeckeExHost verifies the arithmetic package for its field construction assuming the roots-of-unity condition MuPM.

Key declarations:

- `Formalism.L2.Col.HeckeEx.TameSpec`: Specifies a local character that sends the chosen uniformizer to 1, is unitary on local units, is trivial on principal units, and recovers the prescribed residue character on integral representatives.

  ```lean
  def TameSpec (w : HeightOneSpectrum (𝓞 L)) (ϖ : 𝓞 L) (c : (𝓞 L ⧸ w.asIdeal)ˣ →* ℂˣ) (lam : (w.adicCompletion L)ˣ →* ℂˣ) : Prop :=
    (∀ x : Lˣ, (x : L) = (ϖ : L) → lam (atFin w x) = 1) ∧
    (∀ x, IsUnitAt w x → ‖((lam x : ℂˣ) : ℂ)‖ = 1) ∧
    (∀ x, IsUnitAt w x → Valued.v ((x : w.adicCompletion L) - 1) ≤ WithZero.exp (-((1 : ℕ) : ℤ)) → lam x = 1) ∧
    (∀ (x : Lˣ) (y : 𝓞 L) (cl : (𝓞 L ⧸ w.asIdeal)ˣ), (x : L) = (y : L) →
      (cl : 𝓞 L ⧸ w.asIdeal) = Ideal.Quotient.mk w.asIdeal y → lam (atFin w x) = c cl)
  ```
- `Formalism.L2.Col.HeckeEx.TameLocEx`: Names the proposition that every residue-field unit character at a finite place of a number field admits such a lift for every integral uniformizer.

  ```lean
  def TameLocEx : Prop :=
    ∀ (L : Type) [Field L] [NumberField L] (w : HeightOneSpectrum (𝓞 L)) (ϖ : 𝓞 L), ϖ ∈ w.asIdeal → ϖ ∉ w.asIdeal ^ 2 →
      ∀ c : (𝓞 L ⧸ w.asIdeal)ˣ →* ℂˣ, ∃ lam : (w.adicCompletion L)ˣ →* ℂˣ, TameSpec w ϖ c lam
  ```
- `Formalism.L2.Col.HeckeEx.psiF`: Given tame local lifts, defines a character on the ideles by multiplying their evaluations at the selected primes and their conjugates.

  ```lean
  def psiF : Ideles X.E →* ℂˣ :=
    ∏ w : {w // w ∈ Pr.vGs}, ((lamW Ch σ₀ j hT w).comp (compU w.1) * (lamB Ch σ₀ j hT w).comp (compU (cP X w.1)))
  ```
- `Formalism.L2.Col.HeckeEx.conjPrime_under₂`: Under the field compatibility hypotheses, a prime of the upper field and its conjugate contract to the same prime of the base field.

  ```lean
  theorem conjPrime_under₂ (hX : X.Ok) (w : HeightOneSpectrum (𝓞 X.E)) : (cP X w).under (𝓞 X.F) = w.under (𝓞 X.F) := …
  ```
- `Formalism.L2.Col.HeckeEx.EtaFactsC`: Bundles conditions on ramification, the chosen embeddings, the fixed field of conjugation, roots of unity, divisibility by four of an index-set cardinality, and the valuations and positive imaginary images of a chosen element.

  ```lean
  structure EtaFactsC (X : Fields) (σ₀ : X.K →+* ℂ) (s0 : X.E) : Prop where
    unram : ∀ P : HeightOneSpectrum (𝓞 X.E), (aboveF (L := X.E) X.F (P.under (𝓞 X.F))).card = 1 →
      P.asIdeal.ramificationIdx (𝓞 X.F) = 1
    onePsi : ∀ w : InfinitePlace X.F,
      (Finset.univ.filter (fun i => InfinitePlace.mk (X.embC σ₀ i) ∈ aboveInf (L := X.E) X.F w)).card = 1
    fixF : ∀ x : X.E, star x = x → ∃ a : X.F, algebraMap X.F X.E a = x
    roots : ∀ z : X.E, (∃ n : ℕ, 0 < n ∧ z ^ n = 1) → z = 1 ∨ z = -1
    sqrt_ne : s0 ≠ 0
    isCMField_complexConj_s_eq_neg : star s0 = -s0
    sqrt_pos : ∀ s : X.Eˣ, (s : X.E) = s0 → ∀ i, ∃ r : ℝ, 0 < r ∧ X.embC σ₀ i (s : X.E) = Complex.I * r
    card4 : 4 ∣ Fintype.card X.Tau
    dsplit : ∀ s : X.Eˣ, (s : X.E) = s0 →
      ∀ P : HeightOneSpectrum (𝓞 X.E), ordF P s ≠ 0 → (aboveF (L := X.E) X.F (P.under (𝓞 X.F))).card ≠ 1
  ```

### Formalism.LocalToGlobal.UnitaryNorms.CharExFacts

24 import steps from Main · 38 lines · Checked against the code · [Open in the Lean viewer](https://riemannhypothesissolved.com/file/Formalism.LocalToGlobal.UnitaryNorms.CharExFacts)

**Bundles arithmetic hypotheses on the number fields and embeddings used in the η-character construction.**

The bundle requires ramification index one at each finite prime that is alone above its base prime, a totally real base field, exactly one selected embedding above each real place, and an involution that induces complex conjugation, has the base as its fixed field, and negates the distinguished square root. It also requires all roots of unity to be ±1, the number of selected embeddings to be divisible by four, and a nonzero distinguished square root whose selected images lie on the positive imaginary axis and whose valuation vanishes at every finite prime that is alone above its base prime.

Key declarations:

- `Formalism.L2.Host.CharEx.EtaHostFacts`: Packages the finite-place, archimedean, and square-root hypotheses on the fields used for the η-character.

  ```lean
  structure EtaHostFacts {R : Formalism.BasicNotions.Ranks} (H : Formalism.BasicNotions.Host R) : Prop
  ```
- `Formalism.L2.Host.CharEx.EtaHostFacts.unram`: Requires ramification index one at a finite prime whenever it is the unique prime above its base prime.

  ```lean
    unram : ∀ P : HeightOneSpectrum (𝓞 H.E), (aboveF (L := H.E) H.F (P.under (𝓞 H.F))).card = 1 →
  ```
- `Formalism.L2.Host.CharEx.EtaHostFacts.onePsi`: Requires exactly one selected complex embedding above each infinite place of the base field.

  ```lean
    onePsi : ∀ w : InfinitePlace H.F,
  ```
- `Formalism.L2.Host.CharEx.EtaHostFacts.conj`: Requires an involution fixing exactly the base field, acting as complex conjugation under every complex embedding, and sending the distinguished square root to its negative.

  ```lean
    conj : ∃ c : H.E →ₐ[H.F] H.E, (∀ x, c (c x) = x) ∧ (∀ x, c x = x → ∃ a : H.F, algebraMap H.F H.E a = x) ∧
  ```
- `Formalism.L2.Host.CharEx.EtaHostFacts.dsplit`: Requires that any finite prime where the distinguished square root has nonzero valuation lie above a base prime with more than one prime above it.

  ```lean
    dsplit : ∀ s : H.Eˣ, (s : H.E) = H.sqrtMinusD →
  ```

### Formalism.LocalToGlobal.UnitaryNorms.CharExMu

24 import steps from Main · 40 lines · Checked against the code · [Open in the Lean viewer](https://riemannhypothesissolved.com/file/Formalism.LocalToGlobal.UnitaryNorms.CharExMu)

**Defines the archimedean phase and the compatibility conditions for the finite factor of a μ₀-character.**

The archimedean phase is a product of normalized embedding values to prescribed integer powers, and InfEven requires the subproduct above each base-field infinite place to be trivial on base-field elements. Mu0F requires a continuous idele character trivial on archimedean components and finite base-field components, of modulus one on unit ideles, and unramified outside places over the designated rational primes, trivial on principal units at every finite place, and with prescribed local values at places selected by P.Div, together with cancellation against the archimedean phase on the diagonal base-field elements and the distinguished square root.

Key declarations:

- `Formalism.L2.Host.CharEx.infVal`: Evaluates the product of the phases of the selected complex embeddings of a nonzero field element, raised to their assigned integer powers.

  ```lean
  def infVal (H : Formalism.BasicNotions.Host R) (n : R.Psi → ℤ) (k : H.Eˣ) : ℂ :=
    ∏ τ, (embPsi H τ (k : H.E) / ((‖embPsi H τ (k : H.E)‖ : ℝ) : ℂ)) ^ n τ
  ```
- `Formalism.L2.Host.CharEx.InfEven`: Requires the phase product restricted to embeddings above each infinite place of the base field to equal one on every nonzero base-field element.

  ```lean
  def InfEven (H : Formalism.BasicNotions.Host R) (n : R.Psi → ℤ) : Prop := ∀ (w : InfinitePlace H.F) (k : H.Fˣ),
    (∏ i ∈ Finset.univ.filter (fun i => InfinitePlace.mk (embPsi H i) ∈ aboveInf (L := H.E) H.F w),
      (embPsi H i ((upF H.F k : H.Eˣ) : H.E) / ((‖embPsi H i ((upF H.F k : H.Eˣ) : H.E)‖ : ℝ) : ℂ)) ^ n i) = 1
  ```
- `Formalism.L2.Host.CharEx.Mu0F`: Bundles continuity, local triviality and ramification, prescribed local values, and diagonal cancellation for the finite idele character.

  ```lean
  structure Mu0F (P : PiBar H) (W : Omg H) (n : R.Psi → ℤ) (j : ℕ) (Φ : Ideles H.E →* ℂˣ) : Prop where
    cont : Continuous Φ
    unitU : ∀ u ∈ unitIdeles H.E, ‖((Φ u : ℂˣ) : ℂ)‖ = 1
    infTriv : ∀ w x, Φ (infIdele H.E w x) = 1
    trivFin : ∀ v k, Φ (aF H.F v k) = 1
    unr : ∀ v, (∀ k, ¬ OverP H (H.g k) v) → ∀ x, IsUnitAt v x → Φ (localIdele H.E v x) = 1
    tame : ∀ v x, IsUnitAt v x → Valued.v ((x : v.adicCompletion H.E) - 1) ≤ WithZero.exp (-((1 : ℕ) : ℤ)) →
      Φ (localIdele H.E v x) = 1
    atg : ∀ (k : Fin 2) (w : HeightOneSpectrum (𝓞 H.E)), P.Div k w → ∀ (a : ℕ) (ha : a.Coprime (H.g k)) (x : H.Eˣ),
      (x : H.E) = (a : H.E) → Φ (localIdele H.E w (atFin w x)) = (W.om k (ZMod.unitOfCoprime a ha) ^ (2 * (j + 1)))⁻¹
    recF : ∀ a : H.Fˣ, ((Φ (diagUnits H.E (upF H.F a)) : ℂˣ) : ℂ) * infVal H n (upF H.F a) = 1
    sqrtD : ∀ s : H.Eˣ, (s : H.E) = H.sqrtMinusD → ((Φ (diagUnits H.E s) : ℂˣ) : ℂ) * infVal H n s = 1
  ```
- `Formalism.L2.Host.CharEx.Mu0F.atg`: At each place w satisfying P.Div k w, prescribes the local value on the image of a natural number a coprime to H.g k, viewed as an E-unit, as the inverse of the specified residue-character value raised to 2(j + 1).

  ```lean
    atg : ∀ (k : Fin 2) (w : HeightOneSpectrum (𝓞 H.E)), P.Div k w → ∀ (a : ℕ) (ha : a.Coprime (H.g k)) (x : H.Eˣ),
  ```
- `Formalism.L2.Host.CharEx.Mu0F.sqrtD`: Requires the finite idele character on the diagonal distinguished square root to cancel its archimedean phase.

  ```lean
    sqrtD : ∀ s : H.Eˣ, (s : H.E) = H.sqrtMinusD → ((Φ (diagUnits H.E s) : ℂˣ) : ℂ) * infVal H n s = 1
  ```

### Formalism.PeriodIntegrals.UnitaryGroupMassFormula.CMTypeEmbeddings.OnePsi

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

**Proves that exactly one CM-type index lies above each infinite place of the host’s real subfield.**

Under the host’s embedding hypotheses, each infinite place of F lifts to a place of E, where one of the conjugate embeddings belongs to the CM type. CM-type embeddings above the same place agree on F because conjugation fixes their restricted values. Each element of E decomposes into an F-linear combination of 1 and the distinguished square root, whose image is fixed by the CM type. Thus the embeddings coincide, and injectivity of the indexing gives a unique index.

Key declarations:

- `PI.HostPsiFactsWork.conj_bE`: Host conjugation sends the distinguished square root to its negative.

  ```lean
  theorem conj_bE (H : Host R) :
      H.conj (H.sqd) = - H.sqd := …
  ```
- `PI.HostPsiFactsWork.eq_of_cm_of_agree`: Two embeddings in the host CM type coincide if they agree on F.

  ```lean
  theorem eq_of_cm_of_agree (H : Host R) (φ ψ : H.E →+* ℂ)
      (hφ : φ ∈ H.cmType) (hψ : ψ ∈ H.cmType)
      (hF : ∀ x ∈ H.F, φ x = ψ x) : φ = ψ := …
  ```
- `PI.HostPsiFactsWork.agree_of_comap`: Two embeddings of E agree on F if their infinite places restrict to the same place of F.

  ```lean
  theorem agree_of_comap (H : Host R) (φ ψ : H.E →+* ℂ)
      (h : (InfinitePlace.mk φ).comap (algebraMap H.F H.E) =
        (InfinitePlace.mk ψ).comap (algebraMap H.F H.E)) :
      ∀ x ∈ H.F, φ x = ψ x := …
  ```
- `PI.HostPsiFactsWork.mk_conj_comp`: An embedding and its complex conjugate define the same infinite place.

  ```lean
  theorem mk_conj_comp (H : Host R) (φ : H.E →+* ℂ) :
      InfinitePlace.mk ((starRingEnd ℂ).comp φ) = InfinitePlace.mk φ := …
  ```
- `PI.HostPsiFactsWork.onePsi`: Under the host’s embedding hypotheses, the set of CM-type indices above any infinite place of F has cardinality one.

  ```lean
  theorem onePsi : PI.EtaHostFacts.OnePsi := …
  ```

### Formalism.PeriodIntegrals.UnitaryGroupMassFormula.GlobalFormGenerator.IntValuationConjP

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

**Defines pullback of height-one primes along an automorphism of a number field’s ring of integers.**

The definition takes the inverse image of a height-one prime ideal under the ring automorphism. It uses the automorphism’s surjectivity in the pullback construction on the height-one spectrum.

Key declarations:

- `PI.GlobFormGenW.conjPrime₂`: For an automorphism σ of the ring of integers and a height-one prime P, returns the height-one prime σ⁻¹(P).

  ```lean
  def conjPrime₂ (σ : 𝓞 L ≃+* 𝓞 L) (P : HeightOneSpectrum (𝓞 L)) : HeightOneSpectrum (𝓞 L) :=
    HeightOneSpectrum.comap (σ : 𝓞 L →+* 𝓞 L) σ.surjective P
  ```

### Formalism.PeriodIntegrals.UnitaryGroupMassFormula.HostFieldFacts.HostFieldFacts

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

**Records the norm of roots of unity and the properties of conjugation in the host field.**

The relative norm from E to K sends every root of unity to 1 by the host’s norm identity. The host conjugation is an involutive F-algebra automorphism with fixed field F, acts as complex conjugation under every complex embedding, and sends the distinguished square root of −D to its negative.

Key declarations:

- `PI.UnitaryGroupMassFormula.HostFieldFacts.roots`: Every root of unity in the host field E has relative norm 1 in K.

  ```lean
  theorem roots : PI.EtaHostFacts.Roots := …
  ```
- `PI.UnitaryGroupMassFormula.HostFieldFacts.conj`: There is an involutive F-algebra automorphism of E with fixed field F that intertwines every complex embedding with complex conjugation and negates the distinguished square root of −D.

  ```lean
  theorem conj : PI.EtaHostFacts.Conj := …
  ```

### Formalism.PeriodIntegrals.UnitaryGroupMassFormula.HostPrimeSplitting.DSplit

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

**Proves integrality of the host’s distinguished square root and describes prime contraction under conjugation.**

The distinguished square root squares to −d, which gives its integrality over ℤ and hence an element of the ring of integers of E. The host’s prime d generates a maximal ideal of ℤ, so a height-one prime containing d contracts to (d). Conjugation carries height-one primes to height-one primes and preserves their contractions to the ring of integers of F, since inverse conjugation fixes that subring pointwise.

Key declarations:

- `PI.UnitaryGroupMassFormula.HostPrimeFacts.sqrt_sq`: The square of the distinguished element of E is −d.

  ```lean
  theorem sqrt_sq : H.sqrtMinusD ^ 2 = -((H.d : ℤ) : H.E) := …
  ```
- `PI.UnitaryGroupMassFormula.HostPrimeFacts.sqrt_isIntegral`: The distinguished square root of −d is integral over ℤ.

  ```lean
  theorem sqrt_isIntegral : IsIntegral ℤ H.sqrtMinusD := …
  ```
- `PI.UnitaryGroupMassFormula.HostPrimeFacts.liesOver_d`: Every height-one prime of the ring of integers of E containing d contracts to (d) in ℤ.

  ```lean
  theorem liesOver_d (P : HeightOneSpectrum (𝓞 H.E)) (hP : ((H.d : ℤ) : 𝓞 H.E) ∈ P.asIdeal) :
      P.asIdeal.LiesOver (span {((H.d : ℕ) : ℤ)}) := …
  ```
- `PI.UnitaryGroupMassFormula.HostPrimeFacts.conjPrime`: Sends a height-one prime of the ring of integers of E to its image under host conjugation.

  ```lean
  def conjPrime (P : HeightOneSpectrum (𝓞 H.E)) : HeightOneSpectrum (𝓞 H.E) where
    asIdeal := cE H • P.asIdeal
    isPrime := by have := P.isPrime; infer_instance
    ne_bot := by
      intro h
      apply P.ne_bot
      rw [← inv_smul_smul (cE H) P.asIdeal, h, Ideal.smul_bot]
  ```
- `PI.UnitaryGroupMassFormula.HostPrimeFacts.conjPrime_under`: A height-one prime and its conjugate have the same contraction to the ring of integers of F.

  ```lean
  theorem conjPrime_under (P : HeightOneSpectrum (𝓞 H.E)) :
      (conjPrime H P).under (𝓞 H.F) = P.under (𝓞 H.F) := …
  ```

### Formalism.PeriodIntegrals.UnitaryGroupMassFormula.InfiniteEtaGenerators.CompEqEmbedding

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

**Identifies the normalized value of a complex embedding above a real place with the sign character at that place.**

A complex embedding of L above a real place w of F restricts to the real embedding representing w. For each k in Fˣ, the image is therefore a nonzero real number, and dividing it by its complex modulus gives its sign. This sign is the value of the archimedean character η at w.

Key declarations:

- `PI.EtaInfGenW.comp_eq_embedding`: A complex embedding of L whose infinite place lies above a real place w of F restricts to the embedding representing w.

  ```lean
  theorem comp_eq_embedding (φ : L →+* ℂ) (w : InfinitePlace F) (hw : w.IsReal)
      (h : (InfinitePlace.mk φ).comap (algebraMap F L) = w) :
      φ.comp (algebraMap F L) = w.embedding := …
  ```
- `PI.EtaInfGenW.div_norm_real`: A nonzero real number divided by its complex modulus equals its sign.

  ```lean
  theorem div_norm_real (r : ℝ) (hr : r ≠ 0) :
      ((r : ℂ) / ((‖(r : ℂ)‖ : ℝ) : ℂ)) = if (r : ℂ).re < 0 then -1 else 1 := …
  ```
- `PI.EtaInfGenW.single`: For k in Fˣ and a complex embedding φ of L above a real place w, the ratio φ(k)/|φ(k)| equals the archimedean character value η at w on k.

  ```lean
  theorem single (φ : L →+* ℂ) (w : InfinitePlace F) (hw : w.IsReal)
      (h : (InfinitePlace.mk φ).comap (algebraMap F L) = w) (k : Fˣ) :
      φ ((upF F k : Lˣ) : L) / ((‖φ ((upF F k : Lˣ) : L)‖ : ℝ) : ℂ) = ((etaInf F w k : ℂˣ) : ℂ) := …
  ```

### Formalism.PeriodIntegrals.UnitaryGroupMassFormula.InfinityTypeCharacter.ContinuousUnitsMap

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

**Defines an idele character by multiplying integer powers of normalized archimedean components.**

For each complex embedding of L, the construction projects an idele to the units of the completion at the associated infinite place and applies a chosen extension of the embedding to that completion. Dividing the resulting complex number by its modulus gives a unit-circle-valued homomorphism. The character Φ multiplies these homomorphisms with the prescribed integer exponents over a finite family of embeddings.

Key declarations:

- `PI.InfTypeCharW.projAt`: Projects an adele to its component at a specified infinite place.

  ```lean
  def projAt (w : InfinitePlace L) : AdeleRing (𝓞 L) L →+* w.Completion :=
    (Pi.evalRingHom (fun w : InfinitePlace L => w.Completion) w).comp
      (RingHom.fst (InfiniteAdeleRing L) (FiniteAdeleRing (𝓞 L) L))
  ```
- `PI.InfTypeCharW.compAt`: Sends an idele to its component in the unit group of the completion at a specified infinite place.

  ```lean
  def compAt (w : InfinitePlace L) : Ideles L →* (w.Completion)ˣ := Units.map (projAt w).toMonoidHom
  ```
- `PI.InfTypeCharW.ext`: Chooses an extension of a complex embedding to the completion at its associated infinite place.

  ```lean
  def ext (φ : L →+* ℂ) : (InfinitePlace.mk φ).Completion →+* ℂ := (exists_ext φ).choose
  ```
- `PI.InfTypeCharW.chi`: Sends an idele to the complex image of its chosen archimedean component divided by its modulus.

  ```lean
  def chi (φ : L →+* ℂ) : Ideles L →* ℂˣ :=
    normalize.comp ((Units.map (ext φ).toMonoidHom).comp (compAt (InfinitePlace.mk φ)))
  ```
- `PI.InfTypeCharW.Phi`: Forms the product of the normalized archimedean homomorphisms raised to the prescribed integer powers.

  ```lean
  def Phi {I : Type} [Fintype I] (φ : I → L →+* ℂ) (n : I → ℤ) : Ideles L →* ℂˣ where
    toFun x := ∏ i, chi (φ i) x ^ n i
    map_one' := by simp
    map_mul' x y := by simp only [map_mul, mul_zpow, Finset.prod_mul_distrib]
  ```

### Formalism.LocalToGlobal.UnitaryNorms.CharExFrame

25 import steps from Main · 47 lines · Checked against the code · [Open in the Lean viewer](https://riemannhypothesissolved.com/file/Formalism.LocalToGlobal.UnitaryNorms.CharExFrame)

**Bundles local and diagonal compatibility conditions for candidate μ₀ and δ idele characters.**

Both bundles require continuity, trivial finite and archimedean restrictions to the base field, tame local behavior, and triviality on diagonal base-field elements and the distinguished square root. The μ₀ bundle also requires modulus one on unit ideles, prescribed archimedean exponents and local values, and unramifiedness away from the designated primes, while the δ bundle requires a common finite-order bound on unit ideles, unramifiedness away from p, and exact order 15 on local units above p.

Key declarations:

- `Formalism.L2.Host.CharEx.Mu0L`: Packages the local values, infinity type, and diagonal triviality required of a candidate μ₀ idele character.

  ```lean
  structure Mu0L (P : PiBar H) (W : Omg H) (e : R.Psi → ℚ) (j : ℕ) (Φ : Ideles H.E →* ℂˣ) : Prop where
    cont : Continuous Φ
    unitU : ∀ u ∈ unitIdeles H.E, ‖((Φ u : ℂˣ) : ℂ)‖ = 1
    trivFin : ∀ v k, Φ (aF H.F v k) = 1
    trivInf : ∀ w k, Φ (aFi H.F w k) = 1
    inf : ∃ n : R.Psi → ℤ, (∀ τ, (n τ : ℚ) = 2 * (-e τ)) ∧ ∀ k : H.Eˣ, ((Φ (infDiag k) : ℂˣ) : ℂ) =
      ∏ τ, (embPsi H τ (k : H.E) / ((‖embPsi H τ (k : H.E)‖ : ℝ) : ℂ)) ^ n τ
    unr : ∀ v, (∀ k, ¬ OverP H (H.g k) v) → ∀ x, IsUnitAt v x → Φ (localIdele H.E v x) = 1
    tame : ∀ v x, IsUnitAt v x → Valued.v ((x : v.adicCompletion H.E) - 1) ≤ WithZero.exp (-((1 : ℕ) : ℤ)) →
      Φ (localIdele H.E v x) = 1
    atg : ∀ (k : Fin 2) (w : HeightOneSpectrum (𝓞 H.E)), P.Div k w → ∀ (a : ℕ) (ha : a.Coprime (H.g k)) (x : H.Eˣ),
      (x : H.E) = (a : H.E) → Φ (localIdele H.E w (atFin w x)) = (W.om k (ZMod.unitOfCoprime a ha) ^ (2 * (j + 1)))⁻¹
    recF : ∀ a : H.Fˣ, Φ (diagUnits H.E (upF H.F a)) = 1
    sqrtD : ∀ s : H.Eˣ, (s : H.E) = H.sqrtMinusD → Φ (diagUnits H.E s) = 1
  ```
- `Formalism.L2.Host.CharEx.Mu0L.inf`: Requires the archimedean value on a nonzero field element to be the product of its selected embedding phases with integral exponents equal to −2e.

  ```lean
    inf : ∃ n : R.Psi → ℤ, (∀ τ, (n τ : ℚ) = 2 * (-e τ)) ∧ ∀ k : H.Eˣ, ((Φ (infDiag k) : ℂˣ) : ℂ) =
  ```
- `Formalism.L2.Host.CharEx.Mu0L.atg`: At each place w above P.pb k, prescribes the local value on the image of a natural number a coprime to H.g k, viewed as an E-unit, as the inverse of the specified residue-character value raised to 2(j + 1).

  ```lean
    atg : ∀ (k : Fin 2) (w : HeightOneSpectrum (𝓞 H.E)), P.Div k w → ∀ (a : ℕ) (ha : a.Coprime (H.g k)) (x : H.Eˣ),
  ```
- `Formalism.L2.Host.CharEx.DeltaL`: Packages the bounded order on unit ideles, local ramification conditions, and diagonal triviality required of a candidate δ idele character.

  ```lean
  structure DeltaL (p : ℕ) (Φ : Ideles H.E →* ℂˣ) : Prop where
    cont : Continuous Φ
    finU : ∃ n : ℕ, 0 < n ∧ ∀ u ∈ unitIdeles H.E, Φ u ^ n = 1
    trivFin : ∀ v k, Φ (aF H.F v k) = 1
    trivInf : ∀ w k, Φ (aFi H.F w k) = 1
    tame : ∀ v x, IsUnitAt v x → Valued.v ((x : v.adicCompletion H.E) - 1) ≤ WithZero.exp (-((1 : ℕ) : ℤ)) →
      Φ (localIdele H.E v x) = 1
    unr : ∀ v, ¬ OverP H p v → ∀ x, IsUnitAt v x → Φ (localIdele H.E v x) = 1
    ine : ∀ v, OverP H p v → ∀ n : ℕ, (∀ x, IsUnitAt v x → Φ (localIdele H.E v x) ^ n = 1) ↔ 15 ∣ n
    recF : ∀ a : H.Fˣ, Φ (diagUnits H.E (upF H.F a)) = 1
    sqrtD : ∀ s : H.Eˣ, (s : H.E) = H.sqrtMinusD → Φ (diagUnits H.E s) = 1
  ```
- `Formalism.L2.Host.CharEx.DeltaL.ine`: Requires that at every place above p, a power of the local character is trivial on all local units exactly when its exponent is divisible by 15.

  ```lean
    ine : ∀ v, OverP H p v → ∀ n : ℕ, (∀ x, IsUnitAt v x → Φ (localIdele H.E v x) ^ n = 1) ↔ 15 ∣ n
  ```

### Formalism.PeriodIntegrals.EtaInfGen

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

**Defines a proposition expressing real-place sign characters as products of normalized embedding values.**

Let L/F be an extension of number fields with F totally real, and choose a finite indexed family of complex embeddings of L with exactly one index above each infinite place of F. The proposition asserts that for each real place w and each k ∈ F×, the product over indices above w of the embedding values at k divided by their absolute values equals the sign of k at w. The direct importer CompEqEmbedding proves the corresponding identity for a single embedding above w.

Key declarations:

- `PI.EtaInfGen`: Asserts that with exactly one indexed embedding above each real place of a totally real base field, the product of normalized embedding values above that place recovers its sign character on the base field’s multiplicative group.

  ```lean
  def EtaInfGen : Prop := …
  ```

### Formalism.PeriodIntegrals.InfTypeChar

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

**Defines what it means for a finite family of complex embeddings with integer weights to be realized by a unitary idele character.**

For a number field L, InfChar asserts the existence of a continuous unitary idele character trivial on every finite local factor. On the diagonal image of k ∈ L×, its value is the product of the embedding values at k divided by their absolute values and raised to the assigned integer powers. On the idele supported at a finite set of infinite places with k in each component there, the product uses only embeddings inducing those places. InfTypeChar quantifies over all such data. ContinuousUnitsMap defines the candidate as a weighted product using the continuous extensions to the completions and the normalization supplied by ExtensionEmbeddingAlgebraMap.

Key declarations:

- `PI.InfTypeChar.InfChar`: States that the specified embeddings and weights admit a continuous unitary idele character trivial on finite local factors and satisfying the diagonal and restricted archimedean product formulas.

  ```lean
  def InfChar {I : Type} [Fintype I] (φ : I → L →+* ℂ) (n : I → ℤ) : Prop :=
    ∃ Φ : Ideles L →* ℂˣ, Continuous Φ ∧ (∀ x, ‖((Φ x : ℂˣ) : ℂ)‖ = 1) ∧ (∀ v x, Φ (localIdele L v x) = 1) ∧
      (∀ k : Lˣ, ((Φ (diagUnits L k) : ℂˣ) : ℂ) = ∏ i, (φ i (k : L) / ((‖φ i (k : L)‖ : ℝ) : ℂ)) ^ n i) ∧
      ∀ (S : Finset (InfinitePlace L)) (k : Lˣ), ((Φ (∏ w ∈ S, infIdele L w (atInf w k)) : ℂˣ) : ℂ) =
        ∏ i ∈ Finset.univ.filter (fun i => InfinitePlace.mk (φ i) ∈ S), (φ i (k : L) / ((‖φ i (k : L)‖ : ℝ) : ℂ)) ^ n i
  ```
- `PI.InfTypeChar`: Asserts InfChar for every number field, finite indexed family of complex embeddings, and assignment of integer weights.

  ```lean
  def InfTypeChar : Prop :=
    ∀ (L : Type) [Field L] [NumberField L] (I : Type) [Fintype I] (φ : I → L →+* ℂ) (n : I → ℤ),
      InfTypeChar.InfChar φ n
  ```

### Formalism.PeriodIntegrals.UnitaryGroupMassFormula.CMTypeEmbeddings.EmbMemCmType

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

**Shows that Ψ-indexed embeddings lie in the host CM type and that |Ψ| is divisible by four under the stated cardinality hypothesis.**

Each index in Ψ gives an embedding in the host CM type by transporting the distinguished embedding through the corresponding Galois automorphism. The proof uses the inverse Galois correspondence to recover the original index. Under the hypothesis giving the cardinality of Ψ, divisibility by four follows from the power of two dividing the frame order. The CM-type membership lemma is used in OnePsi to identify the unique Ψ-index above each infinite place of F.

Key declarations:

- `PI.HostPsiFactsWork.galE_sigmaOf`: The Galois label of the automorphism assigned to g is g.

  ```lean
  theorem galE_sigmaOf (H : Host R) (g : R.GG) :
      H.galE (H.sigmaOf g) = g := …
  ```
- `PI.HostPsiFactsWork.emb_mem_cmType`: For every index g in Ψ, the associated complex embedding belongs to the host CM type.

  ```lean
  theorem emb_mem_cmType (H : Host R) (g : R.GG) (hg : g ∈ R.Psi) :
      H.emb g ∈ H.cmType := …
  ```
- `PI.HostPsiFactsWork.card4`: Under the hypothesis specifying the cardinality of Ψ, that cardinality is divisible by four.

  ```lean
  theorem card4 : PI.EtaHostFacts.Card4 := …
  ```

### Formalism.PeriodIntegrals.UnitaryGroupMassFormula.InfinityTypeCharacter.ExtensionEmbeddingAlgebraMap

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

**Extends complex embeddings continuously to their infinite-place completions and defines normalization on ℂˣ.**

The canonical embedding of an infinite-place completion into ℂ restricts to the representative embedding of that place. For a prescribed embedding inducing the same place, either the canonical map or its complex conjugate gives a continuous extension. The normalization z ↦ z/|z| is multiplicative by multiplicativity of the complex modulus. ContinuousUnitsMap combines these constructions to define the normalized archimedean factors of an idele character.

Key declarations:

- `PI.InfTypeCharW.normalize`: Defines the multiplicative homomorphism on ℂˣ sending z to z/|z|.

  ```lean
  def normalize : ℂˣ →* ℂˣ where
    toFun z := Units.mk0 ((z : ℂ) / ((‖(z : ℂ)‖ : ℝ) : ℂ))
      (div_ne_zero z.ne_zero (by exact_mod_cast (norm_ne_zero_iff.mpr z.ne_zero)))
    map_one' := by ext; simp
    map_mul' a b := by
      ext
      simp only [Units.val_mul, Units.val_mk0, norm_mul, Complex.ofReal_mul]
      rw [mul_div_mul_comm]
  ```
- `PI.InfTypeCharW.extensionEmbedding_algebraMap`: The canonical embedding of the completion at w into ℂ agrees on the number field with the representative embedding of w.

  ```lean
  theorem extensionEmbedding_algebraMap (w : InfinitePlace L) (k : L) :
      InfinitePlace.Completion.extensionEmbedding w (algebraMap L w.Completion k) = w.embedding k := …
  ```
- `PI.InfTypeCharW.exists_ext`: Every complex embedding of a number field extends to a continuous ring homomorphism from the completion at its associated infinite place to ℂ.

  ```lean
  theorem exists_ext (φ : L →+* ℂ) : ∃ ι : (InfinitePlace.mk φ).Completion →+* ℂ,
      Continuous ι ∧ ∀ k : L, ι (algebraMap L _ k) = φ k := …
  ```


---

Hecke characters on ideles: local… · Alpöge Lean readings, part 2. Web page: https://riemannhypothesissolved.com/cluster/k0704-hecke-characters-on-ideles-local-factors-finiteness-and/lean/part-2/ · updated 2026-11-26 · site map for machines: https://riemannhypothesissolved.com/llms.txt
