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.HomologyLength |
| 2 | import OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Tor.Euler |
| 3 | |
| 4 | /-! # Complex Euler Length -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.ComplexEulerLength |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! The Euler characteristic of a bounded complex of finite-length modules |
| 11 | agrees with that of its actual homology. -/ |
| 12 | |
| 13 | set_option backward.isDefEq.respectTransparency false |
| 14 | |
| 15 | open _root_.CategoryTheory _root_.CategoryTheory.Limits |
| 16 | |
| 17 | universe u |
| 18 | |
| 19 | variable (R : Type u) [CommRing R] |
| 20 | |
| 21 | open OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.ExactLength |
| 22 | |
| 23 | def boundaryLength (K : ChainComplex (ModuleCat.{u} R) ℕ) (n : ℕ) : ℚ := |
| 24 | ExactLength.rationalLength R (.of R (LinearMap.range (K.d (n + 1) n).hom)) |
| 25 | |
| 26 | theorem degree_zero (K : ChainComplex (ModuleCat.{u} R) ℕ) |
| 27 | (h : Module.length R (K.X 0) ≠ ⊤) : |
| 28 | ExactLength.rationalLength R (K.X 0) = ExactLength.rationalLength R (K.homology 0) + boundaryLength R K 0 := by |
| 29 | have h₀ := HomologyLength.middle_length R (K.sc' 1 0 0) h |
| 30 | have he := congrArg (fun a : ℕ∞ => (a.toNat : ℚ)) |
| 31 | (K.homologyIsoSc' 1 0 0 (by simp) (by simp)).toLinearEquiv.length_eq |
| 32 | have hz := ExactLength.rationalLength_range_of_zero R (K.d 0 0) (K.shape _ _ (by simp)) |
| 33 | change ExactLength.rationalLength R (K.X 0) = ExactLength.rationalLength R (K.sc' 1 0 0).homology + |
| 34 | boundaryLength R K 0 + ExactLength.rationalLength R (.of R (LinearMap.range (K.d 0 0).hom)) at h₀ |
| 35 | change ExactLength.rationalLength R (K.homology 0) = ExactLength.rationalLength R (K.sc' 1 0 0).homology at he |
| 36 | rw [← he, hz, add_zero] at h₀ |
| 37 | exact h₀ |
| 38 | |
| 39 | theorem degree_succ (K : ChainComplex (ModuleCat.{u} R) ℕ) (n : ℕ) |
| 40 | (h : Module.length R (K.X (n + 1)) ≠ ⊤) : |
| 41 | ExactLength.rationalLength R (K.X (n + 1)) = ExactLength.rationalLength R (K.homology (n + 1)) + |
| 42 | boundaryLength R K (n + 1) + boundaryLength R K n := by |
| 43 | have h₀ := HomologyLength.middle_length R (K.sc' (n + 2) (n + 1) n) h |
| 44 | have he := congrArg (fun a : ℕ∞ => (a.toNat : ℚ)) |
| 45 | (K.homologyIsoSc' (n + 2) (n + 1) n (by simp) (by simp)).toLinearEquiv.length_eq |
| 46 | change ExactLength.rationalLength R (K.X (n + 1)) = ExactLength.rationalLength R (K.sc' (n + 2) (n + 1) n).homology + |
| 47 | boundaryLength R K (n + 1) + boundaryLength R K n at h₀ |
| 48 | change ExactLength.rationalLength R (K.homology (n + 1)) = |
| 49 | ExactLength.rationalLength R (K.sc' (n + 2) (n + 1) n).homology at he |
| 50 | rw [← he] at h₀ |
| 51 | exact h₀ |
| 52 | |
| 53 | theorem homology_euler_eq (K : ChainComplex (ModuleCat.{u} R) ℕ) |
| 54 | (h : ∀ n, Module.length R (K.X n) ≠ ⊤) (d : ℕ) (hd : IsZero (K.X (d + 1))) : |
| 55 | (∑ n ∈ Finset.range (d + 1), (-1 : ℚ) ^ n * ExactLength.rationalLength R (K.homology n)) = |
| 56 | ∑ n ∈ Finset.range (d + 1), (-1 : ℚ) ^ n * ExactLength.rationalLength R (K.X n) := by |
| 57 | have hs := Tor.Euler.alternating_identity |
| 58 | (fun n => ExactLength.rationalLength R (K.X n)) |
| 59 | (fun n => ExactLength.rationalLength R (K.homology n)) (fun _ => 0) (boundaryLength R K) |
| 60 | (by simpa only [add_zero] using degree_zero R K (h 0)) |
| 61 | (fun n => by simpa only [add_zero] using degree_succ R K n (h (n + 1))) d |
| 62 | have hz : boundaryLength R K d = 0 := |
| 63 | ExactLength.rationalLength_range_of_zero R _ (hd.eq_of_src _ _) |
| 64 | simpa only [mul_zero, Finset.sum_const_zero, add_zero, hz, sub_zero] using hs |
| 65 | |
| 66 | end |
| 67 | |
| 68 | end OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.ComplexEulerLength |