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.Tensor.StablePage |
| 2 | import OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.SpectralFiltrationLength |
| 3 | import OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.ZeroSourceCone |
| 4 | |
| 5 | /-! # Convergence Length -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Tensor.ConvergenceLength |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! The fixed filtration pieces of a bounded tensor complex account for |
| 12 | the length of its actual total homology. -/ |
| 13 | |
| 14 | set_option backward.isDefEq.respectTransparency false |
| 15 | set_option backward.isDefEq.respectTransparency.types false |
| 16 | |
| 17 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.CategoryTheory.ComposableArrows |
| 18 | |
| 19 | open OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.SpectralFiltrationLength |
| 20 | |
| 21 | theorem point_zero (d : ℕ) : SpectralFiltrationLength.point (-1) (d + 1) 0 = ((-1 : ℤ) : EInt) := by |
| 22 | simp [SpectralFiltrationLength.point] |
| 23 | |
| 24 | theorem point_last (d : ℕ) : SpectralFiltrationLength.point (-1) (d + 1) (d + 1) = ((d : ℤ) : EInt) := by |
| 25 | unfold SpectralFiltrationLength.point |
| 26 | congr 1 |
| 27 | simp only [min_self, Nat.cast_add, Nat.cast_one] |
| 28 | omega |
| 29 | |
| 30 | theorem point_step (d i : ℕ) (hi : i ≤ d + 1) : SpectralFiltrationLength.point (-1) (d + 1) i = (((i : ℤ) - 1 : ℤ) : EInt) := by |
| 31 | unfold SpectralFiltrationLength.point |
| 32 | rw [Nat.min_eq_left hi] |
| 33 | congr 1 |
| 34 | |
| 35 | variable (R : Type) [CommRing R] (A K : CochainComplex (ModuleCat.{0} R) ℤ) |
| 36 | |
| 37 | def gradedIso (d : ℕ) (n : ℤ) (i : ℕ) (hi : i < d + 1) : |
| 38 | SpectralFiltrationLength.graded R (SpectralObject.abelian R K (BrutalFiltration.filtration R A)) |
| 39 | (-1) (d + 1) n i ≅ |
| 40 | StablePage.term R A K d ((i : ℤ) - 1) n (by omega) (by omega) := by |
| 41 | let D := BrutalFiltration.filtration R A |
| 42 | let X := SpectralObject.abelian R K D |
| 43 | let f₁ := SpectralFiltrationLength.lower (-1) (d + 1) i |
| 44 | let f₂ := SpectralFiltrationLength.step (-1) (d + 1) i |
| 45 | let f₃ := SpectralFiltrationLength.upper (-1) (d + 1) (i + 1) |
| 46 | let g₁ := StablePage.arrow (show -1 ≤ (i : ℤ) - 1 by omega) |
| 47 | let g₂ := StablePage.arrow (show (i : ℤ) - 1 ≤ ((i : ℤ) - 1) + 1 by omega) |
| 48 | let g₃ := StablePage.arrow (show ((i : ℤ) - 1) + 1 ≤ (d : ℤ) by omega) |
| 49 | have hnext : SpectralFiltrationLength.point (-1) (d + 1) (i + 1) = ((((i : ℤ) - 1) + 1 : ℤ) : EInt) := by |
| 50 | rw [point_step d (i + 1) (by omega)] |
| 51 | congr 1 |
| 52 | omega |
| 53 | let e : mk₃ f₁ f₂ f₃ ≅ mk₃ g₁ g₂ g₃ := |
| 54 | isoMk₃ (eqToIso (point_zero d)) (eqToIso (point_step d i (by omega))) |
| 55 | (eqToIso hnext) (eqToIso (point_last d)) |
| 56 | (Subsingleton.elim _ _) (Subsingleton.elim _ _) (Subsingleton.elim _ _) |
| 57 | let : IsIso (X.map f₁ f₂ f₃ g₁ g₂ g₃ e.hom (n - 1) n (n + 1)) := |
| 58 | SpectralIsomorphisms.E_map_isIso R K D _ _ _ _ _ _ e.hom (fun t => by infer_instance) n |
| 59 | exact asIso (X.map f₁ f₂ f₃ g₁ g₂ g₃ e.hom (n - 1) n (n + 1) (sub_add_cancel _ _) rfl) |
| 60 | |
| 61 | def endpointIso (d : ℕ) (hl : ∀ i, i < -(d : ℤ) → IsZero (A.X i)) |
| 62 | (hu : ∀ i, 0 < i → IsZero (A.X i)) (n : ℤ) : |
| 63 | ((SpectralObject.abelian R K (BrutalFiltration.filtration R A)).H n).obj |
| 64 | (mk₁ (SpectralFiltrationLength.lower (-1) (d + 1) (d + 1))) ≅ |
| 65 | ((Homotopy.complexFunctor R K).obj A).homology n := by |
| 66 | let D := BrutalFiltration.filtration R A |
| 67 | let f := SpectralFiltrationLength.lower (-1) (d + 1) (d + 1) |
| 68 | have hz : IsZero (D.obj (SpectralFiltrationLength.point (-1) (d + 1) 0)) := by |
| 69 | change IsZero (BrutalFiltration.complex R A (SpectralFiltrationLength.point (-1) (d + 1) 0)) |
| 70 | rw [point_zero] |
| 71 | exact BrutalFiltration.Bounds.stage_zero R A 0 (-1) hu (by omega) |
| 72 | let : IsIso (BrutalFiltration.toComplex R A (SpectralFiltrationLength.point (-1) (d + 1) (d + 1))) := by |
| 73 | rw [point_last] |
| 74 | exact BrutalFiltration.Bounds.toComplex_isIso R A (-(d : ℤ)) (d : ℤ) hl (by omega) |
| 75 | exact SpectralObject.termIso R K D f n ≪≫ |
| 76 | HomologicalComplex.homologyMapIso ((Homotopy.complexFunctor R K).mapIso |
| 77 | ((ZeroSourceCone.iso R (D.map f) hz).symm ≪≫ |
| 78 | asIso (BrutalFiltration.toComplex R A (SpectralFiltrationLength.point (-1) (d + 1) (d + 1))))) n |
| 79 | |
| 80 | theorem total_length_eq (d : ℕ) (hl : ∀ i, i < -(d : ℤ) → IsZero (A.X i)) |
| 81 | (hu : ∀ i, 0 < i → IsZero (A.X i)) (n : ℤ) : |
| 82 | Module.length R (((Homotopy.complexFunctor R K).obj A).homology n) = |
| 83 | ∑ i ∈ Finset.range (d + 1), Module.length R |
| 84 | (SpectralFiltrationLength.graded R (SpectralObject.abelian R K (BrutalFiltration.filtration R A)) |
| 85 | (-1) (d + 1) n i) := by |
| 86 | rw [← (endpointIso R A K d hl hu n).toLinearEquiv.length_eq] |
| 87 | exact SpectralFiltrationLength.length_eq_sum R _ (-1) (d + 1) n |
| 88 | |
| 89 | def gradedPageIso (d : ℕ) (hl : ∀ i, i < -(d : ℤ) → IsZero (A.X i)) |
| 90 | (hu : ∀ i, 0 < i → IsZero (A.X i)) (r : ℤ) (hr : (d : ℤ) + 3 ≤ r) |
| 91 | (n : ℤ) (i : ℕ) (hi : i < d + 1) : |
| 92 | SpectralFiltrationLength.graded R (SpectralObject.abelian R K (BrutalFiltration.filtration R A)) |
| 93 | (-1) (d + 1) n i ≅ |
| 94 | ((BrutalTensorSpectralSequence.spectralSequence R A K).page r (by omega)).X |
| 95 | (n - ((i : ℤ) - 1), (i : ℤ) - 1) := by |
| 96 | refine gradedIso R A K d n i hi ≪≫ ?_ |
| 97 | convert (StablePage.iso R A K d hl hu r hr |
| 98 | (n - ((i : ℤ) - 1)) ((i : ℤ) - 1) (by omega) (by omega)).symm using 2 |
| 99 | omega |
| 100 | |
| 101 | theorem total_length_latePage (d : ℕ) (hl : ∀ i, i < -(d : ℤ) → IsZero (A.X i)) |
| 102 | (hu : ∀ i, 0 < i → IsZero (A.X i)) (r : ℤ) (hr : (d : ℤ) + 3 ≤ r) (n : ℤ) : |
| 103 | Module.length R (((Homotopy.complexFunctor R K).obj A).homology n) = |
| 104 | ∑ i ∈ Finset.range (d + 1), Module.length R |
| 105 | (((BrutalTensorSpectralSequence.spectralSequence R A K).page r (by omega)).X |
| 106 | (n - ((i : ℤ) - 1), (i : ℤ) - 1)) := by |
| 107 | rw [total_length_eq R A K d hl hu n] |
| 108 | apply Finset.sum_congr rfl |
| 109 | intro i hi |
| 110 | exact (gradedPageIso R A K d hl hu r hr n i (Finset.mem_range.mp hi)).toLinearEquiv.length_eq |
| 111 | |
| 112 | theorem total_rationalLength_latePage (d : ℕ) (hl : ∀ i, i < -(d : ℤ) → IsZero (A.X i)) |
| 113 | (hu : ∀ i, 0 < i → IsZero (A.X i)) (r : ℤ) (hr : (d : ℤ) + 3 ≤ r) (n : ℤ) |
| 114 | (hlen : ∀ i ∈ Finset.range (d + 1), Module.length R |
| 115 | (((BrutalTensorSpectralSequence.spectralSequence R A K).page r (by omega)).X |
| 116 | (n - ((i : ℤ) - 1), (i : ℤ) - 1)) ≠ ⊤) : |
| 117 | ExactLength.rationalLength R (((Homotopy.complexFunctor R K).obj A).homology n) = |
| 118 | ∑ i ∈ Finset.range (d + 1), ExactLength.rationalLength R |
| 119 | (((BrutalTensorSpectralSequence.spectralSequence R A K).page r (by omega)).X |
| 120 | (n - ((i : ℤ) - 1), (i : ℤ) - 1)) := by |
| 121 | simp only [ExactLength.rationalLength] |
| 122 | rw [total_length_latePage R A K d hl hu r hr n, ENat.toNat_sum hlen, Nat.cast_sum] |
| 123 | |
| 124 | end |
| 125 | |
| 126 | end OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Tensor.ConvergenceLength |