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.NumberTheory.PadicHodge.IntegralComparison.Module.TotalInjectionElements |
| 2 | import OAI.NumberTheory.PadicHodge.IntegralComparison.Module.CochainClassNaturality |
| 3 | |
| 4 | /-! # Top Row Edge -/ |
| 5 | |
| 6 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.TopRowEdge |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! The actual final row of a first-quadrant double complex maps to |
| 11 | total cohomology. The map is defined on the original categorical |
| 12 | homology and retains the sign in the total differential. -/ |
| 13 | |
| 14 | open _root_.CategoryTheory _root_.CategoryTheory.Limits |
| 15 | |
| 16 | open OAI.NumberTheory.PadicHodge.IntegralComparison.Module.CochainClasses |
| 17 | |
| 18 | universe u v |
| 19 | |
| 20 | variable {R : Type u} [CommRing R] |
| 21 | (K : HomologicalComplex₂ (ModuleCat.{v} R) (.up ℕ) (.up ℕ)) |
| 22 | [K.HasTotal (.up ℕ)] (c : ℕ) |
| 23 | (hc : ∀ q, (K.d c (c + 1)).f q = 0) |
| 24 | |
| 25 | local notation "T" => K.total (ComplexShape.up ℕ) |
| 26 | |
| 27 | include hc in |
| 28 | omit [K.HasTotal (ComplexShape.up ℕ)] in |
| 29 | theorem outgoing_zero (q : ℕ) (x : (K.X c).X q) : |
| 30 | (K.d c (c + 1)).f q x = 0 := by |
| 31 | rw [hc q] |
| 32 | rfl |
| 33 | |
| 34 | private theorem differential_to (q p N N' : ℕ) (hN : q + p = N) (hnext : N + 1 = N') |
| 35 | (x : (K.X q).X p) : |
| 36 | (T).d N N' (K.ιTotal (.up ℕ) q p N hN x) = |
| 37 | K.ιTotal (.up ℕ) (q + 1) p N' (by change q + 1 + p = N'; omega) |
| 38 | ((K.d q (q + 1)).f p x) + |
| 39 | ((-1 : ℤˣ) ^ q) • K.ιTotal (.up ℕ) q (p + 1) N' |
| 40 | (by change q + (p + 1) = N'; omega) ((K.X q).d p (p + 1) x) := by |
| 41 | subst N' |
| 42 | exact Module.TotalInjectionElements.differential K q p N hN x |
| 43 | |
| 44 | def cycleMapTo (n N : ℕ) (hN : c + n = N) : Module.CochainClasses.cycles (K.X c) n →ₗ[R] Module.CochainClasses.cycles T N := |
| 45 | (((K.ιTotal (.up ℕ) c n N hN).hom).comp (Module.CochainClasses.cycles (K.X c) n).subtype).codRestrict _ |
| 46 | (fun x => by |
| 47 | change (T).d N (N + 1) (K.ιTotal (.up ℕ) c n N hN x.val) = 0 |
| 48 | have hx : (K.X c).d n (n + 1) x.val = 0 := x.property |
| 49 | have h := Module.TotalInjectionElements.differential K c n N hN x.val |
| 50 | simpa only [outgoing_zero K c hc, hx, map_zero, smul_zero, add_zero] using h) |
| 51 | |
| 52 | abbrev cycleMap (n : ℕ) : Module.CochainClasses.cycles (K.X c) n →ₗ[R] Module.CochainClasses.cycles T (c + n) := |
| 53 | cycleMapTo K c hc n (c + n) rfl |
| 54 | |
| 55 | def onCycles (n : ℕ) : Module.CochainClasses.cycles (K.X c) n →ₗ[R] (T).homology (c + n) := |
| 56 | (Module.CochainClasses.classMap T (c + n)).comp (cycleMap K c hc n) |
| 57 | |
| 58 | theorem onCycles_eq_zero (n : ℕ) (x : Module.CochainClasses.cycles (K.X c) n) |
| 59 | (hx : Module.CochainClasses.classMap (K.X c) n x = 0) : onCycles K c hc n x = 0 := by |
| 60 | cases n with |
| 61 | | zero => |
| 62 | have h := (Module.CochainClasses.classMap_zero_eq_zero_iff (K.X c) x).mp hx |
| 63 | rw [h, map_zero] |
| 64 | | succ n => |
| 65 | obtain ⟨y, hy⟩ := (Module.CochainClasses.classMap_succ_eq_zero_iff (K.X c) n x).mp hx |
| 66 | apply (Module.CochainClasses.classMap_eq_zero_iff T (c + (n + 1)) (cycleMap K c hc (n + 1) x)).mpr |
| 67 | have hprev : (ComplexShape.up ℕ).prev (c + (n + 1)) = c + n := by |
| 68 | rw [← Nat.add_assoc] |
| 69 | exact (ComplexShape.up ℕ).prev_eq' rfl |
| 70 | rw [hprev] |
| 71 | refine ⟨(-1 : ℤ) ^ c • K.ιTotal (.up ℕ) c n (c + n) rfl y, ?_⟩ |
| 72 | have hd := differential_to K c n (c + n) (c + (n + 1)) rfl (Nat.add_assoc c n 1) y |
| 73 | simp only [Units.smul_def, Units.val_pow_eq_pow_val, Units.coe_neg_one] at hd |
| 74 | rw [outgoing_zero K c hc, map_zero, zero_add, hy] at hd |
| 75 | change (T).d (c + n) (c + (n + 1)) |
| 76 | ((-1 : ℤ) ^ c • K.ιTotal (.up ℕ) c n (c + n) rfl y) = _ |
| 77 | rw [map_zsmul, hd, smul_smul, ← mul_pow] |
| 78 | norm_num |
| 79 | rfl |
| 80 | |
| 81 | private theorem boundary_le_kernel (n : ℕ) : |
| 82 | Module.CochainClasses.boundaries (K.X c) n ≤ (onCycles K c hc n).ker := by |
| 83 | intro x hx |
| 84 | apply onCycles_eq_zero K c hc n x |
| 85 | have hq : (Module.CochainClasses.boundaries (K.X c) n).mkQ x = 0 := |
| 86 | (Submodule.Quotient.mk_eq_zero (Module.CochainClasses.boundaries (K.X c) n)).mpr hx |
| 87 | change (Module.CochainClasses.quotientIso (K.X c) n).inv.hom ((Module.CochainClasses.boundaries (K.X c) n).mkQ x) = 0 |
| 88 | rw [hq, map_zero] |
| 89 | |
| 90 | def map (n : ℕ) : (K.X c).homology n →ₗ[R] (T).homology (c + n) := |
| 91 | ((Module.CochainClasses.boundaries (K.X c) n).liftQ (onCycles K c hc n) (boundary_le_kernel K c hc n)).comp |
| 92 | (Module.CochainClasses.quotientIso (K.X c) n).hom.hom |
| 93 | |
| 94 | theorem map_class (n : ℕ) (x : Module.CochainClasses.cycles (K.X c) n) : |
| 95 | map K c hc n (Module.CochainClasses.classMap (K.X c) n x) = Module.CochainClasses.classMap T (c + n) (cycleMap K c hc n x) := by |
| 96 | change (Module.CochainClasses.boundaries (K.X c) n).liftQ (onCycles K c hc n) (boundary_le_kernel K c hc n) |
| 97 | ((Module.CochainClasses.quotientIso (K.X c) n).hom ((Module.CochainClasses.quotientIso (K.X c) n).inv |
| 98 | ((Module.CochainClasses.boundaries (K.X c) n).mkQ x))) = _ |
| 99 | rw [Iso.inv_hom_id_apply] |
| 100 | rfl |
| 101 | |
| 102 | end |
| 103 | |
| 104 | end OAI.NumberTheory.PadicHodge.IntegralComparison.TopRowEdge |