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.PositionBasis |
| 2 | import OAI.RepresentationTheory.Weil.AdelicSplitting.MixedFiniteDuality |
| 3 | |
| 4 | /-! # Mixed Integer Basis -/ |
| 5 | |
| 6 | namespace OAI.RepresentationTheory.Weil.AdelicSplitting.MixedIntegerBasis.Construction |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! A real basis for the scaled integer position lattice, with an exact |
| 11 | identification between integer coordinates and tuples of algebraic integers. -/ |
| 12 | |
| 13 | open scoped Classical _root_.NumberField |
| 14 | open _root_.NumberField |
| 15 | |
| 16 | open OAI.RepresentationTheory.Weil.AdelicSplitting.PositionBasis.LocalAnalysis |
| 17 | |
| 18 | variable (F : Type) [Field F] [NumberField F] (N : ℕ) |
| 19 | |
| 20 | abbrev MixedPositionIndex := Fin N × Module.Free.ChooseBasisIndex ℤ (𝓞 F) |
| 21 | |
| 22 | def integerPositionCoordinates : (Fin N → 𝓞 F) ≃ₗ[ℤ] (MixedPositionIndex F N → ℤ) := |
| 23 | PositionBasis.LocalAnalysis.positionBasisCoordinates N (RingOfIntegers.basis F) |
| 24 | |
| 25 | def scaledMixedScalarBasis (M : ℕ) (hM : 0 < M) : |
| 26 | Module.Basis (Module.Free.ChooseBasisIndex ℤ (𝓞 F)) ℝ (mixedEmbedding.mixedSpace F) := |
| 27 | (mixedEmbedding.latticeBasis F).unitsSMul (fun _ => Units.mk0 (M : ℝ) (by exact_mod_cast hM.ne')) |
| 28 | |
| 29 | def mixedIntegerPositionBasis (M : ℕ) (hM : 0 < M) : |
| 30 | Module.Basis (MixedPositionIndex F N) ℝ (Fin N → mixedEmbedding.mixedSpace F) := |
| 31 | PositionBasis.LocalAnalysis.positionBasis N (scaledMixedScalarBasis F M hM) |
| 32 | |
| 33 | theorem integer_lattice_coordinates (r : 𝓞 F) : |
| 34 | (mixedEmbedding.latticeBasis F).equivFun (mixedEmbedding F (algebraMap (𝓞 F) F r)) = |
| 35 | fun j => ((RingOfIntegers.basis F).equivFun r j : ℝ) := by |
| 36 | funext j |
| 37 | simp only [Module.Basis.equivFun_apply, mixedEmbedding.latticeBasis_repr_apply, |
| 38 | integralBasis_repr_apply, eq_intCast, Rat.cast_intCast] |
| 39 | |
| 40 | theorem scaledMixedScalarBasis_integer_symm (M : ℕ) (hM : 0 < M) |
| 41 | (n : Module.Free.ChooseBasisIndex ℤ (𝓞 F) → ℤ) : |
| 42 | (scaledMixedScalarBasis F M hM).equivFun.symm (fun j => (n j : ℝ)) = |
| 43 | mixedEmbedding F ((M : F) * algebraMap (𝓞 F) F ((RingOfIntegers.basis F).equivFun.symm n)) := by |
| 44 | have hb : (mixedEmbedding.latticeBasis F).equivFun.symm (fun j => (n j : ℝ)) = |
| 45 | mixedEmbedding F (algebraMap (𝓞 F) F ((RingOfIntegers.basis F).equivFun.symm n)) := by |
| 46 | apply (mixedEmbedding.latticeBasis F).equivFun.injective |
| 47 | rw [(mixedEmbedding.latticeBasis F).equivFun.apply_symm_apply, integer_lattice_coordinates] |
| 48 | simp only [(RingOfIntegers.basis F).equivFun.apply_symm_apply] |
| 49 | calc |
| 50 | _ = (M : ℝ) • (mixedEmbedding.latticeBasis F).equivFun.symm (fun j => (n j : ℝ)) := by |
| 51 | rw [Module.Basis.equivFun_symm_apply, Module.Basis.equivFun_symm_apply, Finset.smul_sum] |
| 52 | apply Finset.sum_congr rfl |
| 53 | intro j _ |
| 54 | simp [scaledMixedScalarBasis, Module.Basis.unitsSMul_apply, smul_smul, mul_comm] |
| 55 | _ = _ := by |
| 56 | rw [hb, map_mul, map_natCast] |
| 57 | simp only [Nat.cast_smul_eq_nsmul, nsmul_eq_mul] |
| 58 | |
| 59 | theorem mixedIntegerPositionBasis_integer_symm (M : ℕ) (hM : 0 < M) |
| 60 | (n : MixedPositionIndex F N → ℤ) : |
| 61 | (mixedIntegerPositionBasis F N M hM).equivFun.symm (fun p => (n p : ℝ)) = |
| 62 | MixedFiniteDuality.Construction.mixedScalarIntegerPosition F N (M : F) ((integerPositionCoordinates F N).symm n) := by |
| 63 | funext i |
| 64 | rw [mixedIntegerPositionBasis, PositionBasis.LocalAnalysis.positionBasis_equivFun_symm] |
| 65 | exact scaledMixedScalarBasis_integer_symm F M hM (fun j => n (i, j)) |
| 66 | |
| 67 | end |
| 68 | |
| 69 | end OAI.RepresentationTheory.Weil.AdelicSplitting.MixedIntegerBasis.Construction |