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.Finsupp.LinearCombination |
| 2 | import Mathlib.RingTheory.MvPolynomial.Homogeneous |
| 3 | |
| 4 | /-! # Coordinate Substitution -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Linear.CoordinateSubstitution |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! A linear change of coefficient vectors extends to polynomial |
| 11 | substitution, preserves every homogeneous degree, and respects composition. -/ |
| 12 | universe u v w |
| 13 | variable {R : Type u} [CommRing R] {σ : Type v} {τ : Type w} |
| 14 | |
| 15 | def linearCoordinatePolynomial : (σ →₀ R) →ₗ[R] MvPolynomial σ R := |
| 16 | Finsupp.linearCombination R MvPolynomial.X |
| 17 | |
| 18 | theorem linearCoordinatePolynomial_single (i : σ) (r : R) : |
| 19 | linearCoordinatePolynomial (Finsupp.single i r) = r • (MvPolynomial.X i : MvPolynomial σ R) := |
| 20 | Finsupp.linearCombination_single R r i |
| 21 | |
| 22 | theorem linearCoordinatePolynomial_homogeneous (a : σ →₀ R) : |
| 23 | (linearCoordinatePolynomial a).IsHomogeneous 1 := by |
| 24 | change a.sum (fun i r => r • (MvPolynomial.X i : MvPolynomial σ R)) ∈ |
| 25 | MvPolynomial.homogeneousSubmodule σ R 1 |
| 26 | exact (MvPolynomial.homogeneousSubmodule σ R 1).sum_mem |
| 27 | (fun i _ => (MvPolynomial.homogeneousSubmodule σ R 1).smul_mem _ (MvPolynomial.isHomogeneous_X R i)) |
| 28 | |
| 29 | def polynomialLinearSubstitution (T : (σ →₀ R) →ₗ[R] (τ →₀ R)) : |
| 30 | MvPolynomial σ R →ₐ[R] MvPolynomial τ R := |
| 31 | MvPolynomial.aeval (fun i => linearCoordinatePolynomial (T (Finsupp.single i 1))) |
| 32 | |
| 33 | theorem polynomialLinearSubstitution_X (T : (σ →₀ R) →ₗ[R] (τ →₀ R)) (i : σ) : |
| 34 | polynomialLinearSubstitution T (MvPolynomial.X i) = |
| 35 | linearCoordinatePolynomial (T (Finsupp.single i 1)) := |
| 36 | MvPolynomial.aeval_X _ i |
| 37 | |
| 38 | theorem polynomialLinearSubstitution_linear (T : (σ →₀ R) →ₗ[R] (τ →₀ R)) (a : σ →₀ R) : |
| 39 | polynomialLinearSubstitution T (linearCoordinatePolynomial a) = |
| 40 | linearCoordinatePolynomial (T a) := by |
| 41 | induction a using Finsupp.induction_linear with |
| 42 | | zero => simp only [map_zero] |
| 43 | | add a b ha hb => simp only [map_add, ha, hb] |
| 44 | | single i r => |
| 45 | have hs : Finsupp.single i r = r • Finsupp.single i (1 : R) := by |
| 46 | rw [Finsupp.smul_single', mul_one] |
| 47 | rw [linearCoordinatePolynomial_single, map_smul, polynomialLinearSubstitution_X, |
| 48 | hs, map_smul, map_smul] |
| 49 | |
| 50 | theorem polynomialLinearSubstitution_homogeneous |
| 51 | (T : (σ →₀ R) →ₗ[R] (τ →₀ R)) {d : ℕ} {p : MvPolynomial σ R} |
| 52 | (hp : p.IsHomogeneous d) : (polynomialLinearSubstitution T p).IsHomogeneous d := by |
| 53 | simpa only [polynomialLinearSubstitution, one_mul] using hp.aeval |
| 54 | (fun i => linearCoordinatePolynomial (T (Finsupp.single i 1))) |
| 55 | (fun i => linearCoordinatePolynomial_homogeneous (T (Finsupp.single i 1))) |
| 56 | |
| 57 | theorem polynomialLinearSubstitution_id : |
| 58 | polynomialLinearSubstitution (LinearMap.id : (σ →₀ R) →ₗ[R] (σ →₀ R)) = AlgHom.id R _ := by |
| 59 | apply MvPolynomial.algHom_ext |
| 60 | intro i |
| 61 | exact (polynomialLinearSubstitution_X LinearMap.id i).trans |
| 62 | ((linearCoordinatePolynomial_single i 1).trans (one_smul R _)) |
| 63 | |
| 64 | theorem polynomialLinearSubstitution_comp {κ : Type*} |
| 65 | (T : (σ →₀ R) →ₗ[R] (τ →₀ R)) (U : (τ →₀ R) →ₗ[R] (κ →₀ R)) : |
| 66 | (polynomialLinearSubstitution U).comp (polynomialLinearSubstitution T) = |
| 67 | polynomialLinearSubstitution (U.comp T) := by |
| 68 | apply MvPolynomial.algHom_ext |
| 69 | intro i |
| 70 | change polynomialLinearSubstitution U (polynomialLinearSubstitution T (MvPolynomial.X i)) = _ |
| 71 | rw [polynomialLinearSubstitution_X, polynomialLinearSubstitution_linear, |
| 72 | polynomialLinearSubstitution_X] |
| 73 | rfl |
| 74 | |
| 75 | end |
| 76 | |
| 77 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Linear.CoordinateSubstitution |