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.Module.ChartCompatibility |
| 2 | import OAI.AlgebraicGeometry.HilbertScheme.Presentations.Polynomial.Cech |
| 3 | |
| 4 | /-! # Card -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.HilbertScheme.Presentations.ModuleCech.Card.ProjectiveCech |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! The finite projective Čech differential for actual localized modules. -/ |
| 11 | |
| 12 | open _root_.MvPolynomial |
| 13 | |
| 14 | universe u v w t |
| 15 | |
| 16 | variable {σ : Type u} [Fintype σ] [LinearOrder σ] |
| 17 | variable (R : Type v) [CommRing R] |
| 18 | variable (M : Type w) [AddCommGroup M] [Module R M] [Module (MvPolynomial σ R) M] |
| 19 | [IsScalarTower R (MvPolynomial σ R) M] |
| 20 | |
| 21 | abbrev ModuleCechFamily := (s : Finset σ) → Graded.ModuleRestriction.ProjectiveCech.ModuleChart R M s |
| 22 | |
| 23 | def moduleCechDifferential : ModuleCechFamily (σ := σ) R M →ₗ[R] ModuleCechFamily (σ := σ) R M where |
| 24 | toFun f s := ∑ i ∈ s, Cech.Signs.ProjectiveCech.alternatingSign R s i • |
| 25 | Graded.ModuleRestriction.ProjectiveCech.moduleChartRestriction R M (Finset.erase_subset i s) (f (s.erase i)) |
| 26 | map_add' f g := by |
| 27 | funext s |
| 28 | simp only [Pi.add_apply, map_add, smul_add, Finset.sum_add_distrib] |
| 29 | map_smul' r f := by |
| 30 | funext s |
| 31 | simp only [Pi.smul_apply, map_smul, RingHom.id_apply, Finset.smul_sum, smul_smul] |
| 32 | apply Finset.sum_congr rfl |
| 33 | intro i _ |
| 34 | rw [mul_comm r] |
| 35 | |
| 36 | def ModuleCechCardSupported (q : ℕ) (f : ModuleCechFamily (σ := σ) R M) : Prop := |
| 37 | ∀ s, s.card ≠ q → f s = 0 |
| 38 | |
| 39 | variable (ℳ : ℤ → Submodule R M) |
| 40 | |
| 41 | def ModuleCechHomogeneous (d : ℤ) (f : ModuleCechFamily (σ := σ) R M) : Prop := |
| 42 | ∀ s, f s ∈ Graded.ModuleRestriction.ProjectiveCech.moduleChartDegree R M ℳ s d |
| 43 | |
| 44 | omit [Fintype σ] in |
| 45 | theorem moduleCechDifferential_card (q : ℕ) (f : ModuleCechFamily (σ := σ) R M) |
| 46 | (hf : ModuleCechCardSupported R M q f) : |
| 47 | ModuleCechCardSupported R M (q + 1) (moduleCechDifferential R M f) := by |
| 48 | intro s hs |
| 49 | apply Finset.sum_eq_zero |
| 50 | intro i hi |
| 51 | have hcard : (s.erase i).card ≠ q := by |
| 52 | intro h |
| 53 | exact hs ((Finset.card_erase_add_one hi).symm.trans (congrArg (· + 1) h)) |
| 54 | rw [hf _ hcard, map_zero, smul_zero] |
| 55 | |
| 56 | omit [Fintype σ] in |
| 57 | theorem moduleCechDifferential_homogeneous |
| 58 | [SetLike.GradedSMul (WeightedFreeModules.GradedModules.polynomialIntegerGrading (σ := σ) R) ℳ] |
| 59 | (d : ℤ) (f : ModuleCechFamily (σ := σ) R M) (hf : ModuleCechHomogeneous R M ℳ d f) : |
| 60 | ModuleCechHomogeneous R M ℳ d (moduleCechDifferential R M f) := by |
| 61 | intro s |
| 62 | apply Submodule.sum_mem |
| 63 | intro i _ |
| 64 | exact Submodule.smul_mem _ _ |
| 65 | (Graded.ModuleRestriction.ProjectiveCech.moduleChartRestriction_degree R M ℳ (Finset.erase_subset i s) d _ (hf _)) |
| 66 | |
| 67 | omit [LinearOrder σ] [Module R M] [IsScalarTower R (MvPolynomial σ R) M] in |
| 68 | theorem moduleCech_bounded (q : ℕ) (hq : Fintype.card σ < q) |
| 69 | (f : ModuleCechFamily (σ := σ) R M) (hf : ModuleCechCardSupported R M q f) : f = 0 := by |
| 70 | funext s |
| 71 | apply hf s |
| 72 | exact ne_of_lt ((Finset.card_le_univ s).trans_lt hq) |
| 73 | |
| 74 | variable (ι : Type t) |
| 75 | |
| 76 | def freeCechCoordinate (i : ι) (f : ModuleCechFamily (σ := σ) R (ι →₀ MvPolynomial σ R)) : |
| 77 | Polynomial.Cech.ProjectiveCech.PolynomialCechFamily (σ := σ) R := |
| 78 | fun s => Localized.FreeCoordinates.ProjectiveCech.freeLocalizedEquiv R ι s (f s) i |
| 79 | |
| 80 | theorem freeCechCoordinate_differential (i : ι) |
| 81 | (f : ModuleCechFamily (σ := σ) R (ι →₀ MvPolynomial σ R)) : |
| 82 | freeCechCoordinate R ι i (moduleCechDifferential R (ι →₀ MvPolynomial σ R) f) = |
| 83 | Polynomial.Cech.ProjectiveCech.polynomialCechDifferential R (freeCechCoordinate R ι i f) := by |
| 84 | funext s |
| 85 | change Localized.FreeCoordinates.ProjectiveCech.freeLocalizedEquiv R ι s (∑ j ∈ s, Cech.Signs.ProjectiveCech.alternatingSign R s j • |
| 86 | Graded.ModuleRestriction.ProjectiveCech.moduleChartRestriction R (ι →₀ MvPolynomial σ R) (Finset.erase_subset j s) (f (s.erase j))) i = _ |
| 87 | simp only [map_sum, map_smul, Finsupp.coe_finsetSum, Finset.sum_apply, Finsupp.smul_apply, |
| 88 | Presentations.Module.ChartCompatibility.ProjectiveCech.freeLocalizedEquiv_restriction] |
| 89 | rfl |
| 90 | |
| 91 | end |
| 92 | |
| 93 | end OAI.AlgebraicGeometry.HilbertScheme.Presentations.ModuleCech.Card.ProjectiveCech |