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.Sites.SheafCohomology.Cech |
| 2 | |
| 3 | /-! # Local -/ |
| 4 | |
| 5 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.Cech.Local.Comparison |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! Compatible local comparisons induce a map of the original Cech complexes. -/ |
| 10 | |
| 11 | open _root_.CategoryTheory Limits Opposite Simplicial |
| 12 | |
| 13 | universe u v w uA vA |
| 14 | |
| 15 | variable {C : Type u} [Category.{v} C] {A : Type uA} [Category.{vA} A] |
| 16 | [HasProducts.{w} A] [Preadditive A] |
| 17 | (E : SimplicialObject (FormalCoproduct.{w} C)) (F G : Cᵒᵖ ⥤ A) |
| 18 | (a : ∀ (n : SimplexCategory) (i : (E.obj (op n)).I), |
| 19 | F.obj (op ((E.obj (op n)).obj i)) ⟶ G.obj (op ((E.obj (op n)).obj i))) |
| 20 | (ha : ∀ {m n : SimplexCategory} (f : m ⟶ n) (i : (E.obj (op n)).I), |
| 21 | F.map ((E.map f.op).φ i).op ≫ a n i = |
| 22 | a m ((E.map f.op).f i) ≫ G.map ((E.map f.op).φ i).op) |
| 23 | |
| 24 | def cosimplicialMap : (FormalCoproduct.cosimplicialObjectFunctor E).obj F ⟶ |
| 25 | (FormalCoproduct.cosimplicialObjectFunctor E).obj G where |
| 26 | app n := Limits.Pi.map (a n) |
| 27 | naturality m n f := by |
| 28 | apply Limits.Pi.hom_ext |
| 29 | intro i |
| 30 | change ((Limits.Pi.lift (fun j : (E.obj (op n)).I => |
| 31 | Limits.Pi.π (fun l => F.obj (op ((E.obj (op m)).obj l))) ((E.map f.op).f j) ≫ |
| 32 | F.map ((E.map f.op).φ j).op)) ≫ Limits.Pi.map (a n)) ≫ |
| 33 | Limits.Pi.π (fun j => G.obj (op ((E.obj (op n)).obj j))) i = |
| 34 | (Limits.Pi.map (a m) ≫ Limits.Pi.lift (fun j : (E.obj (op n)).I => |
| 35 | Limits.Pi.π (fun l => G.obj (op ((E.obj (op m)).obj l))) ((E.map f.op).f j) ≫ |
| 36 | G.map ((E.map f.op).φ j).op)) ≫ |
| 37 | Limits.Pi.π (fun j => G.obj (op ((E.obj (op n)).obj j))) i |
| 38 | simpa only [Category.assoc, Limits.Pi.map_π, Limits.Pi.lift_comp_π, |
| 39 | Limits.Pi.lift_comp_π_assoc, Limits.Pi.map_π_assoc] using |
| 40 | congrArg (fun t => Limits.Pi.π (fun j => F.obj (op ((E.obj (op m)).obj j))) ((E.map f.op).f i) ≫ t) |
| 41 | (ha f i) |
| 42 | |
| 43 | def map : (FormalCoproduct.cochainComplexFunctor E).obj F ⟶ |
| 44 | (FormalCoproduct.cochainComplexFunctor E).obj G := |
| 45 | (AlgebraicTopology.alternatingCofaceMapComplex A).map (cosimplicialMap E F G a ha) |
| 46 | |
| 47 | theorem map_component (n : ℕ) : (Comparison.map E F G a ha).f n = Limits.Pi.map (a ⦋n⦌) := rfl |
| 48 | |
| 49 | variable [∀ n i, IsIso (a n i)] |
| 50 | |
| 51 | instance cosimplicialMap_isIso : IsIso (cosimplicialMap E F G a ha) := by |
| 52 | have (n : SimplexCategory) : IsIso ((cosimplicialMap E F G a ha).app n) := by |
| 53 | change IsIso (Limits.Pi.map (a n)) |
| 54 | infer_instance |
| 55 | exact NatIso.isIso_of_isIso_app (cosimplicialMap E F G a ha) |
| 56 | |
| 57 | instance map_isIso : IsIso (Comparison.map E F G a ha) := by |
| 58 | let : IsIso (cosimplicialMap E F G a ha) := cosimplicialMap_isIso E F G a ha |
| 59 | exact CategoryTheory.Functor.map_isIso (AlgebraicTopology.alternatingCofaceMapComplex A) |
| 60 | (cosimplicialMap E F G a ha) |
| 61 | |
| 62 | end |
| 63 | |
| 64 | end OAI.NumberTheory.PadicHodge.IntegralComparison.Cech.Local.Comparison |