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.Fin |
| 2 | import Mathlib.LinearAlgebra.Prod |
| 3 | |
| 4 | /-! # Basis Split Coordinate -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.BasisSplitCoordinate.LocalSectionLifting |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Splitting off one chosen basis coordinate for Gaussian cancellation. -/ |
| 11 | |
| 12 | variable {R ι : Type*} [CommRing R] |
| 13 | |
| 14 | def piSplitCoordinate (i : ι) : (ι → R) ≃ₗ[R] (({j : ι // j ≠ i} → R) × R) := by |
| 15 | classical |
| 16 | exact |
| 17 | { toFun := fun x => (fun j => x j, x i) |
| 18 | invFun := fun x j => if h : j = i then x.2 else x.1 ⟨j, h⟩ |
| 19 | left_inv := by |
| 20 | intro x |
| 21 | funext j |
| 22 | dsimp only |
| 23 | split_ifs with h |
| 24 | · exact congrArg x h.symm |
| 25 | · rfl |
| 26 | right_inv := by |
| 27 | intro x |
| 28 | apply Prod.ext |
| 29 | · funext j |
| 30 | simp [j.property] |
| 31 | · simp |
| 32 | map_add' := by intros; rfl |
| 33 | map_smul' := by intros; rfl } |
| 34 | |
| 35 | variable {M : Type*} [AddCommGroup M] [Module R M] [Fintype ι] |
| 36 | |
| 37 | def basisSplitCoordinate (b : Module.Basis ι R M) (i : ι) : |
| 38 | M ≃ₗ[R] (({j : ι // j ≠ i} → R) × R) := |
| 39 | b.equivFun.trans (piSplitCoordinate i) |
| 40 | |
| 41 | theorem basisSplitCoordinate_scalar (b : Module.Basis ι R M) (i : ι) (x : M) : |
| 42 | (basisSplitCoordinate b i x).2 = b.repr x i := rfl |
| 43 | |
| 44 | theorem basisSplitCoordinate_basis (b : Module.Basis ι R M) (i : ι) : |
| 45 | basisSplitCoordinate b i (b i) = (0, 1) := by |
| 46 | classical |
| 47 | apply Prod.ext |
| 48 | · funext j |
| 49 | change b.repr (b i) j = 0 |
| 50 | simp [Module.Basis.repr_self, j.property] |
| 51 | · change b.repr (b i) i = 1 |
| 52 | simp |
| 53 | |
| 54 | theorem basisSplitCoordinate_symm_scalar (b : Module.Basis ι R M) (i : ι) (r : R) : |
| 55 | (basisSplitCoordinate b i).symm (0, r) = r • b i := by |
| 56 | apply (basisSplitCoordinate b i).injective |
| 57 | rw [LinearEquiv.apply_symm_apply, map_smul, basisSplitCoordinate_basis] |
| 58 | simp |
| 59 | |
| 60 | end |
| 61 | |
| 62 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.BasisSplitCoordinate.LocalSectionLifting |