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.ModuleCat |
| 2 | |
| 3 | /-! # Short Complex Of -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.Quotients.FiniteDescent.ShortComplexOf.Construction.ShortComplexComparison |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! Concrete criteria for comparing the kernels and cokernels of short complexes. -/ |
| 10 | |
| 11 | open _root_.CategoryTheory _root_.CategoryTheory.Limits |
| 12 | |
| 13 | universe u v |
| 14 | |
| 15 | variable {R : Type u} [CommRing R] |
| 16 | variable {S T : ShortComplex (ModuleCat.{v} R)} (φ : S ⟶ T) |
| 17 | |
| 18 | theorem opcycles_iso |
| 19 | (hs : ∀ y : T.X₂, ∃ x : S.X₂, ∃ z : T.X₁, φ.τ₂ x + T.f z = y) |
| 20 | (hi : ∀ x : S.X₂, φ.τ₂ x ∈ T.f.hom.range → x ∈ S.f.hom.range) : |
| 21 | IsIso (ShortComplex.opcyclesMap φ) := by |
| 22 | apply (ConcreteCategory.isIso_iff_bijective _).mpr |
| 23 | constructor |
| 24 | · intro x y hxy |
| 25 | have hp : Function.Surjective S.pOpcycles := |
| 26 | (ModuleCat.epi_iff_surjective _).mp inferInstance |
| 27 | obtain ⟨a, rfl⟩ := hp x |
| 28 | obtain ⟨b, rfl⟩ := hp y |
| 29 | have hab : T.pOpcycles (φ.τ₂ a) = T.pOpcycles (φ.τ₂ b) := by |
| 30 | simpa only [← ConcreteCategory.comp_apply, ShortComplex.p_opcyclesMap] using hxy |
| 31 | apply (S.moduleCat_pOpcycles_eq_iff a b).mpr |
| 32 | apply hi (a - b) |
| 33 | simpa only [map_sub] using (T.moduleCat_pOpcycles_eq_iff _ _).mp hab |
| 34 | · intro y |
| 35 | obtain ⟨b, rfl⟩ := (ModuleCat.epi_iff_surjective T.pOpcycles).mp inferInstance y |
| 36 | obtain ⟨a, z, hz⟩ := hs b |
| 37 | refine ⟨S.pOpcycles a, ?_⟩ |
| 38 | change (S.pOpcycles ≫ ShortComplex.opcyclesMap φ) a = T.pOpcycles b |
| 39 | rw [ShortComplex.p_opcyclesMap] |
| 40 | change T.pOpcycles (φ.τ₂ a) = T.pOpcycles b |
| 41 | apply (T.moduleCat_pOpcycles_eq_iff _ _).mpr |
| 42 | refine ⟨-z, ?_⟩ |
| 43 | rw [map_neg, ← hz] |
| 44 | abel |
| 45 | |
| 46 | theorem cycles_iso |
| 47 | (hs : ∀ y : T.X₂, T.g y = 0 → ∃ x : S.X₂, S.g x = 0 ∧ φ.τ₂ x = y) |
| 48 | (hi : ∀ x : S.X₂, S.g x = 0 → φ.τ₂ x = 0 → x = 0) : |
| 49 | IsIso (ShortComplex.cyclesMap φ) := by |
| 50 | apply (ConcreteCategory.isIso_iff_bijective _).mpr |
| 51 | constructor |
| 52 | · intro x y hxy |
| 53 | apply (ModuleCat.mono_iff_injective S.iCycles).mp inferInstance |
| 54 | apply sub_eq_zero.mp |
| 55 | apply hi (S.iCycles x - S.iCycles y) |
| 56 | · rw [map_sub] |
| 57 | change (S.iCycles ≫ S.g) x - (S.iCycles ≫ S.g) y = 0 |
| 58 | rw [S.iCycles_g] |
| 59 | exact sub_self 0 |
| 60 | · have h := congrArg (fun z => T.iCycles z) hxy |
| 61 | change (ShortComplex.cyclesMap φ ≫ T.iCycles) x = |
| 62 | (ShortComplex.cyclesMap φ ≫ T.iCycles) y at h |
| 63 | rw [ShortComplex.cyclesMap_i] at h |
| 64 | rw [map_sub] |
| 65 | exact sub_eq_zero.mpr h |
| 66 | · intro y |
| 67 | obtain ⟨a, ha, hay⟩ := hs (T.iCycles y) (by |
| 68 | change (T.iCycles ≫ T.g) y = 0 |
| 69 | rw [T.iCycles_g] |
| 70 | rfl) |
| 71 | refine ⟨S.cyclesMk a ha, ?_⟩ |
| 72 | apply (ModuleCat.mono_iff_injective T.iCycles).mp inferInstance |
| 73 | change (ShortComplex.cyclesMap φ ≫ T.iCycles) (S.cyclesMk a ha) = _ |
| 74 | rw [ShortComplex.cyclesMap_i] |
| 75 | change φ.τ₂ (S.iCycles (S.cyclesMk a ha)) = _ |
| 76 | have hm : S.iCycles (S.cyclesMk a ha) = a := S.i_cyclesMk a ha |
| 77 | rw [hm] |
| 78 | exact hay |
| 79 | |
| 80 | theorem quasiIso_of_cycles_iso (hS : S.f = 0) (hT : T.f = 0) |
| 81 | [IsIso (ShortComplex.cyclesMap φ)] : ShortComplex.QuasiIso φ := by |
| 82 | have := S.isIso_homologyπ hS |
| 83 | have := T.isIso_homologyπ hT |
| 84 | have : IsIso (S.homologyπ ≫ ShortComplex.homologyMap φ) := by |
| 85 | rw [ShortComplex.homologyπ_naturality] |
| 86 | infer_instance |
| 87 | exact ⟨IsIso.of_isIso_comp_left S.homologyπ (ShortComplex.homologyMap φ)⟩ |
| 88 | |
| 89 | end |
| 90 | |
| 91 | end OAI.AlgebraicGeometry.Quotients.FiniteDescent.ShortComplexOf.Construction.ShortComplexComparison |