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 |
| 2 | |
| 3 | /-! # Matrix Fixed Coordinates -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.HodgeConjecture.HeckeCycles.MatrixFixedCoordinates.CM |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! Fixed coordinates determine the complete matrix after applying |
| 10 | a coefficient homomorphism. -/ |
| 11 | |
| 12 | open scoped Classical |
| 13 | |
| 14 | theorem identity {R S V J : Type*} [CommRing R] [CommRing S] |
| 15 | [AddCommGroup V] [Module R V] [Fintype J] [DecidableEq J] |
| 16 | (e : V ≃ₗ[R] (J → R)) (g : V →ₗ[R] V) (f : R →+* S) |
| 17 | (h : ∀ x : V, ∀ i : J, f (e (g x) i) = f (e x i)) : |
| 18 | (fun i j => f (e (g (e.symm (Pi.single j 1))) i)) = (1 : Matrix J J S) := by |
| 19 | apply Matrix.ext |
| 20 | intro i j |
| 21 | refine (h _ i).trans ?_ |
| 22 | refine (congrArg (fun x : J → R => f (x i)) (e.apply_symm_apply (Pi.single j 1))).trans ?_ |
| 23 | by_cases hij : i = j |
| 24 | · subst j |
| 25 | simp only [Pi.single_eq_same, map_one, Matrix.one_apply_eq] |
| 26 | · simp only [Pi.single_eq_of_ne hij, map_zero, Matrix.one_apply_ne hij] |
| 27 | |
| 28 | end |
| 29 | |
| 30 | end OAI.AlgebraicGeometry.HodgeConjecture.HeckeCycles.MatrixFixedCoordinates.CM |