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.NaturalEndomorphismClosedLocus |
| 2 | import OAI.AlgebraicGeometry.HilbertScheme.Presentations.EndomorphismPolynomialSubfunctors |
| 3 | import OAI.AlgebraicGeometry.HilbertScheme.Presentations.Hilbert.HomExactSubfunctors |
| 4 | import OAI.AlgebraicGeometry.HilbertScheme.Presentations.RepresentedSubfunctorRange |
| 5 | |
| 6 | /-! # Endomorphism Closed Locus -/ |
| 7 | |
| 8 | namespace OAI.AlgebraicGeometry.HilbertScheme.Presentations |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! The exact polynomial-restricted endomorphism functor is represented |
| 13 | by a closed subscheme of any Hilbert/Hom package's morphism scheme. -/ |
| 14 | |
| 15 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry |
| 16 | |
| 17 | universe u |
| 18 | variable {S : Scheme.{u}} [IsLocallyNoetherian S] |
| 19 | variable (A : Over S) [GrpObj A] |
| 20 | variable [Flat A.hom] [IsProper A.hom] [LocallyOfFinitePresentation A.hom] |
| 21 | variable {B : Has.Core.ProjectivePresentation (A ⨯ A)} {n : ℕ} {P : Fin n → Polynomial ℚ} |
| 22 | |
| 23 | theorem Loci.Core.HilbertHomLoci.endomorphism_closed_locus |
| 24 | (BA : Has.Core.ProjectivePresentation A) (L : Loci.Core.HilbertHomLoci A A B n P) : |
| 25 | ∃ (E : Over S) (j : E ⟶ L.homScheme), IsClosedImmersion j.left ∧ |
| 26 | ∃ e : yoneda.obj E ≅ (EndomorphismPolynomialSubfunctors.Core.endomorphismPolynomialSubfunctor A n B P).toFunctor, |
| 27 | e.hom ≫ (EndomorphismPolynomialSubfunctors.Core.endomorphismPolynomialSubfunctor A n B P).ι ≫ Endomorphisms.Core.forgetGroupLaw A n = |
| 28 | yoneda.map j ≫ L.morphismEquivalence.hom ≫ L.morphismLocus.ι := by |
| 29 | let : LocallyOfFiniteType L.homScheme.hom := L.hom_finiteType |
| 30 | let : IsLocallyNoetherian L.homScheme.left := |
| 31 | LocallyOfFiniteType.isLocallyNoetherian L.homScheme.hom |
| 32 | let t : yoneda.obj L.homScheme ⟶ Has.Core.morphismTuples A A n := |
| 33 | L.morphismEquivalence.hom ≫ L.morphismLocus.ι |
| 34 | obtain ⟨E, j, hj, _, e, he⟩ := NaturalEndomorphismClosedLocus.Core.naturalMorphism_endomorphismClosed A n BA t |
| 35 | have hrange : Subfunctor.range t = L.morphismLocus := |
| 36 | RepresentedSubfunctorRange.representedSubfunctor_range L.morphismLocus L.morphismEquivalence |
| 37 | have h : (Subfunctor.range t).preimage (Endomorphisms.Core.forgetGroupLaw A n) = |
| 38 | EndomorphismPolynomialSubfunctors.Core.endomorphismPolynomialSubfunctor A n B P := by |
| 39 | rw [hrange, L.morphismLocus_eq] |
| 40 | rfl |
| 41 | obtain ⟨e', he'⟩ := RepresentedSubfunctorRange.representedSubfunctor_transport h |
| 42 | (e.hom ≫ ((Subfunctor.range t).preimage (Endomorphisms.Core.forgetGroupLaw A n)).ι) e rfl |
| 43 | refine ⟨E, j, hj, e', ?_⟩ |
| 44 | have hc := congrArg (fun k => k ≫ Endomorphisms.Core.forgetGroupLaw A n) he' |
| 45 | have hc' : e'.hom ≫ (EndomorphismPolynomialSubfunctors.Core.endomorphismPolynomialSubfunctor A n B P).ι ≫ Endomorphisms.Core.forgetGroupLaw A n = |
| 46 | e.hom ≫ ((Subfunctor.range t).preimage (Endomorphisms.Core.forgetGroupLaw A n)).ι ≫ Endomorphisms.Core.forgetGroupLaw A n := by |
| 47 | simpa only [Category.assoc] using hc |
| 48 | exact hc'.trans he |
| 49 | |
| 50 | end |
| 51 | |
| 52 | end OAI.AlgebraicGeometry.HilbertScheme.Presentations |