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.Affine.IdealFunctoriality |
| 2 | |
| 3 | /-! # Spectrum Ideal Coordinates -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.HilbertScheme.Presentations.SpectrumIdealCoordinates |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! Actual ideal sheaves on an affine spectrum have their ordinary ring |
| 10 | ideals as coordinates, naturally for both image and inverse image. -/ |
| 11 | |
| 12 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 13 | |
| 14 | universe u |
| 15 | |
| 16 | def spectrumIdealCoordinates (R : CommRingCat.{u}) : |
| 17 | (Spec R).IdealSheafData ≃o Ideal R := |
| 18 | (Scheme.IdealSheafData.equivOfIsAffine (X := Spec R)).toOrderIso.trans |
| 19 | (Scheme.ΓSpecIso R).symm.commRingCatIsoToRingEquiv.idealComapOrderIso |
| 20 | |
| 21 | theorem spectrumIdealCoordinates_map {R A : CommRingCat.{u}} (φ : R ⟶ A) |
| 22 | (I : (Spec A).IdealSheafData) : |
| 23 | spectrumIdealCoordinates R (I.map (Spec.map φ)) = |
| 24 | (spectrumIdealCoordinates A I).comap φ.hom := by |
| 25 | change (Scheme.IdealSheafData.equivOfIsAffine (I.map (Spec.map φ))).comap |
| 26 | (Scheme.ΓSpecIso R).inv.hom = |
| 27 | ((Scheme.IdealSheafData.equivOfIsAffine I).comap (Scheme.ΓSpecIso A).inv.hom).comap φ.hom |
| 28 | rw [AbelianModuli.HilbertConstruction.Affine.IdealFunctoriality.affine_ideal_map, Ideal.comap_comap, Ideal.comap_comap] |
| 29 | have he : (Spec.map φ).appTop.hom.comp (Scheme.ΓSpecIso R).inv.hom = |
| 30 | (Scheme.ΓSpecIso A).inv.hom.comp φ.hom := |
| 31 | congrArg CommRingCat.Hom.hom (Scheme.ΓSpecIso_inv_naturality φ).symm |
| 32 | rw [he] |
| 33 | |
| 34 | theorem spectrumIdealCoordinates_comap {R A : CommRingCat.{u}} (φ : R ⟶ A) |
| 35 | (I : (Spec R).IdealSheafData) : |
| 36 | spectrumIdealCoordinates A (I.comap (Spec.map φ)) = |
| 37 | (spectrumIdealCoordinates R I).map φ.hom := by |
| 38 | let ER := spectrumIdealCoordinates R |
| 39 | let EA := spectrumIdealCoordinates A |
| 40 | have hiff (J : (Spec A).IdealSheafData) : |
| 41 | EA (I.comap (Spec.map φ)) ≤ EA J ↔ (ER I).map φ.hom ≤ EA J := by |
| 42 | rw [EA.le_iff_le, ← Scheme.IdealSheafData.le_map_iff_comap_le, |
| 43 | Ideal.map_le_iff_le_comap, ← spectrumIdealCoordinates_map φ J] |
| 44 | exact ER.le_iff_le.symm |
| 45 | apply le_antisymm |
| 46 | · have h := (hiff (EA.symm ((ER I).map φ.hom))).mpr |
| 47 | (EA.apply_symm_apply _).symm.le |
| 48 | exact h.trans_eq (EA.apply_symm_apply _) |
| 49 | · exact (hiff (I.comap (Spec.map φ))).mp le_rfl |
| 50 | |
| 51 | theorem spectrumIdealCoordinates_kernel {R A : CommRingCat.{u}} (φ : R ⟶ A) : |
| 52 | spectrumIdealCoordinates R (Spec.map φ).ker = RingHom.ker φ.hom := by |
| 53 | rw [← Scheme.IdealSheafData.map_bot, spectrumIdealCoordinates_map, OrderIso.map_bot] |
| 54 | rfl |
| 55 | |
| 56 | end |
| 57 | |
| 58 | end OAI.AlgebraicGeometry.HilbertScheme.Presentations.SpectrumIdealCoordinates |