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.SheafCohomology.Cech.ComplexUpNatBoundary |
| 2 | import Mathlib.Algebra.Category.ModuleCat.Abelian |
| 3 | |
| 4 | /-! # Total Coordinates -/ |
| 5 | |
| 6 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.Module.TotalCoordinates |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Module coordinates and row elimination for the actual first-quadrant total complex. -/ |
| 11 | |
| 12 | open _root_.CategoryTheory Limits Preadditive |
| 13 | |
| 14 | universe u v |
| 15 | |
| 16 | variable {R : Type u} [CommRing R] |
| 17 | |
| 18 | private def homEvaluation {A B : ModuleCat.{v} R} (x : A) : (A ⟶ B) →+ B where |
| 19 | toFun f := f x |
| 20 | map_zero' := rfl |
| 21 | map_add' _ _ := rfl |
| 22 | |
| 23 | private theorem hom_sum_apply {A B : ModuleCat.{v} R} {ι : Type*} |
| 24 | (s : Finset ι) (f : ι → (A ⟶ B)) (x : A) : |
| 25 | (∑ i ∈ s, f i) x = ∑ i ∈ s, f i x := |
| 26 | map_sum (homEvaluation x) f s |
| 27 | |
| 28 | variable (K : HomologicalComplex₂ (ModuleCat.{v} R) (.up ℕ) (.up ℕ)) |
| 29 | [K.HasTotal (.up ℕ)] |
| 30 | |
| 31 | def ZeroRowsBefore (n : ℕ) (x : (K.total (.up ℕ)).X n) (q : ℕ) : Prop := |
| 32 | ∀ a b, a + b = n → a < q → (AlgebraicGeometry.SheafCohomology.Cech.UpNatLowDegrees.HomologicalComplex₂.πTotalUpNat K) a b n x = 0 |
| 33 | |
| 34 | theorem eq_zero_of_coordinates (n : ℕ) (x : (K.total (.up ℕ)).X n) |
| 35 | (h : ∀ i : Fin (n + 1), (AlgebraicGeometry.SheafCohomology.Cech.UpNatLowDegrees.HomologicalComplex₂.πTotalUpNat K) i (n - i) n x = 0) : x = 0 := by |
| 36 | have he := congrArg (fun f => f x) (AlgebraicGeometry.SheafCohomology.Cech.ComplexUpNatCoordinates.Projective.totalUpNat_decomposition K n) |
| 37 | rw [hom_sum_apply] at he |
| 38 | simpa only [ConcreteCategory.comp_apply, h, map_zero, Finset.sum_const_zero, |
| 39 | CategoryTheory.id_apply] using he.symm |
| 40 | |
| 41 | theorem cycle_row (n q p : ℕ) (hdeg : q + p = n) |
| 42 | (x : (K.total (.up ℕ)).X n) |
| 43 | (hx : (K.total (.up ℕ)).d n (n + 1) x = 0) |
| 44 | (hbefore : ZeroRowsBefore K n x q) : |
| 45 | (K.X q).d p (p + 1) ((AlgebraicGeometry.SheafCohomology.Cech.UpNatLowDegrees.HomologicalComplex₂.πTotalUpNat K) q p n x) = 0 := by |
| 46 | cases q with |
| 47 | | zero => |
| 48 | have hn : p = n := by omega |
| 49 | clear hdeg |
| 50 | subst n |
| 51 | have h := congrArg (fun f => f x) (AlgebraicGeometry.SheafCohomology.Cech.ComplexUpNatBoundary.Projective.total_d_π_zero K p) |
| 52 | simpa only [ConcreteCategory.comp_apply, hx, map_zero] using h.symm |
| 53 | | succ q => |
| 54 | have hn : q + p + 1 = n := by omega |
| 55 | clear hdeg |
| 56 | subst n |
| 57 | have h := congrArg (fun f => f x) (AlgebraicGeometry.SheafCohomology.Cech.ComplexUpNatBoundary.Projective.total_d_π_interior K q p) |
| 58 | have hp := hbefore q (p + 1) (by omega) (by omega) |
| 59 | have hz : ((-1 : ℤˣ) ^ (q + 1)) • |
| 60 | (K.X (q + 1)).d p (p + 1) |
| 61 | ((AlgebraicGeometry.SheafCohomology.Cech.UpNatLowDegrees.HomologicalComplex₂.πTotalUpNat K) (q + 1) p (q + p + 1) x) = 0 := by |
| 62 | simpa [ConcreteCategory.comp_apply, hx, hp, Units.smul_def] using h.symm |
| 63 | exact (smul_eq_zero_iff_eq _).mp hz |
| 64 | |
| 65 | theorem boundary_same_row (q p : ℕ) (y : (K.X q).X p) : |
| 66 | (AlgebraicGeometry.SheafCohomology.Cech.UpNatLowDegrees.HomologicalComplex₂.πTotalUpNat K) q (p + 1) (q + p + 1) |
| 67 | ((K.total (.up ℕ)).d (q + p) (q + p + 1) |
| 68 | (K.ιTotal (.up ℕ) q p (q + p) rfl y)) = |
| 69 | ((-1 : ℤˣ) ^ q) • (K.X q).d p (p + 1) y := by |
| 70 | have h := congrArg (fun f => f y) |
| 71 | (AlgebraicGeometry.SheafCohomology.Cech.UpNatLowDegrees.HomologicalComplex₂.ιTotal_d_upNat_assoc K q p ((AlgebraicGeometry.SheafCohomology.Cech.UpNatLowDegrees.HomologicalComplex₂.πTotalUpNat K) q (p + 1) (q + p + 1))) |
| 72 | simpa [ConcreteCategory.comp_apply, Units.smul_def] using h |
| 73 | |
| 74 | theorem boundary_before_row (q p a b : ℕ) (ha : a < q) (y : (K.X q).X p) : |
| 75 | (AlgebraicGeometry.SheafCohomology.Cech.UpNatLowDegrees.HomologicalComplex₂.πTotalUpNat K) a b (q + p + 1) |
| 76 | ((K.total (.up ℕ)).d (q + p) (q + p + 1) |
| 77 | (K.ιTotal (.up ℕ) q p (q + p) rfl y)) = 0 := by |
| 78 | have hq : q ≠ a := by omega |
| 79 | have hq' : q + 1 ≠ a := by omega |
| 80 | have h := congrArg (fun f => f y) |
| 81 | (AlgebraicGeometry.SheafCohomology.Cech.UpNatLowDegrees.HomologicalComplex₂.ιTotal_d_upNat_assoc K q p ((AlgebraicGeometry.SheafCohomology.Cech.UpNatLowDegrees.HomologicalComplex₂.πTotalUpNat K) a b (q + p + 1))) |
| 82 | simpa [ConcreteCategory.comp_apply, hq, hq'] using h |
| 83 | |
| 84 | theorem remove_boundary_coordinate (q p : ℕ) |
| 85 | (x : (K.total (.up ℕ)).X (q + p + 1)) |
| 86 | (y : (K.X q).X p) |
| 87 | (hy : (K.X q).d p (p + 1) y = (AlgebraicGeometry.SheafCohomology.Cech.UpNatLowDegrees.HomologicalComplex₂.πTotalUpNat K) q (p + 1) (q + p + 1) x) |
| 88 | (hbefore : ZeroRowsBefore K (q + p + 1) x q) : |
| 89 | ∃ z : (K.total (.up ℕ)).X (q + p), |
| 90 | ZeroRowsBefore K (q + p + 1) |
| 91 | (x - (K.total (.up ℕ)).d (q + p) (q + p + 1) z) (q + 1) := by |
| 92 | let r : ℤˣ := (-1) ^ q |
| 93 | let z := K.ιTotal (.up ℕ) q p (q + p) rfl (r⁻¹ • y) |
| 94 | have hz : (AlgebraicGeometry.SheafCohomology.Cech.UpNatLowDegrees.HomologicalComplex₂.πTotalUpNat K) q (p + 1) (q + p + 1) |
| 95 | ((K.total (.up ℕ)).d (q + p) (q + p + 1) z) = |
| 96 | (AlgebraicGeometry.SheafCohomology.Cech.UpNatLowDegrees.HomologicalComplex₂.πTotalUpNat K) q (p + 1) (q + p + 1) x := by |
| 97 | dsimp only [z] |
| 98 | rw [boundary_same_row] |
| 99 | have hsmul : (K.X q).d p (p + 1) (r⁻¹ • y) = |
| 100 | r⁻¹ • (K.X q).d p (p + 1) y := by |
| 101 | change (K.X q).d p (p + 1) ((r⁻¹ : ℤˣ).val • y) = _ |
| 102 | exact (K.X q).d p (p + 1) |>.hom.toAddMonoidHom.map_zsmul (r⁻¹ : ℤˣ).val y |
| 103 | rw [hsmul] |
| 104 | change r • (r⁻¹ • (K.X q).d p (p + 1) y) = _ |
| 105 | rw [smul_inv_smul, hy] |
| 106 | refine ⟨z, ?_⟩ |
| 107 | intro a b hab ha |
| 108 | by_cases haq : a < q |
| 109 | · rw [map_sub] |
| 110 | change _ - (AlgebraicGeometry.SheafCohomology.Cech.UpNatLowDegrees.HomologicalComplex₂.πTotalUpNat K) a b (q + p + 1) |
| 111 | ((K.total (.up ℕ)).d (q + p) (q + p + 1) |
| 112 | (K.ιTotal (.up ℕ) q p (q + p) rfl (r⁻¹ • y))) = 0 |
| 113 | rw [boundary_before_row K q p a b haq, sub_zero] |
| 114 | exact hbefore a b hab haq |
| 115 | · have heqa : a = q := by omega |
| 116 | have heqb : b = p + 1 := by omega |
| 117 | subst a b |
| 118 | rw [map_sub, hz, sub_self] |
| 119 | |
| 120 | end |
| 121 | |
| 122 | end OAI.NumberTheory.PadicHodge.IntegralComparison.Module.TotalCoordinates |