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 Mathlib.Algebra.Homology.ShortComplex.Exact |
| 2 | import Mathlib.Algebra.Homology.ShortComplex.Abelian |
| 3 | import Mathlib.CategoryTheory.Limits.Preserves.Shapes.Products |
| 4 | |
| 5 | /-! # Duality Descent -/ |
| 6 | |
| 7 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.Trace.DualityDescent |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! A trace-induced pairing is determined on coproducts and cokernels |
| 12 | by its values on the presenting objects. -/ |
| 13 | |
| 14 | open _root_.CategoryTheory _root_.CategoryTheory.Limits |
| 15 | |
| 16 | universe u v u' v' |
| 17 | |
| 18 | variable {C : Type u} [Category.{v} C] {D : Type u'} [Category.{v'} D] |
| 19 | (F : C ⥤ D) {ω : C} {T : D} (τ : F.obj ω ⟶ T) |
| 20 | |
| 21 | def pairingMap (M : C) : (M ⟶ ω) → (F.obj M ⟶ T) := fun f => F.map f ≫ τ |
| 22 | |
| 23 | theorem pairingMap_comp {M N : C} (f : M ⟶ N) (g : N ⟶ ω) : |
| 24 | pairingMap F τ M (f ≫ g) = F.map f ≫ pairingMap F τ N g := by |
| 25 | change F.map (f ≫ g) ≫ τ = F.map f ≫ F.map g ≫ τ |
| 26 | rw [F.map_comp, Category.assoc] |
| 27 | |
| 28 | theorem coproduct_bijective {ι : Type*} (M : ι → C) (c : Cofan M) |
| 29 | (hc : IsColimit c) [PreservesColimit (Discrete.functor M) F] |
| 30 | (hM : ∀ i, Function.Bijective (pairingMap F τ (M i))) : |
| 31 | Function.Bijective (pairingMap F τ c.pt) := by |
| 32 | classical |
| 33 | constructor |
| 34 | · intro f g hfg |
| 35 | apply hc.hom_ext |
| 36 | intro i |
| 37 | apply (hM i.as).1 |
| 38 | rw [pairingMap_comp, pairingMap_comp, hfg] |
| 39 | · intro l |
| 40 | choose f hf using fun i => (hM i).2 (F.map (c.inj i) ≫ l) |
| 41 | let a := hc.desc (Cofan.mk ω f) |
| 42 | refine ⟨a, ?_⟩ |
| 43 | apply (isColimitOfPreserves F hc).hom_ext |
| 44 | intro i |
| 45 | change F.map (c.inj i.as) ≫ pairingMap F τ c.pt a = F.map (c.inj i.as) ≫ l |
| 46 | exact (pairingMap_comp F τ (c.inj i.as) a).symm.trans |
| 47 | ((congrArg (pairingMap F τ (M i.as)) (hc.fac (Cofan.mk ω f) i)).trans (hf i.as)) |
| 48 | |
| 49 | variable [Abelian C] [HasZeroMorphisms D] [F.PreservesZeroMorphisms] |
| 50 | |
| 51 | theorem cokernel_bijective (S : ShortComplex C) (hS : S.Exact) [Epi S.g] [Epi (F.map S.g)] |
| 52 | (h₁ : Function.Injective (pairingMap F τ S.X₁)) |
| 53 | (h₂ : Function.Bijective (pairingMap F τ S.X₂)) : |
| 54 | Function.Bijective (pairingMap F τ S.X₃) := by |
| 55 | constructor |
| 56 | · intro f g hfg |
| 57 | apply (cancel_epi S.g).mp |
| 58 | apply h₂.1 |
| 59 | rw [pairingMap_comp, pairingMap_comp, hfg] |
| 60 | · intro l |
| 61 | obtain ⟨f, hf⟩ := h₂.2 (F.map S.g ≫ l) |
| 62 | have hz : S.f ≫ f = 0 := by |
| 63 | apply h₁ |
| 64 | rw [pairingMap_comp, hf, ← Category.assoc, ← F.map_comp, S.zero, F.map_zero, |
| 65 | zero_comp] |
| 66 | change 0 = F.map (0 : S.X₁ ⟶ ω) ≫ τ |
| 67 | rw [F.map_zero, zero_comp] |
| 68 | refine ⟨hS.desc f hz, ?_⟩ |
| 69 | apply (cancel_epi (F.map S.g)).mp |
| 70 | exact (pairingMap_comp F τ S.g (hS.desc f hz)).symm.trans |
| 71 | ((congrArg (pairingMap F τ S.X₂) (hS.g_desc f hz)).trans hf) |
| 72 | |
| 73 | end |
| 74 | |
| 75 | end OAI.NumberTheory.PadicHodge.IntegralComparison.Trace.DualityDescent |