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.Ab |
| 2 | import Mathlib.Algebra.Homology.ShortComplex.HomologicalComplex |
| 3 | import Mathlib.Algebra.Homology.HomologicalComplexAbelian |
| 4 | |
| 5 | /-! # Cohomology Representatives -/ |
| 6 | |
| 7 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.Additive.CohomologyRepresentatives |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! Cocycles and boundaries for the actual categorical cohomology of |
| 12 | complexes of abelian groups, in arbitrary universe. The quotient |
| 13 | identification is mathlib's canonical short-complex homology isomorphism. -/ |
| 14 | |
| 15 | open _root_.CategoryTheory |
| 16 | |
| 17 | universe u |
| 18 | |
| 19 | variable (C : CochainComplex AddCommGrpCat.{u} ℕ) |
| 20 | |
| 21 | abbrev cocycles (n : ℕ) : AddSubgroup (C.X n) := (C.sc n).g.hom.ker |
| 22 | |
| 23 | abbrev boundaryMap (n : ℕ) : (C.sc n).X₁ →+ cocycles C n := (C.sc n).abToCycles |
| 24 | |
| 25 | abbrev boundaries (n : ℕ) : AddSubgroup (cocycles C n) := (boundaryMap C n).range |
| 26 | |
| 27 | def quotientEquiv (n : ℕ) : C.homology n ≃+ (cocycles C n ⧸ boundaries C n) := |
| 28 | (C.sc n).abHomologyIso.addCommGroupIsoToAddEquiv |
| 29 | |
| 30 | def cohomologyClass (n : ℕ) : cocycles C n →+ C.homology n := |
| 31 | (quotientEquiv C n).symm.toAddMonoidHom.comp (QuotientAddGroup.mk' (boundaries C n)) |
| 32 | |
| 33 | theorem mem_cocycles_iff (n : ℕ) (x : C.X n) : |
| 34 | x ∈ cocycles C n ↔ C.d n (n + 1) x = 0 := by |
| 35 | change C.d n ((ComplexShape.up ℕ).next n) x = 0 ↔ _ |
| 36 | rw [(ComplexShape.up ℕ).next_eq' (show (ComplexShape.up ℕ).Rel n (n + 1) from rfl)] |
| 37 | |
| 38 | theorem class_surjective (n : ℕ) : Function.Surjective (cohomologyClass C n) := |
| 39 | (quotientEquiv C n).symm.surjective.comp (QuotientAddGroup.mk'_surjective _) |
| 40 | |
| 41 | theorem class_eq_zero_iff (n : ℕ) (x : cocycles C n) : |
| 42 | cohomologyClass C n x = 0 ↔ x ∈ boundaries C n := by |
| 43 | change (quotientEquiv C n).symm ((QuotientAddGroup.mk' (boundaries C n)) x) = 0 ↔ _ |
| 44 | rw [← (quotientEquiv C n).symm.map_zero, (quotientEquiv C n).symm.injective.eq_iff] |
| 45 | exact QuotientAddGroup.eq_zero_iff x |
| 46 | |
| 47 | theorem class_boundary_zero (n : ℕ) (x : (C.sc n).X₁) : |
| 48 | cohomologyClass C n (boundaryMap C n x) = 0 := |
| 49 | (class_eq_zero_iff C n _).mpr ⟨x, rfl⟩ |
| 50 | |
| 51 | theorem class_eq_iff (n : ℕ) (x y : cocycles C n) : |
| 52 | cohomologyClass C n x = cohomologyClass C n y ↔ x - y ∈ boundaries C n := by |
| 53 | rw [← sub_eq_zero, ← map_sub, class_eq_zero_iff] |
| 54 | |
| 55 | theorem class_eq_zero_iff_exists_succ (n : ℕ) (x : cocycles C (n + 1)) : |
| 56 | cohomologyClass C (n + 1) x = 0 ↔ |
| 57 | ∃ z : C.X n, C.d n (n + 1) z = (x : C.X (n + 1)) := by |
| 58 | rw [class_eq_zero_iff] |
| 59 | have he : x ∈ boundaries C (n + 1) ↔ |
| 60 | ∃ z : (C.sc (n + 1)).X₁, (C.sc (n + 1)).f z = (x : C.X (n + 1)) := by |
| 61 | constructor |
| 62 | · rintro ⟨z, hz⟩ |
| 63 | exact ⟨z, congrArg Subtype.val hz⟩ |
| 64 | · rintro ⟨z, hz⟩ |
| 65 | exact ⟨z, Subtype.ext hz⟩ |
| 66 | rw [he] |
| 67 | change (∃ z : C.X ((ComplexShape.up ℕ).prev (n + 1)), |
| 68 | C.d ((ComplexShape.up ℕ).prev (n + 1)) (n + 1) z = (x : C.X (n + 1))) ↔ _ |
| 69 | rw [(ComplexShape.up ℕ).prev_eq' |
| 70 | (show (ComplexShape.up ℕ).Rel n (n + 1) from rfl)] |
| 71 | |
| 72 | end |
| 73 | |
| 74 | end OAI.NumberTheory.PadicHodge.IntegralComparison.Additive.CohomologyRepresentatives |