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.Divisors.LineBundles.Ord |
| 2 | |
| 3 | /-! # Rational Support Units -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.RationalSupportUnits |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! A nonzero rational function is represented by an actual unit at |
| 10 | every codimension-one point outside a finite exceptional set, including |
| 11 | points on nonnormal integral schemes. -/ |
| 12 | |
| 13 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 14 | open scoped Classical |
| 15 | |
| 16 | universe u |
| 17 | |
| 18 | theorem exists_finite_exceptional (X : Scheme.{u}) [IsIntegral X] |
| 19 | [AlgebraicGeometry.IsNoetherian X] (f : X.functionField) (hf : f ≠ 0) : |
| 20 | ∃ S : Finset X, (∀ x ∈ S, Order.coheight x = 1) ∧ |
| 21 | ∀ x : X, Order.coheight x = 1 → x ∉ S → |
| 22 | ∃ a : X.presheaf.stalk x, IsUnit a ∧ |
| 23 | algebraMap (X.presheaf.stalk x) X.functionField a = f := by |
| 24 | obtain ⟨U, _, a, hU, hfa, ha⟩ := exists_isUnit_germ_eq X f hf |
| 25 | let : Nonempty U := hU |
| 26 | let S := (Divisors.LineBundles.Ord.BundleCycles.finite_codimension_one_complement X U).toFinset |
| 27 | refine ⟨S, ?_, ?_⟩ |
| 28 | · intro x hx |
| 29 | exact ((Set.Finite.mem_toFinset _).mp hx).1 |
| 30 | · intro x hx hxS |
| 31 | have hxU : x ∈ U := by |
| 32 | by_contra hn |
| 33 | exact hxS ((Set.Finite.mem_toFinset _).mpr ⟨hx, hn⟩) |
| 34 | refine ⟨X.presheaf.germ U x hxU a, ha.map (X.presheaf.germ U x hxU).hom, ?_⟩ |
| 35 | exact (X.algebraMap_germ_eq_germToFunctionField hxU a).trans hfa |
| 36 | |
| 37 | end |
| 38 | |
| 39 | end OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.RationalSupportUnits |