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.RingTheory.RingHom.Flat |
| 2 | import Mathlib.RingTheory.Flat.TorsionFree |
| 3 | import Mathlib.RingTheory.PolynomialAlgebra |
| 4 | import Mathlib.RingTheory.Algebraic.Basic |
| 5 | import Mathlib.FieldTheory.IsAlgClosed.Basic |
| 6 | |
| 7 | /-! # Weakly Etale Fields -/ |
| 8 | |
| 9 | namespace OAI.AlgebraicGeometry.FormalGeometry.Completion.WeaklyEtaleFields.Construction |
| 10 | |
| 11 | noncomputable section |
| 12 | |
| 13 | /-! |
| 14 | # Completion: algebraicity of fields with flat diagonal |
| 15 | |
| 16 | This supplies a ring-theoretic step toward acyclicity of the geometric point |
| 17 | on the pro-étale site. A transcendental element would make evaluation from a |
| 18 | polynomial ring flat after base change and composition with the diagonal. |
| 19 | Evaluation at a field element cannot be flat. |
| 20 | -/ |
| 21 | |
| 22 | open scoped TensorProduct _root_.Polynomial |
| 23 | |
| 24 | variable {K L : Type*} [Field K] [Field L] [Algebra K L] |
| 25 | |
| 26 | /-- Evaluation of a polynomial ring in its coefficient field is not flat. -/ |
| 27 | theorem polynomial_aeval_not_flat (x : L) : |
| 28 | ¬ (Polynomial.aeval x : L[X] →ₐ[L] L).toRingHom.Flat := by |
| 29 | intro h |
| 30 | let φ := (Polynomial.aeval x : L[X] →ₐ[L] L).toRingHom |
| 31 | let : Algebra L[X] L := φ.toAlgebra |
| 32 | have : Module.Flat L[X] L := h |
| 33 | have hi : Function.Injective φ := FaithfulSMul.algebraMap_injective L[X] L |
| 34 | have he : φ (Polynomial.X - Polynomial.C x) = φ 0 := by simp [φ] |
| 35 | have hz : (Polynomial.X - Polynomial.C x : L[X]) = 0 := hi he |
| 36 | exact Polynomial.X_sub_C_ne_zero x hz |
| 37 | |
| 38 | /-- A field extension whose diagonal is flat is algebraic. -/ |
| 39 | theorem isAlgebraic_of_flat_diagonal |
| 40 | (hdiag : (Algebra.TensorProduct.lmul' K : L ⊗[K] L →ₐ[K] L).toRingHom.Flat) : |
| 41 | Algebra.IsAlgebraic K L := by |
| 42 | constructor |
| 43 | intro x |
| 44 | by_contra hx |
| 45 | let φ : K[X] →ₐ[K] L := Polynomial.aeval x |
| 46 | have hφ : φ.toRingHom.Flat := by |
| 47 | let : Algebra K[X] L := φ.toRingHom.toAlgebra |
| 48 | have : FaithfulSMul K[X] L := (faithfulSMul_iff_algebraMap_injective _ _).mpr |
| 49 | (transcendental_iff_injective.mp hx) |
| 50 | have : Module.IsTorsionFree K[X] L := inferInstance |
| 51 | exact (inferInstance : Module.Flat K[X] L) |
| 52 | let e : L[X] ≃ₐ[L] L ⊗[K] K[X] := polyEquivTensor' K L |
| 53 | have heval : ((Algebra.TensorProduct.lmul' K : L ⊗[K] L →ₐ[K] L).toRingHom.comp |
| 54 | (Algebra.TensorProduct.lTensor (S := K) L φ).toRingHom).comp e.toRingHom = |
| 55 | (Polynomial.aeval x : L[X] →ₐ[L] L).toRingHom := by |
| 56 | ext a <;> simp [e, φ] |
| 57 | apply polynomial_aeval_not_flat x |
| 58 | rw [← heval] |
| 59 | exact ((RingHom.Flat.of_bijective e.bijective).comp (hφ.lTensor (S := K) L)).comp hdiag |
| 60 | |
| 61 | /-- Over an algebraically closed field, a field extension with flat diagonal |
| 62 | is the base field. -/ |
| 63 | theorem algebraMap_bijective_of_flat_diagonal [IsAlgClosed K] |
| 64 | (hdiag : (Algebra.TensorProduct.lmul' K : L ⊗[K] L →ₐ[K] L).toRingHom.Flat) : |
| 65 | Function.Bijective (algebraMap K L) := by |
| 66 | have : Algebra.IsAlgebraic K L := isAlgebraic_of_flat_diagonal hdiag |
| 67 | exact IsAlgClosed.algebraMap_bijective_of_isIntegral |
| 68 | |
| 69 | end |
| 70 | |
| 71 | end OAI.AlgebraicGeometry.FormalGeometry.Completion.WeaklyEtaleFields.Construction |