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.ShortExact |
| 2 | import Mathlib.Algebra.Homology.ShortComplex.Abelian |
| 3 | |
| 4 | /-! # Two Step Quotient -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.DivisorClass.Chern.TwoStepQuotient |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Two successive actual cokernels of the beginning of an exact complex. -/ |
| 11 | |
| 12 | open _root_.CategoryTheory _root_.CategoryTheory.Limits |
| 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 | def firstQuotientDifferential (S : ShortComplex C) : cokernel S.f ⟶ S.X₃ := |
| 22 | cokernel.desc S.f S.g S.zero |
| 23 | |
| 24 | theorem firstQuotientDifferential_comp (S : ShortComplex C) : |
| 25 | cokernel.π S.f ≫ firstQuotientDifferential S = S.g := cokernel.π_desc _ _ _ |
| 26 | |
| 27 | theorem firstQuotientDifferential_mono (S : ShortComplex C) (hS : S.Exact) : |
| 28 | Mono (firstQuotientDifferential S) := hS.mono_cokernelDesc |
| 29 | |
| 30 | def firstQuotientSequence (S : ShortComplex C) : ShortComplex C := ShortComplex.cokernelSequence S.f |
| 31 | |
| 32 | theorem firstQuotientSequence_shortExact (S : ShortComplex C) [Mono S.f] : |
| 33 | (firstQuotientSequence S).ShortExact := by |
| 34 | dsimp [firstQuotientSequence, ShortComplex.cokernelSequence] |
| 35 | exact { exact := ShortComplex.cokernelSequence_exact S.f } |
| 36 | |
| 37 | def secondQuotientSequence (S : ShortComplex C) : ShortComplex C := |
| 38 | ShortComplex.cokernelSequence (firstQuotientDifferential S) |
| 39 | |
| 40 | theorem secondQuotientSequence_shortExact (S : ShortComplex C) (hS : S.Exact) : |
| 41 | (secondQuotientSequence S).ShortExact := by |
| 42 | have := firstQuotientDifferential_mono S hS |
| 43 | dsimp [secondQuotientSequence, ShortComplex.cokernelSequence] |
| 44 | exact { exact := ShortComplex.cokernelSequence_exact (firstQuotientDifferential S) } |
| 45 | |
| 46 | theorem firstQuotientDifferential_next (S : ShortComplex C) {B : C} |
| 47 | (d : S.X₃ ⟶ B) (hd : S.g ≫ d = 0) : firstQuotientDifferential S ≫ d = 0 := by |
| 48 | apply (cancel_epi (cokernel.π S.f)).mp |
| 49 | rw [← Category.assoc, firstQuotientDifferential_comp, comp_zero, hd] |
| 50 | |
| 51 | def secondQuotientDifferential (S : ShortComplex C) {B : C} |
| 52 | (d : S.X₃ ⟶ B) (hd : S.g ≫ d = 0) : cokernel (firstQuotientDifferential S) ⟶ B := |
| 53 | cokernel.desc (firstQuotientDifferential S) d (firstQuotientDifferential_next S d hd) |
| 54 | |
| 55 | theorem secondQuotientDifferential_comp (S : ShortComplex C) {B : C} |
| 56 | (d : S.X₃ ⟶ B) (hd : S.g ≫ d = 0) : |
| 57 | cokernel.π (firstQuotientDifferential S) ≫ secondQuotientDifferential S d hd = d := |
| 58 | cokernel.π_desc _ _ _ |
| 59 | |
| 60 | theorem secondQuotientDifferential_mono (S : ShortComplex C) {B : C} |
| 61 | (d : S.X₃ ⟶ B) (hd : S.g ≫ d = 0) (he : (ShortComplex.mk S.g d hd).Exact) : |
| 62 | Mono (secondQuotientDifferential S d hd) := by |
| 63 | let T := ShortComplex.mk (firstQuotientDifferential S) d (firstQuotientDifferential_next S d hd) |
| 64 | let φ : ShortComplex.mk S.g d hd ⟶ T := { |
| 65 | τ₁ := cokernel.π S.f |
| 66 | τ₂ := 𝟙 _ |
| 67 | τ₃ := 𝟙 _ |
| 68 | comm₁₂ := by simp only [T, firstQuotientDifferential_comp, Category.comp_id] |
| 69 | comm₂₃ := by simp only [T, Category.id_comp, Category.comp_id] } |
| 70 | have hφ : Epi φ.τ₁ := inferInstanceAs (Epi (cokernel.π S.f)) |
| 71 | have hφ₂ : IsIso φ.τ₂ := inferInstanceAs (IsIso (𝟙 S.X₃)) |
| 72 | have hφ₃ : Mono φ.τ₃ := inferInstanceAs (Mono (𝟙 B)) |
| 73 | have hT : T.Exact := (ShortComplex.exact_iff_of_epi_of_isIso_of_mono φ).mp he |
| 74 | exact hT.mono_cokernelDesc |
| 75 | |
| 76 | end |
| 77 | |
| 78 | end OAI.AlgebraicGeometry.DivisorClass.Chern.TwoStepQuotient |