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.IntersectionTheory.ProjectionFormula.Polynomial.RelativeDiagonal |
| 2 | import OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.UnramifiedDiagonalIdeal |
| 3 | import Mathlib.Data.List.FinRange |
| 4 | |
| 5 | /-! # Diagonal Sequence -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Etale.DiagonalSequence |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! At any local point of the diagonal of an algebra etale over a |
| 12 | polynomial ring in n variables, the native diagonal ideal is generated |
| 13 | by a regular sequence of exactly n coordinate differences. -/ |
| 14 | |
| 15 | set_option backward.isDefEq.respectTransparency false |
| 16 | set_option backward.isDefEq.respectTransparency.types false |
| 17 | |
| 18 | open scoped TensorProduct |
| 19 | |
| 20 | universe u |
| 21 | |
| 22 | open _root_.MvPolynomial RingTheory.Sequence OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Smooth.DiagonalParameters |
| 23 | |
| 24 | variable (K A : Type u) [CommRing K] [CommRing A] [Algebra K A] (n : ℕ) |
| 25 | [Algebra (MvPolynomial (Fin n) K) A] [IsScalarTower K (MvPolynomial (Fin n) K) A] |
| 26 | |
| 27 | local notation "P" => MvPolynomial (Fin n) K |
| 28 | local notation "φ" => IsScalarTower.toAlgHom K P A |
| 29 | |
| 30 | variable (L : Type u) [CommRing L] (g : A ⊗[K] A →+* L) |
| 31 | |
| 32 | def sequence : List L := (List.finRange n).map fun i => g (Smooth.DiagonalParameters.parameter K A (Fin n) φ i) |
| 33 | |
| 34 | theorem length : (sequence K A n L g).length = n := by simp [sequence] |
| 35 | |
| 36 | theorem ideal [IsNoetherianRing L] [IsLocalRing L] [Algebra.FormallyUnramified P A] |
| 37 | (hp : (KaehlerDifferential.ideal K A).map g ≠ ⊤) : |
| 38 | (KaehlerDifferential.ideal K A).map g = Ideal.ofList (sequence K A n L g) := by |
| 39 | have h := UnramifiedDiagonalIdeal.localized K P A L g hp |
| 40 | have hk := Polynomial.RelativeDiagonal.kernel K A (Fin n) |
| 41 | change RingHom.ker (Relative.TensorKernel.map K P A).toRingHom = |
| 42 | Polynomial.RelativeDiagonal.ideal K A (Fin n) at hk |
| 43 | rw [hk] at h |
| 44 | refine h.trans ?_ |
| 45 | unfold Polynomial.RelativeDiagonal.ideal |
| 46 | rw [Ideal.map_span] |
| 47 | apply congrArg Ideal.span |
| 48 | ext x |
| 49 | simp [sequence] |
| 50 | |
| 51 | theorem regular [IsLocalRing L] [Module.Flat P A] |
| 52 | (hg : g.Flat) (hp : (KaehlerDifferential.ideal K A).map g ≠ ⊤) : |
| 53 | IsRegular L (sequence K A n L g) := by |
| 54 | apply Smooth.DiagonalParameters.regular K A (Fin n) φ |
| 55 | (RingHom.flat_algebraMap_iff.mpr (inferInstanceAs (Module.Flat P A))) L g hg |
| 56 | (List.finRange n) (List.nodup_finRange n) |
| 57 | intro i _ |
| 58 | apply IsLocalRing.le_maximalIdeal hp |
| 59 | apply Ideal.mem_map_of_mem |
| 60 | exact KaehlerDifferential.one_smul_sub_smul_one_mem_ideal K (φ (X i)) |
| 61 | |
| 62 | end |
| 63 | |
| 64 | end OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Etale.DiagonalSequence |