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.GeometricOpen |
| 2 | import Mathlib.AlgebraicGeometry.Morphisms.Proper |
| 3 | import Mathlib.AlgebraicGeometry.Noetherian |
| 4 | |
| 5 | /-! # Geometric Modification Integral -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.Quotients.FiniteDescent.GeometricModificationIntegral |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! An integral proper modification that is an isomorphism over a |
| 12 | nonempty open of a geometrically integral scheme is geometrically integral. -/ |
| 13 | |
| 14 | set_option backward.isDefEq.respectTransparency false |
| 15 | |
| 16 | open _root_.AlgebraicGeometry _root_.CategoryTheory _root_.CategoryTheory.Limits |
| 17 | |
| 18 | universe u |
| 19 | |
| 20 | namespace Construction.GeometricModification |
| 21 | |
| 22 | variable {K : Type u} [Field K] {X Z : Scheme.{u}} |
| 23 | variable (f : X ⟶ Spec (.of K)) [IsProper f] [GeometricallyIntegral f] |
| 24 | variable (q : Z ⟶ X) [IsProper q] [Surjective q] [IsIntegral Z] |
| 25 | variable (U : X.Opens) [hU : Nonempty U] [hiso : IsIso (q ∣_ U)] |
| 26 | |
| 27 | include U hU hiso |
| 28 | |
| 29 | theorem geometricallyIntegral : GeometricallyIntegral (q ≫ f) := by |
| 30 | have : IsLocallyNoetherian Z := LocallyOfFiniteType.isLocallyNoetherian (q ≫ f) |
| 31 | have : Nonempty (q ⁻¹ᵁ U).toScheme := by |
| 32 | let x : U := Classical.choice hU |
| 33 | obtain ⟨z, hz⟩ := q.surjective x.1 |
| 34 | exact ⟨⟨z, (show q z ∈ U from hz.symm ▸ x.2)⟩⟩ |
| 35 | have : GeometricallyIntegral (U.ι ≫ f) := GeometricOpen.Construction.GeometricOpenSubset.geometricallyIntegral f U |
| 36 | have : GeometricallyIntegral ((q ⁻¹ᵁ U).ι ≫ (q ≫ f)) := by |
| 37 | rw [← morphismRestrict_ι_assoc] |
| 38 | exact (MorphismProperty.cancel_left_of_respectsIso @GeometricallyIntegral |
| 39 | (q ∣_ U) (U.ι ≫ f)).mpr inferInstance |
| 40 | exact GeometricDense.Construction.GeometricDenseOpen.geometricallyIntegral (q ≫ f) (q ⁻¹ᵁ U) |
| 41 | |
| 42 | end Construction.GeometricModification |
| 43 | |
| 44 | end |
| 45 | |
| 46 | end OAI.AlgebraicGeometry.Quotients.FiniteDescent.GeometricModificationIntegral |