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 OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Tensor.SecondPage |
| 2 | import OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.CochainTor |
| 3 | import Mathlib.Algebra.Category.ModuleCat.Projective |
| 4 | import Mathlib.Algebra.Category.ModuleCat.Monoidal.Symmetric |
| 5 | |
| 6 | /-! # Iterated Tor Page -/ |
| 7 | |
| 8 | namespace OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.IteratedTorPage |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! The third numbered page of the native tensor spectral sequence is |
| 13 | the iterated Tor module for actual projective resolutions. -/ |
| 14 | |
| 15 | set_option backward.isDefEq.respectTransparency false |
| 16 | set_option backward.isDefEq.respectTransparency.types false |
| 17 | |
| 18 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.CategoryTheory.MonoidalCategory |
| 19 | |
| 20 | variable (R : Type) [CommRing R] |
| 21 | |
| 22 | theorem flat_cochain_terms (M : ModuleCat.{0} R) (P : ProjectiveResolution M) (i : ℤ) : |
| 23 | Module.Flat R ((ChainToCochain.cochain R P.complex).X i) := by |
| 24 | by_cases hi : 0 < i |
| 25 | · let := ModuleCat.subsingleton_of_isZero (ChainToCochain.positive_zero R P.complex i hi) |
| 26 | infer_instance |
| 27 | · have he : -(((-i).toNat : ℕ) : ℤ) = i := by omega |
| 28 | rw [← he] |
| 29 | exact Module.Flat.of_linearEquiv (ChainToCochain.termIso R P.complex (-i).toNat).toLinearEquiv |
| 30 | |
| 31 | def rightTorIso (M N : ModuleCat.{0} R) (P : ProjectiveResolution N) (i : ℕ) : |
| 32 | (((tensorRight M).mapHomologicalComplex (.up ℤ)).obj |
| 33 | (ChainToCochain.cochain R P.complex)).homology (-(i : ℤ)) ≅ |
| 34 | ((Tor (ModuleCat.{0} R) i).obj M).obj N := |
| 35 | HomologicalComplex.homologyMapIso |
| 36 | ((NatIso.mapHomologicalComplex (BraidedCategory.tensorLeftIsoTensorRight M).symm (.up ℤ)).app |
| 37 | (ChainToCochain.cochain R P.complex)) (-(i : ℤ)) ≪≫ |
| 38 | CochainTor.iso R M N P i |
| 39 | |
| 40 | def spectralSequence (L M N : ModuleCat.{0} R) (P : ProjectiveResolution M) (Q : ProjectiveResolution L) : |
| 41 | E₂CohomologicalSpectralSequence (ModuleCat.{0} R) := |
| 42 | BrutalTensorSpectralSequence.spectralSequence R (ChainToCochain.cochain R Q.complex) |
| 43 | (((tensorLeft N).mapHomologicalComplex (.up ℤ)).obj (ChainToCochain.cochain R P.complex)) |
| 44 | |
| 45 | def iso (L M N : ModuleCat.{0} R) (P : ProjectiveResolution M) (Q : ProjectiveResolution L) (i j : ℕ) : |
| 46 | ((spectralSequence R L M N P Q).page 3).X (1 - 2 * (i : ℤ) - (j : ℤ), (i : ℤ) - 1) ≅ |
| 47 | ((Tor (ModuleCat.{0} R) i).obj (((Tor (ModuleCat.{0} R) j).obj N).obj M)).obj L := by |
| 48 | let A := ChainToCochain.cochain R Q.complex |
| 49 | let K := ((tensorLeft N).mapHomologicalComplex (.up ℤ)).obj (ChainToCochain.cochain R P.complex) |
| 50 | let : ∀ n, Module.Flat R (A.X n) := flat_cochain_terms R L Q |
| 51 | have e : ((spectralSequence R L M N P Q).page 3).X (1 - 2 * (i : ℤ) - (j : ℤ), (i : ℤ) - 1) ≅ |
| 52 | (((tensorRight (K.homology (-(j : ℤ)))).mapHomologicalComplex (.up ℤ)).obj A).homology (-(i : ℤ)) := by |
| 53 | convert Tensor.SecondPage.iso R A K (-(j : ℤ) - 2 * (i : ℤ) - 1) ((i : ℤ) - 2) (-(j : ℤ)) (by omega) |
| 54 | using 2 <;> congr 1 <;> omega |
| 55 | exact e ≪≫ rightTorIso R (K.homology (-(j : ℤ))) L Q i ≪≫ |
| 56 | ((Tor (ModuleCat.{0} R) i).mapIso (CochainTor.iso R N M P j)).app L |
| 57 | |
| 58 | end |
| 59 | |
| 60 | end OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.IteratedTorPage |