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.DivisorClass.Chern.FiniteTypeDimension |
| 2 | import Mathlib.RingTheory.Jacobson.Ring |
| 3 | import Mathlib.RingTheory.UniqueFactorizationDomain.Ideal |
| 4 | import Mathlib.RingTheory.KrullDimension.Regular |
| 5 | |
| 6 | /-! # Polynomial Dimension -/ |
| 7 | |
| 8 | namespace OAI.AlgebraicGeometry.DivisorClass.Chern.PolynomialDimension.Construction |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! |
| 13 | # ChernClass: dimension drop at height-one primes of polynomial rings |
| 14 | |
| 15 | Maximal polynomial ideals have the full ambient height. A height-one prime |
| 16 | is generated by a prime element, and the regular-element dimension theorem |
| 17 | then gives the exact one-dimensional drop. |
| 18 | -/ |
| 19 | |
| 20 | variable (K : Type) [Field K] |
| 21 | |
| 22 | /-- Every maximal ideal of an `n`-variable polynomial algebra over a field has height `n`. -/ |
| 23 | theorem mvPolynomial_maximal_height (n : ℕ) (p : Ideal (MvPolynomial (Fin n) K)) [p.IsMaximal] : |
| 24 | p.height = n := by |
| 25 | induction n with |
| 26 | | zero => |
| 27 | let e := (MvPolynomial.isEmptyAlgEquiv K (Fin 0)).toRingEquiv |
| 28 | let q : Ideal K := p.map e |
| 29 | have : q.IsMaximal := by dsimp [q]; infer_instance |
| 30 | have hq := Ideal.height_le_ringKrullDim_of_ne_top (show q ≠ ⊤ from |
| 31 | (show q.IsMaximal from inferInstance).ne_top) |
| 32 | rw [ringKrullDim_eq_zero_of_field] at hq |
| 33 | have hq0 : q.height = 0 := by |
| 34 | apply le_antisymm _ bot_le |
| 35 | exact_mod_cast hq |
| 36 | exact (e.height_map p).symm.trans hq0 |
| 37 | | succ n ih => |
| 38 | let e := (MvPolynomial.finSuccEquiv K n).toRingEquiv |
| 39 | let q : Ideal (Polynomial (MvPolynomial (Fin n) K)) := p.map e |
| 40 | have : q.IsMaximal := by dsimp [q]; infer_instance |
| 41 | let r : Ideal (MvPolynomial (Fin n) K) := q.comap Polynomial.C |
| 42 | have : r.IsMaximal := Polynomial.isMaximal_comap_C_of_isJacobsonRing q |
| 43 | have : q.LiesOver r := ⟨rfl⟩ |
| 44 | calc |
| 45 | p.height = q.height := (e.height_map p).symm |
| 46 | _ = r.height + 1 := Polynomial.height_eq_height_add_one r q |
| 47 | _ = (n + 1 : ℕ) := by rw [ih r]; simp only [Nat.cast_add, Nat.cast_one] |
| 48 | |
| 49 | /-- Quotient by a height-one polynomial prime lowers Krull dimension by exactly one. -/ |
| 50 | theorem mvPolynomial_height_one_quotient_dimension (n : ℕ) |
| 51 | (p : Ideal (MvPolynomial (Fin n) K)) [p.IsPrime] (hp : p.height = 1) : |
| 52 | ringKrullDim (MvPolynomial (Fin n) K ⧸ p) + 1 = |
| 53 | ringKrullDim (MvPolynomial (Fin n) K) := by |
| 54 | obtain ⟨f, hfp, hf⟩ := Ideal.IsPrime.exists_mem_prime_of_ne_bot |
| 55 | (show p.IsPrime from inferInstance) (Ideal.ne_bot_of_height_eq_one hp) |
| 56 | have hspan : p = Ideal.span {f} := Ideal.eq_span_singleton_of_height_eq_one hp hfp hf |
| 57 | obtain ⟨m, hm, hpm⟩ := Ideal.exists_le_maximal p Ideal.IsPrime.ne_top' |
| 58 | let : m.IsMaximal := hm |
| 59 | have hmax : (m.height : WithBot ℕ∞) = ringKrullDim (MvPolynomial (Fin n) K) := by |
| 60 | rw [mvPolynomial_maximal_height, MvPolynomial.ringKrullDim_of_isNoetherianRing, |
| 61 | ringKrullDim_eq_zero_of_field, zero_add, ENat.card_eq_coe_fintype_card, Fintype.card_fin] |
| 62 | have hdim := Module.ringKrullDim_quotient_add_one_of_mem_nonZeroDivisors |
| 63 | (mem_nonZeroDivisors_iff_ne_zero.mpr hf.ne_zero) hmax (hpm hfp) |
| 64 | rwa [← hspan] at hdim |
| 65 | |
| 66 | end |
| 67 | |
| 68 | end OAI.AlgebraicGeometry.DivisorClass.Chern.PolynomialDimension.Construction |