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.GeneralPolynomialContraction |
| 2 | import OAI.AlgebraicGeometry.HilbertScheme.Presentations.NegativeDegree |
| 3 | |
| 4 | /-! # Top Residue -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.HilbertScheme.Presentations.Polynomial.TopResidue.ProjectiveCech |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! The all-negative Laurent part of an actual polynomial Čech cochain is supported on the final intersection. -/ |
| 11 | |
| 12 | universe u v |
| 13 | |
| 14 | variable {σ : Type u} [Fintype σ] [LinearOrder σ] |
| 15 | variable (R : Type v) [CommRing R] |
| 16 | |
| 17 | def polynomialTopResidueCoefficients (f : Cech.ProjectiveCech.PolynomialCechFamily (σ := σ) R) |
| 18 | (s : Finset σ) : (σ → ℤ) →₀ R := |
| 19 | (LaurentCoordinates.ProjectiveCech.chartCoordinates R s (f s)).filter (fun a => ¬∃ i, 0 ≤ a i) |
| 20 | |
| 21 | theorem polynomialTopResidueCoefficients_apply (f : Cech.ProjectiveCech.PolynomialCechFamily (σ := σ) R) |
| 22 | (s : Finset σ) (a : σ → ℤ) : |
| 23 | polynomialTopResidueCoefficients R f s a = |
| 24 | if ∃ i, 0 ≤ a i then 0 else LaurentCoordinates.ProjectiveCech.chartCoordinates R s (f s) a := by |
| 25 | simp only [polynomialTopResidueCoefficients, Finsupp.filter_apply, ite_not] |
| 26 | |
| 27 | theorem polynomialTopResidueCoefficients_allowed (f : Cech.ProjectiveCech.PolynomialCechFamily (σ := σ) R) (s : Finset σ) : |
| 28 | ∀ a ∈ (polynomialTopResidueCoefficients R f s).support, a ∈ LaurentCoordinates.ProjectiveCech.allowedExponents s := by |
| 29 | intro a ha |
| 30 | exact LaurentCoordinates.ProjectiveCech.chartCoordinates_support R s (f s) a (Finset.mem_filter.mp ha).1 |
| 31 | |
| 32 | def polynomialTopResidue (f : Cech.ProjectiveCech.PolynomialCechFamily (σ := σ) R) : Cech.ProjectiveCech.PolynomialCechFamily (σ := σ) R := |
| 33 | fun s => LaurentCoordinates.ProjectiveCech.chartOfCoordinates R s (polynomialTopResidueCoefficients R f s) |
| 34 | |
| 35 | theorem polynomialTopResidue_coordinates (f : Cech.ProjectiveCech.PolynomialCechFamily (σ := σ) R) |
| 36 | (s : Finset σ) (a : σ → ℤ) : |
| 37 | LaurentCoordinates.ProjectiveCech.chartCoordinates R s (polynomialTopResidue R f s) a = |
| 38 | if ∃ i, 0 ≤ a i then 0 else LaurentCoordinates.ProjectiveCech.chartCoordinates R s (f s) a := by |
| 39 | rw [polynomialTopResidue, LaurentCoordinates.ProjectiveCech.chartCoordinates_ofCoordinates R s _ |
| 40 | (polynomialTopResidueCoefficients_allowed R f s)] |
| 41 | exact polynomialTopResidueCoefficients_apply R f s a |
| 42 | |
| 43 | theorem polynomialTopResidue_homogeneous (d : ℤ) (f : Cech.ProjectiveCech.PolynomialCechFamily (σ := σ) R) |
| 44 | (hf : Cech.ProjectiveCech.CechHomogeneous R d f) : Cech.ProjectiveCech.CechHomogeneous R d (polynomialTopResidue R f) := by |
| 45 | intro s |
| 46 | apply LaurentCoordinates.ProjectiveCech.chartOfCoordinates_degree R s d |
| 47 | intro a ha |
| 48 | rw [polynomialTopResidueCoefficients_apply, LaurentCoordinates.ProjectiveCech.chartCoordinates_degree R s d _ (hf s) a ha] |
| 49 | simp only [ite_self] |
| 50 | |
| 51 | theorem polynomialTopResidue_of_not_univ (f : Cech.ProjectiveCech.PolynomialCechFamily (σ := σ) R) |
| 52 | (s : Finset σ) (hs : s ≠ Finset.univ) : polynomialTopResidue R f s = 0 := by |
| 53 | apply LaurentCoordinates.ProjectiveCech.chartCoordinates_injective R s |
| 54 | ext a |
| 55 | rw [polynomialTopResidue_coordinates, map_zero, Finsupp.zero_apply] |
| 56 | split_ifs with ha |
| 57 | · rfl |
| 58 | · apply LaurentCoordinates.ProjectiveCech.chartCoordinates_of_not_allowed |
| 59 | intro hallowed |
| 60 | apply hs |
| 61 | apply Finset.eq_univ_iff_forall.mpr |
| 62 | intro i |
| 63 | by_contra hi |
| 64 | exact ha ⟨i, hallowed i hi⟩ |
| 65 | |
| 66 | theorem polynomialTopResidue_card (f : Cech.ProjectiveCech.PolynomialCechFamily (σ := σ) R) : |
| 67 | Cech.ProjectiveCech.CechCardSupported R (Fintype.card σ) (polynomialTopResidue R f) := by |
| 68 | intro s hs |
| 69 | apply polynomialTopResidue_of_not_univ R f s |
| 70 | intro h |
| 71 | exact hs (h ▸ Finset.card_univ) |
| 72 | |
| 73 | end |
| 74 | |
| 75 | end OAI.AlgebraicGeometry.HilbertScheme.Presentations.Polynomial.TopResidue.ProjectiveCech |