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.CycleClass.Thom.Local.RelativeDiagonalIdeal |
| 2 | import OAI.AlgebraicGeometry.CycleClass.Thom.PolynomialTensorBalanceIdeal |
| 3 | import Mathlib.Data.List.OfFn |
| 4 | import Mathlib.RingTheory.Regular.RegularSequence |
| 5 | |
| 6 | /-! # Polynomial Diagonal Ideal -/ |
| 7 | |
| 8 | namespace OAI.AlgebraicGeometry.CycleClass.Thom.Local.PolynomialDiagonalIdeal.Constructions |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! In unramified polynomial coordinates, the localized diagonal |
| 13 | ideal is generated by the actual coordinate differences. -/ |
| 14 | |
| 15 | open scoped TensorProduct |
| 16 | |
| 17 | open OAI.AlgebraicGeometry.CycleClass.Thom.Tensor.BalanceIdeal.Constructions OAI.AlgebraicGeometry.CycleClass.Thom.PolynomialTensorBalanceIdeal.Constructions |
| 18 | |
| 19 | set_option backward.isDefEq.respectTransparency false |
| 20 | set_option backward.isDefEq.respectTransparency.types false |
| 21 | |
| 22 | universe u |
| 23 | variable (k R : Type u) [CommRing k] [CommRing R] [Algebra k R] (n : ℕ) |
| 24 | [Algebra (MvPolynomial (Fin n) k) R] [IsScalarTower k (MvPolynomial (Fin n) k) R] |
| 25 | [Algebra.FormallyUnramified (MvPolynomial (Fin n) k) R] |
| 26 | [IsNoetherianRing (R ⊗[MvPolynomial (Fin n) k] R)] |
| 27 | |
| 28 | def localEquations (q : PrimeSpectrum R) : |
| 29 | List (Localization.AtPrime (q.asIdeal.comap (Algebra.TensorProduct.lmul' k).toRingHom)) := |
| 30 | List.ofFn (fun i : Fin n => |
| 31 | algebraMap (R ⊗[k] R) |
| 32 | (Localization.AtPrime (q.asIdeal.comap (Algebra.TensorProduct.lmul' k).toRingHom)) |
| 33 | (Tensor.BalanceIdeal.Constructions.difference k (MvPolynomial (Fin n) k) R (MvPolynomial.X i))) |
| 34 | |
| 35 | theorem ideal_ofList_localEquations (q : PrimeSpectrum R) : |
| 36 | Ideal.ofList (localEquations k R n q) = |
| 37 | (KaehlerDifferential.ideal k R).map |
| 38 | (algebraMap (R ⊗[k] R) |
| 39 | (Localization.AtPrime (q.asIdeal.comap (Algebra.TensorProduct.lmul' k).toRingHom))) := by |
| 40 | rw [RelativeDiagonalIdeal.Constructions.localized_diagonal_eq_balance k (MvPolynomial (Fin n) k) R, |
| 41 | PolynomialTensorBalanceIdeal.Constructions.ker_eq_coordinateIdeal, PolynomialTensorBalanceIdeal.Constructions.coordinateIdeal, Ideal.map_span] |
| 42 | apply congrArg Ideal.span |
| 43 | ext x |
| 44 | simp [localEquations, List.mem_ofFn] |
| 45 | |
| 46 | end |
| 47 | |
| 48 | end OAI.AlgebraicGeometry.CycleClass.Thom.Local.PolynomialDiagonalIdeal.Constructions |