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.Determinant |
| 2 | import Mathlib.LinearAlgebra.TensorProduct.Basis |
| 3 | import Mathlib.RingTheory.Localization.Away.Basic |
| 4 | |
| 5 | /-! # Determinant Basis Neighborhood -/ |
| 6 | |
| 7 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.DeterminantBasisNeighborhood |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! Prescribed vectors become the literal basis on the principal determinant open. |
| 12 | If they form a basis after a coefficient quotient, that open contains the whole quotient. -/ |
| 13 | |
| 14 | open _root_.Module |
| 15 | open scoped TensorProduct |
| 16 | |
| 17 | universe u v w t |
| 18 | variable {R : Type u} [CommRing R] |
| 19 | {M : Type v} [AddCommGroup M] [Module R M] |
| 20 | {ι : Type w} [Fintype ι] [DecidableEq ι] |
| 21 | (b : Basis ι R M) (x : ι → M) |
| 22 | (S : Type t) [CommRing S] [Algebra R S] |
| 23 | |
| 24 | theorem det_baseChange : |
| 25 | (b.baseChange S).det (fun i => (1 : S) ⊗ₜ[R] x i) = |
| 26 | algebraMap R S (b.det x) := by |
| 27 | rw [Basis.det_apply, Basis.det_apply, RingHom.map_det] |
| 28 | congr 1 |
| 29 | ext i j |
| 30 | simp [Basis.toMatrix_apply, Basis.baseChange_repr_tmul, Algebra.smul_def] |
| 31 | |
| 32 | include b in |
| 33 | theorem image_isUnit (c : Basis ι S (S ⊗[R] M)) |
| 34 | (hc : ∀ i, c i = (1 : S) ⊗ₜ[R] x i) : |
| 35 | IsUnit (algebraMap R S (b.det x)) := by |
| 36 | rw [← det_baseChange b x S] |
| 37 | have h : (fun i => (1 : S) ⊗ₜ[R] x i) = c := funext (fun i => (hc i).symm) |
| 38 | rw [h] |
| 39 | exact (b.baseChange S).isUnit_det c |
| 40 | |
| 41 | def basisOfIsUnitImage (h : IsUnit (algebraMap R S (b.det x))) : |
| 42 | Basis ι S (S ⊗[R] M) := |
| 43 | Basis.mk |
| 44 | (((b.baseChange S).is_basis_iff_det.mpr (by rw [det_baseChange]; exact h)).1) |
| 45 | (((b.baseChange S).is_basis_iff_det.mpr (by rw [det_baseChange]; exact h)).2.ge) |
| 46 | |
| 47 | theorem basisOfIsUnitImage_apply (h : IsUnit (algebraMap R S (b.det x))) (i : ι) : |
| 48 | basisOfIsUnitImage b x S h i = (1 : S) ⊗ₜ[R] x i := |
| 49 | Basis.mk_apply _ _ _ |
| 50 | |
| 51 | def localizedBasis : |
| 52 | Basis ι (Localization.Away (b.det x)) (Localization.Away (b.det x) ⊗[R] M) := |
| 53 | basisOfIsUnitImage b x _ (IsLocalization.Away.algebraMap_isUnit (b.det x)) |
| 54 | |
| 55 | theorem localizedBasis_apply (i : ι) : |
| 56 | localizedBasis b x i = (1 : Localization.Away (b.det x)) ⊗ₜ[R] x i := |
| 57 | basisOfIsUnitImage_apply b x _ _ i |
| 58 | |
| 59 | end |
| 60 | |
| 61 | end OAI.NumberTheory.PadicHodge.IntegralComparison.DeterminantBasisNeighborhood |