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.Finite.AffineOpenCover |
| 2 | import OAI.AlgebraicGeometry.HilbertScheme.Presentations.Projective.TensorPullbackCoefficients |
| 3 | import OAI.AlgebraicGeometry.HilbertScheme.Presentations.NoetherianFlatFamilyFree |
| 4 | import OAI.AlgebraicGeometry.HilbertScheme.Presentations.Affine.CoefficientOpenCover |
| 5 | import Mathlib.AlgebraicGeometry.Morphisms.FiniteType |
| 6 | |
| 7 | /-! # Generic Source Ideal Coefficients -/ |
| 8 | |
| 9 | namespace OAI.AlgebraicGeometry.HilbertScheme.Presentations.GenericSourceIdealCoefficients |
| 10 | |
| 11 | noncomputable section |
| 12 | |
| 13 | /-! All ideals on a flat finite-type source over a Noetherian base have |
| 14 | coefficient ideals after restriction to one nonempty principal open. -/ |
| 15 | |
| 16 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry TensorProduct |
| 17 | |
| 18 | universe u |
| 19 | variable (R : CommRingCat.{u}) [IsNoetherianRing R] [Nontrivial R] |
| 20 | variable {X : Scheme.{u}} [CompactSpace X] (f : X ⟶ Spec R) |
| 21 | variable [Flat f] [LocallyOfFiniteType f] |
| 22 | |
| 23 | theorem exists_generic_source_ideal_coefficients : |
| 24 | ∃ s : R, ¬ IsNilpotent s ∧ |
| 25 | ∀ K : (pullback f (Spec.map (CommRingCat.ofHom |
| 26 | (algebraMap R (Localization.Away s))))).IdealSheafData, |
| 27 | ∃ I : Ideal (Localization.Away s), |
| 28 | Affine.IdealCoefficientTests.IsAffineIdealCoefficient (CommRingCat.of (Localization.Away s)) |
| 29 | (pullback.snd f (Spec.map (CommRingCat.ofHom |
| 30 | (algebraMap R (Localization.Away s))))) K I := by |
| 31 | classical |
| 32 | let U := Finite.AffineOpenCover.finiteAffineOpenCover X |
| 33 | let ρ (i : U.I₀) : R ⟶ U.X i := Spec.preimage (U.f i ≫ f) |
| 34 | let : ∀ i, Algebra R (U.X i) := fun i => (ρ i).hom.toAlgebra |
| 35 | have hρ (i : U.I₀) : Spec.map (CommRingCat.ofHom (algebraMap R (U.X i))) = U.f i ≫ f := |
| 36 | Spec.map_preimage _ |
| 37 | let : ∀ i, Module.Flat R (U.X i) := fun i => by |
| 38 | have hf : Flat (Spec.map (ρ i)) := by rw [Spec.map_preimage]; infer_instance |
| 39 | exact Flat.SpecMap_iff.mp hf |
| 40 | let : ∀ i, Algebra.FiniteType R (U.X i) := fun i => by |
| 41 | have hf : LocallyOfFiniteType (Spec.map (ρ i)) := by rw [Spec.map_preimage]; infer_instance |
| 42 | exact (HasRingHomProperty.Spec_iff (P := @LocallyOfFiniteType)).mp hf |
| 43 | obtain ⟨s, hs, hfree⟩ := NoetherianFlatFamilyFree.exists_generic_free_noetherian_flat_algebra_family R (fun i => U.X i) |
| 44 | refine ⟨s, hs, ?_⟩ |
| 45 | intro K |
| 46 | let A := CommRingCat.of (Localization.Away s) |
| 47 | let g := Spec.map (CommRingCat.ofHom (algebraMap R A)) |
| 48 | let V := Scheme.Pullback.openCoverOfLeft U.openCover f g |
| 49 | have hcoeff (i : U.I₀) : ∃ I : Ideal A, |
| 50 | Affine.IdealCoefficientTests.IsAffineIdealCoefficient A (V.f i ≫ pullback.snd f g) (K.comap (V.f i)) I := by |
| 51 | let : Module.Free A (A ⊗[R] U.X i) := hfree i |
| 52 | have hv : V.f i ≫ pullback.snd f g = pullback.snd (U.f i ≫ f) g := by |
| 53 | change pullback.map (U.f i ≫ f) g f g (U.f i) (𝟙 _) (𝟙 _) |
| 54 | (by simp) (by simp) ≫ pullback.snd f g = _ |
| 55 | simp only [pullback.map, pullback.lift_snd, Category.comp_id] |
| 56 | rw [hv] |
| 57 | exact Projective.TensorPullbackCoefficients.projective_tensor_pullback_coefficients_of_eq R A (U.X i) (U.f i ≫ f) (hρ i) _ |
| 58 | choose I hI using hcoeff |
| 59 | exact ⟨⨆ i, I i, Affine.CoefficientOpenCover.affineIdealCoefficient_of_openCover A (pullback.snd f g) K V I hI⟩ |
| 60 | |
| 61 | end |
| 62 | |
| 63 | end OAI.AlgebraicGeometry.HilbertScheme.Presentations.GenericSourceIdealCoefficients |