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.ProjectiveCoefficient.Purity |
| 2 | import OAI.NumberTheory.PadicHodge.IntegralComparison.Affine.LinearResolutionPurity |
| 3 | import OAI.NumberTheory.PadicHodge.IntegralComparison.Affine.LocalExactness |
| 4 | |
| 5 | /-! # Finite Projective Purity -/ |
| 6 | |
| 7 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.Affine.FiniteProjectivePurity |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! Native affine internal-Hom purity for finite projective coefficients |
| 12 | over the actual quotient coordinate algebra. -/ |
| 13 | |
| 14 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry Opposite |
| 15 | |
| 16 | set_option backward.isDefEq.respectTransparency false |
| 17 | |
| 18 | universe u |
| 19 | open OAI.NumberTheory.PadicHodge.IntegralComparison.AffineOpen.InternalHom OAI.NumberTheory.PadicHodge.IntegralComparison.AffineOpen.LinearHom |
| 20 | |
| 21 | variable {X : Scheme.{u}} (U : X.Opens) (hU : IsAffineOpen U) |
| 22 | (N : X.Modules) (K : ChainComplex X.Modules ℕ) |
| 23 | [∀ i, (K.X i).IsQuasicoherent] |
| 24 | (M : X.Modules) [M.IsQuasicoherent] |
| 25 | (ε : K ⟶ (ChainComplex.single₀ X.Modules).obj M) [QuasiIso ε] |
| 26 | [∀ i, Projective ((AffineOpen.InternalHom.sections U hU).obj (K.X i))] |
| 27 | (Q : Type u) [CommRing Q] [Algebra Γ(X, U) Q] |
| 28 | (C : Type u) [AddCommGroup C] [Module Q C] [Module Γ(X, U) C] |
| 29 | [IsScalarTower Γ(X, U) Q C] [Module.Finite Q C] [Module.Projective Q C] |
| 30 | (eM : (AffineOpen.InternalHom.sections U hU).obj M ≅ ModuleCat.of Γ(X, U) C) |
| 31 | (rs : List Γ(X, U)) (hreg : RingTheory.Sequence.IsWeaklyRegular Γ(X, U) rs) |
| 32 | (eQ : IntegralComparison.ProjectiveResolution.DualPurity.quotient Γ(X, U) rs ≅ ModuleCat.of Γ(X, U) Q) |
| 33 | (eN : (AffineOpen.InternalHom.sections U hU).obj N ≅ ModuleCat.of Γ(X, U) Γ(X, U)) |
| 34 | |
| 35 | def resolution : ProjectiveResolution (ModuleCat.of Γ(X, U) C) := |
| 36 | IntegralComparison.ProjectiveResolution.Transport.alongIso |
| 37 | (AffineOpen.Resolution.ofAugmentation U hU M K ε) eM |
| 38 | |
| 39 | include ε hreg eQ eN eM in |
| 40 | theorem linear_exactAt (n : ℕ) (hn : n ≠ rs.length) : |
| 41 | ((((AffineOpen.LinearHom.sectionHom U N).mapHomologicalComplex (ComplexShape.down ℕ).symm).obj K.op)).ExactAt n := by |
| 42 | rw [HomologicalComplex.exactAt_iff_isZero_homology] |
| 43 | apply (HomologicalComplex.homologyMapIso |
| 44 | (LinearResolutionPurity.sectionComplexIso U hU N K) n).isZero_iff.mpr |
| 45 | let P0 := IntegralComparison.ProjectiveResolution.DualPurity.koszul Γ(X, U) rs hreg |
| 46 | let P := IntegralComparison.ProjectiveResolution.Transport.alongIso P0 eQ |
| 47 | let PM := resolution U hU K M ε C eM |
| 48 | have h0 := LinearHomDualPurity.exactAt Γ(X, U) rs hreg P0 |
| 49 | ((AffineOpen.InternalHom.sections U hU).obj N) eN n hn |
| 50 | have h := ProjectiveCoefficient.Purity.exactAt Γ(X, U) Q |
| 51 | ((AffineOpen.InternalHom.sections U hU).obj N) n P C PM h0 |
| 52 | exact (HomologicalComplex.exactAt_iff_isZero_homology _ _).mp h |
| 53 | |
| 54 | include ε hreg eQ eN eM in |
| 55 | theorem exactAt (n : ℕ) (hn : n ≠ rs.length) : |
| 56 | (LocalExactness.sectionComplex |
| 57 | (LinearResolutionPurity.internalComplex N K) U).ExactAt n := by |
| 58 | let J := (((AffineOpen.LinearHom.sectionHom U N).mapHomologicalComplex (ComplexShape.down ℕ).symm).obj K.op) |
| 59 | have h : J.ExactAt n := linear_exactAt U hU N K M ε Q C eM rs hreg eQ eN n hn |
| 60 | rw [HomologicalComplex.exactAt_iff_isZero_homology] at h ⊢ |
| 61 | let G := forget₂ (ModuleCat Γ(X, U)) AddCommGrpCat |
| 62 | exact ((J.sc n).mapHomologyIso G).isZero_iff.mpr (G.map_isZero h) |
| 63 | |
| 64 | end |
| 65 | |
| 66 | end OAI.NumberTheory.PadicHodge.IntegralComparison.Affine.FiniteProjectivePurity |