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.CoheightOneCodimension |
| 2 | import OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Stalk.DivisorSupport |
| 3 | import OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Stalk.PrimeQuotient |
| 4 | import Mathlib.RingTheory.Ideal.KrullsHeightTheorem |
| 5 | |
| 6 | /-! # Through Support -/ |
| 7 | |
| 8 | namespace OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Divisor.ThroughSupport |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! Every positive-codimension support in a smooth projective |
| 13 | presentation is contained in an actual divisor. -/ |
| 14 | |
| 15 | set_option backward.isDefEq.respectTransparency false |
| 16 | |
| 17 | open _root_.AlgebraicGeometry _root_.TopologicalSpace |
| 18 | |
| 19 | open OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Stalk.PrimeQuotient OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Stalk.DivisorSupport |
| 20 | |
| 21 | theorem exists_divisor (X : Foundations.Scheme.SmoothProjective.SmoothProjectivePresentation) (m p : ℕ) |
| 22 | [SmoothOfRelativeDimension m X.structureMap] (hp : 0 < p) (C : X.DimensionCycleSupport p) : |
| 23 | ∃ A : X.DimensionCycleSupport 1, C.val ≤ A.val := by |
| 24 | let x := CycleClass.Thom.IntersectionGeometry.supportPoint C.val |
| 25 | let R := X.carrier.presheaf.stalk x |
| 26 | let : IsDomain R := X.stalk_isDomain x |
| 27 | have hx : x ∈ (C.val : Set X.carrier) := |
| 28 | (C.val.isIrreducible.isGenericPoint_genericPoint C.val.isClosed).mem |
| 29 | let q := Stalk.PrimeQuotient.kernelPrime X.carrier C.val x hx |
| 30 | have hq0 : q.asIdeal ≠ ⊥ := |
| 31 | Stalk.supportStalkMap_ker_ne_bot X m p hp C x hx |
| 32 | obtain ⟨r, hr, hr0⟩ := Submodule.exists_mem_ne_zero_of_ne_bot hq0 |
| 33 | have hrm : r ∈ IsLocalRing.maximalIdeal R := |
| 34 | IsLocalRing.le_maximalIdeal q.isPrime.ne_top hr |
| 35 | obtain ⟨P, hP, _⟩ := Ideal.exists_minimalPrimes_le |
| 36 | (show Ideal.span {r} ≤ IsLocalRing.maximalIdeal R from |
| 37 | Ideal.span_le.mpr (Set.singleton_subset_iff.mpr hrm)) |
| 38 | have hrP : r ∈ P := hP.le (Ideal.subset_span (Set.mem_singleton r)) |
| 39 | have hP0 : P ≠ ⊥ := by |
| 40 | intro he |
| 41 | exact hr0 (by simpa only [he, Submodule.mem_bot] using hrP) |
| 42 | have hheight : P.height = 1 := le_antisymm |
| 43 | (Ideal.height_le_one_of_isPrincipal_of_mem_minimalPrimes (Ideal.span {r}) P hP) |
| 44 | (Order.one_le_iff_ne_zero.mpr (mt Ideal.height_eq_zero_iff_eq_bot.mp hP0)) |
| 45 | let z : Spec R := ⟨P, hP.isPrime⟩ |
| 46 | let W := Stalk.DivisorSupport.primeClosure X.carrier x z |
| 47 | have hW : X.supportCodimension W = 1 := by |
| 48 | apply CoheightOneCodimension.codimension X m W |
| 49 | rw [Stalk.DivisorSupport.primeClosure_point, ← Stalk.Localization.height_eq_coheight_image] |
| 50 | exact hheight |
| 51 | refine ⟨⟨W, hW⟩, ?_⟩ |
| 52 | change (C.val : Set X.carrier) ⊆ (W : Set X.carrier) |
| 53 | apply (Supports.supportPoint_mem_iff_subset |
| 54 | (⟨W, W.isClosed⟩ : Closeds X.carrier) C.val).mp |
| 55 | exact Stalk.DivisorSupport.point_mem_primeClosure X.carrier x z |
| 56 | |
| 57 | end |
| 58 | |
| 59 | end OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Divisor.ThroughSupport |