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.Divisors.LineBundles.Polynomial.Projection |
| 2 | import OAI.AlgebraicGeometry.Divisors.LineBundles.Integral.FiberGenericPoint |
| 3 | import Mathlib.AlgebraicGeometry.AffineSpace |
| 4 | import Mathlib.AlgebraicGeometry.Morphisms.Smooth |
| 5 | import Mathlib.Algebra.MvPolynomial.Equiv |
| 6 | |
| 7 | /-! # Affine Space -/ |
| 8 | |
| 9 | namespace OAI.AlgebraicGeometry.Divisors.LineBundles.Polynomial.AffineSpace.BundleCycles |
| 10 | |
| 11 | noncomputable section |
| 12 | |
| 13 | /-! # LineBundleCycles: the ordinary polynomial spectrum is the actual relative affine line -/ |
| 14 | |
| 15 | open _root_.AlgebraicGeometry _root_.CategoryTheory |
| 16 | |
| 17 | variable (R : Type) [CommRing R] |
| 18 | |
| 19 | def polynomialAffineSpaceEquiv : Spec (.of (Polynomial R)) ≅ AffineSpace PUnit (Spec (.of R)) := |
| 20 | Scheme.Spec.mapIso (MvPolynomial.uniqueAlgEquiv R PUnit).toRingEquiv.toCommRingCatIso.op ≪≫ |
| 21 | (AffineSpace.SpecIso PUnit (.of R)).symm |
| 22 | |
| 23 | theorem polynomialAffineSpaceEquiv_over : |
| 24 | (polynomialAffineSpaceEquiv R).hom ≫ (AffineSpace PUnit (Spec (.of R)) ↘ Spec (.of R)) = |
| 25 | Projection.BundleCycles.polynomialProjection R := by |
| 26 | have h : CommRingCat.ofHom (MvPolynomial.C : R →+* MvPolynomial PUnit R) ≫ |
| 27 | (MvPolynomial.uniqueAlgEquiv R PUnit).toRingEquiv.toCommRingCatIso.hom = |
| 28 | CommRingCat.ofHom (algebraMap R (Polynomial R)) := by |
| 29 | apply CommRingCat.hom_ext |
| 30 | apply RingHom.ext |
| 31 | intro a |
| 32 | exact (MvPolynomial.uniqueAlgEquiv R PUnit).commutes a |
| 33 | change (Spec.map (MvPolynomial.uniqueAlgEquiv R PUnit).toRingEquiv.toCommRingCatIso.hom ≫ |
| 34 | (AffineSpace.SpecIso PUnit (.of R)).inv) ≫ _ = _ |
| 35 | rw [Category.assoc, AffineSpace.SpecIso_inv_over, ← Spec.map_comp, h] |
| 36 | rfl |
| 37 | |
| 38 | instance polynomialProjection_smooth : Smooth (Projection.BundleCycles.polynomialProjection R) := |
| 39 | HasRingHomProperty.Spec_iff.mpr (RingHom.smooth_algebraMap.mpr |
| 40 | (Algebra.Smooth.mk inferInstance inferInstance)) |
| 41 | |
| 42 | instance polynomialProjection_geometricallyIntegral : GeometricallyIntegral (Projection.BundleCycles.polynomialProjection R) := by |
| 43 | constructor |
| 44 | intro K hK y Z a b h |
| 45 | let e := polynomialAffineSpaceEquiv R |
| 46 | apply (show GeometricallyIntegral (AffineSpace PUnit (Spec (.of R)) ↘ Spec (.of R)) from |
| 47 | inferInstance).geometrically_isIntegral y (a ≫ e.hom) b |
| 48 | apply h.of_iso (.refl _) e (.refl _) (.refl _) |
| 49 | · simp only [Iso.refl_hom, Category.id_comp] |
| 50 | · simp only [Iso.refl_hom, Category.comp_id, Category.id_comp] |
| 51 | · exact (Category.comp_id _).trans (polynomialAffineSpaceEquiv_over R).symm |
| 52 | · simp only [Iso.refl_hom, Category.comp_id, Category.id_comp] |
| 53 | |
| 54 | theorem polynomialPrimePoint_eq_fiberGeneric (p : Spec (.of R)) : |
| 55 | Projection.BundleCycles.polynomialPrimePoint R p = Integral.FiberGenericPoint.BundleCycles.integralFiberGenericPoint (Projection.BundleCycles.polynomialProjection R) p := by |
| 56 | apply Integral.FiberGenericPoint.BundleCycles.integralFiberGenericPoint_unique _ _ _ (Projection.BundleCycles.polynomialPrimePoint_projection R p) |
| 57 | intro P hP |
| 58 | exact (congrArg (Projection.BundleCycles.polynomialPrimePoint R) hP) ▸ Projection.BundleCycles.polynomialPrimePoint_specializes R P |
| 59 | |
| 60 | end |
| 61 | |
| 62 | end OAI.AlgebraicGeometry.Divisors.LineBundles.Polynomial.AffineSpace.BundleCycles |