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.AbelianModuli.HilbertConstruction.Smooth.FieldEtaleCoordinates |
| 2 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Rational.StalkScalarResidue |
| 3 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Polynomial.RationalRetractionParameters |
| 4 | import Mathlib.RingTheory.Smooth.Flat |
| 5 | |
| 6 | /-! # Point Stalk Regular Parameters -/ |
| 7 | |
| 8 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Rational.PointStalkRegularParameters |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! The actual stalk at a rational point of a smooth g-dimensional field scheme admits a regular sequence of g generators for its maximal ideal. The affine etale chart, rational retraction, and regular sequence are all constructed from the geometric input. -/ |
| 13 | open _root_.CategoryTheory _root_.AlgebraicGeometry IsLocalRing |
| 14 | universe u |
| 15 | set_option backward.isDefEq.respectTransparency false |
| 16 | set_option backward.isDefEq.respectTransparency.types false |
| 17 | |
| 18 | theorem rationalPoint_stalk_regular_parameters |
| 19 | {K : Type u} [Field K] {X : Scheme.{u}} (p : X ⟶ Spec (.of K)) |
| 20 | (g : ℕ) [SmoothOfRelativeDimension g p] |
| 21 | (s : Spec (.of K) ⟶ X) (hs : s ≫ p = 𝟙 _) : |
| 22 | ∃ rs : List (X.presheaf.stalk (s (IsLocalRing.closedPoint K))), |
| 23 | Regular.SequenceBasic.RingTheory.Sequence.IsRegular (X.presheaf.stalk (s (IsLocalRing.closedPoint K))) rs ∧ |
| 24 | Regular.SequenceBasic.Ideal.ofList rs = maximalIdeal (X.presheaf.stalk (s (IsLocalRing.closedPoint K))) ∧ |
| 25 | rs.length = g := by |
| 26 | let x := s (IsLocalRing.closedPoint K) |
| 27 | obtain ⟨V, hV, hx, ι, hι, φ, hcard, het, hcoeff⟩ := |
| 28 | HilbertConstruction.Smooth.FieldEtaleCoordinates.smoothField_exists_affine_etale_coordinates p g x |
| 29 | let : Finite ι := hι |
| 30 | let P := MvPolynomial ι K |
| 31 | let A := Γ(X, V) |
| 32 | let O := X.presheaf.stalk x |
| 33 | let r : A →+* O := (X.presheaf.germ V x hx).hom |
| 34 | let : Algebra P A := φ.toAlgebra |
| 35 | let : Algebra A O := r.toAlgebra |
| 36 | let : Algebra P O := (r.comp φ).toAlgebra |
| 37 | let : IsScalarTower P A O := IsScalarTower.of_algebraMap_eq' rfl |
| 38 | let M := (hV.primeIdealOf ⟨x, hx⟩).asIdeal.primeCompl |
| 39 | have : IsLocalization M O := hV.isLocalization_stalk ⟨x, hx⟩ |
| 40 | have : Algebra.Etale P A := het |
| 41 | have : Module.Flat P A := inferInstance |
| 42 | have : Module.Flat A O := IsLocalization.flat O M |
| 43 | have : Module.Flat P O := Module.Flat.trans P A O |
| 44 | have : Algebra.EssFiniteType A O := Algebra.EssFiniteType.of_isLocalization O M |
| 45 | have : Algebra.EssFiniteType P O := Algebra.EssFiniteType.comp P A O |
| 46 | have : Algebra.FormallyUnramified A O := Algebra.FormallyUnramified.of_isLocalization M |
| 47 | have : Algebra.FormallyUnramified P O := Algebra.FormallyUnramified.comp P A O |
| 48 | let e := PointResidue.rationalPointResidueIso p s hs |
| 49 | let ε : O →+* K := (X.residue x ≫ e.hom).hom |
| 50 | have hsplit : (ε.comp (algebraMap P O)).comp MvPolynomial.C = RingHom.id K := by |
| 51 | ext k |
| 52 | change e.hom (X.residue x (X.presheaf.germ V x hx (φ (MvPolynomial.C k)))) = k |
| 53 | rw [show φ (MvPolynomial.C k) = |
| 54 | X.presheaf.map V.leTop.op (p.appTop ((Scheme.ΓSpecIso (.of K)).inv k)) from |
| 55 | RingHom.congr_fun hcoeff k] |
| 56 | rw [X.presheaf.germ_res_apply V.leTop x hx] |
| 57 | have h := congrArg (fun f : CommRingCat.of K ⟶ CommRingCat.of K => f k) |
| 58 | (StalkScalarResidue.rationalStalkResidueCoefficient_comp_residueIso p s hs) |
| 59 | exact h |
| 60 | obtain ⟨rs, hreg, hgen, hlen⟩ := |
| 61 | Polynomial.RationalRetractionParameters.polynomial_flat_unramified_retraction_regular_parameters O ε hsplit |
| 62 | exact ⟨rs, hreg, hgen, hlen.trans hcard⟩ |
| 63 | |
| 64 | end |
| 65 | |
| 66 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Rational.PointStalkRegularParameters |