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.ComplexEulerLength |
| 2 | import OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.FreeTensorLength |
| 3 | import OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Finite.BoundedResolution |
| 4 | import Mathlib.Algebra.Homology.SingleHomology |
| 5 | |
| 6 | /-! # Resolution Euler -/ |
| 7 | |
| 8 | namespace OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.ResolutionEuler |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! Finite free resolutions compute local Tor Euler characteristics by |
| 13 | the alternating ranks of their terms. -/ |
| 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 | open OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.ExactLength |
| 25 | |
| 26 | theorem resolution_length (M : ModuleCat.{u} R) (P : ProjectiveResolution M) |
| 27 | (h : ∀ n, Module.length R (P.complex.X n) ≠ ⊤) |
| 28 | (d : ℕ) (hd : IsZero (P.complex.X (d + 1))) : |
| 29 | ExactLength.rationalLength R M = |
| 30 | ∑ n ∈ Finset.range (d + 1), (-1 : ℚ) ^ n * ExactLength.rationalLength R (P.complex.X n) := by |
| 31 | have hz (n : ℕ) : ExactLength.rationalLength R (P.complex.homology (n + 1)) = 0 := by |
| 32 | let := ModuleCat.subsingleton_of_isZero |
| 33 | (IsZero.of_iso |
| 34 | (HomologicalComplex.isZero_single_obj_homology (ComplexShape.down ℕ) 0 M (n + 1) (by omega)) |
| 35 | (isoOfQuasiIsoAt P.π (n + 1))) |
| 36 | simp [ExactLength.rationalLength, Module.length_eq_zero] |
| 37 | have h₀ : ExactLength.rationalLength R (P.complex.homology 0) = ExactLength.rationalLength R M := by |
| 38 | exact congrArg (fun a : ℕ∞ => (a.toNat : ℚ)) |
| 39 | ((isoOfQuasiIsoAt P.π 0) ≪≫ |
| 40 | HomologicalComplex.singleObjHomologySelfIso (ComplexShape.down ℕ) 0 M).toLinearEquiv.length_eq |
| 41 | have he := ComplexEulerLength.homology_euler_eq R P.complex h d hd |
| 42 | rw [Finset.sum_range_succ'] at he |
| 43 | simpa only [hz, mul_zero, Finset.sum_const_zero, zero_add, pow_zero, one_mul, h₀] using he |
| 44 | |
| 45 | theorem tor_euler_rank_sum [Nontrivial R] (M N : ModuleCat.{u} R) |
| 46 | (hM : Module.length R M ≠ ⊤) (P : ProjectiveResolution N) |
| 47 | (hP : ∀ n, Module.Finite R (P.complex.X n) ∧ Module.Free R (P.complex.X n)) |
| 48 | (d : ℕ) (hd : IsZero (P.complex.X (d + 1))) : |
| 49 | Tor.Euler.euler R M N d = ExactLength.rationalLength R M * |
| 50 | ∑ n ∈ Finset.range (d + 1), (-1 : ℚ) ^ n * (Module.finrank R (P.complex.X n) : ℚ) := by |
| 51 | let K := ((tensorLeft M).mapHomologicalComplex (ComplexShape.down ℕ)).obj P.complex |
| 52 | have hK (n : ℕ) : Module.length R (K.X n) ≠ ⊤ := by |
| 53 | let := (hP n).1 |
| 54 | let := (hP n).2 |
| 55 | exact FreeTensorLength.tensor_length_ne_top R M (P.complex.X n) hM |
| 56 | have hdK : IsZero (K.X (d + 1)) := (tensorLeft M).map_isZero hd |
| 57 | calc |
| 58 | Tor.Euler.euler R M N d = |
| 59 | ∑ n ∈ Finset.range (d + 1), (-1 : ℚ) ^ n * ExactLength.rationalLength R (K.homology n) := by |
| 60 | apply Finset.sum_congr rfl |
| 61 | intro n _ |
| 62 | exact congrArg (fun a : ℕ∞ => (-1 : ℚ) ^ n * (a.toNat : ℚ)) |
| 63 | (P.isoLeftDerivedObj (tensorLeft M) n).toLinearEquiv.length_eq |
| 64 | _ = ∑ n ∈ Finset.range (d + 1), (-1 : ℚ) ^ n * ExactLength.rationalLength R (K.X n) := |
| 65 | ComplexEulerLength.homology_euler_eq R K hK d hdK |
| 66 | _ = _ := by |
| 67 | rw [Finset.mul_sum] |
| 68 | apply Finset.sum_congr rfl |
| 69 | intro n _ |
| 70 | let := (hP n).1 |
| 71 | let := (hP n).2 |
| 72 | change (-1 : ℚ) ^ n * ExactLength.rationalLength R (.of R (M ⊗[R] P.complex.X n)) = _ |
| 73 | rw [FreeTensorLength.tensor_rationalLength] |
| 74 | ring |
| 75 | |
| 76 | end |
| 77 | |
| 78 | end OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.ResolutionEuler |