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.CycleClass.Thom.Tensor.BalanceIdeal |
| 2 | import Mathlib.Algebra.MvPolynomial.CommRing |
| 3 | import Mathlib.RingTheory.Ideal.Quotient.Operations |
| 4 | |
| 5 | /-! # Polynomial Tensor Balance Ideal -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.CycleClass.Thom.PolynomialTensorBalanceIdeal.Constructions |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! For a polynomial intermediate algebra, the tensor balancing |
| 12 | kernel is generated by the differences of its polynomial coordinates. |
| 13 | Equality on coordinates forces equality of the two polynomial maps. -/ |
| 14 | |
| 15 | open scoped TensorProduct |
| 16 | |
| 17 | open OAI.AlgebraicGeometry.CycleClass.Thom.Tensor.BalanceIdeal.Constructions |
| 18 | |
| 19 | set_option backward.isDefEq.respectTransparency false |
| 20 | set_option backward.isDefEq.respectTransparency.types false |
| 21 | |
| 22 | universe u v |
| 23 | variable (k R : Type u) (σ : Type v) [CommRing k] [CommRing R] [Algebra k R] |
| 24 | [Algebra (MvPolynomial σ k) R] [IsScalarTower k (MvPolynomial σ k) R] |
| 25 | |
| 26 | def coordinateIdeal : Ideal (R ⊗[k] R) := |
| 27 | Ideal.span (Set.range (fun i : σ => Tensor.BalanceIdeal.Constructions.difference k (MvPolynomial σ k) R (MvPolynomial.X i))) |
| 28 | |
| 29 | theorem difference_mem_coordinateIdeal (p : MvPolynomial σ k) : |
| 30 | Tensor.BalanceIdeal.Constructions.difference k (MvPolynomial σ k) R p ∈ coordinateIdeal k R σ := by |
| 31 | let L := coordinateIdeal k R σ |
| 32 | let f : MvPolynomial σ k →ₐ[k] R ⊗[k] R := |
| 33 | Algebra.TensorProduct.includeLeft.comp (IsScalarTower.toAlgHom k (MvPolynomial σ k) R) |
| 34 | let g : MvPolynomial σ k →ₐ[k] R ⊗[k] R := |
| 35 | Algebra.TensorProduct.includeRight.comp (IsScalarTower.toAlgHom k (MvPolynomial σ k) R) |
| 36 | have he : (Ideal.Quotient.mkₐ k L).comp f = (Ideal.Quotient.mkₐ k L).comp g := by |
| 37 | apply MvPolynomial.algHom_ext |
| 38 | intro i |
| 39 | change Ideal.Quotient.mk L (f (MvPolynomial.X i)) = Ideal.Quotient.mk L (g (MvPolynomial.X i)) |
| 40 | rw [← sub_eq_zero, ← map_sub] |
| 41 | apply Ideal.Quotient.eq_zero_iff_mem.mpr |
| 42 | exact Ideal.subset_span (Set.mem_range_self i) |
| 43 | have hp := DFunLike.congr_fun he p |
| 44 | change Ideal.Quotient.mk L (f p) = Ideal.Quotient.mk L (g p) at hp |
| 45 | apply Ideal.Quotient.eq_zero_iff_mem.mp |
| 46 | change Ideal.Quotient.mk L (f p - g p) = 0 |
| 47 | rw [map_sub, hp, sub_self] |
| 48 | |
| 49 | theorem ker_eq_coordinateIdeal : |
| 50 | RingHom.ker (Tensor.BalanceIdeal.Constructions.balanceMap k (MvPolynomial σ k) R).toRingHom = coordinateIdeal k R σ := by |
| 51 | apply le_antisymm |
| 52 | · rw [Tensor.BalanceIdeal.Constructions.ker_eq_span] |
| 53 | apply Ideal.span_le.mpr |
| 54 | rintro _ ⟨p, rfl⟩ |
| 55 | exact difference_mem_coordinateIdeal k R σ p |
| 56 | · apply Ideal.span_le.mpr |
| 57 | rintro _ ⟨i, rfl⟩ |
| 58 | exact Tensor.BalanceIdeal.Constructions.difference_mem_ker k (MvPolynomial σ k) R (MvPolynomial.X i) |
| 59 | |
| 60 | end |
| 61 | |
| 62 | end OAI.AlgebraicGeometry.CycleClass.Thom.PolynomialTensorBalanceIdeal.Constructions |