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.Algebra.Homology.Homotopy |
| 2 | |
| 3 | /-! # Homotopy Refined -/ |
| 4 | |
| 5 | namespace OAI.NumberTheory.PadicHodge.GeometricComparison.HomotopyRefined.HomotopyRefinedSquare |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! Two comparison homotopies through a common refinement give the |
| 10 | original comparison square up to homotopy. -/ |
| 11 | |
| 12 | open _root_.CategoryTheory |
| 13 | |
| 14 | variable {A : Type*} [Category* A] [Preadditive A] |
| 15 | {D₂ D₁ K₂ K₁ I₂ I₁ L : CochainComplex A ℕ} |
| 16 | (r₂ : D₂ ⟶ K₂) (r₁ : D₁ ⟶ K₁) (d : D₂ ⟶ D₁) |
| 17 | (c₂ : K₂ ⟶ I₂) (c₁ : K₁ ⟶ I₁) (f : I₂ ⟶ I₁) |
| 18 | (s₂ : K₂ ⟶ L) (s₁ : K₁ ⟶ L) (k : L ⟶ I₁) |
| 19 | (h₂ : Homotopy (c₂ ≫ f) (s₂ ≫ k)) (h₁ : Homotopy c₁ (s₁ ≫ k)) |
| 20 | (hs : r₂ ≫ s₂ = d ≫ r₁ ≫ s₁) |
| 21 | |
| 22 | def homotopy : Homotopy ((r₂ ≫ c₂) ≫ f) (d ≫ (r₁ ≫ c₁)) := by |
| 23 | have h : r₂ ≫ (s₂ ≫ k) = (d ≫ r₁) ≫ (s₁ ≫ k) := |
| 24 | (Category.assoc _ _ _).symm.trans |
| 25 | ((congrArg (fun q => q ≫ k) hs).trans |
| 26 | ((congrArg (fun q => q ≫ k) (Category.assoc _ _ _).symm).trans (Category.assoc _ _ _))) |
| 27 | exact (Homotopy.ofEq (Category.assoc r₂ c₂ f)).trans |
| 28 | ((h₂.compLeft r₂).trans ((Homotopy.ofEq h).trans |
| 29 | ((h₁.compLeft (d ≫ r₁)).symm.trans (Homotopy.ofEq (Category.assoc d r₁ c₁))))) |
| 30 | |
| 31 | end |
| 32 | |
| 33 | end OAI.NumberTheory.PadicHodge.GeometricComparison.HomotopyRefined.HomotopyRefinedSquare |