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.Tor.OneFirst |
| 2 | import OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Tor.OneSecond |
| 3 | import Mathlib.Algebra.Category.ModuleCat.ProjectiveDimension |
| 4 | |
| 5 | /-! # Symmetry -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Tor.Symmetry |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! Symmetry of the native categorical Tor modules. Degree one is the |
| 12 | same tensor kernel in both arguments; the proved dimension-shift |
| 13 | isomorphisms give every higher degree. -/ |
| 14 | |
| 15 | set_option backward.isDefEq.respectTransparency false |
| 16 | |
| 17 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.CategoryTheory.MonoidalCategory |
| 18 | open scoped TensorProduct |
| 19 | |
| 20 | universe u |
| 21 | |
| 22 | variable (R : Type u) [CommRing R] |
| 23 | |
| 24 | def tensorKernelComm (N : ModuleCat.{u} R) {M M' : ModuleCat.{u} R} (f : M ⟶ M') : |
| 25 | ((tensorRight N).map f).hom.ker ≃ₗ[R] ((tensorLeft N).map f).hom.ker := by |
| 26 | let e := TensorProduct.comm R M N |
| 27 | let e' := TensorProduct.comm R M' N |
| 28 | have hc (x : M ⊗[R] N) : ((tensorLeft N).map f).hom (e x) = |
| 29 | e' (((tensorRight N).map f).hom x) := |
| 30 | TensorProduct.map_comm (LinearMap.id : N →ₗ[R] N) f.hom x |
| 31 | apply e.ofSubmodules |
| 32 | ext x |
| 33 | constructor |
| 34 | · rintro ⟨y, hy, rfl⟩ |
| 35 | change ((tensorLeft N).map f).hom (e y) = 0 |
| 36 | rw [hc] |
| 37 | exact (congrArg e' (LinearMap.mem_ker.mp hy)).trans e'.map_zero |
| 38 | · intro hx |
| 39 | refine ⟨e.symm x, ?_, e.apply_symm_apply x⟩ |
| 40 | apply e'.injective |
| 41 | rw [map_zero, ← hc, e.apply_symm_apply] |
| 42 | exact hx |
| 43 | |
| 44 | def oneIso (M N : ModuleCat.{u} R) : |
| 45 | (((Tor (ModuleCat R) 1).obj M).obj N) ≅ (((Tor (ModuleCat R) 1).obj N).obj M) := by |
| 46 | let S := M.projectiveShortComplex |
| 47 | have hS := M.shortExact_projectiveShortComplex |
| 48 | exact OneFirst.kernelIso R N S hS ≪≫ (tensorKernelComm R N S.f).toModuleIso ≪≫ |
| 49 | (OneSecond.kernelIso R N S hS).symm |
| 50 | |
| 51 | def positiveIso : (n : ℕ) → (M N : ModuleCat.{u} R) → |
| 52 | (((Tor (ModuleCat R) (n + 1)).obj M).obj N) ≅ (((Tor (ModuleCat R) (n + 1)).obj N).obj M) |
| 53 | | 0, M, N => oneIso R M N |
| 54 | | n + 1, M, N => |
| 55 | let S := M.projectiveShortComplex |
| 56 | let hS := M.shortExact_projectiveShortComplex |
| 57 | FirstShift.shiftIso R N S hS n ≪≫ positiveIso n S.X₁ N ≪≫ |
| 58 | (SecondShift.shiftIso R N S hS n).symm |
| 59 | |
| 60 | def iso (M N : ModuleCat.{u} R) (n : ℕ) : |
| 61 | (((Tor (ModuleCat R) n).obj M).obj N) ≅ (((Tor (ModuleCat R) n).obj N).obj M) := |
| 62 | match n with |
| 63 | | 0 => Flat.torZeroIso R M N ≪≫ (TensorProduct.comm R M N).toModuleIso ≪≫ |
| 64 | (Flat.torZeroIso R N M).symm |
| 65 | | n + 1 => Symmetry.positiveIso R n M N |
| 66 | |
| 67 | theorem length_comm (M N : ModuleCat.{u} R) (n : ℕ) : |
| 68 | Module.length R (((Tor (ModuleCat R) n).obj M).obj N) = |
| 69 | Module.length R (((Tor (ModuleCat R) n).obj N).obj M) := |
| 70 | (iso R M N n).toLinearEquiv.length_eq |
| 71 | |
| 72 | end |
| 73 | |
| 74 | end OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Tor.Symmetry |