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.ArithmeticGeometry.OrdinaryLocus.Openness.ShortComplexEndpointHomotopy |
| 2 | import Mathlib.Algebra.Homology.ShortComplex.ModuleCat |
| 3 | |
| 4 | /-! # Short Complex First Cycles -/ |
| 5 | |
| 6 | namespace OAI.ArithmeticGeometry.OrdinaryLocus.Openness.ShortComplexFirstCycles.Construction |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Explicit preservation of degree-zero cycles under a short-complex homotopy. -/ |
| 11 | |
| 12 | open _root_.CategoryTheory |
| 13 | |
| 14 | universe u v |
| 15 | |
| 16 | variable {R : Type u} [CommRing R] {S T U : ShortComplex (ModuleCat.{v} R)} |
| 17 | |
| 18 | def shortComplexFirstCyclesMap (φ : S ⟶ T) : LinearMap.ker S.f.hom →ₗ[R] LinearMap.ker T.f.hom where |
| 19 | toFun x := ⟨φ.τ₁ x, by |
| 20 | have h := CategoryTheory.congr_fun φ.comm₁₂ x.val |
| 21 | change T.f (φ.τ₁ x.val) = φ.τ₂ (S.f x.val) at h |
| 22 | rw [show S.f x.val = 0 from x.property, map_zero] at h |
| 23 | exact h⟩ |
| 24 | map_add' x y := Subtype.ext (map_add φ.τ₁.hom x.val y.val) |
| 25 | map_smul' r x := Subtype.ext (map_smul φ.τ₁.hom r x.val) |
| 26 | |
| 27 | theorem shortComplexFirstCyclesMap_id : |
| 28 | shortComplexFirstCyclesMap (𝟙 S) = LinearMap.id := rfl |
| 29 | |
| 30 | theorem shortComplexFirstCyclesMap_comp (φ : S ⟶ T) (ψ : T ⟶ U) : |
| 31 | shortComplexFirstCyclesMap (φ ≫ ψ) = |
| 32 | (shortComplexFirstCyclesMap ψ).comp (shortComplexFirstCyclesMap φ) := rfl |
| 33 | |
| 34 | theorem shortComplexFirstCyclesMap_homotopy {φ ψ : S ⟶ T} |
| 35 | (h : ShortComplex.Homotopy φ ψ) (h₀ : h.h₀ = 0) : |
| 36 | shortComplexFirstCyclesMap φ = shortComplexFirstCyclesMap ψ := by |
| 37 | apply LinearMap.ext |
| 38 | intro x |
| 39 | apply Subtype.ext |
| 40 | change φ.τ₁ x.val = ψ.τ₁ x.val |
| 41 | have hc := CategoryTheory.congr_fun h.comm₁ x.val |
| 42 | change φ.τ₁ x.val = h.h₁ (S.f x.val) + h.h₀ x.val + ψ.τ₁ x.val at hc |
| 43 | rw [show S.f x.val = 0 from x.property, map_zero, h₀] at hc |
| 44 | simpa using hc |
| 45 | |
| 46 | def shortComplexFirstCyclesEquiv (e : ShortComplex.HomotopyEquiv S T) |
| 47 | (hh : e.homotopyHomInvId.h₀ = 0) (hi : e.homotopyInvHomId.h₀ = 0) : |
| 48 | LinearMap.ker S.f.hom ≃ₗ[R] LinearMap.ker T.f.hom := |
| 49 | LinearEquiv.ofLinearMap (shortComplexFirstCyclesMap e.hom) (shortComplexFirstCyclesMap e.inv) |
| 50 | (by |
| 51 | rw [← shortComplexFirstCyclesMap_comp, |
| 52 | shortComplexFirstCyclesMap_homotopy e.homotopyInvHomId hi, shortComplexFirstCyclesMap_id]) |
| 53 | (by |
| 54 | rw [← shortComplexFirstCyclesMap_comp, |
| 55 | shortComplexFirstCyclesMap_homotopy e.homotopyHomInvId hh, shortComplexFirstCyclesMap_id]) |
| 56 | |
| 57 | end |
| 58 | |
| 59 | end OAI.ArithmeticGeometry.OrdinaryLocus.Openness.ShortComplexFirstCycles.Construction |