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.AlgebraicGeometry.ComplexMultiplication.ClosedPoints |
| 2 | import Mathlib.LinearAlgebra.TensorProduct.Basis |
| 3 | import Mathlib.RingTheory.TensorProduct.Nontrivial |
| 4 | import Mathlib.Algebra.Ring.Basic |
| 5 | |
| 6 | /-! # Integral Tensor Product -/ |
| 7 | |
| 8 | namespace OAI.AlgebraicGeometry.ComplexMultiplication.IntegralTensorProduct |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! # Integral tensor products over an algebraically closed field |
| 13 | |
| 14 | The proof specializes finitely many coefficients at an actual rational point. |
| 15 | It will be used to derive geometric group properties from the original assumptions. |
| 16 | -/ |
| 17 | |
| 18 | open scoped TensorProduct |
| 19 | |
| 20 | variable {K A B : Type*} [Field K] [IsAlgClosed K] |
| 21 | [CommRing A] [IsDomain A] [Algebra K A] [Algebra.FiniteType K A] |
| 22 | [CommRing B] [IsDomain B] [Algebra K B] |
| 23 | |
| 24 | /-- Evaluation in the first factor is an actual algebra homomorphism. -/ |
| 25 | def tensorEvaluation (f : A →ₐ[K] K) : A ⊗[K] B →ₐ[K] B := |
| 26 | (Algebra.TensorProduct.lid K B).toAlgHom.comp |
| 27 | (Algebra.TensorProduct.map f (AlgHom.id K B)) |
| 28 | |
| 29 | omit [IsAlgClosed K] [IsDomain A] [Algebra.FiniteType K A] [IsDomain B] in |
| 30 | theorem tensorEvaluation_coordinate {ι : Type*} [DecidableEq ι] (b : Module.Basis ι K B) |
| 31 | (f : A →ₐ[K] K) (t : A ⊗[K] B) (i : ι) : |
| 32 | b.repr (tensorEvaluation f t) i = |
| 33 | f (TensorProduct.equivFinsuppOfBasisRight b t i) := by |
| 34 | induction t using TensorProduct.inductionOn with |
| 35 | | tmul a z => |
| 36 | simp [tensorEvaluation, mul_comm] |
| 37 | | add x y hx hy => simp [hx, hy] |
| 38 | |
| 39 | /-- The tensor product of a finite-type domain with a domain over an algebraically |
| 40 | closed field has no zero divisors. -/ |
| 41 | theorem integralTensorProduct_noZeroDivisors : NoZeroDivisors (A ⊗[K] B) := by |
| 42 | classical |
| 43 | let b := Module.Free.chooseBasis K B |
| 44 | let e := TensorProduct.equivFinsuppOfBasisRight (M := A) b |
| 45 | have coeff_nonzero (t : A ⊗[K] B) (ht : t ≠ 0) : ∃ i, e t i ≠ 0 := by |
| 46 | by_contra h |
| 47 | have hz : e t = 0 := by |
| 48 | ext i |
| 49 | exact not_ne_iff.mp (not_exists.mp h i) |
| 50 | exact ht (e.injective (hz.trans e.map_zero.symm)) |
| 51 | refine ⟨fun {u v} huv => ?_⟩ |
| 52 | by_cases hu : u = 0 |
| 53 | · exact Or.inl hu |
| 54 | by_cases hv : v = 0 |
| 55 | · exact Or.inr hv |
| 56 | obtain ⟨i, hi⟩ := coeff_nonzero u hu |
| 57 | obtain ⟨j, hj⟩ := coeff_nonzero v hv |
| 58 | obtain ⟨f, hf⟩ := ClosedPoints.exists_algHom_ne_zero (K := K) (e u i * e v j) (mul_ne_zero hi hj) |
| 59 | have hcoeff : f (e u i) * f (e v j) ≠ 0 := by simpa using hf |
| 60 | have hfu : tensorEvaluation f u ≠ 0 := by |
| 61 | intro h |
| 62 | apply left_ne_zero_of_mul hcoeff |
| 63 | rw [← tensorEvaluation_coordinate b f u i, h] |
| 64 | simp |
| 65 | have hfv : tensorEvaluation f v ≠ 0 := by |
| 66 | intro h |
| 67 | apply right_ne_zero_of_mul hcoeff |
| 68 | rw [← tensorEvaluation_coordinate b f v j, h] |
| 69 | simp |
| 70 | have hz : tensorEvaluation f u * tensorEvaluation f v = 0 := by |
| 71 | rw [← map_mul, huv, map_zero] |
| 72 | exact False.elim ((mul_ne_zero hfu hfv) hz) |
| 73 | |
| 74 | /-- No extra geometric-integrality assumption is needed for these algebras. -/ |
| 75 | theorem integralTensorProduct_isDomain : IsDomain (A ⊗[K] B) := by |
| 76 | let : NoZeroDivisors (A ⊗[K] B) := integralTensorProduct_noZeroDivisors |
| 77 | let : Nontrivial (A ⊗[K] B) := |
| 78 | Algebra.TensorProduct.nontrivial_of_algebraMap_injective_of_isDomain K A B |
| 79 | (algebraMap K A).injective (algebraMap K B).injective |
| 80 | exact NoZeroDivisors.to_isDomain _ |
| 81 | |
| 82 | end |
| 83 | |
| 84 | end OAI.AlgebraicGeometry.ComplexMultiplication.IntegralTensorProduct |