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.TensorProduct.Maps |
| 2 | import Mathlib.LinearAlgebra.TensorProduct.Quotient |
| 3 | |
| 4 | /-! # Balance Ideal -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.CycleClass.Thom.Tensor.BalanceIdeal.Constructions |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Passing from the tensor product over the base to the tensor |
| 11 | product over an intermediate algebra imposes precisely the differences |
| 12 | between the two intermediate scalar actions. -/ |
| 13 | |
| 14 | open scoped TensorProduct |
| 15 | |
| 16 | set_option backward.isDefEq.respectTransparency false |
| 17 | |
| 18 | universe u v w |
| 19 | variable (k : Type u) (P : Type v) (R : Type w) [CommRing k] [CommRing P] [CommRing R] |
| 20 | [Algebra k P] [Algebra k R] [Algebra P R] [IsScalarTower k P R] |
| 21 | |
| 22 | def balanceMap : R ⊗[k] R →ₐ[R] R ⊗[P] R := |
| 23 | Algebra.TensorProduct.mapOfCompatibleSMul P k R R R |
| 24 | |
| 25 | def difference (p : P) : R ⊗[k] R := |
| 26 | algebraMap P R p ⊗ₜ[k] (1 : R) - (1 : R) ⊗ₜ[k] algebraMap P R p |
| 27 | |
| 28 | theorem difference_mem_ker (p : P) : difference k P R p ∈ RingHom.ker (balanceMap k P R).toRingHom := by |
| 29 | change balanceMap k P R (difference k P R p) = 0 |
| 30 | change (Algebra.TensorProduct.mapOfCompatibleSMul P k R R R) |
| 31 | (algebraMap P R p ⊗ₜ[k] 1 - 1 ⊗ₜ[k] algebraMap P R p) = 0 |
| 32 | rw [map_sub, Algebra.TensorProduct.mapOfCompatibleSMul_tmul, |
| 33 | Algebra.TensorProduct.mapOfCompatibleSMul_tmul, sub_eq_zero] |
| 34 | simpa only [Algebra.smul_def, mul_one] using TensorProduct.smul_tmul p (1 : R) (1 : R) |
| 35 | |
| 36 | theorem ker_eq_span : RingHom.ker (balanceMap k P R).toRingHom = |
| 37 | Ideal.span (Set.range (difference k P R)) := by |
| 38 | apply le_antisymm |
| 39 | · have hk : (TensorProduct.mapOfCompatibleSMul P k P R R).ker ≤ |
| 40 | (Ideal.span (Set.range (difference k P R))).restrictScalars P := by |
| 41 | rw [TensorProduct.AlgebraTensorModule.ker_mapOfCompatibleSMul] |
| 42 | apply Submodule.span_le.mpr |
| 43 | rintro _ ⟨p, m, n, rfl⟩ |
| 44 | change (p • m) ⊗ₜ[k] n - m ⊗ₜ[k] (p • n) ∈ Ideal.span (Set.range (difference k P R)) |
| 45 | have hm := Ideal.mul_mem_left (Ideal.span (Set.range (difference k P R))) |
| 46 | (m ⊗ₜ[k] n) (Ideal.subset_span (Set.mem_range_self p)) |
| 47 | simpa only [difference, mul_sub, Algebra.TensorProduct.tmul_mul_tmul, |
| 48 | mul_one, Algebra.smul_def, mul_comm] using hm |
| 49 | intro x hx |
| 50 | exact hk hx |
| 51 | · apply Ideal.span_le.mpr |
| 52 | rintro _ ⟨p, rfl⟩ |
| 53 | exact difference_mem_ker k P R p |
| 54 | |
| 55 | end |
| 56 | |
| 57 | end OAI.AlgebraicGeometry.CycleClass.Thom.Tensor.BalanceIdeal.Constructions |