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.ShortComplex.ModuleCat |
| 2 | import Mathlib.Algebra.Homology.ShortComplex.HomologicalComplex |
| 3 | |
| 4 | /-! # Semilinear Complex Map -/ |
| 5 | |
| 6 | namespace OAI.NumberTheory.PadicHodge.PeriodInvariants.SemilinearComplexMap |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! # Semilinear maps of actual module complexes and their categorical cohomology -/ |
| 11 | |
| 12 | open _root_.CategoryTheory |
| 13 | |
| 14 | universe u |
| 15 | variable {R S : Type u} [CommRing R] [CommRing S] (φ : R →+* S) |
| 16 | (C : CochainComplex (ModuleCat.{u} R) ℕ) (D : CochainComplex (ModuleCat.{u} S) ℕ) |
| 17 | |
| 18 | structure Map where |
| 19 | f : ∀ n, C.X n →ₛₗ[φ] D.X n |
| 20 | comm : ∀ i j x, f j ((C.d i j).hom x) = (D.d i j).hom (f i x) |
| 21 | |
| 22 | variable {φ C D} |
| 23 | |
| 24 | def ofSuccessors (f : ∀ n, C.X n →ₛₗ[φ] D.X n) |
| 25 | (hf : ∀ n x, f (n + 1) ((C.d n (n + 1)).hom x) = (D.d n (n + 1)).hom (f n x)) : Map φ C D where |
| 26 | f := f |
| 27 | comm i j x := by |
| 28 | by_cases hij : i + 1 = j |
| 29 | · subst j |
| 30 | exact hf i x |
| 31 | · have hrel : ¬ (ComplexShape.up ℕ).Rel i j := hij |
| 32 | rw [C.shape i j hrel, D.shape i j hrel] |
| 33 | exact map_zero (f j) |
| 34 | |
| 35 | variable (f : Map φ C D) |
| 36 | |
| 37 | def cycleMap (n : ℕ) : LinearMap.ker (C.sc n).g.hom →ₛₗ[φ] LinearMap.ker (D.sc n).g.hom := |
| 38 | ((f.f n).comp (LinearMap.ker (C.sc n).g.hom).subtype).codRestrict _ (fun x => by |
| 39 | have h := f.comm n ((ComplexShape.up ℕ).next n) x.val |
| 40 | have hx : (C.sc n).g.hom x.val = 0 := x.property |
| 41 | exact h.symm.trans ((congrArg (f.f ((ComplexShape.up ℕ).next n)) hx).trans (map_zero _))) |
| 42 | |
| 43 | theorem cycleMap_boundaries (n : ℕ) : |
| 44 | LinearMap.range (C.sc n).moduleCatToCycles ≤ |
| 45 | (LinearMap.range (D.sc n).moduleCatToCycles).comap (cycleMap f n) := by |
| 46 | rintro _ ⟨x, rfl⟩ |
| 47 | refine ⟨f.f ((ComplexShape.up ℕ).prev n) x, ?_⟩ |
| 48 | apply Subtype.ext |
| 49 | exact (f.comm ((ComplexShape.up ℕ).prev n) n x).symm |
| 50 | |
| 51 | def quotientMap (n : ℕ) : |
| 52 | (LinearMap.ker (C.sc n).g.hom ⧸ LinearMap.range (C.sc n).moduleCatToCycles) →ₛₗ[φ] |
| 53 | (LinearMap.ker (D.sc n).g.hom ⧸ LinearMap.range (D.sc n).moduleCatToCycles) := |
| 54 | (LinearMap.range (C.sc n).moduleCatToCycles).mapQ (LinearMap.range (D.sc n).moduleCatToCycles) |
| 55 | (cycleMap f n) (cycleMap_boundaries f n) |
| 56 | |
| 57 | def homologyMap (n : ℕ) : C.homology n →ₛₗ[φ] D.homology n := |
| 58 | (D.sc n).moduleCatHomologyIso.inv.hom.comp |
| 59 | ((quotientMap f n).comp (C.sc n).moduleCatHomologyIso.hom.hom) |
| 60 | |
| 61 | theorem homologyMap_quotient (n : ℕ) (x : C.homology n) : |
| 62 | (D.sc n).moduleCatHomologyIso.hom (homologyMap f n x) = |
| 63 | quotientMap f n ((C.sc n).moduleCatHomologyIso.hom x) := by |
| 64 | exact congrArg (fun g => g.hom (quotientMap f n ((C.sc n).moduleCatHomologyIso.hom x))) |
| 65 | (D.sc n).moduleCatHomologyIso.inv_hom_id |
| 66 | |
| 67 | end |
| 68 | |
| 69 | end OAI.NumberTheory.PadicHodge.PeriodInvariants.SemilinearComplexMap |