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.Coherent.CochainEuler |
| 2 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Quasicoherent.QuotientFiniteType |
| 3 | |
| 4 | /-! # Exact Cochain Euler -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Negative.ExactCochainEuler |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! For a coherent complex exact in negative degrees and bounded on |
| 11 | the left, the alternating Euler sum is the Euler characteristic of its |
| 12 | actual final cokernel. This leaves its multiplicities intact. -/ |
| 13 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry |
| 14 | universe u |
| 15 | |
| 16 | theorem alternating_sum_of_adjacent_balance_with_constant (a b : ℕ → ℤ) (c : ℤ) |
| 17 | (hzero : a 0 = c + b 0) (hstep : ∀ n, a (n + 1) = b (n + 1) + b n) (r : ℕ) : |
| 18 | (∑ n ∈ Finset.range (r + 1), (-1 : ℤ) ^ n * a n) = c + (-1 : ℤ) ^ r * b r := by |
| 19 | induction r with |
| 20 | | zero => simpa using hzero |
| 21 | | succ r ih => |
| 22 | rw [Finset.sum_range_succ, ih, hstep r, pow_succ] |
| 23 | ring |
| 24 | |
| 25 | theorem proper_coherent_negative_exact_euler_sum |
| 26 | {k : Type u} [Field k] {X : Scheme.{u}} [IsLocallyNoetherian X] |
| 27 | (p : X ⟶ Spec (.of k)) [IsProper p] (C : CochainComplex X.Modules ℤ) |
| 28 | (hC : ∀ i : ℤ, i < 0 → C.ExactAt i) |
| 29 | [∀ i, (C.X i).IsQuasicoherent] [∀ i, (C.X i).IsFiniteType] |
| 30 | (r : ℕ) (hr : 0 < r) (hneg : IsZero (C.X (-(r : ℤ) - 1))) : |
| 31 | (∑ n ∈ Finset.range (r + 1), (-1 : ℤ) ^ n * CohomologyEulerCharacteristic.coefficientEulerCharacteristic p (C.X (-(n : ℤ)))) = |
| 32 | CohomologyEulerCharacteristic.coefficientEulerCharacteristic p (cokernel (C.d (-1) 0)) := by |
| 33 | let d := C.d (-1) 0 |
| 34 | let Q := cokernel d |
| 35 | let π := cokernel.π d |
| 36 | have : Q.IsQuasicoherent := Quasicoherent.Cokernels.module_quasicoherent_cokernel d |
| 37 | have : Q.IsFiniteType := Quasicoherent.QuotientFiniteType.quasicoherent_cokernel_finiteType d |
| 38 | have : (kernel π).IsQuasicoherent := Quasicoherent.Kernels.module_quasicoherent_kernel π |
| 39 | have : (kernel π).IsFiniteType := Noetherian.QuasicoherentKernels.noetherian_quasicoherent_kernel_finiteType π |
| 40 | let a : ℕ → ℤ := fun n => CohomologyEulerCharacteristic.coefficientEulerCharacteristic p (C.X (-(n : ℤ))) |
| 41 | let b : ℕ → ℤ := fun n => if n = 0 then CohomologyEulerCharacteristic.coefficientEulerCharacteristic p (kernel π) |
| 42 | else CohomologyEulerCharacteristic.coefficientEulerCharacteristic p (kernel (C.d (-(n : ℤ)) (-(n : ℤ) + 1))) |
| 43 | have hzero : a 0 = CohomologyEulerCharacteristic.coefficientEulerCharacteristic p Q + b 0 := by |
| 44 | let S := ShortComplex.mk (kernel.ι π) π (kernel.condition π) |
| 45 | have hS : S.ShortExact := ⟨ShortComplex.kernelSequence_exact π⟩ |
| 46 | have h := Proper.CohomologyEulerAdditivity.proper_coherent_euler_additive p hS |
| 47 | change CohomologyEulerCharacteristic.coefficientEulerCharacteristic p (C.X 0) = |
| 48 | CohomologyEulerCharacteristic.coefficientEulerCharacteristic p (kernel π) + CohomologyEulerCharacteristic.coefficientEulerCharacteristic p Q at h |
| 49 | simpa only [a, b, Nat.cast_zero, neg_zero, ite_eq_left rfl, add_comm] using h |
| 50 | have hstep (n : ℕ) : a (n + 1) = b (n + 1) + b n := by |
| 51 | by_cases hn : n = 0 |
| 52 | · subst n |
| 53 | let S := ShortComplex.mk d π (cokernel.condition d) |
| 54 | have h := Bounded.ExactEuler.proper_coherent_exact_kernel_euler p S (ShortComplex.cokernelSequence_exact d) |
| 55 | change CohomologyEulerCharacteristic.coefficientEulerCharacteristic p (C.X (-1)) = |
| 56 | CohomologyEulerCharacteristic.coefficientEulerCharacteristic p (kernel (C.d (-1) 0)) + |
| 57 | CohomologyEulerCharacteristic.coefficientEulerCharacteristic p (kernel π) at h |
| 58 | simpa [a, b, d] using h |
| 59 | · let j : ℤ := -((n + 1 : ℕ) : ℤ) |
| 60 | have hj : j + 1 = -(n : ℤ) := by dsimp [j]; omega |
| 61 | have hm : j + 1 < 0 := by rw [hj]; omega |
| 62 | have hS : (C.sc' j (j + 1) ((j + 1) + 1)).Exact := |
| 63 | ShortComplex.exact_of_iso (C.isoSc' j (j + 1) ((j + 1) + 1) (by simp) (by simp)) |
| 64 | (hC (j + 1) hm) |
| 65 | have h := @Bounded.ExactEuler.proper_coherent_exact_kernel_euler k _ X _ p _ |
| 66 | (C.sc' j (j + 1) ((j + 1) + 1)) hS |
| 67 | (inferInstance : (C.X j).IsQuasicoherent) |
| 68 | (inferInstance : (C.X (j + 1)).IsQuasicoherent) |
| 69 | (inferInstance : (C.X ((j + 1) + 1)).IsQuasicoherent) |
| 70 | (inferInstance : (C.X j).IsFiniteType) |
| 71 | (inferInstance : (C.X (j + 1)).IsFiniteType) |
| 72 | change a (n + 1) = CohomologyEulerCharacteristic.coefficientEulerCharacteristic p (kernel (C.d j (j + 1))) + |
| 73 | CohomologyEulerCharacteristic.coefficientEulerCharacteristic p (kernel (C.d (j + 1) ((j + 1) + 1))) at h |
| 74 | dsimp only [b] |
| 75 | rw [ite_eq_right hn, ite_eq_right (Nat.succ_ne_zero n)] |
| 76 | exact h.trans (congrArg (fun w : ℤ => CohomologyEulerCharacteristic.coefficientEulerCharacteristic p |
| 77 | (kernel (C.d j (j + 1))) + w) |
| 78 | (congrArg (fun i : ℤ => CohomologyEulerCharacteristic.coefficientEulerCharacteristic p (kernel (C.d i (i + 1)))) hj)) |
| 79 | have hS : (C.sc' (-(r : ℤ) - 1) (-(r : ℤ)) (-(r : ℤ) + 1)).Exact := |
| 80 | ShortComplex.exact_of_iso |
| 81 | (C.isoSc' (-(r : ℤ) - 1) (-(r : ℤ)) (-(r : ℤ) + 1) (by simp) (by simp)) |
| 82 | (hC (-(r : ℤ)) (by omega)) |
| 83 | have hb : b r = 0 := by |
| 84 | dsimp only [b] |
| 85 | rw [ite_eq_right (Nat.ne_of_gt hr)] |
| 86 | exact Bounded.ExactEuler.coefficientEulerCharacteristic_of_isZero p _ |
| 87 | (Bounded.ExactEuler.exact_kernel_isZero_of_first_isZero _ hS hneg) |
| 88 | have h := alternating_sum_of_adjacent_balance_with_constant a b |
| 89 | (CohomologyEulerCharacteristic.coefficientEulerCharacteristic p Q) hzero hstep r |
| 90 | simpa only [a, hb, mul_zero, add_zero] using h |
| 91 | |
| 92 | end |
| 93 | |
| 94 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Negative.ExactCochainEuler |