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.AlgebraicGeometry.AbelianScheme.IsogenyQuotient.NormBaseChange |
| 2 | import Mathlib.RingTheory.Trace.Defs |
| 3 | |
| 4 | /-! # Trace -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.AbelianScheme.IsogenyQuotient.Trace.Construction |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! The finite-free trace on actual affine section rings commutes with |
| 11 | arbitrary base change. The calculation retains the given ring maps. -/ |
| 12 | |
| 13 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 14 | |
| 15 | universe u v |
| 16 | |
| 17 | theorem trace_map_of_basis |
| 18 | {R S A B ι : Type*} [CommRing R] [CommRing S] [CommRing A] [CommRing B] |
| 19 | [Algebra R A] [Algebra S B] [Fintype ι] |
| 20 | (φ : R →+* S) (f : A →+* B) |
| 21 | (hf : ∀ r, f (algebraMap R A r) = algebraMap S B (φ r)) |
| 22 | (b : Module.Basis ι R A) (d : Module.Basis ι S B) (hd : ∀ i, d i = f (b i)) |
| 23 | (a : A) : Algebra.trace S B (f a) = φ (Algebra.trace R A a) := by |
| 24 | classical |
| 25 | rw [Algebra.trace_eq_matrix_trace d, Algebra.trace_eq_matrix_trace b, |
| 26 | Quotients.FiniteDescent.InvariantPolynomialOf.Construction.InvariantPolynomial.leftMulMatrix_map_of_basis φ f hf b d hd] |
| 27 | simp only [Matrix.trace, Matrix.diag, Matrix.map_apply, map_sum] |
| 28 | |
| 29 | def schemeTrace {X Y : Scheme.{u}} (f : X ⟶ Y) (a : Γ(X, ⊤)) : Γ(Y, ⊤) := |
| 30 | letI := f.appTop.hom.toAlgebra |
| 31 | Algebra.trace Γ(Y, ⊤) Γ(X, ⊤) a |
| 32 | |
| 33 | theorem schemeTrace_baseChange |
| 34 | {X Y X' Y' : Scheme.{u}} [IsAffine X] [IsAffine Y] [IsAffine X'] [IsAffine Y'] |
| 35 | (f : X ⟶ Y) (g : X' ⟶ Y') (j : X' ⟶ X) (i : Y' ⟶ Y) |
| 36 | (hs : IsPullback j g f i) {ι : Type v} [Fintype ι] |
| 37 | (b : letI := f.appTop.hom.toAlgebra; Module.Basis ι Γ(Y, ⊤) Γ(X, ⊤)) |
| 38 | (a : Γ(X, ⊤)) : schemeTrace g (j.appTop a) = i.appTop (schemeTrace f a) := by |
| 39 | obtain ⟨b', hb'⟩ := Quotients.FiniteDescent.AffineGroupoidIs.Construction.AffineGroupoid.exists_basis_of_isPushout |
| 40 | f.appTop i.appTop j.appTop g.appTop (isPushout_appTop_of_isPullback hs) b |
| 41 | let := f.appTop.hom.toAlgebra |
| 42 | let := g.appTop.hom.toAlgebra |
| 43 | apply trace_map_of_basis i.appTop.hom j.appTop.hom _ b b' hb' |
| 44 | intro r |
| 45 | exact congrArg (fun a : X' ⟶ Y => a.appTop r) hs.w |
| 46 | |
| 47 | theorem schemeTrace_scalar {X Y : Scheme.{u}} (f : X ⟶ Y) |
| 48 | (r : Γ(Y, ⊤)) (a : Γ(X, ⊤)) : |
| 49 | schemeTrace f (f.appTop r * a) = r * schemeTrace f a := by |
| 50 | let := f.appTop.hom.toAlgebra |
| 51 | exact (Algebra.trace Γ(Y, ⊤) Γ(X, ⊤)).map_smul r a |
| 52 | |
| 53 | theorem schemeTrace_pullback {X Y : Scheme.{u}} (f : X ⟶ Y) |
| 54 | {ι : Type v} [Fintype ι] |
| 55 | (b : letI := f.appTop.hom.toAlgebra; Module.Basis ι Γ(Y, ⊤) Γ(X, ⊤)) |
| 56 | (r : Γ(Y, ⊤)) : schemeTrace f (f.appTop r) = Fintype.card ι • r := by |
| 57 | let := f.appTop.hom.toAlgebra |
| 58 | exact Algebra.trace_algebraMap_of_basis b r |
| 59 | |
| 60 | end |
| 61 | |
| 62 | end OAI.AlgebraicGeometry.AbelianScheme.IsogenyQuotient.Trace.Construction |