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.CategoryTheory.Preadditive.Basic |
| 2 | import Mathlib.Algebra.BigOperators.Group.Finset.Sigma |
| 3 | import Mathlib.Data.Fintype.EquivFin |
| 4 | import Mathlib.Data.Fintype.BigOperators |
| 5 | |
| 6 | /-! # Factorization Spans -/ |
| 7 | |
| 8 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Section.FactorizationSpans |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! Finite sums of sections followed by morphisms compose. This keeps the |
| 13 | intermediate sheaf maps explicit and avoids choosing tensor reassociations. -/ |
| 14 | open _root_.CategoryTheory _root_.CategoryTheory.Preadditive |
| 15 | open scoped BigOperators |
| 16 | universe u v |
| 17 | variable {C : Type u} [Category.{v} C] [Preadditive C] |
| 18 | |
| 19 | def SectionFactorizationSpan (O M N : C) : Prop := |
| 20 | ∀ t : O ⟶ N, ∃ (n : ℕ) (s : Fin n → (O ⟶ M)) (a : Fin n → (M ⟶ N)), |
| 21 | t = ∑ i, s i ≫ a i |
| 22 | |
| 23 | namespace SectionFactorizationSpan |
| 24 | variable {O L M N : C} |
| 25 | |
| 26 | theorem refl (O M : C) : SectionFactorizationSpan O M M := by |
| 27 | intro t |
| 28 | exact ⟨1, fun _ => t, fun _ => 𝟙 M, by simp⟩ |
| 29 | |
| 30 | theorem trans (h : SectionFactorizationSpan O L M) (k : SectionFactorizationSpan O M N) : |
| 31 | SectionFactorizationSpan O L N := by |
| 32 | classical |
| 33 | intro t |
| 34 | obtain ⟨n, s, a, ht⟩ := k t |
| 35 | choose m v b hv using fun i => h (s i) |
| 36 | let κ := Σ i : Fin n, Fin (m i) |
| 37 | let e := Fintype.equivFin κ |
| 38 | let w : κ → (O ⟶ L) := fun i => v i.1 i.2 |
| 39 | let c : κ → (L ⟶ N) := fun i => b i.1 i.2 ≫ a i.1 |
| 40 | refine ⟨Fintype.card κ, fun i => w (e.symm i), fun i => c (e.symm i), ?_⟩ |
| 41 | calc |
| 42 | t = ∑ i, (∑ j, v i j ≫ b i j) ≫ a i := by rw [ht]; simp only [← hv] |
| 43 | _ = ∑ i, ∑ j, v i j ≫ (b i j ≫ a i) := by simp only [sum_comp, Category.assoc] |
| 44 | _ = ∑ i : κ, w i ≫ c i := by rw [Fintype.sum_sigma] |
| 45 | _ = ∑ i, w (e.symm i) ≫ c (e.symm i) := (e.symm.sum_comp (fun i => w i ≫ c i)).symm |
| 46 | |
| 47 | theorem sourceIso (h : SectionFactorizationSpan O L N) (e : L ≅ M) : |
| 48 | SectionFactorizationSpan O M N := by |
| 49 | intro t |
| 50 | obtain ⟨n, s, a, ht⟩ := h t |
| 51 | exact ⟨n, fun i => s i ≫ e.hom, fun i => e.inv ≫ a i, |
| 52 | by simpa only [Category.assoc, Iso.hom_inv_id_assoc] using ht⟩ |
| 53 | |
| 54 | theorem targetIso (h : SectionFactorizationSpan O L M) (e : M ≅ N) : |
| 55 | SectionFactorizationSpan O L N := by |
| 56 | intro t |
| 57 | obtain ⟨n, s, a, ht⟩ := h (t ≫ e.inv) |
| 58 | refine ⟨n, s, fun i => a i ≫ e.hom, ?_⟩ |
| 59 | have he := congrArg (fun f => f ≫ e.hom) ht |
| 60 | simpa only [Category.assoc, Iso.inv_hom_id, Category.comp_id, sum_comp] using he |
| 61 | |
| 62 | end SectionFactorizationSpan |
| 63 | |
| 64 | end |
| 65 | |
| 66 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Section.FactorizationSpans |