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.SheafCohomology.Projective.OrderedBaseCechExact |
| 2 | import OAI.AlgebraicGeometry.SheafCohomology.Projective.Quasicoherent |
| 3 | import Mathlib.Algebra.Homology.HomologySequence |
| 4 | |
| 5 | /-! # Top Cech Right Exact -/ |
| 6 | |
| 7 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.TopCechRightExact |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! Top cohomology of the actual finite ordered affine Čech complex is |
| 12 | right exact on quasicoherent sheaves. -/ |
| 13 | |
| 14 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry |
| 15 | |
| 16 | universe u |
| 17 | |
| 18 | variable {X S : Scheme.{u}} (π : X ⟶ S) [X.IsSeparated] |
| 19 | {ι : Type u} [Fintype ι] [LinearOrder ι] (U : ι → X.Opens) |
| 20 | (hU : ∀ i, IsAffineOpen (U i)) |
| 21 | |
| 22 | def functor (n : ℕ) : X.Modules ⥤ ModuleCat.{u} Γ(S, ⊤) := |
| 23 | AlgebraicGeometry.SheafCohomology.Projective.OrderedBaseCechFunctor.Scheme.Modules.orderedBaseCechComplexFunctor π U ⋙ |
| 24 | HomologicalComplex.homologyFunctor (ModuleCat.{u} Γ(S, ⊤)) (.up ℕ) n |
| 25 | |
| 26 | instance functor_additive (n : ℕ) : (functor π U n).Additive := by |
| 27 | unfold functor |
| 28 | infer_instance |
| 29 | |
| 30 | include hU |
| 31 | |
| 32 | theorem map_epi (n : ℕ) (hn : Fintype.card ι ≤ n + 1) |
| 33 | {M N : X.Modules} [M.IsQuasicoherent] [N.IsQuasicoherent] (f : M ⟶ N) [Epi f] : |
| 34 | Epi ((functor π U n).map f) := by |
| 35 | have : (kernel f).IsQuasicoherent := AlgebraicGeometry.SheafCohomology.Projective.Quasicoherent.Scheme.Modules.isQuasicoherent_kernel f |
| 36 | let T := ShortComplex.mk (kernel.ι f) f (kernel.condition f) |
| 37 | have hT : T.ShortExact := ShortComplex.ShortExact.mk (ShortComplex.kernelSequence_exact f) |
| 38 | have hC := AlgebraicGeometry.SheafCohomology.Projective.OrderedBaseCechExact.CategoryTheory.ShortComplex.ShortExact.map_orderedBaseCechComplexFunctor_of_affine_openCover π U hU hT |
| 39 | have hz : IsZero |
| 40 | ((AlgebraicGeometry.SheafCohomology.Projective.OrderedBaseCech.Scheme.Modules.orderedBaseCechComplex π (kernel f) U).homology (n + 1)) := |
| 41 | (HomologicalComplex.exactAt_iff_isZero_homology _ _).mp |
| 42 | (AlgebraicGeometry.SheafCohomology.Projective.OrderedBaseCech.Scheme.Modules.orderedBaseCechComplex_exactAt_of_card_le π (kernel f) U (n + 1) hn) |
| 43 | exact (hC.homology_exact₃ n (n + 1) (by simp)).epi_f (hz.eq_of_tgt _ _) |
| 44 | |
| 45 | theorem map_exact (n : ℕ) (hn : Fintype.card ι ≤ n + 1) |
| 46 | (T : ShortComplex X.Modules) [T.X₁.IsQuasicoherent] [T.X₂.IsQuasicoherent] |
| 47 | [T.X₃.IsQuasicoherent] (hT : T.Exact) [Epi T.g] : |
| 48 | (T.map (functor π U n)).Exact := by |
| 49 | have : (kernel T.g).IsQuasicoherent := AlgebraicGeometry.SheafCohomology.Projective.Quasicoherent.Scheme.Modules.isQuasicoherent_kernel T.g |
| 50 | let k := kernel.lift T.g T.f T.zero |
| 51 | have : Epi k := hT.epi_kernelLift |
| 52 | let V := ShortComplex.mk (kernel.ι T.g) T.g (kernel.condition T.g) |
| 53 | have hV : V.ShortExact := ShortComplex.ShortExact.mk (ShortComplex.kernelSequence_exact T.g) |
| 54 | have hC := AlgebraicGeometry.SheafCohomology.Projective.OrderedBaseCechExact.CategoryTheory.ShortComplex.ShortExact.map_orderedBaseCechComplexFunctor_of_affine_openCover π U hU hV |
| 55 | let F := functor π U n |
| 56 | have : Epi (F.map k) := map_epi π U hU n hn k |
| 57 | let a : T.map F ⟶ V.map F := |
| 58 | { τ₁ := F.map k |
| 59 | τ₂ := 𝟙 _ |
| 60 | τ₃ := 𝟙 _ |
| 61 | comm₁₂ := by |
| 62 | change F.map k ≫ F.map (kernel.ι T.g) = F.map T.f ≫ 𝟙 _ |
| 63 | rw [← F.map_comp, kernel.lift_ι, Category.comp_id] |
| 64 | comm₂₃ := by |
| 65 | change 𝟙 _ ≫ F.map T.g = F.map T.g ≫ 𝟙 _ |
| 66 | exact (Category.id_comp _).trans (Category.comp_id _).symm } |
| 67 | have : Epi a.τ₁ := inferInstanceAs (Epi (F.map k)) |
| 68 | have : IsIso a.τ₂ := inferInstanceAs (IsIso (𝟙 _)) |
| 69 | have : Mono a.τ₃ := inferInstanceAs (Mono (𝟙 _)) |
| 70 | exact (ShortComplex.exact_iff_of_epi_of_isIso_of_mono a).2 (hC.homology_exact₂ n) |
| 71 | |
| 72 | end |
| 73 | |
| 74 | end OAI.NumberTheory.PadicHodge.IntegralComparison.TopCechRightExact |