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 OAI.RepresentationTheory.Weil.AdelicSplitting.LatticeDualCoordinates |
| 2 | import Mathlib.LinearAlgebra.Basis.SMul |
| 3 | |
| 4 | /-! # Position Basis -/ |
| 5 | |
| 6 | namespace OAI.RepresentationTheory.Weil.AdelicSplitting.PositionBasis.LocalAnalysis |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Explicit finite position coordinates for a basis, with one index |
| 11 | for the position and one for the scalar-space basis. -/ |
| 12 | |
| 13 | open scoped Classical |
| 14 | |
| 15 | variable {R E ι : Type*} [CommRing R] [AddCommGroup E] [Module R E] [Fintype ι] |
| 16 | |
| 17 | def positionBasisCoordinates (N : ℕ) (b : Module.Basis ι R E) : |
| 18 | (Fin N → E) ≃ₗ[R] ((Fin N × ι) → R) where |
| 19 | toFun x p := b.equivFun (x p.1) p.2 |
| 20 | invFun y i := b.equivFun.symm (fun j => y (i, j)) |
| 21 | left_inv x := funext (fun i => b.equivFun.symm_apply_apply (x i)) |
| 22 | right_inv y := funext (fun p => congrFun (b.equivFun.apply_symm_apply (fun j => y (p.1, j))) p.2) |
| 23 | map_add' x y := funext (fun p => congrFun (b.equivFun.map_add (x p.1) (y p.1)) p.2) |
| 24 | map_smul' c x := funext (fun p => congrFun (b.equivFun.map_smul c (x p.1)) p.2) |
| 25 | |
| 26 | def positionBasis (N : ℕ) (b : Module.Basis ι R E) : Module.Basis (Fin N × ι) R (Fin N → E) := |
| 27 | Module.Basis.ofEquivFun (positionBasisCoordinates N b) |
| 28 | |
| 29 | theorem positionBasis_equivFun (N : ℕ) (b : Module.Basis ι R E) : |
| 30 | (positionBasis N b).equivFun = positionBasisCoordinates N b := |
| 31 | Module.Basis.equivFun_ofEquivFun _ |
| 32 | |
| 33 | theorem positionBasis_equivFun_symm (N : ℕ) (b : Module.Basis ι R E) (y : (Fin N × ι) → R) |
| 34 | (i : Fin N) : (positionBasis N b).equivFun.symm y i = b.equivFun.symm (fun j => y (i, j)) := by |
| 35 | rw [positionBasis_equivFun] |
| 36 | rfl |
| 37 | |
| 38 | theorem positionBasis_apply (N : ℕ) (b : Module.Basis ι R E) (p : Fin N × ι) : |
| 39 | positionBasis N b p = Pi.single p.1 (b p.2) := by |
| 40 | apply (positionBasisCoordinates N b).injective |
| 41 | have hp := (positionBasis N b).equivFun_self p |
| 42 | rw [positionBasis_equivFun] at hp |
| 43 | funext z |
| 44 | rw [hp] |
| 45 | by_cases h : z.1 = p.1 |
| 46 | · rcases z with ⟨i, j⟩ |
| 47 | dsimp only at h |
| 48 | subst i |
| 49 | rcases p with ⟨k, l⟩ |
| 50 | simp [positionBasisCoordinates, Finsupp.single_apply] |
| 51 | · have hpz : p ≠ z := fun hz => h (congrArg Prod.fst hz).symm |
| 52 | simp [positionBasisCoordinates, h, hpz] |
| 53 | |
| 54 | end |
| 55 | |
| 56 | end OAI.RepresentationTheory.Weil.AdelicSplitting.PositionBasis.LocalAnalysis |