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.Quotients.FiniteDescent.GeometricDense |
| 2 | import Mathlib.AlgebraicGeometry.PullbackCarrier |
| 3 | |
| 4 | /-! # Geometric Open -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.Quotients.FiniteDescent.GeometricOpen |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! A nonempty open of a geometrically integral scheme over a field is |
| 11 | geometrically integral. -/ |
| 12 | |
| 13 | set_option backward.isDefEq.respectTransparency false |
| 14 | |
| 15 | open _root_.AlgebraicGeometry _root_.CategoryTheory _root_.CategoryTheory.Limits |
| 16 | |
| 17 | universe u |
| 18 | |
| 19 | namespace Construction.GeometricOpenSubset |
| 20 | |
| 21 | variable {K : Type u} [Field K] {X : Scheme.{u}} |
| 22 | variable (f : X ⟶ Spec (.of K)) [GeometricallyIntegral f] |
| 23 | variable (U : X.Opens) [Nonempty U] |
| 24 | |
| 25 | theorem geometricallyIntegral : GeometricallyIntegral (U.ι ≫ f) := by |
| 26 | constructor |
| 27 | intro L _ t Y p q h |
| 28 | have : Surjective t := ⟨fun z => ⟨default, Subsingleton.elim _ z⟩⟩ |
| 29 | have : Surjective p := MorphismProperty.of_isPullback h.flip ‹Surjective t› |
| 30 | have : Nonempty Y := by |
| 31 | obtain ⟨y, _⟩ := p.surjective (Classical.choice (inferInstance : Nonempty U)) |
| 32 | exact ⟨y⟩ |
| 33 | have : IsIntegral (pullback f t) := GeometricallyIntegral.geometrically_isIntegral |
| 34 | t (pullback.fst f t) (pullback.snd f t) (IsPullback.of_hasPullback f t) |
| 35 | let i : Y ⟶ pullback f t := pullback.lift (p ≫ U.ι) q (by simpa only [Category.assoc] using h.w) |
| 36 | have ho : IsPullback p (i ≫ pullback.snd f t) (U.ι ≫ f) t := by |
| 37 | simpa only [i, pullback.lift_snd] using h |
| 38 | have hi : IsPullback p i U.ι (pullback.fst f t) := |
| 39 | IsPullback.of_bot ho (by simp only [i, pullback.lift_fst]) (IsPullback.of_hasPullback f t) |
| 40 | have : IsOpenImmersion i := MorphismProperty.of_isPullback hi inferInstance |
| 41 | exact isIntegral_of_isOpenImmersion i |
| 42 | |
| 43 | end Construction.GeometricOpenSubset |
| 44 | |
| 45 | end |
| 46 | |
| 47 | end OAI.AlgebraicGeometry.Quotients.FiniteDescent.GeometricOpen |