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 Mathlib.RingTheory.Etale.Kaehler |
| 3 | import Mathlib.RingTheory.Spectrum.Prime.FreeLocus |
| 4 | |
| 5 | /-! # Relative Rank -/ |
| 6 | |
| 7 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.Smooth.RelativeRank |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! Smooth relative dimension computes the rank of the actual relative |
| 12 | differential module on affine sections and closed-subscheme quotients. -/ |
| 13 | |
| 14 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 15 | |
| 16 | set_option backward.isDefEq.respectTransparency false |
| 17 | |
| 18 | universe u |
| 19 | |
| 20 | theorem locally_standard_smooth_rank (R A : Type u) [CommRing R] [CommRing A] [Algebra R A] |
| 21 | [Algebra.Smooth R A] (n : ℕ) |
| 22 | (h : RingHom.Locally (RingHom.IsStandardSmoothOfRelativeDimension n) (algebraMap R A)) |
| 23 | (p : PrimeSpectrum A) : Module.rankAtStalk Ω[A⁄R] p = n := by |
| 24 | classical |
| 25 | obtain ⟨s, hs, hloc⟩ := h |
| 26 | have hex : ∃ r ∈ s, r ∉ p.asIdeal := by |
| 27 | by_contra hn |
| 28 | have hle : Ideal.span s ≤ p.asIdeal := Ideal.span_le.mpr (by |
| 29 | intro r hr |
| 30 | by_contra hnr |
| 31 | exact hn ⟨r, hr, hnr⟩) |
| 32 | rw [hs] at hle |
| 33 | exact p.isPrime.ne_top (top_le_iff.mp hle) |
| 34 | obtain ⟨r, hr, hpr⟩ := hex |
| 35 | let T := Localization.Away r |
| 36 | have hst : Algebra.IsStandardSmoothOfRelativeDimension n R T := by |
| 37 | have H := hloc r hr |
| 38 | rw [← IsScalarTower.algebraMap_eq R A T, |
| 39 | RingHom.isStandardSmoothOfRelativeDimension_algebraMap] at H |
| 40 | exact H |
| 41 | let := hst |
| 42 | have hmem : p ∈ Set.range (PrimeSpectrum.comap (algebraMap A T)) := by |
| 43 | rw [PrimeSpectrum.localization_away_comap_range T r] |
| 44 | exact hpr |
| 45 | obtain ⟨q, hq⟩ := hmem |
| 46 | let : Nontrivial T := q.nontrivial |
| 47 | let : Algebra.IsStandardSmooth R T := Algebra.IsStandardSmoothOfRelativeDimension.isStandardSmooth n |
| 48 | let : Algebra.FormallyEtale A T := Algebra.FormallyEtale.of_isLocalization (Submonoid.powers r) |
| 49 | have H := Module.rankAtStalk_isBaseChange (KaehlerDifferential.isBaseChange_of_formallyEtale R A T) q |
| 50 | rw [hq] at H |
| 51 | have hn : Module.finrank T Ω[T⁄R] = n := Module.finrank_eq_of_rank_eq |
| 52 | (Algebra.IsStandardSmoothOfRelativeDimension.rank_kaehlerDifferential (R := R) (S := T) n) |
| 53 | exact H.symm.trans ((congrFun (Module.rankAtStalk_eq_finrank_of_free (R := T) (M := Ω[T⁄R])) q).trans hn) |
| 54 | |
| 55 | theorem locally_standard_smooth_of_equiv {R A B : Type u} |
| 56 | [CommRing R] [CommRing A] [CommRing B] [Algebra R A] [Algebra R B] |
| 57 | (n : ℕ) (e : A ≃ₐ[R] B) |
| 58 | (h : RingHom.Locally (RingHom.IsStandardSmoothOfRelativeDimension n) (algebraMap R A)) : |
| 59 | RingHom.Locally (RingHom.IsStandardSmoothOfRelativeDimension n) (algebraMap R B) := by |
| 60 | have H := (RingHom.locally_respectsIso |
| 61 | RingHom.isStandardSmoothOfRelativeDimension_respectsIso).left (algebraMap R A) e.toRingEquiv h |
| 62 | have he : e.toRingEquiv.toRingHom.comp (algebraMap R A) = algebraMap R B := by |
| 63 | ext r |
| 64 | exact e.commutes r |
| 65 | exact he ▸ H |
| 66 | |
| 67 | variable {X Y S : Scheme.{u}} [IsAffine S] |
| 68 | |
| 69 | theorem sections_locally_standard_smooth (π : Y ⟶ S) (n : ℕ) |
| 70 | [SmoothOfRelativeDimension n π] (U : Y.Opens) (hU : IsAffineOpen U) : |
| 71 | letI := ClosedSections.algebra π U |
| 72 | RingHom.Locally (RingHom.IsStandardSmoothOfRelativeDimension n) |
| 73 | (algebraMap Γ(S, ⊤) Γ(Y, U)) := by |
| 74 | let := ClosedSections.algebra π U |
| 75 | exact HasRingHomProperty.appLE (@SmoothOfRelativeDimension n) π inferInstance |
| 76 | ⟨⊤, isAffineOpen_top S⟩ ⟨U, hU⟩ le_top |
| 77 | |
| 78 | theorem sections_rank (π : Y ⟶ S) (n : ℕ) [SmoothOfRelativeDimension n π] |
| 79 | (U : Y.Opens) (hU : IsAffineOpen U) (p : PrimeSpectrum Γ(Y, U)) : |
| 80 | letI := ClosedSections.algebra π U |
| 81 | Module.rankAtStalk Ω[Γ(Y, U)⁄Γ(S, ⊤)] p = n := by |
| 82 | let := ClosedSections.algebra π U |
| 83 | have : Smooth π := SmoothOfRelativeDimension.smooth n π |
| 84 | have := ClosedSections.smooth_sections π U hU |
| 85 | exact locally_standard_smooth_rank _ _ n (sections_locally_standard_smooth π n U hU) p |
| 86 | |
| 87 | theorem quotient_rank (f : X ⟶ Y) [IsClosedImmersion f] (π : Y ⟶ S) (n : ℕ) |
| 88 | [SmoothOfRelativeDimension n (f ≫ π)] (U : Y.Opens) (hU : IsAffineOpen U) |
| 89 | (p : PrimeSpectrum (Γ(Y, U) ⧸ f.ker.ideal ⟨U, hU⟩)) : |
| 90 | letI := ClosedSections.algebra π U |
| 91 | Module.rankAtStalk Ω[Γ(Y, U) ⧸ f.ker.ideal ⟨U, hU⟩⁄Γ(S, ⊤)] p = n := by |
| 92 | let := ClosedSections.algebra π U |
| 93 | let := ClosedSections.algebra (f ≫ π) (f ⁻¹ᵁ U) |
| 94 | have : Smooth (f ≫ π) := SmoothOfRelativeDimension.smooth n (f ≫ π) |
| 95 | have := ClosedSections.smooth_quotient f π U hU |
| 96 | have h := locally_standard_smooth_of_equiv n |
| 97 | (ClosedSections.quotientEquiv f π U hU).symm |
| 98 | (sections_locally_standard_smooth (f ≫ π) n (f ⁻¹ᵁ U) (hU.preimage f)) |
| 99 | exact locally_standard_smooth_rank _ _ n h p |
| 100 | |
| 101 | end |
| 102 | |
| 103 | end OAI.NumberTheory.PadicHodge.IntegralComparison.Smooth.RelativeRank |