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.AlgebraicGeometry.Picard.PoincareBundle.Finite.CoalgebraGroupLike |
| 2 | import Mathlib.RingTheory.HopfAlgebra.GroupLike |
| 3 | |
| 4 | /-! # Weight Character -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.Picard.PoincareBundle.Finite.WeightCharacter |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! A nonzero finite weight coalgebra supplies an actual invertible Hopf character with the prescribed restriction. -/ |
| 11 | |
| 12 | universe u v w w' |
| 13 | |
| 14 | open Coalgebra |
| 15 | |
| 16 | variable (k : Type u) [Field k] [IsAlgClosed k] |
| 17 | (C : Type v) [AddCommGroup C] [Module k C] [Module.Finite k C] [Nontrivial C] |
| 18 | [Coalgebra k C] [Coalgebra.IsCocomm k C] |
| 19 | (H : Type w) [CommRing H] [HopfAlgebra k H] |
| 20 | (j : C →ₗc[k] H) |
| 21 | (R : Type w') [CommRing R] [Algebra k R] (r : H →ₐ[k] R) (χ : Rˣ) |
| 22 | |
| 23 | /-- A finite nonzero weight space contains a group-like unit whose restriction is the desired character. -/ |
| 24 | theorem exists_character |
| 25 | (hw : ∀ c : C, r (j c) = counit (R := k) c • χ.val) : |
| 26 | ∃ z : Hˣ, IsGroupLikeElem k z.val ∧ Units.map r.toMonoidHom z = χ := by |
| 27 | obtain ⟨c, hc⟩ := CoalgebraGroupLike.exists_groupLike k C |
| 28 | have hj : IsGroupLikeElem k (j c) := hc.map j |
| 29 | let z : Hˣ := GroupLike.toUnits k ⟨j c, hj⟩ |
| 30 | refine ⟨z, hj, ?_⟩ |
| 31 | apply Units.ext |
| 32 | change r (j c) = χ.val |
| 33 | rw [hw, hc.counit_eq_one, one_smul] |
| 34 | |
| 35 | end |
| 36 | |
| 37 | end OAI.AlgebraicGeometry.Picard.PoincareBundle.Finite.WeightCharacter |