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.LinearAlgebra.TensorProduct.Finiteness |
| 2 | import Mathlib.RingTheory.TensorProduct.Basic |
| 3 | import Mathlib.RingTheory.TensorProduct.Nontrivial |
| 4 | import Mathlib.RingTheory.Ideal.Quotient.Basic |
| 5 | import Mathlib.RingTheory.Ideal.Maximal |
| 6 | |
| 7 | /-! # Common Finite Field -/ |
| 8 | |
| 9 | namespace OAI.AlgebraicGeometry.HodgeConjecture.HeckeCycles.CommonFiniteField.CM |
| 10 | |
| 11 | noncomputable section |
| 12 | |
| 13 | /-! Two finite evaluation fields admit a common finite extension. |
| 14 | A maximal-ideal quotient of their tensor product constructs the field |
| 15 | and both embeddings over the original coefficient field. -/ |
| 16 | |
| 17 | open scoped TensorProduct |
| 18 | |
| 19 | variable (K L₁ L₂ : Type) [Field K] [Field L₁] [Field L₂] |
| 20 | [Algebra K L₁] [Algebra K L₂] [Module.Finite K L₁] [Module.Finite K L₂] |
| 21 | |
| 22 | structure CommonField where |
| 23 | carrier : Type |
| 24 | [field : Field carrier] |
| 25 | [algebra : Algebra K carrier] |
| 26 | [finite : Module.Finite K carrier] |
| 27 | left : L₁ →ₐ[K] carrier |
| 28 | right : L₂ →ₐ[K] carrier |
| 29 | |
| 30 | attribute [instance] CommonField.field CommonField.algebra CommonField.finite |
| 31 | |
| 32 | def commonField : CommonField K L₁ L₂ := Classical.choice (show Nonempty (CommonField K L₁ L₂) from by |
| 33 | let A := L₁ ⊗[K] L₂ |
| 34 | let : Nontrivial A := Algebra.TensorProduct.nontrivial_of_algebraMap_injective_of_isDomain |
| 35 | K L₁ L₂ (algebraMap K L₁).injective (algebraMap K L₂).injective |
| 36 | obtain ⟨m, hm⟩ := Ideal.exists_maximal A |
| 37 | let : m.IsMaximal := hm |
| 38 | let : Field (A ⧸ m) := Ideal.Quotient.field m |
| 39 | exact ⟨{ |
| 40 | carrier := A ⧸ m |
| 41 | left := (Ideal.Quotient.mkₐ K m).comp Algebra.TensorProduct.includeLeft |
| 42 | right := (Ideal.Quotient.mkₐ K m).comp Algebra.TensorProduct.includeRight }⟩) |
| 43 | |
| 44 | end |
| 45 | |
| 46 | end OAI.AlgebraicGeometry.HodgeConjecture.HeckeCycles.CommonFiniteField.CM |