# Twisted trace on unitary-invariant maps is ±2^n, via highest-weight counting: 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 k0913 (https://riemannhypothesissolved.com/cluster/k0913-twisted-trace-on-unitary-invariant-maps-is-2-n-via-highest/) · 172 Lean files, by distance from Main.lean · part 3 of 3, files 120–172 of 172 · data: https://riemannhypothesissolved.com/api/file-lines/k0913.json

- Part 1: https://riemannhypothesissolved.com/cluster/k0913-twisted-trace-on-unitary-invariant-maps-is-2-n-via-highest/lean/index.md
- Part 2: https://riemannhypothesissolved.com/cluster/k0913-twisted-trace-on-unitary-invariant-maps-is-2-n-via-highest/lean/part-2/index.md
- Part 3: https://riemannhypothesissolved.com/cluster/k0913-twisted-trace-on-unitary-invariant-maps-is-2-n-via-highest/lean/part-3/index.md

## Contents

- 7 import steps from Main:
  - [Development.AutomorphicSpectrum.Proofs.BlockDecomposition.CommutingHermitianSimultaneousDiagStatement](https://riemannhypothesissolved.com/cluster/k0913-twisted-trace-on-unitary-invariant-maps-is-2-n-via-highest/lean/#Development.AutomorphicSpectrum.Proofs.BlockDecomposition.CommutingHermitianSimultaneousDiagStatement)
- 8 import steps from Main:
  - [Development.AutomorphicArithmetic.AutomorphicVarieties.ModularityArgument.TraceFormula.GL4GeometricSide.CoreG](https://riemannhypothesissolved.com/cluster/k0913-twisted-trace-on-unitary-invariant-maps-is-2-n-via-highest/lean/#Development.AutomorphicArithmetic.AutomorphicVarieties.ModularityArgument.TraceFormula.GL4GeometricSide.CoreG)
  - [Development.AutomorphicSpectrum.Proofs.BlockDecomposition.CommutingHermitianSimultaneousDiag](https://riemannhypothesissolved.com/cluster/k0913-twisted-trace-on-unitary-invariant-maps-is-2-n-via-highest/lean/#Development.AutomorphicSpectrum.Proofs.BlockDecomposition.CommutingHermitianSimultaneousDiag)
- 9 import steps from Main:
  - [Development.AbelianVarietyTheory.Definitions.TwistedInnerProducts.ExistsIsSph](https://riemannhypothesissolved.com/cluster/k0913-twisted-trace-on-unitary-invariant-maps-is-2-n-via-highest/lean/#Development.AbelianVarietyTheory.Definitions.TwistedInnerProducts.ExistsIsSph)
  - [Development.AutomorphicSpectrum.Proofs.BlockDecomposition.HarmonicOfNormBoundStatement](https://riemannhypothesissolved.com/cluster/k0913-twisted-trace-on-unitary-invariant-maps-is-2-n-via-highest/lean/#Development.AutomorphicSpectrum.Proofs.BlockDecomposition.HarmonicOfNormBoundStatement)
  - [Development.AutomorphicSpectrum.Proofs.BlockDecomposition.InvF](https://riemannhypothesissolved.com/cluster/k0913-twisted-trace-on-unitary-invariant-maps-is-2-n-via-highest/lean/#Development.AutomorphicSpectrum.Proofs.BlockDecomposition.InvF)
  - [Development.AutomorphicSpectrum.Proofs.BlockDecomposition.RangeStable](https://riemannhypothesissolved.com/cluster/k0913-twisted-trace-on-unitary-invariant-maps-is-2-n-via-highest/lean/#Development.AutomorphicSpectrum.Proofs.BlockDecomposition.RangeStable)
  - [Development.AutomorphicSpectrum.Proofs.BlockDecomposition.SignOne](https://riemannhypothesissolved.com/cluster/k0913-twisted-trace-on-unitary-invariant-maps-is-2-n-via-highest/lean/#Development.AutomorphicSpectrum.Proofs.BlockDecomposition.SignOne)
  - [Development.WeilBound.RepresentationTheoryGL.ArchimedeanBaseChange.ArchimedeanBaseChangeProof.RealDescent.RealLeviDescent.DiracInequalityKTypes](https://riemannhypothesissolved.com/cluster/k0913-twisted-trace-on-unitary-invariant-maps-is-2-n-via-highest/lean/#Development.WeilBound.RepresentationTheoryGL.ArchimedeanBaseChange.ArchimedeanBaseChangeProof.RealDescent.RealLeviDescent.DiracInequalityKTypes)
  - [Development.WeilBound.RepresentationTheoryGL.ArchimedeanBaseChange.ArchimedeanBaseChangeProof.RealDescent.RealLeviDescent.IsCoreMod](https://riemannhypothesissolved.com/cluster/k0913-twisted-trace-on-unitary-invariant-maps-is-2-n-via-highest/lean/#Development.WeilBound.RepresentationTheoryGL.ArchimedeanBaseChange.ArchimedeanBaseChangeProof.RealDescent.RealLeviDescent.IsCoreMod)
  - [Development.WeilBound.RepresentationTheoryGL.ArchimedeanBaseChange.ArchimedeanBaseChangeProof.RealDescent.RealLeviDescent.MultGOfMultFor](https://riemannhypothesissolved.com/cluster/k0913-twisted-trace-on-unitary-invariant-maps-is-2-n-via-highest/lean/#Development.WeilBound.RepresentationTheoryGL.ArchimedeanBaseChange.ArchimedeanBaseChangeProof.RealDescent.RealLeviDescent.MultGOfMultFor)
  - [Formalism.LocalToGlobal.IndefiniteReal.EigenDecomposition](https://riemannhypothesissolved.com/cluster/k0913-twisted-trace-on-unitary-invariant-maps-is-2-n-via-highest/lean/#Formalism.LocalToGlobal.IndefiniteReal.EigenDecomposition)
- 10 import steps from Main:
  - [Development.AutomorphicSpectrum.Proofs.BlockDecomposition.ConeNoSecondWeightsStatement](https://riemannhypothesissolved.com/cluster/k0913-twisted-trace-on-unitary-invariant-maps-is-2-n-via-highest/lean/#Development.AutomorphicSpectrum.Proofs.BlockDecomposition.ConeNoSecondWeightsStatement)
  - [Development.AutomorphicSpectrum.Proofs.BlockDecomposition.DiagonalMemUnitary](https://riemannhypothesissolved.com/cluster/k0913-twisted-trace-on-unitary-invariant-maps-is-2-n-via-highest/lean/#Development.AutomorphicSpectrum.Proofs.BlockDecomposition.DiagonalMemUnitary)
  - [Development.AutomorphicSpectrum.Proofs.BlockDecomposition.HarmonicOfNormBound](https://riemannhypothesissolved.com/cluster/k0913-twisted-trace-on-unitary-invariant-maps-is-2-n-via-highest/lean/#Development.AutomorphicSpectrum.Proofs.BlockDecomposition.HarmonicOfNormBound)
  - [Development.AutomorphicSpectrum.Proofs.BlockDecomposition.HighestTermLemmaReal](https://riemannhypothesissolved.com/cluster/k0913-twisted-trace-on-unitary-invariant-maps-is-2-n-via-highest/lean/#Development.AutomorphicSpectrum.Proofs.BlockDecomposition.HighestTermLemmaReal)
  - [Development.AutomorphicSpectrum.Proofs.BlockDecomposition.HighestTermLemmaRealStatement](https://riemannhypothesissolved.com/cluster/k0913-twisted-trace-on-unitary-invariant-maps-is-2-n-via-highest/lean/#Development.AutomorphicSpectrum.Proofs.BlockDecomposition.HighestTermLemmaRealStatement)
  - [Development.AutomorphicSpectrum.Proofs.BlockDecomposition.IsCliff](https://riemannhypothesissolved.com/cluster/k0913-twisted-trace-on-unitary-invariant-maps-is-2-n-via-highest/lean/#Development.AutomorphicSpectrum.Proofs.BlockDecomposition.IsCliff)
  - [Development.AutomorphicSpectrum.Proofs.BlockDecomposition.N2TopReal](https://riemannhypothesissolved.com/cluster/k0913-twisted-trace-on-unitary-invariant-maps-is-2-n-via-highest/lean/#Development.AutomorphicSpectrum.Proofs.BlockDecomposition.N2TopReal)
  - [Development.AutomorphicSpectrum.Proofs.BlockDecomposition.N2TopRealStatement](https://riemannhypothesissolved.com/cluster/k0913-twisted-trace-on-unitary-invariant-maps-is-2-n-via-highest/lean/#Development.AutomorphicSpectrum.Proofs.BlockDecomposition.N2TopRealStatement)
  - [Development.AutomorphicSpectrum.Proofs.BlockDecomposition.NormSqLeDominantRearrangement](https://riemannhypothesissolved.com/cluster/k0913-twisted-trace-on-unitary-invariant-maps-is-2-n-via-highest/lean/#Development.AutomorphicSpectrum.Proofs.BlockDecomposition.NormSqLeDominantRearrangement)
  - [Development.AutomorphicSpectrum.Proofs.BlockDecomposition.RealCompressionStatement](https://riemannhypothesissolved.com/cluster/k0913-twisted-trace-on-unitary-invariant-maps-is-2-n-via-highest/lean/#Development.AutomorphicSpectrum.Proofs.BlockDecomposition.RealCompressionStatement)
  - [Development.AutomorphicSpectrum.Proofs.BlockDecomposition.RealFirstNilpotentStatement](https://riemannhypothesissolved.com/cluster/k0913-twisted-trace-on-unitary-invariant-maps-is-2-n-via-highest/lean/#Development.AutomorphicSpectrum.Proofs.BlockDecomposition.RealFirstNilpotentStatement)
  - [Development.AutomorphicSpectrum.Proofs.BlockDecomposition.RealKTypesInConeStatement](https://riemannhypothesissolved.com/cluster/k0913-twisted-trace-on-unitary-invariant-maps-is-2-n-via-highest/lean/#Development.AutomorphicSpectrum.Proofs.BlockDecomposition.RealKTypesInConeStatement)
  - [Development.AutomorphicSpectrum.Proofs.BlockDecomposition.RealModelExistsStatement](https://riemannhypothesissolved.com/cluster/k0913-twisted-trace-on-unitary-invariant-maps-is-2-n-via-highest/lean/#Development.AutomorphicSpectrum.Proofs.BlockDecomposition.RealModelExistsStatement)
  - [Development.AutomorphicSpectrum.Proofs.BlockDecomposition.WtRInjective](https://riemannhypothesissolved.com/cluster/k0913-twisted-trace-on-unitary-invariant-maps-is-2-n-via-highest/lean/#Development.AutomorphicSpectrum.Proofs.BlockDecomposition.WtRInjective)
  - [Development.WeilBound.RepresentationTheoryGL.ArchimedeanBaseChange.ArchimedeanBaseChangeProof.RealDescent.RealLeviDescent.DiracOfDiracZeroModule](https://riemannhypothesissolved.com/cluster/k0913-twisted-trace-on-unitary-invariant-maps-is-2-n-via-highest/lean/#Development.WeilBound.RepresentationTheoryGL.ArchimedeanBaseChange.ArchimedeanBaseChangeProof.RealDescent.RealLeviDescent.DiracOfDiracZeroModule)
  - [Development.WeilBound.RepresentationTheoryGL.ArchimedeanBaseChange.ArchimedeanBaseChangeProof.RealDescent.RealLeviDescent.ExpansionTerms](https://riemannhypothesissolved.com/cluster/k0913-twisted-trace-on-unitary-invariant-maps-is-2-n-via-highest/lean/#Development.WeilBound.RepresentationTheoryGL.ArchimedeanBaseChange.ArchimedeanBaseChangeProof.RealDescent.RealLeviDescent.ExpansionTerms)
  - [Development.WeilBound.RepresentationTheoryGL.ArchimedeanBaseChange.ArchimedeanBaseChangeProof.RealDescent.RealLeviDescent.HighestVectorsRegularLine](https://riemannhypothesissolved.com/cluster/k0913-twisted-trace-on-unitary-invariant-maps-is-2-n-via-highest/lean/#Development.WeilBound.RepresentationTheoryGL.ArchimedeanBaseChange.ArchimedeanBaseChangeProof.RealDescent.RealLeviDescent.HighestVectorsRegularLine)
  - [Development.WeilBound.RepresentationTheoryGL.HolomorphicDiscreteSeries.EmbeddedFrames.PfD](https://riemannhypothesissolved.com/cluster/k0913-twisted-trace-on-unitary-invariant-maps-is-2-n-via-highest/lean/#Development.WeilBound.RepresentationTheoryGL.HolomorphicDiscreteSeries.EmbeddedFrames.PfD)
- 11 import steps from Main:
  - [Development.AutomorphicSpectrum.Proofs.BlockDecomposition.CliffordHighestWeightVector](https://riemannhypothesissolved.com/cluster/k0913-twisted-trace-on-unitary-invariant-maps-is-2-n-via-highest/lean/#Development.AutomorphicSpectrum.Proofs.BlockDecomposition.CliffordHighestWeightVector)
  - [Development.AutomorphicSpectrum.Proofs.BlockDecomposition.CliffordHighestWeightVectorStatement](https://riemannhypothesissolved.com/cluster/k0913-twisted-trace-on-unitary-invariant-maps-is-2-n-via-highest/lean/#Development.AutomorphicSpectrum.Proofs.BlockDecomposition.CliffordHighestWeightVectorStatement)
  - [Development.AutomorphicSpectrum.Proofs.BlockDecomposition.ConeNoSecondWeights](https://riemannhypothesissolved.com/cluster/k0913-twisted-trace-on-unitary-invariant-maps-is-2-n-via-highest/lean/#Development.AutomorphicSpectrum.Proofs.BlockDecomposition.ConeNoSecondWeights)
  - [Development.AutomorphicSpectrum.Proofs.BlockDecomposition.CyclicStandardTournament](https://riemannhypothesissolved.com/cluster/k0913-twisted-trace-on-unitary-invariant-maps-is-2-n-via-highest/lean/#Development.AutomorphicSpectrum.Proofs.BlockDecomposition.CyclicStandardTournament)
  - [Development.AutomorphicSpectrum.Proofs.BlockDecomposition.DiracKHolds](https://riemannhypothesissolved.com/cluster/k0913-twisted-trace-on-unitary-invariant-maps-is-2-n-via-highest/lean/#Development.AutomorphicSpectrum.Proofs.BlockDecomposition.DiracKHolds)
  - [Development.AutomorphicSpectrum.Proofs.BlockDecomposition.DominantEqOfNormGe](https://riemannhypothesissolved.com/cluster/k0913-twisted-trace-on-unitary-invariant-maps-is-2-n-via-highest/lean/#Development.AutomorphicSpectrum.Proofs.BlockDecomposition.DominantEqOfNormGe)
  - [Development.AutomorphicSpectrum.Proofs.BlockDecomposition.DualOperatorCommutesLieStatement](https://riemannhypothesissolved.com/cluster/k0913-twisted-trace-on-unitary-invariant-maps-is-2-n-via-highest/lean/#Development.AutomorphicSpectrum.Proofs.BlockDecomposition.DualOperatorCommutesLieStatement)
  - [Development.AutomorphicSpectrum.Proofs.BlockDecomposition.DualWeightTraceFormulaStatement](https://riemannhypothesissolved.com/cluster/k0913-twisted-trace-on-unitary-invariant-maps-is-2-n-via-highest/lean/#Development.AutomorphicSpectrum.Proofs.BlockDecomposition.DualWeightTraceFormulaStatement)
  - [Development.AutomorphicSpectrum.Proofs.BlockDecomposition.DualWeightsDominatedStatement](https://riemannhypothesissolved.com/cluster/k0913-twisted-trace-on-unitary-invariant-maps-is-2-n-via-highest/lean/#Development.AutomorphicSpectrum.Proofs.BlockDecomposition.DualWeightsDominatedStatement)
  - [Development.AutomorphicSpectrum.Proofs.BlockDecomposition.ExistsDualLieFamilyStatement](https://riemannhypothesissolved.com/cluster/k0913-twisted-trace-on-unitary-invariant-maps-is-2-n-via-highest/lean/#Development.AutomorphicSpectrum.Proofs.BlockDecomposition.ExistsDualLieFamilyStatement)
  - [Development.AutomorphicSpectrum.Proofs.BlockDecomposition.ExistsInvariantExtendingStatement](https://riemannhypothesissolved.com/cluster/k0913-twisted-trace-on-unitary-invariant-maps-is-2-n-via-highest/lean/#Development.AutomorphicSpectrum.Proofs.BlockDecomposition.ExistsInvariantExtendingStatement)
  - [Development.AutomorphicSpectrum.Proofs.BlockDecomposition.FiniteWeightsInvariantHomStatement](https://riemannhypothesissolved.com/cluster/k0913-twisted-trace-on-unitary-invariant-maps-is-2-n-via-highest/lean/#Development.AutomorphicSpectrum.Proofs.BlockDecomposition.FiniteWeightsInvariantHomStatement)
  - [Development.AutomorphicSpectrum.Proofs.BlockDecomposition.HarmonicWeightsCoefficientStatement](https://riemannhypothesissolved.com/cluster/k0913-twisted-trace-on-unitary-invariant-maps-is-2-n-via-highest/lean/#Development.AutomorphicSpectrum.Proofs.BlockDecomposition.HarmonicWeightsCoefficientStatement)
  - [Development.AutomorphicSpectrum.Proofs.BlockDecomposition.HighestWeightAntitoneOfFiniteDimensionalStable](https://riemannhypothesissolved.com/cluster/k0913-twisted-trace-on-unitary-invariant-maps-is-2-n-via-highest/lean/#Development.AutomorphicSpectrum.Proofs.BlockDecomposition.HighestWeightAntitoneOfFiniteDimensionalStable)
  - [Development.AutomorphicSpectrum.Proofs.BlockDecomposition.InvariantIntertwinesDualStatement](https://riemannhypothesissolved.com/cluster/k0913-twisted-trace-on-unitary-invariant-maps-is-2-n-via-highest/lean/#Development.AutomorphicSpectrum.Proofs.BlockDecomposition.InvariantIntertwinesDualStatement)
  - [Development.AutomorphicSpectrum.Proofs.BlockDecomposition.RealCompression](https://riemannhypothesissolved.com/cluster/k0913-twisted-trace-on-unitary-invariant-maps-is-2-n-via-highest/lean/#Development.AutomorphicSpectrum.Proofs.BlockDecomposition.RealCompression)
  - [Development.AutomorphicSpectrum.Proofs.BlockDecomposition.RealFirstNilpotent](https://riemannhypothesissolved.com/cluster/k0913-twisted-trace-on-unitary-invariant-maps-is-2-n-via-highest/lean/#Development.AutomorphicSpectrum.Proofs.BlockDecomposition.RealFirstNilpotent)
  - [Development.AutomorphicSpectrum.Proofs.BlockDecomposition.RealKTypesInCone](https://riemannhypothesissolved.com/cluster/k0913-twisted-trace-on-unitary-invariant-maps-is-2-n-via-highest/lean/#Development.AutomorphicSpectrum.Proofs.BlockDecomposition.RealKTypesInCone)
  - [Development.AutomorphicSpectrum.Proofs.BlockDecomposition.RealModelExists](https://riemannhypothesissolved.com/cluster/k0913-twisted-trace-on-unitary-invariant-maps-is-2-n-via-highest/lean/#Development.AutomorphicSpectrum.Proofs.BlockDecomposition.RealModelExists)
  - [Development.AutomorphicSpectrum.Proofs.BlockDecomposition.SignAntisymmetric](https://riemannhypothesissolved.com/cluster/k0913-twisted-trace-on-unitary-invariant-maps-is-2-n-via-highest/lean/#Development.AutomorphicSpectrum.Proofs.BlockDecomposition.SignAntisymmetric)
  - [Development.AutomorphicSpectrum.Proofs.BlockDecomposition.TraceFactorTensorDecompStatement](https://riemannhypothesissolved.com/cluster/k0913-twisted-trace-on-unitary-invariant-maps-is-2-n-via-highest/lean/#Development.AutomorphicSpectrum.Proofs.BlockDecomposition.TraceFactorTensorDecompStatement)
  - [Development.AutomorphicSpectrum.Proofs.BlockDecomposition.TwistedTraceWeylCharacterStatement](https://riemannhypothesissolved.com/cluster/k0913-twisted-trace-on-unitary-invariant-maps-is-2-n-via-highest/lean/#Development.AutomorphicSpectrum.Proofs.BlockDecomposition.TwistedTraceWeylCharacterStatement)
  - [Development.WeilBound.RepresentationTheoryGL.ArchimedeanBaseChange.ArchimedeanBaseChangeProof.RealDescent.RealLeviDescent.ConeWeightsNotSecondType](https://riemannhypothesissolved.com/cluster/k0913-twisted-trace-on-unitary-invariant-maps-is-2-n-via-highest/lean/#Development.WeilBound.RepresentationTheoryGL.ArchimedeanBaseChange.ArchimedeanBaseChangeProof.RealDescent.RealLeviDescent.ConeWeightsNotSecondType)
  - [Development.WeilBound.RepresentationTheoryGL.ArchimedeanBaseChange.ArchimedeanBaseChangeProof.RealDescent.RealLeviDescent.MuQMemHarmSet](https://riemannhypothesissolved.com/cluster/k0913-twisted-trace-on-unitary-invariant-maps-is-2-n-via-highest/lean/#Development.WeilBound.RepresentationTheoryGL.ArchimedeanBaseChange.ArchimedeanBaseChangeProof.RealDescent.RealLeviDescent.MuQMemHarmSet)
- 12 import steps from Main:
  - [Development.AutomorphicSpectrum.Proofs.BlockDecomposition.CenterActsByScalarOnCyclicStatement](https://riemannhypothesissolved.com/cluster/k0913-twisted-trace-on-unitary-invariant-maps-is-2-n-via-highest/lean/#Development.AutomorphicSpectrum.Proofs.BlockDecomposition.CenterActsByScalarOnCyclicStatement)
  - [Development.AutomorphicSpectrum.Proofs.BlockDecomposition.DualOperatorCommutesLie](https://riemannhypothesissolved.com/cluster/k0913-twisted-trace-on-unitary-invariant-maps-is-2-n-via-highest/lean/#Development.AutomorphicSpectrum.Proofs.BlockDecomposition.DualOperatorCommutesLie)
  - [Development.AutomorphicSpectrum.Proofs.BlockDecomposition.DualWeightTraceFormula](https://riemannhypothesissolved.com/cluster/k0913-twisted-trace-on-unitary-invariant-maps-is-2-n-via-highest/lean/part-2/#Development.AutomorphicSpectrum.Proofs.BlockDecomposition.DualWeightTraceFormula)
  - [Development.AutomorphicSpectrum.Proofs.BlockDecomposition.DualWeightsDominated](https://riemannhypothesissolved.com/cluster/k0913-twisted-trace-on-unitary-invariant-maps-is-2-n-via-highest/lean/part-2/#Development.AutomorphicSpectrum.Proofs.BlockDecomposition.DualWeightsDominated)
  - [Development.AutomorphicSpectrum.Proofs.BlockDecomposition.EqZeroOnUnitaryOfVanishAtOneStatement](https://riemannhypothesissolved.com/cluster/k0913-twisted-trace-on-unitary-invariant-maps-is-2-n-via-highest/lean/part-2/#Development.AutomorphicSpectrum.Proofs.BlockDecomposition.EqZeroOnUnitaryOfVanishAtOneStatement)
  - [Development.AutomorphicSpectrum.Proofs.BlockDecomposition.ExistsDualLieFamily](https://riemannhypothesissolved.com/cluster/k0913-twisted-trace-on-unitary-invariant-maps-is-2-n-via-highest/lean/part-2/#Development.AutomorphicSpectrum.Proofs.BlockDecomposition.ExistsDualLieFamily)
  - [Development.AutomorphicSpectrum.Proofs.BlockDecomposition.ExistsHaarUnitaryGroupStatement](https://riemannhypothesissolved.com/cluster/k0913-twisted-trace-on-unitary-invariant-maps-is-2-n-via-highest/lean/part-2/#Development.AutomorphicSpectrum.Proofs.BlockDecomposition.ExistsHaarUnitaryGroupStatement)
  - [Development.AutomorphicSpectrum.Proofs.BlockDecomposition.ExistsInvariantExtending](https://riemannhypothesissolved.com/cluster/k0913-twisted-trace-on-unitary-invariant-maps-is-2-n-via-highest/lean/part-2/#Development.AutomorphicSpectrum.Proofs.BlockDecomposition.ExistsInvariantExtending)
  - [Development.AutomorphicSpectrum.Proofs.BlockDecomposition.ExistsKFiniteSubmoduleContainingStatement](https://riemannhypothesissolved.com/cluster/k0913-twisted-trace-on-unitary-invariant-maps-is-2-n-via-highest/lean/part-2/#Development.AutomorphicSpectrum.Proofs.BlockDecomposition.ExistsKFiniteSubmoduleContainingStatement)
  - [Development.AutomorphicSpectrum.Proofs.BlockDecomposition.ExistsPermShiftedWeightEqInfCharStatement](https://riemannhypothesissolved.com/cluster/k0913-twisted-trace-on-unitary-invariant-maps-is-2-n-via-highest/lean/part-2/#Development.AutomorphicSpectrum.Proofs.BlockDecomposition.ExistsPermShiftedWeightEqInfCharStatement)
  - [Development.AutomorphicSpectrum.Proofs.BlockDecomposition.FiniteWeightsInvariantHom](https://riemannhypothesissolved.com/cluster/k0913-twisted-trace-on-unitary-invariant-maps-is-2-n-via-highest/lean/part-2/#Development.AutomorphicSpectrum.Proofs.BlockDecomposition.FiniteWeightsInvariantHom)
  - [Development.AutomorphicSpectrum.Proofs.BlockDecomposition.GelfandInvariantCommuteGeneratorStatement](https://riemannhypothesissolved.com/cluster/k0913-twisted-trace-on-unitary-invariant-maps-is-2-n-via-highest/lean/part-2/#Development.AutomorphicSpectrum.Proofs.BlockDecomposition.GelfandInvariantCommuteGeneratorStatement)
  - [Development.AutomorphicSpectrum.Proofs.BlockDecomposition.GelfandInvariantCommuteOfCommuteStatement](https://riemannhypothesissolved.com/cluster/k0913-twisted-trace-on-unitary-invariant-maps-is-2-n-via-highest/lean/part-2/#Development.AutomorphicSpectrum.Proofs.BlockDecomposition.GelfandInvariantCommuteOfCommuteStatement)
  - [Development.AutomorphicSpectrum.Proofs.BlockDecomposition.GelfandInvariantEvalLowestStatement](https://riemannhypothesissolved.com/cluster/k0913-twisted-trace-on-unitary-invariant-maps-is-2-n-via-highest/lean/part-2/#Development.AutomorphicSpectrum.Proofs.BlockDecomposition.GelfandInvariantEvalLowestStatement)
  - [Development.AutomorphicSpectrum.Proofs.BlockDecomposition.GelfandValuePermInvariantStatement](https://riemannhypothesissolved.com/cluster/k0913-twisted-trace-on-unitary-invariant-maps-is-2-n-via-highest/lean/part-2/#Development.AutomorphicSpectrum.Proofs.BlockDecomposition.GelfandValuePermInvariantStatement)
  - [Development.AutomorphicSpectrum.Proofs.BlockDecomposition.HarmonicWeightsCoefficient](https://riemannhypothesissolved.com/cluster/k0913-twisted-trace-on-unitary-invariant-maps-is-2-n-via-highest/lean/part-2/#Development.AutomorphicSpectrum.Proofs.BlockDecomposition.HarmonicWeightsCoefficient)
  - [Development.AutomorphicSpectrum.Proofs.BlockDecomposition.HighestWeightMemConeStatement](https://riemannhypothesissolved.com/cluster/k0913-twisted-trace-on-unitary-invariant-maps-is-2-n-via-highest/lean/part-2/#Development.AutomorphicSpectrum.Proofs.BlockDecomposition.HighestWeightMemConeStatement)
  - [Development.AutomorphicSpectrum.Proofs.BlockDecomposition.InducedFunctionAtOneStatement](https://riemannhypothesissolved.com/cluster/k0913-twisted-trace-on-unitary-invariant-maps-is-2-n-via-highest/lean/part-2/#Development.AutomorphicSpectrum.Proofs.BlockDecomposition.InducedFunctionAtOneStatement)
  - [Development.AutomorphicSpectrum.Proofs.BlockDecomposition.InducedFunctionDerivativeAtOneStatement](https://riemannhypothesissolved.com/cluster/k0913-twisted-trace-on-unitary-invariant-maps-is-2-n-via-highest/lean/part-2/#Development.AutomorphicSpectrum.Proofs.BlockDecomposition.InducedFunctionDerivativeAtOneStatement)
  - [Development.AutomorphicSpectrum.Proofs.BlockDecomposition.InducedFunctionKFiniteStatement](https://riemannhypothesissolved.com/cluster/k0913-twisted-trace-on-unitary-invariant-maps-is-2-n-via-highest/lean/part-2/#Development.AutomorphicSpectrum.Proofs.BlockDecomposition.InducedFunctionKFiniteStatement)
  - [Development.AutomorphicSpectrum.Proofs.BlockDecomposition.InducedFunctionKHighestWeightStatement](https://riemannhypothesissolved.com/cluster/k0913-twisted-trace-on-unitary-invariant-maps-is-2-n-via-highest/lean/part-2/#Development.AutomorphicSpectrum.Proofs.BlockDecomposition.InducedFunctionKHighestWeightStatement)
  - [Development.AutomorphicSpectrum.Proofs.BlockDecomposition.InducedFunctionParabolicEquivariantStatement](https://riemannhypothesissolved.com/cluster/k0913-twisted-trace-on-unitary-invariant-maps-is-2-n-via-highest/lean/part-2/#Development.AutomorphicSpectrum.Proofs.BlockDecomposition.InducedFunctionParabolicEquivariantStatement)
  - [Development.AutomorphicSpectrum.Proofs.BlockDecomposition.InducedFunctionSmoothStatement](https://riemannhypothesissolved.com/cluster/k0913-twisted-trace-on-unitary-invariant-maps-is-2-n-via-highest/lean/part-2/#Development.AutomorphicSpectrum.Proofs.BlockDecomposition.InducedFunctionSmoothStatement)
  - [Development.AutomorphicSpectrum.Proofs.BlockDecomposition.IntegralRightDerivativeEqZeroStatement](https://riemannhypothesissolved.com/cluster/k0913-twisted-trace-on-unitary-invariant-maps-is-2-n-via-highest/lean/part-2/#Development.AutomorphicSpectrum.Proofs.BlockDecomposition.IntegralRightDerivativeEqZeroStatement)
  - [Development.AutomorphicSpectrum.Proofs.BlockDecomposition.InvariantIntertwinesDual](https://riemannhypothesissolved.com/cluster/k0913-twisted-trace-on-unitary-invariant-maps-is-2-n-via-highest/lean/part-2/#Development.AutomorphicSpectrum.Proofs.BlockDecomposition.InvariantIntertwinesDual)
  - [Development.AutomorphicSpectrum.Proofs.BlockDecomposition.IwasawaParabolicUnitaryStatement](https://riemannhypothesissolved.com/cluster/k0913-twisted-trace-on-unitary-invariant-maps-is-2-n-via-highest/lean/part-2/#Development.AutomorphicSpectrum.Proofs.BlockDecomposition.IwasawaParabolicUnitaryStatement)
  - [Development.AutomorphicSpectrum.Proofs.BlockDecomposition.KActionSkewAdjointL2Statement](https://riemannhypothesissolved.com/cluster/k0913-twisted-trace-on-unitary-invariant-maps-is-2-n-via-highest/lean/part-2/#Development.AutomorphicSpectrum.Proofs.BlockDecomposition.KActionSkewAdjointL2Statement)
  - [Development.AutomorphicSpectrum.Proofs.BlockDecomposition.L2InnerProductHermitianFormStatement](https://riemannhypothesissolved.com/cluster/k0913-twisted-trace-on-unitary-invariant-maps-is-2-n-via-highest/lean/part-2/#Development.AutomorphicSpectrum.Proofs.BlockDecomposition.L2InnerProductHermitianFormStatement)
  - [Development.AutomorphicSpectrum.Proofs.BlockDecomposition.LftMulRgt](https://riemannhypothesissolved.com/cluster/k0913-twisted-trace-on-unitary-invariant-maps-is-2-n-via-highest/lean/part-2/#Development.AutomorphicSpectrum.Proofs.BlockDecomposition.LftMulRgt)
  - [Development.AutomorphicSpectrum.Proofs.BlockDecomposition.OrderedCechToCatCochainsOneApplyValueAtSubset](https://riemannhypothesissolved.com/cluster/k0913-twisted-trace-on-unitary-invariant-maps-is-2-n-via-highest/lean/part-2/#Development.AutomorphicSpectrum.Proofs.BlockDecomposition.OrderedCechToCatCochainsOneApplyValueAtSubset)
  - [Development.AutomorphicSpectrum.Proofs.BlockDecomposition.PartialFractionDiagonalIdentityStatement](https://riemannhypothesissolved.com/cluster/k0913-twisted-trace-on-unitary-invariant-maps-is-2-n-via-highest/lean/part-2/#Development.AutomorphicSpectrum.Proofs.BlockDecomposition.PartialFractionDiagonalIdentityStatement)
  - [Development.AutomorphicSpectrum.Proofs.BlockDecomposition.RightDerivativeLowerBlockAtOneStatement](https://riemannhypothesissolved.com/cluster/k0913-twisted-trace-on-unitary-invariant-maps-is-2-n-via-highest/lean/part-2/#Development.AutomorphicSpectrum.Proofs.BlockDecomposition.RightDerivativeLowerBlockAtOneStatement)
  - [Development.AutomorphicSpectrum.Proofs.BlockDecomposition.RightDerivativePreservesEquivariantStatement](https://riemannhypothesissolved.com/cluster/k0913-twisted-trace-on-unitary-invariant-maps-is-2-n-via-highest/lean/part-2/#Development.AutomorphicSpectrum.Proofs.BlockDecomposition.RightDerivativePreservesEquivariantStatement)
  - [Development.AutomorphicSpectrum.Proofs.BlockDecomposition.RightDerivativeRealLieHomStatement](https://riemannhypothesissolved.com/cluster/k0913-twisted-trace-on-unitary-invariant-maps-is-2-n-via-highest/lean/part-2/#Development.AutomorphicSpectrum.Proofs.BlockDecomposition.RightDerivativeRealLieHomStatement)
  - [Development.AutomorphicSpectrum.Proofs.BlockDecomposition.SumMemOfStable](https://riemannhypothesissolved.com/cluster/k0913-twisted-trace-on-unitary-invariant-maps-is-2-n-via-highest/lean/part-2/#Development.AutomorphicSpectrum.Proofs.BlockDecomposition.SumMemOfStable)
  - [Development.AutomorphicSpectrum.Proofs.BlockDecomposition.TraceFactorTensorDecomp](https://riemannhypothesissolved.com/cluster/k0913-twisted-trace-on-unitary-invariant-maps-is-2-n-via-highest/lean/part-2/#Development.AutomorphicSpectrum.Proofs.BlockDecomposition.TraceFactorTensorDecomp)
  - [Development.AutomorphicSpectrum.Proofs.BlockDecomposition.TwistedTraceWeylCharacter](https://riemannhypothesissolved.com/cluster/k0913-twisted-trace-on-unitary-invariant-maps-is-2-n-via-highest/lean/part-2/#Development.AutomorphicSpectrum.Proofs.BlockDecomposition.TwistedTraceWeylCharacter)
  - [Development.WeilBound.RepresentationTheoryGL.ArchimedeanBaseChange.ArchimedeanBaseChangeProof.RealDescent.RealLeviDescent.NoSecondTypeWeight](https://riemannhypothesissolved.com/cluster/k0913-twisted-trace-on-unitary-invariant-maps-is-2-n-via-highest/lean/part-2/#Development.WeilBound.RepresentationTheoryGL.ArchimedeanBaseChange.ArchimedeanBaseChangeProof.RealDescent.RealLeviDescent.NoSecondTypeWeight)
- 13 import steps from Main:
  - [Development.AutomorphicSpectrum.Proofs.BlockDecomposition.CPoly](https://riemannhypothesissolved.com/cluster/k0913-twisted-trace-on-unitary-invariant-maps-is-2-n-via-highest/lean/part-2/#Development.AutomorphicSpectrum.Proofs.BlockDecomposition.CPoly)
  - [Development.AutomorphicSpectrum.Proofs.BlockDecomposition.CenterActsByScalarOnCyclic](https://riemannhypothesissolved.com/cluster/k0913-twisted-trace-on-unitary-invariant-maps-is-2-n-via-highest/lean/part-2/#Development.AutomorphicSpectrum.Proofs.BlockDecomposition.CenterActsByScalarOnCyclic)
  - [Development.AutomorphicSpectrum.Proofs.BlockDecomposition.DerivativeUnitaryActionStatement](https://riemannhypothesissolved.com/cluster/k0913-twisted-trace-on-unitary-invariant-maps-is-2-n-via-highest/lean/part-2/#Development.AutomorphicSpectrum.Proofs.BlockDecomposition.DerivativeUnitaryActionStatement)
  - [Development.AutomorphicSpectrum.Proofs.BlockDecomposition.DominanceOfWeylCharacterCoeffStatement](https://riemannhypothesissolved.com/cluster/k0913-twisted-trace-on-unitary-invariant-maps-is-2-n-via-highest/lean/part-2/#Development.AutomorphicSpectrum.Proofs.BlockDecomposition.DominanceOfWeylCharacterCoeffStatement)
  - [Development.AutomorphicSpectrum.Proofs.BlockDecomposition.DualWeightSpacesSpanStatement](https://riemannhypothesissolved.com/cluster/k0913-twisted-trace-on-unitary-invariant-maps-is-2-n-via-highest/lean/part-2/#Development.AutomorphicSpectrum.Proofs.BlockDecomposition.DualWeightSpacesSpanStatement)
  - [Development.AutomorphicSpectrum.Proofs.BlockDecomposition.EqZeroOnUnitaryOfVanishAtOne](https://riemannhypothesissolved.com/cluster/k0913-twisted-trace-on-unitary-invariant-maps-is-2-n-via-highest/lean/part-2/#Development.AutomorphicSpectrum.Proofs.BlockDecomposition.EqZeroOnUnitaryOfVanishAtOne)
  - [Development.AutomorphicSpectrum.Proofs.BlockDecomposition.ExistsCompactLieActionStatement](https://riemannhypothesissolved.com/cluster/k0913-twisted-trace-on-unitary-invariant-maps-is-2-n-via-highest/lean/part-2/#Development.AutomorphicSpectrum.Proofs.BlockDecomposition.ExistsCompactLieActionStatement)
  - [Development.AutomorphicSpectrum.Proofs.BlockDecomposition.ExistsHaarUnitaryGroup](https://riemannhypothesissolved.com/cluster/k0913-twisted-trace-on-unitary-invariant-maps-is-2-n-via-highest/lean/part-2/#Development.AutomorphicSpectrum.Proofs.BlockDecomposition.ExistsHaarUnitaryGroup)
  - [Development.AutomorphicSpectrum.Proofs.BlockDecomposition.ExistsHighestWeightInInvariantSubmoduleStatement](https://riemannhypothesissolved.com/cluster/k0913-twisted-trace-on-unitary-invariant-maps-is-2-n-via-highest/lean/part-2/#Development.AutomorphicSpectrum.Proofs.BlockDecomposition.ExistsHighestWeightInInvariantSubmoduleStatement)
  - [Development.AutomorphicSpectrum.Proofs.BlockDecomposition.ExistsKFiniteSubmoduleContaining](https://riemannhypothesissolved.com/cluster/k0913-twisted-trace-on-unitary-invariant-maps-is-2-n-via-highest/lean/part-2/#Development.AutomorphicSpectrum.Proofs.BlockDecomposition.ExistsKFiniteSubmoduleContaining)
  - [Development.AutomorphicSpectrum.Proofs.BlockDecomposition.ExistsPermShiftedWeightEqInfChar](https://riemannhypothesissolved.com/cluster/k0913-twisted-trace-on-unitary-invariant-maps-is-2-n-via-highest/lean/part-2/#Development.AutomorphicSpectrum.Proofs.BlockDecomposition.ExistsPermShiftedWeightEqInfChar)
  - [Development.AutomorphicSpectrum.Proofs.BlockDecomposition.FiniteDimensionalOfHom](https://riemannhypothesissolved.com/cluster/k0913-twisted-trace-on-unitary-invariant-maps-is-2-n-via-highest/lean/part-2/#Development.AutomorphicSpectrum.Proofs.BlockDecomposition.FiniteDimensionalOfHom)
  - [Development.AutomorphicSpectrum.Proofs.BlockDecomposition.GelfandInvariantCommuteGenerator](https://riemannhypothesissolved.com/cluster/k0913-twisted-trace-on-unitary-invariant-maps-is-2-n-via-highest/lean/part-2/#Development.AutomorphicSpectrum.Proofs.BlockDecomposition.GelfandInvariantCommuteGenerator)
  - [Development.AutomorphicSpectrum.Proofs.BlockDecomposition.GelfandInvariantCommuteOfCommute](https://riemannhypothesissolved.com/cluster/k0913-twisted-trace-on-unitary-invariant-maps-is-2-n-via-highest/lean/part-2/#Development.AutomorphicSpectrum.Proofs.BlockDecomposition.GelfandInvariantCommuteOfCommute)
  - [Development.AutomorphicSpectrum.Proofs.BlockDecomposition.GelfandInvariantEvalLowest](https://riemannhypothesissolved.com/cluster/k0913-twisted-trace-on-unitary-invariant-maps-is-2-n-via-highest/lean/part-2/#Development.AutomorphicSpectrum.Proofs.BlockDecomposition.GelfandInvariantEvalLowest)
  - [Development.AutomorphicSpectrum.Proofs.BlockDecomposition.GelfandValuePermInvariant](https://riemannhypothesissolved.com/cluster/k0913-twisted-trace-on-unitary-invariant-maps-is-2-n-via-highest/lean/part-2/#Development.AutomorphicSpectrum.Proofs.BlockDecomposition.GelfandValuePermInvariant)
  - [Development.AutomorphicSpectrum.Proofs.BlockDecomposition.HighestWeightAntitoneOfFiniteDimensionalStableStatement](https://riemannhypothesissolved.com/cluster/k0913-twisted-trace-on-unitary-invariant-maps-is-2-n-via-highest/lean/part-2/#Development.AutomorphicSpectrum.Proofs.BlockDecomposition.HighestWeightAntitoneOfFiniteDimensionalStableStatement)
  - [Development.AutomorphicSpectrum.Proofs.BlockDecomposition.HighestWeightIntegralOfUnitaryStatement](https://riemannhypothesissolved.com/cluster/k0913-twisted-trace-on-unitary-invariant-maps-is-2-n-via-highest/lean/part-2/#Development.AutomorphicSpectrum.Proofs.BlockDecomposition.HighestWeightIntegralOfUnitaryStatement)
  - [Development.AutomorphicSpectrum.Proofs.BlockDecomposition.HighestWeightMemCone](https://riemannhypothesissolved.com/cluster/k0913-twisted-trace-on-unitary-invariant-maps-is-2-n-via-highest/lean/part-2/#Development.AutomorphicSpectrum.Proofs.BlockDecomposition.HighestWeightMemCone)
  - [Development.AutomorphicSpectrum.Proofs.BlockDecomposition.HighestWeightOfUnitaryDerivativeStatement](https://riemannhypothesissolved.com/cluster/k0913-twisted-trace-on-unitary-invariant-maps-is-2-n-via-highest/lean/part-2/#Development.AutomorphicSpectrum.Proofs.BlockDecomposition.HighestWeightOfUnitaryDerivativeStatement)
  - [Development.AutomorphicSpectrum.Proofs.BlockDecomposition.InducedFunctionAtOne](https://riemannhypothesissolved.com/cluster/k0913-twisted-trace-on-unitary-invariant-maps-is-2-n-via-highest/lean/part-2/#Development.AutomorphicSpectrum.Proofs.BlockDecomposition.InducedFunctionAtOne)
  - [Development.AutomorphicSpectrum.Proofs.BlockDecomposition.InducedFunctionDerivativeAtOne](https://riemannhypothesissolved.com/cluster/k0913-twisted-trace-on-unitary-invariant-maps-is-2-n-via-highest/lean/part-2/#Development.AutomorphicSpectrum.Proofs.BlockDecomposition.InducedFunctionDerivativeAtOne)
  - [Development.AutomorphicSpectrum.Proofs.BlockDecomposition.InducedFunctionKFinite](https://riemannhypothesissolved.com/cluster/k0913-twisted-trace-on-unitary-invariant-maps-is-2-n-via-highest/lean/part-2/#Development.AutomorphicSpectrum.Proofs.BlockDecomposition.InducedFunctionKFinite)
  - [Development.AutomorphicSpectrum.Proofs.BlockDecomposition.InducedFunctionKHighestWeight](https://riemannhypothesissolved.com/cluster/k0913-twisted-trace-on-unitary-invariant-maps-is-2-n-via-highest/lean/part-2/#Development.AutomorphicSpectrum.Proofs.BlockDecomposition.InducedFunctionKHighestWeight)
  - [Development.AutomorphicSpectrum.Proofs.BlockDecomposition.InducedFunctionParabolicEquivariant](https://riemannhypothesissolved.com/cluster/k0913-twisted-trace-on-unitary-invariant-maps-is-2-n-via-highest/lean/part-2/#Development.AutomorphicSpectrum.Proofs.BlockDecomposition.InducedFunctionParabolicEquivariant)
  - [Development.AutomorphicSpectrum.Proofs.BlockDecomposition.InducedFunctionSmooth](https://riemannhypothesissolved.com/cluster/k0913-twisted-trace-on-unitary-invariant-maps-is-2-n-via-highest/lean/part-2/#Development.AutomorphicSpectrum.Proofs.BlockDecomposition.InducedFunctionSmooth)
  - [Development.AutomorphicSpectrum.Proofs.BlockDecomposition.IntegralRightDerivativeEqZero](https://riemannhypothesissolved.com/cluster/k0913-twisted-trace-on-unitary-invariant-maps-is-2-n-via-highest/lean/part-2/#Development.AutomorphicSpectrum.Proofs.BlockDecomposition.IntegralRightDerivativeEqZero)
  - [Development.AutomorphicSpectrum.Proofs.BlockDecomposition.IntertwinerEqZeroOfVanishOnHighestStatement](https://riemannhypothesissolved.com/cluster/k0913-twisted-trace-on-unitary-invariant-maps-is-2-n-via-highest/lean/part-3/#Development.AutomorphicSpectrum.Proofs.BlockDecomposition.IntertwinerEqZeroOfVanishOnHighestStatement)
  - [Development.AutomorphicSpectrum.Proofs.BlockDecomposition.IwasawaParabolicUnitary](https://riemannhypothesissolved.com/cluster/k0913-twisted-trace-on-unitary-invariant-maps-is-2-n-via-highest/lean/part-3/#Development.AutomorphicSpectrum.Proofs.BlockDecomposition.IwasawaParabolicUnitary)
  - [Development.AutomorphicSpectrum.Proofs.BlockDecomposition.KActionSkewAdjointL2](https://riemannhypothesissolved.com/cluster/k0913-twisted-trace-on-unitary-invariant-maps-is-2-n-via-highest/lean/part-3/#Development.AutomorphicSpectrum.Proofs.BlockDecomposition.KActionSkewAdjointL2)
  - [Development.AutomorphicSpectrum.Proofs.BlockDecomposition.L2InnerProductHermitianForm](https://riemannhypothesissolved.com/cluster/k0913-twisted-trace-on-unitary-invariant-maps-is-2-n-via-highest/lean/part-3/#Development.AutomorphicSpectrum.Proofs.BlockDecomposition.L2InnerProductHermitianForm)
  - [Development.AutomorphicSpectrum.Proofs.BlockDecomposition.LieGeneratorsGlRelations](https://riemannhypothesissolved.com/cluster/k0913-twisted-trace-on-unitary-invariant-maps-is-2-n-via-highest/lean/part-3/#Development.AutomorphicSpectrum.Proofs.BlockDecomposition.LieGeneratorsGlRelations)
  - [Development.AutomorphicSpectrum.Proofs.BlockDecomposition.PartialFractionDiagonalIdentity](https://riemannhypothesissolved.com/cluster/k0913-twisted-trace-on-unitary-invariant-maps-is-2-n-via-highest/lean/part-3/#Development.AutomorphicSpectrum.Proofs.BlockDecomposition.PartialFractionDiagonalIdentity)
  - [Development.AutomorphicSpectrum.Proofs.BlockDecomposition.ProdPairSumsEqSumPowersetScoreStatement](https://riemannhypothesissolved.com/cluster/k0913-twisted-trace-on-unitary-invariant-maps-is-2-n-via-highest/lean/part-3/#Development.AutomorphicSpectrum.Proofs.BlockDecomposition.ProdPairSumsEqSumPowersetScoreStatement)
  - [Development.AutomorphicSpectrum.Proofs.BlockDecomposition.RightDerivativeLowerBlockAtOne](https://riemannhypothesissolved.com/cluster/k0913-twisted-trace-on-unitary-invariant-maps-is-2-n-via-highest/lean/part-3/#Development.AutomorphicSpectrum.Proofs.BlockDecomposition.RightDerivativeLowerBlockAtOne)
  - [Development.AutomorphicSpectrum.Proofs.BlockDecomposition.RightDerivativePreservesEquivariant](https://riemannhypothesissolved.com/cluster/k0913-twisted-trace-on-unitary-invariant-maps-is-2-n-via-highest/lean/part-3/#Development.AutomorphicSpectrum.Proofs.BlockDecomposition.RightDerivativePreservesEquivariant)
  - [Development.AutomorphicSpectrum.Proofs.BlockDecomposition.RightDerivativeRealLieHom](https://riemannhypothesissolved.com/cluster/k0913-twisted-trace-on-unitary-invariant-maps-is-2-n-via-highest/lean/part-3/#Development.AutomorphicSpectrum.Proofs.BlockDecomposition.RightDerivativeRealLieHom)
  - [Development.AutomorphicSpectrum.Proofs.BlockDecomposition.ScoreRigidityPermEqOneStatement](https://riemannhypothesissolved.com/cluster/k0913-twisted-trace-on-unitary-invariant-maps-is-2-n-via-highest/lean/part-3/#Development.AutomorphicSpectrum.Proofs.BlockDecomposition.ScoreRigidityPermEqOneStatement)
  - [Development.AutomorphicSpectrum.Proofs.BlockDecomposition.ScoreTZeroEqLevelCountStatement](https://riemannhypothesissolved.com/cluster/k0913-twisted-trace-on-unitary-invariant-maps-is-2-n-via-highest/lean/part-3/#Development.AutomorphicSpectrum.Proofs.BlockDecomposition.ScoreTZeroEqLevelCountStatement)
  - [Development.AutomorphicSpectrum.Proofs.BlockDecomposition.SpinGlRelationsAdjointStatement](https://riemannhypothesissolved.com/cluster/k0913-twisted-trace-on-unitary-invariant-maps-is-2-n-via-highest/lean/part-3/#Development.AutomorphicSpectrum.Proofs.BlockDecomposition.SpinGlRelationsAdjointStatement)
  - [Development.AutomorphicSpectrum.Proofs.BlockDecomposition.TorCharInjective](https://riemannhypothesissolved.com/cluster/k0913-twisted-trace-on-unitary-invariant-maps-is-2-n-via-highest/lean/part-3/#Development.AutomorphicSpectrum.Proofs.BlockDecomposition.TorCharInjective)
  - [Development.AutomorphicSpectrum.Proofs.BlockDecomposition.UnitaryEuclideanModelStatement](https://riemannhypothesissolved.com/cluster/k0913-twisted-trace-on-unitary-invariant-maps-is-2-n-via-highest/lean/part-3/#Development.AutomorphicSpectrum.Proofs.BlockDecomposition.UnitaryEuclideanModelStatement)
  - [Development.AutomorphicSpectrum.Proofs.BlockDecomposition.VandermondeSquaresStatement](https://riemannhypothesissolved.com/cluster/k0913-twisted-trace-on-unitary-invariant-maps-is-2-n-via-highest/lean/part-3/#Development.AutomorphicSpectrum.Proofs.BlockDecomposition.VandermondeSquaresStatement)
  - [Development.AutomorphicSpectrum.Proofs.BlockDecomposition.WeightPolynomialTraceIdentityStatement](https://riemannhypothesissolved.com/cluster/k0913-twisted-trace-on-unitary-invariant-maps-is-2-n-via-highest/lean/part-3/#Development.AutomorphicSpectrum.Proofs.BlockDecomposition.WeightPolynomialTraceIdentityStatement)
  - [Development.AutomorphicSpectrum.Proofs.BlockDecomposition.WeylDenominatorProductStatement](https://riemannhypothesissolved.com/cluster/k0913-twisted-trace-on-unitary-invariant-maps-is-2-n-via-highest/lean/part-3/#Development.AutomorphicSpectrum.Proofs.BlockDecomposition.WeylDenominatorProductStatement)
- 14 import steps from Main:
  - [Development.AutomorphicArithmetic.IntegralCasts.CapelliIdentities.LowerIff](https://riemannhypothesissolved.com/cluster/k0913-twisted-trace-on-unitary-invariant-maps-is-2-n-via-highest/lean/part-3/#Development.AutomorphicArithmetic.IntegralCasts.CapelliIdentities.LowerIff)
  - [Development.AutomorphicSpectrum.Proofs.BlockDecomposition.DerivativeUnitaryAction](https://riemannhypothesissolved.com/cluster/k0913-twisted-trace-on-unitary-invariant-maps-is-2-n-via-highest/lean/part-3/#Development.AutomorphicSpectrum.Proofs.BlockDecomposition.DerivativeUnitaryAction)
  - [Development.AutomorphicSpectrum.Proofs.BlockDecomposition.DetOneAddSingle](https://riemannhypothesissolved.com/cluster/k0913-twisted-trace-on-unitary-invariant-maps-is-2-n-via-highest/lean/part-3/#Development.AutomorphicSpectrum.Proofs.BlockDecomposition.DetOneAddSingle)
  - [Development.AutomorphicSpectrum.Proofs.BlockDecomposition.DominanceOfWeylCharacterCoeff](https://riemannhypothesissolved.com/cluster/k0913-twisted-trace-on-unitary-invariant-maps-is-2-n-via-highest/lean/part-3/#Development.AutomorphicSpectrum.Proofs.BlockDecomposition.DominanceOfWeylCharacterCoeff)
  - [Development.AutomorphicSpectrum.Proofs.BlockDecomposition.DualWeightSpacesSpan](https://riemannhypothesissolved.com/cluster/k0913-twisted-trace-on-unitary-invariant-maps-is-2-n-via-highest/lean/part-3/#Development.AutomorphicSpectrum.Proofs.BlockDecomposition.DualWeightSpacesSpan)
  - [Development.AutomorphicSpectrum.Proofs.BlockDecomposition.EuOfDifferentiableAt](https://riemannhypothesissolved.com/cluster/k0913-twisted-trace-on-unitary-invariant-maps-is-2-n-via-highest/lean/part-3/#Development.AutomorphicSpectrum.Proofs.BlockDecomposition.EuOfDifferentiableAt)
  - [Development.AutomorphicSpectrum.Proofs.BlockDecomposition.ExistsCompactLieAction](https://riemannhypothesissolved.com/cluster/k0913-twisted-trace-on-unitary-invariant-maps-is-2-n-via-highest/lean/part-3/#Development.AutomorphicSpectrum.Proofs.BlockDecomposition.ExistsCompactLieAction)
  - [Development.AutomorphicSpectrum.Proofs.BlockDecomposition.ExistsHighestWeightInInvariantSubmodule](https://riemannhypothesissolved.com/cluster/k0913-twisted-trace-on-unitary-invariant-maps-is-2-n-via-highest/lean/part-3/#Development.AutomorphicSpectrum.Proofs.BlockDecomposition.ExistsHighestWeightInInvariantSubmodule)
  - [Development.AutomorphicSpectrum.Proofs.BlockDecomposition.HighestWeightIntegralOfUnitary](https://riemannhypothesissolved.com/cluster/k0913-twisted-trace-on-unitary-invariant-maps-is-2-n-via-highest/lean/part-3/#Development.AutomorphicSpectrum.Proofs.BlockDecomposition.HighestWeightIntegralOfUnitary)
  - [Development.AutomorphicSpectrum.Proofs.BlockDecomposition.HighestWeightOfUnitaryDerivative](https://riemannhypothesissolved.com/cluster/k0913-twisted-trace-on-unitary-invariant-maps-is-2-n-via-highest/lean/part-3/#Development.AutomorphicSpectrum.Proofs.BlockDecomposition.HighestWeightOfUnitaryDerivative)
  - [Development.AutomorphicSpectrum.Proofs.BlockDecomposition.IntertwinerEqZeroOfVanishOnHighest](https://riemannhypothesissolved.com/cluster/k0913-twisted-trace-on-unitary-invariant-maps-is-2-n-via-highest/lean/part-3/#Development.AutomorphicSpectrum.Proofs.BlockDecomposition.IntertwinerEqZeroOfVanishOnHighest)
  - [Development.AutomorphicSpectrum.Proofs.BlockDecomposition.JBConjTranspose](https://riemannhypothesissolved.com/cluster/k0913-twisted-trace-on-unitary-invariant-maps-is-2-n-via-highest/lean/part-3/#Development.AutomorphicSpectrum.Proofs.BlockDecomposition.JBConjTranspose)
  - [Development.AutomorphicSpectrum.Proofs.BlockDecomposition.ProdPairSumsEqSumPowersetScore](https://riemannhypothesissolved.com/cluster/k0913-twisted-trace-on-unitary-invariant-maps-is-2-n-via-highest/lean/part-3/#Development.AutomorphicSpectrum.Proofs.BlockDecomposition.ProdPairSumsEqSumPowersetScore)
  - [Development.AutomorphicSpectrum.Proofs.BlockDecomposition.ScoreRigidityPermEqOne](https://riemannhypothesissolved.com/cluster/k0913-twisted-trace-on-unitary-invariant-maps-is-2-n-via-highest/lean/part-3/#Development.AutomorphicSpectrum.Proofs.BlockDecomposition.ScoreRigidityPermEqOne)
  - [Development.AutomorphicSpectrum.Proofs.BlockDecomposition.ScoreTZeroEqLevelCount](https://riemannhypothesissolved.com/cluster/k0913-twisted-trace-on-unitary-invariant-maps-is-2-n-via-highest/lean/part-3/#Development.AutomorphicSpectrum.Proofs.BlockDecomposition.ScoreTZeroEqLevelCount)
  - [Development.AutomorphicSpectrum.Proofs.BlockDecomposition.SpinGlRelationsAdjoint](https://riemannhypothesissolved.com/cluster/k0913-twisted-trace-on-unitary-invariant-maps-is-2-n-via-highest/lean/part-3/#Development.AutomorphicSpectrum.Proofs.BlockDecomposition.SpinGlRelationsAdjoint)
  - [Development.AutomorphicSpectrum.Proofs.BlockDecomposition.UnitaryEuclideanModel](https://riemannhypothesissolved.com/cluster/k0913-twisted-trace-on-unitary-invariant-maps-is-2-n-via-highest/lean/part-3/#Development.AutomorphicSpectrum.Proofs.BlockDecomposition.UnitaryEuclideanModel)
  - [Development.AutomorphicSpectrum.Proofs.BlockDecomposition.VandermondeSquares](https://riemannhypothesissolved.com/cluster/k0913-twisted-trace-on-unitary-invariant-maps-is-2-n-via-highest/lean/part-3/#Development.AutomorphicSpectrum.Proofs.BlockDecomposition.VandermondeSquares)
  - [Development.AutomorphicSpectrum.Proofs.BlockDecomposition.WeightPolynomialTraceIdentity](https://riemannhypothesissolved.com/cluster/k0913-twisted-trace-on-unitary-invariant-maps-is-2-n-via-highest/lean/part-3/#Development.AutomorphicSpectrum.Proofs.BlockDecomposition.WeightPolynomialTraceIdentity)
  - [Development.AutomorphicSpectrum.Proofs.BlockDecomposition.WeylDenominatorProduct](https://riemannhypothesissolved.com/cluster/k0913-twisted-trace-on-unitary-invariant-maps-is-2-n-via-highest/lean/part-3/#Development.AutomorphicSpectrum.Proofs.BlockDecomposition.WeylDenominatorProduct)
  - [Development.AutomorphicSpectrum.Proofs.HermitianForms.Imports](https://riemannhypothesissolved.com/cluster/k0913-twisted-trace-on-unitary-invariant-maps-is-2-n-via-highest/lean/part-3/#Development.AutomorphicSpectrum.Proofs.HermitianForms.Imports)
  - [Development.WeilBound.RepresentationTheoryGL.ArchimedeanBaseChange.ArchimedeanBaseChangeProof.RealDescent.RealLeviDescent.IsLevPairA](https://riemannhypothesissolved.com/cluster/k0913-twisted-trace-on-unitary-invariant-maps-is-2-n-via-highest/lean/part-3/#Development.WeilBound.RepresentationTheoryGL.ArchimedeanBaseChange.ArchimedeanBaseChangeProof.RealDescent.RealLeviDescent.IsLevPairA)
- 15 import steps from Main:
  - [Development.AbelianVarietyTheory.Definitions.TwistedInnerProducts.FiniteDimensionalOfTrivialIsAdmOn](https://riemannhypothesissolved.com/cluster/k0913-twisted-trace-on-unitary-invariant-maps-is-2-n-via-highest/lean/part-3/#Development.AbelianVarietyTheory.Definitions.TwistedInnerProducts.FiniteDimensionalOfTrivialIsAdmOn)
  - [Development.AutomorphicSpectrum.Proofs.BlockDecomposition.EventuallyLineUnit](https://riemannhypothesissolved.com/cluster/k0913-twisted-trace-on-unitary-invariant-maps-is-2-n-via-highest/lean/part-3/#Development.AutomorphicSpectrum.Proofs.BlockDecomposition.EventuallyLineUnit)
  - [Development.AutomorphicSpectrum.Proofs.BlockDecomposition.ExistsHighestWeightHermitianDerivationStatement](https://riemannhypothesissolved.com/cluster/k0913-twisted-trace-on-unitary-invariant-maps-is-2-n-via-highest/lean/part-3/#Development.AutomorphicSpectrum.Proofs.BlockDecomposition.ExistsHighestWeightHermitianDerivationStatement)
  - [Development.AutomorphicSpectrum.Proofs.BlockDecomposition.MapMemKfin](https://riemannhypothesissolved.com/cluster/k0913-twisted-trace-on-unitary-invariant-maps-is-2-n-via-highest/lean/part-3/#Development.AutomorphicSpectrum.Proofs.BlockDecomposition.MapMemKfin)
  - [Development.AutomorphicSpectrum.Proofs.BlockDecomposition.UnitaryExpSkewHermitian](https://riemannhypothesissolved.com/cluster/k0913-twisted-trace-on-unitary-invariant-maps-is-2-n-via-highest/lean/part-3/#Development.AutomorphicSpectrum.Proofs.BlockDecomposition.UnitaryExpSkewHermitian)
  - [Formalism.GelfandTransference.HadamardGelfand.Highest](https://riemannhypothesissolved.com/cluster/k0913-twisted-trace-on-unitary-invariant-maps-is-2-n-via-highest/lean/part-3/#Formalism.GelfandTransference.HadamardGelfand.Highest)
- 16 import steps from Main:
  - [Development.AutomorphicSpectrum.Proofs.BlockDecomposition.ExistsHighestWeightHermitianDerivation](https://riemannhypothesissolved.com/cluster/k0913-twisted-trace-on-unitary-invariant-maps-is-2-n-via-highest/lean/part-3/#Development.AutomorphicSpectrum.Proofs.BlockDecomposition.ExistsHighestWeightHermitianDerivation)
  - [Formalism.GelfandTransference.HadamardGelfand.Gelfand](https://riemannhypothesissolved.com/cluster/k0913-twisted-trace-on-unitary-invariant-maps-is-2-n-via-highest/lean/part-3/#Formalism.GelfandTransference.HadamardGelfand.Gelfand)
- 17 import steps from Main:
  - [Development.AutomorphicSpectrum.Proofs.BlockDecomposition.DifferentiableCoeffRowAct](https://riemannhypothesissolved.com/cluster/k0913-twisted-trace-on-unitary-invariant-maps-is-2-n-via-highest/lean/part-3/#Development.AutomorphicSpectrum.Proofs.BlockDecomposition.DifferentiableCoeffRowAct)
  - [Development.AutomorphicSpectrum.Proofs.BlockDecomposition.GelfandInfinitesimalCharacter](https://riemannhypothesissolved.com/cluster/k0913-twisted-trace-on-unitary-invariant-maps-is-2-n-via-highest/lean/part-3/#Development.AutomorphicSpectrum.Proofs.BlockDecomposition.GelfandInfinitesimalCharacter)
  - [Development.AutomorphicSpectrum.Proofs.BlockDecomposition.HasDerivAtMulVec](https://riemannhypothesissolved.com/cluster/k0913-twisted-trace-on-unitary-invariant-maps-is-2-n-via-highest/lean/part-3/#Development.AutomorphicSpectrum.Proofs.BlockDecomposition.HasDerivAtMulVec)
  - [Development.AutomorphicSpectrum.Proofs.BlockDecomposition.LineInverse](https://riemannhypothesissolved.com/cluster/k0913-twisted-trace-on-unitary-invariant-maps-is-2-n-via-highest/lean/part-3/#Development.AutomorphicSpectrum.Proofs.BlockDecomposition.LineInverse)
  - [Development.AutomorphicSpectrum.Proofs.BlockDecomposition.SecondCountableUnitary](https://riemannhypothesissolved.com/cluster/k0913-twisted-trace-on-unitary-invariant-maps-is-2-n-via-highest/lean/part-3/#Development.AutomorphicSpectrum.Proofs.BlockDecomposition.SecondCountableUnitary)

## The files

### Development.AutomorphicSpectrum.Proofs.BlockDecomposition.IntertwinerEqZeroOfVanishOnHighestStatement

13 import steps from Main · 11 lines · Checked against the code · [Open in the Lean viewer](https://riemannhypothesissolved.com/file/Development.AutomorphicSpectrum.Proofs.BlockDecomposition.IntertwinerEqZeroOfVanishOnHighestStatement)

**Restates the vanishing criterion for an intertwiner that kills every highest-weight vector.**

The sole theorem restates the imported criterion for a finite-dimensional complex inner product space whose generators satisfy the matrix-unit commutator relations and G_ab* = G_ba. The direct importers use it to show that the highest-weight projectors sum to the identity and that a commuting endomorphism acting by a scalar on a line containing all highest-weight vectors equals that scalar times the identity.

Key declarations:

- `GlobalTheory.T.intertwiner_eq_zero_of_vanish_on_highest`: A complex-linear map from a finite-dimensional inner product space with adjoint-paired matrix-unit generators is zero if it intertwines those generators and vanishes on every highest-weight vector.

  ```lean
  set_option maxHeartbeats 1000000 in
  theorem _root_.GlobalTheory.T.intertwiner_eq_zero_of_vanish_on_highest : ∀ {n : ℕ} (H V : Type) [NormedAddCommGroup H] [InnerProductSpace ℂ H] [FiniteDimensional ℂ H] [AddCommGroup V] [Module ℂ V] (G : Fin n → Fin n → Module.End ℂ H) (D : Fin n → Fin n → Module.End ℂ V), Formalism.REAL.GlRel G → (∀ a b (x y : H), ⟪G a b x, y⟫_ℂ = ⟪x, G b a y⟫_ℂ) → ∀ R : H →ₗ[ℂ] V, (∀ a b w, R (G a b w) = D a b (R w)) → (∀ (μ : Fin n → ℝ) (v : H), Formalism.REAL.KHighest (fun _ => true) G μ v → R v = 0) → R = 0 := …
  ```

### Development.AutomorphicSpectrum.Proofs.BlockDecomposition.IwasawaParabolicUnitary

13 import steps from Main · 40 lines · Checked against the code · [Open in the Lean viewer](https://riemannhypothesissolved.com/file/Development.AutomorphicSpectrum.Proofs.BlockDecomposition.IwasawaParabolicUnitary)

**Proves that every invertible complex matrix factors as a block lower triangular matrix times a unitary matrix.**

For any nondecreasing level sequence, the blocks are the consecutive groups of indices at the same level. The proof applies QR factorization to the conjugate transpose and then takes adjoints to put the unitary factor on the right. The resulting lower triangular factor is invertible and belongs to the parabolic for the chosen blocks. The direct importer uses this result to prove iwasawa_parabolic_unitary.

Key declarations:

- `GlobalTheory.CompanionTheory.ModelS.exists_Pb_mul_unitary`: For any nondecreasing level sequence, every g in GL(n, ℂ) can be written as g = pk with p in the corresponding block lower triangular parabolic and k in U(n).

  ```lean
  theorem exists_Pb_mul_unitary : ∀ (n : ℕ) (lev : Fin n → ℕ), Monotone lev → ∀ g ∈ GLs n,
      ∃ p ∈ GlobalTheory.CompanionTheory.ModelS.Pb lev, ∃ k : Matrix.unitaryGroup (Fin n) ℂ, g = p * k.1 := …
  ```

### Development.AutomorphicSpectrum.Proofs.BlockDecomposition.KActionSkewAdjointL2

13 import steps from Main · 116 lines · Checked against the code · [Open in the Lean viewer](https://riemannhypothesissolved.com/file/Development.AutomorphicSpectrum.Proofs.BlockDecomposition.KActionSkewAdjointL2)

**Proves that transposing the indices of a unitary Lie algebra generator moves it across the L² pairing.**

For a finite Borel measure on U(n) under which all smooth right derivatives in skew-Hermitian directions integrate to zero, Kf(a,b) and Kf(b,a) are adjoint in the integral pairing. The proof writes each generator as a complex linear combination of two skew-Hermitian right derivatives and applies the product rule to the conjugate of the first function times the second. The direct importer uses this identity to prove k_action_skew_adjoint_l2.

Key declarations:

- `GlobalTheory.CompanionTheory.ModelS.ipK_Kf_transpose`: If all smooth right derivatives in skew-Hermitian directions integrate to zero, moving Kf(a,b) from the first slot of the integral pairing to the second replaces it by Kf(b,a).

  ```lean
  theorem GlobalTheory.CompanionTheory.ModelS.ipK_Kf_transpose : ∀ (n : ℕ) [MeasurableSpace (Matrix.unitaryGroup (Fin n) ℂ)] [BorelSpace (Matrix.unitaryGroup (Fin n) ℂ)] (κ : Measure (Matrix.unitaryGroup (Fin n) ℂ)) [IsFiniteMeasure κ], (∀ u : Mat n → ℂ, ContDiffOn ℝ ∞ u (GLs n) → ∀ X : Mat n, Xᴴ = -X → ∫ k : Matrix.unitaryGroup (Fin n) ℂ, Rd X u k.1 ∂κ = 0) → ∀ (a b : Fin n) (x y : GlobalTheory.CompanionTheory.ModelS.SmF n), GlobalTheory.CompanionTheory.ModelS.ipK κ (GlobalTheory.CompanionTheory.ModelS.Kf a b x) y = GlobalTheory.CompanionTheory.ModelS.ipK κ x (GlobalTheory.CompanionTheory.ModelS.Kf b a y) := …
  ```
- `GlobalTheory.CompanionTheory.ModelS.KHerm.Kf_apply`: On invertible matrices, Kf(a,b) acts as the right derivative in the direction (E_ab − E_ba)/2 minus i times the right derivative in the direction i(E_ab + E_ba)/2.

  ```lean
  theorem Kf_apply (a b : Fin n) (h : SmF n) {g : Mat n} (hg : g ∈ GLs n) :
      (Kf a b h).1 g = Rd (skA a b) h.1 g - Complex.I * Rd (skB a b) h.1 g := …
  ```
- `GlobalTheory.CompanionTheory.ModelS.KHerm.Kf_apply_swap`: Swapping a and b reverses the sign of the antisymmetric matrix direction and preserves the imaginary symmetric direction.

  ```lean
  theorem Kf_apply_swap (a b : Fin n) (h : SmF n) {g : Mat n} (hg : g ∈ GLs n) :
      (Kf b a h).1 g = -Rd (skA a b) h.1 g - Complex.I * Rd (skB a b) h.1 g := …
  ```
- `GlobalTheory.CompanionTheory.ModelS.KHerm.Rd_conj_mul`: For two functions smooth on the invertible locus, the right derivative there of the conjugate of the first times the second is the sum of the conjugated derivative of the first times the second and the conjugated first times the derivative of the second.

  ```lean
  theorem Rd_conj_mul (X : Mat n) {x y : Mat n → ℂ} (hx : ContDiffOn ℝ ∞ x (GLs n)) (hy : ContDiffOn ℝ ∞ y (GLs n))
      {g : Mat n} (hg : g ∈ GLs n) :
      Rd X (fun g => conj (x g) * y g) g = conj (Rd X x g) * y g + conj (x g) * Rd X y g := …
  ```

### Development.AutomorphicSpectrum.Proofs.BlockDecomposition.L2InnerProductHermitianForm

13 import steps from Main · 95 lines · Checked against the code · [Open in the Lean viewer](https://riemannhypothesissolved.com/file/Development.AutomorphicSpectrum.Proofs.BlockDecomposition.L2InnerProductHermitianForm)

**Proves the L² pairing on U(n) is positive semidefinite Hermitian for complex functions smooth on invertible matrices and zero elsewhere.**

For a finite Borel measure on U(n) that gives positive mass to every nonempty open set, the integral pairing is Hermitian and conjugate-linear in its first argument. Compactness and continuity give integrability, and the self-pairing is the integral of the squared modulus. If this integral vanishes, continuity and positivity on open sets force the function to vanish everywhere on U(n). The direct importer uses the combined result to prove l2_inner_product_hermitian_form.

Key declarations:

- `GlobalTheory.CompanionTheory.ModelS.L2InnerProduct.ipK_form`: For a finite Borel measure positive on nonempty open sets, the pairing is Hermitian and positive semidefinite, with zero self-pairing only for functions that vanish on U(n).

  ```lean
  theorem ipK_form : ∀ (n : ℕ) [MeasurableSpace (Matrix.unitaryGroup (Fin n) ℂ)] [BorelSpace (Matrix.unitaryGroup (Fin n) ℂ)] (κ : Measure (Matrix.unitaryGroup (Fin n) ℂ)) [IsFiniteMeasure κ] [κ.IsOpenPosMeasure], (∀ x y : GlobalTheory.CompanionTheory.ModelS.SmF n, conj (GlobalTheory.CompanionTheory.ModelS.ipK κ y x) = GlobalTheory.CompanionTheory.ModelS.ipK κ x y) ∧ (∀ x : GlobalTheory.CompanionTheory.ModelS.SmF n, 0 ≤ (GlobalTheory.CompanionTheory.ModelS.ipK κ x x).re) ∧ (∀ x y z : GlobalTheory.CompanionTheory.ModelS.SmF n, GlobalTheory.CompanionTheory.ModelS.ipK κ (x + y) z = GlobalTheory.CompanionTheory.ModelS.ipK κ x z + GlobalTheory.CompanionTheory.ModelS.ipK κ y z) ∧ (∀ (c : ℂ) (x y : GlobalTheory.CompanionTheory.ModelS.SmF n), GlobalTheory.CompanionTheory.ModelS.ipK κ (c • x) y = conj c * GlobalTheory.CompanionTheory.ModelS.ipK κ x y) ∧ ∀ x : GlobalTheory.CompanionTheory.ModelS.SmF n, GlobalTheory.CompanionTheory.ModelS.ipK κ x x = 0 → ∀ k : Matrix.unitaryGroup (Fin n) ℂ, x.1 k.1 = 0 := …
  ```
- `GlobalTheory.CompanionTheory.ModelS.L2InnerProduct.isCompact_unitary_set`: The unitary matrices form a compact subset of the space of complex square matrices.

  ```lean
  theorem isCompact_unitary_set (n : ℕ) :
      IsCompact ((Matrix.unitaryGroup (Fin n) ℂ : Set (Matrix (Fin n) (Fin n) ℂ))) := …
  ```
- `GlobalTheory.CompanionTheory.ModelS.L2InnerProduct.integrable_integrand`: For two complex-valued matrix functions smooth on the invertible locus and zero elsewhere, the conjugate of the first times the second is integrable over U(n) against any finite Borel measure.

  ```lean
  theorem integrable_integrand (x y : SmF n) :
      Integrable (fun k : Matrix.unitaryGroup (Fin n) ℂ => conj (x.1 k.1) * y.1 k.1) κ := …
  ```
- `GlobalTheory.CompanionTheory.ModelS.L2InnerProduct.ipK_self`: The self-pairing is the integral over U(n) of the squared modulus of the function.

  ```lean
  theorem ipK_self (x : SmF n) :
      ipK κ x x = ((∫ k, ‖x.1 k.1‖ ^ 2 ∂κ : ℝ) : ℂ) := …
  ```
- `GlobalTheory.CompanionTheory.ModelS.L2InnerProduct.eq_zero_of_ipK_self`: For a finite Borel measure positive on every nonempty open set, zero self-pairing implies pointwise vanishing on U(n).

  ```lean
  theorem eq_zero_of_ipK_self [κ.IsOpenPosMeasure] (x : SmF n) (h : ipK κ x x = 0)
      (k : Matrix.unitaryGroup (Fin n) ℂ) : x.1 k.1 = 0 := …
  ```

### Development.AutomorphicSpectrum.Proofs.BlockDecomposition.LieGeneratorsGlRelations

13 import steps from Main · 173 lines · Checked against the code · [Open in the Lean viewer](https://riemannhypothesissolved.com/file/Development.AutomorphicSpectrum.Proofs.BlockDecomposition.LieGeneratorsGlRelations)

**Proves that a real-linear Lie action of complex matrices yields two commuting families of gl(n, ℂ) generators.**

For a real-linear map D that preserves commutators, the combinations (D(Z) ∓ iD(iZ))/2 each preserve commutators, and the mixed commutators vanish. The proof expands these brackets using the commutators of D(Z), D(iZ), D(W), and D(iW). Evaluating on matrix units and taking the negative transpose in the second family gives the standard matrix-unit relations for both generator families.

Key declarations:

- `GlobalTheory.CompanionTheory.GLK.Pair.gl_pair`: For a real-linear bracket-preserving action D, each of the families e1 and e2 satisfies the standard gl(n, ℂ) matrix-unit commutator relations, and every generator in one family commutes with every generator in the other.

  ```lean
  theorem gl_pair : ∀ (n : ℕ) (V : Type) [AddCommGroup V] [Module ℂ V] (D : Mat n → Module.End ℂ V),
      (∀ X Y, D (X + Y) = D X + D Y) → (∀ (r : ℝ) X, D ((r : ℂ) • X) = (r : ℂ) • D X) →
      (∀ X Y, D (X * Y - Y * X) = D X * D Y - D Y * D X) →
      Formalism.REAL.GlRel (e1 D) ∧ Formalism.REAL.GlRel (e2 D) ∧ ∀ a b c d, e1 D a b * e2 D c d = e2 D c d * e1 D a b := …
  ```
- `GlobalTheory.CompanionTheory.GLK.Pair.eP`: Defines the complex-linear part of a real-linear action D by Z ↦ (D(Z) − iD(iZ))/2.

  ```lean
  def eP (D : Mat n → Module.End ℂ V) (Z : Mat n) : Module.End ℂ V :=
    (1 / 2 : ℂ) • (D Z - Complex.I • D (Complex.I • Z))
  ```
- `GlobalTheory.CompanionTheory.GLK.Pair.fP`: Defines the conjugate-linear part of a real-linear action D by Z ↦ (D(Z) + iD(iZ))/2.

  ```lean
  def fP (D : Mat n → Module.End ℂ V) (Z : Mat n) : Module.End ℂ V :=
    (1 / 2 : ℂ) • (D Z + Complex.I • D (Complex.I • Z))
  ```
- `GlobalTheory.CompanionTheory.GLK.Pair.eP_fP_comm`: The values of the two parts of a real-linear bracket-preserving action commute for every pair of matrix arguments.

  ```lean
  theorem eP_fP_comm (hs : ∀ (r : ℝ) X, D ((r : ℂ) • X) = (r : ℂ) • D X)
      (hb : ∀ X Y, D (X * Y - Y * X) = D X * D Y - D Y * D X) (Z W : Mat n) :
      eP D Z * fP D W = fP D W * eP D Z := …
  ```
- `GlobalTheory.CompanionTheory.GLK.Pair.single_brk`: The commutator of matrix units E_ab and E_cd is δ_bc E_ad − δ_da E_cb.

  ```lean
  theorem single_brk (a b c d : Fin n) :
      (Matrix.single a b (1 : ℂ)) * Matrix.single c d 1 - Matrix.single c d (1 : ℂ) * Matrix.single a b 1 =
        (if b = c then Matrix.single a d 1 else 0) - (if d = a then Matrix.single c b 1 else 0) := …
  ```

### Development.AutomorphicSpectrum.Proofs.BlockDecomposition.PartialFractionDiagonalIdentity

13 import steps from Main · 109 lines · Checked against the code · [Open in the Lean viewer](https://riemannhypothesissolved.com/file/Development.AutomorphicSpectrum.Proofs.BlockDecomposition.PartialFractionDiagonalIdentity)

**Proves a partial-fraction formula for a ratio of monic polynomials and its vanishing identity at each numerator root.**

Let P and Q be monic real polynomials of degrees m+1 and m given as products of linear factors, with Q having distinct roots. The proof matches the two leading coefficients to obtain the linear quotient, then interpolates the remainder at the roots of Q to obtain the simple-pole coefficients. When the combined root list is pairwise distinct, evaluating at any root of P gives zero. The direct importer uses this specialization to prove partial_fraction_diagonal_identity.

Key declarations:

- `GlobalTheory.CompanionTheory.RgHe.Frame.prod_eq_partial_fraction`: For distinct roots d′ⱼ of Q, clearing denominators in P/Q = X − c + ∑ⱼ rⱼ/(X − d′ⱼ) gives a polynomial identity, where c is the sum of the roots of P minus the sum of the roots of Q and rⱼ = P(d′ⱼ)/Q′(d′ⱼ).

  ```lean
  theorem prod_eq_partial_fraction {m : ℕ} (d : Fin (m + 1) → ℝ) (d' : Fin m → ℝ)
      (hd' : Function.Injective d') :
      (∏ i, (X - C (d i))) = (X - C (pfX d d')) * (∏ j, (X - C (d' j))) +
        ∑ j, C (pfR d d' j) * ∏ k ∈ univ.erase j, (X - C (d' k)) := …
  ```
- `GlobalTheory.CompanionTheory.RgHe.Frame.pfZero`: If the combined list of roots of P and Q is pairwise distinct, then dᵢ − c + ∑ⱼ rⱼ/(dᵢ − d′ⱼ) = 0 at every root dᵢ of P.

  ```lean
  theorem pfZero {m : ℕ} (d : Fin (m + 1) → ℝ) (d' : Fin m → ℝ)
      (hinj : Function.Injective (Sum.elim d d')) (i : Fin (m + 1)) :
      d i - pfX d d' + ∑ j, pfR d d' j / (d i - d' j) = 0 := …
  ```
- `GlobalTheory.CompanionTheory.RgHe.Frame.degree_sub_lt_of_nextCoeff_eq`: Two monic polynomials of degree m+1 with the same coefficient of Xᵐ differ by a polynomial of degree less than m.

  ```lean
  theorem degree_sub_lt_of_nextCoeff_eq {p q : ℝ[X]} {m : ℕ} (hp : p.Monic) (hq : q.Monic)
      (hpd : p.natDegree = m + 1) (hqd : q.natDegree = m + 1) (hn : p.nextCoeff = q.nextCoeff) :
      (p - q).degree < (m : WithBot ℕ) := …
  ```

### Development.AutomorphicSpectrum.Proofs.BlockDecomposition.ProdPairSumsEqSumPowersetScoreStatement

13 import steps from Main · 8 lines · Checked against the code · [Open in the Lean viewer](https://riemannhypothesissolved.com/file/Development.AutomorphicSpectrum.Proofs.BlockDecomposition.ProdPairSumsEqSumPowersetScoreStatement)

**Restates the expansion of the product of all pairwise sums as a sum of monomials indexed by subsets of pairs.**

The sole theorem restates the imported expansion, in which a subset selects the first index of each included pair and the second index of each excluded pair, and each exponent counts how often its index is selected. The direct importer uses this identity to prove prod_expand in its monomial notation.

Key declarations:

- `GlobalTheory.T.prod_pair_sums_eq_sum_powerset_score`: For any complex numbers z₀, …, zₙ₋₁, the product of zᵢ + zⱼ over i < j equals the sum over all choices of one index per pair, with one monomial per choice and exponents given by the index counts.

  ```lean
  set_option maxHeartbeats 1000000 in
  theorem _root_.GlobalTheory.T.prod_pair_sums_eq_sum_powerset_score : ∀ {n : ℕ} (z : Fin n → ℂ), ∏ p ∈ prs n, (z p.1 + z p.2) = ∑ T ∈ (prs n).powerset, ∏ a, z a ^ score T a := …
  ```

### Development.AutomorphicSpectrum.Proofs.BlockDecomposition.RightDerivativeLowerBlockAtOne

13 import steps from Main · 47 lines · Checked against the code · [Open in the Lean viewer](https://riemannhypothesissolved.com/file/Development.AutomorphicSpectrum.Proofs.BlockDecomposition.RightDerivativeLowerBlockAtOne)

**Computes the right derivative at the identity of a parabolically equivariant function in a lower-block direction.**

If h transforms under left multiplication by the parabolic through the multiplier f, the right derivative of h at the identity in a parabolic direction X is the corresponding derivative of f times h(𝟙). The proof uses openness of the invertible locus to keep 𝟙 + tX in the parabolic near t = 0, then differentiates the equivariance identity along that curve. The direct importer uses this result to prove right_derivative_lower_block_at_one.

Key declarations:

- `GlobalTheory.CompanionTheory.ModelS.DR_one_of_eqv`: For smooth f and h satisfying parabolic equivariance with multiplier f and with f(𝟙) = 1, one has (D_X h)(𝟙) = (D_X f)(𝟙) h(𝟙) whenever X_ab = 0 for lev(a) < lev(b).

  ```lean
  theorem DR_one_of_eqv (n : ℕ) (lev : Fin n → ℕ) (f h : SmF n) (_hf : f ∈ Eqv lev f.1) (_hf1 : f.1 1 = 1)
      (hh : h ∈ Eqv lev f.1) (X : Mat n) (hX : ∀ a b, lev a < lev b → X a b = 0) :
      (DR X h).1 1 = (DR X f).1 1 * h.1 1 := …
  ```

### Development.AutomorphicSpectrum.Proofs.BlockDecomposition.RightDerivativePreservesEquivariant

13 import steps from Main · 31 lines · Checked against the code · [Open in the Lean viewer](https://riemannhypothesissolved.com/file/Development.AutomorphicSpectrum.Proofs.BlockDecomposition.RightDerivativePreservesEquivariant)

**Proves that right differentiation in any matrix direction preserves left parabolic equivariance.**

The lemma shows that smooth functions transforming under left multiplication by the block parabolic through a fixed scalar multiplier retain that multiplier after right differentiation. The proof differentiates the equivariance identity in the direction gX and uses the chain rule to transport this direction under left multiplication by p to (pg)X. The direct importer uses the lemma to prove right_derivative_preserves_equivariant.

Key declarations:

- `GlobalTheory.CompanionTheory.ModelS.DR_mem_Eqv`: If a smooth function h satisfies h(pg) = φ(p)h(g) for all p in the level parabolic and all invertible g, then its right derivative D_X h satisfies the same identity for every complex matrix X.

  ```lean
  theorem DR_mem_Eqv (n : ℕ) (lev : Fin n → ℕ) (φ : Mat n → ℂ) (X : Mat n) (h : GlobalTheory.CompanionTheory.ModelS.SmF n) :
      h ∈ GlobalTheory.CompanionTheory.ModelS.Eqv lev φ → GlobalTheory.CompanionTheory.ModelS.DR X h ∈ GlobalTheory.CompanionTheory.ModelS.Eqv lev φ := …
  ```

### Development.AutomorphicSpectrum.Proofs.BlockDecomposition.RightDerivativeRealLieHom

13 import steps from Main · 55 lines · Checked against the code · [Open in the Lean viewer](https://riemannhypothesissolved.com/file/Development.AutomorphicSpectrum.Proofs.BlockDecomposition.RightDerivativeRealLieHom)

**Proves right differentiation represents the real Lie algebra of GL(n, ℂ) on smooth functions there extended by zero to singular matrices.**

The map from a complex matrix direction to its right differentiation operator is real-linear and preserves commutators. The proof checks the identities on GL(n, ℂ), whose openness lets iterated derivatives be computed before extending by zero to singular matrices. The direct importer uses the combined result to prove right_derivative_real_lie_hom.

Key declarations:

- `GlobalTheory.CompanionTheory.ModelS.LieAct.DR_lie`: The assignment X ↦ D_X is additive, homogeneous over ℝ, and preserves Lie brackets.

  ```lean
  theorem DR_lie (n : ℕ) : (∀ X Y : Mat n, DR (X + Y) = DR X + DR Y) ∧
      (∀ (r : ℝ) (X : Mat n), DR ((r : ℂ) • X) = (r : ℂ) • DR X) ∧
      (∀ X Y : Mat n, DR (X * Y - Y * X) = DR X * DR Y - DR Y * DR X) := …
  ```
- `GlobalTheory.CompanionTheory.ModelS.LieAct.DR_bracket`: The commutator D_X D_Y − D_Y D_X equals right differentiation in the matrix direction XY − YX.

  ```lean
  theorem DR_bracket (X Y : Mat n) : DR (X * Y - Y * X) = DR X * DR Y - DR Y * DR X := …
  ```
- `GlobalTheory.CompanionTheory.ModelS.LieAct.Rd_DR`: At an invertible matrix, the right derivative of a zero-extended right derivative agrees with the corresponding iterated right derivative.

  ```lean
  theorem Rd_DR (X Y : Mat n) (h : SmF n) {g : Mat n} (hg : g ∈ GLs n) :
      Rd X (DR Y h).1 g = Rd X (Rd Y h.1) g := …
  ```
- `GlobalTheory.CompanionTheory.ModelS.LieAct.SmF_ext`: Two smooth functions on the invertible locus extended by zero to singular matrices are equal if they agree on the invertible locus.

  ```lean
  theorem SmF_ext {a b : SmF n} (h : ∀ g ∈ GLs n, a.1 g = b.1 g) : a = b := …
  ```

### Development.AutomorphicSpectrum.Proofs.BlockDecomposition.ScoreRigidityPermEqOneStatement

13 import steps from Main · 8 lines · Checked against the code · [Open in the Lean viewer](https://riemannhypothesissolved.com/file/Development.AutomorphicSpectrum.Proofs.BlockDecomposition.ScoreRigidityPermEqOneStatement)

**Restates the tournament-score rigidity theorem that forces the permutation and pair subset to be the reference choices.**

The sole theorem restates an imported rigidity result for scores that count first endpoints of included pairs and second endpoints of excluded pairs, with the reference subset consisting of increasing pairs whose endpoints lie at distinct levels. The direct importer uses it in step_unique to isolate a single term in a coefficient calculation.

Key declarations:

- `GlobalTheory.T.score_rigidity_perm_eq_one`: For nondecreasing levels and a strictly decreasing integer sequence L, if L(a) + a and score(T₀)(a) − a are constant within each level and T is a subset of the increasing pairs, then score(T)(a) = score(T₀)(a) + 2(L(a) − L(σ(a))) for every index a forces σ to be the identity and T = T₀, where T₀ is the reference subset.

  ```lean
  set_option maxHeartbeats 1000000 in
  theorem _root_.GlobalTheory.T.score_rigidity_perm_eq_one : ∀ {n : ℕ} (lev : Fin n → ℕ), Monotone lev → ∀ L : Fin n → ℤ, StrictAnti L → (∀ a b, lev a = lev b → L a - L b = ((b : ℕ) : ℤ) - ((a : ℕ) : ℤ)) → (∀ a b, lev a = lev b → score (tZero lev) a - ((a : ℕ) : ℤ) = score (tZero lev) b - ((b : ℕ) : ℤ)) → ∀ (σ : Equiv.Perm (Fin n)) (T : Finset (Fin n × Fin n)), T ⊆ prs n → (∀ a, score T a = score (tZero lev) a + 2 * (L a - L (σ a))) → σ = 1 ∧ T = tZero lev := …
  ```

### Development.AutomorphicSpectrum.Proofs.BlockDecomposition.ScoreTZeroEqLevelCountStatement

13 import steps from Main · 8 lines · Checked against the code · [Open in the Lean viewer](https://riemannhypothesissolved.com/file/Development.AutomorphicSpectrum.Proofs.BlockDecomposition.ScoreTZeroEqLevelCountStatement)

**Restates the formula for the reference tournament score in terms of the numbers of indices at higher and lower levels.**

The sole theorem restates the imported score formula for the subset of increasing pairs whose endpoints have different levels, counting first endpoints for pairs in the subset and second endpoints for the remaining pairs. The direct importer uses the formula to show that the reference score minus the index is constant within each level, as required by its score rigidity argument.

Key declarations:

- `GlobalTheory.T.score_tZero_eq_level_count`: For a nondecreasing level sequence, the reference score at index a is its zero-based index plus the number of indices at strictly higher levels minus the number at strictly lower levels.

  ```lean
  set_option maxHeartbeats 1000000 in
  theorem _root_.GlobalTheory.T.score_tZero_eq_level_count : ∀ {n : ℕ} (lev : Fin n → ℕ), Monotone lev → ∀ a : Fin n, score (tZero lev) a = ((univ.filter fun b => lev a < lev b).card : ℤ) - ((univ.filter fun b => lev b < lev a).card : ℤ) + ((a : ℕ) : ℤ) := …
  ```

### Development.AutomorphicSpectrum.Proofs.BlockDecomposition.SpinGlRelationsAdjointStatement

13 import steps from Main · 11 lines · Checked against the code · [Open in the Lean viewer](https://riemannhypothesissolved.com/file/Development.AutomorphicSpectrum.Proofs.BlockDecomposition.SpinGlRelationsAdjointStatement)

**Restates the matrix-unit commutation and adjoint relations for the spin action associated with Clifford matrices.**

The sole theorem restates the imported result for spin generators formed as quadratic sums of Clifford matrices with a scalar diagonal correction. The direct importers use the relations to construct a map from the spin space by matching lowering words and to check the commutation and adjoint hypotheses for a tensor action involving the dual spin space.

Key declarations:

- `GlobalTheory.T.spin_gl_relations_adjoint`: If the matrices c_ab satisfy the Clifford anticommutation relations and c_ab† = c_ba, then the associated spin generators S_ab satisfy the standard gl(n, ℂ) matrix-unit commutator relations and S_ab† = S_ba.

  ```lean
  set_option maxHeartbeats 1000000 in
  theorem _root_.GlobalTheory.T.spin_gl_relations_adjoint : ∀ {n : ℕ} {ι : Type} [Fintype ι] [DecidableEq ι] (c : Fin n → Fin n → Matrix ι ι ℂ), IsCliff c →
      Formalism.REAL.GlRel (spinM c) ∧ ∀ a b, (spinM c a b)ᴴ = spinM c b a := …
  ```

### Development.AutomorphicSpectrum.Proofs.BlockDecomposition.TorCharInjective

13 import steps from Main · 94 lines · Checked against the code · [Open in the Lean viewer](https://riemannhypothesissolved.com/file/Development.AutomorphicSpectrum.Proofs.BlockDecomposition.TorCharInjective)

**Proves that integer weights give distinct diagonal torus characters and that the dual weight spaces form a direct sum.**

Distinct integer weights are separated by a diagonal unitary with a single nontrivial entry, chosen so that the two character values have ratio −1. The dual actions of diagonal unitaries commute, and each dual weight space lies in the joint generalized eigenspace for its character. Independence of these joint spaces gives the direct-sum property. The direct importer uses this independence to deduce that only finitely many dual weights occur and to apply a trace identity.

Key declarations:

- `GlobalTheory.CompanionTheory.RealCount.Tope.torChar`: The diagonal torus character of an integer weight μ is the product ∏ₐ zₐ^μₐ on tuples of unit-modulus complex numbers.

  ```lean
  def torChar (μ : Fin n → ℤ) (z : TorPt n) : ℂ := ∏ a, z.1 a ^ μ a
  ```
- `GlobalTheory.CompanionTheory.RealCount.Tope.torChar_injective`: Two integer weights that give the same character on the entire diagonal unitary torus are equal.

  ```lean
  theorem torChar_injective : Function.Injective (torChar (n := n)) := …
  ```
- `GlobalTheory.CompanionTheory.RealCount.Tope.dualAct_comm`: The operators on the continuous dual induced by any two diagonal unitaries commute.

  ```lean
  theorem dualAct_comm (E : KMod n) (z w : TorPt n) : Commute (dualAct E (diagU z)) (dualAct E (diagU w)) := …
  ```
- `GlobalTheory.CompanionTheory.RealCount.Tope.wtDual_le_joint`: The dual weight space for μ is contained in the intersection of the generalized eigenspaces of the diagonal dual actions at the values of the character of μ.

  ```lean
  theorem wtDual_le_joint (E : KMod n) (μ : Fin n → ℤ) :
      wtDual E μ ≤ ⨅ z : TorPt n, (dualAct E (diagU z)).maxGenEigenspace (torChar μ z) := …
  ```
- `GlobalTheory.CompanionTheory.RealCount.Tope.wtDual_iSupIndep`: The sum of the dual weight spaces indexed by integer weights is direct.

  ```lean
  theorem wtDual_iSupIndep : ∀ {n : ℕ} (E : KMod n), iSupIndep (wtDual E) := …
  ```

### Development.AutomorphicSpectrum.Proofs.BlockDecomposition.UnitaryEuclideanModelStatement

13 import steps from Main · 11 lines · Checked against the code · [Open in the Lean viewer](https://riemannhypothesissolved.com/file/Development.AutomorphicSpectrum.Proofs.BlockDecomposition.UnitaryEuclideanModelStatement)

**Restates the Euclidean model for the contragredient of a continuous unitary U(n)-action on a finite-dimensional complex inner-product space.**

The sole theorem restates the imported construction of a complex-linear identification of the continuous dual with standard Euclidean space, carrying the contragredient action to a continuous norm-preserving action. The direct importers use this model to obtain Lie algebra generators for dual-weight and trace arguments, extend maps prescribed on highest-weight spaces, and construct invariant complements by orthogonality.

Key declarations:

- `GlobalTheory.T.unitary_euclidean_model`: For a continuous unitary representation ρ of U(n) on a finite-dimensional complex inner-product space V, there is a complex-linear isomorphism from its continuous dual to standard ℂ^dim(V) that intertwines ξ ↦ ξ ∘ ρ(k⁻¹) with a continuous unitary representation.

  ```lean
  set_option maxHeartbeats 1000000 in
  theorem _root_.GlobalTheory.T.unitary_euclidean_model : ∀ {n : ℕ} (E : KMod n), ∃ (e : (E.V →L[ℂ] ℂ) ≃ₗ[ℂ] EuclideanSpace ℂ (Fin (Module.finrank ℂ E.V))) (ρ' : Matrix.unitaryGroup (Fin n) ℂ →* (EuclideanSpace ℂ (Fin (Module.finrank ℂ E.V)) →L[ℂ] EuclideanSpace ℂ (Fin (Module.finrank ℂ E.V)))), Continuous ρ' ∧ (∀ k v, ‖ρ' k v‖ = ‖v‖) ∧ ∀ k ξ, e (ξ ∘L E.ρ k⁻¹) = ρ' k (e ξ) := …
  ```

### Development.AutomorphicSpectrum.Proofs.BlockDecomposition.VandermondeSquaresStatement

13 import steps from Main · 8 lines · Checked against the code · [Open in the Lean viewer](https://riemannhypothesissolved.com/file/Development.AutomorphicSpectrum.Proofs.BlockDecomposition.VandermondeSquaresStatement)

**Restates the factorization of the Vandermonde determinant in squared variables by the original Vandermonde determinant.**

The sole theorem restates the imported difference-of-squares factorization for Vandermonde determinants with columns ordered by decreasing exponent. The direct importer uses the factorization to rewrite the denominator in its coefficient calculation.

Key declarations:

- `GlobalTheory.T.vandermonde_squares`: If V(z) = det(zᵢ^(n−1−j)) with indices starting at zero, then V(z²) = V(z) ∏_{i<j}(zᵢ + zⱼ) for every complex tuple z.

  ```lean
  set_option maxHeartbeats 1000000 in
  theorem _root_.GlobalTheory.T.vandermonde_squares : ∀ {n : ℕ} (z : Fin n → ℂ), (Matrix.of fun i j : Fin n => (z i ^ 2) ^ (n - 1 - (j : ℕ))).det = (Matrix.of fun i j : Fin n => z i ^ (n - 1 - (j : ℕ))).det * ∏ p ∈ prs n, (z p.1 + z p.2) := …
  ```

### Development.AutomorphicSpectrum.Proofs.BlockDecomposition.WeightPolynomialTraceIdentityStatement

13 import steps from Main · 16 lines · Checked against the code · [Open in the Lean viewer](https://riemannhypothesissolved.com/file/Development.AutomorphicSpectrum.Proofs.BlockDecomposition.WeightPolynomialTraceIdentityStatement)

**Restates two Laurent polynomial identities for ordinary and twisted traces on dual weight spaces.**

The sole theorem restates the imported conversion of the prescribed Lefschetz trace formulas into Laurent polynomial identities, assuming the dual is the direct sum of its weight spaces. The direct importer uses the ordinary trace identity to prove that every weight with a nonzero dual weight space is dominated by m₀(λ) for antitone λ.

Key declarations:

- `GlobalTheory.T.weight_polynomial_trace_identity`: Under the Lefschetz trace and direct-sum hypotheses, multiplying the ordinary and twisted weight-trace polynomials, both formed over a finite set containing every weight with a nonzero dual weight space, by Aδ(z)² and Aδ(z²), respectively, gives the same alternant expressions with δ replaced by λ + δ and multiplied by ∏ₐ,ᵦ(1 + zₐ/zᵦ), where A denotes the signed monomial alternant and δ = (n−1, …, 0).

  ```lean
  set_option maxHeartbeats 1000000 in
  theorem _root_.GlobalTheory.T.weight_polynomial_trace_identity : ∀ {n : ℕ} (lam : Fin n → ℤ) (E : KMod n) (T : E.V →L[ℂ] E.V), IsLefK lam E T →
      (⨆ μ, wtDual E μ) = ⊤ → iSupIndep (wtDual E) → ∀ s : Finset (Fin n → ℤ), (∀ μ, wtDual E μ ≠ ⊥ → μ ∈ s) →
        cPoly s (fun μ => trOn (wtDual E μ) (dualT E 1 : (E.V →L[ℂ] ℂ) →ₗ[ℂ] (E.V →L[ℂ] ℂ))) * altL (delZ n) ^ 2 =
            pPL n * altL (lam + delZ n) ^ 2 ∧
          cPoly s (fun μ => trOn (wtDual E μ) (dualT E T : (E.V →L[ℂ] ℂ) →ₗ[ℂ] (E.V →L[ℂ] ℂ))) * frL n (altL (delZ n)) =
            pPL n * frL n (altL (lam + delZ n)) := …
  ```

### Development.AutomorphicSpectrum.Proofs.BlockDecomposition.WeylDenominatorProductStatement

13 import steps from Main · 8 lines · Checked against the code · [Open in the Lean viewer](https://riemannhypothesissolved.com/file/Development.AutomorphicSpectrum.Proofs.BlockDecomposition.WeylDenominatorProductStatement)

**Re-exports a product identity for nonzero complex coordinates under GlobalTheory.T.**

For n nonzero complex coordinates, the product of 1 + z_a/z_b over all ordered pairs (a,b), multiplied by the coordinate product to the (n−1)st power, equals 2^n times the square of the product of z_a + z_b over a < b, with n−1 taken in the natural numbers. The theorem directly applies the imported product identity. HarmonicWeightsCoefficient uses it to prove flip_prod.

Key declarations:

- `GlobalTheory.T.weyl_denominator_product`: For n nonzero complex coordinates, the product of 1 + z_a/z_b over all ordered pairs (a,b), multiplied by the (n−1)st power of the coordinate product, equals 2^n times the squared product of pairwise sums over a < b.

  ```lean
  set_option maxHeartbeats 1000000 in
  theorem _root_.GlobalTheory.T.weyl_denominator_product : ∀ {n : ℕ} (z : Fin n → ℂ), (∀ a, z a ≠ 0) → (∏ a, ∏ b, (1 + z a / z b)) * (∏ a, z a) ^ (n - 1) = 2 ^ n * (∏ p ∈ prs n, (z p.1 + z p.2)) ^ 2 := …
  ```

### Development.AutomorphicArithmetic.IntegralCasts.CapelliIdentities.LowerIff

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

**Packages a finite-order lemma identifying a lower set by its cardinality.**

The proof reverses an existing equivalence for a finite chain. The shifted-weight permutation proof uses the lemma to locate the endpoints of each constant block of a nondecreasing sequence before reversing that block.

Key declarations:

- `UpperTheory.Reformulated.B.Re1.lower_iff`: A point of {0, …, n−1} belongs to a decidable lower set exactly when its index is smaller than the cardinality of the set.

  ```lean
  theorem UpperTheory.Reformulated.B.Re1.lower_iff :
      ∀ {n : ℕ} (P : Fin n → Prop) [inst : DecidablePred P],
      (∀ (a b : Fin n), a ≤ b → P b → P a) → ∀ (b : Fin n), P b ↔ (↑b : ℕ) < (Finset.filter P Finset.univ).card := …
  ```

### Development.AutomorphicSpectrum.Proofs.BlockDecomposition.DerivativeUnitaryAction

14 import steps from Main · 125 lines · Checked against the code · [Open in the Lean viewer](https://riemannhypothesissolved.com/file/Development.AutomorphicSpectrum.Proofs.BlockDecomposition.DerivativeUnitaryAction)

**Derives U(n)-equivariance from intertwining infinitesimal generators under orbit derivative and adjoint hypotheses.**

A complex-linear map from a finite-dimensional source to a unitary target intertwines the U(n) actions given the prescribed orbit derivatives, generator intertwining, and target adjoint relations. Every target vector lies in a finite-dimensional subspace stable under the action and generators with the prescribed derivatives. Writing each unitary matrix as exp(X) for skew-Hermitian X lets the proof use exp(tX) to translate the derivatives from zero to every t. Skew-symmetry of the target generator makes the inner product of the two evolved vectors constant, yielding equivariance at t = 1. The direct importer restates the theorem as GlobalTheory.T.derivative_unitary_action.

Key declarations:

- `GlobalTheory.CompanionTheory.RealCount.IntegrateK.exp_smul_mem_unitary`: For skew-Hermitian X and real t, the matrix exp(tX) is unitary.

  ```lean
  theorem exp_smul_mem_unitary (X : Matrix (Fin n) (Fin n) ℂ) (hX : Xᴴ = -X) (s : ℝ) :
      NormedSpace.exp ((s : ℂ) • X) ∈ Matrix.unitaryGroup (Fin n) ℂ := …
  ```
- `GlobalTheory.CompanionTheory.RealCount.IntegrateK.onePar`: Defines the curve t ↦ exp(tX) in U(n) for skew-Hermitian X.

  ```lean
  def onePar (X : Matrix (Fin n) (Fin n) ℂ) (hX : Xᴴ = -X) (s : ℝ) : Matrix.unitaryGroup (Fin n) ℂ :=
    ⟨NormedSpace.exp ((s : ℂ) • X), exp_smul_mem_unitary X hX s⟩
  ```
- `GlobalTheory.CompanionTheory.RealCount.IntegrateK.onePar_add`: The curve sends addition of real parameters to multiplication of unitary matrices.

  ```lean
  theorem onePar_add (X : Matrix (Fin n) (Fin n) ℂ) (hX : Xᴴ = -X) (h s : ℝ) :
      onePar X hX (h + s) = onePar X hX h * onePar X hX s := …
  ```
- `GlobalTheory.CompanionTheory.RealCount.IntegrateK.inner_sum_left`: If K_ab and K_ba are adjoint in the inner-product pairing, then the operator ∑_{a,b} X_ab K_ab is skew-symmetric for skew-Hermitian X.

  ```lean
  theorem inner_sum_left {V : Type} [NormedAddCommGroup V] [InnerProductSpace ℂ V]
      (Kf : Fin n → Fin n → Module.End ℂ V)
      (hs : ∀ a b (x y : V), ⟪Kf a b x, y⟫_ℂ = ⟪x, Kf b a y⟫_ℂ)
      (X : Matrix (Fin n) (Fin n) ℂ) (hX : Xᴴ = -X) (x y : V) :
      ⟪∑ a, ∑ b, X a b • Kf a b x, y⟫_ℂ = -⟪x, ∑ a, ∑ b, X a b • Kf a b y⟫_ℂ := …
  ```
- `GlobalTheory.CompanionTheory.RealCount.IntegrateK.intertwines_unitary`: A complex-linear map from a finite-dimensional source to an inner-product-preserving target intertwines the U(n) actions if it intertwines every generator, the target obeys the adjoint relations, and the prescribed orbit derivatives hold on the source and on finite-dimensional target subspaces stable under the action and all generators and containing each target vector.

  ```lean
  theorem intertwines_unitary : ∀ {n : ℕ} (H V : Type) [NormedAddCommGroup H] [InnerProductSpace ℂ H] [FiniteDimensional ℂ H] [NormedAddCommGroup V] [InnerProductSpace ℂ V] (ρ : Matrix.unitaryGroup (Fin n) ℂ →* (H →L[ℂ] H)) (G : Fin n → Fin n → Module.End ℂ H), (∀ (X : Matrix (Fin n) (Fin n) ℂ) (γ : ℝ → Matrix.unitaryGroup (Fin n) ℂ), Xᴴ = -X → (∀ t : ℝ, (γ t).1 = NormedSpace.exp ((t : ℂ) • X)) → ∀ w : H, HasDerivAt (fun t : ℝ => ρ (γ t) w) (∑ a, ∑ b, X a b • G a b w) 0) → ∀ (σ : Matrix.unitaryGroup (Fin n) ℂ →* (V →ₗ[ℂ] V)) (Kf : Fin n → Fin n → Module.End ℂ V), IsDerivK σ Kf → (∀ a b (x y : V), ⟪Kf a b x, y⟫_ℂ = ⟪x, Kf b a y⟫_ℂ) → ∀ T : H →ₗ[ℂ] V, (∀ a b w, T (G a b w) = Kf a b (T w)) → ∀ k w, T (ρ k w) = σ k (T w) := …
  ```

### Development.AutomorphicSpectrum.Proofs.BlockDecomposition.DetOneAddSingle

14 import steps from Main · 468 lines · Checked against the code · [Open in the Lean viewer](https://riemannhypothesissolved.com/file/Development.AutomorphicSpectrum.Proofs.BlockDecomposition.DetOneAddSingle)

**Factors the induced model function and computes its infinitesimal action on determinant-weighted polynomials.**

For an antitone integral weight λ and a level function satisfying IsLev, the induced model function on GL_n(ℂ) factors as a product of Gram determinants to integer powers, a determinant power, and a polynomial in the entries. The Gram factor has zero derivative in skew-Hermitian directions gX, since along g(𝟙+tX) it depends on t². The identity for det(𝟙+tE_ab) gives the scalar contribution mδ_ab, and the remaining action is the degree-preserving operator ∑_c x_ca ∂/∂x_cb. InducedFunctionKFinite uses these formulas to put the model function in a finite-dimensional subspace stable under the infinitesimal operators.

Key declarations:

- `GlobalTheory.CompanionTheory.ModelS.FFin.det_one_add_single`: For a matrix unit E_ab and complex t, det(𝟙+tE_ab) = 1+tδ_ab.

  ```lean
  theorem det_one_add_single (a b : Fin n) (t : ℂ) :
      (1 + t • Matrix.single a b (1 : ℂ) : Mat n).det = 1 + if a = b then t else 0 := …
  ```
- `GlobalTheory.CompanionTheory.ModelS.FFin.Qf_kill`: At an invertible g, the real differential of the Gram determinant product Qf annihilates gX for every skew-Hermitian X.

  ```lean
  theorem Qf_kill (e : Fin n → ℤ) (X : Mat n) (hX : Xᴴ = -X) {g : Mat n} (hg : g ∈ GLs n)
      (hd : DifferentiableAt ℝ (Qf e) g) : fderiv ℝ (Qf e) g (g * X) = 0 := …
  ```
- `GlobalTheory.CompanionTheory.ModelS.FFin.Kf_wf`: On invertible matrices, Kf_ab acts on Qf·det^m·p by replacing p with mδ_ab p + Tp_ab p.

  ```lean
  theorem Kf_wf (e : Fin n → ℤ) (m : ℤ) (p : MvPolynomial (Fin n × Fin n) ℂ) (w : GlobalTheory.CompanionTheory.ModelS.SmF n)
      (hw : w.1 = wf e m p) (a b : Fin n) {g : Mat n} (hg : g ∈ GLs n) :
      (GlobalTheory.CompanionTheory.ModelS.Kf a b w).1 g =
        Qf e g * g.det ^ m * ((if a = b then (m : ℂ) else 0) * evP p g + evP (Tp a b p) g) := …
  ```
- `GlobalTheory.CompanionTheory.ModelS.FFin.fRaw_factor`: For a weakly decreasing integral weight and compatible levels, the raw model function on invertible matrices is Qf times an integer determinant power times a polynomial in the entries.

  ```lean
  theorem fRaw_factor (lam : Fin n → ℤ) (hl : Antitone lam) (lev : Fin n → ℕ) (hlev : IsLev lam lev) :
      ∃ (m : ℤ) (p : MvPolynomial (Fin n × Fin n) ℂ), ∀ g ∈ GLs n,
        GlobalTheory.CompanionTheory.ModelS.fRaw lam lev g =
          Qf (GlobalTheory.CompanionTheory.ModelS.dif (GlobalTheory.CompanionTheory.ModelS.yZ lam lev)) g * g.det ^ m * evP p g := …
  ```
- `GlobalTheory.CompanionTheory.ModelS.FFin.Tp_mem`: The polynomial operator Tp_ab preserves every subspace of bounded total degree.

  ```lean
  theorem Tp_mem (a b : Fin n) (d : ℕ) {q : MvPolynomial (Fin n × Fin n) ℂ}
      (hq : q ∈ MvPolynomial.restrictTotalDegree (Fin n × Fin n) ℂ d) :
      Tp a b q ∈ MvPolynomial.restrictTotalDegree (Fin n × Fin n) ℂ d := …
  ```

### Development.AutomorphicSpectrum.Proofs.BlockDecomposition.DominanceOfWeylCharacterCoeff

14 import steps from Main · 315 lines · Checked against the code · [Open in the Lean viewer](https://riemannhypothesissolved.com/file/Development.AutomorphicSpectrum.Proofs.BlockDecomposition.DominanceOfWeylCharacterCoeff)

**Derives dominance bounds for Laurent exponents from a product identity involving squared Weyl alternants.**

Let A(v) be the signed Laurent sum over coordinate permutations of v and δ = (n−1,…,0). If pA(δ)² = (∏_{a,b}(1+z_a/z_b))A(λ+δ)² for weakly decreasing λ, every exponent of p has initial partial sums bounded by those of 2λ+(n−1,n−3,…,1−n), with equal total sum. Lexicographically refined leading terms prevent cancellation at the maximum of each additive functional, and the rearrangement inequality bounds the alternants. Initial-segment indicators and the constant weight −1 give the dominance conditions. The direct importer restates the result as GlobalTheory.T.dominance_of_weyl_character_coeff.

Key declarations:

- `GlobalTheory.CompanionTheory.RealCountG.DomA.exists_top_add`: For two nonzero Laurent polynomials and any additive integer functional, one can choose a maximizing support exponent in each whose sum has nonzero coefficient in the product.

  ```lean
  theorem exists_top_add (φ : (Fin n → ℤ) →+ ℤ) (f g : LP n) (hf : f ≠ 0) (hg : g ≠ 0) :
      ∃ a b, f.coeff a ≠ 0 ∧ g.coeff b ≠ 0 ∧ (f * g).coeff (a + b) ≠ 0 ∧
        (∀ x, f.coeff x ≠ 0 → φ x ≤ φ a) ∧ (∀ y, g.coeff y ≠ 0 → φ y ≤ φ b) := …
  ```
- `GlobalTheory.CompanionTheory.RealCountG.DomA.bd_altL`: For weakly decreasing w and v, every exponent of A(v) has dot product with w at most w·v.

  ```lean
  theorem bd_altL (w m : Fin n → ℤ) (hw : Antitone w) (hm : Antitone m) :
      Bd (phw w) (altL m) (phw w m) := …
  ```
- `GlobalTheory.CompanionTheory.RealCountG.DomA.coeff_altL_delZ`: The coefficient of the staircase exponent δ in its alternant A(δ) is one.

  ```lean
  theorem coeff_altL_delZ : (altL (delZ n)).coeff (delZ n) = 1 := …
  ```
- `GlobalTheory.CompanionTheory.RealCountG.DomA.phw_le`: Under the Laurent product identity, every support exponent μ of p satisfies w·μ ≤ 2w·λ + ∑_{a,b} max(0,w_a−w_b) for weakly decreasing integral w.

  ```lean
  theorem phw_le (w : Fin n → ℤ) (hw : Antitone w) (lam : Fin n → ℤ) (hlam : Antitone lam) (p : LP n)
      (h : p * altL (delZ n) ^ 2 = pPL n * altL (lam + delZ n) ^ 2) (μ : Fin n → ℤ) (hμ : p.coeff μ ≠ 0) :
      phw w μ ≤ (∑ a, ∑ b, max 0 (w a - w b)) + 2 * phw w lam := …
  ```
- `GlobalTheory.CompanionTheory.RealCountG.DomA.domLE_of_mul_eq`: Under the Laurent product identity, every support exponent μ of p lies below 2λ+(n−1,n−3,…,1−n) in dominance order, using the coordinates in their given order.

  ```lean
  theorem domLE_of_mul_eq : ∀ {n : ℕ} (lam : Fin n → ℤ), Antitone lam → ∀ p : LP n,
      p * altL (delZ n) ^ 2 = pPL n * altL (lam + delZ n) ^ 2 →
      ∀ μ, p.coeff μ ≠ 0 → DomLE (wtR μ) (m0 lam) := …
  ```

### Development.AutomorphicSpectrum.Proofs.BlockDecomposition.DualWeightSpacesSpan

14 import steps from Main · 211 lines · Checked against the code · [Open in the Lean viewer](https://riemannhypothesissolved.com/file/Development.AutomorphicSpectrum.Proofs.BlockDecomposition.DualWeightSpacesSpan)

**Proves that the integral weight spaces of the diagonal torus span the dual of a finite-dimensional unitary representation of U(n).**

Restriction to the diagonal torus gives commuting operators whose adjoints are also in the family. Their common eigenspaces span the representation by simultaneous diagonalization of the Hermitian parts. The eigenvalue function of each nonzero common eigenvector is a continuous character, and its restriction to each circle factor is an integer power. The Riesz correspondence sends weight μ to weight −μ for the contragredient action, yielding the spanning theorem restated as GlobalTheory.T.dual_weight_spaces_span.

Key declarations:

- `GlobalTheory.CompanionTheory.RealCount.TorusSpan.torus`: Sends an n-tuple of unit complex numbers to the diagonal unitary matrix with those entries.

  ```lean
  def torus : (Fin n → Circle) →* Matrix.unitaryGroup (Fin n) ℂ where
    toFun t := ⟨diagonal fun a => (t a : ℂ), diag_mem t⟩
    map_one' := Subtype.ext (by simp)
    map_mul' s t := Subtype.ext (by simp [diagonal_mul_diagonal])
  ```
- `GlobalTheory.CompanionTheory.RealCount.TorusSpan.jointEig_top`: The common eigenspaces of a commuting family of operators closed under taking adjoints span the finite-dimensional complex inner product space.

  ```lean
  theorem jointEig_top {V I : Type} [NormedAddCommGroup V] [InnerProductSpace ℂ V] [FiniteDimensional ℂ V]
      (T : I → V →ₗ[ℂ] V) (hc : ∀ i k, Commute (T i) (T k))
      (hadj : ∀ i, ∃ k, ∀ x y, ⟪T i x, y⟫_ℂ = ⟪x, T k y⟫_ℂ) :
      ⨆ χ : I → ℂ, ⨅ i, eigenspace (T i) (χ i) = ⊤ := …
  ```
- `GlobalTheory.CompanionTheory.RealCount.TorusSpan.span_V`: The common eigenspaces for the diagonal torus action span the representation space.

  ```lean
  theorem span_V : ⨆ χ : (Fin n → Circle) → ℂ, ⨅ t, eigenspace (rhoT E t) (χ t) = ⊤ := …
  ```
- `GlobalTheory.CompanionTheory.RealCount.TorusSpan.exists_weight`: Every nonzero common eigenvector for the torus has character t ↦ ∏_a t_a^{μ_a} for some integral weight μ.

  ```lean
  theorem exists_weight {χ : (Fin n → Circle) → ℂ} {v : E.V}
      (hv : v ∈ ⨅ t, eigenspace (rhoT E t) (χ t)) (hv0 : v ≠ 0) :
      ∃ μ : Fin n → ℤ, ∀ t, E.ρ (torus t) v = (∏ a, (t a : ℂ) ^ μ a) • v := …
  ```
- `GlobalTheory.CompanionTheory.RealCount.Tope.iSup_wtDual_eq_top`: The integral weight spaces for the contragredient action of the diagonal torus span the full continuous complex dual.

  ```lean
  theorem iSup_wtDual_eq_top {n : ℕ} (E : KMod n) : (⨆ μ, wtDual E μ) = ⊤ := …
  ```

### Development.AutomorphicSpectrum.Proofs.BlockDecomposition.EuOfDifferentiableAt

14 import steps from Main · 38 lines · Checked against the code · [Open in the Lean viewer](https://riemannhypothesissolved.com/file/Development.AutomorphicSpectrum.Proofs.BlockDecomposition.EuOfDifferentiableAt)

**Proves two local identities for the complex-linear and conjugate-linear directional operators on matrix functions.**

At a point z of complex differentiability, restricting the differential to real scalars and using complex linearity identifies the complex-linear operator with Df(z)[zE_ab] and makes the conjugate-linear operator vanish. Both operators depend only on the germ at z, and InducedFunctionKHighestWeight uses these identities to reduce the infinitesimal action on the induced function to differentiation of its leading-minor factor.

Key declarations:

- `GlobalTheory.CompanionTheory.RmHol.GelCoef.Eu_of_differentiableAt`: If f is complex differentiable at z, then Eu true is the complex differential applied to zE_ab, with E_ab the matrix unit, and Eu false is zero.

  ```lean
  theorem Eu_of_differentiableAt {f : Mat n → ℂ} {z : Mat n} (hf : DifferentiableAt ℂ f z) (a b : Fin n) :
      Eu true a b f z = fderiv ℂ f z (z * Matrix.single a b 1) ∧ Eu false a b f z = 0 := …
  ```
- `GlobalTheory.CompanionTheory.RmHol.GelCoef.Eu_congr_germ`: Functions that agree on a neighborhood of a matrix have the same values there under both Eu operators for every pair of indices.

  ```lean
  theorem Eu_congr_germ {f h : Mat n → ℂ} {g : Mat n} (e : f =ᶠ[𝓝 g] h) (s : Bool) (a b : Fin n) :
      Eu s a b f g = Eu s a b h g := …
  ```

### Development.AutomorphicSpectrum.Proofs.BlockDecomposition.ExistsCompactLieAction

14 import steps from Main · 380 lines · Checked against the code · [Open in the Lean viewer](https://riemannhypothesissolved.com/file/Development.AutomorphicSpectrum.Proofs.BlockDecomposition.ExistsCompactLieAction)

**Constructs the complexified Lie algebra action of a continuous finite-dimensional unitary representation of U(n).**

Along exp(tX) for skew-Hermitian X, the represented subgroup is the exponential of t times its derivative at zero. The Trotter product formula gives additivity of the derivative, and differentiation of conjugation gives bracket preservation. Complexification yields a representation of gl_n(ℂ) that sends conjugate transpose to operator adjoint. The images G_ab of the matrix units give the orbit derivative ∑_{a,b} X_ab G_ab w at zero, and the direct importer restates their existence as GlobalTheory.T.exists_compact_lie_action.

Key declarations:

- `GlobalTheory.CompanionTheory.RealCount.DerivRep.rho_exp`: For a continuous representation ρ of U(n) on a finite-dimensional complex normed space and skew-Hermitian X, ρ(exp(tX)) = exp(t dA(X)), where dA(X) is the derivative at zero.

  ```lean
  theorem rho_exp (hρ : Continuous ρ) (X : (Mn n)) (hX : Xᴴ = -X) (t : ℝ) :
      ρ (eU X hX t) = NormedSpace.exp (t • dA ρ X hX) := …
  ```
- `GlobalTheory.CompanionTheory.RealCount.DerivRep.gL`: Defines the complex-linear extension of the derivative from skew-Hermitian matrices to all complex matrices.

  ```lean
  def gL (hρ : Continuous ρ) : (Mn n) →ₗ[ℂ] (H →L[ℂ] H)
  ```
- `GlobalTheory.CompanionTheory.RealCount.DerivRep.gL_bracket`: The complexified derivative sends matrix commutators to operator commutators.

  ```lean
  theorem gL_bracket (hρ : Continuous ρ) (Z W : (Mn n)) :
      gL (ρ := ρ) hρ (Z * W - W * Z) = gL hρ Z * gL hρ W - gL hρ W * gL hρ Z := …
  ```
- `GlobalTheory.CompanionTheory.RealCount.DerivRep.gL_adj`: For a unitary representation, the image of the conjugate transpose of a matrix is the adjoint of its image.

  ```lean
  theorem gL_adj (hρ : Continuous ρ) (hiso : ∀ k v, ‖ρ k v‖ = ‖v‖) (Z : (Mn n)) (x y : H) :
      ⟪gL hρ Z x, y⟫_ℂ = ⟪x, gL hρ Zᴴ y⟫_ℂ := …
  ```
- `GlobalTheory.CompanionTheory.RealCount.DerivRep.derivative_of_rep`: A continuous finite-dimensional unitary representation admits operators G_ab satisfying the matrix-unit commutator relations, G_ab* = G_ba, and the stated directional derivative formula.

  ```lean
  theorem derivative_of_rep : ∀ {n : ℕ} (H : Type) [NormedAddCommGroup H] [InnerProductSpace ℂ H] [FiniteDimensional ℂ H]
      (ρ : Matrix.unitaryGroup (Fin n) ℂ →* (H →L[ℂ] H)), Continuous ρ → (∀ k v, ‖ρ k v‖ = ‖v‖) →
      ∃ G : Fin n → Fin n → Module.End ℂ H, Formalism.REAL.GlRel G ∧ (∀ a b (x y : H), ⟪G a b x, y⟫_ℂ = ⟪x, G b a y⟫_ℂ) ∧
        (∀ (X : Matrix (Fin n) (Fin n) ℂ) (γ : ℝ → Matrix.unitaryGroup (Fin n) ℂ), Xᴴ = -X →
          (∀ t : ℝ, (γ t).1 = NormedSpace.exp ((t : ℂ) • X)) → ∀ w : H,
          HasDerivAt (fun t : ℝ => ρ (γ t) w) (∑ a, ∑ b, X a b • G a b w) 0) := …
  ```

### Development.AutomorphicSpectrum.Proofs.BlockDecomposition.ExistsHighestWeightInInvariantSubmodule

14 import steps from Main · 131 lines · Checked against the code · [Open in the Lean viewer](https://riemannhypothesissolved.com/file/Development.AutomorphicSpectrum.Proofs.BlockDecomposition.ExistsHighestWeightInInvariantSubmodule)

**Proves that every nonzero invariant subspace of a finite-dimensional gl_n(ℂ)-module with G_ab* = G_ba contains a highest-weight vector.**

The diagonal generators restrict to commuting Hermitian operators on the invariant subspace, so simultaneous diagonalization gives a real joint weight. All joint weights lie in the finite product of the real spectra of the diagonal operators. The matrix-unit commutator relations show that G_ab shifts a weight by e_a−e_b whenever the resulting vector is nonzero. For a < b this shift increases the weight lexicographically, so every raising operator kills a vector of lexicographically maximal weight. The direct importer restates the existence theorem as GlobalTheory.T.exists_highest_weight_in_invariant_submodule.

Key declarations:

- `GlobalTheory.CompanionTheory.RealCountG.HwStable.weight_shift_real`: For a ≠ b, the image of a joint eigenvector of weight μ under G_ab is either zero or a joint eigenvector of weight μ+e_a−e_b.

  ```lean
  theorem weight_shift_real {V : Type} [AddCommGroup V] [Module ℂ V] {K : Fin n → Fin n → Module.End ℂ V}
      (hg : Formalism.REAL.GlRel K) (μ : Fin n → ℝ) {v : V}
      (hv : ∀ c, K c c v = ((μ c : ℝ) : ℂ) • v) {a b : Fin n} (hab : a ≠ b) (c : Fin n) :
      K c c (K a b v) =
        ((μ c + (if c = a then 1 else 0) - (if c = b then 1 else 0) : ℝ) : ℂ) • K a b v := …
  ```
- `GlobalTheory.CompanionTheory.RealCountG.HwStable.wts_nonempty`: A nonzero invariant subspace has a real joint weight for the diagonal generators under the commutator and adjoint relations.

  ```lean
  theorem wts_nonempty (hg : Formalism.REAL.GlRel G) (hs : ∀ a b (x y : H), ⟪G a b x, y⟫_ℂ = ⟪x, G b a y⟫_ℂ)
      (hN : N ≠ ⊥) (hst : ∀ a b, ∀ w ∈ N, G a b w ∈ N) : (wts G N).Nonempty := …
  ```
- `GlobalTheory.CompanionTheory.RealCountG.HwStable.wts_finite`: The real joint weights of the diagonal generators on a finite-dimensional invariant subspace form a finite set.

  ```lean
  theorem wts_finite (hst : ∀ a b, ∀ w ∈ N, G a b w ∈ N) : (wts G N).Finite := …
  ```
- `GlobalTheory.CompanionTheory.RealCountG.HwStable.exists_highest_of_stable`: Under the matrix-unit commutator and adjoint relations, every nonzero invariant subspace contains a nonzero real-weight vector killed by all G_ab with a < b.

  ```lean
  theorem exists_highest_of_stable : ∀ {n : ℕ} (H : Type) [NormedAddCommGroup H] [InnerProductSpace ℂ H]
      [FiniteDimensional ℂ H] (G : Fin n → Fin n → Module.End ℂ H), Formalism.REAL.GlRel G →
      (∀ a b (x y : H), ⟪G a b x, y⟫_ℂ = ⟪x, G b a y⟫_ℂ) → ∀ N : Submodule ℂ H, N ≠ ⊥ →
      (∀ a b, ∀ w ∈ N, G a b w ∈ N) →
      ∃ (μ : Fin n → ℝ) (v : H), v ∈ N ∧ v ≠ 0 ∧ Formalism.REAL.KHighest (fun _ => true) G μ v := …
  ```

### Development.AutomorphicSpectrum.Proofs.BlockDecomposition.HighestWeightIntegralOfUnitary

14 import steps from Main · 190 lines · Checked against the code · [Open in the Lean viewer](https://riemannhypothesissolved.com/file/Development.AutomorphicSpectrum.Proofs.BlockDecomposition.HighestWeightIntegralOfUnitary)

**Constructs an isotypic projection and factors its twisted trace into a highest-weight trace and a Weyl character.**

For dominant integral ν, the projection commutes with G, fixes the highest-weight space of weight ν, and kills highest-weight vectors of other weights. It sums composites of intertwiners obtained from a basis of that space and its coordinate functionals. On a finite-dimensional complex inner product space, G satisfies the matrix-unit commutator and adjoint relations and gives the derivative of ρ along unitary exponentials. For a diagonal unitary k with distinct entries z and S commuting with G, cyclicity of trace gives tr(ρ(k)Sp) as the trace of S on the ν-highest-weight space times the Weyl character at z. The importer restates this as GlobalTheory.T.highest_weight_integral_of_unitary.

Key declarations:

- `GlobalTheory.CompanionTheory.RealCountG.Isotypic.exists_map_out`: Under the commutator and adjoint relations, an intertwiner can send a prescribed nonzero highest-weight vector to any highest-weight vector of the same weight.

  ```lean
  theorem exists_map_out (H L : Type) [NormedAddCommGroup H] [InnerProductSpace ℂ H] [FiniteDimensional ℂ H]
      [NormedAddCommGroup L] [InnerProductSpace ℂ L] [FiniteDimensional ℂ L]
      (G : Fin n → Fin n → Module.End ℂ H) (K : Fin n → Fin n → Module.End ℂ L) (μ : Fin n → ℝ)
      (hG : Formalism.REAL.GlRel G) (hK : Formalism.REAL.GlRel K)
      (hGs : ∀ a b (x y : H), ⟪G a b x, y⟫_ℂ = ⟪x, G b a y⟫_ℂ)
      (hKs : ∀ a b (x y : L), ⟪K a b x, y⟫_ℂ = ⟪x, K b a y⟫_ℂ)
      (v : L) (hv0 : v ≠ 0) (hv : Formalism.REAL.KHighest (fun _ => true) K μ v)
      (d : H) (hd : Formalism.REAL.KHighest (fun _ => true) G μ d) :
      ∃ T : L →ₗ[ℂ] H, T v = d ∧ ∀ a b w, T (K a b w) = G a b (T w) := …
  ```
- `GlobalTheory.CompanionTheory.RealCountG.Isotypic.exists_map_in`: Under the same relations, a functional on a highest-weight subspace multiplied by a fixed target highest-weight vector of the same weight extends to an intertwiner.

  ```lean
  theorem exists_map_in (H L : Type) [NormedAddCommGroup H] [InnerProductSpace ℂ H] [FiniteDimensional ℂ H]
      [NormedAddCommGroup L] [InnerProductSpace ℂ L]
      (G : Fin n → Fin n → Module.End ℂ H) (K : Fin n → Fin n → Module.End ℂ L) (μ : Fin n → ℝ)
      (hG : Formalism.REAL.GlRel G) (hK : Formalism.REAL.GlRel K)
      (hGs : ∀ a b (x y : H), ⟪G a b x, y⟫_ℂ = ⟪x, G b a y⟫_ℂ)
      (hKs : ∀ a b (x y : L), ⟪K a b x, y⟫_ℂ = ⟪x, K b a y⟫_ℂ)
      (v : L) (hv : Formalism.REAL.KHighest (fun _ => true) K μ v)
      (D : Submodule ℂ H) (hD : ∀ x ∈ D, Formalism.REAL.KHighest (fun _ => true) G μ x) (φ : D →ₗ[ℂ] ℂ) :
      ∃ P : H →ₗ[ℂ] L, (∀ d : D, P d = φ d • v) ∧ ∀ a b w, P (G a b w) = K a b (P w) := …
  ```
- `GlobalTheory.CompanionTheory.RealCountG.Isotypic.eq_smul_id_of_apply`: If the common kernel of the raising operators is spanned by v, an intertwining endomorphism acting by r on v equals r times the identity.

  ```lean
  theorem eq_smul_id_of_apply (L : Type) [NormedAddCommGroup L] [InnerProductSpace ℂ L] [FiniteDimensional ℂ L]
      (K : Fin n → Fin n → Module.End ℂ L) (hK : Formalism.REAL.GlRel K)
      (hKs : ∀ a b (x y : L), ⟪K a b x, y⟫_ℂ = ⟪x, K b a y⟫_ℂ) (v : L)
      (huniq : ∀ w : L, (∀ a b, a < b → K a b w = 0) → ∃ c : ℂ, w = c • v)
      (R : L →ₗ[ℂ] L) (hR : ∀ a b w, R (K a b w) = K a b (R w)) (r : ℂ) (hr : R v = r • v) :
      R = r • LinearMap.id := …
  ```
- `GlobalTheory.CompanionTheory.RealCountG.Isotypic.map_highest_eq_zero`: An intertwiner into a module whose common raising-operator kernel is a highest-weight line kills highest-weight vectors of every other weight.

  ```lean
  theorem map_highest_eq_zero {H L : Type} [AddCommGroup H] [Module ℂ H] [AddCommGroup L] [Module ℂ L]
      (G : Fin n → Fin n → Module.End ℂ H) (K : Fin n → Fin n → Module.End ℂ L) (μ μ' : Fin n → ℝ)
      (v : L) (hv0 : v ≠ 0) (hv : Formalism.REAL.KHighest (fun _ => true) K μ' v)
      (huniq : ∀ w : L, (∀ a b, a < b → K a b w = 0) → ∃ c : ℂ, w = c • v)
      (P : H →ₗ[ℂ] L) (hP : ∀ a b w, P (G a b w) = K a b (P w))
      (hne : μ ≠ μ') (w : H) (hw : Formalism.REAL.KHighest (fun _ => true) G μ w) : P w = 0 := …
  ```
- `GlobalTheory.CompanionTheory.RealCountG.Isotypic.exists_isotypic_projection`: For a dominant integral weight ν, constructs a commuting endomorphism that selects the ν-highest-weight vectors and gives the Weyl-character trace factorization on regular diagonal unitaries.

  ```lean
  theorem exists_isotypic_projection {n : ℕ} (H : Type) [NormedAddCommGroup H] [InnerProductSpace ℂ H]
      [FiniteDimensional ℂ H] (ρ : Matrix.unitaryGroup (Fin n) ℂ →* (H →L[ℂ] H))
      (G : Fin n → Fin n → Module.End ℂ H) (ν : Fin n → ℤ) :
      Formalism.REAL.GlRel G → (∀ a b (x y : H), ⟪G a b x, y⟫_ℂ = ⟪x, G b a y⟫_ℂ) →
      (∀ (X : Matrix (Fin n) (Fin n) ℂ) (γ : ℝ → Matrix.unitaryGroup (Fin n) ℂ), Xᴴ = -X →
        (∀ t : ℝ, (γ t).1 = NormedSpace.exp ((t : ℂ) • X)) →
        ∀ w : H, HasDerivAt (fun t : ℝ => ρ (γ t) w) (∑ a, ∑ b, X a b • G a b w) 0) →
      Antitone ν →
      ∃ p : H →ₗ[ℂ] H, (∀ a b w, p (G a b w) = G a b (p w)) ∧ (∀ v ∈ hwOf G (wtR ν), p v = v) ∧
        (∀ (μ : Fin n → ℝ) (v : H), μ ≠ wtR ν → Formalism.REAL.KHighest (fun _ => true) G μ v → p v = 0) ∧
        ∀ S : H →ₗ[ℂ] H, (∀ a b w, S (G a b w) = G a b (S w)) →
          ∀ (k : Matrix.unitaryGroup (Fin n) ℂ) (z : Fin n → ℂ), k.1 = diagonal z → Function.Injective z →
            LinearMap.trace ℂ H ((ρ k : H →ₗ[ℂ] H) ∘ₗ S ∘ₗ p) = trOn (hwOf G (wtR ν)) S * weylChar ν z := …
  ```

### Development.AutomorphicSpectrum.Proofs.BlockDecomposition.HighestWeightOfUnitaryDerivative

14 import steps from Main · 143 lines · Checked against the code · [Open in the Lean viewer](https://riemannhypothesissolved.com/file/Development.AutomorphicSpectrum.Proofs.BlockDecomposition.HighestWeightOfUnitaryDerivative)

**Proves integrality of the real joint weights of diagonal generators arising from a U(n) action.**

For a nonzero eigenvector of G_aa with real eigenvalue r, the orbit along exp(t iE_aa) has derivative ir times the orbit at every t, by translation of the derivative at zero. Multiplication by exp(−itr) makes the orbit constant, so the subgroup’s 2π period forces exp(−2πir) = 1 and hence r ∈ ℤ. Applying this to each diagonal generator gives the joint-weight theorem restated as GlobalTheory.T.highest_weight_of_unitary_derivative.

Key declarations:

- `GlobalTheory.CompanionTheory.RealCountG.WtInt.expU_add`: For skew-Hermitian X, the curve t ↦ exp(tX) sends addition of parameters to multiplication in U(n).

  ```lean
  theorem expU_add (X : Matrix (Fin n) (Fin n) ℂ) (hX : Xᴴ = -X) (s t : ℝ) :
      expU X hX (s + t) = expU X hX s * expU X hX t := …
  ```
- `GlobalTheory.CompanionTheory.RealCountG.WtInt.expU_two_pi`: For a diagonal matrix unit E_aa, the subgroup generated by iE_aa returns to the identity at 2π.

  ```lean
  theorem expU_two_pi (a : Fin n) (hX : (Matrix.single a a Complex.I)ᴴ = -(Matrix.single a a Complex.I)) :
      expU (Matrix.single a a Complex.I) hX (2 * Real.pi) = 1 := …
  ```
- `GlobalTheory.CompanionTheory.RealCountG.WtInt.eigen_int`: Under the prescribed orbit derivative formula, every real eigenvalue of a diagonal generator is an integer.

  ```lean
  theorem eigen_int (H : Type) [NormedAddCommGroup H] [InnerProductSpace ℂ H]
      (ρ : Matrix.unitaryGroup (Fin n) ℂ →* (H →L[ℂ] H)) (G : Fin n → Fin n → Module.End ℂ H)
      (hd : ∀ (X : Matrix (Fin n) (Fin n) ℂ) (γ : ℝ → Matrix.unitaryGroup (Fin n) ℂ), Xᴴ = -X →
        (∀ t : ℝ, (γ t).1 = NormedSpace.exp ((t : ℂ) • X)) → ∀ w : H,
        HasDerivAt (fun t : ℝ => ρ (γ t) w) (∑ a, ∑ b, X a b • G a b w) 0)
      (a : Fin n) (r : ℝ) {v : H} (hv : v ≠ 0) (hr : G a a v = (r : ℂ) • v) : ∃ m : ℤ, r = m := …
  ```
- `GlobalTheory.CompanionTheory.RealCountG.WtInt.weight_integral`: Under the prescribed orbit derivative formula on a finite-dimensional complex inner product space, every real joint weight with a nonzero weight vector has integer coordinates.

  ```lean
  theorem weight_integral : ∀ {n : ℕ} (H : Type) [NormedAddCommGroup H] [InnerProductSpace ℂ H] [FiniteDimensional ℂ H] (ρ : Matrix.unitaryGroup (Fin n) ℂ →* (H →L[ℂ] H)) (G : Fin n → Fin n → Module.End ℂ H), (∀ (X : Matrix (Fin n) (Fin n) ℂ) (γ : ℝ → Matrix.unitaryGroup (Fin n) ℂ), Xᴴ = -X → (∀ t : ℝ, (γ t).1 = NormedSpace.exp ((t : ℂ) • X)) → ∀ w : H, HasDerivAt (fun t : ℝ => ρ (γ t) w) (∑ a, ∑ b, X a b • G a b w) 0) → ∀ (μ : Fin n → ℝ) (v : H), v ≠ 0 → Formalism.REAL.IsWeight G μ v → ∃ ν : Fin n → ℤ, μ = wtR ν := …
  ```

### Development.AutomorphicSpectrum.Proofs.BlockDecomposition.IntertwinerEqZeroOfVanishOnHighest

14 import steps from Main · 36 lines · Checked against the code · [Open in the Lean viewer](https://riemannhypothesissolved.com/file/Development.AutomorphicSpectrum.Proofs.BlockDecomposition.IntertwinerEqZeroOfVanishOnHighest)

**Proves that intertwiners from finite-dimensional glₙ(ℂ) modules with matrix-unit adjoints vanish if they kill all highest-weight vectors.**

The matrix-unit adjoint relations make the orthogonal complement of the intertwiner’s kernel invariant under all source generators. If the intertwiner were nonzero, that complement would contain a nonzero highest-weight vector by the invariant-subspace theorem, but the vanishing hypothesis would also put it in the kernel. The direct importer restates the criterion as GlobalTheory.T.intertwiner_eq_zero_of_vanish_on_highest.

Key declarations:

- `GlobalTheory.CompanionTheory.RealCountG.intertwiner_eq_zero_of_highest`: An intertwiner from a finite-dimensional complex inner product space whose generators satisfy the gl_n(ℂ) commutator and matrix-unit adjoint relations is zero if it annihilates every real-weight highest-weight vector.

  ```lean
  theorem intertwiner_eq_zero_of_highest {n : ℕ} (H V : Type) [NormedAddCommGroup H]
      [InnerProductSpace ℂ H] [FiniteDimensional ℂ H] [AddCommGroup V] [Module ℂ V]
      (G : Fin n → Fin n → Module.End ℂ H) (D : Fin n → Fin n → Module.End ℂ V)
      (hrel : Formalism.REAL.GlRel G)
      (hadj : ∀ a b (x y : H), ⟪G a b x, y⟫_ℂ = ⟪x, G b a y⟫_ℂ)
      (R : H →ₗ[ℂ] V) (hR : ∀ a b w, R (G a b w) = D a b (R w))
      (hhigh : ∀ (μ : Fin n → ℝ) (v : H), Formalism.REAL.KHighest (fun _ => true) G μ v → R v = 0) :
      R = 0 := …
  ```

### Development.AutomorphicSpectrum.Proofs.BlockDecomposition.JBConjTranspose

14 import steps from Main · 62 lines · Checked against the code · [Open in the Lean viewer](https://riemannhypothesissolved.com/file/Development.AutomorphicSpectrum.Proofs.BlockDecomposition.JBConjTranspose)

**Defines block-diagonal matrix maps and proves the identities that make block assembly a unital ring homomorphism.**

The block maps assemble diag(A,c) and recover its upper-left block and final diagonal entry, while the assembly preserves addition, multiplication, and identity. The associated definitions select determinant-one block matrices, evaluate the operator map on the upper-left block, and lift X to the trace-zero matrix diag(X,−tr X).

Key declarations:

- `GlobalTheory.CompanionTheory.GLK.jB`: Forms the block-diagonal matrix diag(A,c) from an n×n complex matrix A and a scalar c.

  ```lean
  def jB (A : Mat n) (c : ℂ) : Mat (n + 1) :=
    Matrix.reindex finSumFinEquiv finSumFinEquiv (Matrix.fromBlocks A 0 0 (c • (1 : Matrix (Fin 1) (Fin 1) ℂ)))
  ```
- `GlobalTheory.CompanionTheory.GLK.jR`: Packages block assembly as a unital ring homomorphism from M_n(ℂ) × ℂ to M_{n+1}(ℂ).

  ```lean
  def jR : (Mat n × ℂ) →+* Mat (n + 1) where
    toFun x := jB x.1 x.2
    map_one' := jB_one
    map_mul' x y := (jB_mul x.1 y.1 x.2 y.2).symm
    map_zero' := by simp [jB]
    map_add' x y := jB_add x.1 y.1 x.2 y.2
  ```
- `GlobalTheory.CompanionTheory.GLK.gp`: Selects matrices that are block diagonal of type (n,1) and have determinant one.

  ```lean
  def gp (n : ℕ) : Set (Mat (n + 1)) := {m | jB (rB m) (cB m) = m ∧ m.det = 1}
  ```
- `GlobalTheory.CompanionTheory.GLK.sg`: Evaluates the operator map associated with π on the upper-left n×n block.

  ```lean
  def sg (π : G n →* (U →L[ℂ] U)) (m : Mat (n + 1)) : U →L[ℂ] U := piM π (rB m)
  ```
- `GlobalTheory.CompanionTheory.GLK.lift`: Sends X to diag(X,−tr X), which has trace zero.

  ```lean
  def lift (X : Mat n) : Mat (n + 1) := jB X (-X.trace)
  ```

### Development.AutomorphicSpectrum.Proofs.BlockDecomposition.ProdPairSumsEqSumPowersetScore

14 import steps from Main · 24 lines · Checked against the code · [Open in the Lean viewer](https://riemannhypothesissolved.com/file/Development.AutomorphicSpectrum.Proofs.BlockDecomposition.ProdPairSumsEqSumPowersetScore)

**Expands the product of pairwise sums as a sum of monomials indexed by subsets of the increasing index pairs.**

In the distributive expansion of ∏_{a<b}(z_a+z_b), a subset T records the pairs for which the first variable is chosen, with the second chosen for every pair outside T. Grouping the chosen factors by index gives the exponent of each variable as the number of times it was chosen, and the direct importer restates the identity as GlobalTheory.T.prod_pair_sums_eq_sum_powerset_score.

Key declarations:

- `GlobalTheory.CompanionTheory.CoefId.prod_pairs_add_eq_sum_score`: For any complex coordinates z, the product ∏_{a<b}(z_a+z_b) equals the sum over subsets T of increasing pairs of the monomials ∏_a z_a^{score(T,a)}.

  ```lean
  theorem prod_pairs_add_eq_sum_score {n : ℕ} (z : Fin n → ℂ) :
      ∏ p ∈ prs n, (z p.1 + z p.2) = ∑ T ∈ (prs n).powerset, ∏ a, z a ^ score T a := …
  ```

### Development.AutomorphicSpectrum.Proofs.BlockDecomposition.ScoreRigidityPermEqOne

14 import steps from Main · 311 lines · Checked against the code · [Open in the Lean viewer](https://riemannhypothesissolved.com/file/Development.AutomorphicSpectrum.Proofs.BlockDecomposition.ScoreRigidityPermEqOne)

**Proves that a tournament score identity forces the permutation to be trivial and the endpoint choices to be canonical.**

For nondecreasing levels, the canonical choice T₀ takes the first endpoint of an increasing pair exactly when its levels differ. With strictly decreasing integral L and the stated within-level difference conditions, the score identity s_T = s_T₀ + 2(L−L∘σ) forces σ = id and T = T₀. Weighted score bounds first force σ to preserve levels. A rank that decreases across levels and increases within each level then forces the squared displacements of σ to sum to zero and makes the maximizing endpoint unique for each pair. The direct importer restates the result as GlobalTheory.T.score_rigidity_perm_eq_one.

Key declarations:

- `GlobalTheory.CompanionTheory.CoefId.Unique.pair_le`: The dot product of a weight vector with a tournament score is bounded above by the sum of the larger endpoint weights over all pairs.

  ```lean
  theorem pair_le (v : Fin n → ℤ) (T : Finset (Fin n × Fin n)) (hT : T ⊆ prs n) :
      ∑ a, v a * score T a ≤ ∑ p ∈ prs n, max (v p.1) (v p.2) := …
  ```
- `GlobalTheory.CompanionTheory.CoefId.Unique.tZero_eq`: For nondecreasing levels, the canonical choice attains that bound for weights that weakly decrease across levels and weakly increase within each level.

  ```lean
  theorem tZero_eq (lev : Fin n → ℕ) (hlev : Monotone lev) (v : Fin n → ℤ)
      (h1 : ∀ a b, lev a < lev b → v b ≤ v a) (h2 : ∀ a b, a < b → lev a = lev b → v a ≤ v b) :
      ∑ a, v a * score (tZero lev) a = ∑ p ∈ prs n, max (v p.1) (v p.2) := …
  ```
- `GlobalTheory.CompanionTheory.CoefId.Unique.lev_comp`: For nondecreasing levels and strictly decreasing L, the score identity forces the permutation to preserve every level.

  ```lean
  theorem lev_comp {lev : Fin n → ℕ} (hlev : Monotone lev) {L : Fin n → ℤ} (hL : StrictAnti L)
      (σ : Equiv.Perm (Fin n)) (T : Finset (Fin n × Fin n)) (hT : T ⊆ prs n)
      (hs : ∀ a, score T a = score (tZero lev) a + 2 * (L a - L (σ a))) (a : Fin n) :
      lev (σ a) = lev a := …
  ```
- `GlobalTheory.CompanionTheory.CoefId.Unique.sigma_eq_one`: Under the score identity and the within-level difference conditions, a level-preserving permutation is the identity.

  ```lean
  theorem sigma_eq_one {lev : Fin n → ℕ} (hlev : Monotone lev) {L : Fin n → ℤ}
      (h3 : ∀ a b, lev a = lev b → L a - L b = ((b : ℕ) : ℤ) - ((a : ℕ) : ℤ))
      (h4 : ∀ a b, lev a = lev b →
        score (tZero lev) a - ((a : ℕ) : ℤ) = score (tZero lev) b - ((b : ℕ) : ℤ))
      (σ : Equiv.Perm (Fin n)) (T : Finset (Fin n × Fin n)) (hT : T ⊆ prs n)
      (hs : ∀ a, score T a = score (tZero lev) a + 2 * (L a - L (σ a)))
      (hl : ∀ a, lev (σ a) = lev a) : σ = 1 := …
  ```
- `GlobalTheory.CompanionTheory.CoefId.Unique.tournament_unique`: If L(a)+a and s_T₀(a)−a are constant on each level, the score identity under the monotonicity hypotheses forces σ = id and T = T₀.

  ```lean
  theorem tournament_unique : ∀ {n : ℕ} (lev : Fin n → ℕ), Monotone lev → ∀ L : Fin n → ℤ, StrictAnti L →
      (∀ a b, lev a = lev b → L a - L b = ((b : ℕ) : ℤ) - ((a : ℕ) : ℤ)) →
      (∀ a b, lev a = lev b →
        score (tZero lev) a - ((a : ℕ) : ℤ) = score (tZero lev) b - ((b : ℕ) : ℤ)) →
      ∀ (σ : Equiv.Perm (Fin n)) (T : Finset (Fin n × Fin n)), T ⊆ prs n →
      (∀ a, score T a = score (tZero lev) a + 2 * (L a - L (σ a))) → σ = 1 ∧ T = tZero lev := …
  ```

### Development.AutomorphicSpectrum.Proofs.BlockDecomposition.ScoreTZeroEqLevelCount

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

**Computes the score of the canonical endpoint choice from the counts of indices at higher and lower levels.**

For nondecreasing levels, the canonical choice takes the first endpoint of an increasing pair when the levels differ and the second when they agree, so the score at a counts all higher-level indices and all earlier indices at the same level. Partitioning the a earlier indices into lower-level and same-level indices gives the formula restated as GlobalTheory.T.score_tZero_eq_level_count.

Key declarations:

- `GlobalTheory.CompanionTheory.CoefId.score_tZero_level`: For nondecreasing levels, the canonical score at the zero-based index a equals a plus the number of higher-level indices minus the number of lower-level indices.

  ```lean
  theorem score_tZero_level : ∀ {n : ℕ} (lev : Fin n → ℕ), Monotone lev → ∀ a : Fin n,
      score (tZero lev) a = ((univ.filter fun b => lev a < lev b).card : ℤ)
        - ((univ.filter fun b => lev b < lev a).card : ℤ) + ((a : ℕ) : ℤ) := …
  ```

### Development.AutomorphicSpectrum.Proofs.BlockDecomposition.SpinGlRelationsAdjoint

14 import steps from Main · 112 lines · Checked against the code · [Open in the Lean viewer](https://riemannhypothesissolved.com/file/Development.AutomorphicSpectrum.Proofs.BlockDecomposition.SpinGlRelationsAdjoint)

**Proves the matrix-unit commutator and adjoint relations for spin matrices built from Clifford generators.**

The spin matrices satisfy the commutator relations of the standard matrix units in \(\mathfrak{gl}_n(\mathbb C)\), and conjugate transpose exchanges their two indices. The proof uses Clifford anticommutation to compute the bracket of a quadratic sum with a generator, then uses the commutator product rule to compute the bracket of two quadratic sums. The diagonal correction is scalar, and the adjoint identity follows by reversing products and exchanging generator indices. The importing module uses spinRel to prove GlobalTheory.T.spin_gl_relations_adjoint.

Key declarations:

- `GlobalTheory.CompanionTheory.RealCount.SpinRel.quad_c`: For a Clifford family c with \(Q_{ab}=\tfrac12\sum_f c_{af}c_{fb}\), the mixed commutator is \([Q_{ab},c_{dg}]=\delta_{bd}c_{ag}-\delta_{ag}c_{db}\).

  ```lean
  theorem quad_c {c : Fin n → Fin n → Matrix ι ι ℂ} (hc : IsCliff c) (a b d g : Fin n) :
      quadM c a b * c d g - c d g * quadM c a b =
        (if b = d then c a g else 0) - (if a = g then c d b else 0) := …
  ```
- `GlobalTheory.CompanionTheory.RealCount.SpinRel.quad_quad`: For a Clifford family c, the quadratic matrices satisfy \([Q_{ab},Q_{de}]=\delta_{bd}Q_{ae}-\delta_{ea}Q_{db}\).

  ```lean
  theorem quad_quad {c : Fin n → Fin n → Matrix ι ι ℂ} (hc : IsCliff c) (a b d e : Fin n) :
      quadM c a b * quadM c d e - quadM c d e * quadM c a b =
        (if b = d then quadM c a e else 0) - (if e = a then quadM c d b else 0) := …
  ```
- `GlobalTheory.CompanionTheory.RealCount.SpinRel.spin_glRel`: For a Clifford family c, the shifted matrices \(S_{ab}=Q_{ab}-\tfrac n2\delta_{ab}\mathbf{1}\) satisfy the matrix-unit commutator relations.

  ```lean
  theorem spin_glRel {c : Fin n → Fin n → Matrix ι ι ℂ} (hc : IsCliff c) : Formalism.REAL.GlRel (spinM c) := …
  ```
- `GlobalTheory.CompanionTheory.RealCount.SpinRel.spin_conjTranspose`: For a Clifford family c, the conjugate transpose of \(S_{ab}\) is \(S_{ba}\).

  ```lean
  theorem spin_conjTranspose {c : Fin n → Fin n → Matrix ι ι ℂ} (hc : IsCliff c) (a b : Fin n) :
      (spinM c a b)ᴴ = spinM c b a := …
  ```
- `GlobalTheory.CompanionTheory.RealCount.SpinRel.spinRel`: For any family satisfying the Clifford anticommutation and adjoint conditions, the associated spin matrices satisfy both the matrix-unit commutator relations and \(S_{ab}^{*}=S_{ba}\).

  ```lean
  theorem spinRel : ∀ {n : ℕ} {ι : Type} [Fintype ι] [DecidableEq ι] (c : Fin n → Fin n → Matrix ι ι ℂ), IsCliff c →
      Formalism.REAL.GlRel (spinM c) ∧ ∀ a b, (spinM c a b)ᴴ = spinM c b a := …
  ```

### Development.AutomorphicSpectrum.Proofs.BlockDecomposition.UnitaryEuclideanModel

14 import steps from Main · 116 lines · Checked against the code · [Open in the Lean viewer](https://riemannhypothesissolved.com/file/Development.AutomorphicSpectrum.Proofs.BlockDecomposition.UnitaryEuclideanModel)

**Constructs a Euclidean model of the contragredient of a finite-dimensional unitary representation of \(U(n)\).**

Evaluating linear functionals on an orthonormal basis identifies the continuous dual with complex Euclidean space, and the Riesz representation theorem gives equality of the operator and Euclidean norms. In these coordinates the contragredient acts by precomposition with the operator representing the inverse group element. Continuity follows from continuity of inversion and finite-dimensional linearity, and norm preservation follows by applying the operator-norm bound in both directions. The importing module uses this construction to prove GlobalTheory.T.unitary_euclidean_model.

Key declarations:

- `GlobalTheory.CompanionTheory.RealCount.dualCoord`: Identifies the continuous dual complex-linearly with Euclidean space by evaluation on a chosen orthonormal basis.

  ```lean
  def dualCoord (E : KMod n) :
      (E.V →L[ℂ] ℂ) ≃ₗ[ℂ] EuclideanSpace ℂ (Fin (Module.finrank ℂ E.V))
  ```
- `GlobalTheory.CompanionTheory.RealCount.norm_dualCoord`: The Euclidean norm of a functional’s coordinate vector equals its operator norm.

  ```lean
  theorem norm_dualCoord (E : KMod n) (ξ : E.V →L[ℂ] ℂ) : ‖dualCoord E ξ‖ = ‖ξ‖ := …
  ```
- `GlobalTheory.CompanionTheory.RealCount.dualAct_apply`: The coordinate operator associated to an endomorphism \(T\) sends the coordinates of \(\xi\) to those of \(\xi\circ T\).

  ```lean
  theorem dualAct_apply (E : KMod n) (T : E.V →L[ℂ] E.V) (v) :
      dualAct E T v = dualCoord E ((dualCoord E).symm v ∘L T) := …
  ```
- `GlobalTheory.CompanionTheory.RealCount.continuous_unitary_inv`: Inversion on \(U(n)\) is continuous.

  ```lean
  theorem continuous_unitary_inv :
      Continuous fun k : Matrix.unitaryGroup (Fin n) ℂ => k⁻¹ := …
  ```
- `GlobalTheory.CompanionTheory.RealCount.dualRep_exists`: The contragredient action on the continuous dual is intertwined by a complex-linear isomorphism with a continuous norm-preserving action on complex Euclidean space.

  ```lean
  theorem dualRep_exists {n : ℕ} (E : KMod n) :
      ∃ (e : (E.V →L[ℂ] ℂ) ≃ₗ[ℂ] EuclideanSpace ℂ (Fin (Module.finrank ℂ E.V)))
        (ρ' : Matrix.unitaryGroup (Fin n) ℂ →*
          (EuclideanSpace ℂ (Fin (Module.finrank ℂ E.V)) →L[ℂ]
            EuclideanSpace ℂ (Fin (Module.finrank ℂ E.V)))),
        Continuous ρ' ∧ (∀ k v, ‖ρ' k v‖ = ‖v‖) ∧ ∀ k ξ, e (ξ ∘L E.ρ k⁻¹) = ρ' k (e ξ) := …
  ```

### Development.AutomorphicSpectrum.Proofs.BlockDecomposition.VandermondeSquares

14 import steps from Main · 38 lines · Checked against the code · [Open in the Lean viewer](https://riemannhypothesissolved.com/file/Development.AutomorphicSpectrum.Proofs.BlockDecomposition.VandermondeSquares)

**Factors the reversed Vandermonde determinant on squared variables into the original determinant and a product of pairwise sums.**

Reversing the columns in the standard Vandermonde formula gives the product of pairwise differences multiplied by the sign of the reversal permutation. Applying this formula to the squared variables and factoring each difference of squares gives the reversed determinant on the original variables times \(\prod_{i<j}(z_i+z_j)\). The importing module uses this identity to prove GlobalTheory.T.vandermonde_squares.

Key declarations:

- `GlobalTheory.CompanionTheory.CoefId.prod_prs_eq_iter`: Rewrites a product over pairs \(i<j\) as an iterated product over \(i\) and then over \(j>i\).

  ```lean
  lemma prod_prs_eq_iter {n : ℕ} (f : Fin n × Fin n → ℂ) :
      ∏ p ∈ prs n, f p = ∏ i : Fin n, ∏ j ∈ Ioi i, f (i, j) := …
  ```
- `GlobalTheory.CompanionTheory.CoefId.det_rev_vandermonde`: Evaluates \(\det(v_i^{n-1-j})\) as \(\prod_{i<j}(v_j-v_i)\) times the sign of column reversal.

  ```lean
  lemma det_rev_vandermonde {n : ℕ} (v : Fin n → ℂ) :
      (Matrix.of fun i j : Fin n => v i ^ (n - 1 - (j : ℕ))).det =
        ((Equiv.Perm.sign (Fin.revPerm : Equiv.Perm (Fin n)) : ℤ) : ℂ) *
          ∏ p ∈ prs n, (v p.2 - v p.1) := …
  ```
- `GlobalTheory.CompanionTheory.CoefId.det_vandermonde_sq`: Proves \(\det((z_i^2)^{n-1-j})=\det(z_i^{n-1-j})\prod_{i<j}(z_i+z_j)\) for every complex tuple \(z\).

  ```lean
  theorem det_vandermonde_sq {n : ℕ} (z : Fin n → ℂ) :
      (Matrix.of fun i j : Fin n => (z i ^ 2) ^ (n - 1 - (j : ℕ))).det =
        (Matrix.of fun i j : Fin n => z i ^ (n - 1 - (j : ℕ))).det *
          ∏ p ∈ prs n, (z p.1 + z p.2) := …
  ```

### Development.AutomorphicSpectrum.Proofs.BlockDecomposition.WeightPolynomialTraceIdentity

14 import steps from Main · 264 lines · Checked against the code · [Open in the Lean viewer](https://riemannhypothesissolved.com/file/Development.AutomorphicSpectrum.Proofs.BlockDecomposition.WeightPolynomialTraceIdentity)

**Derives ordinary and twisted Laurent polynomial identities from trace formulas on the diagonal unitary torus.**

The ordinary and twisted weight polynomials record dimensions and traces of the dual twist on the dual weight spaces. Given a direct sum of these spaces and an equivariant involution satisfying the prescribed torus trace formulas, the proof expands each trace by weights and writes the Weyl character as a quotient of alternants. It clears the Vandermonde denominators at unitary tuples with pairwise distinct squares, then uses coefficient comparison to obtain formal Laurent identities. The importing module uses these identities to prove GlobalTheory.T.weight_polynomial_trace_identity.

Key declarations:

- `GlobalTheory.CompanionTheory.RealCount.Tope.Ident.trace_decomp`: When the dual is the direct sum of its weight spaces, the trace of \(\rho(k^{-1})T\) for diagonal \(k\) and equivariant \(T\) is the sum of the dual twist traces multiplied by their weight monomials over a finite set containing every weight with a nonzero dual weight space.

  ```lean
  theorem trace_decomp (E : KMod n) (T' : E.V →L[ℂ] E.V) (hT : ∀ k, T' * E.ρ k = E.ρ k * T')
      (htop : (⨆ μ, wtDual E μ) = ⊤) (hind : iSupIndep (wtDual E)) (s : Finset (Fin n → ℤ))
      (hs : ∀ μ, wtDual E μ ≠ ⊥ → μ ∈ s) (k : Matrix.unitaryGroup (Fin n) ℂ) (z : Fin n → ℂ) (hk : k.1 = diagonal z) :
      LinearMap.trace ℂ E.V ((E.ρ k⁻¹ * T' : E.V →L[ℂ] E.V) : E.V →ₗ[ℂ] E.V) =
        ∑ μ ∈ s, (∏ a, z a ^ μ a) * trOn (wtDual E μ) (dualT E T' : (E.V →L[ℂ] ℂ) →ₗ[ℂ] (E.V →L[ℂ] ℂ)) := …
  ```
- `GlobalTheory.CompanionTheory.RealCount.Tope.Ident.weylChar_evL`: Expresses Lean’s weylChar on nonzero coordinates as the totalized quotient of the evaluated alternants \(A_{\lambda+\delta}\) and \(A_\delta\), with \(\delta=(n-1,\ldots,0)\) and a nonzero denominator for pairwise distinct coordinates.

  ```lean
  theorem weylChar_evL (lam : Fin n → ℤ) (z : Fin n → ℂˣ) :
      weylChar lam (fun a => (z a : ℂ)) = evL z (altL (lam + delZ n)) / evL z (altL (delZ n)) := …
  ```
- `GlobalTheory.CompanionTheory.RealCount.Tope.Ident.evL_frL`: Doubling all exponents before evaluation has the same effect as squaring each evaluation coordinate.

  ```lean
  theorem evL_frL (z : Fin n → ℂˣ) (f : LP n) : evL z (frL n f) = evL (fun a => z a ^ 2) f := …
  ```
- `GlobalTheory.CompanionTheory.RealCount.Tope.Ident.eq_zero_of_evL`: A Laurent polynomial vanishing at every unitary tuple with pairwise distinct coordinate squares is identically zero.

  ```lean
  theorem eq_zero_of_evL (f : LP n)
      (h : ∀ z : Fin n → ℂˣ, (∀ a, ‖(z a : ℂ)‖ = 1) → Function.Injective (fun a => (z a : ℂ) ^ 2) → evL z f = 0) :
      f = 0 := …
  ```
- `GlobalTheory.CompanionTheory.RealCount.Tope.Ident.lefK_laurent_ident`: For an equivariant involution satisfying the prescribed torus trace formulas and a direct sum of dual weight spaces, the ordinary and twisted weight polynomials formed over a finite set containing every weight with a nonzero dual weight space satisfy \(W_1(z)A_\delta(z)^2=P(z)A_{\lambda+\delta}(z)^2\) and \(W_T(z)A_\delta(z^2)=P(z)A_{\lambda+\delta}(z^2)\), where \(P(z)=\prod_{a,b}(1+z_a/z_b)\).

  ```lean
  theorem lefK_laurent_ident {n : ℕ} (lam : Fin n → ℤ) (E : KMod n) (T : E.V →L[ℂ] E.V) (hL : IsLefK lam E T)
      (htop : (⨆ μ, wtDual E μ) = ⊤) (hind : iSupIndep (wtDual E)) (s : Finset (Fin n → ℤ))
      (hs : ∀ μ, wtDual E μ ≠ ⊥ → μ ∈ s) :
      cPoly s (fun μ => trOn (wtDual E μ) (dualT E 1 : (E.V →L[ℂ] ℂ) →ₗ[ℂ] (E.V →L[ℂ] ℂ))) * altL (delZ n) ^ 2 =
            pPL n * altL (lam + delZ n) ^ 2 ∧
          cPoly s (fun μ => trOn (wtDual E μ) (dualT E T : (E.V →L[ℂ] ℂ) →ₗ[ℂ] (E.V →L[ℂ] ℂ))) * frL n (altL (delZ n)) =
            pPL n * frL n (altL (lam + delZ n)) := …
  ```

### Development.AutomorphicSpectrum.Proofs.BlockDecomposition.WeylDenominatorProduct

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

**Factors the ordered-pair product of 1 + zₐ/zᵦ times (∏ₐ zₐ)^(n−1) as 2ⁿ times the squared product of zₐ + zᵦ over a < b.**

For symmetric factors, swapping indices pairs the two off-diagonal products, leaving the diagonal product times the square of the product over \(a<b\). The proof rewrites each ratio factor as \((z_a+z_b)/z_b\) and applies the symmetric product formula, with the diagonal factors \(2z_a\) supplying \(2^n\) and one power of \(\prod_a z_a\) toward clearing the denominator. The importing module uses the resulting identity to prove GlobalTheory.T.weyl_denominator_product.

Key declarations:

- `GlobalTheory.CompanionTheory.CoefId.prod_prod_symm_eq_diag_mul_prs_sq`: For symmetric \(g\), the ordered-pair product \(\prod_{a,b}g(a,b)\) equals \(\bigl(\prod_a g(a,a)\bigr)\bigl(\prod_{a<b}g(a,b)\bigr)^2\).

  ```lean
  theorem prod_prod_symm_eq_diag_mul_prs_sq {n : ℕ} (g : Fin n → Fin n → ℂ) (hg : ∀ a b, g a b = g b a) :
      ∏ a, ∏ b, g a b = (∏ a, g a a) * (∏ p ∈ prs n, g p.1 p.2) ^ 2 := …
  ```
- `GlobalTheory.CompanionTheory.CoefId.prod_one_add_div_mul_prod_pow`: For nonzero complex coordinates \(z_a\), \(\bigl(\prod_{a,b}(1+z_a/z_b)\bigr)(\prod_a z_a)^{n-1}=2^n\bigl(\prod_{a<b}(z_a+z_b)\bigr)^2\).

  ```lean
  theorem prod_one_add_div_mul_prod_pow {n : ℕ} (z : Fin n → ℂ) (hz : ∀ a, z a ≠ 0) :
      (∏ a, ∏ b, (1 + z a / z b)) * (∏ a, z a) ^ (n - 1)
        = 2 ^ n * (∏ p ∈ prs n, (z p.1 + z p.2)) ^ 2 := …
  ```

### Development.AutomorphicSpectrum.Proofs.HermitianForms.Imports

14 import steps from Main · 17 lines · Checked against the code · [Open in the Lean viewer](https://riemannhypothesissolved.com/file/Development.AutomorphicSpectrum.Proofs.HermitianForms.Imports)

**Proves that every complex unitary matrix has a skew-Hermitian logarithm.**

For a unitary matrix U, the proof extracts the identity U*U = 𝟙 and applies the imported unitary logarithm theorem. The block decomposition proof uses the resulting expression U = exp X to transfer vanishing along the curve t ↦ exp(tX) to vanishing at U by taking t = 1.

Key declarations:

- `GlobalTheory.CompanionTheory.UnitaryLog.main`: For every n and every U in U(n), there exists a complex n × n matrix X with X* = −X and U = exp X.

  ```lean
  theorem main : ∀ (n : ℕ) (g : Matrix.unitaryGroup (Fin n) ℂ),
      ∃ X : Matrix (Fin n) (Fin n) ℂ, Xᴴ = -X ∧
        (g : Matrix (Fin n) (Fin n) ℂ) = NormedSpace.exp X := …
  ```

### Development.WeilBound.RepresentationTheoryGL.ArchimedeanBaseChange.ArchimedeanBaseChangeProof.RealDescent.RealLeviDescent.IsLevPairA

14 import steps from Main · 114 lines · Checked against the code · [Open in the Lean viewer](https://riemannhypothesissolved.com/file/Development.WeilBound.RepresentationTheoryGL.ArchimedeanBaseChange.ArchimedeanBaseChangeProof.RealDescent.RealLeviDescent.IsLevPairA)

**Defines the chain operators and block-diagonal Levi actions used in the highest-weight multiplicity argument.**

Chains have vector-valued coefficients indexed by subsets of two copies of the positive roots. Signed creation and annihilation operators give a boundary formula with a coefficient-action term and a bracket term, while the diagonal weight operators add the root weight of each subset to the coefficient weight. The Levi action on chains combines the within-block coefficient action with an adjoint action on cross-block root labels. SecondLeviFamily uses this action to define its two operator families.

Key declarations:

- `PositivityTheory.RgBcC.RealD.bdL`: Defines a degree-lowering operator combining coefficient action with signed deletion of one selected label and a bracket term that deletes two selected labels and inserts their bracket label, with signs, in the nonzero summands.

  ```lean
  def bdL (S : Lt n → Prop) (E1 E2 : Fin n → Fin n → Module.End ℂ V) : Module.End ℂ (Cq n V) :=
    (∑ l : Lt n, if S l then (liftL n (xL E1 E2 l) : Module.End ℂ (Cq n V)) * annL l else 0) +
      ∑ l : Lt n, ∑ m : Lt n, ∑ k : Lt n,
        if S l ∧ S m ∧ l.2.1.2 = m.2.1.1 ∧ k.1 = xor l.1 m.1 ∧ k.2.1.1 = l.2.1.1 ∧ k.2.1.2 = m.2.1.2 then
          creL k * annL m * annL l else 0
  ```
- `PositivityTheory.RgBcC.RealD.FtL`: Adds the c-th coordinate of the subset's total root weight to the c-th diagonal coefficient operator.

  ```lean
  def FtL (E1 E2 : Fin n → Fin n → Module.End ℂ V) (c : Fin n) : Module.End ℂ (Cq n V) where
    toFun x := fun A => kA E1 E2 c c (x A) + (wtL A c : ℂ) • x A
    map_add' x y := by funext A; simp only [Pi.add_apply, map_add, smul_add]; abel
    map_smul' s x := by funext A; simp only [Pi.smul_apply, map_smul, RingHom.id_apply, smul_add, smul_comm s]
  ```
- `PositivityTheory.RgBcC.RealD.evLv`: Evaluates free-algebra generators by the sum or difference of the two coefficient actions on within-block matrix units and sends cross-block generators to zero.

  ```lean
  def evLv (lev : Fin n → ℕ) (E1 E2 : Fin n → Fin n → Module.End ℂ V) :
      FreeAlgebra ℂ (Bool × Fin n × Fin n) →ₐ[ℂ] Module.End ℂ V :=
    FreeAlgebra.lift ℂ fun p => if lev p.2.1 = lev p.2.2 then (if p.1 then pA E1 E2 p.2.1 p.2.2 else kA E1 E2 p.2.1 p.2.2) else 0
  ```
- `PositivityTheory.RgBcC.RealD.evLc`: Evaluates within-block generators on chains by adding the adjoint action on cross-block root labels to the lifted coefficient action, and sends cross-block generators to zero.

  ```lean
  def evLc (lev : Fin n → ℕ) (E1 E2 : Fin n → Fin n → Module.End ℂ V) :
      FreeAlgebra ℂ (Bool × Fin n × Fin n) →ₐ[ℂ] Module.End ℂ (Cq n V) :=
    FreeAlgebra.lift ℂ fun p => if lev p.2.1 = lev p.2.2 then
      ((liftL n (if p.1 then pA E1 E2 p.2.1 p.2.2 else kA E1 E2 p.2.1 p.2.2) : Module.End ℂ (Cq n V)) + adLL lev p.1 p.2.1 p.2.2)
      else 0
  ```
- `PositivityTheory.RgBcC.RealD.IsLevPairA`: Requires each operator family to satisfy the matrix-unit commutator relations on block-diagonal entries and requires the two families to commute there.

  ```lean
  def IsLevPairA {V : Type} [AddCommGroup V] [Module ℂ V] (lev : Fin n → ℕ) (F1 F2 : Fin n → Fin n → Module.End ℂ V) : Prop :=
    ∀ a b c d, lev a = lev b → lev c = lev d →
      F1 a b * F1 c d - F1 c d * F1 a b = (if b = c then F1 a d else 0) - (if d = a then F1 c b else 0) ∧
      F2 a b * F2 c d - F2 c d * F2 a b = (if b = c then F2 a d else 0) - (if d = a then F2 c b else 0) ∧
      F1 a b * F2 c d = F2 c d * F1 a b
  ```

### Development.AbelianVarietyTheory.Definitions.TwistedInnerProducts.FiniteDimensionalOfTrivialIsAdmOn

15 import steps from Main · 95 lines · Checked against the code · [Open in the Lean viewer](https://riemannhypothesissolved.com/file/Development.AbelianVarietyTheory.Definitions.TwistedInnerProducts.FiniteDimensionalOfTrivialIsAdmOn)

**Proves that admissibility forces a trivial representation to be finite-dimensional and verifies the matrix-group conditions for GL(n, ℂ).**

For a trivial action, rank-one intertwiners send a fixed line onto every line, so admissibility makes the whole representation space finite-dimensional. The proof that GL(n, ℂ) satisfies the linear reductivity conditions establishes connectedness by varying a complex parameter in 𝟙 + t(g − 𝟙) outside the finite zero set of its determinant. The remaining lemmas establish real analyticity of matrix entries, continuity for functions with local real-analytic extensions, and ambient closedness of the unitary intersection of a linearly reductive matrix group.

Key declarations:

- `GlobalTheory.LinRed.Model.finiteDimensional_of_trivial_isAdmOn`: An admissible trivial action on a complex inner-product space forces the space to be finite-dimensional.

  ```lean
  theorem finiteDimensional_of_trivial_isAdmOn {G : Set (Matrix (Fin n) (Fin n) ℂ)}
      (h : IsAdmOn G (fun _ => (1 : H →L[ℂ] H))) : FiniteDimensional ℂ H := …
  ```
- `GlobalTheory.LinRed.Model.isLinRed_units`: The invertible complex matrices form a connected subgroup that is closed relative to GL(n, ℂ) and stable under conjugate transpose.

  ```lean
  theorem isLinRed_units (n : ℕ) : IsLinRed {g : Matrix (Fin n) (Fin n) ℂ | IsUnit g} := …
  ```
- `GlobalTheory.LinRed.Model.analyticOnGroup_entry`: Every matrix-entry function admits a real-analytic extension near each point of any subset of complex matrices.

  ```lean
  theorem analyticOnGroup_entry (G : Set (Matrix (Fin n) (Fin n) ℂ)) (i j : Fin n) :
      AnalyticOnGroup G fun g => g i j := …
  ```
- `GlobalTheory.LinRed.Model.continuousOn_of_analyticOnGroup`: A complex-valued function with local real-analytic extensions along a matrix subset is continuous on that subset.

  ```lean
  theorem continuousOn_of_analyticOnGroup {G : Set (Matrix (Fin n) (Fin n) ℂ)} {f : Matrix (Fin n) (Fin n) ℂ → ℂ}
      (h : AnalyticOnGroup G f) : ContinuousOn f G := …
  ```
- `GlobalTheory.LinRed.Model.isClosed_maxCpt`: For a matrix group G satisfying the linear reductivity conditions, G ∩ U(n) is closed in the full matrix space.

  ```lean
  theorem isClosed_maxCpt {G : Set (Matrix (Fin n) (Fin n) ℂ)} (h : IsLinRed G) : IsClosed (maxCpt G) := …
  ```

### Development.AutomorphicSpectrum.Proofs.BlockDecomposition.EventuallyLineUnit

15 import steps from Main · 120 lines · Checked against the code · [Open in the Lean viewer](https://riemannhypothesissolved.com/file/Development.AutomorphicSpectrum.Proofs.BlockDecomposition.EventuallyLineUnit)

**Defines the differential of the representation matrix at the identity and proves its conjugation and translation formulas.**

The entrywise differential \(X_A\) is complex-linear in the matrix direction, and \(X_u\) evaluates it on matrix units. Openness of the invertible locus keeps \(\mathbf{1}+tB\) invertible near \(t=0\). Assuming entrywise holomorphy on the invertible locus, the proof differentiates the representation’s multiplicative identities along these lines to obtain conjugation equivariance and \(D R_m(g)[gB]=R_m(g)X_A(B)\) for invertible \(g\). Importers use the line and conjugation formulas to derive highest-weight vector equations and matrix-unit commutator relations.

Key declarations:

- `GlobalTheory.CompanionTheory.RmHol.XA`: Defines \(X_A(B)\) by applying the complex Fréchet derivative of each entry of \(R_m\) at the identity to \(B\).

  ```lean
  def XA (lam : Fin n → ℤ) (B : Mat n) : Matrix (Jd n lam) (Jd n lam) ℂ :=
    fun i j => fderiv ℂ (fun x : Mat n => Rm lam x i j) 1 B
  ```
- `GlobalTheory.CompanionTheory.RmHol.eventually_line_unit`: For every complex matrix \(B\), the matrix \(\mathbf{1}+tB\) is invertible for all \(t\) in some neighborhood of zero.

  ```lean
  theorem eventually_line_unit (B : Mat n) : ∀ᶠ t : ℂ in 𝓝 0, IsUnit ((1 : Mat n) + t • B).det := …
  ```
- `GlobalTheory.CompanionTheory.RmHol.hasDerivAt_line`: Under entrywise holomorphy, the derivative at zero of \(t\mapsto R_m(\mathbf{1}+tB)\) is \(X_A(B)\), entry by entry.

  ```lean
  theorem hasDerivAt_line {lam : Fin n → ℤ} (hD : HolRm lam) (B : Mat n) (i j : Jd n lam) :
      HasDerivAt (fun t : ℂ => Rm lam (1 + t • B) i j) (XA lam B i j) 0 := …
  ```
- `GlobalTheory.CompanionTheory.RmHol.conj_XA`: Under entrywise holomorphy, \(xB=B'x\) with \(x\) invertible implies \(R_m(x)X_A(B)=X_A(B')R_m(x)\).

  ```lean
  theorem conj_XA {lam : Fin n → ℤ} (hD : HolRm lam) {x B B' : Mat n} (hx : IsUnit x.det) (h : x * B = B' * x) :
      Rm lam x * XA lam B = XA lam B' * Rm lam x := …
  ```
- `GlobalTheory.CompanionTheory.RmHol.fderiv_Rm`: Under entrywise holomorphy, the differential at an invertible \(g\) in direction \(gB\) is \(R_m(g)X_A(B)\), entry by entry.

  ```lean
  theorem fderiv_Rm {lam : Fin n → ℤ} (hD : HolRm lam) {g : Mat n} (hg : g ∈ GLs n) (B : Mat n) (i j : Jd n lam) :
      fderiv ℂ (fun x : Mat n => Rm lam x i j) g (g * B) = (Rm lam g * XA lam B) i j := …
  ```

### Development.AutomorphicSpectrum.Proofs.BlockDecomposition.ExistsHighestWeightHermitianDerivationStatement

15 import steps from Main · 11 lines · Checked against the code · [Open in the Lean viewer](https://riemannhypothesissolved.com/file/Development.AutomorphicSpectrum.Proofs.BlockDecomposition.ExistsHighestWeightHermitianDerivationStatement)

**Exposes the highest-weight existence theorem with adjoint-compatible infinitesimal operators and a Weyl character formula.**

The statement directly invokes the imported model theorem for each weakly decreasing integral weight, giving a finite-dimensional \(U(n)\)-representation with a unique highest-weight line. HighestWeightIntegralOfUnitary uses the model to construct an isotypic projection and derive its trace formula.

Key declarations:

- `GlobalTheory.T.exists_highest_weight_hermitian_derivation`: For each weakly decreasing integral weight \(\nu\), there is a finite-dimensional complex inner-product space carrying a \(U(n)\)-representation \(\sigma\) and operators \(K_{ab}\) compatible with its differentiation, satisfying the matrix-unit commutator relations and \(K_{ab}^{*}=K_{ba}\), whose raising operators have joint kernel a line of weight \(\nu\) and whose trace on diagonal elements with distinct entries is the Weyl character of \(\nu\).

  ```lean
  set_option maxHeartbeats 1000000 in
  theorem _root_.GlobalTheory.T.exists_highest_weight_hermitian_derivation : ∀ {n : ℕ} (ν : Fin n → ℤ), Antitone ν → ∃ (L : Type) (_ : NormedAddCommGroup L) (_ : InnerProductSpace ℂ L) (_ : FiniteDimensional ℂ L) (σ : Matrix.unitaryGroup (Fin n) ℂ →* (L →ₗ[ℂ] L)) (K : Fin n → Fin n → Module.End ℂ L) (v : L), Formalism.REAL.GlRel K ∧ (∀ a b (x y : L), ⟪K a b x, y⟫_ℂ = ⟪x, K b a y⟫_ℂ) ∧ IsDerivK σ K ∧ v ≠ 0 ∧ Formalism.REAL.KHighest (fun _ => true) K (wtR ν) v ∧ (∀ w : L, (∀ a b, a < b → K a b w = 0) → ∃ c : ℂ, w = c • v) ∧ ∀ (k : Matrix.unitaryGroup (Fin n) ℂ) (z : Fin n → ℂ), k.1 = diagonal z → Function.Injective z → LinearMap.trace ℂ L (σ k) = weylChar ν z := …
  ```

### Development.AutomorphicSpectrum.Proofs.BlockDecomposition.MapMemKfin

15 import steps from Main · 72 lines · Checked against the code · [Open in the Lean viewer](https://riemannhypothesissolved.com/file/Development.AutomorphicSpectrum.Proofs.BlockDecomposition.MapMemKfin)

**Defines the \(U(n)\)-finite subspace and proves that operators commuting with the \(U(n)\)-action preserve it.**

A vector is \(U(n)\)-finite if it lies in a finite-dimensional \(U(n)\)-invariant subspace, and the group action restricts to the space of such vectors. A commuting continuous linear operator carries each finite-dimensional invariant subspace to another, so it too restricts. The infinitesimal action is specified by real linearity, preservation of commutators, and differentiation along matrix exponentials, with complex-linear and conjugate-linear combinations defined on matrix units.

Key declarations:

- `GlobalTheory.CompanionTheory.GLK.kfin`: Defines the complex subspace of vectors contained in finite-dimensional \(U(n)\)-invariant subspaces.

  ```lean
  def kfin (π : G n →* (U →L[ℂ] U)) : Submodule ℂ U
  ```
- `GlobalTheory.CompanionTheory.GLK.sigK`: Restricts the \(U(n)\)-action to a representation on the \(U(n)\)-finite subspace.

  ```lean
  def sigK (π : G n →* (U →L[ℂ] U)) : Matrix.unitaryGroup (Fin n) ℂ →* (kfin π →ₗ[ℂ] kfin π) where
    toFun k := (π (uG k) : U →ₗ[ℂ] U).restrict (p := kfin π) (q := kfin π) (fun v ⟨S, hS, hv, hk⟩ => ⟨S, hS, hk k v hv, hk⟩)
    map_one' := by
      ext v
      simp [uG]
    map_mul' a b := by
      ext v
      simp [uG]
  ```
- `GlobalTheory.CompanionTheory.GLK.IsLieD`: Specifies a real-linear, bracket-preserving assignment \(X\mapsto D(X)\) on complex matrices for which \(D(X)v\) is the derivative at zero of \(t\mapsto\pi(\exp(tX))v\) for every \(U(n)\)-finite vector \(v\).

  ```lean
  structure IsLieD (π : G n →* (U →L[ℂ] U)) (D : Mat n → Module.End ℂ (kfin π)) : Prop where
    add : ∀ X Y, D (X + Y) = D X + D Y
    smul : ∀ (r : ℝ) X, D ((r : ℂ) • X) = (r : ℂ) • D X
    brk : ∀ X Y, D (X * Y - Y * X) = D X * D Y - D Y * D X
    deriv : ∀ X (v : kfin π), HasDerivAt (fun t : ℝ => π (expG X t) (v : U)) ((D X v : kfin π) : U) 0
  ```
- `GlobalTheory.CompanionTheory.GLK.map_mem_kfin`: A continuous complex-linear operator commuting with \(U(n)\) sends \(U(n)\)-finite vectors to \(U(n)\)-finite vectors.

  ```lean
  theorem map_mem_kfin (π : G n →* (U →L[ℂ] U)) (A : U →L[ℂ] U) (hA : ∀ k, A ∘L π (uG k) = π (uG k) ∘L A) {v : U}
      (hv : v ∈ kfin π) : A v ∈ kfin π := …
  ```
- `GlobalTheory.CompanionTheory.GLK.opK`: Restricts a continuous complex-linear operator commuting with \(U(n)\) to an endomorphism of the \(U(n)\)-finite subspace.

  ```lean
  def opK (π : G n →* (U →L[ℂ] U)) (A : U →L[ℂ] U) (hA : ∀ k, A ∘L π (uG k) = π (uG k) ∘L A) : kfin π →ₗ[ℂ] kfin π :=
    (A : U →ₗ[ℂ] U).restrict (p := kfin π) (q := kfin π) fun _ hv => map_mem_kfin π A hA hv
  ```

### Development.AutomorphicSpectrum.Proofs.BlockDecomposition.UnitaryExpSkewHermitian

15 import steps from Main · 125 lines · Checked against the code · [Open in the Lean viewer](https://riemannhypothesissolved.com/file/Development.AutomorphicSpectrum.Proofs.BlockDecomposition.UnitaryExpSkewHermitian)

**Proves that every unitary matrix is unitarily diagonalizable and is the exponential of a skew-Hermitian matrix.**

For a unitary matrix \(K\), the proof simultaneously diagonalizes the commuting Hermitian matrices \(K+K^*\) and \(i(K-K^*)\), obtaining a unitary eigenbasis for \(K\). Its eigenvalues have modulus one, so multiplying their arguments by \(i\) gives diagonal logarithms that yield a skew-Hermitian logarithm in the original basis. DerivativeUnitaryAction uses this exponential description to show that an infinitesimal intertwiner also intertwines the \(U(n)\)-actions.

Key declarations:

- `GlobalTheory.CompanionTheory.UnitaryExp.exists_unitary_diag`: Every complex unitary matrix \(K\) admits a unitary \(V\) for which \(V^*KV\) is diagonal with all entries of modulus one.

  ```lean
  theorem exists_unitary_diag {n : ℕ} (K : Matrix (Fin n) (Fin n) ℂ) (h1 : Kᴴ * K = 1) (h2 : K * Kᴴ = 1) :
      ∃ (V : Matrix (Fin n) (Fin n) ℂ) (z : Fin n → ℂ), Vᴴ * V = 1 ∧ V * Vᴴ = 1 ∧
        Vᴴ * K * V = Matrix.diagonal z ∧ ∀ a, ‖z a‖ = 1 := …
  ```
- `GlobalTheory.CompanionTheory.UnitaryExp.exists_skew_exp_eq`: Every \(k\in U(n)\) admits a complex matrix \(X\) with \(X^*=-X\) and \(\exp(X)=k\) as an invertible matrix.

  ```lean
  theorem exists_skew_exp_eq (n : ℕ) (k : Matrix.unitaryGroup (Fin n) ℂ) :
      ∃ X : Mat n, Xᴴ = -X ∧ uG k = expG X 1 := …
  ```

### Formalism.GelfandTransference.HadamardGelfand.Highest

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

**Proves a recurrence for the diagonal entries of matrix powers acting on a highest-weight vector.**

Let E be a matrix over an associative ring whose entries satisfy the standard glₙ commutator relations, and let v be a module vector killed by the strictly upper entries with integral diagonal weights ν. The defining left-multiplication recurrence and the commutator formula for entries of powers show by induction that all strictly upper entries of Eᵏ kill v. Writing Dₖ(a) for the action of (Eᵏ)ₐₐ on v, the proof uses right multiplication to obtain Dₖ₊₁(a) = (νₐ + n − 1 − a)Dₖ(a) − ∑_{b>a} Dₖ(b), with indices starting at zero.

Key declarations:

- `Formalism.HadamardInequality.P.epow_succ_right`: The recursively defined power Eᵏ⁺¹ is obtained by multiplying Eᵏ by E on the right.

  ```lean
  theorem epow_succ_right (E : Fin n → Fin n → A) :
      ∀ (k : ℕ) (a b : Fin n), epow E (k + 1) a b = ∑ c, epow E k a c * E c b := …
  ```
- `Formalism.HadamardInequality.P.epow_upper_kill`: Under the glₙ commutator relations, every strictly upper entry of every power of E annihilates a vector annihilated by the strictly upper entries of E.

  ```lean
  theorem epow_upper_kill (E : Fin n → Fin n → A) (hE : GlRel E) (v : M)
      (hv : ∀ a b : Fin n, a < b → E a b • v = 0) :
      ∀ (k : ℕ) (a c : Fin n), a < c → epow E k a c • v = 0 := …
  ```
- `Formalism.HadamardInequality.P.epow_diag_smul_highest_weight`: Under the glₙ commutator relations, for a vector killed by the strictly upper entries with integral diagonal weights ν, the a-th diagonal action at power k + 1 is the action at power k scaled by the integer νₐ + n − 1 − a, minus the sum of the power-k diagonal actions at indices b > a.

  ```lean
  theorem epow_diag_smul_highest_weight (E : Fin n → Fin n → A) (hE : GlRel E) (ν : Fin n → ℤ) (v : M)
      (hv : ∀ a b : Fin n, a < b → E a b • v = 0) (hd : ∀ a : Fin n, E a a • v = ν a • v)
      (k : ℕ) (a : Fin n) :
      epow E (k + 1) a a • v =
        (ν a + (n : ℤ) - 1 - (a : ℤ)) • (epow E k a a • v) -
          ∑ b ∈ univ.filter (fun b : Fin n => a < b), epow E k b b • v := …
  ```
- `Formalism.HadamardInequality.P.highest_weight_diagonal_holds`: The diagonal recurrence holds for every ring, module, matrix satisfying the glₙ commutator relations, and vector with the stated highest-weight conditions.

  ```lean
  theorem highest_weight_diagonal_holds : Formalism.HadamardInequality.HighestDiag := …
  ```

### Development.AutomorphicSpectrum.Proofs.BlockDecomposition.ExistsHighestWeightHermitianDerivation

16 import steps from Main · 340 lines · Checked against the code · [Open in the Lean viewer](https://riemannhypothesissolved.com/file/Development.AutomorphicSpectrum.Proofs.BlockDecomposition.ExistsHighestWeightHermitianDerivation)

**Constructs a unitary highest-weight model with adjoint-compatible infinitesimal operators and a Weyl character formula.**

For each weakly decreasing integral weight, the matrix action is transported to a Euclidean space where \(U(n)\) preserves the inner product. Differentiating this invariance along skew-Hermitian exponentials yields \(K_{ab}^{*}=K_{ba}\). Vectors killed by all raising operators are fixed by the upper unitriangular subgroup, whose fixed space is the highest-weight line. On diagonal unitary elements with distinct entries, the trace is the Weyl character. The importing statement module invokes rmModel directly.

Key declarations:

- `GlobalTheory.CompanionTheory.RmModel.exists_frame`: Gives a complex-linear identification with Euclidean space in which the matrix action of \(U(n)\) preserves the inner product.

  ```lean
  theorem exists_frame (ν : Fin n → ℤ) :
      ∃ (d : ℕ) (e : (Jd n ν → ℂ) ≃ₗ[ℂ] EuclideanSpace ℂ (Fin d)),
        ∀ (k : Matrix.unitaryGroup (Fin n) ℂ) (x y : Jd n ν → ℂ),
          ⟪e (Rm ν k.1 *ᵥ x), e (Rm ν k.1 *ᵥ y)⟫_ℂ = ⟪e x, e y⟫_ℂ := …
  ```
- `GlobalTheory.CompanionTheory.RmModel.fix_of_killed`: A vector killed by every strictly upper-triangular matrix-unit operator is fixed by every upper unitriangular matrix.

  ```lean
  theorem fix_of_killed (ν : Fin n → ℤ) (c : Jd n ν → ℂ) (hc : ∀ a b, a < b → Xu ν a b *ᵥ c = 0) (g : Mat n)
      (h1 : ∀ i j, j < i → g i j = 0) (h2 : ∀ i, g i i = 1) : Rm ν g *ᵥ c = c := …
  ```
- `GlobalTheory.CompanionTheory.RmModel.line_of_killed`: Every vector in the joint kernel of the raising operators is a scalar multiple of the distinguished highest-weight vector in matrix coordinates.

  ```lean
  theorem line_of_killed (ν : Fin n → ℤ) (c : Jd n ν → ℂ) (hc : ∀ a b, a < b → Xu ν a b *ᵥ c = 0) :
      ∃ s : ℂ, c = s • ((wb ν).repr (HW.hv ν) : Jd n ν → ℂ) := …
  ```
- `GlobalTheory.CompanionTheory.RmModel.herm_frame`: In coordinates with invariant inner product, the operators attached to the matrix units \(E_{ab}\) and \(E_{ba}\) are adjoints.

  ```lean
  theorem herm_frame (a b : Fin n) (x y : Jd n ν → ℂ) :
      ⟪e (Xu ν a b *ᵥ x), e y⟫_ℂ = ⟪e x, e (Xu ν b a *ᵥ y)⟫_ℂ := …
  ```
- `GlobalTheory.CompanionTheory.RmModel.rmModel`: For each weakly decreasing integral weight \(\nu\), constructs a finite-dimensional unitary representation with infinitesimal operators satisfying the matrix-unit commutator and adjoint relations, a joint raising kernel equal to a line of weight \(\nu\), and trace equal to the Weyl character on diagonal elements with distinct entries.

  ```lean
  theorem rmModel : ∀ {n : ℕ} (ν : Fin n → ℤ), Antitone ν → ∃ (L : Type) (_ : NormedAddCommGroup L)
      (_ : InnerProductSpace ℂ L) (_ : FiniteDimensional ℂ L) (σ : Matrix.unitaryGroup (Fin n) ℂ →* (L →ₗ[ℂ] L))
      (K : Fin n → Fin n → Module.End ℂ L) (v : L), Formalism.REAL.GlRel K ∧
        (∀ a b (x y : L), ⟪K a b x, y⟫_ℂ = ⟪x, K b a y⟫_ℂ) ∧ IsDerivK σ K ∧ v ≠ 0 ∧
        Formalism.REAL.KHighest (fun _ => true) K (wtR ν) v ∧
        (∀ w : L, (∀ a b, a < b → K a b w = 0) → ∃ c : ℂ, w = c • v) ∧
        ∀ (k : Matrix.unitaryGroup (Fin n) ℂ) (z : Fin n → ℂ), k.1 = diagonal z → Function.Injective z →
          LinearMap.trace ℂ L (σ k) = weylChar ν z := …
  ```

### Formalism.GelfandTransference.HadamardGelfand.Gelfand

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

**Proves that the glₙ commutator rule extends to commutators of matrix entries with entries of any power.**

For a matrix E over a possibly noncommutative ring whose entries satisfy the standard glₙ relations, the theorem expresses each commutator of an entry of E with an entry of Eᵏ as a difference of two Kronecker-delta terms. The proof inducts on k using the Leibniz rule for commutators in the matrix product. The highest-weight argument uses the identity both to prove that strictly upper entries of Eᵏ annihilate a highest-weight vector and to derive the recurrence for the action of the diagonal entries.

Key declarations:

- `Formalism.HadamardInequality.P.comm_epow`: Under the glₙ relations, [E_{cd}, (Eᵏ)_{ab}] = δ_{da}(Eᵏ)_{cb} − δ_{bc}(Eᵏ)_{ad} for every nonnegative integer k.

  ```lean
  theorem comm_epow (E : Fin n → Fin n → A) (hE : GlRel E) (k : ℕ) :
      ∀ a b c d : Fin n, E c d * epow E k a b - epow E k a b * E c d =
        (if d = a then epow E k c b else 0) - (if b = c then epow E k a d else 0) := …
  ```

### Development.AutomorphicSpectrum.Proofs.BlockDecomposition.DifferentiableCoeffRowAct

17 import steps from Main · 91 lines · Checked against the code · [Open in the Lean viewer](https://riemannhypothesissolved.com/file/Development.AutomorphicSpectrum.Proofs.BlockDecomposition.DifferentiableCoeffRowAct)

**Proves entrywise holomorphy of the representation matrix \(R_m\) on \(\mathrm{GL}_n(\mathbb C)\).**

For a fixed multivariate polynomial, induction on the polynomial shows that every coefficient after the row action by \(M^{\mathsf T}\) depends holomorphically on \(M\). Near each invertible matrix, every entry of \(R_m\) is a finite linear combination of these coefficients multiplied by an integral power of the determinant, which is holomorphic there. ExistsHighestWeightHermitianDerivation uses this result to differentiate the representation along matrix exponential curves.

Key declarations:

- `GlobalTheory.CompanionTheory.RmHol.differentiable_entry`: Each coordinate projection \(M\mapsto M_{ab}\) is complex differentiable on the full matrix space.

  ```lean
  theorem differentiable_entry {r : ℕ} (a b : Fin r) :
      Differentiable ℂ fun M : Matrix (Fin r) (Fin r) ℂ => M a b := …
  ```
- `GlobalTheory.CompanionTheory.RmHol.differentiable_det`: The determinant is complex differentiable on the full matrix space by its expansion as a finite sum of products of entries.

  ```lean
  theorem differentiable_det {r : ℕ} :
      Differentiable ℂ fun M : Matrix (Fin r) (Fin r) ℂ => M.det := …
  ```
- `GlobalTheory.CompanionTheory.RmHol.differentiable_coeff_rowAct`: Every monomial coefficient of the row transform of a fixed polynomial by \(M^{\mathsf T}\) is complex differentiable as a function of \(M\).

  ```lean
  theorem differentiable_coeff_rowAct {r m : ℕ} (f : MvPolynomial (Fin r × Fin m) ℂ) :
      ∀ s : (Fin r × Fin m) →₀ ℕ, Differentiable ℂ fun M : Matrix (Fin r) (Fin r) ℂ =>
        MvPolynomial.coeff s (Formalism.GradedWeylDivisibility.rowAct ℂ (n := m) Mᵀ f) := …
  ```
- `GlobalTheory.CompanionTheory.RmHol.detPow_nonsingInvUnit`: For an invertible matrix \(M\), the determinant character with integer exponent \(c\) evaluates to \((\det M)^c\).

  ```lean
  theorem detPow_nonsingInvUnit {n : ℕ} {x : Mat n} (h : IsUnit x.det) (c : ℤ) :
      Formalism.BasicNotions.detPow ℂ n (Matrix.nonsingInvUnit x h) c = x.det ^ c := …
  ```
- `GlobalTheory.CompanionTheory.RmHol.holRm`: For every integral weight tuple \(\lambda\), each entry of \(R_m(\lambda,M)\) is complex differentiable at every invertible \(M\).

  ```lean
  theorem holRm (n : ℕ) (lam : Fin n → ℤ) : HolRm lam := …
  ```

### Development.AutomorphicSpectrum.Proofs.BlockDecomposition.GelfandInfinitesimalCharacter

17 import steps from Main · 37 lines · Checked against the code · [Open in the Lean viewer](https://riemannhypothesissolved.com/file/Development.AutomorphicSpectrum.Proofs.BlockDecomposition.GelfandInfinitesimalCharacter)

**Collects matrix-coefficient definitions and an entrywise derivative lemma for the matrix exponential.**

The definitions give a matrix coefficient, its linear functional on the \(U(n)\)-finite vectors, and two combinations of the infinitesimal operators attached to \(E_{ab}\) and \(iE_{ab}\). The derivative lemma applies coordinate projection to the derivative of the matrix exponential at zero, and ExistsHighestWeightHermitianDerivation uses it to differentiate the representation along exponential curves.

Key declarations:

- `GlobalTheory.CompanionTheory.GelfAct.hasDerivAt_exp_entry`: For every complex matrix \(X\), the real-parameter derivative of \((\exp(tX))_{ab}\) at \(t=0\) is \(X_{ab}\).

  ```lean
  theorem hasDerivAt_exp_entry (X : Mat n) (a b : Fin n) :
      HasDerivAt (fun t : ℝ => NormedSpace.exp ((t : ℂ) • X) a b) (X a b) 0 := …
  ```
- `GlobalTheory.CompanionTheory.GelfAct.cf`: Defines the matrix coefficient \(g\mapsto\langle w,\pi_M(g)v\rangle\) for fixed vectors \(w\) and \(v\).

  ```lean
  def cf (π : G n →* (U →L[ℂ] U)) (w v : U) : Mat n → ℂ := fun g => ⟪w, piM π g v⟫_ℂ
  ```
- `GlobalTheory.CompanionTheory.GelfAct.lin`: For fixed \(g\) and \(w\), defines the complex-linear functional \(v\mapsto\langle w,\pi_M(g)v\rangle\) on the \(U(n)\)-finite vectors.

  ```lean
  def lin (π : G n →* (U →L[ℂ] U)) (w : U) (g : Mat n) : kfin π →ₗ[ℂ] ℂ :=
    ((innerSL ℂ w) ∘L (piM π g)).toLinearMap ∘ₗ (kfin π).subtype
  ```
- `GlobalTheory.CompanionTheory.GelfAct.fam`: Defines the two operators \(\tfrac12(D(E_{ab})\pm iD(iE_{ab}))\) on the \(U(n)\)-finite subspace, with the minus sign selected by the true flag.

  ```lean
  def fam (π : G n →* (U →L[ℂ] U)) (D : Mat n → Module.End ℂ (kfin π)) (s : Bool) (a b : Fin n) : Module.End ℂ (kfin π) :=
    (1 / 2 : ℂ) • (D (Matrix.single a b 1) + (if s then -Complex.I else Complex.I) • D (Matrix.single a b Complex.I))
  ```

### Development.AutomorphicSpectrum.Proofs.BlockDecomposition.HasDerivAtMulVec

17 import steps from Main · 139 lines · Checked against the code · [Open in the Lean viewer](https://riemannhypothesissolved.com/file/Development.AutomorphicSpectrum.Proofs.BlockDecomposition.HasDerivAtMulVec)

**Derives the infinitesimal highest-weight equations by differentiating the group action on an extremal vector.**

For a weakly decreasing integral weight \(\lambda\), the proof starts with a nonzero extremal vector and assumes entrywise holomorphy of the representation matrix. Along \(\mathbf{1}+tE_{ab}\) for \(a<b\), the vector is fixed, while along \(\mathbf{1}+tE_{aa}\) with \(1+t\ne0\) it is multiplied by \((1+t)^{\lambda_a}\). Differentiation at zero gives annihilation by the raising operators and diagonal eigenvalues \(\lambda_a\). ExistsHighestWeightHermitianDerivation uses these equations to construct its unitary highest-weight model.

Key declarations:

- `GlobalTheory.CompanionTheory.RmHol.HW.hv_ne`: The distinguished extremal vector in the polynomial representation is nonzero.

  ```lean
  theorem hv_ne (lam : Fin n → ℤ) : hv lam ≠ 0 := …
  ```
- `GlobalTheory.CompanionTheory.RmHol.HW.hasDerivAt_mulVec`: Under entrywise holomorphy, the derivative at zero of \(R_m(\lambda,\mathbf{1}+tB)c\) is \(X_A(\lambda,B)c\), coordinate by coordinate.

  ```lean
  theorem hasDerivAt_mulVec {lam : Fin n → ℤ} (hD : HolRm lam) (B : Mat n) (c : Jd n lam → ℂ)
      (i : Jd n lam) :
      HasDerivAt (fun t : ℂ => (Rm lam (1 + t • B) *ᵥ c) i) ((XA lam B *ᵥ c) i) 0 := …
  ```
- `GlobalTheory.CompanionTheory.RmHol.HW.fix_upper`: Every upper elementary unipotent \(\mathbf{1}+tE_{ab}\) with \(a<b\) fixes the distinguished vector.

  ```lean
  theorem fix_upper (lam : Fin n → ℤ) {a b : Fin n} (hab : a < b) {t : ℂ}
      (h : IsUnit ((1 : Mat n) + t • Matrix.single a b (1 : ℂ)).det) :
      GlobalTheory.Branching.sqRep ℂ n (dw lam) (Matrix.nonsingInvUnit _ h) (hv lam) = hv lam := …
  ```
- `GlobalTheory.CompanionTheory.RmHol.HW.diag_act`: For weakly decreasing \(\lambda\) and \(1+t\ne0\), the diagonal matrix \(\mathbf{1}+tE_{aa}\) acts on the distinguished vector by \((1+t)^{\lambda_a}\).

  ```lean
  theorem diag_act {lam : Fin n → ℤ} (hA : Antitone lam) (a : Fin n) {t : ℂ} (ht : 1 + t ≠ 0)
      (h : IsUnit ((1 : Mat n) + t • Matrix.single a a (1 : ℂ)).det) :
      GlobalTheory.Branching.sqRep ℂ n (dw lam) (Matrix.nonsingInvUnit _ h) (hv lam) =
        ((1 + t) ^ (lam a)) • hv lam := …
  ```
- `GlobalTheory.CompanionTheory.RmHol.HW.exists_hw`: For weakly decreasing \(\lambda\) and an entrywise holomorphic representation matrix, there is a nonzero vector killed by every raising operator and on which each diagonal infinitesimal operator acts by \(\lambda_a\).

  ```lean
  theorem exists_hw (n : ℕ) (lam : Fin n → ℤ) (hD : HolRm lam) (hA : Antitone lam) :
      ∃ v : Formalism.BasicNotions.nablaSq ℂ n (dw lam), v ≠ 0 ∧
        (∀ a b : Fin n, a < b → Xu lam a b *ᵥ ((wb lam).repr v : Jd n lam → ℂ) = 0) ∧
        ∀ a : Fin n, Xu lam a a *ᵥ ((wb lam).repr v : Jd n lam → ℂ) =
          (lam a : ℂ) • ((wb lam).repr v : Jd n lam → ℂ) := …
  ```

### Development.AutomorphicSpectrum.Proofs.BlockDecomposition.LineInverse

17 import steps from Main · 120 lines · Checked against the code · [Open in the Lean viewer](https://riemannhypothesissolved.com/file/Development.AutomorphicSpectrum.Proofs.BlockDecomposition.LineInverse)

**Derives the matrix-unit commutator relations by differentiating conjugation along \(\mathbf{1}+te\).**

When \(e^2=\delta e\), the inverse of \(\mathbf{1}+te\) near \(t=0\) is \(\mathbf{1}-\frac{t}{1+t\delta}e\). Assuming entrywise holomorphy, the proof inserts this inverse into the conjugation identity and differentiates at zero to obtain \([X_A(e),X_A(B)]=X_A(eB-Be)\). Specializing to matrix units gives the commutator relations for \(X_u\), which ExistsHighestWeightHermitianDerivation transports to its unitary model.

Key declarations:

- `GlobalTheory.CompanionTheory.RmHol.line_inverse`: If \(e^2=\delta e\) and \(s(1+t\delta)=t\), then \(\mathbf{1}-se\) is a two-sided inverse of \(\mathbf{1}+te\).

  ```lean
  theorem line_inverse {e : Mat n} {δ t s : ℂ} (he : e * e = δ • e) (hs : s * (1 + t * δ) = t) :
      (1 + t • e) * (1 - s • e) = 1 ∧ (1 - s • e) * (1 + t • e) = 1 := …
  ```
- `GlobalTheory.CompanionTheory.RmHol.conj_line`: Under entrywise holomorphy and \(e^2=\delta e\), conjugation of \(X_A(B)\) by \(R_m(\mathbf{1}+te)\) agrees near zero with \(X_A\) applied to \((\mathbf{1}+te)B(\mathbf{1}-\frac{t}{1+t\delta}e)\).

  ```lean
  theorem conj_line {lam : Fin n → ℤ} (hD : HolRm lam) {e : Mat n} (B : Mat n) {δ : ℂ} (he : e * e = δ • e) :
      ∀ᶠ t : ℂ in 𝓝 0, Rm lam (1 + t • e) * XA lam B =
        (XA lam B + t • XA lam (e * B) + (-(t / (1 + t * δ))) • XA lam (B * e)
          + (-(t * (t / (1 + t * δ)))) • XA lam (e * B * e)) * Rm lam (1 + t • e) := …
  ```
- `GlobalTheory.CompanionTheory.RmHol.comm_XA`: Under entrywise holomorphy and \(e^2=\delta e\), the commutator \([X_A(e),X_A(B)]\) equals \(X_A(eB)-X_A(Be)\) for every \(B\).

  ```lean
  theorem comm_XA {lam : Fin n → ℤ} (hD : HolRm lam) {e : Mat n} (B : Mat n) {δ : ℂ} (he : e * e = δ • e) :
      XA lam e * XA lam B - XA lam B * XA lam e = XA lam (e * B) - XA lam (B * e) := …
  ```
- `GlobalTheory.CompanionTheory.RmHol.XA_zero`: The differential \(X_A\) sends the zero direction to the zero matrix.

  ```lean
  theorem XA_zero (lam : Fin n → ℤ) : XA lam (0 : Mat n) = 0 := …
  ```
- `GlobalTheory.CompanionTheory.RmHol.xu_glRel`: Under entrywise holomorphy, \(X_{ab}=X_u(a,b)\) satisfies \([X_{ab},X_{cd}]=\delta_{bc}X_{ad}-\delta_{da}X_{cb}\).

  ```lean
  theorem xu_glRel : ∀ (n : ℕ) (lam : Fin n → ℤ), HolRm lam → Formalism.HadamardInequality.GlRel (Xu lam) := …
  ```

### Development.AutomorphicSpectrum.Proofs.BlockDecomposition.SecondCountableUnitary

17 import steps from Main · 371 lines · Checked against the code · [Open in the Lean viewer](https://riemannhypothesissolved.com/file/Development.AutomorphicSpectrum.Proofs.BlockDecomposition.SecondCountableUnitary)

**Proves Haar averaging identities for a continuous matrix representation of \(U(n)\) and its Gram operator.**

Haar averaging of \(F(k)^*F(k)\) gives a positive invertible Gram operator for a continuous finite-dimensional representation of a compact second-countable group. Right invariance gives \(F(k)^*QF(k)=Q\), and uniqueness of the positive square root gives commutation with every unitary operator commuting with the representation. The proof establishes second countability of \(U(n)\) and applies these identities to its exterior-algebra and tensor-product action. ExistsHighestWeightHermitianDerivation uses the identity, product, and continuity laws for \(R_m\) to construct a unitary model.

Key declarations:

- `GlobalTheory.CompanionTheory.CxAvg.gram_isUnit`: The Haar integral of \(F(k)^*F(k)\) is invertible for a continuous finite-dimensional representation \(F\) of a compact second-countable group.

  ```lean
  theorem gram_isUnit (hF : Continuous F) : IsUnit (gram μ F) := …
  ```
- `GlobalTheory.CompanionTheory.CxAvg.gram_invariant`: The averaged Gram operator \(Q\) satisfies \(F(k)^*QF(k)=Q\) for every group element \(k\).

  ```lean
  theorem gram_invariant (hF : Continuous F) (k : K) : adj (F k) * gram μ F * F k = gram μ F := …
  ```
- `GlobalTheory.CompanionTheory.CxAvg.sqrt_commute`: Every unitary operator commuting with all \(F(k)\) commutes with the positive square root of the averaged Gram operator.

  ```lean
  theorem sqrt_commute (hF : Continuous F) (A : E →L[ℂ] E) (hA1 : adj A * A = 1) (hA2 : A * adj A = 1)
      (hc : ∀ k, A * F k = F k * A) : A * CFC.sqrt (gram μ F) = CFC.sqrt (gram μ F) * A := …
  ```
- `GlobalTheory.CompanionTheory.CxAvg.continuous_Rm`: For every integral weight tuple, the representation matrix \(R_m\) depends continuously on the unitary group element.

  ```lean
  theorem continuous_Rm (lam : Fin n → ℤ) : Continuous fun k : KU n => Rm lam k.1 := …
  ```
- `GlobalTheory.CompanionTheory.CxAvg.avg`: For the concrete \(U(n)\)-action, the positive square root of the averaged Gram operator is invertible and self-adjoint, squares to that invariant Gram operator, and commutes with the unitary operators commuting with the action.

  ```lean
  theorem avg : Avg := …
  ```


---

Twisted trace on unitary-invariant… · Alpöge Lean readings, part 3. Web page: https://riemannhypothesissolved.com/cluster/k0913-twisted-trace-on-unitary-invariant-maps-is-2-n-via-highest/lean/part-3/ · updated 2026-11-26 · site map for machines: https://riemannhypothesissolved.com/llms.txt
