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.Morphisms.Flat |
| 2 | import Mathlib.RingTheory.KrullDimension.Zero |
| 3 | |
| 4 | /-! # Zero Dimensional Flat -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.FormalGeometry.Completion.ZeroDimensionalFlat.Construction |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! # Completion: flatness over reduced zero-dimensional rings and affine schemes -/ |
| 11 | |
| 12 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 13 | |
| 14 | set_option backward.defeqAttrib.useBackward true |
| 15 | set_option backward.isDefEq.respectTransparency false |
| 16 | |
| 17 | universe u |
| 18 | |
| 19 | /-- Every ring map out of a reduced zero-dimensional ring is flat. -/ |
| 20 | theorem ringHom_flat_of_reduced_zeroDimensional {R S : Type u} [CommRing R] [CommRing S] |
| 21 | [IsReduced R] [Ring.KrullDimLE 0 R] (f : R →+* S) : f.Flat := by |
| 22 | apply RingHom.Flat.ofLocalizationPrime |
| 23 | intro P hP |
| 24 | have : Ring.KrullDimLE 0 (Localization.AtPrime (P.comap f)) := |
| 25 | Ring.KrullDimLE.of_isLocalization (P.comap f) |
| 26 | (Ideal.mem_minimalPrimes_of_krullDimLE_zero (P.comap f)) _ |
| 27 | exact RingHom.Flat.of_isField Ring.KrullDimLE.isField_of_isReduced _ |
| 28 | |
| 29 | /-- Every morphism into a reduced zero-dimensional affine scheme is flat. -/ |
| 30 | theorem schemeMap_flat_of_reduced_zeroDimensional_affine {X Y : Scheme.{u}} |
| 31 | [IsAffine Y] [IsReduced Γ(Y, ⊤)] [Ring.KrullDimLE 0 Γ(Y, ⊤)] (f : X ⟶ Y) : |
| 32 | Flat f := by |
| 33 | refine (MorphismProperty.cancel_right_of_respectsIso @Flat _ Y.isoSpec.hom).mp ?_ |
| 34 | refine (IsZariskiLocalAtSource.iff_of_openCover X.affineCover).mpr fun i => ?_ |
| 35 | rw [← Spec.map_preimage (X.affineCover.f i ≫ f ≫ Y.isoSpec.hom), |
| 36 | HasRingHomProperty.Spec_iff (P := @Flat)] |
| 37 | exact ringHom_flat_of_reduced_zeroDimensional _ |
| 38 | |
| 39 | end |
| 40 | |
| 41 | end OAI.AlgebraicGeometry.FormalGeometry.Completion.ZeroDimensionalFlat.Construction |