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.IdealSheaf.Functorial |
| 2 | |
| 3 | /-! # Global Ideal Pullback -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.Divisors.LineBundles.Open.GlobalIdealPullback.BundleCycles |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! # LineBundleCycles: actual open pullback of an ideal generated by global regular equations -/ |
| 10 | |
| 11 | open _root_.AlgebraicGeometry _root_.CategoryTheory |
| 12 | |
| 13 | theorem openInclusion_appTop {X : Scheme.{0}} {U V : X.Opens} (h : U ≤ V) : |
| 14 | (X.homOfLE h).appTop = V.topIso.hom ≫ X.presheaf.map (homOfLE h).op ≫ U.topIso.inv := by |
| 15 | rw [Scheme.homOfLE_appTop, Scheme.Opens.topIso_hom, Scheme.Opens.topIso_inv] |
| 16 | exact (X.presheaf.map_comp (eqToHom V.ι_image_top.symm).op |
| 17 | ((homOfLE h).op ≫ (eqToHom U.ι_image_top).op)).trans |
| 18 | (congrArg (fun k => X.presheaf.map (eqToHom V.ι_image_top.symm).op ≫ k) |
| 19 | (X.presheaf.map_comp (homOfLE h).op (eqToHom U.ι_image_top).op)) |
| 20 | |
| 21 | variable {X Y : Scheme.{0}} (i : X ⟶ Y) [IsOpenImmersion i] |
| 22 | |
| 23 | theorem openGlobalSection_naturality (U : X.Opens) : |
| 24 | Y.presheaf.map (homOfLE (show i ''ᵁ U ≤ ⊤ from le_top)).op ≫ (i.appIso U).hom = |
| 25 | i.appTop ≫ X.presheaf.map (homOfLE (show U ≤ ⊤ from le_top)).op := by |
| 26 | rw [Scheme.Hom.appIso_hom', Scheme.Hom.map_appLE] |
| 27 | rfl |
| 28 | |
| 29 | theorem commRingIso_comap_inv {R S : CommRingCat.{0}} (e : R ≅ S) (I : Ideal R) : |
| 30 | I.comap e.inv.hom = I.map e.hom.hom := |
| 31 | (Ideal.map_comap_of_equiv e.commRingCatIsoToRingEquiv).symm |
| 32 | |
| 33 | theorem openIdeal_comap_ofIdealTop (I : Ideal Γ(Y, ⊤)) : |
| 34 | (Scheme.IdealSheafData.ofIdealTop I).comap i = Scheme.IdealSheafData.ofIdealTop (I.map i.appTop.hom) := by |
| 35 | apply Scheme.IdealSheafData.ext |
| 36 | funext U |
| 37 | rw [Scheme.IdealSheafData.ideal_comap_of_isOpenImmersion, |
| 38 | Scheme.IdealSheafData.ofIdealTop_ideal, Scheme.IdealSheafData.ofIdealTop_ideal] |
| 39 | change (I.map (Y.presheaf.map (homOfLE (show i ''ᵁ U.val ≤ ⊤ from le_top)).op).hom).comap |
| 40 | (i.appIso U.val).inv.hom = |
| 41 | (I.map i.appTop.hom).map (X.presheaf.map (homOfLE (show U.val ≤ ⊤ from le_top)).op).hom |
| 42 | rw [commRingIso_comap_inv, Ideal.map_map, Ideal.map_map] |
| 43 | apply congrArg (Ideal.map · I) |
| 44 | exact congrArg CommRingCat.Hom.hom (openGlobalSection_naturality i U) |
| 45 | |
| 46 | end |
| 47 | |
| 48 | end OAI.AlgebraicGeometry.Divisors.LineBundles.Open.GlobalIdealPullback.BundleCycles |