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.ClosedCodimension |
| 2 | |
| 3 | /-! # Closed Dimension -/ |
| 4 | |
| 5 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.Smooth.ClosedDimension |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! A nonempty smooth closed subscheme has relative dimension at most |
| 10 | that of its smooth ambient scheme, by the actual conormal exact sequence. -/ |
| 11 | |
| 12 | open _root_.CategoryTheory _root_.AlgebraicGeometry _root_.MvPolynomial |
| 13 | |
| 14 | set_option backward.isDefEq.respectTransparency false |
| 15 | |
| 16 | universe u |
| 17 | |
| 18 | variable {X Y S : Scheme.{u}} [IsAffine S] |
| 19 | (f : X ⟶ Y) [IsClosedImmersion f] (π : Y ⟶ S) (N g : ℕ) |
| 20 | [SmoothOfRelativeDimension N π] [SmoothOfRelativeDimension g (f ≫ π)] |
| 21 | |
| 22 | include π in |
| 23 | theorem dimension_le (U : Y.Opens) (hU : IsAffineOpen U) |
| 24 | [IsNoetherianRing Γ(Y, U)] (x : X) (hx : f x ∈ U) : g ≤ N := by |
| 25 | let := ClosedSections.algebra π U |
| 26 | have : Smooth π := SmoothOfRelativeDimension.smooth N π |
| 27 | have : Smooth (f ≫ π) := SmoothOfRelativeDimension.smooth g (f ≫ π) |
| 28 | have := ClosedSections.smooth_sections π U hU |
| 29 | have := ClosedSections.smooth_quotient f π U hU |
| 30 | let p₀ := hU.primeIdealOf ⟨f x, hx⟩ |
| 31 | have hp₀ : f.ker.ideal ⟨U, hU⟩ ≤ p₀.asIdeal := |
| 32 | ClosedNeighborhood.kernel_le_prime f U hU x hx |
| 33 | let p := (f.ker.ideal ⟨U, hU⟩).primeSpectrumQuotientOrderIsoZeroLocus.symm ⟨p₀, hp₀⟩ |
| 34 | have hr := ConormalRank.quotient_rank (k := Γ(S, ⊤)) (f.ker.ideal ⟨U, hU⟩) p |
| 35 | rw [RelativeRank.sections_rank π N U hU, |
| 36 | RelativeRank.quotient_rank f π g U hU] at hr |
| 37 | omega |
| 38 | |
| 39 | variable {R : Type u} [CommRing R] [IsNoetherianRing R] |
| 40 | {σ : Type} [Fintype σ] |
| 41 | |
| 42 | attribute [local instance] MvPolynomial.gradedAlgebra |
| 43 | |
| 44 | theorem projective {X : Scheme.{u}} [Nonempty X] |
| 45 | (f : X ⟶ Proj (homogeneousSubmodule σ R)) [IsClosedImmersion f] (g : ℕ) |
| 46 | [SmoothOfRelativeDimension g (f ≫ AlgebraicGeometry.SheafCohomology.Projective.MvPolynomialClosure.MvPolynomial.homogeneousProjπ)] : g ≤ Fintype.card σ - 1 := by |
| 47 | let x : X := Classical.choice inferInstance |
| 48 | have hx : f x ∈ ⨆ i : σ, AlgebraicGeometry.SheafCohomology.Projective.MvPolynomialClosure.MvPolynomial.coordinateOpen (R := R) i := by |
| 49 | rw [AlgebraicGeometry.SheafCohomology.Projective.MvPolynomialClosure.MvPolynomial.iSup_coordinateOpen_eq_top] |
| 50 | trivial |
| 51 | obtain ⟨i, hi⟩ := TopologicalSpace.Opens.mem_iSup.mp hx |
| 52 | let : SmoothOfRelativeDimension (Fintype.card σ - 1) |
| 53 | (AlgebraicGeometry.SheafCohomology.Projective.MvPolynomialClosure.MvPolynomial.homogeneousProjπ (R := R) (σ := σ)) := IntegralComparison.Projective.RelativeDimension.smooth |
| 54 | let : LocallyOfFiniteType (AlgebraicGeometry.SheafCohomology.Projective.MvPolynomialClosure.MvPolynomial.homogeneousProjπ (R := R) (σ := σ)) := |
| 55 | AlgebraicGeometry.SheafCohomology.Projective.MvPolynomialClosure.MvPolynomial.homogeneousProjπ_locallyOfFiniteType |
| 56 | let : IsLocallyNoetherian (Proj (homogeneousSubmodule σ R)) := |
| 57 | LocallyOfFiniteType.isLocallyNoetherian (AlgebraicGeometry.SheafCohomology.Projective.MvPolynomialClosure.MvPolynomial.homogeneousProjπ (R := R) (σ := σ)) |
| 58 | let : IsNoetherianRing Γ(Proj (homogeneousSubmodule σ R), AlgebraicGeometry.SheafCohomology.Projective.MvPolynomialClosure.MvPolynomial.coordinateOpen (R := R) i) := |
| 59 | IsLocallyNoetherian.component_noetherian ⟨_, AlgebraicGeometry.SheafCohomology.Projective.MvPolynomialClosure.MvPolynomial.coordinateOpen_isAffineOpen i⟩ |
| 60 | exact dimension_le f AlgebraicGeometry.SheafCohomology.Projective.MvPolynomialClosure.MvPolynomial.homogeneousProjπ (Fintype.card σ - 1) g |
| 61 | (AlgebraicGeometry.SheafCohomology.Projective.MvPolynomialClosure.MvPolynomial.coordinateOpen (R := R) i) (AlgebraicGeometry.SheafCohomology.Projective.MvPolynomialClosure.MvPolynomial.coordinateOpen_isAffineOpen i) x hi |
| 62 | |
| 63 | end |
| 64 | |
| 65 | end OAI.NumberTheory.PadicHodge.IntegralComparison.Smooth.ClosedDimension |