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 |
| 2 | |
| 3 | /-! # Criterion -/ |
| 4 | |
| 5 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.Ext.Criterion.Comparison |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! |
| 10 | # IntegralComparison: a fixed-source criterion for comparison of Ext groups |
| 11 | |
| 12 | An exact functor preserving injectives gives an Ext comparison at a fixed |
| 13 | source once its degree-zero Hom comparison is bijective for every target. |
| 14 | For an exact adjunction, it suffices that the counit at that source is an |
| 15 | isomorphism. These are general categorical lemmas; no crystalline or |
| 16 | étale comparison is assumed. |
| 17 | -/ |
| 18 | |
| 19 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.CategoryTheory.Abelian |
| 20 | |
| 21 | universe w w' v v' u u' |
| 22 | |
| 23 | variable {C : Type u} [Category.{v} C] [Abelian C] |
| 24 | variable {D : Type u'} [Category.{v'} D] [Abelian D] |
| 25 | variable (F : C ⥤ D) [F.Additive] [PreservesFiniteLimits F] [PreservesFiniteColimits F] |
| 26 | variable [HasExt.{w} C] [HasExt.{w'} D] [EnoughInjectives C] |
| 27 | |
| 28 | attribute [local simp] Ext.mapExactFunctor_comp Ext.mapExactFunctor_mk₀ Ext.mapExactFunctor_extClass |
| 29 | |
| 30 | attribute [local instance] Ext.subsingleton_of_injective in |
| 31 | lemma bijective_of_hom_bijective [F.PreservesInjectiveObjects] (X : C) |
| 32 | (h₀ : ∀ Y : C, Function.Bijective (F.map : (X ⟶ Y) → (F.obj X ⟶ F.obj Y))) |
| 33 | (Y : C) (n : ℕ) : Function.Bijective (F.mapExtAddHom X Y n) := by |
| 34 | induction n generalizing Y with |
| 35 | | zero => simpa [Ext.mapExactFunctor₀] using h₀ Y |
| 36 | | succ n hn => |
| 37 | let I : InjectivePresentation Y := Classical.arbitrary _ |
| 38 | let S := ShortComplex.mk _ _ (cokernel.condition I.f) |
| 39 | have : Injective (S.map F).X₂ := Functor.PreservesInjectiveObjects.injective_obj I.injective |
| 40 | have hS : S.ShortExact := { exact := ShortComplex.cokernelSequence_exact I.f } |
| 41 | exact AddMonoidHom.bijective_of_surjective_of_bijective_of_right_exact _ _ _ _ |
| 42 | (F.mapExtAddHom X S.X₂ n) (F.mapExtAddHom X S.X₃ n) (F.mapExtAddHom X S.X₁ (n + 1)) |
| 43 | (by cat_disch) (by cat_disch) |
| 44 | ((ShortComplex.ab_exact_iff_function_exact _).mp |
| 45 | (Ext.covariant_sequence_exact₃' X hS n (n + 1) rfl)) |
| 46 | ((ShortComplex.ab_exact_iff_function_exact _).mp |
| 47 | (Ext.covariant_sequence_exact₃' (F.obj X) (hS.map F) n (n + 1) rfl)) |
| 48 | (hn _).surjective (hn _) |
| 49 | (fun x₁ => Ext.covariant_sequence_exact₁ _ hS x₁ (by subsingleton) rfl) |
| 50 | (fun y₁ => Ext.covariant_sequence_exact₁ _ (hS.map F) y₁ (by subsingleton) rfl) |
| 51 | |
| 52 | variable {L : D ⥤ C} (adj : L ⊣ F) |
| 53 | |
| 54 | omit [Abelian C] [Abelian D] [F.Additive] [PreservesFiniteLimits F] |
| 55 | [PreservesFiniteColimits F] [HasExt.{w} C] [HasExt.{w'} D] [EnoughInjectives C] in |
| 56 | lemma hom_bijective_of_counit (X Y : C) [IsIso (adj.counit.app X)] : |
| 57 | Function.Bijective (F.map : (X ⟶ Y) → (F.obj X ⟶ F.obj Y)) := by |
| 58 | let e : (X ⟶ Y) ≃ (L.obj (F.obj X) ⟶ Y) := |
| 59 | Iso.homCongr (asIso (adj.counit.app X)).symm (Iso.refl Y) |
| 60 | have he (g : X ⟶ Y) : e g = adj.counit.app X ≫ g := by simp [e] |
| 61 | have hmap (g : X ⟶ Y) : (adj.homEquiv (F.obj X) Y) (e g) = F.map g := by |
| 62 | rw [he, adj.homEquiv_naturality_right, ← adj.homEquiv_symm_id X] |
| 63 | change (adj.homEquiv (F.obj X) X) ((adj.homEquiv (F.obj X) X).symm (𝟙 _)) ≫ F.map g = F.map g |
| 64 | rw [Equiv.apply_symm_apply, Category.id_comp] |
| 65 | have hbij := (adj.homEquiv (F.obj X) Y).bijective.comp e.bijective |
| 66 | exact (show (fun g => (adj.homEquiv (F.obj X) Y) (e g)) = F.map from funext hmap) ▸ hbij |
| 67 | |
| 68 | lemma bijective_of_counit [L.PreservesMonomorphisms] (X Y : C) [IsIso (adj.counit.app X)] (n : ℕ) : |
| 69 | Function.Bijective (F.mapExtAddHom X Y n) := by |
| 70 | have := Functor.preservesInjectiveObjects_of_adjunction_of_preservesMonomorphisms adj |
| 71 | exact bijective_of_hom_bijective F X (fun Y => hom_bijective_of_counit F adj X Y) Y n |
| 72 | |
| 73 | end |
| 74 | |
| 75 | end OAI.NumberTheory.PadicHodge.IntegralComparison.Ext.Criterion.Comparison |