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.Parameter.TorKernel |
| 2 | |
| 3 | /-! # Complex Euler -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Parameter.ComplexEuler |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! Alternating homology lengths after reduction modulo a regular |
| 10 | parameter equal the sum of the native principal Tor Euler |
| 11 | characteristics of the original homology modules. -/ |
| 12 | |
| 13 | set_option backward.isDefEq.respectTransparency false |
| 14 | |
| 15 | open _root_.CategoryTheory _root_.CategoryTheory.Limits |
| 16 | |
| 17 | universe u |
| 18 | |
| 19 | open OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.ExactLength OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Parameter.QuotientComplex |
| 20 | |
| 21 | variable (R : Type u) [CommRing R] (r : R) |
| 22 | (K : ChainComplex (ModuleCat.{u} R) ℕ) |
| 23 | (hr : ∀ i, IsSMulRegular (K.X i) r) |
| 24 | |
| 25 | def quotientLength (i : ℕ) : ℚ := |
| 26 | (Module.length R (QuotSMulTop r (K.homology i))).toNat |
| 27 | |
| 28 | def torsionLength (i : ℕ) : ℚ := |
| 29 | (Module.length R (LinearMap.ker (LinearMap.lsmul R (K.homology i) r))).toNat |
| 30 | |
| 31 | include hr |
| 32 | |
| 33 | theorem degree_zero : ExactLength.rationalLength R ((QuotientComplex.complex R r K).homology 0) = |
| 34 | quotientLength R r K 0 := by |
| 35 | exact congrArg (fun a : ℕ∞ => (a.toNat : ℚ)) |
| 36 | (Homology.zeroEquiv R r K hr).length_eq.symm |
| 37 | |
| 38 | theorem degree_succ (i : ℕ) |
| 39 | (hfin : Module.length R ((QuotientComplex.complex R r K).homology (i + 1)) ≠ ⊤) : |
| 40 | ExactLength.rationalLength R ((QuotientComplex.complex R r K).homology (i + 1)) = |
| 41 | quotientLength R r K (i + 1) + torsionLength R r K i := by |
| 42 | let S := Homology.sequence R r K hr i |
| 43 | have hS := Homology.sequence_shortExact R r K hr i |
| 44 | have hinj := (ModuleCat.mono_iff_injective S.f).mp hS.mono_f |
| 45 | have hsurj := (ModuleCat.epi_iff_surjective S.g).mp hS.epi_g |
| 46 | have he := Module.length_eq_add_of_exact S.f.hom S.g.hom hinj hsurj |
| 47 | ((ShortComplex.ShortExact.moduleCat_exact_iff_function_exact S).mp hS.exact) |
| 48 | have hleft : Module.length R S.X₁ ≠ ⊤ := ne_top_of_le_ne_top hfin |
| 49 | (Module.length_le_of_injective S.f.hom hinj) |
| 50 | have hright : Module.length R S.X₃ ≠ ⊤ := ne_top_of_le_ne_top hfin |
| 51 | (Module.length_le_of_surjective S.g.hom hsurj) |
| 52 | change ((Module.length R S.X₂).toNat : ℚ) = |
| 53 | (Module.length R S.X₁).toNat + (Module.length R S.X₃).toNat |
| 54 | rw [he, ENat.toNat_add hleft hright, Nat.cast_add] |
| 55 | |
| 56 | theorem torsion_top_zero (d : ℕ) (hd : IsZero ((QuotientComplex.complex R r K).homology (d + 1))) : |
| 57 | torsionLength R r K d = 0 := by |
| 58 | let S := Homology.sequence R r K hr d |
| 59 | have hS := Homology.sequence_shortExact R r K hr d |
| 60 | let : Subsingleton S.X₂ := ModuleCat.subsingleton_of_isZero hd |
| 61 | have hle := Module.length_le_of_surjective S.g.hom |
| 62 | ((ModuleCat.epi_iff_surjective S.g).mp hS.epi_g) |
| 63 | have hzero : Module.length R S.X₃ = 0 := by |
| 64 | have hz₂ : Module.length R S.X₂ = 0 := Module.length_eq_zero |
| 65 | rw [hz₂] at hle |
| 66 | exact le_antisymm hle zero_le |
| 67 | change ((Module.length R S.X₃).toNat : ℚ) = 0 |
| 68 | simp only [hzero, ENat.toNat_zero, Nat.cast_zero] |
| 69 | |
| 70 | omit hr in |
| 71 | theorem alternating (b q t : ℕ → ℚ) (h₀ : b 0 = q 0) |
| 72 | (hs : ∀ n, b (n + 1) = q (n + 1) + t n) (d : ℕ) : |
| 73 | (∑ i ∈ Finset.range (d + 1), (-1 : ℚ) ^ i * b i) = |
| 74 | (∑ i ∈ Finset.range (d + 1), (-1 : ℚ) ^ i * (q i - t i)) + |
| 75 | (-1 : ℚ) ^ d * t d := by |
| 76 | induction d with |
| 77 | | zero => simp [h₀] |
| 78 | | succ d ih => |
| 79 | rw [Finset.sum_range_succ (n := d + 1), Finset.sum_range_succ (n := d + 1), ih, hs] |
| 80 | simp only [pow_succ] |
| 81 | ring |
| 82 | |
| 83 | theorem euler (hregular : IsSMulRegular R r) |
| 84 | (hfin : ∀ i, Module.length R ((QuotientComplex.complex R r K).homology i) ≠ ⊤) |
| 85 | (d : ℕ) (hd : IsZero ((QuotientComplex.complex R r K).homology (d + 1))) : |
| 86 | (∑ i ∈ Finset.range (d + 1), (-1 : ℚ) ^ i * |
| 87 | ExactLength.rationalLength R ((QuotientComplex.complex R r K).homology i)) = |
| 88 | ∑ i ∈ Finset.range (d + 1), (-1 : ℚ) ^ i * |
| 89 | Tor.Euler.euler R (K.homology i) (.of R (QuotSMulTop r R)) 1 := by |
| 90 | have he := alternating (fun i => ExactLength.rationalLength R ((QuotientComplex.complex R r K).homology i)) |
| 91 | (quotientLength R r K) (torsionLength R r K) (degree_zero R r K hr) |
| 92 | (fun i => degree_succ R r K hr i (hfin (i + 1))) d |
| 93 | rw [torsion_top_zero R r K hr d hd, mul_zero, add_zero] at he |
| 94 | rw [he] |
| 95 | apply Finset.sum_congr rfl |
| 96 | intro i _ |
| 97 | rw [TorKernel.euler R r hregular] |
| 98 | rfl |
| 99 | |
| 100 | end |
| 101 | |
| 102 | end OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Parameter.ComplexEuler |