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.Basic |
| 3 | |
| 4 | /-! # Bicomplex Pairing -/ |
| 5 | |
| 6 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.BicomplexPairing |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! A bilinear pairing of bidegrees induces a bilinear pairing of the |
| 11 | actual categorical total complexes. The construction uses only their |
| 12 | coproduct universal properties. -/ |
| 13 | |
| 14 | open _root_.CategoryTheory |
| 15 | |
| 16 | universe u v |
| 17 | |
| 18 | variable {R : Type u} [CommRing R] |
| 19 | (K L M : HomologicalComplex₂ (ModuleCat.{v} R) (.up ℕ) (.up ℕ)) |
| 20 | [K.HasTotal (.up ℕ)] [L.HasTotal (.up ℕ)] [M.HasTotal (.up ℕ)] |
| 21 | (μ : ∀ p q r s, (K.X p).X q →ₗ[R] (L.X r).X s →ₗ[R] (M.X (p + r)).X (q + s)) |
| 22 | |
| 23 | def rightDesc (n m p q : ℕ) (hpq : p + q = n) : |
| 24 | (L.total (.up ℕ)).X m →ₗ[R] (K.X p).X q →ₗ[R] (M.total (.up ℕ)).X (n + m) := |
| 25 | (L.totalDesc (c₁₂ := .up ℕ) fun r s hrs => |
| 26 | ModuleCat.ofHom (((μ p q r s).compr₂ |
| 27 | (M.ιTotal (.up ℕ) (p + r) (q + s) (n + m) (by |
| 28 | change (p + r) + (q + s) = n + m |
| 29 | change r + s = m at hrs |
| 30 | omega)).hom).flip)).hom |
| 31 | |
| 32 | def totalPairing (n m : ℕ) : |
| 33 | (K.total (.up ℕ)).X n →ₗ[R] (L.total (.up ℕ)).X m →ₗ[R] (M.total (.up ℕ)).X (n + m) := |
| 34 | (K.totalDesc (c₁₂ := .up ℕ) fun p q hpq => |
| 35 | ModuleCat.ofHom (rightDesc K L M μ n m p q hpq).flip).hom |
| 36 | |
| 37 | theorem totalPairing_ι (n m p q r s : ℕ) (hpq : p + q = n) (hrs : r + s = m) |
| 38 | (x : (K.X p).X q) (y : (L.X r).X s) : |
| 39 | totalPairing K L M μ n m (K.ιTotal (.up ℕ) p q n hpq x) |
| 40 | (L.ιTotal (.up ℕ) r s m hrs y) = |
| 41 | M.ιTotal (.up ℕ) (p + r) (q + s) (n + m) (by |
| 42 | change (p + r) + (q + s) = n + m |
| 43 | omega) (μ p q r s x y) := by |
| 44 | have h₁ := ConcreteCategory.congr_hom (K.ι_totalDesc (c₁₂ := .up ℕ) (i₁₂ := n) |
| 45 | (fun p q hpq => ModuleCat.ofHom (rightDesc K L M μ n m p q hpq).flip) |
| 46 | p q hpq) x |
| 47 | change totalPairing K L M μ n m (K.ιTotal (.up ℕ) p q n hpq x) = |
| 48 | (rightDesc K L M μ n m p q hpq).flip x at h₁ |
| 49 | rw [h₁] |
| 50 | change rightDesc K L M μ n m p q hpq (L.ιTotal (.up ℕ) r s m hrs y) x = _ |
| 51 | have h₂ := ConcreteCategory.congr_hom (L.ι_totalDesc (c₁₂ := .up ℕ) (i₁₂ := m) |
| 52 | (fun r s hrs => ModuleCat.ofHom (((μ p q r s).compr₂ |
| 53 | (M.ιTotal (.up ℕ) (p + r) (q + s) (n + m) (by |
| 54 | change (p + r) + (q + s) = n + m |
| 55 | change r + s = m at hrs |
| 56 | omega)).hom).flip)) r s hrs) y |
| 57 | exact DFunLike.congr_fun h₂ x |
| 58 | |
| 59 | omit [M.HasTotal (.up ℕ)] in |
| 60 | theorem bilinear_ext {Z : Type v} [AddCommGroup Z] [Module R Z] (n m : ℕ) |
| 61 | {f g : (K.total (.up ℕ)).X n →ₗ[R] (L.total (.up ℕ)).X m →ₗ[R] Z} |
| 62 | (h : ∀ p q r s (hpq : p + q = n) (hrs : r + s = m) |
| 63 | (x : (K.X p).X q) (y : (L.X r).X s), |
| 64 | f (K.ιTotal (.up ℕ) p q n hpq x) (L.ιTotal (.up ℕ) r s m hrs y) = |
| 65 | g (K.ιTotal (.up ℕ) p q n hpq x) (L.ιTotal (.up ℕ) r s m hrs y)) : f = g := by |
| 66 | have hf : (ModuleCat.ofHom f : (K.total (.up ℕ)).X n ⟶ |
| 67 | ModuleCat.of R ((L.total (.up ℕ)).X m →ₗ[R] Z)) = ModuleCat.ofHom g := by |
| 68 | apply HomologicalComplex₂.total.hom_ext |
| 69 | intro p q hpq |
| 70 | apply ModuleCat.hom_ext |
| 71 | apply LinearMap.ext |
| 72 | intro x |
| 73 | have hg : (ModuleCat.ofHom (f (K.ιTotal (.up ℕ) p q n hpq x)) : |
| 74 | (L.total (.up ℕ)).X m ⟶ ModuleCat.of R Z) = |
| 75 | ModuleCat.ofHom (g (K.ιTotal (.up ℕ) p q n hpq x)) := by |
| 76 | apply HomologicalComplex₂.total.hom_ext |
| 77 | intro r s hrs |
| 78 | apply ModuleCat.hom_ext |
| 79 | apply LinearMap.ext |
| 80 | intro y |
| 81 | exact h p q r s hpq hrs x y |
| 82 | exact congrArg ModuleCat.Hom.hom hg |
| 83 | exact congrArg ModuleCat.Hom.hom hf |
| 84 | |
| 85 | end |
| 86 | |
| 87 | end OAI.NumberTheory.PadicHodge.IntegralComparison.BicomplexPairing |