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.AbelianModuli.HilbertConstruction.InjectiveSheafFlasqueness |
| 2 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Sheaf.CohomologyExact |
| 3 | |
| 4 | /-! # Flasque Sheaf Cohomology -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.FlasqueSheafCohomology.ZariskiCohomology.FlasqueAcyclicity |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | universe u |
| 11 | open _root_.CategoryTheory Limits Opposite _root_.TopologicalSpace _root_.AlgebraicGeometry |
| 12 | |
| 13 | noncomputable abbrev injectiveCokernelSequence |
| 14 | {X : TopCat.{u}} (F : InjectiveSheafFlasqueness.ZariskiCohomology.FlasqueAcyclicity.AbSheaf X) : ShortComplex (InjectiveSheafFlasqueness.ZariskiCohomology.FlasqueAcyclicity.AbSheaf X) := |
| 15 | ShortComplex.mk (Injective.ι F) (cokernel.π (Injective.ι F)) |
| 16 | (cokernel.condition (Injective.ι F)) |
| 17 | |
| 18 | theorem injectiveCokernelSequence_shortExact |
| 19 | {X : TopCat.{u}} (F : InjectiveSheafFlasqueness.ZariskiCohomology.FlasqueAcyclicity.AbSheaf X) : |
| 20 | (injectiveCokernelSequence F).ShortExact := by |
| 21 | let : Mono (injectiveCokernelSequence F).f := by |
| 22 | change Mono (Injective.ι F) |
| 23 | infer_instance |
| 24 | exact ShortComplex.ShortExact.mk |
| 25 | (ShortComplex.cokernelSequence_exact (Injective.ι F)) |
| 26 | |
| 27 | theorem exists_injectiveCokernel_class |
| 28 | {X : TopCat.{u}} {Z F : InjectiveSheafFlasqueness.ZariskiCohomology.FlasqueAcyclicity.AbSheaf X} {n : ℕ} |
| 29 | (c : Abelian.Ext Z F (n + 1)) : |
| 30 | ∃ q : Abelian.Ext Z (cokernel (Injective.ι F)) n, |
| 31 | q.comp (injectiveCokernelSequence_shortExact F).extClass rfl = c := by |
| 32 | have hc : c.comp (Abelian.Ext.mk₀ (Injective.ι F)) rfl = 0 := |
| 33 | Abelian.Ext.eq_zero_of_injective _ |
| 34 | exact Abelian.Ext.covariant_sequence_exact₁ Z |
| 35 | (injectiveCokernelSequence_shortExact F) c hc rfl |
| 36 | |
| 37 | /-- Every positive-degree cohomology group of a flasque abelian sheaf is |
| 38 | subsingleton. The proof uses the actual injective-cokernel sequence: its |
| 39 | injective middle term is flasque, its cokernel remains flasque, and the base |
| 40 | case is the section-surjectivity theorem for a short exact sequence with |
| 41 | flasque kernel. -/ |
| 42 | theorem flasqueSheaf_H_succ_subsingleton |
| 43 | {X : TopCat.{u}} (F : InjectiveSheafFlasqueness.ZariskiCohomology.FlasqueAcyclicity.AbSheaf X) [TopCat.Sheaf.IsFlasque F] |
| 44 | (n : ℕ) : Subsingleton (CategoryTheory.Sheaf.H F (n + 1)) := by |
| 45 | induction n generalizing F with |
| 46 | | zero => |
| 47 | refine subsingleton_of_forall_eq 0 fun c ↦ ?_ |
| 48 | obtain ⟨q, hq⟩ := exists_injectiveCokernel_class c |
| 49 | let S := injectiveCokernelSequence F |
| 50 | have hS : S.ShortExact := injectiveCokernelSequence_shortExact F |
| 51 | have : Epi (S.g.hom.app (op (⊤ : Opens X))) := |
| 52 | TopCat.Sheaf.IsFlasque.epi_of_shortExact hS |
| 53 | obtain ⟨t, ht⟩ := (AddCommGrpCat.epi_iff_surjective _).mp |
| 54 | (inferInstance : Epi (S.g.hom.app (op (⊤ : Opens X)))) |
| 55 | (CategoryTheory.Sheaf.H.equiv₀ S.X₃ |
| 56 | (isTerminalTop : IsTerminal (⊤ : Opens X)) q) |
| 57 | let y := (CategoryTheory.Sheaf.H.equiv₀ S.X₂ |
| 58 | (isTerminalTop : IsTerminal (⊤ : Opens X))).symm t |
| 59 | have hy : CategoryTheory.Sheaf.H.map S.g 0 y = q := by |
| 60 | apply (CategoryTheory.Sheaf.H.equiv₀ S.X₃ |
| 61 | (isTerminalTop : IsTerminal (⊤ : Opens X))).injective |
| 62 | rw [← CategoryTheory.Sheaf.H.equiv₀_naturality] |
| 63 | simpa only [y, AddEquiv.apply_symm_apply] using ht |
| 64 | rw [← hq, ← hy] |
| 65 | change (y.comp (Abelian.Ext.mk₀ S.g) rfl).comp hS.extClass rfl = 0 |
| 66 | calc |
| 67 | _ = y.comp ((Abelian.Ext.mk₀ S.g).comp hS.extClass |
| 68 | (zero_add 1)) (zero_add 1) := by |
| 69 | simpa only using (Abelian.Ext.comp_assoc y |
| 70 | (Abelian.Ext.mk₀ S.g) hS.extClass rfl rfl rfl) |
| 71 | _ = 0 := by rw [hS.comp_extClass, Abelian.Ext.comp_zero] |
| 72 | | succ n ih => |
| 73 | refine subsingleton_of_forall_eq 0 fun c ↦ ?_ |
| 74 | obtain ⟨q, hq⟩ := exists_injectiveCokernel_class c |
| 75 | let S := injectiveCokernelSequence F |
| 76 | let : TopCat.Sheaf.IsFlasque S.X₂ := |
| 77 | InjectiveSheafFlasqueness.ZariskiCohomology.FlasqueAcyclicity.injectiveSheaf_isFlasque S.X₂ |
| 78 | let : TopCat.Sheaf.IsFlasque S.X₃ := |
| 79 | TopCat.Sheaf.IsFlasque.of_shortExact_of_isFlasque₁₂ |
| 80 | (injectiveCokernelSequence_shortExact F) |
| 81 | have hqzero : q = 0 := by |
| 82 | let : Subsingleton (CategoryTheory.Sheaf.H S.X₃ (n + 1)) := |
| 83 | ih S.X₃ |
| 84 | exact Subsingleton.elim _ _ |
| 85 | rw [← hq, hqzero, Abelian.Ext.zero_comp] |
| 86 | |
| 87 | end |
| 88 | |
| 89 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.FlasqueSheafCohomology.ZariskiCohomology.FlasqueAcyclicity |