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.Tor.Linear |
| 3 | |
| 4 | /-! # Tor Left -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Principal.TorLeft |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Native Tor against a regular principal quotient in its first argument. |
| 11 | The proof uses the actual long exact sequence, rather than assuming a |
| 12 | symmetry comparison for the two derived tensor constructions. -/ |
| 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 | theorem higherTor_isZero (hr : IsSMulRegular R r) (M : ModuleCat.{u} R) |
| 24 | (hm : IsSMulRegular M r) (n : ℕ) : |
| 25 | IsZero (((Tor (ModuleCat R) (n + 1)).obj (ModuleCat.of R (QuotSMulTop r R))).obj M) := by |
| 26 | let S := (ModuleCat.of R R).smulShortComplex r |
| 27 | have hS : S.ShortExact := IsSMulRegular.smulShortComplex_shortExact hr |
| 28 | have he := ProjectionFormula.Tor.ExactSequence.exact_before_connecting R M S hS n |
| 29 | have hfirst : ((Tor (ModuleCat R) (n + 1)).map S.g).app M = 0 := |
| 30 | (ProjectionFormula.Tor.Flat.higherTor_isZero R (.of R R) M n).eq_zero_of_src _ |
| 31 | apply he.isZero_of_both_zeros hfirst |
| 32 | cases n with |
| 33 | | zero => |
| 34 | let F := (Tor (ModuleCat R) 0).flip.obj M |
| 35 | have hmap : F.map S.f = r • 𝟙 (F.obj (.of R R)) := by |
| 36 | change F.map (r • 𝟙 (ModuleCat.of R R)) = _ |
| 37 | rw [Functor.map_smul, CategoryTheory.Functor.map_id] |
| 38 | have hmono : Mono (F.map S.f) := by |
| 39 | rw [hmap, ModuleCat.mono_iff_injective] |
| 40 | let e : F.obj (.of R R) ≃ₗ[R] M := |
| 41 | (ProjectionFormula.Tor.Flat.torZeroIso R (.of R R) M).toLinearEquiv.trans (TensorProduct.lid R M) |
| 42 | exact (e.isSMulRegular_congr r).mpr hm |
| 43 | let : Mono (((Tor (ModuleCat R) 0).map S.f).app M) := hmono |
| 44 | apply (cancel_mono (((Tor (ModuleCat R) 0).map S.f).app M)).mp |
| 45 | rw [ProjectionFormula.Tor.ExactSequence.connecting_comp, zero_comp] |
| 46 | | succ n => |
| 47 | exact (ProjectionFormula.Tor.Flat.higherTor_isZero R (.of R R) M n).eq_zero_of_tgt _ |
| 48 | |
| 49 | theorem higherTor_length (hr : IsSMulRegular R r) (M : ModuleCat.{u} R) |
| 50 | (hm : IsSMulRegular M r) (n : ℕ) : |
| 51 | Module.length R (((Tor (ModuleCat R) (n + 1)).obj |
| 52 | (ModuleCat.of R (QuotSMulTop r R))).obj M) = 0 := by |
| 53 | let := ModuleCat.subsingleton_of_isZero (higherTor_isZero R r hr M hm n) |
| 54 | exact Module.length_eq_zero |
| 55 | |
| 56 | theorem euler_length (hr : IsSMulRegular R r) (M : ModuleCat.{u} R) |
| 57 | (hm : IsSMulRegular M r) (d : ℕ) : |
| 58 | (∑ i ∈ Finset.range (d + 1), (-1 : ℚ) ^ i * |
| 59 | (Module.length R (((Tor (ModuleCat R) i).obj |
| 60 | (ModuleCat.of R (QuotSMulTop r R))).obj M)).toNat) = |
| 61 | (Module.length R (QuotSMulTop r M)).toNat := by |
| 62 | have hI : (r • (⊤ : Submodule R R) : Ideal R) = Ideal.span {r} := by |
| 63 | rw [← Submodule.ideal_span_singleton_smul, smul_eq_mul, Ideal.mul_top] |
| 64 | have hlen : Module.length R ((QuotSMulTop r R) ⊗[R] M) = |
| 65 | Module.length R (QuotSMulTop r M) := by |
| 66 | change Module.length R ((R ⧸ (r • (⊤ : Submodule R R))) ⊗[R] M) = _ |
| 67 | rw [hI, (TensorProduct.quotTensorEquivQuotSMul M (Ideal.span {r})).length_eq, |
| 68 | Submodule.ideal_span_singleton_smul] |
| 69 | rw [Finset.sum_range_succ'] |
| 70 | simp [higherTor_length R r hr M hm, ProjectionFormula.Tor.Flat.torZero_length, hlen] |
| 71 | |
| 72 | end |
| 73 | |
| 74 | end OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Principal.TorLeft |