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 Mathlib.RingTheory.GradedAlgebra.Homogeneous.Submodule |
| 2 | import Mathlib.RingTheory.Noetherian.Basic |
| 3 | |
| 4 | /-! # Module Generators -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.HilbertScheme.Presentations.Graded.ModuleGenerators.GradedModules |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! |
| 11 | Homogeneous generators and kernels for graded modules. These give the |
| 12 | finite graded presentations needed for the projective Hilbert-family |
| 13 | argument, with no extra representability assumptions. |
| 14 | -/ |
| 15 | |
| 16 | open DirectSum |
| 17 | |
| 18 | universe u v w t |
| 19 | |
| 20 | variable {A : Type u} [Semiring A] {M : Type v} [AddCommMonoid M] [Module A M] |
| 21 | variable {ι : Type w} [DecidableEq ι] {σ : Type t} [SetLike σ M] [AddSubmonoidClass σ M] |
| 22 | variable (ℳ : ι → σ) [Decomposition ℳ] |
| 23 | |
| 24 | theorem span_homogeneous_members (P : Submodule A M) (hP : P.IsHomogeneous ℳ) : |
| 25 | Submodule.span A {m : M | m ∈ P ∧ ∃ d, m ∈ ℳ d} = P := by |
| 26 | apply le_antisymm |
| 27 | · exact Submodule.span_le.mpr (fun _ hm => hm.1) |
| 28 | · intro m hm |
| 29 | classical |
| 30 | rw [← DirectSum.sum_support_decompose ℳ m] |
| 31 | apply Submodule.sum_mem |
| 32 | intro d _ |
| 33 | exact Submodule.subset_span ⟨hP d hm, d, (DirectSum.decompose ℳ m d).property⟩ |
| 34 | |
| 35 | theorem exists_finite_homogeneous_generators (P : Submodule A M) (hP : P.IsHomogeneous ℳ) |
| 36 | (hfg : P.FG) : |
| 37 | ∃ s : Finset M, Submodule.span A (s : Set M) = P ∧ ∀ m ∈ s, ∃ d, m ∈ ℳ d := by |
| 38 | have hs := span_homogeneous_members ℳ P hP |
| 39 | have hfg' : (Submodule.span A {m : M | m ∈ P ∧ ∃ d, m ∈ ℳ d}).FG := hs.symm ▸ hfg |
| 40 | obtain ⟨s, hsub, hspan⟩ := (Submodule.fg_span_iff_fg_span_finset_subset _).mp hfg' |
| 41 | exact ⟨s, hspan.symm.trans hs, fun m hm => (hsub hm).2⟩ |
| 42 | |
| 43 | theorem noetherian_homogeneous_generators [IsNoetherian A M] |
| 44 | (P : Submodule A M) (hP : P.IsHomogeneous ℳ) : |
| 45 | ∃ s : Finset M, Submodule.span A (s : Set M) = P ∧ ∀ m ∈ s, ∃ d, m ∈ ℳ d := |
| 46 | exists_finite_homogeneous_generators ℳ P hP (IsNoetherian.noetherian P) |
| 47 | |
| 48 | variable {N : Type*} [AddCommMonoid N] {τ : Type*} [SetLike τ N] [AddSubmonoidClass τ N] |
| 49 | variable (𝒩 : ι → τ) [Decomposition 𝒩] |
| 50 | |
| 51 | omit [Semiring A] [Module A M] in |
| 52 | theorem map_homogeneous_component (f : M →+ N) (hf : ∀ d m, m ∈ ℳ d → f m ∈ 𝒩 d) |
| 53 | (d : ι) (m : M) : |
| 54 | f (DirectSum.decompose ℳ m d).val = (DirectSum.decompose 𝒩 (f m) d).val := by |
| 55 | induction m using DirectSum.Decomposition.inductionOn ℳ with |
| 56 | | zero => simp |
| 57 | | homogeneous m => |
| 58 | rename_i i |
| 59 | by_cases h : i = d |
| 60 | · subst i |
| 61 | rw [DirectSum.decompose_of_mem_same ℳ m.property, |
| 62 | DirectSum.decompose_of_mem_same 𝒩 (hf d m.val m.property)] |
| 63 | · rw [DirectSum.decompose_of_mem_ne ℳ m.property h, |
| 64 | DirectSum.decompose_of_mem_ne 𝒩 (hf i m.val m.property) h, map_zero] |
| 65 | | add x y hx hy => |
| 66 | rw [DirectSum.decompose_add, map_add, DirectSum.decompose_add] |
| 67 | change f ((DirectSum.decompose ℳ x d).val + (DirectSum.decompose ℳ y d).val) = |
| 68 | (DirectSum.decompose 𝒩 (f x) d).val + (DirectSum.decompose 𝒩 (f y) d).val |
| 69 | rw [map_add, hx, hy] |
| 70 | |
| 71 | variable [Module A N] |
| 72 | |
| 73 | theorem homogeneous_kernel (f : M →ₗ[A] N) (hf : ∀ d m, m ∈ ℳ d → f m ∈ 𝒩 d) : |
| 74 | f.ker.IsHomogeneous ℳ := by |
| 75 | intro d m hm |
| 76 | change f (DirectSum.decompose ℳ m d).val = 0 |
| 77 | refine (map_homogeneous_component ℳ 𝒩 f.toAddMonoidHom hf d m).trans ?_ |
| 78 | change (DirectSum.decompose 𝒩 (f m) d).val = 0 |
| 79 | change f m = 0 at hm |
| 80 | rw [hm, DirectSum.decompose_zero] |
| 81 | rfl |
| 82 | |
| 83 | end |
| 84 | |
| 85 | end OAI.AlgebraicGeometry.HilbertScheme.Presentations.Graded.ModuleGenerators.GradedModules |