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.Bounded.FiberwiseComplex |
| 2 | import OAI.AlgebraicGeometry.HilbertScheme.Presentations.Finite.CechKernelQuotients |
| 3 | import OAI.AlgebraicGeometry.HilbertScheme.Presentations.Cech.AugmentationDegree |
| 4 | import OAI.AlgebraicGeometry.HilbertScheme.Presentations.Cech.DimensionShift |
| 5 | |
| 6 | /-! # Fiberwise Module Cech -/ |
| 7 | |
| 8 | namespace OAI.AlgebraicGeometry.HilbertScheme.Presentations.FiberwiseModuleCech.ProjectiveCech |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! Finite and flat degree-section modules and higher exactness from flat charts and actual residue-field Čech complexes. -/ |
| 13 | |
| 14 | open _root_.MvPolynomial DirectSum |
| 15 | |
| 16 | universe u v |
| 17 | |
| 18 | variable {σ : Type v} [Fintype σ] [LinearOrder σ] [Nonempty σ] |
| 19 | variable (R : Type u) [CommRing R] [IsNoetherianRing R] |
| 20 | variable (M : Type (max u v)) [AddCommGroup M] [Module R M] [Module (MvPolynomial σ R) M] |
| 21 | [IsScalarTower R (MvPolynomial σ R) M] [Module.Finite (MvPolynomial σ R) M] |
| 22 | variable (ℳ : ℤ → Submodule R M) [Decomposition ℳ] |
| 23 | [SetLike.GradedSMul (WeightedFreeModules.GradedModules.polynomialIntegerGrading (σ := σ) R) ℳ] |
| 24 | |
| 25 | abbrev moduleCechSections (d : ℤ) := (ModuleCech.Terms.ProjectiveCech.moduleCechTermDifferential (σ := σ) R M ℳ d 1).ker |
| 26 | |
| 27 | theorem moduleCechSections_finite (d : ℤ) [Module.Finite R (ℳ d)] : |
| 28 | Module.Finite R (moduleCechSections (σ := σ) R M ℳ d) := by |
| 29 | let : Module.Finite R (ModuleCech.Terms.ProjectiveCech.moduleCechTerm (σ := σ) R M ℳ d 0) := |
| 30 | Module.Finite.equiv (Cech.AugmentationDegree.ProjectiveCech.moduleCechAugmentationEquiv (σ := σ) R M ℳ d).symm |
| 31 | let : Module.Finite R (FiberwiseExactness.linearKernelCohomology R (ModuleCech.Terms.ProjectiveCech.moduleCechTermDifferential (σ := σ) R M ℳ d 0) |
| 32 | (ModuleCech.Terms.ProjectiveCech.moduleCechTermDifferential (σ := σ) R M ℳ d 1) (ModuleCech.Terms.ProjectiveCech.moduleCechTermDifferential_square R M ℳ d 0)) := |
| 33 | Presentations.Finite.CechKernelQuotients.ProjectiveCech.moduleCech_kernelQuotient_finite R M ℳ d 0 |
| 34 | exact FiberwiseExactness.kernel_finite_of_finite_cohomology R (ModuleCech.Terms.ProjectiveCech.moduleCechTermDifferential (σ := σ) R M ℳ d 0) |
| 35 | (ModuleCech.Terms.ProjectiveCech.moduleCechTermDifferential (σ := σ) R M ℳ d 1) (ModuleCech.Terms.ProjectiveCech.moduleCechTermDifferential_square R M ℳ d 0) |
| 36 | |
| 37 | theorem moduleCech_fiberwise_exact_flat (d : ℤ) |
| 38 | (hflat : ∀ s : Finset σ, s.Nonempty → Module.Flat R (Graded.ModuleRestriction.ProjectiveCech.moduleChartDegree R M ℳ s d)) |
| 39 | (hfiber : ∀ q : ℕ, ∀ p : PrimeSpectrum R, |
| 40 | Function.Exact ((ModuleCech.Terms.ProjectiveCech.moduleCechTermDifferential (σ := σ) R M ℳ d (q + 1)).lTensor p.asIdeal.ResidueField) |
| 41 | ((ModuleCech.Terms.ProjectiveCech.moduleCechTermDifferential (σ := σ) R M ℳ d (q + 1 + 1)).lTensor p.asIdeal.ResidueField)) : |
| 42 | Module.Flat R (moduleCechSections (σ := σ) R M ℳ d) ∧ |
| 43 | ∀ q : ℕ, Cech.DimensionShift.ProjectiveCech.ModuleCechExactAt (σ := σ) R M ℳ d (q + 2) := by |
| 44 | have h := Bounded.FiberwiseComplex.bounded_fiberwise_exact_flat R (Fintype.card σ) |
| 45 | (fun q => ModuleCech.Terms.ProjectiveCech.moduleCechTerm (σ := σ) R M ℳ d (q + 1)) |
| 46 | (fun q => ModuleCech.Terms.ProjectiveCech.moduleCechTermDifferential (σ := σ) R M ℳ d (q + 1)) |
| 47 | (fun q => ModuleCech.Terms.ProjectiveCech.moduleCechTermDifferential_square R M ℳ d (q + 1)) |
| 48 | (ModuleCech.Terms.ProjectiveCech.moduleCechTermDifferential_zero R M ℳ d (Fintype.card σ + 1) (by omega)) |
| 49 | (fun q _ => ModuleCech.Terms.ProjectiveCech.moduleCechTerm_flat R M ℳ d (q + 1) (Nat.zero_lt_succ q) hflat) |
| 50 | (fun q _ => Presentations.Finite.CechKernelQuotients.ProjectiveCech.moduleCech_kernelQuotient_finite R M ℳ d (q + 1)) (fun q _ => hfiber q) |
| 51 | refine ⟨h.1, fun q => ?_⟩ |
| 52 | by_cases hq : q < Fintype.card σ |
| 53 | · intro f hf hfc hfd |
| 54 | have hz : ModuleCech.Terms.ProjectiveCech.moduleCechTermDifferential R M ℳ d (q + 1 + 1) ⟨f, hf, hfc⟩ = 0 := Subtype.ext hfd |
| 55 | obtain ⟨g, hg⟩ := (h.2.2 q hq _).mp hz |
| 56 | refine ⟨g.val, g.property.1, ?_, congrArg Subtype.val hg⟩ |
| 57 | have hdegree : q + 2 - 1 = q + 1 := by omega |
| 58 | simpa only [hdegree] using g.property.2 |
| 59 | · exact Cech.DimensionShift.ProjectiveCech.moduleCechExactAt_of_bounded R M ℳ d (q + 2) (by omega) |
| 60 | |
| 61 | end |
| 62 | |
| 63 | end OAI.AlgebraicGeometry.HilbertScheme.Presentations.FiberwiseModuleCech.ProjectiveCech |