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.AbelianModuli.HilbertConstruction.Local.ResidueExactness |
| 2 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Base.ChangeTensorExactness |
| 3 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Tensor.ScalarExactness |
| 4 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Iterated.TensorExactness |
| 5 | import Mathlib.RingTheory.Flat.Localization |
| 6 | |
| 7 | /-! # Residue Localization -/ |
| 8 | |
| 9 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Cochain.ResidueLocalization |
| 10 | |
| 11 | noncomputable section |
| 12 | |
| 13 | /-! Residue-field exactness of a finite free cochain model at a prime implies exactness over its localized coefficient ring, with the original R-linear tensor action. -/ |
| 14 | open _root_.CategoryTheory _root_.CategoryTheory.Limits IsLocalRing |
| 15 | open scoped TensorProduct |
| 16 | universe u |
| 17 | |
| 18 | theorem finiteFreeCochain_localization_exactAt_of_residue_exactAt |
| 19 | {R : Type u} [CommRing R] |
| 20 | (C : CochainComplex (ModuleCat.{u} R) ℕ) |
| 21 | (hfin : ∀ q, Module.Finite R (C.X q)) (hfree : ∀ q, Module.Free R (C.X q)) |
| 22 | (p : PrimeSpectrum R) (q : ℕ) |
| 23 | (hres : (HilbertConstruction.Module.TensorFunctor.ModuleTensorFunctor.complex p.asIdeal.ResidueField C).ExactAt q) : |
| 24 | (HilbertConstruction.Module.TensorFunctor.ModuleTensorFunctor.complex (Localization.AtPrime p.asIdeal) C).ExactAt q := by |
| 25 | let A := Localization.AtPrime p.asIdeal |
| 26 | let B := IsLocalRing.ResidueField A |
| 27 | let S := C.sc q |
| 28 | let T := HilbertConstruction.Module.BaseChangeComplex.LocalSectionLifting.moduleBaseChangeComplex R A S |
| 29 | have : Module.Finite R S.X₁ := hfin ((ComplexShape.up ℕ).prev q) |
| 30 | have : Module.Free R S.X₁ := hfree ((ComplexShape.up ℕ).prev q) |
| 31 | have : Module.Finite R S.X₂ := hfin q |
| 32 | have : Module.Free R S.X₂ := hfree q |
| 33 | have : Module.Finite R S.X₃ := hfin ((ComplexShape.up ℕ).next q) |
| 34 | have : Module.Free R S.X₃ := hfree ((ComplexShape.up ℕ).next q) |
| 35 | have : Module.Finite A T.X₁ := inferInstanceAs (Module.Finite A (A ⊗[R] S.X₁)) |
| 36 | have : Module.Free A T.X₁ := inferInstanceAs (Module.Free A (A ⊗[R] S.X₁)) |
| 37 | have : Module.Finite A T.X₂ := inferInstanceAs (Module.Finite A (A ⊗[R] S.X₂)) |
| 38 | have : Module.Free A T.X₂ := inferInstanceAs (Module.Free A (A ⊗[R] S.X₂)) |
| 39 | have : Module.Finite A T.X₃ := inferInstanceAs (Module.Finite A (A ⊗[R] S.X₃)) |
| 40 | have : Module.Free A T.X₃ := inferInstanceAs (Module.Free A (A ⊗[R] S.X₃)) |
| 41 | have hnative : (S.map (ModuleCat.extendScalars (algebraMap R B))).Exact := by |
| 42 | have h : (S.map (HilbertConstruction.Module.TensorFunctor.ModuleTensorFunctor.tensor B)).Exact ↔ |
| 43 | (S.map (ModuleCat.extendScalars (algebraMap R B))).Exact := by |
| 44 | have ht := Tensor.ScalarExactness.tensor_shortComplex_exact_iff_native (algebraMap R B) S |
| 45 | rw [toAlgebra_algebraMap] at ht |
| 46 | exact ht |
| 47 | exact h.mp hres |
| 48 | have hcomp : (S.map (ModuleCat.extendScalars |
| 49 | ((algebraMap A B).comp (algebraMap R A)))).Exact := by |
| 50 | rw [← IsScalarTower.algebraMap_eq R A B] |
| 51 | exact hnative |
| 52 | have hT : T.Exact := Local.ResidueExactness.LocalSectionLifting.finiteFreeShortComplex_exact_of_residue_exact T |
| 53 | (Iterated.TensorExactness.iterated_tensor_exact_of_composite (A := A) S hcomp) |
| 54 | exact (Base.ChangeTensorExactness.baseChange_shortComplex_exact_iff_tensor (B := A) S).mp hT |
| 55 | |
| 56 | end |
| 57 | |
| 58 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Cochain.ResidueLocalization |