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.Proper.FlatIdealCoefficients |
| 2 | import OAI.AlgebraicGeometry.HilbertScheme.Presentations.Ideal.ContainmentParameterRepresentation |
| 3 | import OAI.AlgebraicGeometry.HilbertScheme.Presentations.Closed.FactorizationCriterion |
| 4 | import Mathlib.AlgebraicGeometry.Morphisms.QuasiCompact |
| 5 | import Mathlib.AlgebraicGeometry.Morphisms.Affine |
| 6 | |
| 7 | /-! # Affine Parameter Locus -/ |
| 8 | |
| 9 | namespace OAI.AlgebraicGeometry.HilbertScheme.Presentations.Proper.AffineParameterLocus |
| 10 | |
| 11 | noncomputable section |
| 12 | |
| 13 | /-! An ideal on a proper flat source defines an actual closed parameter |
| 14 | locus over a Noetherian affine parameter base, on all test schemes. -/ |
| 15 | |
| 16 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry |
| 17 | |
| 18 | universe u |
| 19 | |
| 20 | theorem spectrum_morphism_quasiCompact {R A : CommRingCat.{u}} (g : Spec A ⟶ Spec R) : |
| 21 | QuasiCompact g := inferInstance |
| 22 | |
| 23 | variable {S : Scheme.{u}} (X : Over S) [Flat X.hom] [IsProper X.hom] |
| 24 | variable (R : CommRingCat.{u}) [IsNoetherianRing R] (a : Spec R ⟶ S) |
| 25 | |
| 26 | theorem proper_affine_parameter_locus (K : (Hilbert.Functor.ambient X (Over.mk a)).IdealSheafData) : |
| 27 | ∃ (Z : Over S) (j : Z ⟶ Over.mk a), IsClosedImmersion j.left ∧ |
| 28 | (∀ (T : Over S) (x : T ⟶ Over.mk a), K.comap (Hilbert.Functor.ambientMap X x) = ⊥ ↔ |
| 29 | ∃! y : T ⟶ Z, y ≫ j = x) ∧ |
| 30 | ∃ e : yoneda.obj Z ≅ (Ideal.ContainmentParameterFunctor.Hilbert.idealContainmentParameterSubfunctor X K ⊥).toFunctor, |
| 31 | e.hom ≫ (Ideal.ContainmentParameterFunctor.Hilbert.idealContainmentParameterSubfunctor X K ⊥).ι = yoneda.map j := by |
| 32 | let f := Hilbert.Functor.ambientProjection X (Over.mk a) |
| 33 | let : Flat f := by |
| 34 | change Flat (prod.fst : Over.mk a ⨯ X ⟶ Over.mk a).left |
| 35 | rw [← Over.prodLeftIsoPullback_hom_fst] |
| 36 | infer_instance |
| 37 | let : IsProper f := by |
| 38 | change IsProper (prod.fst : Over.mk a ⨯ X ⟶ Over.mk a).left |
| 39 | rw [← Over.prodLeftIsoPullback_hom_fst] |
| 40 | infer_instance |
| 41 | obtain ⟨I, hI⟩ := FlatIdealCoefficients.proper_flat_ideal_coefficients R _ f K |
| 42 | let J := (SpectrumIdealCoordinates.spectrumIdealCoordinates R).symm I |
| 43 | let Z : Over S := Over.mk (J.subschemeι ≫ a) |
| 44 | let j : Z ⟶ Over.mk a := Over.homMk J.subschemeι rfl |
| 45 | let : IsClosedImmersion j.left := inferInstanceAs (IsClosedImmersion J.subschemeι) |
| 46 | have hspec : ∀ (A : Type u) [CommRing A] (b : Spec (CommRingCat.of A) ⟶ S) |
| 47 | (x : Over.mk b ⟶ Over.mk a), |
| 48 | x ∈ (Ideal.ContainmentParameterFunctor.Hilbert.idealContainmentParameterSubfunctor X K ⊥).obj (.op (Over.mk b)) ↔ |
| 49 | ∃ y : Over.mk b ⟶ Z, y ≫ j = x := by |
| 50 | intro A _ b x |
| 51 | let : QuasiCompact x.left := spectrum_morphism_quasiCompact |
| 52 | (R := R) (A := CommRingCat.of A) x.left |
| 53 | let hp := (Hilbert.Functor.ambient_isPullback X x).flip |
| 54 | have hk : (Hilbert.Functor.ambientMap X x).ker = x.left.ker.comap f := by |
| 55 | rw [← hp.isoPullback_hom_fst, Scheme.Hom.ker_comp_of_isIso, KernelFlatBaseChange.kernel_flat_baseChange] |
| 56 | have hzero : K.comap (Hilbert.Functor.ambientMap X x) = ⊥ ↔ J.comap x.left = ⊥ := by |
| 57 | rw [AbelianModuli.HilbertConstruction.FaithfullyFlatIdealEquality.ideal_comap_eq_bot_iff_le_ker, |
| 58 | AbelianModuli.HilbertConstruction.FaithfullyFlatIdealEquality.ideal_comap_eq_bot_iff_le_ker, hk] |
| 59 | have he : x.left.ker = (SpectrumIdealCoordinates.spectrumIdealCoordinates R).symm |
| 60 | (SpectrumIdealCoordinates.spectrumIdealCoordinates R x.left.ker) := |
| 61 | ((SpectrumIdealCoordinates.spectrumIdealCoordinates R).symm_apply_apply _).symm |
| 62 | conv_lhs => rw [he] |
| 63 | rw [hI] |
| 64 | exact ((SpectrumIdealCoordinates.spectrumIdealCoordinates R).symm.le_iff_le).symm.trans |
| 65 | (by rw [(SpectrumIdealCoordinates.spectrumIdealCoordinates R).symm_apply_apply]) |
| 66 | change K.comap (Hilbert.Functor.ambientMap X x) ≤ (⊥ : (Hilbert.Functor.ambient X (Over.mk a)).IdealSheafData).comap |
| 67 | (Hilbert.Functor.ambientMap X x) ↔ _ |
| 68 | rw [Scheme.IdealSheafData.comap_bot, le_bot_iff, hzero] |
| 69 | have hj : j.left.ker = J := J.ker_subschemeι |
| 70 | rw [← hj, ← Closed.FactorizationCriterion.over_closed_factorization_iff_comap_bot j x] |
| 71 | constructor |
| 72 | · exact ExistsUnique.exists |
| 73 | · rintro ⟨y, hy⟩ |
| 74 | let : Mono j := Over.mono_of_mono_left j |
| 75 | exact ⟨y, hy, fun z hz => (cancel_mono j).mp (hz.trans hy.symm)⟩ |
| 76 | refine ⟨Z, j, inferInstanceAs (IsClosedImmersion J.subschemeι), ?_, |
| 77 | Ideal.ContainmentParameterRepresentation.Hilbert.idealContainmentParameter_representation X K ⊥ j hspec⟩ |
| 78 | intro T x |
| 79 | have h := Ideal.ContainmentParameterRepresentation.Hilbert.idealContainmentParameter_lifts X K ⊥ j hspec T x |
| 80 | change K.comap (Hilbert.Functor.ambientMap X x) ≤ |
| 81 | (⊥ : (Hilbert.Functor.ambient X (Over.mk a)).IdealSheafData).comap (Hilbert.Functor.ambientMap X x) ↔ _ at h |
| 82 | simpa only [Scheme.IdealSheafData.comap_bot, le_bot_iff] using h |
| 83 | |
| 84 | end |
| 85 | |
| 86 | end OAI.AlgebraicGeometry.HilbertScheme.Presentations.Proper.AffineParameterLocus |