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.Iso |
| 2 | import Mathlib.CategoryTheory.Opposites |
| 3 | |
| 4 | /-! # Morphism Squares -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.AbelianScheme.FrobeniusKernel.MorphismSquares.Construction |
| 7 | |
| 8 | /-! Composition and change of representation for morphism squares. -/ |
| 9 | |
| 10 | open _root_.CategoryTheory |
| 11 | |
| 12 | theorem morphismSquare_comp {C : Type*} [Category C] {X X' Y Y' Z Z' : C} |
| 13 | (a : X ⟶ X') (b : Y ⟶ Y') (c : Z ⟶ Z') |
| 14 | (f : X ⟶ Y) (f' : X' ⟶ Y') (g : Y ⟶ Z) (g' : Y' ⟶ Z') |
| 15 | (hf : a ≫ f' = f ≫ b) (hg : b ≫ g' = g ≫ c) : |
| 16 | a ≫ (f' ≫ g') = (f ≫ g) ≫ c := by |
| 17 | rw [← Category.assoc, hf, Category.assoc, hg, ← Category.assoc] |
| 18 | |
| 19 | theorem morphismSquare_inverse {C : Type*} [Category C] {X X' Y Y' : C} |
| 20 | (e : X ≅ Y) (e' : X' ≅ Y') (a : X ⟶ X') (b : Y ⟶ Y') |
| 21 | (h : a ≫ e'.hom = e.hom ≫ b) : b ≫ e'.inv = e.inv ≫ a := by |
| 22 | apply (cancel_epi e.hom).mp |
| 23 | rw [← Category.assoc, ← h, Category.assoc, e'.hom_inv_id, Category.comp_id, |
| 24 | e.hom_inv_id_assoc] |
| 25 | |
| 26 | theorem morphismSquare_sourceIso {C : Type*} [Category C] {X X' Y Y' Z Z' : C} |
| 27 | (e : X ≅ Y) (e' : X' ≅ Y') (a : X ⟶ X') (b : Y ⟶ Y') (c : Z ⟶ Z') |
| 28 | (f : X ⟶ Z) (f' : X' ⟶ Z') |
| 29 | (he : a ≫ e'.hom = e.hom ≫ b) (hf : a ≫ f' = f ≫ c) : |
| 30 | b ≫ (e'.inv ≫ f') = (e.inv ≫ f) ≫ c := |
| 31 | morphismSquare_comp b a c e.inv e'.inv f f' (morphismSquare_inverse e e' a b he) hf |
| 32 | |
| 33 | theorem morphismSquare_op_map {C D : Type*} [Category C] [Category D] |
| 34 | (F : Cᵒᵖ ⥤ D) {X X' Y Y' : C} (a : X ⟶ X') (b : Y ⟶ Y') |
| 35 | (f : X ⟶ Y) (f' : X' ⟶ Y') (h : a ≫ f' = f ≫ b) : |
| 36 | F.map b.op ≫ F.map f.op = F.map f'.op ≫ F.map a.op := by |
| 37 | simpa only [op_comp, Functor.map_comp] using congrArg (fun g => F.map g.op) h.symm |
| 38 | |
| 39 | end OAI.AlgebraicGeometry.AbelianScheme.FrobeniusKernel.MorphismSquares.Construction |