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.HeightOneDimension |
| 2 | import Mathlib.RingTheory.RamificationInertia.Inertia |
| 3 | import OAI.AlgebraicGeometry.Foundations.Scheme.TranscendenceDegreeTransfer |
| 4 | |
| 5 | /-! # Divisor Dimension -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Affine.DivisorDimension |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! A divisor point with nonzero residue degree retains codimension one |
| 12 | under a map between finite-type integral algebras of equal dimension. |
| 13 | This excludes exceptional divisors from ungraded point pushforward. -/ |
| 14 | |
| 15 | open _root_.Order |
| 16 | |
| 17 | open OAI.AlgebraicGeometry.DivisorClass.Chern.HeightOneDimension.Construction |
| 18 | |
| 19 | theorem quotient_dimension_add_height_le (A : Type*) [CommRing A] (p : PrimeSpectrum A) : |
| 20 | (p.asIdeal.height : WithBot ℕ∞) + ringKrullDim (A ⧸ p.asIdeal) ≤ ringKrullDim A := by |
| 21 | let : Nonempty (PrimeSpectrum A) := ⟨p⟩ |
| 22 | have hc : ringKrullDim (A ⧸ p.asIdeal) = (coheight p : WithBot ℕ∞) := by |
| 23 | rw [ringKrullDim_quotient, coheight_eq_krullDim_Ici] |
| 24 | rfl |
| 25 | rw [hc, PrimeSpectrum.height_eq_orderHeight, ← WithBot.coe_add] |
| 26 | rw [ringKrullDim, krullDim_eq_iSup_height_add_coheight_of_nonempty] |
| 27 | exact WithBot.coe_le_coe.mpr (le_iSup (fun q : PrimeSpectrum A => height q + coheight q) p) |
| 28 | |
| 29 | theorem height_eq_one_of_dimension_drop (K A : Type) [Field K] [CommRing A] [IsDomain A] |
| 30 | [Algebra K A] [Algebra.FiniteType K A] (p : Ideal A) [p.IsPrime] |
| 31 | (h : (Algebra.trdeg K (A ⧸ p)).toNat + 1 = (Algebra.trdeg K A).toNat) : p.height = 1 := by |
| 32 | have hb := quotient_dimension_add_height_le A ⟨p, inferInstance⟩ |
| 33 | rw [DivisorClass.Chern.FiniteTypeDimension.Construction.finiteType_ringKrullDim_eq_trdeg K A, DivisorClass.Chern.FiniteTypeDimension.Construction.finiteType_ringKrullDim_eq_trdeg K (A ⧸ p), ← h, |
| 34 | Nat.cast_add, Nat.cast_one, add_comm _ (1 : WithBot ℕ∞)] at hb |
| 35 | have hp : p.height ≤ 1 := WithBot.coe_le_coe.mp (ENat.WithBot.add_le_add_natCast_right_iff.mp hb) |
| 36 | have hn : p ≠ ⊥ := by |
| 37 | intro he |
| 38 | rw [he, (AlgEquiv.quotientBot K A).trdeg_eq] at h |
| 39 | omega |
| 40 | exact le_antisymm hp (Order.one_le_iff_ne_zero.mpr (Ideal.height_eq_zero_iff_eq_bot.not.mpr hn)) |
| 41 | |
| 42 | theorem quotient_trdeg_eq_residue (K A : Type*) [Field K] [CommRing A] [Algebra K A] |
| 43 | (p : Ideal A) [p.IsPrime] : Algebra.trdeg K (A ⧸ p) = Algebra.trdeg K p.ResidueField := by |
| 44 | exact Foundations.Scheme.TranscendenceDegreeTransfer.trdeg_eq_of_isFractionRing K (A ⧸ p) p.ResidueField |
| 45 | |
| 46 | theorem quotient_trdeg_eq_of_inertiaDeg_ne_zero |
| 47 | (K A B : Type) [Field K] [CommRing A] [CommRing B] |
| 48 | [Algebra K A] [Algebra K B] [Algebra A B] [IsScalarTower K A B] |
| 49 | (q : Ideal B) [q.IsPrime] (hq : q.inertiaDeg A ≠ 0) : |
| 50 | Algebra.trdeg K (A ⧸ q.under A) = Algebra.trdeg K (B ⧸ q) := by |
| 51 | let := Localization.AtPrime.algebraOfLiesOver (q.under A) q |
| 52 | let : IsScalarTower K (q.under A).ResidueField q.ResidueField := |
| 53 | IsScalarTower.to₁₃₄ K A (q.under A).ResidueField q.ResidueField |
| 54 | have hpos : 0 < Module.finrank (q.under A).ResidueField q.ResidueField := by |
| 55 | rw [← Ideal.inertiaDeg_def] |
| 56 | exact Nat.pos_of_ne_zero hq |
| 57 | let := Module.finite_of_finrank_pos hpos |
| 58 | rw [quotient_trdeg_eq_residue, quotient_trdeg_eq_residue] |
| 59 | have h := trdeg_add_eq K (q.under A).ResidueField (A := q.ResidueField) |
| 60 | rwa [trdeg_eq_zero (R := (q.under A).ResidueField) (A := q.ResidueField), add_zero] at h |
| 61 | |
| 62 | /-- A nonzero native residue degree prevents a divisor from changing |
| 63 | codimension between finite-type algebras of equal transcendence degree. -/ |
| 64 | theorem height_under_eq_one (K A B : Type) [Field K] [CommRing A] [CommRing B] |
| 65 | [IsDomain A] [IsDomain B] [Algebra K A] [Algebra K B] [Algebra A B] |
| 66 | [IsScalarTower K A B] [Algebra.FiniteType K A] [Algebra.FiniteType K B] |
| 67 | (hdim : (Algebra.trdeg K A).toNat = (Algebra.trdeg K B).toNat) |
| 68 | (q : Ideal B) [q.IsPrime] (hq : q.height = 1) (hdeg : q.inertiaDeg A ≠ 0) : |
| 69 | (q.under A).height = 1 := by |
| 70 | apply height_eq_one_of_dimension_drop K A (q.under A) |
| 71 | rw [quotient_trdeg_eq_of_inertiaDeg_ne_zero K A B q hdeg, hdim] |
| 72 | exact DivisorClass.Chern.HeightOneDimension.Construction.finiteType_height_one_trdeg K B q hq |
| 73 | |
| 74 | end |
| 75 | |
| 76 | end OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Affine.DivisorDimension |