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.NumberTheory.PadicHodge.IntegralComparison.Smooth.ClosedSections |
| 2 | import OAI.NumberTheory.PadicHodge.IntegralComparison.Projective.SpaceSmooth |
| 3 | import Mathlib.AlgebraicGeometry.Noetherian |
| 4 | |
| 5 | /-! # Closed Neighborhood -/ |
| 6 | |
| 7 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.Smooth.ClosedNeighborhood |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! Every point of a smooth closed subscheme of projective space has an |
| 12 | actual affine coordinate subneighborhood with regular defining equations. -/ |
| 13 | |
| 14 | open _root_.CategoryTheory _root_.AlgebraicGeometry _root_.MvPolynomial |
| 15 | |
| 16 | set_option backward.isDefEq.respectTransparency false |
| 17 | |
| 18 | universe u |
| 19 | |
| 20 | variable {X Y : Scheme.{u}} (f : X ⟶ Y) [IsClosedImmersion f] |
| 21 | (U : Y.Opens) (hU : IsAffineOpen U) (x : X) (hx : f x ∈ U) |
| 22 | |
| 23 | theorem kernel_le_prime : |
| 24 | f.ker.ideal ⟨U, hU⟩ ≤ (hU.primeIdealOf ⟨f x, hx⟩).asIdeal := by |
| 25 | let q := (hU.preimage f).primeIdealOf ⟨x, hx⟩ |
| 26 | have he : q.comap (f.app U).hom = hU.primeIdealOf ⟨f x, hx⟩ := by |
| 27 | simpa only [Scheme.Hom.appLE_eq_app] using |
| 28 | IsAffineOpen.comap_primeIdealOf_appLE U hU (f ⁻¹ᵁ U) (hU.preimage f) le_rfl hx |
| 29 | rw [f.ker_apply, ← congrArg PrimeSpectrum.asIdeal he] |
| 30 | intro a ha |
| 31 | change f.app U a ∈ q.asIdeal |
| 32 | rw [RingHom.mem_ker.mp ha] |
| 33 | exact q.asIdeal.zero_mem |
| 34 | |
| 35 | variable {S : Scheme.{u}} [IsAffine S] (π : Y ⟶ S) [Smooth π] [Smooth (f ≫ π)] |
| 36 | |
| 37 | include hU hx π in |
| 38 | theorem exists_neighborhood [IsNoetherianRing Γ(Y, U)] : |
| 39 | ∃ (V : Y.Opens) (_hV : IsAffineOpen V), V ≤ U ∧ f x ∈ V ∧ |
| 40 | ∃ rs : List Γ(Y, V), RingHom.ker (f.app V).hom = Ideal.ofList rs ∧ |
| 41 | RingTheory.Sequence.IsRegular Γ(Y, V) rs := by |
| 42 | obtain ⟨V, hV, hVU, hpV, rs, hI, hreg⟩ := |
| 43 | ClosedSections.exists_regular_subopen f π U hU (hU.primeIdealOf ⟨f x, hx⟩) |
| 44 | (kernel_le_prime f U hU x hx) |
| 45 | rw [hU.fromSpec_primeIdealOf] at hpV |
| 46 | exact ⟨V, hV, hVU, hpV, rs, hI, hreg⟩ |
| 47 | |
| 48 | variable {R : Type u} [CommRing R] [IsNoetherianRing R] |
| 49 | {σ : Type} [Fintype σ] |
| 50 | |
| 51 | attribute [local instance] MvPolynomial.gradedAlgebra |
| 52 | |
| 53 | theorem projective_neighborhood {X : Scheme.{u}} |
| 54 | (f : X ⟶ Proj (homogeneousSubmodule σ R)) [IsClosedImmersion f] |
| 55 | [Smooth (f ≫ OAI.AlgebraicGeometry.SheafCohomology.Projective.MvPolynomialClosure.MvPolynomial.homogeneousProjπ)] (x : X) : |
| 56 | ∃ (i : σ) (V : (Proj (homogeneousSubmodule σ R)).Opens) (_hV : IsAffineOpen V), |
| 57 | V ≤ OAI.AlgebraicGeometry.SheafCohomology.Projective.MvPolynomialClosure.MvPolynomial.coordinateOpen (R := R) i ∧ f x ∈ V ∧ |
| 58 | ∃ rs : List Γ(Proj (homogeneousSubmodule σ R), V), |
| 59 | RingHom.ker (f.app V).hom = Ideal.ofList rs ∧ |
| 60 | RingTheory.Sequence.IsRegular Γ(Proj (homogeneousSubmodule σ R), V) rs := by |
| 61 | have hx : f x ∈ ⨆ i : σ, OAI.AlgebraicGeometry.SheafCohomology.Projective.MvPolynomialClosure.MvPolynomial.coordinateOpen (R := R) i := by |
| 62 | rw [OAI.AlgebraicGeometry.SheafCohomology.Projective.MvPolynomialClosure.MvPolynomial.iSup_coordinateOpen_eq_top] |
| 63 | trivial |
| 64 | obtain ⟨i, hi⟩ := TopologicalSpace.Opens.mem_iSup.mp hx |
| 65 | let : Smooth (OAI.AlgebraicGeometry.SheafCohomology.Projective.MvPolynomialClosure.MvPolynomial.homogeneousProjπ (R := R) (σ := σ)) := IntegralComparison.Projective.SpaceSmooth.smooth |
| 66 | let : LocallyOfFiniteType (OAI.AlgebraicGeometry.SheafCohomology.Projective.MvPolynomialClosure.MvPolynomial.homogeneousProjπ (R := R) (σ := σ)) := |
| 67 | OAI.AlgebraicGeometry.SheafCohomology.Projective.MvPolynomialClosure.MvPolynomial.homogeneousProjπ_locallyOfFiniteType |
| 68 | let : IsLocallyNoetherian (Proj (homogeneousSubmodule σ R)) := |
| 69 | LocallyOfFiniteType.isLocallyNoetherian (OAI.AlgebraicGeometry.SheafCohomology.Projective.MvPolynomialClosure.MvPolynomial.homogeneousProjπ (R := R) (σ := σ)) |
| 70 | let : IsNoetherianRing Γ(Proj (homogeneousSubmodule σ R), OAI.AlgebraicGeometry.SheafCohomology.Projective.MvPolynomialClosure.MvPolynomial.coordinateOpen (R := R) i) := |
| 71 | IsLocallyNoetherian.component_noetherian ⟨_, OAI.AlgebraicGeometry.SheafCohomology.Projective.MvPolynomialClosure.MvPolynomial.coordinateOpen_isAffineOpen i⟩ |
| 72 | obtain ⟨V, hV, hVi, hxV, rs, hI, hreg⟩ := |
| 73 | exists_neighborhood f (OAI.AlgebraicGeometry.SheafCohomology.Projective.MvPolynomialClosure.MvPolynomial.coordinateOpen (R := R) i) (OAI.AlgebraicGeometry.SheafCohomology.Projective.MvPolynomialClosure.MvPolynomial.coordinateOpen_isAffineOpen i) |
| 74 | x hi OAI.AlgebraicGeometry.SheafCohomology.Projective.MvPolynomialClosure.MvPolynomial.homogeneousProjπ |
| 75 | exact ⟨i, V, hV, hVi, hxV, rs, hI, hreg⟩ |
| 76 | |
| 77 | end |
| 78 | |
| 79 | end OAI.NumberTheory.PadicHodge.IntegralComparison.Smooth.ClosedNeighborhood |