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.Cochain.HomologySupport |
| 2 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Cochain.FieldSupport |
| 3 | import Mathlib.RingTheory.LocalRing.Module |
| 4 | |
| 5 | /-! # Flat Cochain Support -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Finite.FlatCochainSupport |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! Residue exactness detects localized exactness for finite flat cochain terms. This supplies cohomology support for finite projective models without choosing a global free basis. -/ |
| 12 | open _root_.CategoryTheory _root_.CategoryTheory.Limits IsLocalRing |
| 13 | open scoped TensorProduct |
| 14 | universe u |
| 15 | variable {R : Type u} [CommRing R] |
| 16 | |
| 17 | theorem finiteFlatCochain_localization_exactAt_of_residue_exactAt |
| 18 | (C : CochainComplex (ModuleCat.{u} R) ℕ) |
| 19 | (hfin : ∀ q, Module.Finite R (C.X q)) (hflat : ∀ q, Module.Flat R (C.X q)) |
| 20 | (p : PrimeSpectrum R) (q : ℕ) |
| 21 | (hres : (HilbertConstruction.Module.TensorFunctor.ModuleTensorFunctor.complex p.asIdeal.ResidueField C).ExactAt q) : |
| 22 | (HilbertConstruction.Module.TensorFunctor.ModuleTensorFunctor.complex (Localization.AtPrime p.asIdeal) C).ExactAt q := by |
| 23 | let A := Localization.AtPrime p.asIdeal |
| 24 | let B := IsLocalRing.ResidueField A |
| 25 | let S := C.sc q |
| 26 | let T := HilbertConstruction.Module.BaseChangeComplex.LocalSectionLifting.moduleBaseChangeComplex R A S |
| 27 | have : Module.Finite R S.X₁ := hfin ((ComplexShape.up ℕ).prev q) |
| 28 | have : Module.Flat R S.X₁ := hflat ((ComplexShape.up ℕ).prev q) |
| 29 | have : Module.Finite R S.X₂ := hfin q |
| 30 | have : Module.Flat R S.X₂ := hflat q |
| 31 | have : Module.Finite R S.X₃ := hfin ((ComplexShape.up ℕ).next q) |
| 32 | have : Module.Flat R S.X₃ := hflat ((ComplexShape.up ℕ).next q) |
| 33 | have : Module.Finite A T.X₁ := inferInstanceAs (Module.Finite A (A ⊗[R] S.X₁)) |
| 34 | have : Module.Flat A T.X₁ := inferInstanceAs (Module.Flat A (A ⊗[R] S.X₁)) |
| 35 | have : Module.Free A T.X₁ := Module.free_of_flat_of_isLocalRing |
| 36 | have : Module.Finite A T.X₂ := inferInstanceAs (Module.Finite A (A ⊗[R] S.X₂)) |
| 37 | have : Module.Flat A T.X₂ := inferInstanceAs (Module.Flat A (A ⊗[R] S.X₂)) |
| 38 | have : Module.Free A T.X₂ := Module.free_of_flat_of_isLocalRing |
| 39 | have : Module.Finite A T.X₃ := inferInstanceAs (Module.Finite A (A ⊗[R] S.X₃)) |
| 40 | have : Module.Flat A T.X₃ := inferInstanceAs (Module.Flat A (A ⊗[R] S.X₃)) |
| 41 | have : Module.Free A T.X₃ := Module.free_of_flat_of_isLocalRing |
| 42 | have hnative : (S.map (ModuleCat.extendScalars (algebraMap R B))).Exact := by |
| 43 | have h : (S.map (HilbertConstruction.Module.TensorFunctor.ModuleTensorFunctor.tensor B)).Exact ↔ |
| 44 | (S.map (ModuleCat.extendScalars (algebraMap R B))).Exact := by |
| 45 | have ht := Tensor.ScalarExactness.tensor_shortComplex_exact_iff_native (algebraMap R B) S |
| 46 | rw [toAlgebra_algebraMap] at ht |
| 47 | exact ht |
| 48 | exact h.mp hres |
| 49 | have hcomp : (S.map (ModuleCat.extendScalars |
| 50 | ((algebraMap A B).comp (algebraMap R A)))).Exact := by |
| 51 | rw [← IsScalarTower.algebraMap_eq R A B] |
| 52 | exact hnative |
| 53 | have hT : T.Exact := Local.ResidueExactness.LocalSectionLifting.finiteFreeShortComplex_exact_of_residue_exact T |
| 54 | (Iterated.TensorExactness.iterated_tensor_exact_of_composite (A := A) S hcomp) |
| 55 | exact (Base.ChangeTensorExactness.baseChange_shortComplex_exact_iff_tensor (B := A) S).mp hT |
| 56 | |
| 57 | theorem finiteFlatCochain_homology_support_of_residue_exactAt |
| 58 | (C : CochainComplex (ModuleCat.{u} R) ℕ) |
| 59 | (hfin : ∀ q, Module.Finite R (C.X q)) (hflat : ∀ q, Module.Flat R (C.X q)) |
| 60 | (I : Ideal R) (q : ℕ) |
| 61 | (hres : ∀ p : PrimeSpectrum R, ¬ I ≤ p.asIdeal → |
| 62 | (HilbertConstruction.Module.TensorFunctor.ModuleTensorFunctor.complex p.asIdeal.ResidueField C).ExactAt q) : |
| 63 | Module.support R (C.homology q) ⊆ PrimeSpectrum.zeroLocus (I : Set R) := |
| 64 | Cochain.HomologySupport.cochain_homology_support_of_localization_exactAt C I q |
| 65 | (fun p hp => finiteFlatCochain_localization_exactAt_of_residue_exactAt C hfin hflat p q (hres p hp)) |
| 66 | |
| 67 | theorem finiteFlatCochain_fieldSupport_homology_support |
| 68 | (C : CochainComplex (ModuleCat.{u} R) ℕ) |
| 69 | (hfin : ∀ q, Module.Finite R (C.X q)) (hflat : ∀ q, Module.Flat R (C.X q)) |
| 70 | (I : Ideal R) (hfield : Cochain.FieldSupport.CochainFieldSupport C I) (q : ℕ) : |
| 71 | Module.support R (C.homology q) ⊆ PrimeSpectrum.zeroLocus (I : Set R) := by |
| 72 | apply finiteFlatCochain_homology_support_of_residue_exactAt C hfin hflat I q |
| 73 | intro p hp |
| 74 | apply hfield p.asIdeal.ResidueField |
| 75 | simpa only [Ideal.ker_algebraMap_residueField] using hp |
| 76 | |
| 77 | end |
| 78 | |
| 79 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Finite.FlatCochainSupport |