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.Basic |
| 2 | import Mathlib.LinearAlgebra.Dimension.Free |
| 3 | import Mathlib.Data.Fintype.Card |
| 4 | |
| 5 | /-! # Polynomial Box Dimension -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.SheafCohomology.Projective.PolynomialBoxDimension.Dimension |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! Polynomial spaces with bounded degree in each variable have explicit dimensions. -/ |
| 12 | |
| 13 | open _root_.MvPolynomial |
| 14 | |
| 15 | def boundedExponentEquiv {σ : Type*} [Fintype σ] (n : ℕ) : |
| 16 | ↥{s : σ →₀ ℕ | ∀ i, s i ≤ n} ≃ (σ → Fin (n + 1)) where |
| 17 | toFun s i := ⟨s.1 i, Nat.lt_succ_of_le (s.2 i)⟩ |
| 18 | invFun f := ⟨Finsupp.equivFunOnFinite.symm (fun i => (f i).val), |
| 19 | fun i => Nat.le_of_lt_succ (f i).isLt⟩ |
| 20 | left_inv s := by apply Subtype.ext; ext i; rfl |
| 21 | right_inv f := by funext i; apply Fin.ext; rfl |
| 22 | |
| 23 | theorem finrank_polynomial_restrictDegree |
| 24 | (K : Type*) [Field K] (σ : Type*) [Fintype σ] (n : ℕ) : |
| 25 | Module.finrank K (MvPolynomial.restrictDegree σ K n) = (n + 1) ^ Fintype.card σ := by |
| 26 | classical |
| 27 | let e := boundedExponentEquiv (σ := σ) n |
| 28 | let : Fintype ↥{s : σ →₀ ℕ | ∀ i, s i ≤ n} := Fintype.ofEquiv (σ → Fin (n + 1)) e.symm |
| 29 | change Module.finrank K (MvPolynomial.restrictSupport K {s : σ →₀ ℕ | ∀ i, s i ≤ n}) = _ |
| 30 | rw [Module.finrank_eq_card_basis (MvPolynomial.basisRestrictSupport K _), Fintype.card_congr e] |
| 31 | simp only [Fintype.card_fun, Fintype.card_fin] |
| 32 | |
| 33 | theorem polynomial_restrictDegree_le_restrictTotalDegree |
| 34 | (K : Type*) [CommSemiring K] (σ : Type*) [Fintype σ] (n : ℕ) : |
| 35 | MvPolynomial.restrictDegree σ K n ≤ |
| 36 | MvPolynomial.restrictTotalDegree σ K (Fintype.card σ * n) := by |
| 37 | classical |
| 38 | intro p hp |
| 39 | rw [MvPolynomial.mem_restrictTotalDegree, MvPolynomial.totalDegree, Finset.sup_le_iff] |
| 40 | intro s hs |
| 41 | have hbound : ∀ i, s i ≤ n := (MvPolynomial.mem_restrictDegree σ p n).mp hp s hs |
| 42 | calc |
| 43 | s.sum (fun _ e => e) = ∑ i : σ, s i := by |
| 44 | exact Finsupp.sum_fintype _ _ (fun _ => rfl) |
| 45 | _ ≤ ∑ _i : σ, n := Finset.sum_le_sum (fun i _ => hbound i) |
| 46 | _ = Fintype.card σ * n := by simp |
| 47 | |
| 48 | theorem finrank_polynomial_restrictTotalDegree_le |
| 49 | (K : Type*) [Field K] (σ : Type*) [Fintype σ] (n : ℕ) : |
| 50 | Module.finrank K (MvPolynomial.restrictTotalDegree σ K n) ≤ (n + 1) ^ Fintype.card σ := by |
| 51 | rw [← finrank_polynomial_restrictDegree K σ n] |
| 52 | exact LinearMap.finrank_le_finrank_of_injective |
| 53 | (Submodule.inclusion_injective (MvPolynomial.restrictTotalDegree_le_restrictDegree σ K n)) |
| 54 | |
| 55 | theorem finrank_polynomial_restrictTotalDegree_ge |
| 56 | (K : Type*) [Field K] (σ : Type*) [Fintype σ] (n : ℕ) : |
| 57 | (n + 1) ^ Fintype.card σ ≤ |
| 58 | Module.finrank K (MvPolynomial.restrictTotalDegree σ K (Fintype.card σ * n)) := by |
| 59 | rw [← finrank_polynomial_restrictDegree K σ n] |
| 60 | exact LinearMap.finrank_le_finrank_of_injective |
| 61 | (Submodule.inclusion_injective (polynomial_restrictDegree_le_restrictTotalDegree K σ n)) |
| 62 | |
| 63 | end |
| 64 | |
| 65 | end OAI.AlgebraicGeometry.SheafCohomology.Projective.PolynomialBoxDimension.Dimension |