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.NumberTheory.Quaternion.Arithmetic.RegularMatrixEmbedding |
| 2 | import Mathlib.RingTheory.TensorProduct.Finite |
| 3 | import Mathlib.RingTheory.Flat.Basic |
| 4 | import Mathlib.LinearAlgebra.TensorProduct.Basis |
| 5 | import Mathlib.Analysis.Normed.Ring.Units |
| 6 | import Mathlib.Topology.Algebra.IsOpenUnits |
| 7 | |
| 8 | /-! # Noncommutative Local Model -/ |
| 9 | |
| 10 | namespace OAI.NumberTheory.Quaternion.Arithmetic.NoncommutativeLocalModel |
| 11 | |
| 12 | noncomputable section |
| 13 | |
| 14 | /-! Concrete complete normed models of local scalar extensions of |
| 15 | finite-dimensional algebras, including noncommutative algebras. -/ |
| 16 | |
| 17 | open scoped Classical TensorProduct _root_.Matrix.Norms.Operator |
| 18 | |
| 19 | variable (K A : Type*) [NontriviallyNormedField K] [Ring A] [Algebra K A] |
| 20 | [FiniteDimensional K A] |
| 21 | |
| 22 | abbrev finiteAlgebraNormedModel := |
| 23 | (RegularMatrixEmbedding.regularMatrixEmbedding (κ := K) (K := K) (A := A)).range |
| 24 | |
| 25 | def finiteAlgebraNormedModelEquiv : A ≃ₐ[K] finiteAlgebraNormedModel K A := |
| 26 | AlgEquiv.ofInjective (RegularMatrixEmbedding.regularMatrixEmbedding (κ := K) (K := K) (A := A)) |
| 27 | RegularMatrixEmbedding.regularMatrixEmbedding_injective |
| 28 | |
| 29 | instance finiteAlgebraNormedModelNormedRing : NormedRing (finiteAlgebraNormedModel K A) := |
| 30 | inferInstance |
| 31 | |
| 32 | instance finiteAlgebraNormedModelTopology : TopologicalSpace (finiteAlgebraNormedModel K A) := |
| 33 | (inferInstance : NormedRing (finiteAlgebraNormedModel K A)).toUniformSpace.toTopologicalSpace |
| 34 | |
| 35 | instance finiteAlgebraNormedModelUniformity : UniformSpace (finiteAlgebraNormedModel K A) := |
| 36 | (inferInstance : NormedRing (finiteAlgebraNormedModel K A)).toUniformSpace |
| 37 | |
| 38 | instance finiteAlgebraNormedModelNormedAlgebra : NormedAlgebra K (finiteAlgebraNormedModel K A) := |
| 39 | Subalgebra.toNormedAlgebra _ |
| 40 | |
| 41 | instance finiteAlgebraNormedModelFinite : FiniteDimensional K (finiteAlgebraNormedModel K A) := |
| 42 | Module.Finite.of_surjective (finiteAlgebraNormedModelEquiv K A).toLinearMap |
| 43 | (finiteAlgebraNormedModelEquiv K A).surjective |
| 44 | |
| 45 | instance finiteAlgebraNormedModelComplete [CompleteSpace K] : |
| 46 | @CompleteSpace (finiteAlgebraNormedModel K A) |
| 47 | (inferInstance : NormedRing (finiteAlgebraNormedModel K A)).toUniformSpace := |
| 48 | FiniteDimensional.complete K _ |
| 49 | |
| 50 | instance finiteAlgebraNormedModelOpenUnits [CompleteSpace K] : |
| 51 | IsOpenUnits (finiteAlgebraNormedModel K A) := ⟨Units.isOpenEmbedding_val⟩ |
| 52 | |
| 53 | variable (F : Type*) [Field F] [Algebra F K] |
| 54 | (D : Type*) [Ring D] [Algebra F D] [FiniteDimensional F D] |
| 55 | |
| 56 | abbrev localFiniteAlgebra := finiteAlgebraNormedModel K (K ⊗[F] D) |
| 57 | |
| 58 | instance localFiniteAlgebraBaseAlgebra : Algebra F (localFiniteAlgebra K F D) := |
| 59 | Algebra.compHom (localFiniteAlgebra K F D) (algebraMap F K) |
| 60 | |
| 61 | instance localFiniteAlgebraTower : IsScalarTower F K (localFiniteAlgebra K F D) := |
| 62 | IsScalarTower.of_algebraMap_eq' rfl |
| 63 | |
| 64 | def localFiniteAlgebraCoefficients : D →ₐ[F] localFiniteAlgebra K F D := |
| 65 | ((finiteAlgebraNormedModelEquiv K (K ⊗[F] D)).toAlgHom.restrictScalars F).comp |
| 66 | Algebra.TensorProduct.includeRight |
| 67 | |
| 68 | theorem localFiniteAlgebraCoefficients_injective : |
| 69 | Function.Injective (localFiniteAlgebraCoefficients K F D) := |
| 70 | (finiteAlgebraNormedModelEquiv K (K ⊗[F] D)).injective.comp |
| 71 | (Algebra.TensorProduct.includeRight_injective (algebraMap F K).injective) |
| 72 | |
| 73 | def localFiniteAlgebraBasis {ι : Type*} (b : Module.Basis ι F D) : |
| 74 | Module.Basis ι K (localFiniteAlgebra K F D) := |
| 75 | (b.baseChange K).map (finiteAlgebraNormedModelEquiv K (K ⊗[F] D)).toLinearEquiv |
| 76 | |
| 77 | theorem localFiniteAlgebraBasis_apply {ι : Type*} (b : Module.Basis ι F D) (i : ι) : |
| 78 | localFiniteAlgebraBasis K F D b i = localFiniteAlgebraCoefficients K F D (b i) := by |
| 79 | simp only [localFiniteAlgebraBasis, Module.Basis.map_apply, Module.Basis.baseChange_apply] |
| 80 | rfl |
| 81 | |
| 82 | end |
| 83 | |
| 84 | end OAI.NumberTheory.Quaternion.Arithmetic.NoncommutativeLocalModel |