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.Adjunction.Additive |
| 2 | import Mathlib.CategoryTheory.Linear.LinearFunctor |
| 3 | |
| 4 | /-! # Linear Adjunction -/ |
| 5 | |
| 6 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.LinearAdjunction |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! |
| 11 | # IntegralComparison: coefficient linearity of left adjoints and their Hom equivalences |
| 12 | -/ |
| 13 | |
| 14 | open _root_.CategoryTheory |
| 15 | |
| 16 | universe u v u' v' t |
| 17 | |
| 18 | variable (R : Type t) [CommRing R] {C : Type u} [Category.{v} C] [Preadditive C] [Linear R C] |
| 19 | {D : Type u'} [Category.{v'} D] [Preadditive D] [Linear R D] |
| 20 | {F : C ⥤ D} {G : D ⥤ C} (adj : F ⊣ G) [G.Linear R] |
| 21 | |
| 22 | include adj in |
| 23 | theorem left_linear : F.Linear R where |
| 24 | map_smul {X Y} f r := by |
| 25 | apply (adj.homEquiv X (F.obj Y)).injective |
| 26 | rw [adj.homEquiv_unit, adj.homEquiv_unit, G.map_smul, Linear.comp_smul] |
| 27 | exact (adj.unit.naturality (r • f)).symm.trans |
| 28 | ((Linear.smul_comp _ _ _ r f (adj.unit.app Y)).trans |
| 29 | (congrArg (fun g => r • g) (adj.unit.naturality f))) |
| 30 | |
| 31 | def homLinearEquiv [F.Additive] (X : C) (Y : D) : (F.obj X ⟶ Y) ≃ₗ[R] (X ⟶ G.obj Y) := |
| 32 | { adj.homEquiv X Y with |
| 33 | map_add' := (adj.homAddEquiv X Y).map_add |
| 34 | map_smul' := by |
| 35 | intro r f |
| 36 | change adj.homEquiv X Y (r • f) = r • adj.homEquiv X Y f |
| 37 | rw [adj.homEquiv_unit, adj.homEquiv_unit, G.map_smul, Linear.comp_smul] } |
| 38 | |
| 39 | end |
| 40 | |
| 41 | end OAI.NumberTheory.PadicHodge.IntegralComparison.LinearAdjunction |