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.Projective.SectionCoefficientIdeal |
| 2 | import OAI.AlgebraicGeometry.HilbertScheme.Presentations.Relative.AffinePoints |
| 3 | import Mathlib.AlgebraicGeometry.Morphisms.ClosedImmersion |
| 4 | import Mathlib.RingTheory.Ideal.Quotient.Operations |
| 5 | |
| 6 | /-! # Section Affine Locus -/ |
| 7 | |
| 8 | namespace OAI.AlgebraicGeometry.HilbertScheme.Presentations.Projective.SectionAffineLocus |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! The spectrum of a projective section's coefficient quotient is an |
| 13 | actual closed parameter scheme. Its points on every test scheme are |
| 14 | exactly the vanishing condition in the test scheme's global algebra. -/ |
| 15 | |
| 16 | open _root_.CategoryTheory _root_.AlgebraicGeometry TensorProduct |
| 17 | |
| 18 | universe u v |
| 19 | variable {R : Type u} [CommRing R] |
| 20 | |
| 21 | theorem quotientAlgHom_nonempty_iff (J : Ideal R) (A : Type v) [CommRing A] [Algebra R A] : |
| 22 | Nonempty ((R ⧸ J) →ₐ[R] A) ↔ J ≤ RingHom.ker (algebraMap R A) := by |
| 23 | constructor |
| 24 | · rintro ⟨f⟩ r hr |
| 25 | change algebraMap R A r = 0 |
| 26 | exact (f.commutes r).symm.trans |
| 27 | ((congrArg f (Ideal.Quotient.eq_zero_iff_mem.mpr hr)).trans (map_zero f)) |
| 28 | · intro h |
| 29 | exact ⟨Ideal.Quotient.liftₐ J (Algebra.ofId R A) (fun r hr => h hr)⟩ |
| 30 | |
| 31 | theorem quotientAlgHom_unique (J : Ideal R) (A : Type v) [CommRing A] [Algebra R A] |
| 32 | (f g : (R ⧸ J) →ₐ[R] A) : f = g := by |
| 33 | apply AlgHom.ext |
| 34 | intro q |
| 35 | obtain ⟨r, rfl⟩ := Ideal.Quotient.mk_surjective q |
| 36 | exact (f.commutes r).trans (g.commutes r).symm |
| 37 | |
| 38 | variable (R : CommRingCat.{u}) {M : Type u} [AddCommGroup M] [Module R M] |
| 39 | variable {ι : Type v} (x : ι → M) |
| 40 | |
| 41 | def projectiveSectionAffineLocus : Over (Spec R) := |
| 42 | Relative.AffinePoints.relativeAffineScheme R (R ⧸ SectionCoefficientIdeal.projectiveSectionCoefficientIdeal x) |
| 43 | |
| 44 | instance projectiveSectionAffineLocus_isClosedImmersion : |
| 45 | IsClosedImmersion (projectiveSectionAffineLocus R x).hom := by |
| 46 | change IsClosedImmersion (Spec.map (CommRingCat.ofHom |
| 47 | (algebraMap R (R ⧸ SectionCoefficientIdeal.projectiveSectionCoefficientIdeal x)))) |
| 48 | exact IsClosedImmersion.spec_of_surjective _ (Ideal.Quotient.mk_surjective) |
| 49 | |
| 50 | theorem projectiveSectionAffineLocus_points_iff [Module.Projective R M] (T : Over (Spec R)) : |
| 51 | Nonempty (T ⟶ projectiveSectionAffineLocus R x) ↔ |
| 52 | ∀ i, (1 : Relative.AffinePoints.relativeGlobalAlgebra R T) ⊗ₜ[R] x i = 0 := by |
| 53 | have he : Nonempty (T ⟶ projectiveSectionAffineLocus R x) ↔ |
| 54 | Nonempty ((R ⧸ SectionCoefficientIdeal.projectiveSectionCoefficientIdeal x) →ₐ[R] Relative.AffinePoints.relativeGlobalAlgebra R T) := |
| 55 | ⟨fun ⟨f⟩ => ⟨Relative.AffinePoints.relativeAffinePointEquiv R _ T f⟩, |
| 56 | fun ⟨f⟩ => ⟨(Relative.AffinePoints.relativeAffinePointEquiv R _ T).symm f⟩⟩ |
| 57 | exact he.trans ((quotientAlgHom_nonempty_iff _ _).trans |
| 58 | (SectionCoefficientIdeal.projectiveSectionCoefficientIdeal_le_ker_iff (Relative.AffinePoints.relativeGlobalAlgebra R T) x)) |
| 59 | |
| 60 | theorem projectiveSectionAffineLocus_unique (T : Over (Spec R)) |
| 61 | (f g : T ⟶ projectiveSectionAffineLocus R x) : f = g := by |
| 62 | apply (Relative.AffinePoints.relativeAffinePointEquiv R _ T).injective |
| 63 | exact quotientAlgHom_unique _ _ _ _ |
| 64 | |
| 65 | end |
| 66 | |
| 67 | end OAI.AlgebraicGeometry.HilbertScheme.Presentations.Projective.SectionAffineLocus |