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.Tor.ExactSequence |
| 2 | import OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.ExactLength |
| 3 | import OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.BoundedResolution |
| 4 | |
| 5 | /-! # Euler -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Tor.Euler |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! Additivity of the actual finite Tor Euler characteristic in a short |
| 12 | exact sequence. Finiteness and vanishing assumptions are stated on native |
| 13 | Tor modules, so this lemma applies to the geometric local modules. -/ |
| 14 | |
| 15 | set_option backward.isDefEq.respectTransparency false |
| 16 | |
| 17 | open _root_.CategoryTheory _root_.CategoryTheory.Limits |
| 18 | |
| 19 | open OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Tor.ExactSequence OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.ExactLength |
| 20 | |
| 21 | universe u |
| 22 | |
| 23 | variable (R : Type u) [CommRing R] |
| 24 | |
| 25 | def euler (M N : ModuleCat.{u} R) (d : ℕ) : ℚ := |
| 26 | ∑ i ∈ Finset.range (d + 1), (-1 : ℚ) ^ i * |
| 27 | ExactLength.rationalLength R (((Tor (ModuleCat R) i).obj M).obj N) |
| 28 | |
| 29 | def connectingLength (N : ModuleCat.{u} R) (S : ShortComplex (ModuleCat R)) |
| 30 | (hS : S.ShortExact) (n : ℕ) : ℚ := |
| 31 | ExactLength.rationalLength R (.of R (LinearMap.range (ExactSequence.connecting R N S hS n).hom)) |
| 32 | |
| 33 | theorem degree_zero (N : ModuleCat.{u} R) (S : ShortComplex (ModuleCat R)) |
| 34 | (hS : S.ShortExact) |
| 35 | (h₁ : Module.length R (((Tor (ModuleCat R) 0).obj S.X₁).obj N) ≠ ⊤) |
| 36 | (h₂ : Module.length R (((Tor (ModuleCat R) 0).obj S.X₂).obj N) ≠ ⊤) : |
| 37 | ExactLength.rationalLength R (((Tor (ModuleCat R) 0).obj S.X₁).obj N) + |
| 38 | ExactLength.rationalLength R (((Tor (ModuleCat R) 0).obj S.X₃).obj N) = |
| 39 | ExactLength.rationalLength R (((Tor (ModuleCat R) 0).obj S.X₂).obj N) + |
| 40 | connectingLength R N S hS 0 := by |
| 41 | have ha := ExactLength.rationalLength_exact R _ (ExactSequence.exact_after_connecting R N S hS 0) h₁ |
| 42 | have hb := ExactLength.rationalLength_exact R _ (ExactSequence.exact_middle R N S hS 0) h₂ |
| 43 | let : Epi (((Tor (ModuleCat R) 0).map S.g).app N) := ExactSequence.epi_zero R N S hS |
| 44 | have hc := ExactLength.rationalLength_range_of_epi R (((Tor (ModuleCat R) 0).map S.g).app N) |
| 45 | change ExactLength.rationalLength R (((Tor (ModuleCat R) 0).obj S.X₁).obj N) = |
| 46 | connectingLength R N S hS 0 + _ at ha |
| 47 | change ExactLength.rationalLength R (((Tor (ModuleCat R) 0).obj S.X₂).obj N) = |
| 48 | ExactLength.rationalLength R (.of R (LinearMap.range (((Tor (ModuleCat R) 0).map S.f).app N).hom)) + |
| 49 | ExactLength.rationalLength R (.of R (LinearMap.range (((Tor (ModuleCat R) 0).map S.g).app N).hom)) at hb |
| 50 | linarith |
| 51 | |
| 52 | theorem degree_succ (N : ModuleCat.{u} R) (S : ShortComplex (ModuleCat R)) |
| 53 | (hS : S.ShortExact) (n : ℕ) |
| 54 | (h₁ : Module.length R (((Tor (ModuleCat R) (n + 1)).obj S.X₁).obj N) ≠ ⊤) |
| 55 | (h₂ : Module.length R (((Tor (ModuleCat R) (n + 1)).obj S.X₂).obj N) ≠ ⊤) |
| 56 | (h₃ : Module.length R (((Tor (ModuleCat R) (n + 1)).obj S.X₃).obj N) ≠ ⊤) : |
| 57 | ExactLength.rationalLength R (((Tor (ModuleCat R) (n + 1)).obj S.X₁).obj N) + |
| 58 | ExactLength.rationalLength R (((Tor (ModuleCat R) (n + 1)).obj S.X₃).obj N) = |
| 59 | ExactLength.rationalLength R (((Tor (ModuleCat R) (n + 1)).obj S.X₂).obj N) + |
| 60 | connectingLength R N S hS (n + 1) + connectingLength R N S hS n := by |
| 61 | have ha := ExactLength.rationalLength_exact R _ (ExactSequence.exact_after_connecting R N S hS (n + 1)) h₁ |
| 62 | have hb := ExactLength.rationalLength_exact R _ (ExactSequence.exact_middle R N S hS (n + 1)) h₂ |
| 63 | have hc := ExactLength.rationalLength_exact R _ (ExactSequence.exact_before_connecting R N S hS n) h₃ |
| 64 | dsimp only [ShortComplex.mk, ShortComplex.map_X₂, ShortComplex.map_f, ShortComplex.map_g, |
| 65 | Functor.flip_obj_obj, Functor.flip_obj_map] at ha hb hc |
| 66 | change ExactLength.rationalLength R (((Tor (ModuleCat R) (n + 1)).obj S.X₂).obj N) = |
| 67 | ExactLength.rationalLength R (.of R (LinearMap.range (((Tor (ModuleCat R) (n + 1)).map S.f).app N).hom)) + |
| 68 | ExactLength.rationalLength R (.of R (LinearMap.range (((Tor (ModuleCat R) (n + 1)).map S.g).app N).hom)) at hb |
| 69 | unfold connectingLength |
| 70 | linarith |
| 71 | |
| 72 | theorem alternating_identity (a b c k : ℕ → ℚ) |
| 73 | (h₀ : a 0 + c 0 = b 0 + k 0) |
| 74 | (hs : ∀ n, a (n + 1) + c (n + 1) = b (n + 1) + k (n + 1) + k n) |
| 75 | (d : ℕ) : |
| 76 | (∑ i ∈ Finset.range (d + 1), (-1 : ℚ) ^ i * b i) = |
| 77 | (∑ i ∈ Finset.range (d + 1), (-1 : ℚ) ^ i * a i) + |
| 78 | (∑ i ∈ Finset.range (d + 1), (-1 : ℚ) ^ i * c i) - (-1 : ℚ) ^ d * k d := by |
| 79 | induction d with |
| 80 | | zero => simpa using (sub_eq_iff_eq_add.mpr h₀).symm |
| 81 | | succ d ih => |
| 82 | simp only [Finset.sum_range_succ (n := d + 1)] |
| 83 | rw [ih] |
| 84 | simp only [pow_succ] |
| 85 | linear_combination ((-1 : ℚ) ^ d) * hs d |
| 86 | |
| 87 | theorem additivity (N : ModuleCat.{u} R) (S : ShortComplex (ModuleCat R)) |
| 88 | (hS : S.ShortExact) (d : ℕ) |
| 89 | (h₁ : ∀ n, Module.length R (((Tor (ModuleCat R) n).obj S.X₁).obj N) ≠ ⊤) |
| 90 | (h₂ : ∀ n, Module.length R (((Tor (ModuleCat R) n).obj S.X₂).obj N) ≠ ⊤) |
| 91 | (h₃ : ∀ n, Module.length R (((Tor (ModuleCat R) n).obj S.X₃).obj N) ≠ ⊤) |
| 92 | (hv : IsZero (((Tor (ModuleCat R) (d + 1)).obj S.X₃).obj N)) : |
| 93 | euler R S.X₂ N d = euler R S.X₁ N d + euler R S.X₃ N d := by |
| 94 | have h := alternating_identity |
| 95 | (fun n => ExactLength.rationalLength R (((Tor (ModuleCat R) n).obj S.X₁).obj N)) |
| 96 | (fun n => ExactLength.rationalLength R (((Tor (ModuleCat R) n).obj S.X₂).obj N)) |
| 97 | (fun n => ExactLength.rationalLength R (((Tor (ModuleCat R) n).obj S.X₃).obj N)) |
| 98 | (connectingLength R N S hS) (degree_zero R N S hS (h₁ 0) (h₂ 0)) |
| 99 | (fun n => degree_succ R N S hS n (h₁ _) (h₂ _) (h₃ _)) d |
| 100 | have hk : connectingLength R N S hS d = 0 := |
| 101 | ExactLength.rationalLength_range_of_zero R _ (hv.eq_of_src _ _) |
| 102 | simpa only [euler, hk, mul_zero, sub_zero] using h |
| 103 | |
| 104 | end |
| 105 | |
| 106 | end OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Tor.Euler |