Hodge conjecture: the CM case in Lean, read and discussed
OpenAI's Lean proof of the Hodge conjecture for CM abelian varieties: rerun it, read its statement, and keep the open questions with their sources. The conjecture is open

| 1 | import OAI.NumberTheory.ArithmeticGroups.Lattices.EigenbasisMatrixSpectral |
| 2 | import OAI.NumberTheory.ArithmeticGroups.Lattices.NormalizedTraceSpectrum |
| 3 | import OAI.NumberTheory.ArithmeticGroups.Lattices.SpectralGaloisDescent |
| 4 | import OAI.NumberTheory.ArithmeticGroups.Lattices.SemisimpleScalingElement |
| 5 | |
| 6 | /-! # Rational Spectral Scaling -/ |
| 7 | |
| 8 | namespace OAI.NumberTheory.ArithmeticGroups.Lattices.RationalSpectralScaling.Construction |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! Normalized trace replaces the semisimple scaling element by a |
| 13 | rational-spectrum matrix that is still defined over the number field. -/ |
| 14 | |
| 15 | open scoped Classical |
| 16 | |
| 17 | attribute [local instance] LieRing.ofAssociativeRing |
| 18 | |
| 19 | theorem semisimple_scaling_has_rational_spectrum |
| 20 | {k : Type} [Field k] [NumberField k] {n : ℕ} |
| 21 | (G : Algebraic.MatrixAlgebraicGroup k n) (hconn : G.IsGeometricallyConnected) |
| 22 | (S A : Matrix (Fin n) (Fin n) k) (hS : S ∈ Infinitesimal.Action.Construction.infinitesimalStabilizer G) |
| 23 | (hsemi : Module.End.IsSemisimple (Matrix.toLin' S)) (hscale : S * A - A * S = A) : |
| 24 | ∃ T ∈ Infinitesimal.Action.Construction.infinitesimalStabilizer G, |
| 25 | T * A - A * T = A ∧ |
| 26 | ∃ (b : Module.Basis (Fin n) (AlgebraicClosure k) (Fin n → AlgebraicClosure k)) |
| 27 | (w : Fin n → ℚ), |
| 28 | ∀ i, Matrix.toLin' (T.map (algebraMap k (AlgebraicClosure k))) (b i) = |
| 29 | algebraMap ℚ (AlgebraicClosure k) (w i) • b i := by |
| 30 | let K := AlgebraicClosure k |
| 31 | let : Algebra.IsIntegral ℚ K := Algebra.IsIntegral.trans k |
| 32 | let ι := algebraMap k K |
| 33 | obtain ⟨b, w, hb⟩ := SemisimpleMatrixDiagonalization.Construction.semisimple_matrix_has_eigenbasis (S.map ι) |
| 34 | (SemisimpleMatrixDiagonalization.Construction.semisimple_matrix_coefficient_map ι S hsemi) |
| 35 | let ψ : K →+ K := NormalizedTraceSpectrum.Construction.normalizedTraceSpectralMap (k := ℚ) |
| 36 | let T := EigenbasisMatrixSpectral.Construction.eigenbasisSpectralMatrix b (fun i => ψ (w i)) |
| 37 | have hT (i : Fin n) : Matrix.toLin' T (b i) = ψ (w i) • b i := |
| 38 | EigenbasisMatrixSpectral.Construction.eigenbasisSpectralMatrix_apply b _ i |
| 39 | obtain ⟨T₀, hT₀⟩ := SpectralGaloisDescent.Construction.matrix_spectral_function_descends b S T w ψ hb hT |
| 40 | (fun σ x => NormalizedTraceSpectrum.Construction.rational_normalizedTraceSpectralMap_equivariant σ x) |
| 41 | have hT₀' : T₀.map ι = T := hT₀ |
| 42 | have hTmem : T ∈ Infinitesimal.Action.Construction.infinitesimalStabilizer (BaseChange.Construction.matrixGroupBaseChange G ι) := |
| 43 | EigenbasisMatrixSpectral.Construction.infinitesimal_eigenbasis_spectral_matrix (BaseChange.Construction.matrixGroupBaseChange G ι) b (S.map ι) w ψ hb |
| 44 | (CharZeroTangent.Construction.infinitesimalStabilizer_coefficient_map G hconn hS) |
| 45 | have hT₀mem : T₀ ∈ Infinitesimal.Action.Construction.infinitesimalStabilizer G := |
| 46 | Infinitesimal.JordanDescent.Construction.infinitesimalStabilizer_descends_coefficient_map ι G hconn T₀ (hT₀.symm ▸ hTmem) |
| 47 | refine ⟨T₀, hT₀mem, ?_, b, fun i => Algebra.normalizedTrace ℚ K (w i), ?_⟩ |
| 48 | · let e : Matrix (Fin n) (Fin n) K ≃ₐ[K] Module.End K (Fin n → K) := Matrix.toLinAlgEquiv' |
| 49 | have hscaleK : S.map ι * A.map ι - A.map ι * S.map ι = A.map ι := by |
| 50 | simpa only [map_sub, map_mul, RingHom.mapMatrix_apply] using |
| 51 | congrArg (ι.mapMatrix : Matrix (Fin n) (Fin n) k →+* Matrix (Fin n) (Fin n) K) hscale |
| 52 | have hscaleEnd : ⁅e (S.map ι), e (A.map ι)⁆ = (1 : K) • e (A.map ι) := by |
| 53 | change e (S.map ι) * e (A.map ι) - e (A.map ι) * e (S.map ι) = _ |
| 54 | rw [← map_mul, ← map_mul, ← map_sub, hscaleK, one_smul] |
| 55 | have h := AdditiveSpectralScaling.Construction.additive_spectral_bracket_scaling b (e (S.map ι)) (e T) (e (A.map ι)) |
| 56 | w ψ hb hT 1 hscaleEnd |
| 57 | have hbr : T * A.map ι - A.map ι * T = A.map ι := by |
| 58 | apply e.injective |
| 59 | simpa only [ψ, NormalizedTraceSpectrum.Construction.normalizedTraceSpectralMap_one, one_smul, Ring.lie_def, map_sub, map_mul] using h |
| 60 | have hm : (T₀ * A - A * T₀).map ι = A.map ι := by |
| 61 | change ι.mapMatrix (T₀ * A - A * T₀) = ι.mapMatrix A |
| 62 | simpa only [map_sub, map_mul, RingHom.mapMatrix_apply, hT₀'] using hbr |
| 63 | ext i j : 1 |
| 64 | exact ι.injective (congrFun (congrFun hm i) j) |
| 65 | · intro i |
| 66 | rw [hT₀] |
| 67 | exact hT i |
| 68 | |
| 69 | end |
| 70 | |
| 71 | end OAI.NumberTheory.ArithmeticGroups.Lattices.RationalSpectralScaling.Construction |