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 | import Mathlib.LinearAlgebra.Basis.Defs |
| 3 | |
| 4 | /-! # Coordinates -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Homogeneous.Coordinates |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! |
| 11 | Canonical monomial coordinates for each homogeneous polynomial degree. |
| 12 | They identify the finite free degree module with a coordinate module used by |
| 13 | the constructed Grassmannian parameter schemes. |
| 14 | -/ |
| 15 | |
| 16 | universe u v |
| 17 | |
| 18 | abbrev HomogeneousMonomials (σ : Type v) (d : ℕ) := {a : σ →₀ ℕ // a.degree = d} |
| 19 | |
| 20 | instance homogeneousMonomials_decidableEq (σ : Type v) (d : ℕ) : |
| 21 | DecidableEq (HomogeneousMonomials σ d) := Classical.decEq _ |
| 22 | |
| 23 | instance homogeneousMonomials_fintype (σ : Type v) [Finite σ] (d : ℕ) : |
| 24 | Fintype (HomogeneousMonomials σ d) := (Finsupp.finite_of_degree_eq d).fintype |
| 25 | |
| 26 | instance homogeneousMonomials_nonempty (σ : Type v) [Nonempty σ] (d : ℕ) : |
| 27 | Nonempty (HomogeneousMonomials σ d) := by |
| 28 | classical |
| 29 | exact ⟨⟨Finsupp.single (Classical.choice (inferInstance : Nonempty σ)) d, by simp⟩⟩ |
| 30 | |
| 31 | variable (R : Type u) [CommRing R] (σ : Type v) [Finite σ] (d : ℕ) |
| 32 | |
| 33 | def homogeneousSupportEquiv : |
| 34 | MvPolynomial.homogeneousSubmodule σ R d ≃ₗ[R] |
| 35 | MvPolynomial.restrictSupport R {a : σ →₀ ℕ | a.degree = d} where |
| 36 | toFun p := ⟨p.val, by |
| 37 | change p.val ∈ AddMonoidAlgebra.supported R R {a : σ →₀ ℕ | a.degree = d} |
| 38 | rw [← MvPolynomial.homogeneousSubmodule_eq_finsupp_supported] |
| 39 | exact p.property⟩ |
| 40 | invFun p := ⟨p.val, by |
| 41 | rw [MvPolynomial.homogeneousSubmodule_eq_finsupp_supported] |
| 42 | exact p.property⟩ |
| 43 | left_inv _ := rfl |
| 44 | right_inv _ := rfl |
| 45 | map_add' _ _ := rfl |
| 46 | map_smul' _ _ := rfl |
| 47 | |
| 48 | def homogeneousMonomialBasis : Module.Basis (HomogeneousMonomials σ d) R |
| 49 | (MvPolynomial.homogeneousSubmodule σ R d) := |
| 50 | (MvPolynomial.basisRestrictSupport R {a : σ →₀ ℕ | a.degree = d}).map |
| 51 | (homogeneousSupportEquiv R σ d).symm |
| 52 | |
| 53 | def homogeneousCoordinates : MvPolynomial.homogeneousSubmodule σ R d ≃ₗ[R] |
| 54 | (HomogeneousMonomials σ d → R) := |
| 55 | (homogeneousMonomialBasis R σ d).equivFun |
| 56 | |
| 57 | theorem homogeneousCoordinates_apply (p : MvPolynomial.homogeneousSubmodule σ R d) |
| 58 | (a : HomogeneousMonomials σ d) : |
| 59 | homogeneousCoordinates R σ d p a = AddMonoidAlgebra.coeff (p.val) (a.val) := by |
| 60 | rw [homogeneousCoordinates, Module.Basis.equivFun_apply] |
| 61 | rfl |
| 62 | |
| 63 | theorem homogeneousCoordinates_coefficientMap {A : Type*} [CommRing A] (φ : R →+* A) |
| 64 | (p : MvPolynomial.homogeneousSubmodule σ R d) : |
| 65 | homogeneousCoordinates A σ d ⟨MvPolynomial.map φ p.val, p.property.map φ⟩ = |
| 66 | φ ∘ homogeneousCoordinates R σ d p := by |
| 67 | funext a |
| 68 | rw [Function.comp_apply, homogeneousCoordinates_apply, homogeneousCoordinates_apply] |
| 69 | exact MvPolynomial.coeff_map φ p.val a.val |
| 70 | |
| 71 | theorem homogeneousCoordinates_monomial (a : HomogeneousMonomials σ d) (r : R) : |
| 72 | homogeneousCoordinates R σ d ⟨MvPolynomial.monomial a.val r, |
| 73 | MvPolynomial.isHomogeneous_monomial r a.property⟩ = Pi.single a r := by |
| 74 | classical |
| 75 | funext b |
| 76 | rw [homogeneousCoordinates_apply] |
| 77 | simp only [MvPolynomial.coeff_monomial, Pi.single_apply, Subtype.ext_iff, eq_comm] |
| 78 | |
| 79 | end |
| 80 | |
| 81 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Homogeneous.Coordinates |