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.Abelian |
| 2 | import Mathlib.Algebra.Homology.ShortComplex.HomologicalComplex |
| 3 | |
| 4 | /-! # Augmented Complex Zero Comparison -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.AugmentedComplexZeroComparison.IntrinsicCech.AugmentedZero |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Degree-zero comparison for an exact augmented complex and its naturality. -/ |
| 11 | open _root_.CategoryTheory _root_.CategoryTheory.Limits |
| 12 | universe u v |
| 13 | variable {C : Type u} [Category.{v} C] [Abelian C] |
| 14 | |
| 15 | omit [Abelian C] in |
| 16 | private theorem two_squares {A₀ A₁ A₂ B₀ B₁ B₂ : C} |
| 17 | (f₁ : A₀ ⟶ A₁) (f₂ : A₁ ⟶ A₂) (g₁ : B₀ ⟶ B₁) (g₂ : B₁ ⟶ B₂) |
| 18 | (z₀ : A₀ ⟶ B₀) (z₁ : A₁ ⟶ B₁) (z₂ : A₂ ⟶ B₂) |
| 19 | (h₁ : z₀ ≫ g₁ = f₁ ≫ z₁) (h₂ : z₁ ≫ g₂ = f₂ ≫ z₂) : |
| 20 | z₀ ≫ (g₁ ≫ g₂) = (f₁ ≫ f₂) ≫ z₂ := by |
| 21 | rw [← Category.assoc, h₁, Category.assoc, h₂, ← Category.assoc] |
| 22 | |
| 23 | def comparison (K : CochainComplex C ℕ) {A : C} |
| 24 | (a : A ⟶ K.X 0) (w : a ≫ K.d 0 1 = 0) [Mono a] |
| 25 | (h : (ShortComplex.mk a (K.d 0 1) w).Exact) : K.homology 0 ≅ A := by |
| 26 | let l := K.liftCycles a 1 (by simp) w |
| 27 | have : IsIso l := (CochainComplex.isIso_liftCycles_iff K a w).mpr ⟨h, inferInstance⟩ |
| 28 | exact K.isoHomologyπ₀.symm ≪≫ (asIso l).symm |
| 29 | |
| 30 | theorem naturality {K L : CochainComplex C ℕ} {A B : C} |
| 31 | (a : A ⟶ K.X 0) (wa : a ≫ K.d 0 1 = 0) [Mono a] |
| 32 | (b : B ⟶ L.X 0) (wb : b ≫ L.d 0 1 = 0) [Mono b] |
| 33 | (ha : (ShortComplex.mk a (K.d 0 1) wa).Exact) |
| 34 | (hb : (ShortComplex.mk b (L.d 0 1) wb).Exact) |
| 35 | (f : A ⟶ B) (ψ : K ⟶ L) (hψ : f ≫ b = a ≫ ψ.f 0) : |
| 36 | HomologicalComplex.homologyMap ψ 0 ≫ (comparison L b wb hb).hom = |
| 37 | (comparison K a wa ha).hom ≫ f := by |
| 38 | let aK := K.liftCycles a 1 (by simp) wa |
| 39 | let aL := L.liftCycles b 1 (by simp) wb |
| 40 | have : IsIso aK := (CochainComplex.isIso_liftCycles_iff K a wa).mpr ⟨ha, inferInstance⟩ |
| 41 | have : IsIso aL := (CochainComplex.isIso_liftCycles_iff L b wb).mpr ⟨hb, inferInstance⟩ |
| 42 | let m := HomologicalComplex.cyclesMap ψ 0 |
| 43 | have h : aK ≫ m = f ≫ aL := by |
| 44 | apply (cancel_mono (L.iCycles 0)).mp |
| 45 | dsimp only [aK, aL, m] |
| 46 | rw [Category.assoc, HomologicalComplex.cyclesMap_i, |
| 47 | ← Category.assoc, HomologicalComplex.liftCycles_i, |
| 48 | Category.assoc, HomologicalComplex.liftCycles_i] |
| 49 | exact hψ.symm |
| 50 | have hi : m ≫ (asIso aL).inv = (asIso aK).inv ≫ f := by |
| 51 | change m ≫ inv aL = inv aK ≫ f |
| 52 | apply (cancel_epi aK).mp |
| 53 | rw [← Category.assoc, h, Category.assoc, IsIso.hom_inv_id, Category.comp_id, |
| 54 | IsIso.hom_inv_id_assoc] |
| 55 | exact two_squares K.isoHomologyπ₀.inv (asIso aK).inv L.isoHomologyπ₀.inv (asIso aL).inv |
| 56 | (HomologicalComplex.homologyMap ψ 0) m f |
| 57 | (CochainComplex.isoHomologyπ₀_inv_naturality ψ) hi |
| 58 | |
| 59 | def comparisonWithIso (K : CochainComplex C ℕ) {A A' : C} |
| 60 | (a : A ⟶ K.X 0) (w : a ≫ K.d 0 1 = 0) [Mono a] |
| 61 | (h : (ShortComplex.mk a (K.d 0 1) w).Exact) (q : A ≅ A') : K.homology 0 ≅ A' := |
| 62 | comparison K a w h ≪≫ q |
| 63 | |
| 64 | theorem naturalityWithIso {K L : CochainComplex C ℕ} {A B A' B' : C} |
| 65 | (a : A ⟶ K.X 0) (wa : a ≫ K.d 0 1 = 0) [Mono a] |
| 66 | (b : B ⟶ L.X 0) (wb : b ≫ L.d 0 1 = 0) [Mono b] |
| 67 | (ha : (ShortComplex.mk a (K.d 0 1) wa).Exact) |
| 68 | (hb : (ShortComplex.mk b (L.d 0 1) wb).Exact) |
| 69 | (f : A ⟶ B) (ψ : K ⟶ L) (hψ : f ≫ b = a ≫ ψ.f 0) |
| 70 | (q : A ≅ A') (r : B ≅ B') (g : A' ⟶ B') (hg : f ≫ r.hom = q.hom ≫ g) : |
| 71 | HomologicalComplex.homologyMap ψ 0 ≫ (comparisonWithIso L b wb hb r).hom = |
| 72 | (comparisonWithIso K a wa ha q).hom ≫ g := |
| 73 | two_squares (comparison K a wa ha).hom q.hom (comparison L b wb hb).hom r.hom |
| 74 | (HomologicalComplex.homologyMap ψ 0) f g (naturality a wa b wb ha hb f ψ hψ) hg |
| 75 | |
| 76 | end |
| 77 | |
| 78 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.AugmentedComplexZeroComparison.IntrinsicCech.AugmentedZero |