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.IntersectionTheory.ProjectionFormula.Finite.ProjectivePrimePrincipal |
| 2 | import OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Smooth.StalkDimension |
| 3 | import OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Stalk.PrimeQuotient |
| 4 | import OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Divisor.Stalk |
| 5 | |
| 6 | /-! # Local Equations -/ |
| 7 | |
| 8 | namespace OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Smooth.LocalEquations |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! Every divisor support on a smooth projective scheme has an actual |
| 13 | nonzero principal defining ideal at every point, in every dimension. -/ |
| 14 | |
| 15 | set_option backward.isDefEq.respectTransparency false |
| 16 | |
| 17 | open _root_.CategoryTheory _root_.AlgebraicGeometry _root_.TopologicalSpace |
| 18 | |
| 19 | open OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Local.Principal OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Stalk.PrimeQuotient |
| 20 | |
| 21 | variable (X : Foundations.Scheme.SmoothProjective.SmoothProjectivePresentation) (m : ℕ) [SmoothOfRelativeDimension m X.structureMap] |
| 22 | |
| 23 | include m |
| 24 | |
| 25 | theorem stalk_factorial (x : X.carrier) : |
| 26 | UniqueFactorizationMonoid (X.carrier.presheaf.stalk x) := by |
| 27 | let R := X.carrier.presheaf.stalk x |
| 28 | let : IsDomain R := X.stalk_isDomain x |
| 29 | let : IsIntegrallyClosed R := Normal.stalk_integrallyClosed X.structureMap x |
| 30 | apply UniqueFactorizationMonoid.of_forall_isPrincipal_of_height_eq_one |
| 31 | intro p hp hheight |
| 32 | let : HasProjectiveDimensionLE (ModuleCat.of R (R ⧸ p)) m := |
| 33 | StalkDimension.stalk_bound X.structureMap m x _ |
| 34 | exact Finite.ProjectivePrimePrincipal.principal R p hheight m |
| 35 | |
| 36 | theorem kernel_principal (A : X.DimensionCycleSupport 1) (x : X.carrier) |
| 37 | (hx : x ∈ (A.val : Set X.carrier)) : |
| 38 | (RingHom.ker (Local.Principal.supportStalkMap X.carrier A.val x hx).hom).IsPrincipal := by |
| 39 | let R := X.carrier.presheaf.stalk x |
| 40 | let : IsDomain R := X.stalk_isDomain x |
| 41 | let : UniqueFactorizationMonoid R := stalk_factorial X m x |
| 42 | let p := Stalk.PrimeQuotient.kernelPrime X.carrier A.val x hx |
| 43 | apply UniqueFactorizationMonoid.isPrincipal_of_height_eq_one (p := p.asIdeal) |
| 44 | rw [Stalk.Localization.height_eq_coheight_image, Stalk.PrimeQuotient.kernelPrime_image] |
| 45 | exact CurveSupports.coheight_one X m A |
| 46 | |
| 47 | theorem exists_equation (A : X.DimensionCycleSupport 1) (x : X.carrier) |
| 48 | (hx : x ∈ (A.val : Set X.carrier)) : |
| 49 | ∃ r : X.carrier.presheaf.stalk x, r ≠ 0 ∧ |
| 50 | RingHom.ker (Local.Principal.supportStalkMap X.carrier A.val x hx).hom = Ideal.span {r} := by |
| 51 | obtain ⟨r, hr⟩ := (kernel_principal X m A x hx).principal |
| 52 | refine ⟨r, ?_, hr⟩ |
| 53 | intro hzero |
| 54 | apply Divisor.Stalk.supportStalkMap_ker_ne_bot X m 1 (by decide) A x hx |
| 55 | rw [hr, hzero, Submodule.span_zero_singleton] |
| 56 | |
| 57 | end |
| 58 | |
| 59 | end OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Smooth.LocalEquations |