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.ExactLength |
| 2 | import Mathlib.Algebra.Homology.SpectralObject.Page |
| 3 | import Mathlib.Order.WithBotTop |
| 4 | import Mathlib.Data.ENat.BigOperators |
| 5 | |
| 6 | /-! # Spectral Filtration Length -/ |
| 7 | |
| 8 | namespace OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.SpectralFiltrationLength |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! A finite filtration supplied by an actual spectral object has total |
| 13 | homology length equal to the sum of its graded lengths. The proof uses |
| 14 | the native short exact sequences of spectral opcycles. -/ |
| 15 | |
| 16 | set_option backward.isDefEq.respectTransparency false |
| 17 | set_option backward.isDefEq.respectTransparency.types false |
| 18 | |
| 19 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.CategoryTheory.ComposableArrows |
| 20 | open scoped Classical |
| 21 | |
| 22 | def point (a : ℤ) (d i : ℕ) : EInt := ((a + (min i d : ℕ) : ℤ) : EInt) |
| 23 | |
| 24 | def lower (a : ℤ) (d i : ℕ) : point a d 0 ⟶ point a d i := |
| 25 | homOfLE (WithBotTop.coe_le_coe.mpr (by simp only [Nat.zero_min, Nat.cast_zero, add_zero]; omega)) |
| 26 | |
| 27 | def upper (a : ℤ) (d i : ℕ) : point a d i ⟶ point a d d := |
| 28 | homOfLE (WithBotTop.coe_le_coe.mpr (by simp only [min_self]; omega)) |
| 29 | |
| 30 | def step (a : ℤ) (d i : ℕ) : point a d i ⟶ point a d (i + 1) := |
| 31 | homOfLE (WithBotTop.coe_le_coe.mpr (by omega)) |
| 32 | |
| 33 | variable (R : Type) [CommRing R] (X : Abelian.SpectralObject (ModuleCat.{0} R) EInt) |
| 34 | (a : ℤ) (d : ℕ) (n : ℤ) |
| 35 | |
| 36 | def filtered (i : ℕ) : ModuleCat.{0} R := X.opcycles (lower a d i) (upper a d i) n |
| 37 | |
| 38 | def graded (i : ℕ) : ModuleCat.{0} R := |
| 39 | X.E (lower a d i) (step a d i) (upper a d (i + 1)) (n - 1) n (n + 1) |
| 40 | |
| 41 | def sequence (i : ℕ) : ShortComplex (ModuleCat.{0} R) := |
| 42 | X.shortComplexOpcyclesThreeδ₂Toδ₁ (lower a d i) (step a d i) (upper a d (i + 1)) |
| 43 | (lower a d (i + 1)) (upper a d i) (Subsingleton.elim _ _) (Subsingleton.elim _ _) |
| 44 | (n - 1) n (n + 1) |
| 45 | |
| 46 | theorem shortExact (i : ℕ) : (sequence R X a d n i).ShortExact := |
| 47 | X.shortComplexOpcyclesThreeδ₂Toδ₁_shortExact _ _ _ _ _ _ _ _ _ _ |
| 48 | |
| 49 | theorem step_length (i : ℕ) : |
| 50 | Module.length R (filtered R X a d n (i + 1)) = |
| 51 | Module.length R (filtered R X a d n i) + Module.length R (graded R X a d n i) := by |
| 52 | let S := sequence R X a d n i |
| 53 | have hS : S.ShortExact := shortExact R X a d n i |
| 54 | exact Module.length_eq_add_of_exact S.f.hom S.g.hom |
| 55 | ((ModuleCat.mono_iff_injective S.f).mp hS.mono_f) |
| 56 | ((ModuleCat.epi_iff_surjective S.g).mp hS.epi_g) |
| 57 | ((ShortComplex.ShortExact.moduleCat_exact_iff_function_exact S).mp hS.exact) |
| 58 | |
| 59 | theorem initial_zero : IsZero (filtered R X a d n 0) := by |
| 60 | apply X.isZero_opcycles |
| 61 | apply X.isZero_H_obj_of_isIso |
| 62 | have h : lower a d 0 = 𝟙 (point a d 0) := Subsingleton.elim _ _ |
| 63 | rw [h] |
| 64 | infer_instance |
| 65 | |
| 66 | def endpointIso : filtered R X a d n d ≅ (X.H n).obj (mk₁ (lower a d d)) := by |
| 67 | change X.opcycles (lower a d d) (upper a d d) n ≅ _ |
| 68 | have h : upper a d d = 𝟙 (point a d d) := Subsingleton.elim _ _ |
| 69 | rw [h] |
| 70 | exact X.opcyclesIsoH (lower a d d) (n - 1) n |
| 71 | |
| 72 | theorem filtered_length (i : ℕ) : |
| 73 | Module.length R (filtered R X a d n i) = |
| 74 | ∑ j ∈ Finset.range i, Module.length R (graded R X a d n j) := by |
| 75 | induction i with |
| 76 | | zero => |
| 77 | let := ModuleCat.subsingleton_of_isZero (initial_zero R X a d n) |
| 78 | simp only [Finset.range_zero, Finset.sum_empty, Module.length_eq_zero] |
| 79 | | succ i ih => |
| 80 | rw [show i + 1 = Nat.succ i from rfl] at * |
| 81 | rw [step_length, ih, Finset.sum_range_succ] |
| 82 | |
| 83 | theorem length_eq_sum : |
| 84 | Module.length R ((X.H n).obj (mk₁ (lower a d d))) = |
| 85 | ∑ i ∈ Finset.range d, Module.length R (graded R X a d n i) := by |
| 86 | rw [← (endpointIso R X a d n).toLinearEquiv.length_eq] |
| 87 | exact filtered_length R X a d n d |
| 88 | |
| 89 | theorem finite_length (h : ∀ i ∈ Finset.range d, Module.length R (graded R X a d n i) ≠ ⊤) : |
| 90 | Module.length R ((X.H n).obj (mk₁ (lower a d d))) ≠ ⊤ := by |
| 91 | rw [length_eq_sum, ENat.sum_ne_top] |
| 92 | exact h |
| 93 | |
| 94 | theorem rationalLength_eq_sum |
| 95 | (h : ∀ i ∈ Finset.range d, Module.length R (graded R X a d n i) ≠ ⊤) : |
| 96 | ExactLength.rationalLength R ((X.H n).obj (mk₁ (lower a d d))) = |
| 97 | ∑ i ∈ Finset.range d, ExactLength.rationalLength R (graded R X a d n i) := by |
| 98 | simp only [ExactLength.rationalLength] |
| 99 | rw [length_eq_sum, ENat.toNat_sum h, Nat.cast_sum] |
| 100 | |
| 101 | end |
| 102 | |
| 103 | end OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.SpectralFiltrationLength |