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.Cochain.CupNaturality |
| 2 | |
| 3 | /-! # Pairing Transport -/ |
| 4 | |
| 5 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.Cochain.PairingTransport |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! Bilinear cochain products and their actual graded differential rule |
| 10 | transport through a chain isomorphism, naturally in commuting squares. -/ |
| 11 | |
| 12 | open _root_.CategoryTheory |
| 13 | |
| 14 | open OAI.NumberTheory.PadicHodge.IntegralComparison.Cochain.CupNaturality.Cohomology |
| 15 | universe u v |
| 16 | variable {R : Type u} [CommRing R] |
| 17 | {K L : CochainComplex (ModuleCat.{v} R) ℕ} (e : K ≅ L) |
| 18 | (μ : ∀ n m, L.X n →ₗ[R] L.X m →ₗ[R] L.X (n + m)) |
| 19 | |
| 20 | def cup (n m : ℕ) : K.X n →ₗ[R] K.X m →ₗ[R] K.X (n + m) := |
| 21 | (((μ n m).comp (e.hom.f n).hom).compl₂ (e.hom.f m).hom).compr₂ (e.inv.f (n + m)).hom |
| 22 | |
| 23 | theorem hom_cup (n m : ℕ) (x : K.X n) (y : K.X m) : |
| 24 | e.hom.f (n + m) (cup e μ n m x y) = μ n m (e.hom.f n x) (e.hom.f m y) := by |
| 25 | exact ConcreteCategory.congr_hom (congrArg (fun f : L ⟶ L => f.f (n + m)) e.inv_hom_id) |
| 26 | (μ n m (e.hom.f n x) (e.hom.f m y)) |
| 27 | |
| 28 | theorem map_cast {A B : CochainComplex (ModuleCat.{v} R) ℕ} (f : A ⟶ B) |
| 29 | {n m : ℕ} (h : n = m) (x : A.X n) : |
| 30 | f.f m (CohomologyCup.degreeCast A h x) = CohomologyCup.degreeCast B h (f.f n x) := by |
| 31 | subst m |
| 32 | rfl |
| 33 | |
| 34 | theorem hom_cupInto (n m k : ℕ) (h : n + m = k) (x : K.X n) (y : K.X m) : |
| 35 | e.hom.f k (CohomologyCup.cupInto K (cup e μ) n m k h x y) = |
| 36 | CohomologyCup.cupInto L μ n m k h (e.hom.f n x) (e.hom.f m y) := by |
| 37 | change e.hom.f k (CohomologyCup.degreeCast K h (cup e μ n m x y)) = _ |
| 38 | rw [map_cast, hom_cup] |
| 39 | rfl |
| 40 | |
| 41 | theorem comm_apply {A B : CochainComplex (ModuleCat.{v} R) ℕ} |
| 42 | (f : A ⟶ B) (n m : ℕ) (x : A.X n) : |
| 43 | f.f m (A.d n m x) = B.d n m (f.f n x) := |
| 44 | ConcreteCategory.congr_hom (f.comm n m).symm x |
| 45 | |
| 46 | variable (hμ : ∀ n m (x : L.X n) (y : L.X m), |
| 47 | L.d (n + m) (n + m + 1) (μ n m x y) = |
| 48 | CohomologyCup.cupInto L μ (n + 1) m (n + m + 1) (by omega) (L.d n (n + 1) x) y + |
| 49 | (-1 : ℤ) ^ n • CohomologyCup.cupInto L μ n (m + 1) (n + m + 1) (by omega) x (L.d m (m + 1) y)) |
| 50 | |
| 51 | include hμ in |
| 52 | theorem differential (n m : ℕ) (x : K.X n) (y : K.X m) : |
| 53 | K.d (n + m) (n + m + 1) (cup e μ n m x y) = |
| 54 | CohomologyCup.cupInto K (cup e μ) (n + 1) m (n + m + 1) (by omega) (K.d n (n + 1) x) y + |
| 55 | (-1 : ℤ) ^ n • CohomologyCup.cupInto K (cup e μ) n (m + 1) (n + m + 1) (by omega) x (K.d m (m + 1) y) := by |
| 56 | apply ((HomologicalComplex.eval _ _ (n + m + 1)).mapIso e).toLinearEquiv.injective |
| 57 | change e.hom.f (n + m + 1) _ = e.hom.f (n + m + 1) _ |
| 58 | rw [comm_apply, hom_cup, hμ, map_add, map_zsmul, hom_cupInto, hom_cupInto, |
| 59 | comm_apply, comm_apply] |
| 60 | |
| 61 | variable {K' L' : CochainComplex (ModuleCat.{v} R) ℕ} (e' : K' ≅ L') |
| 62 | (ν : ∀ n m, L'.X n →ₗ[R] L'.X m →ₗ[R] L'.X (n + m)) |
| 63 | (f : K ⟶ K') (g : L ⟶ L') (h : f ≫ e'.hom = e.hom ≫ g) |
| 64 | (hg : ∀ n m (x : L.X n) (y : L.X m), |
| 65 | g.f (n + m) (μ n m x y) = ν n m (g.f n x) (g.f m y)) |
| 66 | |
| 67 | include h hg in |
| 68 | theorem naturality (n m : ℕ) (x : K.X n) (y : K.X m) : |
| 69 | f.f (n + m) (cup e μ n m x y) = cup e' ν n m (f.f n x) (f.f m y) := by |
| 70 | have hs (a : ℕ) (z : K.X a) : e'.hom.f a (f.f a z) = g.f a (e.hom.f a z) := |
| 71 | ConcreteCategory.congr_hom (congrArg (fun b : K ⟶ L' => b.f a) h) z |
| 72 | apply ((HomologicalComplex.eval _ _ (n + m)).mapIso e').toLinearEquiv.injective |
| 73 | change e'.hom.f (n + m) _ = e'.hom.f (n + m) _ |
| 74 | rw [hs, hom_cup, hg, hom_cup, hs, hs] |
| 75 | |
| 76 | end |
| 77 | |
| 78 | end OAI.NumberTheory.PadicHodge.IntegralComparison.Cochain.PairingTransport |