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.CycleClass.Thom.IntersectionGeometry |
| 2 | import Mathlib.RingTheory.Flat.CategoryTheory |
| 3 | |
| 4 | /-! # Flat -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.CycleClass.Thom.TorAlgebra.Flat.Tor |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Flat modules have no higher local Tor, and degree-zero Tor is the |
| 11 | ordinary tensor product. These are comparisons for the exact categorical |
| 12 | Tor functor used by ThomClass's intersection multiplicity. -/ |
| 13 | |
| 14 | open _root_.CategoryTheory _root_.CategoryTheory.MonoidalCategory _root_.CategoryTheory.Limits |
| 15 | open scoped TensorProduct |
| 16 | |
| 17 | universe u |
| 18 | |
| 19 | variable (R : Type u) [CommRing R] (M N : ModuleCat.{u} R) |
| 20 | |
| 21 | def torZeroIso : ((Tor (ModuleCat R) 0).obj M).obj N ≅ ModuleCat.of R (M ⊗[R] N) := |
| 22 | ((tensorLeft M).leftDerivedZeroIsoSelf).app N |
| 23 | |
| 24 | theorem torZero_length : Module.length R (((Tor (ModuleCat R) 0).obj M).obj N) = |
| 25 | Module.length R (M ⊗[R] N) := by |
| 26 | exact (torZeroIso R M N).toLinearEquiv.length_eq |
| 27 | |
| 28 | theorem higherTor_isZero [Module.Flat R M] (n : ℕ) : |
| 29 | IsZero (((Tor (ModuleCat R) (n + 1)).obj M).obj N) := by |
| 30 | let P := projectiveResolution N |
| 31 | apply IsZero.of_iso _ (P.isoLeftDerivedObj (tensorLeft M) (n + 1)) |
| 32 | change IsZero ((((tensorLeft M).mapHomologicalComplex (ComplexShape.down ℕ)).obj P.complex).homology (n + 1)) |
| 33 | rw [← HomologicalComplex.exactAt_iff_isZero_homology] |
| 34 | rw [HomologicalComplex.exactAt_iff' _ (n + 2) (n + 1) n (by simp) (by simp)] |
| 35 | exact (P.exact_succ n).map (tensorLeft M) |
| 36 | |
| 37 | theorem higherTor_length [Module.Flat R M] (n : ℕ) : |
| 38 | Module.length R (((Tor (ModuleCat R) (n + 1)).obj M).obj N) = 0 := by |
| 39 | let := ModuleCat.subsingleton_of_isZero (higherTor_isZero R M N n) |
| 40 | exact Module.length_eq_zero |
| 41 | |
| 42 | theorem torZero_length_of_unit (e : M ≃ₗ[R] R) : |
| 43 | Module.length R (((Tor (ModuleCat R) 0).obj M).obj N) = Module.length R N := by |
| 44 | rw [torZero_length] |
| 45 | exact ((TensorProduct.congr e (LinearEquiv.refl R N)).trans |
| 46 | (TensorProduct.lid R N)).length_eq |
| 47 | |
| 48 | theorem euler_length_of_flat [Module.Flat R M] (d : ℕ) : |
| 49 | (∑ i ∈ Finset.range (d + 1), (-1 : ℚ) ^ i * |
| 50 | (Module.length R (((Tor (ModuleCat R) i).obj M).obj N)).toNat) = |
| 51 | (Module.length R (M ⊗[R] N)).toNat := by |
| 52 | rw [Finset.sum_range_succ'] |
| 53 | simp [higherTor_length, torZero_length] |
| 54 | |
| 55 | theorem euler_length_of_unit (e : M ≃ₗ[R] R) (d : ℕ) : |
| 56 | (∑ i ∈ Finset.range (d + 1), (-1 : ℚ) ^ i * |
| 57 | (Module.length R (((Tor (ModuleCat R) i).obj M).obj N)).toNat) = |
| 58 | (Module.length R N).toNat := by |
| 59 | let : Module.Flat R M := Module.Flat.of_linearEquiv e |
| 60 | rw [Finset.sum_range_succ'] |
| 61 | simp [higherTor_length, torZero_length_of_unit R M N e] |
| 62 | |
| 63 | end |
| 64 | |
| 65 | end OAI.AlgebraicGeometry.CycleClass.Thom.TorAlgebra.Flat.Tor |