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.SheafCohomology.Projective.LaurentZeroCoefficients |
| 2 | import Mathlib.RingTheory.MvPolynomial.Homogeneous |
| 3 | import Mathlib.LinearAlgebra.Finsupp.Supported |
| 4 | |
| 5 | /-! # Nonnegative Laurent Polynomials -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.SheafCohomology.Projective.NonnegativeLaurentPolynomials.MvPolynomial |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | open _root_.MvPolynomial |
| 12 | |
| 13 | /-! Nonnegative homogeneous Laurent weights are ordinary polynomial monomials. -/ |
| 14 | |
| 15 | open _root_.AlgebraicGeometry |
| 16 | universe u |
| 17 | variable {σ : Type} [Fintype σ] |
| 18 | |
| 19 | def nonnegativeLaurentWeightEquivDegree (n : ℕ) : |
| 20 | LaurentZeroCoefficients.MvPolynomial.NonnegativeLaurentWeight σ (n : ℤ) ≃ {a : σ →₀ ℕ // Finsupp.degree a = n} where |
| 21 | toFun e := ⟨e.val.val.mapRange Int.toNat (by rfl), by |
| 22 | have hcast (i : σ) : ((e.val.val i).toNat : ℤ) = e.val.val i := by |
| 23 | have := e.property i |
| 24 | omega |
| 25 | have hdeg : ((Finsupp.degree (e.val.val.mapRange Int.toNat (by rfl)) : ℕ) : ℤ) = (n : ℤ) := by |
| 26 | rw [Finsupp.degree_eq_sum, Nat.cast_sum] |
| 27 | simp only [Finsupp.mapRange_apply, hcast] |
| 28 | rw [← Finsupp.degree_eq_sum] |
| 29 | exact e.val.property |
| 30 | exact_mod_cast hdeg⟩ |
| 31 | invFun a := ⟨⟨a.val.mapRange (fun k : ℕ => (k : ℤ)) (by rfl), by |
| 32 | rw [Finsupp.degree_eq_sum] |
| 33 | simp only [Finsupp.mapRange_apply, ← Nat.cast_sum] |
| 34 | rw [← Finsupp.degree_eq_sum, a.property]⟩, |
| 35 | fun i => by change (0 : ℤ) ≤ (a.val i : ℤ); exact Int.natCast_nonneg _⟩ |
| 36 | left_inv e := by |
| 37 | apply Subtype.ext |
| 38 | apply Subtype.ext |
| 39 | ext i |
| 40 | change ((e.val.val i).toNat : ℤ) = e.val.val i |
| 41 | have := e.property i |
| 42 | omega |
| 43 | right_inv a := by |
| 44 | apply Subtype.ext |
| 45 | ext i |
| 46 | change (a.val i : ℤ).toNat = a.val i |
| 47 | omega |
| 48 | |
| 49 | def homogeneousPolynomialCoefficientsEquiv (R : Type u) [CommRing R] (n : ℕ) : |
| 50 | homogeneousSubmodule σ R n ≃ₗ[R] (LaurentZeroCoefficients.MvPolynomial.NonnegativeLaurentWeight σ (n : ℤ) → R) := |
| 51 | (LinearEquiv.ofEq _ _ (homogeneousSubmodule_eq_finsupp_supported σ R n)).trans |
| 52 | ((AddMonoidAlgebra.supportedEquivFinsupp {a : σ →₀ ℕ | a.degree = n}).trans |
| 53 | ((Finsupp.domLCongr (nonnegativeLaurentWeightEquivDegree n).symm).trans |
| 54 | (Finsupp.linearEquivFunOnFinite R R _))) |
| 55 | |
| 56 | def laurentZeroCyclesEquivPolynomials (R : Type u) [CommRing R] [LinearOrder σ] |
| 57 | (j : σ) (n : ℕ) : |
| 58 | LaurentZeroCycleWeights.MvPolynomial.LaurentZeroCycles (R := R) (σ := σ) (n : ℤ) ≃ₗ[Γ(Spec (CommRingCat.of R), ⊤)] |
| 59 | homogeneousSubmodule σ Γ(Spec (CommRingCat.of R), ⊤) n := |
| 60 | (LaurentZeroCoefficients.MvPolynomial.laurentZeroCyclesEquivCoefficients (R := R) (n : ℤ) (Int.natCast_nonneg n) j).trans |
| 61 | (homogeneousPolynomialCoefficientsEquiv _ n).symm |
| 62 | |
| 63 | end |
| 64 | |
| 65 | end OAI.AlgebraicGeometry.SheafCohomology.Projective.NonnegativeLaurentPolynomials.MvPolynomial |