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.Localized.DegreePieces |
| 2 | |
| 3 | /-! # Grading -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.HilbertScheme.Presentations.Localized.Grading.GradedModules |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! Localization at a homogeneous element has a genuine integer grading. -/ |
| 10 | |
| 11 | open DirectSum |
| 12 | |
| 13 | universe u v w t |
| 14 | |
| 15 | variable {R : Type u} [CommRing R] {A : Type v} [CommRing A] [Algebra R A] |
| 16 | variable {M : Type w} [AddCommGroup M] [Module R M] [Module A M] [IsScalarTower R A M] |
| 17 | variable (𝒜 : ℤ → Submodule R A) [GradedAlgebra 𝒜] |
| 18 | variable (ℳ : ℤ → Submodule R M) [SetLike.GradedSMul 𝒜 ℳ] |
| 19 | |
| 20 | theorem localizedDegree_common_numerator {ι : Type t} [Fintype ι] |
| 21 | (a : A) (e : ℤ) (ha : a ∈ 𝒜 e) (d : ι → ℤ) (f : ι → Presentations.Module.Fractions.GradedModules.AwayModule a M) |
| 22 | (hf : ∀ i, f i ∈ DegreePieces.GradedModules.localizedDegreePiece ℳ a e (d i)) : |
| 23 | ∃ (k : ℕ) (m : ι → M), ∀ i, |
| 24 | m i ∈ ℳ (d i + (k : ℤ) * e) ∧ Presentations.Module.Fractions.GradedModules.moduleFractionMap (R := R) a k (m i) = f i := by |
| 25 | classical |
| 26 | choose k m hm he using fun i => (DegreePieces.GradedModules.mem_localizedDegreePiece_iff 𝒜 ℳ a e (ha) (d i) (f i)).mp (hf i) |
| 27 | let K := ∑ i, k i |
| 28 | have hK (i : ι) : k i ≤ K := Finset.single_le_sum (fun _ _ => Nat.zero_le _) (Finset.mem_univ i) |
| 29 | have hstage (i : ι) : f i ∈ DegreePieces.GradedModules.localizedDegreeStage ℳ a e (d i) K := by |
| 30 | obtain ⟨l, hl⟩ := Nat.exists_eq_add_of_le (hK i) |
| 31 | rw [hl] |
| 32 | exact DegreePieces.GradedModules.localizedDegreeStage_le_add 𝒜 ℳ a e ha (d i) (k i) l ⟨m i, hm i, he i⟩ |
| 33 | choose m' hm' he' using hstage |
| 34 | exact ⟨K, m', fun i => ⟨hm' i, he' i⟩⟩ |
| 35 | |
| 36 | variable [Decomposition ℳ] |
| 37 | |
| 38 | theorem localizedDegree_finite_sum_zero {ι : Type t} [Fintype ι] |
| 39 | (a : A) (e : ℤ) (ha : a ∈ 𝒜 e) (d : ι → ℤ) (hd : Function.Injective d) |
| 40 | (f : ι → Presentations.Module.Fractions.GradedModules.AwayModule a M) (hf : ∀ i, f i ∈ DegreePieces.GradedModules.localizedDegreePiece ℳ a e (d i)) |
| 41 | (hsum : ∑ i, f i = 0) : ∀ i, f i = 0 := by |
| 42 | obtain ⟨k, m, hm⟩ := localizedDegree_common_numerator 𝒜 ℳ a e ha d f hf |
| 43 | have hzero : Presentations.Module.Fractions.GradedModules.moduleFractionMap (R := R) a k (∑ i, m i) = 0 := by |
| 44 | rw [map_sum] |
| 45 | simpa only [(hm _).2] using hsum |
| 46 | obtain ⟨l, hl⟩ := (Presentations.Module.Fractions.GradedModules.moduleFractionMap_eq_zero (R := R) a k _).mp hzero |
| 47 | rw [Finset.smul_sum] at hl |
| 48 | have hmem (i : ι) : a ^ l • m i ∈ ℳ ((l : ℤ) * e + (d i + (k : ℤ) * e)) := |
| 49 | SetLike.GradedSMul.smul_mem (by simpa only [nsmul_eq_mul] using SetLike.pow_mem_graded l ha) (hm i).1 |
| 50 | have hinj : Function.Injective (fun i => (l : ℤ) * e + (d i + (k : ℤ) * e)) := by |
| 51 | intro i j hij |
| 52 | exact hd (add_right_cancel (add_left_cancel hij)) |
| 53 | have hind := (Decomposition.isInternal ℳ).submodule_iSupIndep.comp hinj |
| 54 | have hz := (iSupIndep_iff_finsetSum_eq_zero_imp_eq_zero _).mp hind Finset.univ |
| 55 | (fun i => a ^ l • m i) (fun i _ => hmem i) hl |
| 56 | intro i |
| 57 | rw [← (hm i).2, Presentations.Module.Fractions.GradedModules.moduleFractionMap_eq_zero] |
| 58 | exact ⟨l, hz i (Finset.mem_univ i)⟩ |
| 59 | |
| 60 | theorem localizedDegree_iSupIndep (a : A) (e : ℤ) (ha : a ∈ 𝒜 e) : |
| 61 | iSupIndep (DegreePieces.GradedModules.localizedDegreePiece ℳ a e) := by |
| 62 | classical |
| 63 | rw [iSupIndep_iff_finsetSum_eq_zero_imp_eq_zero] |
| 64 | intro s f hf hsum i hi |
| 65 | have hs : ∑ j : s, f j.val = 0 := by simpa only [s.sum_coe_sort] using hsum |
| 66 | exact localizedDegree_finite_sum_zero 𝒜 ℳ a e ha |
| 67 | (Subtype.val : s → ℤ) Subtype.val_injective (fun j => f j.val) |
| 68 | (fun j => hf j.val j.property) hs ⟨i, hi⟩ |
| 69 | |
| 70 | theorem localizedDegree_iSup_eq_top (a : A) (e : ℤ) : |
| 71 | (⨆ d, DegreePieces.GradedModules.localizedDegreePiece ℳ a e d) = ⊤ := by |
| 72 | apply top_unique |
| 73 | intro x hx |
| 74 | clear hx |
| 75 | obtain ⟨k, m, rfl⟩ := Presentations.Module.Fractions.GradedModules.moduleFractionMap_surj (R := R) a x |
| 76 | induction m using Decomposition.inductionOn ℳ with |
| 77 | | zero => |
| 78 | rw [map_zero] |
| 79 | exact Submodule.zero_mem _ |
| 80 | | homogeneous m => |
| 81 | rename_i d |
| 82 | apply (le_iSup (DegreePieces.GradedModules.localizedDegreePiece ℳ a e) (d - (k : ℤ) * e)) |
| 83 | apply DegreePieces.GradedModules.moduleFractionMap_mem_degree ℳ a e (d - (k : ℤ) * e) k m.val |
| 84 | simpa only [sub_add_cancel] using m.property |
| 85 | | add x y hx hy => |
| 86 | rw [map_add] |
| 87 | exact Submodule.add_mem _ hx hy |
| 88 | |
| 89 | @[instance_reducible] |
| 90 | def localizedDegreeDecomposition (a : A) (e : ℤ) (ha : a ∈ 𝒜 e) : |
| 91 | Decomposition (DegreePieces.GradedModules.localizedDegreePiece ℳ a e) := |
| 92 | (DirectSum.isInternal_submodule_of_iSupIndep_of_iSup_eq_top |
| 93 | (localizedDegree_iSupIndep 𝒜 ℳ a e ha) (localizedDegree_iSup_eq_top ℳ a e)).chooseDecomposition |
| 94 | |
| 95 | end |
| 96 | |
| 97 | end OAI.AlgebraicGeometry.HilbertScheme.Presentations.Localized.Grading.GradedModules |