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.RegularSubopenLength |
| 2 | import OAI.NumberTheory.PadicHodge.IntegralComparison.Smooth.ClosedNeighborhood |
| 3 | import OAI.NumberTheory.PadicHodge.IntegralComparison.Smooth.RelativeRank |
| 4 | import OAI.NumberTheory.PadicHodge.IntegralComparison.Projective.RelativeDimension |
| 5 | |
| 6 | /-! # Closed Codimension -/ |
| 7 | |
| 8 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.Smooth.ClosedCodimension |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! Smooth closed immersions admit regular equations of the true |
| 13 | relative codimension on actual affine coordinate neighborhoods. -/ |
| 14 | |
| 15 | open _root_.CategoryTheory _root_.AlgebraicGeometry _root_.MvPolynomial |
| 16 | |
| 17 | set_option backward.isDefEq.respectTransparency false |
| 18 | |
| 19 | universe u |
| 20 | |
| 21 | variable {X Y S : Scheme.{u}} [IsAffine S] |
| 22 | (f : X ⟶ Y) [IsClosedImmersion f] (π : Y ⟶ S) (N g : ℕ) |
| 23 | [SmoothOfRelativeDimension N π] [SmoothOfRelativeDimension g (f ≫ π)] |
| 24 | |
| 25 | include π in |
| 26 | theorem exists_neighborhood (U : Y.Opens) (hU : IsAffineOpen U) |
| 27 | [IsNoetherianRing Γ(Y, U)] (x : X) (hx : f x ∈ U) : |
| 28 | ∃ (V : Y.Opens) (_hV : IsAffineOpen V), V ≤ U ∧ f x ∈ V ∧ |
| 29 | ∃ rs : List Γ(Y, V), RingHom.ker (f.app V).hom = Ideal.ofList rs ∧ |
| 30 | RingTheory.Sequence.IsRegular Γ(Y, V) rs ∧ rs.length = N - g := by |
| 31 | let := ClosedSections.algebra π U |
| 32 | have : Smooth π := SmoothOfRelativeDimension.smooth N π |
| 33 | have : Smooth (f ≫ π) := SmoothOfRelativeDimension.smooth g (f ≫ π) |
| 34 | have := ClosedSections.smooth_sections π U hU |
| 35 | have := ClosedSections.smooth_quotient f π U hU |
| 36 | let p₀ := hU.primeIdealOf ⟨f x, hx⟩ |
| 37 | have hp₀ : f.ker.ideal ⟨U, hU⟩ ≤ p₀.asIdeal := |
| 38 | ClosedNeighborhood.kernel_le_prime f U hU x hx |
| 39 | let p := (f.ker.ideal ⟨U, hU⟩).primeSpectrumQuotientOrderIsoZeroLocus.symm ⟨p₀, hp₀⟩ |
| 40 | have hp : p.comap (Ideal.Quotient.mk (f.ker.ideal ⟨U, hU⟩)) = p₀ := |
| 41 | congrArg Subtype.val |
| 42 | ((f.ker.ideal ⟨U, hU⟩).primeSpectrumQuotientOrderIsoZeroLocus.apply_symm_apply ⟨p₀, hp₀⟩) |
| 43 | obtain ⟨V, hV, hVU, hxV, rs, hI, hreg, hlen⟩ := |
| 44 | RegularSubopenLength.exists_regular_subopen (k := Γ(S, ⊤)) f.ker U hU p |
| 45 | rw [hp] at hxV |
| 46 | rw [hU.fromSpec_primeIdealOf] at hxV |
| 47 | rw [RelativeRank.sections_rank π N U hU, |
| 48 | RelativeRank.quotient_rank f π g U hU] at hlen |
| 49 | exact ⟨V, hV, hVU, hxV, rs, (f.ker_apply ⟨V, hV⟩).symm.trans hI, hreg, hlen⟩ |
| 50 | |
| 51 | variable {R : Type u} [CommRing R] [IsNoetherianRing R] |
| 52 | {σ : Type} [Fintype σ] |
| 53 | |
| 54 | attribute [local instance] MvPolynomial.gradedAlgebra |
| 55 | |
| 56 | theorem projective_neighborhood {X : Scheme.{u}} |
| 57 | (f : X ⟶ Proj (homogeneousSubmodule σ R)) [IsClosedImmersion f] (g : ℕ) |
| 58 | [SmoothOfRelativeDimension g (f ≫ AlgebraicGeometry.SheafCohomology.Projective.MvPolynomialClosure.MvPolynomial.homogeneousProjπ)] (x : X) : |
| 59 | ∃ (i : σ) (V : (Proj (homogeneousSubmodule σ R)).Opens) (_hV : IsAffineOpen V), |
| 60 | V ≤ AlgebraicGeometry.SheafCohomology.Projective.MvPolynomialClosure.MvPolynomial.coordinateOpen (R := R) i ∧ f x ∈ V ∧ |
| 61 | ∃ rs : List Γ(Proj (homogeneousSubmodule σ R), V), |
| 62 | RingHom.ker (f.app V).hom = Ideal.ofList rs ∧ |
| 63 | RingTheory.Sequence.IsRegular Γ(Proj (homogeneousSubmodule σ R), V) rs ∧ |
| 64 | rs.length = Fintype.card σ - 1 - g := by |
| 65 | have hx : f x ∈ ⨆ i : σ, AlgebraicGeometry.SheafCohomology.Projective.MvPolynomialClosure.MvPolynomial.coordinateOpen (R := R) i := by |
| 66 | rw [AlgebraicGeometry.SheafCohomology.Projective.MvPolynomialClosure.MvPolynomial.iSup_coordinateOpen_eq_top] |
| 67 | trivial |
| 68 | obtain ⟨i, hi⟩ := TopologicalSpace.Opens.mem_iSup.mp hx |
| 69 | let : SmoothOfRelativeDimension (Fintype.card σ - 1) |
| 70 | (AlgebraicGeometry.SheafCohomology.Projective.MvPolynomialClosure.MvPolynomial.homogeneousProjπ (R := R) (σ := σ)) := IntegralComparison.Projective.RelativeDimension.smooth |
| 71 | let : LocallyOfFiniteType (AlgebraicGeometry.SheafCohomology.Projective.MvPolynomialClosure.MvPolynomial.homogeneousProjπ (R := R) (σ := σ)) := |
| 72 | AlgebraicGeometry.SheafCohomology.Projective.MvPolynomialClosure.MvPolynomial.homogeneousProjπ_locallyOfFiniteType |
| 73 | let : IsLocallyNoetherian (Proj (homogeneousSubmodule σ R)) := |
| 74 | LocallyOfFiniteType.isLocallyNoetherian (AlgebraicGeometry.SheafCohomology.Projective.MvPolynomialClosure.MvPolynomial.homogeneousProjπ (R := R) (σ := σ)) |
| 75 | let : IsNoetherianRing Γ(Proj (homogeneousSubmodule σ R), AlgebraicGeometry.SheafCohomology.Projective.MvPolynomialClosure.MvPolynomial.coordinateOpen (R := R) i) := |
| 76 | IsLocallyNoetherian.component_noetherian ⟨_, AlgebraicGeometry.SheafCohomology.Projective.MvPolynomialClosure.MvPolynomial.coordinateOpen_isAffineOpen i⟩ |
| 77 | obtain ⟨V, hV, hVi, hxV, rs, hI, hreg, hlen⟩ := |
| 78 | exists_neighborhood f AlgebraicGeometry.SheafCohomology.Projective.MvPolynomialClosure.MvPolynomial.homogeneousProjπ (Fintype.card σ - 1) g |
| 79 | (AlgebraicGeometry.SheafCohomology.Projective.MvPolynomialClosure.MvPolynomial.coordinateOpen (R := R) i) (AlgebraicGeometry.SheafCohomology.Projective.MvPolynomialClosure.MvPolynomial.coordinateOpen_isAffineOpen i) x hi |
| 80 | exact ⟨i, V, hV, hVi, hxV, rs, hI, hreg, hlen⟩ |
| 81 | |
| 82 | end |
| 83 | |
| 84 | end OAI.NumberTheory.PadicHodge.IntegralComparison.Smooth.ClosedCodimension |