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.LinearAlgebra.Basis.Basic |
| 2 | import Mathlib.LinearAlgebra.Pi |
| 3 | |
| 4 | /-! # Basis Coordinate Split -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.Divisors.LineBundles.BasisCoordinateSplit.BundleCycles |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! A basis splits off one actual coordinate, with the chosen basis |
| 11 | vector identified with the distinguished augmentation variable. -/ |
| 12 | |
| 13 | variable {R M ι : Type*} [CommRing R] [AddCommGroup M] [Module R M] [Fintype ι] |
| 14 | |
| 15 | def piCoordinateSplit (i : ι) : (ι → R) ≃ₗ[R] R × ({j : ι // j ≠ i} → R) := by |
| 16 | classical |
| 17 | exact { |
| 18 | toFun := fun v => (v i, fun j => v j) |
| 19 | invFun := fun v j => if h : j = i then v.1 else v.2 ⟨j, h⟩ |
| 20 | left_inv := fun v => by |
| 21 | funext j |
| 22 | change (if h : j = i then v i else v j) = v j |
| 23 | split_ifs with h |
| 24 | · exact h ▸ rfl |
| 25 | · rfl |
| 26 | right_inv := fun v => by apply Prod.ext; simp; funext j; simp [j.property] |
| 27 | map_add' := fun _ _ => rfl |
| 28 | map_smul' := fun _ _ => rfl } |
| 29 | |
| 30 | def basisCoordinateSplit (b : Module.Basis ι R M) (i : ι) : |
| 31 | M ≃ₗ[R] R × ({j : ι // j ≠ i} → R) := b.equivFun.trans (piCoordinateSplit i) |
| 32 | |
| 33 | theorem basisCoordinateSplit_basis (b : Module.Basis ι R M) (i : ι) : |
| 34 | basisCoordinateSplit b i (b i) = (1, 0) := by |
| 35 | classical |
| 36 | apply Prod.ext |
| 37 | · change b.equivFun (b i) i = 1 |
| 38 | simp |
| 39 | · funext j |
| 40 | change b.equivFun (b i) j.val = 0 |
| 41 | simp [Ne.symm j.property] |
| 42 | |
| 43 | theorem basisCoordinateSplit_symm_variable (b : Module.Basis ι R M) (i : ι) : |
| 44 | (basisCoordinateSplit b i).symm (1, 0) = b i := |
| 45 | (basisCoordinateSplit b i).symm_apply_eq.mpr (basisCoordinateSplit_basis b i).symm |
| 46 | |
| 47 | end |
| 48 | |
| 49 | end OAI.AlgebraicGeometry.Divisors.LineBundles.BasisCoordinateSplit.BundleCycles |