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.AbelianModuli.HilbertConstruction.Bounded.ExactEuler |
| 2 | import Mathlib.Algebra.Homology.HomologicalComplexAbelian |
| 3 | |
| 4 | /-! # Cochain Euler -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Coherent.CochainEuler |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! A bounded exact coherent complex has zero alternating Euler characteristic. -/ |
| 11 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry |
| 12 | universe u |
| 13 | |
| 14 | theorem proper_coherent_cochain_kernel_euler |
| 15 | {k : Type u} [Field k] {X : Scheme.{u}} [IsLocallyNoetherian X] |
| 16 | (p : X ⟶ Spec (.of k)) [IsProper p] (C : CochainComplex X.Modules ℤ) |
| 17 | (hC : C.Acyclic) [∀ i, (C.X i).IsQuasicoherent] [∀ i, (C.X i).IsFiniteType] (i : ℤ) : |
| 18 | CohomologyEulerCharacteristic.coefficientEulerCharacteristic p (C.X i) = |
| 19 | CohomologyEulerCharacteristic.coefficientEulerCharacteristic p (kernel (C.d i (i + 1))) + |
| 20 | CohomologyEulerCharacteristic.coefficientEulerCharacteristic p (kernel (C.d (i + 1) ((i + 1) + 1))) := by |
| 21 | have hS : (C.sc' i (i + 1) ((i + 1) + 1)).Exact := |
| 22 | ShortComplex.exact_of_iso |
| 23 | (C.isoSc' i (i + 1) ((i + 1) + 1) (by simp) (by simp)) (hC (i + 1)) |
| 24 | exact @Bounded.ExactEuler.proper_coherent_exact_kernel_euler k _ X _ p _ (C.sc' i (i + 1) ((i + 1) + 1)) hS |
| 25 | (inferInstance : (C.X i).IsQuasicoherent) |
| 26 | (inferInstance : (C.X (i + 1)).IsQuasicoherent) |
| 27 | (inferInstance : (C.X ((i + 1) + 1)).IsQuasicoherent) |
| 28 | (inferInstance : (C.X i).IsFiniteType) |
| 29 | (inferInstance : (C.X (i + 1)).IsFiniteType) |
| 30 | |
| 31 | theorem proper_coherent_acyclic_euler_sum |
| 32 | {k : Type u} [Field k] {X : Scheme.{u}} [IsLocallyNoetherian X] |
| 33 | (p : X ⟶ Spec (.of k)) [IsProper p] (C : CochainComplex X.Modules ℤ) |
| 34 | (hC : C.Acyclic) [∀ i, (C.X i).IsQuasicoherent] [∀ i, (C.X i).IsFiniteType] |
| 35 | (r : ℕ) (hpos : IsZero (C.X 1)) (hneg : IsZero (C.X (-(r : ℤ) - 1))) : |
| 36 | (∑ n ∈ Finset.range (r + 1), |
| 37 | (-1 : ℤ) ^ n * CohomologyEulerCharacteristic.coefficientEulerCharacteristic p (C.X (-(n : ℤ)))) = 0 := by |
| 38 | let a : ℕ → ℤ := fun n => CohomologyEulerCharacteristic.coefficientEulerCharacteristic p (C.X (-(n : ℤ))) |
| 39 | let b : ℕ → ℤ := fun n => |
| 40 | CohomologyEulerCharacteristic.coefficientEulerCharacteristic p (kernel (C.d (-(n : ℤ)) (-(n : ℤ) + 1))) |
| 41 | have hzero : a 0 = b 0 := by |
| 42 | have h := proper_coherent_cochain_kernel_euler p C hC 0 |
| 43 | have hz := Bounded.ExactEuler.coefficientEulerCharacteristic_of_isZero p (kernel (C.d 1 2)) |
| 44 | (Bounded.ExactEuler.kernel_isZero_of_source_isZero (C.d 1 2) hpos) |
| 45 | simpa [a, b, hz] using h |
| 46 | have hstep (n : ℕ) : a (n + 1) = b (n + 1) + b n := by |
| 47 | let j : ℤ := -((n + 1 : ℕ) : ℤ) |
| 48 | have hj : j + 1 = -(n : ℤ) := by dsimp [j]; omega |
| 49 | have h := proper_coherent_cochain_kernel_euler p C hC j |
| 50 | change a (n + 1) = b (n + 1) + |
| 51 | CohomologyEulerCharacteristic.coefficientEulerCharacteristic p (kernel (C.d (j + 1) ((j + 1) + 1))) at h |
| 52 | exact h.trans (congrArg (fun w : ℤ => b (n + 1) + w) |
| 53 | (congrArg (fun i : ℤ => CohomologyEulerCharacteristic.coefficientEulerCharacteristic p (kernel (C.d i (i + 1)))) hj)) |
| 54 | have hS : (C.sc' (-(r : ℤ) - 1) (-(r : ℤ)) (-(r : ℤ) + 1)).Exact := |
| 55 | ShortComplex.exact_of_iso |
| 56 | (C.isoSc' (-(r : ℤ) - 1) (-(r : ℤ)) (-(r : ℤ) + 1) |
| 57 | (by simp) (by simp)) (hC (-(r : ℤ))) |
| 58 | have hb : b r = 0 := Bounded.ExactEuler.coefficientEulerCharacteristic_of_isZero p _ |
| 59 | (Bounded.ExactEuler.exact_kernel_isZero_of_first_isZero _ hS hneg) |
| 60 | have h := Bounded.ExactEuler.alternating_sum_of_adjacent_balance a b hzero hstep r |
| 61 | simpa only [a, hb, mul_zero] using h |
| 62 | |
| 63 | end |
| 64 | |
| 65 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Coherent.CochainEuler |