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.LocalRing.Module |
| 2 | import Mathlib.LinearAlgebra.Projection |
| 3 | |
| 4 | /-! # Projector Range Free -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.HodgeConjecture.HeckeCycles.ProjectorRangeFree.CM |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! The range of an actual idempotent on a finite free module over a |
| 11 | local ring is finite free. This will be applied to coefficient projectors. -/ |
| 12 | |
| 13 | variable {R M : Type*} [CommRing R] [IsLocalRing R] [AddCommGroup M] [Module R M] |
| 14 | [Module.Finite R M] [Module.Free R M] |
| 15 | |
| 16 | theorem range_free (p : Module.End R M) (hp : p * p = p) : Module.Free R p.range := by |
| 17 | have hr : p.rangeRestrict.comp p.range.subtype = LinearMap.id := by |
| 18 | ext x |
| 19 | obtain ⟨y, hy⟩ := x.property |
| 20 | change p x.val = x.val |
| 21 | rw [← hy] |
| 22 | exact LinearMap.congr_fun hp y |
| 23 | have : Module.Flat R p.range := Module.Flat.of_retract p.range.subtype p.rangeRestrict hr |
| 24 | exact Module.free_of_flat_of_isLocalRing |
| 25 | |
| 26 | end |
| 27 | |
| 28 | end OAI.AlgebraicGeometry.HodgeConjecture.HeckeCycles.ProjectorRangeFree.CM |