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.NormedAlgebraModel |
| 2 | import Mathlib.RingTheory.TensorProduct.Finite |
| 3 | import Mathlib.RingTheory.Flat.FaithfullyFlat.Basic |
| 4 | |
| 5 | /-! # Local Scalar Extension Model -/ |
| 6 | |
| 7 | namespace OAI.NumberTheory.Quaternion.Arithmetic.LocalScalarExtensionModel |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | section |
| 12 | |
| 13 | /-! A finite coefficient-field extension can be evaluated in a |
| 14 | complete local algebra by scalar extension and a faithful matrix model. |
| 15 | No choice of a prolongation of the local absolute value is needed. -/ |
| 16 | |
| 17 | open scoped Classical TensorProduct _root_.Matrix.Norms.Operator |
| 18 | open _root_.Topology |
| 19 | |
| 20 | variable (F K E : Type*) [Field F] [NontriviallyNormedField K] [Algebra F K] |
| 21 | [Field E] [Algebra F E] [FiniteDimensional F E] |
| 22 | |
| 23 | abbrev scalarExtensionModel := NormedAlgebraModel.regularAlgebraModel K (K ⊗[F] E) |
| 24 | |
| 25 | instance scalarExtensionModelAlgebra : Algebra F (scalarExtensionModel F K E) := |
| 26 | Algebra.compHom (scalarExtensionModel F K E) (algebraMap F K) |
| 27 | |
| 28 | instance scalarExtensionModelTower : IsScalarTower F K (scalarExtensionModel F K E) := |
| 29 | IsScalarTower.of_algebraMap_eq' rfl |
| 30 | |
| 31 | instance scalarExtensionModelNontrivial : Nontrivial (scalarExtensionModel F K E) := |
| 32 | (NormedAlgebraModel.regularAlgebraModelEquiv K (K ⊗[F] E)).injective.nontrivial |
| 33 | |
| 34 | def scalarExtensionCoefficients : E →ₐ[F] scalarExtensionModel F K E := |
| 35 | ((NormedAlgebraModel.regularAlgebraModelEquiv K (K ⊗[F] E)).toAlgHom.restrictScalars F).comp |
| 36 | Algebra.TensorProduct.includeRight |
| 37 | |
| 38 | theorem scalarExtensionCoefficients_algebraMap (a : F) : |
| 39 | scalarExtensionCoefficients F K E (algebraMap F E a) = |
| 40 | algebraMap K (scalarExtensionModel F K E) (algebraMap F K a) := by |
| 41 | rw [AlgHom.commutes, IsScalarTower.algebraMap_apply F K (scalarExtensionModel F K E)] |
| 42 | |
| 43 | def scalarExtensionMatrixEmbedding (n : ℕ) : |
| 44 | Matrix (Fin n) (Fin n) K →ₐ[K] Matrix (Fin n) (Fin n) (scalarExtensionModel F K E) := |
| 45 | (Algebra.ofId K (scalarExtensionModel F K E)).mapMatrix |
| 46 | |
| 47 | theorem scalarExtensionMatrixEmbedding_injective (n : ℕ) : |
| 48 | Function.Injective (scalarExtensionMatrixEmbedding F K E n) := |
| 49 | Matrix.map_injective (algebraMap K (scalarExtensionModel F K E)).injective |
| 50 | |
| 51 | theorem scalarExtensionMatrixEmbedding_isClosedEmbedding [CompleteSpace K] (n : ℕ) : |
| 52 | IsClosedEmbedding (scalarExtensionMatrixEmbedding F K E n) := by |
| 53 | let : IsTopologicalAddGroup (scalarExtensionModel F K E) := inferInstance |
| 54 | let : IsTopologicalAddGroup (Matrix (Fin n) (Fin n) (scalarExtensionModel F K E)) := by |
| 55 | change IsTopologicalAddGroup (Fin n → Fin n → scalarExtensionModel F K E) |
| 56 | infer_instance |
| 57 | exact LinearMap.isClosedEmbedding_of_injective |
| 58 | (f := (scalarExtensionMatrixEmbedding F K E n).toLinearMap) |
| 59 | (LinearMap.ker_eq_bot.mpr (scalarExtensionMatrixEmbedding_injective F K E n)) |
| 60 | |
| 61 | end |
| 62 | |
| 63 | /-! The local scalar-extension model also carries the common scalar |
| 64 | field's continuous action, with no norm compatibility assumption. -/ |
| 65 | |
| 66 | open scoped Classical TensorProduct _root_.Matrix.Norms.Operator |
| 67 | open _root_.Topology |
| 68 | |
| 69 | variable (F κ K E : Type*) [Field F] [Field κ] [NontriviallyNormedField K] |
| 70 | [Algebra F K] [Algebra κ K] [Field E] [Algebra F E] [FiniteDimensional F E] |
| 71 | |
| 72 | abbrev scalarExtensionModelScalarAlgebra : Algebra κ (scalarExtensionModel F K E) := |
| 73 | Algebra.compHom (scalarExtensionModel F K E) (algebraMap κ K) |
| 74 | |
| 75 | theorem scalarExtensionModelScalarTower : |
| 76 | letI := scalarExtensionModelScalarAlgebra F κ K E |
| 77 | IsScalarTower κ K (scalarExtensionModel F K E) := by |
| 78 | let := scalarExtensionModelScalarAlgebra F κ K E |
| 79 | exact IsScalarTower.of_algebraMap_eq' rfl |
| 80 | |
| 81 | theorem scalarExtensionModelScalarFinite [FiniteDimensional κ K] : |
| 82 | letI := scalarExtensionModelScalarAlgebra F κ K E |
| 83 | FiniteDimensional κ (scalarExtensionModel F K E) := by |
| 84 | let := scalarExtensionModelScalarAlgebra F κ K E |
| 85 | let := scalarExtensionModelScalarTower F κ K E |
| 86 | exact Module.Finite.trans K (scalarExtensionModel F K E) |
| 87 | |
| 88 | theorem scalarExtensionModelScalarContinuous [TopologicalSpace κ] [ContinuousSMul κ K] : |
| 89 | letI := scalarExtensionModelScalarAlgebra F κ K E |
| 90 | ContinuousSMul κ (scalarExtensionModel F K E) := by |
| 91 | let := scalarExtensionModelScalarAlgebra F κ K E |
| 92 | let := scalarExtensionModelScalarTower F κ K E |
| 93 | exact IsScalarTower.continuousSMul K |
| 94 | |
| 95 | end |
| 96 | |
| 97 | end OAI.NumberTheory.Quaternion.Arithmetic.LocalScalarExtensionModel |