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.Preimmersion |
| 2 | import Mathlib.AlgebraicGeometry.Morphisms.Flat |
| 3 | |
| 4 | /-! # Flat Preimmersion Reduced -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.PELModuli.IntegralModel.FlatPreimmersionReduced |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! A flat preimmersion preserves reducedness. On stalks the map is |
| 11 | both surjective and faithfully flat, hence an isomorphism. -/ |
| 12 | |
| 13 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 14 | |
| 15 | theorem flat_preimmersion_isReduced {X Y : Scheme.{0}} (f : X ⟶ Y) |
| 16 | [IsPreimmersion f] [Flat f] [IsReduced Y] : IsReduced X := by |
| 17 | have (x : X) : _root_.IsReduced (X.presheaf.stalk x) := by |
| 18 | let φ := (f.stalkMap x).hom |
| 19 | let : Algebra (Y.presheaf.stalk (f x)) (X.presheaf.stalk x) := φ.toAlgebra |
| 20 | have : Module.Flat (Y.presheaf.stalk (f x)) (X.presheaf.stalk x) := Flat.stalkMap f x |
| 21 | have : IsLocalHom (algebraMap (Y.presheaf.stalk (f x)) (X.presheaf.stalk x)) := |
| 22 | inferInstanceAs (IsLocalHom φ) |
| 23 | have : Module.FaithfullyFlat (Y.presheaf.stalk (f x)) (X.presheaf.stalk x) := |
| 24 | Module.FaithfullyFlat.of_flat_of_isLocalHom |
| 25 | have hi : Function.Injective φ := FaithfulSMul.algebraMap_injective |
| 26 | (Y.presheaf.stalk (f x)) (X.presheaf.stalk x) |
| 27 | let e := RingEquiv.ofBijective φ ⟨hi, f.stalkMap_surjective x⟩ |
| 28 | exact isReduced_of_injective e.symm.toRingHom e.symm.injective |
| 29 | exact isReduced_of_isReduced_stalk X |
| 30 | |
| 31 | end |
| 32 | |
| 33 | end OAI.AlgebraicGeometry.PELModuli.IntegralModel.FlatPreimmersionReduced |