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.GradedAlgebra.Basic |
| 2 | |
| 3 | /-! # Zero Units -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.Divisors.LineBundles.Graded.ZeroUnits.BundleCycles |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! A unit of degree zero is already a unit in the actual degree-zero ring. -/ |
| 10 | |
| 11 | variable {A σ : Type*} [CommRing A] [SetLike σ A] [AddSubgroupClass σ A] |
| 12 | (𝒜 : ℕ → σ) [GradedRing 𝒜] |
| 13 | |
| 14 | theorem gradedZero_isUnit (a : 𝒜 0) (ha : IsUnit a.val) : IsUnit a := by |
| 15 | obtain ⟨u, hu⟩ := ha |
| 16 | have hmul : a.val * (↑u⁻¹ : A) = 1 := by rw [← hu]; exact u.val_inv |
| 17 | let b : 𝒜 0 := DirectSum.decompose 𝒜 (↑u⁻¹ : A) 0 |
| 18 | have hproj := congrArg (fun z : A => ((DirectSum.decompose 𝒜 z 0).val : A)) hmul |
| 19 | have he : a.val * b.val = 1 := by |
| 20 | rw [DirectSum.coe_decompose_mul_of_left_mem_zero 𝒜 a.property, |
| 21 | DirectSum.decompose_of_mem_same 𝒜 (SetLike.one_mem_graded 𝒜)] at hproj |
| 22 | exact hproj |
| 23 | exact IsUnit.of_mul_eq_one b (Subtype.ext he) |
| 24 | |
| 25 | end |
| 26 | |
| 27 | end OAI.AlgebraicGeometry.Divisors.LineBundles.Graded.ZeroUnits.BundleCycles |