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.Triangulated.Pretriangulated |
| 2 | import Mathlib.CategoryTheory.Linear.Basic |
| 3 | import Mathlib.LinearAlgebra.Isomorphisms |
| 4 | import Mathlib.RingTheory.Finiteness.Finsupp |
| 5 | import Mathlib.RingTheory.Noetherian.Basic |
| 6 | |
| 7 | /-! # Triangle Finiteness Finite -/ |
| 8 | |
| 9 | namespace OAI.NumberTheory.PadicHodge.GeometricComparison.TriangleFinitenessFinite.TriangleFiniteness |
| 10 | |
| 11 | noncomputable section |
| 12 | |
| 13 | /-! Finite outer Hom modules in a distinguished triangle give a finite middle Hom module. -/ |
| 14 | |
| 15 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.CategoryTheory.Pretriangulated |
| 16 | |
| 17 | universe u v |
| 18 | |
| 19 | variable (R : Type*) [CommRing R] [IsNoetherianRing R] |
| 20 | {C : Type u} [Category.{v} C] [Preadditive C] [HasZeroObject C] [HasShift C ℤ] |
| 21 | [∀ n : ℤ, (shiftFunctor C n).Additive] [Pretriangulated C] [Linear R C] |
| 22 | |
| 23 | theorem finite (T : Triangle C) (hT : T ∈ distTriang C) (A : C) |
| 24 | [Module.Finite R (A ⟶ T.obj₁)] [Module.Finite R (A ⟶ T.obj₃)] : |
| 25 | Module.Finite R (A ⟶ T.obj₂) := by |
| 26 | let f := Linear.rightComp R A T.mor₁ |
| 27 | let g := Linear.rightComp R A T.mor₂ |
| 28 | have hker : g.ker = f.range := by |
| 29 | ext x |
| 30 | constructor |
| 31 | · intro hx |
| 32 | obtain ⟨a, ha⟩ := T.coyoneda_exact₂ hT x hx |
| 33 | exact ⟨a, ha.symm⟩ |
| 34 | · rintro ⟨a, rfl⟩ |
| 35 | change (a ≫ T.mor₁) ≫ T.mor₂ = 0 |
| 36 | rw [Category.assoc, comp_distTriang_mor_zero₁₂ T hT, comp_zero] |
| 37 | let : Module.Finite R f.range := Module.Finite.range f |
| 38 | let : Module.Finite R g.range := |
| 39 | Module.Finite.of_injective g.range.subtype Subtype.val_injective |
| 40 | let : Module.Finite R ((A ⟶ T.obj₂) ⧸ f.range) := by |
| 41 | rw [← hker] |
| 42 | exact Module.Finite.equiv g.quotKerEquivRange.symm |
| 43 | exact Module.Finite.of_submodule_quotient f.range |
| 44 | |
| 45 | end |
| 46 | |
| 47 | end OAI.NumberTheory.PadicHodge.GeometricComparison.TriangleFinitenessFinite.TriangleFiniteness |