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.ModuleCech.ComplexMaps |
| 2 | import OAI.AlgebraicGeometry.HilbertScheme.Presentations.Finite.HomologySequences |
| 3 | |
| 4 | /-! # Complex Sequences -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.HilbertScheme.Presentations.ModuleCech.ComplexSequences.ProjectiveCech |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! A short exact sequence of graded polynomial modules gives a short exact sequence of actual homogeneous Čech cochain complexes. -/ |
| 11 | |
| 12 | open _root_.MvPolynomial DirectSum _root_.CategoryTheory |
| 13 | |
| 14 | universe u v w |
| 15 | |
| 16 | variable {σ : Type u} [LinearOrder σ] (R : Type v) [CommRing R] |
| 17 | variable {M N P : Type w} |
| 18 | variable [AddCommGroup M] [Module R M] [Module (MvPolynomial σ R) M] |
| 19 | [IsScalarTower R (MvPolynomial σ R) M] |
| 20 | variable [AddCommGroup N] [Module R N] [Module (MvPolynomial σ R) N] |
| 21 | [IsScalarTower R (MvPolynomial σ R) N] |
| 22 | variable [AddCommGroup P] [Module R P] [Module (MvPolynomial σ R) P] |
| 23 | [IsScalarTower R (MvPolynomial σ R) P] |
| 24 | variable (ℳ : ℤ → Submodule R M) (𝒩 : ℤ → Submodule R N) (ℙ : ℤ → Submodule R P) |
| 25 | [SetLike.GradedSMul (WeightedFreeModules.GradedModules.polynomialIntegerGrading (σ := σ) R) ℳ] |
| 26 | [SetLike.GradedSMul (WeightedFreeModules.GradedModules.polynomialIntegerGrading (σ := σ) R) 𝒩] |
| 27 | [SetLike.GradedSMul (WeightedFreeModules.GradedModules.polynomialIntegerGrading (σ := σ) R) ℙ] |
| 28 | variable (f : M →ₗ[MvPolynomial σ R] N) (g : N →ₗ[MvPolynomial σ R] P) |
| 29 | variable (hf : ∀ d m, m ∈ ℳ d → f m ∈ 𝒩 d) (hg : ∀ d m, m ∈ 𝒩 d → g m ∈ ℙ d) |
| 30 | variable (hex : Function.Exact f g) |
| 31 | |
| 32 | def moduleCechComplexSequence (d : ℤ) : ShortComplex (CochainComplex (ModuleCat R) ℕ) := |
| 33 | ShortComplex.mk (ComplexMaps.ProjectiveCech.moduleCechComplexMap R ℳ 𝒩 f hf d) (ComplexMaps.ProjectiveCech.moduleCechComplexMap R 𝒩 ℙ g hg d) (by |
| 34 | apply HomologicalComplex.Hom.ext |
| 35 | funext q |
| 36 | apply ModuleCat.hom_ext |
| 37 | apply LinearMap.ext |
| 38 | intro x |
| 39 | apply Subtype.ext |
| 40 | exact (Maps.ProjectiveCech.moduleCechMap_exact R f g hex _).mpr ⟨x.val, rfl⟩) |
| 41 | |
| 42 | variable [Decomposition ℳ] [Decomposition 𝒩] [Decomposition ℙ] |
| 43 | |
| 44 | theorem moduleCechComplexSequence_shortExact (hfinj : Function.Injective f) (hgsurj : Function.Surjective g) |
| 45 | (d : ℤ) : (moduleCechComplexSequence R ℳ 𝒩 ℙ f g hf hg hex d).ShortExact := by |
| 46 | apply HomologicalComplex.shortExact_of_degreewise_shortExact |
| 47 | intro q |
| 48 | refine ShortComplex.ShortExact.mk' ?_ ?_ ?_ |
| 49 | · apply (ShortComplex.ShortExact.moduleCat_exact_iff_function_exact _).mpr |
| 50 | exact TermMaps.ProjectiveCech.moduleCechTermMap_exact R ℳ 𝒩 ℙ f g hf hg hex d q |
| 51 | · apply (ModuleCat.mono_iff_injective _).mpr |
| 52 | exact TermMaps.ProjectiveCech.moduleCechTermMap_injective R ℳ 𝒩 f hf hfinj d q |
| 53 | · apply (ModuleCat.epi_iff_surjective _).mpr |
| 54 | exact TermMaps.ProjectiveCech.moduleCechTermMap_surjective R 𝒩 ℙ g hg hgsurj d q |
| 55 | |
| 56 | include hf hg hex in |
| 57 | theorem moduleCech_homology_finite_of_exact [IsNoetherianRing R] |
| 58 | (hfinj : Function.Injective f) (hgsurj : Function.Surjective g) (d : ℤ) (q : ℕ) |
| 59 | [Module.Finite R ((CechComplex.ProjectiveCech.moduleCechComplex (σ := σ) R N 𝒩 d).homology q)] |
| 60 | [Module.Finite R ((CechComplex.ProjectiveCech.moduleCechComplex (σ := σ) R M ℳ d).homology (q + 1))] : |
| 61 | Module.Finite R ((CechComplex.ProjectiveCech.moduleCechComplex (σ := σ) R P ℙ d).homology q) := by |
| 62 | let S := moduleCechComplexSequence R ℳ 𝒩 ℙ f g hf hg hex d |
| 63 | let : Module.Finite R (S.X₂.homology q) := |
| 64 | inferInstanceAs (Module.Finite R ((CechComplex.ProjectiveCech.moduleCechComplex (σ := σ) R N 𝒩 d).homology q)) |
| 65 | let : Module.Finite R (S.X₁.homology (q + 1)) := |
| 66 | inferInstanceAs (Module.Finite R ((CechComplex.ProjectiveCech.moduleCechComplex (σ := σ) R M ℳ d).homology (q + 1))) |
| 67 | exact Presentations.Finite.HomologySequences.finite_homology_of_shortExact R S |
| 68 | (moduleCechComplexSequence_shortExact R ℳ 𝒩 ℙ f g hf hg hex hfinj hgsurj d) q |
| 69 | |
| 70 | end |
| 71 | |
| 72 | end OAI.AlgebraicGeometry.HilbertScheme.Presentations.ModuleCech.ComplexSequences.ProjectiveCech |