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.Principal.Tor |
| 2 | import OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Parameter.Homology |
| 3 | import OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Tor.Euler |
| 4 | |
| 5 | /-! # Tor Kernel -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Parameter.TorKernel |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! Tor in degree one against a regular principal quotient is the |
| 12 | actual submodule annihilated by the parameter. -/ |
| 13 | |
| 14 | set_option backward.isDefEq.respectTransparency false |
| 15 | |
| 16 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.CategoryTheory.MonoidalCategory |
| 17 | open scoped TensorProduct Pointwise |
| 18 | |
| 19 | universe u |
| 20 | |
| 21 | variable (R : Type u) [CommRing R] (r : R) |
| 22 | |
| 23 | def kernelEquiv {M N : ModuleCat.{u} R} (e : M ≃ₗ[R] N) : |
| 24 | LinearMap.ker (LinearMap.lsmul R M r) ≃ₗ[R] |
| 25 | LinearMap.ker (LinearMap.lsmul R N r) where |
| 26 | toFun x := ⟨e x, by |
| 27 | change r • e x.val = 0 |
| 28 | rw [← e.map_smul] |
| 29 | exact (congrArg e x.property).trans e.map_zero⟩ |
| 30 | invFun x := ⟨e.symm x, by |
| 31 | change r • e.symm x.val = 0 |
| 32 | rw [← e.symm.map_smul] |
| 33 | exact (congrArg e.symm x.property).trans e.symm.map_zero⟩ |
| 34 | left_inv x := Subtype.ext (e.symm_apply_apply x) |
| 35 | right_inv x := Subtype.ext (e.apply_symm_apply x) |
| 36 | map_add' x y := Subtype.ext (e.map_add x y) |
| 37 | map_smul' a x := Subtype.ext (e.map_smul a x) |
| 38 | |
| 39 | def homologyOneIso (K : ChainComplex (ModuleCat.{u} R) ℕ) (h₂ : IsZero (K.X 2)) : |
| 40 | K.homology 1 ≅ ModuleCat.of R (LinearMap.ker (K.d 1 0).hom) := |
| 41 | K.homologyIsoSc' 2 1 0 (by simp) (by simp) ≪≫ |
| 42 | (ShortComplex.RightHomologyData.ofHasKernel (K.sc' 2 1 0) |
| 43 | (h₂.eq_zero_of_src _)).homologyIso ≪≫ ModuleCat.kernelIsoKer (K.d 1 0) |
| 44 | |
| 45 | def torOneIso (hr : IsSMulRegular R r) (M : ModuleCat.{u} R) : |
| 46 | (((Tor (ModuleCat R) 1).obj M).obj (.of R (QuotSMulTop r R))) ≅ |
| 47 | ModuleCat.of R (LinearMap.ker (LinearMap.lsmul R M r)) := by |
| 48 | let P := Principal.Tor.resolution R r hr |
| 49 | let K := ((tensorLeft M).mapHomologicalComplex (ComplexShape.down ℕ)).obj P.complex |
| 50 | let e := homologyOneIso R K |
| 51 | ((tensorLeft M).map_isZero (Principal.Tor.resolution_isZero R r hr 0)) |
| 52 | refine P.isoLeftDerivedObj (tensorLeft M) 1 ≪≫ e ≪≫ ?_ |
| 53 | change ModuleCat.of R (LinearMap.ker |
| 54 | ((tensorLeft M).map (𝟙 (ModuleCat.of R R) ≫ (r • 𝟙 (ModuleCat.of R R)))).hom) ≅ _ |
| 55 | rw [Category.id_comp, Functor.map_smul, CategoryTheory.Functor.map_id, |
| 56 | Homology.scalar_hom] |
| 57 | exact (kernelEquiv R r (TensorProduct.rid R M)).toModuleIso |
| 58 | |
| 59 | theorem euler (hr : IsSMulRegular R r) (M : ModuleCat.{u} R) : |
| 60 | ProjectionFormula.Tor.Euler.euler R M (.of R (QuotSMulTop r R)) 1 = |
| 61 | ((Module.length R (QuotSMulTop r M)).toNat : ℚ) - |
| 62 | (Module.length R (LinearMap.ker (LinearMap.lsmul R M r))).toNat := by |
| 63 | have hI : (r • (⊤ : Submodule R R) : Ideal R) = Ideal.span {r} := by |
| 64 | rw [← Submodule.ideal_span_singleton_smul, smul_eq_mul, Ideal.mul_top] |
| 65 | have hlen : Module.length R (M ⊗[R] (QuotSMulTop r R)) = |
| 66 | Module.length R (QuotSMulTop r M) := by |
| 67 | change Module.length R (M ⊗[R] (R ⧸ (r • (⊤ : Submodule R R)))) = _ |
| 68 | rw [hI, (TensorProduct.tensorQuotEquivQuotSMul M (Ideal.span {r})).length_eq, |
| 69 | Submodule.ideal_span_singleton_smul] |
| 70 | simp only [ProjectionFormula.Tor.Euler.euler, Finset.sum_range_succ, Finset.sum_range_zero, |
| 71 | ExactLength.rationalLength, ProjectionFormula.Tor.Flat.torZero_length, |
| 72 | (torOneIso R r hr M).toLinearEquiv.length_eq, hlen] |
| 73 | norm_num |
| 74 | ring |
| 75 | |
| 76 | end |
| 77 | |
| 78 | end OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Parameter.TorKernel |