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.RingTheory.HopfAlgebra.Convolution |
| 2 | |
| 3 | /-! # Twisted Group Like Unit -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.Picard.PoincareBundle.TwistedGroupLikeUnit |
| 6 | |
| 7 | /-! A normalized group-like element for a unit twist is invertible in the original Hopf algebra. -/ |
| 8 | |
| 9 | universe u v |
| 10 | |
| 11 | open Coalgebra HopfAlgebra TensorProduct |
| 12 | |
| 13 | variable (k : Type u) (R : Type v) [CommRing k] [CommRing R] [HopfAlgebra k R] |
| 14 | |
| 15 | /-- Multiplication after applying the antipode to the second factor is an algebra map. -/ |
| 16 | noncomputable def contraction : R ⊗[k] R →ₐ[k] R := |
| 17 | Algebra.TensorProduct.lift (.id k R) (antipodeAlgHom k R) (fun _ _ ↦ Commute.all _ _) |
| 18 | |
| 19 | @[simp] |
| 20 | theorem contraction_tmul (a b : R) : contraction k R (a ⊗ₜ b) = a * antipode k b := rfl |
| 21 | |
| 22 | /-- The antipode identity evaluated by this contraction. -/ |
| 23 | theorem contraction_comul (a : R) : |
| 24 | contraction k R (comul a) = algebraMap k R (counit a) := by |
| 25 | have h : (contraction k R).toLinearMap = |
| 26 | (LinearMap.mul' k R).comp ((antipode k).lTensor R) := by |
| 27 | ext a b |
| 28 | rfl |
| 29 | change (contraction k R).toLinearMap (comul a) = _ |
| 30 | rw [h] |
| 31 | exact mul_antipode_lTensor_comul_apply a |
| 32 | |
| 33 | /-- This works for infinitesimal finite group schemes as well as reduced ones. -/ |
| 34 | theorem isUnit_of_twisted_groupLike (c : (R ⊗[k] R)ˣ) (a : R) |
| 35 | (hε : counit (R := k) a = 1) (hΔ : (c : R ⊗[k] R) * comul a = a ⊗ₜ[k] a) : |
| 36 | IsUnit a := by |
| 37 | have h := congrArg (contraction k R) hΔ |
| 38 | rw [map_mul, contraction_comul, hε, map_one, mul_one, contraction_tmul] at h |
| 39 | have hu : IsUnit (a * antipode k a) := h ▸ c.isUnit.map (contraction k R) |
| 40 | exact isUnit_of_mul_isUnit_left hu |
| 41 | |
| 42 | end OAI.AlgebraicGeometry.Picard.PoincareBundle.TwistedGroupLikeUnit |