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.Projective.ParameterGerms |
| 2 | import Mathlib.RingTheory.Polynomial.Ideal |
| 3 | |
| 4 | /-! # Parameter Fiber -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Affine.ParameterFiber |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! For an actual affine-line parameter, its scalar fiber is exactly |
| 11 | the nonunit locus of the regular germ of the translated coordinate. -/ |
| 12 | |
| 13 | set_option backward.isDefEq.respectTransparency false |
| 14 | |
| 15 | open _root_.CategoryTheory _root_.AlgebraicGeometry IsLocalRing |
| 16 | open scoped _root_.Polynomial |
| 17 | |
| 18 | universe u |
| 19 | |
| 20 | variable (k : Type u) [Field k] |
| 21 | |
| 22 | def point (a : k) : PrimeSpectrum k[X] := |
| 23 | ⟨RingHom.ker (Polynomial.evalRingHom a), |
| 24 | Ideal.isPrime_bot.comap (Polynomial.evalRingHom a)⟩ |
| 25 | |
| 26 | theorem mem_iff (p : PrimeSpectrum k[X]) (a : k) : |
| 27 | Polynomial.X - Polynomial.C a ∈ p.asIdeal ↔ p = point k a := by |
| 28 | constructor |
| 29 | · intro h |
| 30 | apply PrimeSpectrum.ext |
| 31 | apply Eq.symm |
| 32 | apply (RingHom.ker_isMaximal_of_surjective (Polynomial.evalRingHom a) |
| 33 | (fun c => ⟨Polynomial.C c, Polynomial.eval_C⟩)).eq_of_le p.isPrime.ne_top |
| 34 | rw [Polynomial.ker_evalRingHom] |
| 35 | exact Ideal.span_le.mpr (fun b hb => (Set.mem_singleton_iff.mp hb).symm ▸ h) |
| 36 | · rintro rfl |
| 37 | change Polynomial.evalRingHom a (Polynomial.X - Polynomial.C a) = 0 |
| 38 | simp |
| 39 | |
| 40 | theorem point_spec (a : k) : |
| 41 | (Spec.map (CommRingCat.ofHom (Polynomial.evalRingHom a))) (closedPoint k) = point k a := by |
| 42 | apply PrimeSpectrum.ext |
| 43 | change (maximalIdeal k).comap (Polynomial.evalRingHom a) = RingHom.ker (Polynomial.evalRingHom a) |
| 44 | rw [maximalIdeal_eq_bot] |
| 45 | rfl |
| 46 | |
| 47 | theorem toStalk_unit (p : PrimeSpectrum k[X]) (f : k[X]) : |
| 48 | IsUnit (StructureSheaf.toStalk k[X] p f) ↔ f ∉ p.asIdeal := by |
| 49 | have he : (StructureSheaf.stalkIso k[X] p) |
| 50 | (algebraMap k[X] (Localization.AtPrime p.asIdeal) f) = StructureSheaf.toStalk k[X] p f := |
| 51 | (StructureSheaf.stalkIso k[X] p).commutes f |
| 52 | exact (iff_of_eq (congrArg IsUnit he.symm)).trans |
| 53 | ((MulEquiv.isUnit_map (StructureSheaf.stalkIso k[X] p)).trans |
| 54 | (IsLocalization.AtPrime.isUnit_to_map_iff (Localization.AtPrime p.asIdeal) p.asIdeal f)) |
| 55 | |
| 56 | variable {Z : Scheme.{u}} (t : Z ⟶ Spec (.of k[X])) |
| 57 | |
| 58 | def germ (x : Z) (a : k) : Z.presheaf.stalk x := |
| 59 | t.stalkMap x (StructureSheaf.toStalk k[X] (t x) (Polynomial.X - Polynomial.C a)) |
| 60 | |
| 61 | theorem germ_mem_maximalIdeal (x : Z) (a : k) : |
| 62 | germ k t x a ∈ maximalIdeal (Z.presheaf.stalk x) ↔ t x = point k a := by |
| 63 | rw [mem_maximalIdeal, mem_nonunits_iff, germ, isUnit_map_iff, |
| 64 | toStalk_unit, not_not, mem_iff] |
| 65 | |
| 66 | end |
| 67 | |
| 68 | end OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Affine.ParameterFiber |