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.Category.ModuleCat.Abelian |
| 2 | import Mathlib.Algebra.Homology.ShortComplex.ModuleCat |
| 3 | import Mathlib.Algebra.Homology.QuasiIso |
| 4 | import Mathlib.CategoryTheory.ConcreteCategory.EpiMono |
| 5 | |
| 6 | /-! # Double Complex Quasi Iso -/ |
| 7 | |
| 8 | namespace OAI.AlgebraicTopology.DeRham.Comparison.DoubleComplexQuasiIso.DoubleComplex |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! |
| 13 | # Element criteria for quasi-isomorphisms of module complexes |
| 14 | |
| 15 | These lemmas concern mathlib's actual homology objects and homology maps. The |
| 16 | proof uses its canonical kernel/image quotient isomorphism; the hypotheses |
| 17 | describe cocycle lifting and boundary reflection, rather than assuming any |
| 18 | isomorphism on cohomology. Both the ring and module universes are arbitrary. |
| 19 | -/ |
| 20 | |
| 21 | open _root_.CategoryTheory |
| 22 | |
| 23 | universe u v w |
| 24 | |
| 25 | variable {R : Type u} [Ring R] |
| 26 | |
| 27 | section ShortComplex |
| 28 | |
| 29 | variable {S T : ShortComplex (ModuleCat.{v} R)} |
| 30 | |
| 31 | private def kernelClass (S : ShortComplex (ModuleCat.{v} R)) : |
| 32 | LinearMap.ker S.g.hom →ₗ[R] S.homology := |
| 33 | S.moduleCatHomologyIso.toLinearEquiv.symm.toLinearMap.comp |
| 34 | (LinearMap.range S.moduleCatToCycles).mkQ |
| 35 | |
| 36 | private theorem kernelClass_surjective (S : ShortComplex (ModuleCat.{v} R)) : |
| 37 | Function.Surjective (kernelClass S) := |
| 38 | S.moduleCatHomologyIso.toLinearEquiv.symm.surjective.comp |
| 39 | (LinearMap.range S.moduleCatToCycles).mkQ_surjective |
| 40 | |
| 41 | set_option backward.isDefEq.respectTransparency false in |
| 42 | private theorem kernelClass_eq_iff_exists (S : ShortComplex (ModuleCat.{v} R)) |
| 43 | (x y : LinearMap.ker S.g.hom) : |
| 44 | kernelClass S x = kernelClass S y ↔ |
| 45 | ∃ z : S.X₁, S.f z = (x : S.X₂) - (y : S.X₂) := by |
| 46 | change S.moduleCatHomologyIso.toLinearEquiv.symm |
| 47 | ((LinearMap.range S.moduleCatToCycles).mkQ x) = |
| 48 | S.moduleCatHomologyIso.toLinearEquiv.symm |
| 49 | ((LinearMap.range S.moduleCatToCycles).mkQ y) ↔ _ |
| 50 | rw [S.moduleCatHomologyIso.toLinearEquiv.symm.injective.eq_iff] |
| 51 | change (Submodule.Quotient.mk x : |
| 52 | LinearMap.ker S.g.hom ⧸ LinearMap.range S.moduleCatToCycles) = |
| 53 | Submodule.Quotient.mk y ↔ _ |
| 54 | rw [Submodule.Quotient.eq] |
| 55 | change (∃ z, S.moduleCatToCycles z = x - y) ↔ _ |
| 56 | constructor |
| 57 | · rintro ⟨z, hz⟩ |
| 58 | exact ⟨z, congrArg Subtype.val hz⟩ |
| 59 | · rintro ⟨z, hz⟩ |
| 60 | exact ⟨z, Subtype.ext hz⟩ |
| 61 | |
| 62 | private theorem kernelClass_eq_zero_iff_exists (S : ShortComplex (ModuleCat.{v} R)) |
| 63 | (x : LinearMap.ker S.g.hom) : |
| 64 | kernelClass S x = 0 ↔ ∃ z : S.X₁, S.f z = (x : S.X₂) := by |
| 65 | simpa using kernelClass_eq_iff_exists S x 0 |
| 66 | |
| 67 | private def kernelMap (φ : S ⟶ T) : |
| 68 | LinearMap.ker S.g.hom →ₗ[R] LinearMap.ker T.g.hom := |
| 69 | (φ.τ₂.hom.comp (LinearMap.ker S.g.hom).subtype).codRestrict _ fun x => by |
| 70 | change T.g (φ.τ₂ (x : S.X₂)) = 0 |
| 71 | have h := ConcreteCategory.congr_hom φ.comm₂₃ (x : S.X₂) |
| 72 | change T.g (φ.τ₂ (x : S.X₂)) = φ.τ₃ (S.g (x : S.X₂)) at h |
| 73 | exact h.trans (by rw [show S.g (x : S.X₂) = 0 from x.property, map_zero]) |
| 74 | |
| 75 | private theorem kernelClass_eq_homologyπ (S : ShortComplex (ModuleCat.{v} R)) |
| 76 | (x : LinearMap.ker S.g.hom) : |
| 77 | kernelClass S x = S.homologyπ (S.moduleCatCyclesIso.inv x) := by |
| 78 | exact (ConcreteCategory.congr_hom S.moduleCatCyclesIso_inv_π x).symm |
| 79 | |
| 80 | private theorem kernelMap_eq_cyclesMap (φ : S ⟶ T) |
| 81 | (x : LinearMap.ker S.g.hom) : |
| 82 | T.moduleCatCyclesIso.inv (kernelMap φ x) = |
| 83 | (ShortComplex.cyclesMap φ) (S.moduleCatCyclesIso.inv x) := by |
| 84 | apply (ModuleCat.mono_iff_injective T.iCycles).mp inferInstance |
| 85 | have hT := ConcreteCategory.congr_hom T.moduleCatCyclesIso_inv_iCycles (kernelMap φ x) |
| 86 | have hS := ConcreteCategory.congr_hom S.moduleCatCyclesIso_inv_iCycles x |
| 87 | have hφ := ConcreteCategory.congr_hom (ShortComplex.cyclesMap_i φ) |
| 88 | (S.moduleCatCyclesIso.inv x) |
| 89 | change T.iCycles (T.moduleCatCyclesIso.inv (kernelMap φ x)) = φ.τ₂ (x : S.X₂) at hT |
| 90 | change S.iCycles (S.moduleCatCyclesIso.inv x) = (x : S.X₂) at hS |
| 91 | change T.iCycles ((ShortComplex.cyclesMap φ) (S.moduleCatCyclesIso.inv x)) = |
| 92 | φ.τ₂ (S.iCycles (S.moduleCatCyclesIso.inv x)) at hφ |
| 93 | exact hT.trans (by rw [hS] at hφ; exact hφ.symm) |
| 94 | |
| 95 | private theorem kernelClass_naturality (φ : S ⟶ T) |
| 96 | (x : LinearMap.ker S.g.hom) : |
| 97 | (ShortComplex.homologyMap φ) (kernelClass S x) = kernelClass T (kernelMap φ x) := by |
| 98 | rw [kernelClass_eq_homologyπ, kernelClass_eq_homologyπ, kernelMap_eq_cyclesMap] |
| 99 | exact ConcreteCategory.congr_hom (ShortComplex.homologyπ_naturality φ) |
| 100 | (S.moduleCatCyclesIso.inv x) |
| 101 | |
| 102 | /-- Lifting every target cycle modulo an actual boundary makes the canonical |
| 103 | homology map surjective. -/ |
| 104 | theorem shortComplex_homologyMap_surjective_of_cycle_lift (φ : S ⟶ T) |
| 105 | (hlift : ∀ y : T.X₂, T.g y = 0 → |
| 106 | ∃ x : S.X₂, S.g x = 0 ∧ ∃ z : T.X₁, T.f z = φ.τ₂ x - y) : |
| 107 | Function.Surjective (ShortComplex.homologyMap φ) := by |
| 108 | intro a |
| 109 | obtain ⟨y, rfl⟩ := kernelClass_surjective T a |
| 110 | obtain ⟨x, hx, z, hz⟩ := hlift y y.property |
| 111 | refine ⟨kernelClass S ⟨x, hx⟩, ?_⟩ |
| 112 | rw [kernelClass_naturality] |
| 113 | exact (kernelClass_eq_iff_exists T _ y).mpr ⟨z, hz⟩ |
| 114 | |
| 115 | /-- A cycle whose image is a boundary is itself a boundary precisely in the |
| 116 | situation needed to make the canonical homology map injective. -/ |
| 117 | theorem shortComplex_homologyMap_injective_of_boundary_reflection (φ : S ⟶ T) |
| 118 | (hreflect : ∀ x : S.X₂, S.g x = 0 → |
| 119 | (∃ z : T.X₁, T.f z = φ.τ₂ x) → ∃ z : S.X₁, S.f z = x) : |
| 120 | Function.Injective (ShortComplex.homologyMap φ) := by |
| 121 | apply (injective_iff_map_eq_zero _).mpr |
| 122 | intro a ha |
| 123 | obtain ⟨x, rfl⟩ := kernelClass_surjective S a |
| 124 | rw [kernelClass_naturality] at ha |
| 125 | apply (kernelClass_eq_zero_iff_exists S x).mpr |
| 126 | exact hreflect x x.property ((kernelClass_eq_zero_iff_exists T _).mp ha) |
| 127 | |
| 128 | /-- An elementwise criterion for quasi-isomorphisms of short complexes of |
| 129 | modules, with no presumed comparison isomorphism. -/ |
| 130 | theorem shortComplex_quasiIso_of_cycle_lift_and_boundary_reflection (φ : S ⟶ T) |
| 131 | (hlift : ∀ y : T.X₂, T.g y = 0 → |
| 132 | ∃ x : S.X₂, S.g x = 0 ∧ ∃ z : T.X₁, T.f z = φ.τ₂ x - y) |
| 133 | (hreflect : ∀ x : S.X₂, S.g x = 0 → |
| 134 | (∃ z : T.X₁, T.f z = φ.τ₂ x) → ∃ z : S.X₁, S.f z = x) : |
| 135 | ShortComplex.QuasiIso φ := by |
| 136 | rw [ShortComplex.quasiIso_iff, ConcreteCategory.isIso_iff_bijective] |
| 137 | exact ⟨shortComplex_homologyMap_injective_of_boundary_reflection φ hreflect, |
| 138 | shortComplex_homologyMap_surjective_of_cycle_lift φ hlift⟩ |
| 139 | |
| 140 | end ShortComplex |
| 141 | |
| 142 | variable {ι : Type w} {c : ComplexShape ι} |
| 143 | {K L : HomologicalComplex (ModuleCat.{v} R) c} |
| 144 | |
| 145 | /-- The same elementwise criterion in any degree and any complex shape. The |
| 146 | shape predecessor correctly includes the zero incoming map at an endpoint. -/ |
| 147 | theorem quasiIsoAt_of_cycle_lift_and_boundary_reflection (f : K ⟶ L) (n : ι) |
| 148 | (hlift : ∀ y : L.X n, L.d n (c.next n) y = 0 → |
| 149 | ∃ x : K.X n, K.d n (c.next n) x = 0 ∧ |
| 150 | ∃ z : L.X (c.prev n), L.d (c.prev n) n z = f.f n x - y) |
| 151 | (hreflect : ∀ x : K.X n, K.d n (c.next n) x = 0 → |
| 152 | (∃ z : L.X (c.prev n), L.d (c.prev n) n z = f.f n x) → |
| 153 | ∃ z : K.X (c.prev n), K.d (c.prev n) n z = x) : |
| 154 | QuasiIsoAt f n := by |
| 155 | rw [quasiIsoAt_iff] |
| 156 | exact shortComplex_quasiIso_of_cycle_lift_and_boundary_reflection |
| 157 | ((HomologicalComplex.shortComplexFunctor _ _ n).map f) hlift hreflect |
| 158 | |
| 159 | /-- Cycle lifting modulo boundaries together with boundary reflection in |
| 160 | every degree proves a quasi-isomorphism of the actual module complexes. -/ |
| 161 | theorem quasiIso_of_cycle_lift_and_boundary_reflection (f : K ⟶ L) |
| 162 | (hlift : ∀ (n : ι) (y : L.X n), L.d n (c.next n) y = 0 → |
| 163 | ∃ x : K.X n, K.d n (c.next n) x = 0 ∧ |
| 164 | ∃ z : L.X (c.prev n), L.d (c.prev n) n z = f.f n x - y) |
| 165 | (hreflect : ∀ (n : ι) (x : K.X n), K.d n (c.next n) x = 0 → |
| 166 | (∃ z : L.X (c.prev n), L.d (c.prev n) n z = f.f n x) → |
| 167 | ∃ z : K.X (c.prev n), K.d (c.prev n) n z = x) : |
| 168 | QuasiIso f := by |
| 169 | rw [quasiIso_iff] |
| 170 | exact fun n => quasiIsoAt_of_cycle_lift_and_boundary_reflection f n (hlift n) (hreflect n) |
| 171 | |
| 172 | end |
| 173 | |
| 174 | end OAI.AlgebraicTopology.DeRham.Comparison.DoubleComplexQuasiIso.DoubleComplex |