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.CechHomotopy |
| 2 | |
| 3 | /-! # General Polynomial Contraction -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.HilbertScheme.Presentations.GeneralPolynomialContraction.ProjectiveCech |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! A polynomial Čech contraction in every internal degree, away from the monomials whose exponents are all negative. -/ |
| 10 | |
| 11 | universe u v |
| 12 | |
| 13 | variable {σ : Type u} [Fintype σ] [LinearOrder σ] [Nonempty σ] |
| 14 | variable (R : Type v) [CommRing R] |
| 15 | |
| 16 | def generalCechPivot (a : σ → ℤ) : σ := |
| 17 | if h : ∃ i, 0 ≤ a i then h.choose else Classical.arbitrary σ |
| 18 | |
| 19 | omit [LinearOrder σ] in |
| 20 | theorem generalCechPivot_nonnegative (a : σ → ℤ) (h : ∃ i, 0 ≤ a i) : |
| 21 | 0 ≤ a (generalCechPivot a) := by |
| 22 | simp only [generalCechPivot, dite_eq_left h] |
| 23 | exact h.choose_spec |
| 24 | |
| 25 | def generalContractionCoefficient (f : Polynomial.Cech.ProjectiveCech.PolynomialCechFamily (σ := σ) R) |
| 26 | (s : Finset σ) (a : σ → ℤ) : R := |
| 27 | if ∃ i, 0 ≤ a i then Cech.Contraction.ProjectiveCech.cechContraction R (generalCechPivot a) |
| 28 | (fun t => LaurentCoordinates.ProjectiveCech.chartCoordinates R t (f t) a) s else 0 |
| 29 | |
| 30 | theorem generalContractionCoefficient_support (f : Polynomial.Cech.ProjectiveCech.PolynomialCechFamily (σ := σ) R) |
| 31 | (s : Finset σ) (a : σ → ℤ) (ha : generalContractionCoefficient R f s a ≠ 0) : |
| 32 | a ∈ Polynomial.CechHomotopy.ProjectiveCech.polynomialCechSupport R f := by |
| 33 | have hne : LaurentCoordinates.ProjectiveCech.chartCoordinates R (insert (generalCechPivot a) s) (f (insert (generalCechPivot a) s)) a ≠ 0 := by |
| 34 | intro hz |
| 35 | exact ha (by simp only [generalContractionCoefficient, Cech.Contraction.ProjectiveCech.cechContraction, hz, mul_zero, ite_self]) |
| 36 | exact Polynomial.CechHomotopy.ProjectiveCech.mem_polynomialCechSupport R f _ a hne |
| 37 | |
| 38 | def generalContractionCoefficients (f : Polynomial.Cech.ProjectiveCech.PolynomialCechFamily (σ := σ) R) |
| 39 | (s : Finset σ) : (σ → ℤ) →₀ R := |
| 40 | Finsupp.onFinset (Polynomial.CechHomotopy.ProjectiveCech.polynomialCechSupport R f) (generalContractionCoefficient R f s) |
| 41 | (generalContractionCoefficient_support R f s) |
| 42 | |
| 43 | theorem generalContractionCoefficients_apply (f : Polynomial.Cech.ProjectiveCech.PolynomialCechFamily (σ := σ) R) |
| 44 | (s : Finset σ) (a : σ → ℤ) : |
| 45 | generalContractionCoefficients R f s a = generalContractionCoefficient R f s a := rfl |
| 46 | |
| 47 | theorem generalContractionCoefficients_allowed (f : Polynomial.Cech.ProjectiveCech.PolynomialCechFamily (σ := σ) R) (s : Finset σ) : |
| 48 | ∀ a ∈ (generalContractionCoefficients R f s).support, a ∈ LaurentCoordinates.ProjectiveCech.allowedExponents s := by |
| 49 | intro a ha |
| 50 | have hne := Finsupp.mem_support_iff.mp ha |
| 51 | have hex : ∃ i, 0 ≤ a i := by |
| 52 | by_contra hn |
| 53 | exact hne (by simp only [generalContractionCoefficients_apply, generalContractionCoefficient, ite_eq_right hn]) |
| 54 | have hj : generalCechPivot a ∉ LaurentDegree.ProjectiveCech.negativeSupport a := by |
| 55 | intro h |
| 56 | exact (not_lt_of_ge (generalCechPivot_nonnegative a hex)) (Finset.mem_filter.mp h).2 |
| 57 | by_contra hallowed |
| 58 | apply hne |
| 59 | rw [generalContractionCoefficients_apply, generalContractionCoefficient, ite_eq_left hex] |
| 60 | apply Cech.Contraction.ProjectiveCech.cechContraction_preserves_support R (generalCechPivot a) (LaurentDegree.ProjectiveCech.negativeSupport a) hj |
| 61 | (fun t => LaurentCoordinates.ProjectiveCech.chartCoordinates R t (f t) a) ?_ s ?_ |
| 62 | · intro t ht |
| 63 | exact LaurentCoordinates.ProjectiveCech.chartCoordinates_of_not_allowed R t (f t) a |
| 64 | (fun h => ht ((LaurentDegree.ProjectiveCech.negativeSupport_subset_iff a t).mpr h)) |
| 65 | · exact fun h => hallowed ((LaurentDegree.ProjectiveCech.negativeSupport_subset_iff a s).mp h) |
| 66 | |
| 67 | def generalPolynomialCechContraction (f : Polynomial.Cech.ProjectiveCech.PolynomialCechFamily (σ := σ) R) : |
| 68 | Polynomial.Cech.ProjectiveCech.PolynomialCechFamily (σ := σ) R := |
| 69 | fun s => LaurentCoordinates.ProjectiveCech.chartOfCoordinates R s (generalContractionCoefficients R f s) |
| 70 | |
| 71 | theorem generalPolynomialCechContraction_coordinates (f : Polynomial.Cech.ProjectiveCech.PolynomialCechFamily (σ := σ) R) |
| 72 | (s : Finset σ) (a : σ → ℤ) : |
| 73 | LaurentCoordinates.ProjectiveCech.chartCoordinates R s (generalPolynomialCechContraction R f s) a = |
| 74 | generalContractionCoefficient R f s a := by |
| 75 | rw [generalPolynomialCechContraction, LaurentCoordinates.ProjectiveCech.chartCoordinates_ofCoordinates R s _ |
| 76 | (generalContractionCoefficients_allowed R f s)] |
| 77 | rfl |
| 78 | |
| 79 | theorem generalPolynomialCechContraction_homogeneous (d : ℤ) (f : Polynomial.Cech.ProjectiveCech.PolynomialCechFamily (σ := σ) R) |
| 80 | (hf : Polynomial.Cech.ProjectiveCech.CechHomogeneous R d f) : Polynomial.Cech.ProjectiveCech.CechHomogeneous R d (generalPolynomialCechContraction R f) := by |
| 81 | intro s |
| 82 | apply LaurentCoordinates.ProjectiveCech.chartOfCoordinates_degree R s d |
| 83 | intro a ha |
| 84 | have hc := LaurentCoordinates.ProjectiveCech.chartCoordinates_degree R (insert (generalCechPivot a) s) d _ (hf _) a ha |
| 85 | simp only [generalContractionCoefficients_apply, generalContractionCoefficient, Cech.Contraction.ProjectiveCech.cechContraction, |
| 86 | hc, mul_zero, ite_self] |
| 87 | |
| 88 | theorem generalPolynomialCechContraction_card (q : ℕ) (f : Polynomial.Cech.ProjectiveCech.PolynomialCechFamily (σ := σ) R) |
| 89 | (hf : Polynomial.Cech.ProjectiveCech.CechCardSupported R (q + 1) f) : Polynomial.Cech.ProjectiveCech.CechCardSupported R q (generalPolynomialCechContraction R f) := by |
| 90 | intro s hs |
| 91 | have hz : generalContractionCoefficients R f s = 0 := by |
| 92 | ext a |
| 93 | rw [generalContractionCoefficients_apply, Finsupp.zero_apply, generalContractionCoefficient] |
| 94 | split_ifs |
| 95 | · apply Cech.Contraction.ProjectiveCech.cechContraction_card_support R (generalCechPivot a) q _ ?_ s hs |
| 96 | intro t ht |
| 97 | rw [hf t ht, map_zero, Finsupp.zero_apply] |
| 98 | · rfl |
| 99 | change LaurentCoordinates.ProjectiveCech.chartOfCoordinates R s _ = 0 |
| 100 | rw [hz, map_zero] |
| 101 | |
| 102 | theorem generalPolynomialCechContraction_zero : |
| 103 | generalPolynomialCechContraction R (0 : Polynomial.Cech.ProjectiveCech.PolynomialCechFamily (σ := σ) R) = 0 := by |
| 104 | funext s |
| 105 | have hz : generalContractionCoefficients R (0 : Polynomial.Cech.ProjectiveCech.PolynomialCechFamily (σ := σ) R) s = 0 := by |
| 106 | ext a |
| 107 | simp only [generalContractionCoefficients_apply, generalContractionCoefficient, Pi.zero_apply, |
| 108 | map_zero, Finsupp.zero_apply, Cech.Contraction.ProjectiveCech.cechContraction, mul_zero, ite_self] |
| 109 | change LaurentCoordinates.ProjectiveCech.chartOfCoordinates R s _ = 0 |
| 110 | rw [hz, map_zero] |
| 111 | |
| 112 | end |
| 113 | |
| 114 | end OAI.AlgebraicGeometry.HilbertScheme.Presentations.GeneralPolynomialContraction.ProjectiveCech |