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.PELModuli.IntegralModel.SmoothEtaleDifferentials |
| 2 | import Mathlib.RingTheory.Smooth.StandardSmoothOfFree |
| 3 | |
| 4 | /-! # Differential Basis Neighborhood -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.PELModuli.IntegralModel.DifferentialBasisNeighborhood |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! A flat finitely presented module of differentials has a local |
| 11 | basis made from differentials of actual elements of the original algebra. -/ |
| 12 | |
| 13 | open TensorProduct KaehlerDifferential _root_.Module |
| 14 | |
| 15 | theorem exists_differential_basis_neighborhood |
| 16 | (R A : Type) [CommRing R] [CommRing A] [Algebra R A] |
| 17 | [Algebra.FinitePresentation R A] [Module.Flat A Ω[A⁄R]] |
| 18 | (p : Ideal A) [p.IsPrime] : |
| 19 | ∃ g : A, g ∉ p ∧ ∃ (ι : Type) (_ : Finite ι) (a : ι → A) |
| 20 | (b : Basis ι (Localization.Away g) Ω[Localization.Away g⁄R]), |
| 21 | ∀ i, b i = D R (Localization.Away g) (algebraMap A (Localization.Away g) (a i)) := by |
| 22 | let Ap := Localization.AtPrime p |
| 23 | have : Algebra.FormallyEtale A Ap := Algebra.FormallyEtale.of_isLocalization p.primeCompl |
| 24 | have : Module.Flat Ap Ω[Ap⁄R] := Module.Flat.of_linearEquiv |
| 25 | (tensorKaehlerEquivOfFormallyEtale R A Ap).symm |
| 26 | have : Module.FinitePresentation Ap Ω[Ap⁄R] := Module.FinitePresentation.of_equiv |
| 27 | (tensorKaehlerEquivOfFormallyEtale R A Ap) |
| 28 | obtain ⟨ι, a, b, hb⟩ := Module.exists_basis_of_span_of_flat _ |
| 29 | (span_range_map_derivation_of_isLocalization R A Ap p.primeCompl) |
| 30 | let e : (ι →₀ A) →ₗ[A] Ω[A⁄R] := Finsupp.linearCombination A fun i => D R A (a i) |
| 31 | let l₁ : (ι →₀ A) →ₗ[A] (ι →₀ Ap) := |
| 32 | Finsupp.mapRange.linearMap (Algebra.linearMap A Ap) |
| 33 | let l₂ : Ω[A⁄R] →ₗ[A] Ω[Ap⁄R] := map R R A Ap |
| 34 | let eₚ : (ι →₀ Ap) →ₗ[Ap] Ω[Ap⁄R] := |
| 35 | IsLocalizedModule.mapExtendScalars p.primeCompl l₁ l₂ Ap e |
| 36 | have heₚ : eₚ = b.repr.symm := by |
| 37 | ext i |
| 38 | trans IsLocalizedModule.map p.primeCompl l₁ l₂ e (l₁ (Finsupp.single i 1)) |
| 39 | · simp [eₚ, -IsLocalizedModule.map_apply, l₁] |
| 40 | · simp [l₂, e, hb] |
| 41 | have : Finite ι := Module.Finite.finite_basis b |
| 42 | have heₚbij : Function.Bijective eₚ := heₚ.symm ▸ b.repr.symm.bijective |
| 43 | obtain ⟨g, hg, h⟩ := Module.FinitePresentation.exists_notMem_bijective e p l₁ l₂ |
| 44 | heₚbij |
| 45 | let l₁g : (ι →₀ A) →ₗ[A] (ι →₀ Localization.Away g) := |
| 46 | Finsupp.mapRange.linearMap (Algebra.linearMap A _) |
| 47 | let l₂g : Ω[A⁄R] →ₗ[A] Ω[Localization.Away g⁄R] := map R R A (Localization.Away g) |
| 48 | rw [← IsLocalizedModule.map_bijective_iff_localizedModuleMap_bijective l₁g l₂g] at h |
| 49 | let eg : (ι →₀ Localization.Away g) →ₗ[Localization.Away g] Ω[Localization.Away g⁄R] := |
| 50 | IsLocalizedModule.mapExtendScalars (Submonoid.powers g) l₁g l₂g (Localization.Away g) e |
| 51 | let bg := Basis.ofRepr (LinearEquiv.ofBijective eg h).symm |
| 52 | refine ⟨g, hg, ι, inferInstance, a, bg, ?_⟩ |
| 53 | intro i |
| 54 | change eg (Finsupp.single i 1) = _ |
| 55 | trans IsLocalizedModule.map (Submonoid.powers g) l₁g l₂g e (l₁g (Finsupp.single i 1)) |
| 56 | · simp [eg, -IsLocalizedModule.map_apply, l₁g] |
| 57 | · simp [l₂g, e] |
| 58 | |
| 59 | end |
| 60 | |
| 61 | end OAI.AlgebraicGeometry.PELModuli.IntegralModel.DifferentialBasisNeighborhood |