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.KillVariables |
| 2 | import OAI.AlgebraicGeometry.HilbertScheme.Presentations.Linear.FormQuotient |
| 3 | import Mathlib.Data.Fin.SuccPred |
| 4 | |
| 5 | /-! # Hyperplane -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.HilbertScheme.Presentations.Coordinate.Hyperplane.GradedHilbert |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! A coordinate hyperplane quotient is the actual polynomial coordinate quotient in one fewer variable. -/ |
| 12 | |
| 13 | open _root_.MvPolynomial |
| 14 | |
| 15 | universe u |
| 16 | |
| 17 | variable (R : Type u) [CommRing R] (n : ℕ) |
| 18 | |
| 19 | def forgetZeroCoordinate : Hilbert.Polynomial.GradedHilbert.CoordinateRing R (n + 1) →ₐ[R] Hilbert.Polynomial.GradedHilbert.CoordinateRing R n := |
| 20 | MvPolynomial.killCompl (Fin.succ_injective (n := n + 1)) |
| 21 | |
| 22 | theorem forgetZeroCoordinate_surjective : Function.Surjective (forgetZeroCoordinate R n) := |
| 23 | KillVariables.GradedHilbert.killVariables_surjective _ |
| 24 | |
| 25 | theorem forgetZeroCoordinate_kernel : |
| 26 | RingHom.ker (forgetZeroCoordinate R n).toRingHom = Ideal.span {X 0} := by |
| 27 | rw [forgetZeroCoordinate, KillVariables.GradedHilbert.killVariables_kernel, Fin.range_succ, compl_compl, Set.image_singleton] |
| 28 | |
| 29 | theorem forgetZeroCoordinate_homogeneous {p : Hilbert.Polynomial.GradedHilbert.CoordinateRing R (n + 1)} {d : ℕ} |
| 30 | (hp : p.IsHomogeneous d) : (forgetZeroCoordinate R n p).IsHomogeneous d := |
| 31 | KillVariables.GradedHilbert.killVariables_homogeneous _ hp |
| 32 | |
| 33 | def forgetZeroCoordinateGraded : Hilbert.Polynomial.GradedHilbert.grading R (n + 1) →+*ᵍ Hilbert.Polynomial.GradedHilbert.grading R n where |
| 34 | __ := (forgetZeroCoordinate R n).toRingHom |
| 35 | map_mem := forgetZeroCoordinate_homogeneous R n |
| 36 | |
| 37 | variable {R n} |
| 38 | |
| 39 | def coordinateHyperplaneIdeal (I : HomogeneousIdeal (Hilbert.Polynomial.GradedHilbert.grading R (n + 1))) : |
| 40 | HomogeneousIdeal (Hilbert.Polynomial.GradedHilbert.grading R n) := I.map (forgetZeroCoordinateGraded R n) |
| 41 | |
| 42 | def coordinateHyperplaneMap (I : HomogeneousIdeal (Hilbert.Polynomial.GradedHilbert.grading R (n + 1))) : |
| 43 | Hilbert.Polynomial.GradedHilbert.CoordinateRing R (n + 1) →ₐ[R] Hilbert.Polynomial.GradedHilbert.CoordinateRing R n ⧸ (coordinateHyperplaneIdeal I).toIdeal := |
| 44 | (Ideal.Quotient.mkₐ R (coordinateHyperplaneIdeal I).toIdeal).comp (forgetZeroCoordinate R n) |
| 45 | |
| 46 | theorem coordinateHyperplaneMap_surjective (I : HomogeneousIdeal (Hilbert.Polynomial.GradedHilbert.grading R (n + 1))) : |
| 47 | Function.Surjective (coordinateHyperplaneMap I) := |
| 48 | (Ideal.Quotient.mk_surjective).comp (forgetZeroCoordinate_surjective R n) |
| 49 | |
| 50 | theorem coordinateHyperplaneMap_kernel (I : HomogeneousIdeal (Hilbert.Polynomial.GradedHilbert.grading R (n + 1))) : |
| 51 | RingHom.ker (coordinateHyperplaneMap I).toRingHom = |
| 52 | (Linear.FormQuotient.GradedHilbert.linearFormQuotientIdeal I (X 0) (isHomogeneous_X R 0)).toIdeal := by |
| 53 | change RingHom.ker ((Ideal.Quotient.mk (coordinateHyperplaneIdeal I).toIdeal).comp |
| 54 | (forgetZeroCoordinate R n).toRingHom) = I.toIdeal ⊔ Ideal.span {X 0} |
| 55 | rw [← RingHom.comap_ker, Ideal.mk_ker] |
| 56 | change (I.toIdeal.map (forgetZeroCoordinate R n).toRingHom).comap |
| 57 | (forgetZeroCoordinate R n).toRingHom = _ |
| 58 | rw [Ideal.comap_map_of_surjective (forgetZeroCoordinate R n).toRingHom |
| 59 | (forgetZeroCoordinate_surjective R n), |
| 60 | ← RingHom.ker_eq_comap_bot, forgetZeroCoordinate_kernel] |
| 61 | |
| 62 | def coordinateHyperplaneQuotientEquiv (I : HomogeneousIdeal (Hilbert.Polynomial.GradedHilbert.grading R (n + 1))) : |
| 63 | (Hilbert.Polynomial.GradedHilbert.CoordinateRing R (n + 1) ⧸ (Linear.FormQuotient.GradedHilbert.linearFormQuotientIdeal I (X 0) (isHomogeneous_X R 0)).toIdeal) ≃ₐ[R] |
| 64 | Hilbert.Polynomial.GradedHilbert.CoordinateRing R n ⧸ (coordinateHyperplaneIdeal I).toIdeal := |
| 65 | (Ideal.quotientEquivAlgOfEq R (coordinateHyperplaneMap_kernel I).symm).trans |
| 66 | (Ideal.quotientKerAlgEquivOfSurjective (coordinateHyperplaneMap_surjective I)) |
| 67 | |
| 68 | theorem coordinateHyperplaneQuotientEquiv_mk (I : HomogeneousIdeal (Hilbert.Polynomial.GradedHilbert.grading R (n + 1))) |
| 69 | (f : Hilbert.Polynomial.GradedHilbert.CoordinateRing R (n + 1)) : |
| 70 | coordinateHyperplaneQuotientEquiv I |
| 71 | (Ideal.Quotient.mk (Linear.FormQuotient.GradedHilbert.linearFormQuotientIdeal I (X 0) (isHomogeneous_X R 0)).toIdeal f) = |
| 72 | Ideal.Quotient.mk (coordinateHyperplaneIdeal I).toIdeal (forgetZeroCoordinate R n f) := rfl |
| 73 | |
| 74 | end |
| 75 | |
| 76 | end OAI.AlgebraicGeometry.HilbertScheme.Presentations.Coordinate.Hyperplane.GradedHilbert |