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 Mathlib.AlgebraicGeometry.Properties |
| 2 | |
| 3 | /-! # Cycle Supports -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.Foundations.Scheme.CycleSupports |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! |
| 10 | # Generic points and codimension-indexed algebraic cycle supports |
| 11 | |
| 12 | This file identifies codimension-indexed scheme points with irreducible closed |
| 13 | supports. Codimension is the coheight in the specialization order, equivalently |
| 14 | in the inclusion order on irreducible closed sets. No cycle class map is assumed. |
| 15 | -/ |
| 16 | |
| 17 | open _root_.AlgebraicGeometry _root_.TopologicalSpace _root_.Order |
| 18 | |
| 19 | universe u |
| 20 | |
| 21 | /-- A generic point of an irreducible codimension-`p` algebraic cycle support. -/ |
| 22 | def CyclePoint (X : Scheme.{u}) (p : ℕ) : Type u := |
| 23 | {x : X // Order.coheight x = p} |
| 24 | |
| 25 | /-- An irreducible closed algebraic support of codimension `p`. -/ |
| 26 | def IrreducibleCycleSupport (X : Scheme.{u}) (p : ℕ) : Type u := |
| 27 | {Z : IrreducibleCloseds X // Order.coheight Z = p} |
| 28 | |
| 29 | /-- Scheme sobriety identifies irreducible closed sets with their generic points, |
| 30 | and its order isomorphism preserves codimension. -/ |
| 31 | def irreducibleCycleSupportEquivCyclePoint (X : Scheme.{u}) (p : ℕ) : |
| 32 | IrreducibleCycleSupport X p ≃ CyclePoint X p where |
| 33 | toFun Z := ⟨irreducibleSetEquivPoints Z.1, by |
| 34 | rw [Order.coheight_orderIso] |
| 35 | exact Z.2⟩ |
| 36 | invFun x := ⟨irreducibleSetEquivPoints.symm x.1, by |
| 37 | rw [Order.coheight_orderIso] |
| 38 | exact x.2⟩ |
| 39 | left_inv Z := by |
| 40 | apply Subtype.ext |
| 41 | exact irreducibleSetEquivPoints.symm_apply_apply Z.1 |
| 42 | right_inv x := by |
| 43 | apply Subtype.ext |
| 44 | exact irreducibleSetEquivPoints.apply_symm_apply x.1 |
| 45 | |
| 46 | /-- The irreducible support corresponding to a cycle point is its closure. -/ |
| 47 | theorem cyclePoint_support_coe (X : Scheme.{u}) (p : ℕ) (x : CyclePoint X p) : |
| 48 | (((irreducibleCycleSupportEquivCyclePoint X p).symm x).1 : Set X) = |
| 49 | closure ({x.1} : Set X) := rfl |
| 50 | |
| 51 | /-- The point indexing a support is indeed its generic point. -/ |
| 52 | theorem cycleSupport_isGenericPoint (X : Scheme.{u}) (p : ℕ) |
| 53 | (Z : IrreducibleCycleSupport X p) : |
| 54 | IsGenericPoint ((irreducibleCycleSupportEquivCyclePoint X p Z).1) |
| 55 | (Z.1 : Set X) := |
| 56 | Z.1.2.isGenericPoint_genericPoint Z.1.3 |
| 57 | |
| 58 | /-- Codimension can equivalently be read off from the dimension of the local ring. -/ |
| 59 | theorem cyclePoint_stalk_dimension (X : Scheme.{u}) (p : ℕ) (x : CyclePoint X p) : |
| 60 | ringKrullDim (X.presheaf.stalk x.1) = (p : WithBot ℕ∞) := by |
| 61 | rw [AlgebraicGeometry.ringKrullDim_stalk_eq_coheight, x.2] |
| 62 | rfl |
| 63 | |
| 64 | /-- On an affine scheme, the indexing codimension is the height of its prime ideal. -/ |
| 65 | theorem cyclePoint_affine_prime_height (R : CommRingCat.{u}) (p : ℕ) |
| 66 | (x : CyclePoint (Spec R) p) : x.1.asIdeal.height = p := by |
| 67 | rw [AlgebraicGeometry.idealHeight_eq_coheight] |
| 68 | exact x.2 |
| 69 | |
| 70 | end |
| 71 | |
| 72 | end OAI.AlgebraicGeometry.Foundations.Scheme.CycleSupports |