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.HilbertScheme.Presentations.Graded.ModuleRestriction |
| 2 | import OAI.AlgebraicGeometry.HilbertScheme.Presentations.Polynomial.FractionDegrees |
| 3 | import Mathlib.RingTheory.Localization.Module |
| 4 | |
| 5 | /-! # Free Coordinates -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.HilbertScheme.Presentations.Localized.FreeCoordinates.ProjectiveCech |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! Coordinates on the actual localization of a free polynomial module. -/ |
| 12 | |
| 13 | open _root_.MvPolynomial _root_.Module |
| 14 | |
| 15 | open OAI.AlgebraicGeometry.HilbertScheme.Presentations.Graded.ModuleRestriction.GradedModules |
| 16 | |
| 17 | universe u v w |
| 18 | |
| 19 | variable {σ : Type u} |
| 20 | variable (R : Type v) [CommRing R] (ι : Type w) |
| 21 | |
| 22 | def localizedFreeBasis (s : Finset σ) : |
| 23 | Basis ι (LaurentMonomials.ProjectiveCech.ChartLocalization R s) (Graded.ModuleRestriction.ProjectiveCech.ModuleChart R (ι →₀ MvPolynomial σ R) s) := |
| 24 | (Finsupp.basisSingleOne (ι := ι) (R := MvPolynomial σ R)).ofIsLocalizedModule (LaurentMonomials.ProjectiveCech.ChartLocalization R s) |
| 25 | (Submonoid.powers (LaurentMonomials.ProjectiveCech.inversionMonomial R s)) |
| 26 | (LocalizedModule.mkLinearMap (Submonoid.powers (LaurentMonomials.ProjectiveCech.inversionMonomial R s)) (ι →₀ MvPolynomial σ R)) |
| 27 | |
| 28 | def freeLocalizedEquiv (s : Finset σ) : |
| 29 | Graded.ModuleRestriction.ProjectiveCech.ModuleChart R (ι →₀ MvPolynomial σ R) s ≃ₗ[R] (ι →₀ LaurentMonomials.ProjectiveCech.ChartLocalization R s) := |
| 30 | (localizedFreeBasis R ι s).repr.restrictScalars R |
| 31 | |
| 32 | theorem freeLocalizedEquiv_mk_one (s : Finset σ) (p : ι →₀ MvPolynomial σ R) (i : ι) : |
| 33 | freeLocalizedEquiv R ι s (LocalizedModule.mk p 1) i = |
| 34 | algebraMap (MvPolynomial σ R) (LaurentMonomials.ProjectiveCech.ChartLocalization R s) (p i) := by |
| 35 | exact (Finsupp.basisSingleOne (ι := ι) (R := MvPolynomial σ R)).ofIsLocalizedModule_repr_apply |
| 36 | (LaurentMonomials.ProjectiveCech.ChartLocalization R s) (Submonoid.powers (LaurentMonomials.ProjectiveCech.inversionMonomial R s)) |
| 37 | (LocalizedModule.mkLinearMap (Submonoid.powers (LaurentMonomials.ProjectiveCech.inversionMonomial R s)) (ι →₀ MvPolynomial σ R)) p i |
| 38 | |
| 39 | theorem freeLocalizedEquiv_fraction (s : Finset σ) (k : ℕ) (p : ι →₀ MvPolynomial σ R) (i : ι) : |
| 40 | freeLocalizedEquiv R ι s (Presentations.Module.Fractions.GradedModules.moduleFractionMap (R := R) (LaurentMonomials.ProjectiveCech.inversionMonomial R s) k p) i = |
| 41 | LaurentBasis.ProjectiveCech.chartFractionLinearMap R s k (p i) := by |
| 42 | let g := LaurentMonomials.ProjectiveCech.inversionMonomial R s |
| 43 | let L := LaurentMonomials.ProjectiveCech.ChartLocalization R s |
| 44 | let φ := algebraMap (MvPolynomial σ R) L |
| 45 | have hu : IsUnit (φ (g ^ k)) := IsLocalization.map_units L (LaurentMonomials.ProjectiveCech.chartDenominator R s k) |
| 46 | apply hu.mul_right_inj.mp |
| 47 | rw [LaurentBasis.ProjectiveCech.chartFractionLinearMap_apply] |
| 48 | have hright : φ (g ^ k) * IsLocalization.mk' L (p i) (LaurentMonomials.ProjectiveCech.chartDenominator R s k) = φ (p i) := |
| 49 | IsLocalization.mk'_spec' L (p i) (LaurentMonomials.ProjectiveCech.chartDenominator R s k) |
| 50 | rw [hright] |
| 51 | have hclear : g ^ k • Presentations.Module.Fractions.GradedModules.moduleFractionMap (R := R) g k p = |
| 52 | LocalizedModule.mk p (1 : Submonoid.powers g) := by |
| 53 | rw [Presentations.Module.Fractions.GradedModules.moduleFractionMap_apply, LocalizedModule.smul'_mk] |
| 54 | exact LocalizedModule.mk_cancel (Presentations.Module.Fractions.GradedModules.moduleDenominator g k) p |
| 55 | have he := congrArg (fun x => (localizedFreeBasis R ι s).repr x i) hclear |
| 56 | rw [← algebraMap_smul L, map_smul, Finsupp.smul_apply, smul_eq_mul] at he |
| 57 | exact he.trans (freeLocalizedEquiv_mk_one R ι s p i) |
| 58 | |
| 59 | end |
| 60 | |
| 61 | end OAI.AlgebraicGeometry.HilbertScheme.Presentations.Localized.FreeCoordinates.ProjectiveCech |