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.HilbertScheme.Presentations.Polynomial.FractionDegrees |
| 2 | |
| 3 | /-! # Chart Fraction Restriction -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.HilbertScheme.Presentations.ChartFractionRestriction.ProjectiveCech |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! Restriction of a polynomial fraction to a larger projective chart. -/ |
| 10 | |
| 11 | open _root_.MvPolynomial |
| 12 | |
| 13 | universe u v |
| 14 | |
| 15 | variable {σ : Type u} [Fintype σ] [DecidableEq σ] |
| 16 | variable (R : Type v) [CommRing R] |
| 17 | |
| 18 | omit [Fintype σ] in |
| 19 | theorem extendExponent_ofNumerator {s t : Finset σ} (h : s ⊆ t) (d : σ →₀ ℕ) (k : ℕ) : |
| 20 | LaurentRestriction.ProjectiveCech.extendExponent h (LaurentExponents.ProjectiveCech.exponentOfNumerator s d k) = |
| 21 | LaurentExponents.ProjectiveCech.exponentOfNumerator t (d + k • LaurentExponents.ProjectiveCech.inversionExponent (t \ s)) k := by |
| 22 | apply Subtype.ext |
| 23 | funext i |
| 24 | change (d i : ℤ) - (k : ℤ) * (LaurentExponents.ProjectiveCech.inversionExponent s i : ℤ) = |
| 25 | ((d + k • LaurentExponents.ProjectiveCech.inversionExponent (t \ s)) i : ℤ) - (k : ℤ) * (LaurentExponents.ProjectiveCech.inversionExponent t i : ℤ) |
| 26 | have hi := congrArg (fun e : σ →₀ ℕ => (e i : ℤ)) (LaurentRestriction.ProjectiveCech.inversionExponent_sdiff h) |
| 27 | simp only [Finsupp.add_apply, Finsupp.smul_apply, smul_eq_mul, Nat.cast_add, Nat.cast_mul] at hi ⊢ |
| 28 | rw [← hi] |
| 29 | ring |
| 30 | |
| 31 | theorem chartRestriction_fraction_monomial {s t : Finset σ} (h : s ⊆ t) (k : ℕ) (d : σ →₀ ℕ) : |
| 32 | LaurentRestriction.ProjectiveCech.chartRestriction R h (LaurentBasis.ProjectiveCech.chartFractionLinearMap R s k (monomial d 1)) = |
| 33 | LaurentBasis.ProjectiveCech.chartFractionLinearMap R t k (monomial d 1 * LaurentMonomials.ProjectiveCech.inversionMonomial R (t \ s) ^ k) := by |
| 34 | rw [LaurentMonomials.ProjectiveCech.inversionMonomial_pow, monomial_mul_monomial, one_mul, LaurentBasis.ProjectiveCech.chartFractionLinearMap_apply, |
| 35 | ← LaurentMonomials.ProjectiveCech.laurentMonomial_ofNumerator, LaurentRestriction.ProjectiveCech.chartRestriction_laurentMonomial, |
| 36 | LaurentBasis.ProjectiveCech.chartFractionLinearMap_apply, ← LaurentMonomials.ProjectiveCech.laurentMonomial_ofNumerator, extendExponent_ofNumerator] |
| 37 | |
| 38 | theorem chartRestriction_fraction {s t : Finset σ} (h : s ⊆ t) (k : ℕ) (p : MvPolynomial σ R) : |
| 39 | LaurentRestriction.ProjectiveCech.chartRestriction R h (LaurentBasis.ProjectiveCech.chartFractionLinearMap R s k p) = |
| 40 | LaurentBasis.ProjectiveCech.chartFractionLinearMap R t k (p * LaurentMonomials.ProjectiveCech.inversionMonomial R (t \ s) ^ k) := by |
| 41 | have he : (LaurentRestriction.ProjectiveCech.chartRestriction R h).toLinearMap.comp (LaurentBasis.ProjectiveCech.chartFractionLinearMap R s k) = |
| 42 | (LaurentBasis.ProjectiveCech.chartFractionLinearMap R t k).comp (LinearMap.mulRight R (LaurentMonomials.ProjectiveCech.inversionMonomial R (t \ s) ^ k)) := by |
| 43 | apply (basisMonomials σ R).ext |
| 44 | intro d |
| 45 | simp only [LinearMap.comp_apply, AlgHom.toLinearMap_apply, coe_basisMonomials, |
| 46 | LinearMap.mulRight_apply] |
| 47 | exact chartRestriction_fraction_monomial R h k d |
| 48 | exact LinearMap.congr_fun he p |
| 49 | |
| 50 | end |
| 51 | |
| 52 | end OAI.AlgebraicGeometry.HilbertScheme.Presentations.ChartFractionRestriction.ProjectiveCech |