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 | /-! # Sectioned Incoming Homotopy -/ |
| 4 | |
| 5 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.SectionedIncomingHomotopy |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! A homotopy of incoming-site comparisons descends through the |
| 10 | actual natural section isomorphism, including a change of source. -/ |
| 11 | |
| 12 | open _root_.CategoryTheory |
| 13 | |
| 14 | set_option backward.isDefEq.respectTransparency false |
| 15 | set_option backward.isDefEq.respectTransparency.types false |
| 16 | |
| 17 | universe u v w a b c |
| 18 | variable {A : Type u} [Category.{a} A] [Preadditive A] |
| 19 | {B : Type v} [Category.{b} B] [Preadditive B] |
| 20 | {C : Type w} [Category.{c} C] [Preadditive C] |
| 21 | (R : A ⥤ B) [R.Additive] (S : A ⥤ C) [S.Additive] (T : B ⥤ C) [T.Additive] |
| 22 | (e : S ≅ R ⋙ T) |
| 23 | |
| 24 | def map {K L : CochainComplex A ℕ} |
| 25 | (f : (R.mapHomologicalComplex (.up ℕ)).obj K ⟶ (R.mapHomologicalComplex (.up ℕ)).obj L) : |
| 26 | (S.mapHomologicalComplex (.up ℕ)).obj K ⟶ (S.mapHomologicalComplex (.up ℕ)).obj L := |
| 27 | ((NatIso.mapHomologicalComplex e (.up ℕ)).app K).hom ≫ |
| 28 | (T.mapHomologicalComplex (.up ℕ)).map f ≫ |
| 29 | ((NatIso.mapHomologicalComplex e (.up ℕ)).app L).inv |
| 30 | |
| 31 | theorem precompose {K L J : CochainComplex A ℕ} (a : K ⟶ L) |
| 32 | (f : (R.mapHomologicalComplex (.up ℕ)).obj L ⟶ (R.mapHomologicalComplex (.up ℕ)).obj J) : |
| 33 | SectionedIncomingHomotopy.map R S T e ((R.mapHomologicalComplex (.up ℕ)).map a ≫ f) = |
| 34 | (S.mapHomologicalComplex (.up ℕ)).map a ≫ SectionedIncomingHomotopy.map R S T e f := by |
| 35 | have hn : (S.mapHomologicalComplex (.up ℕ)).map a ≫ |
| 36 | ((NatIso.mapHomologicalComplex e (.up ℕ)).app L).hom = |
| 37 | ((NatIso.mapHomologicalComplex e (.up ℕ)).app K).hom ≫ |
| 38 | (T.mapHomologicalComplex (.up ℕ)).map ((R.mapHomologicalComplex (.up ℕ)).map a) := |
| 39 | (NatIso.mapHomologicalComplex e (.up ℕ)).hom.naturality a |
| 40 | dsimp only [SectionedIncomingHomotopy.map] |
| 41 | rw [Functor.map_comp] |
| 42 | simp only [← Category.assoc] |
| 43 | rw [← hn] |
| 44 | |
| 45 | def homotopy {K L J : CochainComplex A ℕ} (a : K ⟶ L) |
| 46 | (f : (R.mapHomologicalComplex (.up ℕ)).obj K ⟶ (R.mapHomologicalComplex (.up ℕ)).obj J) |
| 47 | (g : (R.mapHomologicalComplex (.up ℕ)).obj L ⟶ (R.mapHomologicalComplex (.up ℕ)).obj J) |
| 48 | (h : Homotopy f ((R.mapHomologicalComplex (.up ℕ)).map a ≫ g)) : |
| 49 | Homotopy (SectionedIncomingHomotopy.map R S T e f) ((S.mapHomologicalComplex (.up ℕ)).map a ≫ SectionedIncomingHomotopy.map R S T e g) := |
| 50 | (((T.mapHomotopy h).compRight ((NatIso.mapHomologicalComplex e (.up ℕ)).app J).inv).compLeft |
| 51 | ((NatIso.mapHomologicalComplex e (.up ℕ)).app K).hom).trans |
| 52 | (Homotopy.ofEq (precompose R S T e a g)) |
| 53 | |
| 54 | end |
| 55 | |
| 56 | end OAI.NumberTheory.PadicHodge.IntegralComparison.SectionedIncomingHomotopy |