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.AbelianModuli.HilbertConstruction.Connected.IntegralAlgebra |
| 2 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Affine.FactorThroughConstants |
| 3 | import Mathlib.AlgebraicGeometry.Morphisms.Proper |
| 4 | |
| 5 | /-! # Connected Reduced Constants -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Proper.ConnectedReducedConstants |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! Global functions on a connected reduced universally closed scheme over a field form a field. -/ |
| 12 | |
| 13 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 14 | |
| 15 | universe u |
| 16 | |
| 17 | variable {K : Type u} [Field K] {X Y : Scheme.{u}} |
| 18 | |
| 19 | theorem properConnectedReduced_globalSections_isField (p : X ⟶ Spec (.of K)) |
| 20 | [UniversallyClosed p] [IsReduced X] [ConnectedSpace X] : IsField Γ(X, ⊤) := by |
| 21 | have : CompactSpace X := (quasiCompact_iff_compactSpace p).mp inferInstance |
| 22 | have : Nonempty (⊤ : X.Opens) := ⟨⟨Nonempty.some inferInstance, trivial⟩⟩ |
| 23 | have : PreconnectedSpace (PrimeSpectrum Γ(X, ⊤)) := |
| 24 | X.toSpecΓ.denseRange.preconnectedSpace X.toSpecΓ.continuous |
| 25 | let := ((Scheme.ΓSpecIso (.of K)).commRingCatIsoToRingEquiv.toMulEquiv.isField |
| 26 | (Field.toIsField K)).toField |
| 27 | have hp : p.appTop.hom.IsIntegral := isIntegral_appTop_of_universallyClosed p |
| 28 | algebraize [p.appTop.hom] |
| 29 | exact Connected.IntegralAlgebra.connected_integral_reduced_isField Γ(Spec (.of K), ⊤) Γ(X, ⊤) |
| 30 | |
| 31 | def properConnectedReducedPointGlobalIso (p : X ⟶ Spec (.of K)) |
| 32 | [UniversallyClosed p] [IsReduced X] [ConnectedSpace X] |
| 33 | (x : Spec (.of K) ⟶ X) (hx : x ≫ p = 𝟙 _) : Γ(Spec (.of K), ⊤) ≅ Γ(X, ⊤) := by |
| 34 | letI : Field Γ(X, ⊤) := (properConnectedReduced_globalSections_isField p).toField |
| 35 | have : Mono x.appTop := ConcreteCategory.mono_of_injective x.appTop x.appTop.hom.injective |
| 36 | have hpx : p.appTop ≫ x.appTop = 𝟙 _ := |
| 37 | (Scheme.Hom.comp_appTop x p).symm.trans |
| 38 | ((congrArg Scheme.Hom.appTop hx).trans Scheme.Hom.id_appTop) |
| 39 | refine ⟨p.appTop, x.appTop, hpx, ?_⟩ |
| 40 | apply (cancel_mono x.appTop).mp |
| 41 | rw [Category.assoc, hpx, Category.comp_id, Category.id_comp] |
| 42 | |
| 43 | theorem properConnectedReduced_map_eq_constant (p : X ⟶ Spec (.of K)) |
| 44 | [UniversallyClosed p] [IsReduced X] [ConnectedSpace X] (f : X ⟶ Y) [IsAffine Y] |
| 45 | (x : Spec (.of K) ⟶ X) (hx : x ≫ p = 𝟙 _) : f = p ≫ x ≫ f := by |
| 46 | let : IsIso p.appTop := (properConnectedReducedPointGlobalIso p x hx).isIso_hom |
| 47 | obtain ⟨a, ha, _⟩ := Affine.FactorThroughConstants.affineFactorOfGlobalIso_existsUnique p f |
| 48 | have hxa : x ≫ f = a := by rw [← ha, ← Category.assoc, hx, Category.id_comp] |
| 49 | exact ha.symm.trans (congrArg (fun b => p ≫ b) hxa.symm) |
| 50 | |
| 51 | end |
| 52 | |
| 53 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Proper.ConnectedReducedConstants |