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.Ideal.Span |
| 2 | import Mathlib.Algebra.Regular.Basic |
| 3 | |
| 4 | /-! # Regular Principal Generator -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.Divisors.LineBundles.RegularPrincipalGenerator.BundleCycles |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! A module embedded as the principal ideal of a regular element is |
| 11 | freely generated by the element that maps to that generator. -/ |
| 12 | |
| 13 | variable {R M : Type*} [CommRing R] [AddCommGroup M] [Module R M] |
| 14 | (i : M →ₗ[R] R) (hinj : Function.Injective i) (s : M) (hs : IsRegular (i s)) |
| 15 | (hspan : ∀ m : M, i m ∈ Ideal.span {i s}) |
| 16 | |
| 17 | include hinj hs hspan in |
| 18 | theorem regularPrincipalGenerator_bijective : Function.Bijective (fun r : R => r • s) := by |
| 19 | constructor |
| 20 | · intro r t h |
| 21 | have he := congrArg i h |
| 22 | rw [map_smul, map_smul, smul_eq_mul, smul_eq_mul] at he |
| 23 | exact hs.right he |
| 24 | · intro m |
| 25 | obtain ⟨r, hr⟩ := Ideal.mem_span_singleton.mp (hspan m) |
| 26 | refine ⟨r, hinj ?_⟩ |
| 27 | rw [map_smul, smul_eq_mul, mul_comm, ← hr] |
| 28 | |
| 29 | def regularPrincipalGeneratorEquiv : R ≃ₗ[R] M := |
| 30 | LinearEquiv.ofBijective ((LinearMap.id : R →ₗ[R] R).smulRight s) |
| 31 | (regularPrincipalGenerator_bijective i hinj s hs hspan) |
| 32 | |
| 33 | end |
| 34 | |
| 35 | end OAI.AlgebraicGeometry.Divisors.LineBundles.RegularPrincipalGenerator.BundleCycles |