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.Category.ModuleCat.ChangeOfRings |
| 2 | |
| 3 | /-! # Twisted Conjugation -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.Crystalline.Cohomology.Module.TwistedConjugation.ModuleTwistedConjugation |
| 6 | |
| 7 | /-! # Evaluate a twisted module action through an actual module isomorphism -/ |
| 8 | |
| 9 | open _root_.CategoryTheory |
| 10 | |
| 11 | universe u v |
| 12 | |
| 13 | variable {R : Type u} [Ring R] (φ : R →+* R) {M N : ModuleCat.{v} R} |
| 14 | (e : M ≅ N) (f : M ⟶ (ModuleCat.restrictScalars φ).obj M) |
| 15 | (g : N ⟶ (ModuleCat.restrictScalars φ).obj N) |
| 16 | (h : f ≫ (ModuleCat.restrictScalars φ).map e.hom = e.hom ≫ g) |
| 17 | |
| 18 | include h in |
| 19 | theorem apply (x : N) : e.hom.hom (f.hom (e.inv.hom x)) = g.hom x := by |
| 20 | have hh := LinearMap.congr_fun (congrArg ModuleCat.Hom.hom h) (e.inv.hom x) |
| 21 | have hi := ConcreteCategory.congr_hom e.inv_hom_id x |
| 22 | change e.hom.hom (e.inv.hom x) = x at hi |
| 23 | change e.hom.hom (f.hom (e.inv.hom x)) = g.hom (e.hom.hom (e.inv.hom x)) at hh |
| 24 | exact hh.trans (congrArg g.hom hi) |
| 25 | |
| 26 | end OAI.AlgebraicGeometry.Crystalline.Cohomology.Module.TwistedConjugation.ModuleTwistedConjugation |