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.DerivedCategory.Ext.EnoughInjectives |
| 2 | |
| 3 | /-! # Ext Extensions -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.FormalGeometry.Completion.ExtExtensions.Construction |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! |
| 10 | # Completion: concrete short exact extensions representing degree-one classes |
| 11 | |
| 12 | These constructions preserve the actual Ext group used by sheaf H¹. |
| 13 | A class is represented by pulling back an injective presentation, and its |
| 14 | vanishing is equivalent to a section of the resulting epimorphism. |
| 15 | -/ |
| 16 | |
| 17 | open _root_.CategoryTheory Limits Abelian |
| 18 | |
| 19 | set_option backward.defeqAttrib.useBackward true |
| 20 | set_option backward.isDefEq.respectTransparency false |
| 21 | |
| 22 | universe u v w |
| 23 | |
| 24 | variable {C : Type u} [Category.{v} C] [Abelian C] |
| 25 | |
| 26 | /-- Pull back the last map of a short complex, retaining its first object. -/ |
| 27 | def pullbackExtensionComplex (S : ShortComplex C) {Z : C} (a : Z ⟶ S.X₃) : ShortComplex C := |
| 28 | ShortComplex.mk (pullback.lift S.f 0 (by simp [S.zero])) (pullback.snd S.g a) |
| 29 | (by simp) |
| 30 | |
| 31 | theorem pullbackExtensionComplex_shortExact {S : ShortComplex C} (hS : S.ShortExact) |
| 32 | {Z : C} (a : Z ⟶ S.X₃) : (pullbackExtensionComplex S a).ShortExact := by |
| 33 | have : Mono S.f := hS.mono_f |
| 34 | have : Epi S.g := hS.epi_g |
| 35 | let T := pullbackExtensionComplex S a |
| 36 | have hm : Mono T.f := mono_of_mono_fac (pullback.lift_fst S.f 0 (by simp [S.zero])) |
| 37 | have he : Epi T.g := inferInstanceAs (Epi (pullback.snd S.g a)) |
| 38 | refine ShortComplex.ShortExact.mk' ?_ hm he |
| 39 | apply ShortComplex.exact_of_f_is_kernel |
| 40 | apply KernelFork.IsLimit.ofι' |
| 41 | intro W k hk |
| 42 | have hk' : (k ≫ pullback.fst S.g a) ≫ S.g = 0 := by |
| 43 | rw [Category.assoc, pullback.condition, ← Category.assoc] |
| 44 | change (k ≫ T.g) ≫ a = 0 |
| 45 | rw [hk, zero_comp] |
| 46 | obtain ⟨l, hl⟩ := KernelFork.IsLimit.lift' hS.exact.fIsKernel _ hk' |
| 47 | refine ⟨l, ?_⟩ |
| 48 | apply pullback.hom_ext |
| 49 | · simpa [T, pullbackExtensionComplex, Category.assoc] using hl |
| 50 | · simpa [T, pullbackExtensionComplex, Category.assoc] using hk.symm |
| 51 | |
| 52 | /-- The canonical morphism from a pulled-back extension to the original one. -/ |
| 53 | def pullbackExtensionMorphism (S : ShortComplex C) {Z : C} (a : Z ⟶ S.X₃) : |
| 54 | pullbackExtensionComplex S a ⟶ S where |
| 55 | τ₁ := 𝟙 _ |
| 56 | τ₂ := pullback.fst S.g a |
| 57 | τ₃ := a |
| 58 | comm₁₂ := by simp [pullbackExtensionComplex] |
| 59 | comm₂₃ := pullback.condition |
| 60 | |
| 61 | variable [HasExt.{w} C] |
| 62 | |
| 63 | theorem pullbackExtensionComplex_extClass {S : ShortComplex C} (hS : S.ShortExact) |
| 64 | {Z : C} (a : Z ⟶ S.X₃) : |
| 65 | (pullbackExtensionComplex_shortExact hS a).extClass = |
| 66 | (Ext.mk₀ a).comp hS.extClass (zero_add 1) := by |
| 67 | have h := ShortComplex.ShortExact.extClass_naturality |
| 68 | (pullbackExtensionComplex_shortExact hS a) hS (pullbackExtensionMorphism S a) |
| 69 | simpa [pullbackExtensionMorphism] using h |
| 70 | |
| 71 | /-- Every actual Ext¹ class has a short exact extension representative. -/ |
| 72 | theorem ext_one_exists_shortExact [EnoughInjectives C] {X Y : C} (x : Ext X Y 1) : |
| 73 | ∃ (E : C) (i : Y ⟶ E) (p : E ⟶ X) (h : i ≫ p = 0) |
| 74 | (hs : (ShortComplex.mk i p h).ShortExact), hs.extClass = x := by |
| 75 | let S := ShortComplex.mk _ _ (cokernel.condition (Injective.ι Y)) |
| 76 | have hS : S.ShortExact := |
| 77 | { exact := ShortComplex.exact_of_g_is_cokernel _ (cokernelIsCokernel S.f) } |
| 78 | obtain ⟨y, hy⟩ := Ext.covariant_sequence_exact₁ X hS x (Ext.eq_zero_of_injective _) rfl |
| 79 | obtain ⟨a, rfl⟩ := (Ext.mk₀_bijective X S.X₃).surjective y |
| 80 | let T := pullbackExtensionComplex S a |
| 81 | exact ⟨T.X₂, T.f, T.g, T.zero, pullbackExtensionComplex_shortExact hS a, |
| 82 | (pullbackExtensionComplex_extClass hS a).trans hy⟩ |
| 83 | |
| 84 | /-- Vanishing of an extension class is exactly existence of a splitting. -/ |
| 85 | theorem extClass_eq_zero_iff_exists_section {S : ShortComplex C} (hS : S.ShortExact) : |
| 86 | hS.extClass = 0 ↔ ∃ s : S.X₃ ⟶ S.X₂, s ≫ S.g = 𝟙 _ := by |
| 87 | constructor |
| 88 | · intro hx |
| 89 | obtain ⟨y, hy⟩ := Ext.covariant_sequence_exact₃ S.X₃ hS (Ext.mk₀ (𝟙 S.X₃)) rfl |
| 90 | (by simp [hx]) |
| 91 | obtain ⟨s, rfl⟩ := (Ext.mk₀_bijective S.X₃ S.X₂).surjective y |
| 92 | refine ⟨s, (Ext.mk₀_bijective S.X₃ S.X₃).injective ?_⟩ |
| 93 | simpa only [Ext.mk₀_comp_mk₀] using hy |
| 94 | · rintro ⟨s, hs⟩ |
| 95 | have h := congrArg (fun z : Ext S.X₂ S.X₁ 1 => (Ext.mk₀ s).comp z (zero_add 1)) |
| 96 | hS.comp_extClass |
| 97 | simpa only [← Ext.comp_assoc_of_second_deg_zero, Ext.mk₀_comp_mk₀, |
| 98 | hs, Ext.mk₀_id_comp, Ext.comp_zero] using h |
| 99 | |
| 100 | end |
| 101 | |
| 102 | end OAI.AlgebraicGeometry.FormalGeometry.Completion.ExtExtensions.Construction |