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.NumberTheory.NumberField.Basic |
| 2 | |
| 3 | /-! # Integral Basis Lattice -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.HodgeConjecture.CMExtraction.IntegralBasisLattice.TestTransport |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! Integral-basis coordinates identify the actual ring-of-integers |
| 10 | lattice, including every rational scalar multiple of that lattice. -/ |
| 11 | |
| 12 | open scoped Classical _root_.NumberField |
| 13 | |
| 14 | open _root_.NumberField _root_.Module |
| 15 | |
| 16 | variable (F : Type) [Field F] [NumberField F] |
| 17 | |
| 18 | theorem integralBasis_integral_iff (x : F) : |
| 19 | (∀ i, ∃ z : ℤ, (z : ℚ) = (integralBasis F).equivFun x i) ↔ |
| 20 | ∃ r : 𝓞 F, algebraMap (𝓞 F) F r = x := by |
| 21 | constructor |
| 22 | · intro h |
| 23 | choose z hz using h |
| 24 | refine ⟨(RingOfIntegers.basis F).equivFun.symm z, ?_⟩ |
| 25 | apply (integralBasis F).equivFun.injective |
| 26 | funext i |
| 27 | rw [Basis.equivFun_apply, integralBasis_repr_apply] |
| 28 | change (((RingOfIntegers.basis F).equivFun |
| 29 | ((RingOfIntegers.basis F).equivFun.symm z) i : ℤ) : ℚ) = _ |
| 30 | rw [LinearEquiv.apply_symm_apply] |
| 31 | exact hz i |
| 32 | · rintro ⟨r, rfl⟩ i |
| 33 | exact ⟨(RingOfIntegers.basis F).repr r i, (integralBasis_repr_apply F r i).symm⟩ |
| 34 | |
| 35 | theorem integralBasis_scaled_integral_iff (q : ℚ) (x : F) : |
| 36 | (∀ i, ∃ z : ℤ, q * (z : ℚ) = (integralBasis F).equivFun x i) ↔ |
| 37 | ∃ r : 𝓞 F, algebraMap ℚ F q * algebraMap (𝓞 F) F r = x := by |
| 38 | constructor |
| 39 | · intro h |
| 40 | choose z hz using h |
| 41 | let r := (RingOfIntegers.basis F).equivFun.symm z |
| 42 | have hr (i) : (integralBasis F).equivFun (algebraMap (𝓞 F) F r) i = |
| 43 | (z i : ℚ) := by |
| 44 | rw [Basis.equivFun_apply, integralBasis_repr_apply] |
| 45 | change (((RingOfIntegers.basis F).equivFun |
| 46 | ((RingOfIntegers.basis F).equivFun.symm z) i : ℤ) : ℚ) = _ |
| 47 | rw [LinearEquiv.apply_symm_apply] |
| 48 | refine ⟨r, ?_⟩ |
| 49 | apply (integralBasis F).equivFun.injective |
| 50 | funext i |
| 51 | rw [← Algebra.smul_def] |
| 52 | rw [map_smul, Pi.smul_apply, smul_eq_mul, hr] |
| 53 | exact hz i |
| 54 | · rintro ⟨r, rfl⟩ i |
| 55 | refine ⟨(RingOfIntegers.basis F).repr r i, ?_⟩ |
| 56 | rw [← Algebra.smul_def] |
| 57 | rw [map_smul, Pi.smul_apply, smul_eq_mul, Basis.equivFun_apply, |
| 58 | integralBasis_repr_apply] |
| 59 | rfl |
| 60 | |
| 61 | end |
| 62 | |
| 63 | end OAI.AlgebraicGeometry.HodgeConjecture.CMExtraction.IntegralBasisLattice.TestTransport |