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.Algebra.Algebra.Bilinear |
| 2 | import Mathlib.LinearAlgebra.Basis.Bilinear |
| 3 | import Mathlib.LinearAlgebra.Basis.Basic |
| 4 | |
| 5 | /-! # Basis Action Relations -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.AbelianModuli.ReferenceFamily.Integral.BasisActionRelations |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! A ring action is determined by its values on an integral basis. |
| 12 | The unit and basis-product equations suffice, even for noncommutative endomorphism rings. -/ |
| 13 | |
| 14 | open _root_.Module |
| 15 | |
| 16 | variable {R A I : Type*} [Ring R] [Ring A] (b : Basis I ℤ R) (v : I → A) |
| 17 | |
| 18 | def IntegralBasisActionRelations : Prop := |
| 19 | b.constr ℤ v 1 = 1 ∧ ∀ i j, b.constr ℤ v (b i * b j) = v i * v j |
| 20 | |
| 21 | theorem integralBasisAction_map_mul (h : IntegralBasisActionRelations b v) : |
| 22 | ∀ x y, b.constr ℤ v (x * y) = b.constr ℤ v x * b.constr ℤ v y := by |
| 23 | apply (LinearMap.map_mul_iff (b.constr ℤ v)).mpr |
| 24 | apply LinearMap.ext_basis b b |
| 25 | intro i j |
| 26 | change b.constr ℤ v (b i * b j) = b.constr ℤ v (b i) * b.constr ℤ v (b j) |
| 27 | rw [Basis.constr_basis, Basis.constr_basis] |
| 28 | exact h.2 i j |
| 29 | |
| 30 | def ringHomOfIntegralBasis (h : IntegralBasisActionRelations b v) : R →+* A := |
| 31 | (AlgHom.ofLinearMap (b.constr ℤ v) h.1 (integralBasisAction_map_mul b v h)).toRingHom |
| 32 | |
| 33 | theorem ringHomOfIntegralBasis_apply (h : IntegralBasisActionRelations b v) (i : I) : |
| 34 | ringHomOfIntegralBasis b v h (b i) = v i := Basis.constr_basis b ℤ v i |
| 35 | |
| 36 | theorem ringHom_ext_integralBasis {f g : R →+* A} (h : ∀ i, f (b i) = g (b i)) : f = g := by |
| 37 | have he : f.toIntAlgHom.toLinearMap = g.toIntAlgHom.toLinearMap := b.ext h |
| 38 | exact RingHom.ext (fun x => LinearMap.congr_fun he x) |
| 39 | |
| 40 | theorem existsUnique_ringHom_of_integralBasis (h : IntegralBasisActionRelations b v) : |
| 41 | ∃! f : R →+* A, ∀ i, f (b i) = v i := by |
| 42 | refine ⟨ringHomOfIntegralBasis b v h, ringHomOfIntegralBasis_apply b v h, ?_⟩ |
| 43 | intro f hf |
| 44 | exact ringHom_ext_integralBasis b (fun i => (hf i).trans (ringHomOfIntegralBasis_apply b v h i).symm) |
| 45 | |
| 46 | end |
| 47 | |
| 48 | end OAI.AlgebraicGeometry.AbelianModuli.ReferenceFamily.Integral.BasisActionRelations |