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.Cech.DimensionShift |
| 2 | import OAI.AlgebraicGeometry.HilbertScheme.Presentations.Finite.GradedPolynomialModules |
| 3 | |
| 4 | /-! # Cech Vanishing -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.HilbertScheme.Presentations.Graded.CechVanishing.ProjectiveCech |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! |
| 11 | Eventual exactness of the augmented projective Čech complex for every |
| 12 | finitely generated graded polynomial module over a noetherian ring. |
| 13 | The proof uses constructed finite free covers and bounded Čech length. |
| 14 | -/ |
| 15 | |
| 16 | open _root_.MvPolynomial DirectSum |
| 17 | |
| 18 | open OAI.AlgebraicGeometry.HilbertScheme.Presentations.Finite.GradedPolynomialModules.GradedModules |
| 19 | |
| 20 | universe u v |
| 21 | |
| 22 | variable {σ : Type v} [Fintype σ] [LinearOrder σ] [Nonempty σ] |
| 23 | variable (R : Type u) [CommRing R] |
| 24 | |
| 25 | theorem freeModuleCech_exactAt (ι : Type (max u v)) [Fintype ι] (w : ι → ℤ) (d : ℤ) |
| 26 | (hd : (FreeModuleCechExactness.ProjectiveCech.freeCechDegreeBound ι w : ℤ) ≤ d) (q : ℕ) : |
| 27 | Cech.DimensionShift.ProjectiveCech.ModuleCechExactAt (σ := σ) R (ι →₀ MvPolynomial σ R) (WeightedFreeModules.GradedModules.weightedFreeGrading R w) d q := by |
| 28 | cases q with |
| 29 | | zero => |
| 30 | intro f hf hcard hcycle |
| 31 | have hz := FreeModuleCechExactness.ProjectiveCech.freeModuleCech_augmentation_injective R ι w d |
| 32 | (fun i => (FreeModuleCechExactness.ProjectiveCech.freeCechDegreeBound_ge ι w i).trans hd) f hf hcard hcycle |
| 33 | refine ⟨0, fun _ => Submodule.zero_mem _, fun _ _ => rfl, ?_⟩ |
| 34 | rw [map_zero, hz] |
| 35 | | succ q => |
| 36 | intro f hf hcard hcycle |
| 37 | obtain ⟨g, hg, hgcard, hgd⟩ := FreeModuleCechExactness.ProjectiveCech.freeModuleCech_eventually_exact R ι w d hd q f hf hcard hcycle |
| 38 | exact ⟨g, hg, hgcard, hgd⟩ |
| 39 | |
| 40 | variable [IsNoetherianRing R] |
| 41 | |
| 42 | theorem exists_moduleCech_bound_above (r : ℕ) : |
| 43 | ∀ D : Presentations.Finite.GradedPolynomialModules.GradedModules.FiniteGradedPolynomialModule σ R, ∃ B : ℕ, |
| 44 | ∀ d : ℤ, (B : ℤ) ≤ d → ∀ q : ℕ, Fintype.card σ < q + r → |
| 45 | Cech.DimensionShift.ProjectiveCech.ModuleCechExactAt (σ := σ) R D.Carrier D.grading d q := by |
| 46 | induction r with |
| 47 | | zero => |
| 48 | intro D |
| 49 | refine ⟨0, fun d _ q hq => ?_⟩ |
| 50 | exact Cech.DimensionShift.ProjectiveCech.moduleCechExactAt_of_bounded R D.Carrier D.grading d q (by simpa only [Nat.add_zero] using hq) |
| 51 | | succ r ih => |
| 52 | intro D |
| 53 | obtain ⟨B, hB⟩ := ih D.syzygy |
| 54 | let F := FreeModuleCechExactness.ProjectiveCech.freeCechDegreeBound D.cover.generators D.cover.degree |
| 55 | refine ⟨B + F, fun d hd q hq => ?_⟩ |
| 56 | have hdB : (B : ℤ) ≤ d := by |
| 57 | have h : (B : ℤ) ≤ ((B + F : ℕ) : ℤ) := by exact_mod_cast Nat.le_add_right B F |
| 58 | exact h.trans hd |
| 59 | have hdF : (F : ℤ) ≤ d := by |
| 60 | have h : (F : ℤ) ≤ ((B + F : ℕ) : ℤ) := by exact_mod_cast Nat.le_add_left F B |
| 61 | exact h.trans hd |
| 62 | apply Cech.DimensionShift.ProjectiveCech.moduleCech_dimension_shift R D.syzygy.Carrier D.syzygy.grading D.freeModule.grading D.grading |
| 63 | D.kernelInclusion D.projection D.kernelInclusion_homogeneous D.projection_homogeneous |
| 64 | D.kernelInclusion_injective D.projection_surjective D.cover_exact d q |
| 65 | · exact hB d hdB (q + 1) (by omega) |
| 66 | · exact freeModuleCech_exactAt R D.cover.generators D.cover.degree d hdF q |
| 67 | |
| 68 | theorem finiteGradedPolynomialModule_eventual_cech_exact (D : Presentations.Finite.GradedPolynomialModules.GradedModules.FiniteGradedPolynomialModule σ R) : |
| 69 | ∃ B : ℕ, ∀ d : ℤ, (B : ℤ) ≤ d → ∀ q : ℕ, |
| 70 | Cech.DimensionShift.ProjectiveCech.ModuleCechExactAt (σ := σ) R D.Carrier D.grading d q := by |
| 71 | obtain ⟨B, hB⟩ := exists_moduleCech_bound_above R (Fintype.card σ + 1) D |
| 72 | exact ⟨B, fun d hd q => hB d hd q (by omega)⟩ |
| 73 | |
| 74 | theorem moduleCech_eventual_exactness (M : Type (max u v)) [AddCommGroup M] [Module R M] |
| 75 | [Module (MvPolynomial σ R) M] [IsScalarTower R (MvPolynomial σ R) M] |
| 76 | (ℳ : ℤ → Submodule R M) [Decomposition ℳ] |
| 77 | [SetLike.GradedSMul (WeightedFreeModules.GradedModules.polynomialIntegerGrading (σ := σ) R) ℳ] |
| 78 | [Module.Finite (MvPolynomial σ R) M] : |
| 79 | ∃ B : ℕ, ∀ d : ℤ, (B : ℤ) ≤ d → ∀ q : ℕ, |
| 80 | Cech.DimensionShift.ProjectiveCech.ModuleCechExactAt (σ := σ) R M ℳ d q := |
| 81 | finiteGradedPolynomialModule_eventual_cech_exact R (Presentations.Finite.GradedPolynomialModules.GradedModules.FiniteGradedPolynomialModule.ofModule M ℳ) |
| 82 | |
| 83 | theorem moduleCech_eventual_exactness_explicit (M : Type (max u v)) [AddCommGroup M] [Module R M] |
| 84 | [Module (MvPolynomial σ R) M] [IsScalarTower R (MvPolynomial σ R) M] |
| 85 | (ℳ : ℤ → Submodule R M) [Decomposition ℳ] |
| 86 | [SetLike.GradedSMul (WeightedFreeModules.GradedModules.polynomialIntegerGrading (σ := σ) R) ℳ] |
| 87 | [Module.Finite (MvPolynomial σ R) M] : |
| 88 | ∃ B : ℕ, ∀ d : ℤ, (B : ℤ) ≤ d → |
| 89 | (∀ f : ModuleCech.Card.ProjectiveCech.ModuleCechFamily (σ := σ) R M, |
| 90 | ModuleCech.Card.ProjectiveCech.ModuleCechHomogeneous R M ℳ d f → ModuleCech.Card.ProjectiveCech.ModuleCechCardSupported R M 0 f → |
| 91 | ModuleCech.Card.ProjectiveCech.moduleCechDifferential R M f = 0 → f = 0) ∧ |
| 92 | (∀ q : ℕ, ∀ f : ModuleCech.Card.ProjectiveCech.ModuleCechFamily (σ := σ) R M, |
| 93 | ModuleCech.Card.ProjectiveCech.ModuleCechHomogeneous R M ℳ d f → ModuleCech.Card.ProjectiveCech.ModuleCechCardSupported R M (q + 1) f → |
| 94 | ModuleCech.Card.ProjectiveCech.moduleCechDifferential R M f = 0 → |
| 95 | ∃ g : ModuleCech.Card.ProjectiveCech.ModuleCechFamily (σ := σ) R M, |
| 96 | ModuleCech.Card.ProjectiveCech.ModuleCechHomogeneous R M ℳ d g ∧ ModuleCech.Card.ProjectiveCech.ModuleCechCardSupported R M q g ∧ |
| 97 | ModuleCech.Card.ProjectiveCech.moduleCechDifferential R M g = f) := by |
| 98 | obtain ⟨B, hB⟩ := moduleCech_eventual_exactness (σ := σ) R M ℳ |
| 99 | refine ⟨B, fun d hd => ⟨?_, ?_⟩⟩ |
| 100 | · intro f hf hcard hcycle |
| 101 | obtain ⟨g, _, hgcard, hgd⟩ := hB d hd 0 f hf hcard hcycle |
| 102 | have hdgcard := ModuleCech.Card.ProjectiveCech.moduleCechDifferential_card R M 0 g hgcard |
| 103 | funext s |
| 104 | by_cases hs : s.card = 0 |
| 105 | · have hs' : s.card ≠ 0 + 1 := by omega |
| 106 | exact (congrFun hgd s).symm.trans (hdgcard s hs') |
| 107 | · exact hcard s hs |
| 108 | · intro q f hf hcard hcycle |
| 109 | obtain ⟨g, hg, hgcard, hgd⟩ := hB d hd (q + 1) f hf hcard hcycle |
| 110 | exact ⟨g, hg, hgcard, hgd⟩ |
| 111 | |
| 112 | end |
| 113 | |
| 114 | end OAI.AlgebraicGeometry.HilbertScheme.Presentations.Graded.CechVanishing.ProjectiveCech |