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.HilbertScheme.Presentations.CoefficientDescentCompatibility |
| 2 | import OAI.AlgebraicGeometry.HilbertScheme.Presentations.Flat.IdealDescent |
| 3 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.FaithfullyFlatIdealEquality |
| 4 | import Mathlib.Algebra.Category.Ring.Constructions |
| 5 | |
| 6 | /-! # Faithfully Flat Coefficient Descent -/ |
| 7 | |
| 8 | namespace OAI.AlgebraicGeometry.HilbertScheme.Presentations.FaithfullyFlatCoefficientDescent |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! A coefficient ideal descends along a faithfully flat affine cover. -/ |
| 13 | |
| 14 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry TensorProduct |
| 15 | |
| 16 | universe u |
| 17 | variable (R A : CommRingCat.{u}) [Algebra R A] [Module.FaithfullyFlat R A] |
| 18 | variable {X : Scheme.{u}} (f : X ⟶ Spec R) [Flat f] (K : X.IdealSheafData) |
| 19 | |
| 20 | theorem affineIdealCoefficient_faithfullyFlat_descent (C : Ideal A) |
| 21 | (hC : Affine.IdealCoefficientTests.IsAffineIdealCoefficient A |
| 22 | (pullback.snd f (Spec.map (CommRingCat.ofHom (algebraMap R A)))) |
| 23 | (K.comap (pullback.fst f (Spec.map (CommRingCat.ofHom (algebraMap R A))))) C) : |
| 24 | Affine.IdealCoefficientTests.IsAffineIdealCoefficient R f K (C.comap (algebraMap R A)) := by |
| 25 | let φ : R ⟶ A := CommRingCat.ofHom (algebraMap R A) |
| 26 | let a : A ⟶ CommRingCat.of (A ⊗[R] A) := |
| 27 | CommRingCat.ofHom (Algebra.TensorProduct.includeLeft : A →ₐ[R] A ⊗[R] A).toRingHom |
| 28 | let b : A ⟶ CommRingCat.of (A ⊗[R] A) := |
| 29 | CommRingCat.ofHom (Algebra.TensorProduct.includeRight : A →ₐ[R] A ⊗[R] A).toRingHom |
| 30 | have hab : φ ≫ a = φ ≫ b := (CommRingCat.isPushout_tensorProduct R A A).w |
| 31 | have hc := CoefficientDescentCompatibility.affineIdealCoefficient_descent_compatibility f K φ C hC a b hab |
| 32 | have hdesc : (C.comap (algebraMap R A)).map (algebraMap R A) = C := |
| 33 | Presentations.Flat.IdealDescent.flat_ideal_descent R A C hc.le |
| 34 | let g := Spec.map φ |
| 35 | have hg : Flat g ∧ Surjective g := |
| 36 | (flat_and_surjective_SpecMap_iff φ).mpr |
| 37 | (RingHom.faithfullyFlat_algebraMap_iff.mpr inferInstance) |
| 38 | let : Flat g := hg.1 |
| 39 | let : Surjective g := hg.2 |
| 40 | let p := pullback.fst f g |
| 41 | let q := pullback.snd f g |
| 42 | intro L |
| 43 | have hbase : ((SpectrumIdealCoordinates.spectrumIdealCoordinates R).symm L).comap g = |
| 44 | (SpectrumIdealCoordinates.spectrumIdealCoordinates A).symm (L.map (algebraMap R A)) := by |
| 45 | apply (SpectrumIdealCoordinates.spectrumIdealCoordinates A).injective |
| 46 | rw [SpectrumIdealCoordinates.spectrumIdealCoordinates_comap, OrderIso.apply_symm_apply, OrderIso.apply_symm_apply] |
| 47 | rfl |
| 48 | have hpull : (((SpectrumIdealCoordinates.spectrumIdealCoordinates R).symm L).comap f).comap p = |
| 49 | ((SpectrumIdealCoordinates.spectrumIdealCoordinates A).symm (L.map (algebraMap R A))).comap q := by |
| 50 | rw [← Scheme.IdealSheafData.comap_comp, pullback.condition, |
| 51 | Scheme.IdealSheafData.comap_comp, hbase] |
| 52 | constructor |
| 53 | · intro h |
| 54 | have hm := Scheme.IdealSheafData.comap_mono p h |
| 55 | dsimp only at hm |
| 56 | rw [hpull] at hm |
| 57 | have hc := (hC _).mp hm |
| 58 | rw [← hdesc] at hc |
| 59 | have he := Ideal.comap_mono (f := algebraMap R A) hc |
| 60 | simpa only [Ideal.comap_map_eq_self_of_faithfullyFlat] using he |
| 61 | · intro h |
| 62 | have hc : C ≤ L.map (algebraMap R A) := by |
| 63 | rw [← hdesc] |
| 64 | exact Ideal.map_mono h |
| 65 | apply AbelianModuli.HilbertConstruction.FaithfullyFlatIdealEquality.ideal_le_of_faithfullyFlat p |
| 66 | rw [hpull] |
| 67 | exact (hC _).mpr hc |
| 68 | |
| 69 | end |
| 70 | |
| 71 | end OAI.AlgebraicGeometry.HilbertScheme.Presentations.FaithfullyFlatCoefficientDescent |