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.AbelianModuli.HilbertConstruction.DeterminantBlockDegrees |
| 2 | |
| 3 | /-! # Determinant Algebra -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Balanced.DeterminantAlgebra |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! The actual balanced determinant algebra is finite type, and its |
| 10 | common degree is positive for every nonconstant exponent when r is positive. -/ |
| 11 | open scoped BigOperators Classical |
| 12 | universe u |
| 13 | set_option backward.isDefEq.respectTransparency false |
| 14 | set_option backward.isDefEq.respectTransparency.types false |
| 15 | variable {r m : ℕ} |
| 16 | |
| 17 | def balancedDeterminantAlgebra (R : Type u) [CommRing R] (r m : ℕ) : |
| 18 | Subalgebra R (MvPolynomial (Fin m × Fin r) R) := |
| 19 | MonomialAlgebra.balancedMonomialAlgebra R (LabeledDeterminantPolynomials.labeledDeterminantPolynomial R) DeterminantBlockDegrees.labeledDeterminantWeight |
| 20 | |
| 21 | theorem balancedDeterminantAlgebra_finiteType (R : Type u) [CommRing R] (r m : ℕ) : |
| 22 | Algebra.FiniteType R (balancedDeterminantAlgebra R r m) := |
| 23 | MonomialAlgebra.balancedMonomialAlgebra_finiteType _ _ |
| 24 | |
| 25 | theorem labeledDeterminantWeight_sum (σ : Fin r → Fin m) : |
| 26 | ∑ i, DeterminantBlockDegrees.labeledDeterminantWeight σ i = r := by |
| 27 | unfold DeterminantBlockDegrees.labeledDeterminantWeight |
| 28 | rw [Finset.sum_comm] |
| 29 | simp |
| 30 | |
| 31 | theorem determinantMonomial_totalBlockDegree (a : (Fin r → Fin m) → ℕ) : |
| 32 | ∑ i, ExponentFiniteGeneration.monomialMultiDegree DeterminantBlockDegrees.labeledDeterminantWeight a i = r * ∑ σ, a σ := by |
| 33 | unfold ExponentFiniteGeneration.monomialMultiDegree |
| 34 | rw [Finset.sum_comm] |
| 35 | simp only [← Finset.mul_sum, labeledDeterminantWeight_sum, ← Finset.sum_mul] |
| 36 | exact Nat.mul_comm _ _ |
| 37 | |
| 38 | theorem balancedDeterminantMonomial_degree_mass |
| 39 | (a : (Fin r → Fin m) → ℕ) |
| 40 | (ha : a ∈ ExponentFiniteGeneration.balancedExponentMonoid DeterminantBlockDegrees.labeledDeterminantWeight) (i : Fin m) : |
| 41 | r * ∑ σ, a σ = m * ExponentFiniteGeneration.monomialMultiDegree DeterminantBlockDegrees.labeledDeterminantWeight a i := by |
| 42 | rw [← determinantMonomial_totalBlockDegree] |
| 43 | have he : ∀ j, ExponentFiniteGeneration.monomialMultiDegree DeterminantBlockDegrees.labeledDeterminantWeight a j = |
| 44 | ExponentFiniteGeneration.monomialMultiDegree DeterminantBlockDegrees.labeledDeterminantWeight a i := |
| 45 | fun j => (ExponentFiniteGeneration.mem_balancedExponentMonoid_iff _ _).mp ha j i |
| 46 | simp only [he, Finset.sum_const, Finset.card_univ, Fintype.card_fin, nsmul_eq_mul, Nat.cast_id] |
| 47 | |
| 48 | theorem balancedDeterminantMonomial_degree_zero_iff (hr : 0 < r) |
| 49 | (a : (Fin r → Fin m) → ℕ) |
| 50 | (ha : a ∈ ExponentFiniteGeneration.balancedExponentMonoid DeterminantBlockDegrees.labeledDeterminantWeight) (i : Fin m) : |
| 51 | ExponentFiniteGeneration.monomialMultiDegree DeterminantBlockDegrees.labeledDeterminantWeight a i = 0 ↔ a = 0 := by |
| 52 | constructor |
| 53 | · intro h |
| 54 | have hm := balancedDeterminantMonomial_degree_mass a ha i |
| 55 | rw [h, Nat.mul_zero] at hm |
| 56 | have hs : ∑ σ, a σ = 0 := (Nat.mul_eq_zero.mp hm).resolve_left (Nat.ne_of_gt hr) |
| 57 | funext σ |
| 58 | exact Finset.sum_eq_zero_iff.mp hs σ (Finset.mem_univ _) |
| 59 | · rintro rfl |
| 60 | simp only [ExponentFiniteGeneration.monomialMultiDegree, Pi.zero_apply, zero_mul, Finset.sum_const_zero] |
| 61 | |
| 62 | end |
| 63 | |
| 64 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Balanced.DeterminantAlgebra |