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.DivisorClass.Chern.TwoStepQuotient |
| 2 | import Mathlib.Topology.Sheaves.AddCommGrpCat |
| 3 | |
| 4 | /-! # Second Quotient Cocycles -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.DivisorClass.Chern.SecondQuotientCocycles |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Actual closed sections lift uniquely into the second quotient of a locally exact complex. -/ |
| 11 | |
| 12 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.TopologicalSpace Opposite |
| 13 | |
| 14 | set_option backward.isDefEq.respectTransparency false |
| 15 | set_option backward.isDefEq.respectTransparency.types false |
| 16 | set_option backward.defeqAttrib.useBackward true |
| 17 | |
| 18 | universe u v |
| 19 | variable {C : Type u} [Category.{v} C] [Abelian C] |
| 20 | |
| 21 | theorem secondQuotientDifferential_next (S : ShortComplex C) {B D : C} |
| 22 | (d : S.X₃ ⟶ B) (hd : S.g ≫ d = 0) (e : B ⟶ D) (he : d ≫ e = 0) : |
| 23 | TwoStepQuotient.secondQuotientDifferential S d hd ≫ e = 0 := by |
| 24 | apply (cancel_epi (cokernel.π (TwoStepQuotient.firstQuotientDifferential S))).mp |
| 25 | rw [← Category.assoc, TwoStepQuotient.secondQuotientDifferential_comp, comp_zero, he] |
| 26 | |
| 27 | def secondQuotientCycleSequence (S : ShortComplex C) {B D : C} |
| 28 | (d : S.X₃ ⟶ B) (hd : S.g ≫ d = 0) (e : B ⟶ D) (he : d ≫ e = 0) : ShortComplex C := |
| 29 | ShortComplex.mk (TwoStepQuotient.secondQuotientDifferential S d hd) e (secondQuotientDifferential_next S d hd e he) |
| 30 | |
| 31 | theorem secondQuotientCycleSequence_exact (S : ShortComplex C) {B D : C} |
| 32 | (d : S.X₃ ⟶ B) (hd : S.g ≫ d = 0) (e : B ⟶ D) (he : d ≫ e = 0) |
| 33 | (hE : (ShortComplex.mk d e he).Exact) : (secondQuotientCycleSequence S d hd e he).Exact := by |
| 34 | let φ : ShortComplex.mk d e he ⟶ secondQuotientCycleSequence S d hd e he := { |
| 35 | τ₁ := cokernel.π (TwoStepQuotient.firstQuotientDifferential S) |
| 36 | τ₂ := 𝟙 _ |
| 37 | τ₃ := 𝟙 _ |
| 38 | comm₁₂ := by simp only [secondQuotientCycleSequence, TwoStepQuotient.secondQuotientDifferential_comp, Category.comp_id] |
| 39 | comm₂₃ := by simp only [secondQuotientCycleSequence, Category.id_comp, Category.comp_id] } |
| 40 | have : Epi φ.τ₁ := inferInstanceAs (Epi (cokernel.π (TwoStepQuotient.firstQuotientDifferential S))) |
| 41 | have : IsIso φ.τ₂ := inferInstanceAs (IsIso (𝟙 B)) |
| 42 | have : Mono φ.τ₃ := inferInstanceAs (Mono (𝟙 D)) |
| 43 | exact (ShortComplex.exact_iff_of_epi_of_isIso_of_mono φ).mp hE |
| 44 | |
| 45 | theorem sheafSecondQuotient_exists_section {X : TopCat.{0}} |
| 46 | (S : ShortComplex (TopCat.Sheaf AddCommGrpCat.{0} X)) |
| 47 | {B D : TopCat.Sheaf AddCommGrpCat.{0} X} |
| 48 | (d : S.X₃ ⟶ B) (hd : S.g ≫ d = 0) (e : B ⟶ D) (he : d ≫ e = 0) |
| 49 | (hmid : (ShortComplex.mk S.g d hd).Exact) (hlast : (ShortComplex.mk d e he).Exact) |
| 50 | (U : Opens X) (ω : B.obj.obj (op U)) (hω : e.hom.app (op U) ω = 0) : |
| 51 | ∃ s : (cokernel (TwoStepQuotient.firstQuotientDifferential S)).obj.obj (op U), |
| 52 | (TwoStepQuotient.secondQuotientDifferential S d hd).hom.app (op U) s = ω := by |
| 53 | have hmono : Mono (secondQuotientCycleSequence S d hd e he).f := |
| 54 | TwoStepQuotient.secondQuotientDifferential_mono S d hd hmid |
| 55 | exact TopCat.Sheaf.sections_exact_of_left_exact |
| 56 | (secondQuotientCycleSequence_exact S d hd e he hlast) hmono ω hω |
| 57 | |
| 58 | end |
| 59 | |
| 60 | end OAI.AlgebraicGeometry.DivisorClass.Chern.SecondQuotientCocycles |