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.BranchOrder |
| 2 | import Mathlib.RingTheory.Polynomial.Quotient |
| 3 | |
| 4 | /-! # Place -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.Divisors.LineBundles.Polynomial.Place.BundleCycles.PolynomialPlace |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! The zero place of a rational parameter: its local ring is a DVR, |
| 11 | the parameter has order one, and its residue field is the ground field. -/ |
| 12 | |
| 13 | open UniqueFactorizationMonoid |
| 14 | |
| 15 | variable (k : Type*) [Field k] |
| 16 | |
| 17 | def zeroIdeal : Ideal (Polynomial k) := Ideal.span {Polynomial.X} |
| 18 | |
| 19 | instance : (zeroIdeal k).IsPrime := |
| 20 | (Ideal.span_singleton_prime Polynomial.X_ne_zero).mpr Polynomial.prime_X |
| 21 | |
| 22 | theorem zeroIdeal_ne_bot : zeroIdeal k ≠ ⊥ := |
| 23 | Ideal.span_singleton_eq_bot.not.mpr Polynomial.X_ne_zero |
| 24 | |
| 25 | abbrev localRing := Localization.AtPrime (zeroIdeal k) |
| 26 | |
| 27 | instance : IsDiscreteValuationRing (localRing k) := |
| 28 | IsLocalization.AtPrime.isDiscreteValuationRing_of_dedekind_domain (Polynomial k) (zeroIdeal_ne_bot k) _ |
| 29 | |
| 30 | def parameter : FractionRing (Polynomial k) := algebraMap (Polynomial k) _ Polynomial.X |
| 31 | |
| 32 | theorem parameter_ne_zero : parameter k ≠ 0 := |
| 33 | (map_ne_zero_iff _ (IsFractionRing.injective (Polynomial k) (FractionRing (Polynomial k)))).mpr |
| 34 | Polynomial.X_ne_zero |
| 35 | |
| 36 | theorem order_parameter : WithZero.log (Ring.ordFrac (localRing k) (parameter k)) = 1 := by |
| 37 | classical |
| 38 | have hp : Prime (zeroIdeal k) := Ideal.prime_of_isPrime (zeroIdeal_ne_bot k) inferInstance |
| 39 | have ho : Ring.ord (localRing k) (algebraMap (Polynomial k) (localRing k) Polynomial.X) = 1 := by |
| 40 | rw [IntersectionTheory.ProjectionFormula.BranchOrder.ord_eq_count (zeroIdeal k) (zeroIdeal_ne_bot k) Polynomial.X Polynomial.X_ne_zero] |
| 41 | change ((normalizedFactors (zeroIdeal k)).count (zeroIdeal k) : ℕ∞) = 1 |
| 42 | rw [normalizedFactors_irreducible hp.irreducible] |
| 43 | simp |
| 44 | have hx : algebraMap (Polynomial k) (localRing k) Polynomial.X ≠ 0 := |
| 45 | (map_ne_zero_iff _ (IsLocalization.injective (localRing k) |
| 46 | (zeroIdeal k).primeCompl_le_nonZeroDivisors)).mpr Polynomial.X_ne_zero |
| 47 | rw [parameter, IsScalarTower.algebraMap_apply (Polynomial k) (localRing k) (FractionRing (Polynomial k)), |
| 48 | Ring.ordFrac_eq_ord (localRing k) hx, |
| 49 | Ring.ordMonoidWithZeroHom_eq_coe (localRing k) (mem_nonZeroDivisors_of_ne_zero hx) ho] |
| 50 | rfl |
| 51 | |
| 52 | theorem order_parameter_pow (n : ℕ) : |
| 53 | WithZero.log (Ring.ordFrac (localRing k) (parameter k ^ n)) = n := by |
| 54 | rw [map_pow, WithZero.log_pow, order_parameter] |
| 55 | simp |
| 56 | |
| 57 | def quotientEquiv : (Polynomial k ⧸ zeroIdeal k) ≃ₐ[k] k := by |
| 58 | have h : zeroIdeal k = Ideal.span {Polynomial.X - Polynomial.C (0 : k)} := by simp [zeroIdeal] |
| 59 | exact (Ideal.quotientEquivAlgOfEq k h).trans (Polynomial.quotientSpanXSubCAlgEquiv (0 : k)) |
| 60 | |
| 61 | def residueEquiv : (zeroIdeal k).ResidueField ≃ₐ[k] k := by |
| 62 | let Q := Polynomial k ⧸ zeroIdeal k |
| 63 | let : Field Q := (MulEquiv.isField (Field.toIsField k) (quotientEquiv k).toMulEquiv).toField |
| 64 | let e : Q ≃ₐ[Q] (zeroIdeal k).ResidueField := IsFractionRing.algEquiv Q Q (zeroIdeal k).ResidueField |
| 65 | exact (e.symm.restrictScalars k).trans (quotientEquiv k) |
| 66 | |
| 67 | theorem residue_finrank : Module.finrank k (zeroIdeal k).ResidueField = 1 := by |
| 68 | rw [(residueEquiv k).toLinearEquiv.finrank_eq, Module.finrank_self] |
| 69 | |
| 70 | end |
| 71 | |
| 72 | end OAI.AlgebraicGeometry.Divisors.LineBundles.Polynomial.Place.BundleCycles.PolynomialPlace |