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.MvPolynomial.Homogeneous |
| 2 | |
| 3 | /-! # Homogeneous Eval Map -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.Foundations.Scheme.HomogeneousEvalMap |
| 6 | |
| 7 | section |
| 8 | |
| 9 | /-! |
| 10 | # Evaluation of homogeneous polynomials under changes of representative |
| 11 | |
| 12 | The results in this file concern the actual `MvPolynomial.IsHomogeneous` |
| 13 | predicate and polynomial evaluation. They include degree zero and do not |
| 14 | require a finite type of variables: each individual monomial has finite support. |
| 15 | -/ |
| 16 | |
| 17 | open scoped BigOperators |
| 18 | |
| 19 | variable {K σ : Type*} |
| 20 | |
| 21 | /-- Evaluating a homogeneous polynomial on a scaled coordinate vector multiplies |
| 22 | its value by the corresponding power of the scalar. -/ |
| 23 | theorem eval_smul_of_isHomogeneous [CommSemiring K] |
| 24 | {f : MvPolynomial σ K} {d : ℕ} (hf : f.IsHomogeneous d) |
| 25 | (c : K) (v : σ → K) : |
| 26 | MvPolynomial.eval (c • v) f = c ^ d * MvPolynomial.eval v f := by |
| 27 | classical |
| 28 | rw [MvPolynomial.eval_eq, MvPolynomial.eval_eq, Finset.mul_sum] |
| 29 | apply Finset.sum_congr rfl |
| 30 | intro m hm |
| 31 | have hm' : m.degree = d := by |
| 32 | simpa only [Finsupp.degree_eq_weight_one, Pi.one_def] using |
| 33 | hf (MvPolynomial.mem_support_iff.mp hm) |
| 34 | simp only [Pi.smul_apply, smul_eq_mul, mul_pow, Finset.prod_mul_distrib, |
| 35 | Finset.prod_pow_eq_pow_sum] |
| 36 | rw [← Finsupp.degree_apply, hm'] |
| 37 | ac_rfl |
| 38 | |
| 39 | /-- A homogeneous polynomial of positive degree vanishes at the zero vector. -/ |
| 40 | theorem eval_zero_of_isHomogeneous [CommSemiring K] |
| 41 | {f : MvPolynomial σ K} {d : ℕ} (hf : f.IsHomogeneous d) |
| 42 | (hd : d ≠ 0) : MvPolynomial.eval (0 : σ → K) f = 0 := by |
| 43 | simpa only [zero_smul, zero_pow hd, zero_mul] using |
| 44 | eval_smul_of_isHomogeneous hf (0 : K) (0 : σ → K) |
| 45 | |
| 46 | /-- A homogeneous polynomial of degree zero is exactly its constant term. -/ |
| 47 | theorem eq_C_of_isHomogeneous_zero [CommSemiring K] |
| 48 | {f : MvPolynomial σ K} (hf : f.IsHomogeneous 0) : |
| 49 | f = MvPolynomial.C (f.coeff 0) := by |
| 50 | apply MvPolynomial.totalDegree_eq_zero_iff_eq_C.mp |
| 51 | exact (MvPolynomial.totalDegree_zero_iff_isHomogeneous σ).mpr hf |
| 52 | |
| 53 | /-- Degree-zero homogeneous equations evaluate to their constant coefficient |
| 54 | at every coordinate vector, including the zero vector. -/ |
| 55 | theorem eval_of_isHomogeneous_zero [CommSemiring K] |
| 56 | {f : MvPolynomial σ K} (hf : f.IsHomogeneous 0) (v : σ → K) : |
| 57 | MvPolynomial.eval v f = f.coeff 0 := by |
| 58 | conv_lhs => rw [eq_C_of_isHomogeneous_zero hf] |
| 59 | exact MvPolynomial.eval_C (f.coeff 0) |
| 60 | |
| 61 | /-- The zero condition of a homogeneous polynomial is unchanged by multiplying |
| 62 | all coordinates by a nonzero scalar. No positivity hypothesis on its degree is |
| 63 | needed. -/ |
| 64 | theorem eval_smul_eq_zero_iff [Field K] |
| 65 | {f : MvPolynomial σ K} {d : ℕ} (hf : f.IsHomogeneous d) |
| 66 | {c : K} (hc : c ≠ 0) (v : σ → K) : |
| 67 | MvPolynomial.eval (c • v) f = 0 ↔ MvPolynomial.eval v f = 0 := by |
| 68 | rw [eval_smul_of_isHomogeneous hf c v] |
| 69 | exact mul_eq_zero.trans (or_iff_right (pow_ne_zero d hc)) |
| 70 | |
| 71 | /-- A family of homogeneous equations, whose degrees may vary with the |
| 72 | equation, has a common zero condition invariant under nonzero scaling. -/ |
| 73 | theorem forall_eval_smul_eq_zero_iff [Field K] |
| 74 | {ι : Type*} (f : ι → MvPolynomial σ K) (d : ι → ℕ) |
| 75 | (hf : ∀ i, (f i).IsHomogeneous (d i)) {c : K} (hc : c ≠ 0) |
| 76 | (v : σ → K) : |
| 77 | (∀ i, MvPolynomial.eval (c • v) (f i) = 0) ↔ |
| 78 | ∀ i, MvPolynomial.eval v (f i) = 0 := by |
| 79 | exact forall_congr' fun i => eval_smul_eq_zero_iff (hf i) hc v |
| 80 | |
| 81 | end |
| 82 | |
| 83 | /-! |
| 84 | # Homogeneous evaluation after a coefficient homomorphism |
| 85 | |
| 86 | The scalar may lie in the target ring of evaluation, as needed for homogeneous |
| 87 | localizations and projective affine charts. |
| 88 | -/ |
| 89 | |
| 90 | variable {R S ι : Type*} [CommSemiring R] [CommSemiring S] |
| 91 | |
| 92 | /-- Homogeneous evaluation scales by the degree even after mapping the |
| 93 | coefficients into a different commutative semiring. -/ |
| 94 | theorem eval₂_smul_of_isHomogeneous {f : MvPolynomial ι R} {d : ℕ} |
| 95 | (hf : f.IsHomogeneous d) (φ : R →+* S) (c : S) (v : ι → S) : |
| 96 | MvPolynomial.eval₂ φ (c • v) f = c ^ d * MvPolynomial.eval₂ φ v f := by |
| 97 | simpa only [MvPolynomial.eval_map] using |
| 98 | eval_smul_of_isHomogeneous (hf.map φ) c v |
| 99 | |
| 100 | /-- The target-ring formulation with coordinate multiplication written |
| 101 | explicitly instead of function-space scalar multiplication. -/ |
| 102 | theorem eval₂_mul_of_isHomogeneous {f : MvPolynomial ι R} {d : ℕ} |
| 103 | (hf : f.IsHomogeneous d) (φ : R →+* S) (c : S) (v : ι → S) : |
| 104 | MvPolynomial.eval₂ φ (fun i => c * v i) f = |
| 105 | c ^ d * MvPolynomial.eval₂ φ v f := |
| 106 | eval₂_smul_of_isHomogeneous hf φ c v |
| 107 | |
| 108 | end OAI.AlgebraicGeometry.Foundations.Scheme.HomogeneousEvalMap |