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.LaurentBasis |
| 2 | |
| 3 | /-! # Laurent Restriction -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.HilbertScheme.Presentations.LaurentRestriction.ProjectiveCech |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! Restriction between projective chart localizations preserves Laurent monomials. -/ |
| 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 | def extendExponent {s t : Finset σ} (h : s ⊆ t) (a : LaurentExponents.ProjectiveCech.LaurentExponent s) : LaurentExponents.ProjectiveCech.LaurentExponent t := |
| 19 | ⟨a.val, fun i hi => a.property i (fun his => hi (h his))⟩ |
| 20 | |
| 21 | omit [Fintype σ] in |
| 22 | theorem inversionExponent_sdiff {s t : Finset σ} (h : s ⊆ t) : |
| 23 | LaurentExponents.ProjectiveCech.inversionExponent s + LaurentExponents.ProjectiveCech.inversionExponent (t \ s) = LaurentExponents.ProjectiveCech.inversionExponent t := by |
| 24 | ext i |
| 25 | simp only [Finsupp.add_apply, LaurentExponents.ProjectiveCech.inversionExponent_apply, Finset.mem_sdiff] |
| 26 | by_cases hs : i ∈ s |
| 27 | · simp [hs, h hs] |
| 28 | · simp [hs] |
| 29 | |
| 30 | omit [Fintype σ] in |
| 31 | theorem inversionMonomial_sdiff {s t : Finset σ} (h : s ⊆ t) : |
| 32 | LaurentMonomials.ProjectiveCech.inversionMonomial R s * LaurentMonomials.ProjectiveCech.inversionMonomial R (t \ s) = LaurentMonomials.ProjectiveCech.inversionMonomial R t := by |
| 33 | simp only [LaurentMonomials.ProjectiveCech.inversionMonomial, monomial_mul_monomial, one_mul, inversionExponent_sdiff h] |
| 34 | |
| 35 | theorem numeratorExponent_extend {s t : Finset σ} (h : s ⊆ t) (a : LaurentExponents.ProjectiveCech.LaurentExponent s) |
| 36 | (k : ℕ) (hk : LaurentExponents.ProjectiveCech.denominatorBound a ≤ k) : |
| 37 | LaurentExponents.ProjectiveCech.numeratorExponent a k + k • LaurentExponents.ProjectiveCech.inversionExponent (t \ s) = |
| 38 | LaurentExponents.ProjectiveCech.numeratorExponent (extendExponent h a) k := by |
| 39 | have hb : LaurentExponents.ProjectiveCech.denominatorBound (extendExponent h a) ≤ k := hk |
| 40 | ext i |
| 41 | simp only [Finsupp.add_apply, Finsupp.smul_apply, smul_eq_mul] |
| 42 | have hi := congrArg (fun d : σ →₀ ℕ => (d i : ℤ)) (inversionExponent_sdiff h) |
| 43 | simp only [Finsupp.add_apply, Nat.cast_add] at hi |
| 44 | have he : (LaurentExponents.ProjectiveCech.numeratorExponent a k i : ℤ) + (k : ℤ) * (LaurentExponents.ProjectiveCech.inversionExponent (t \ s) i : ℤ) = |
| 45 | (LaurentExponents.ProjectiveCech.numeratorExponent (extendExponent h a) k i : ℤ) := by |
| 46 | rw [LaurentExponents.ProjectiveCech.numeratorExponent_cast a k hk, LaurentExponents.ProjectiveCech.numeratorExponent_cast _ k hb] |
| 47 | change a.val i + (k : ℤ) * (LaurentExponents.ProjectiveCech.inversionExponent s i : ℤ) + |
| 48 | (k : ℤ) * (LaurentExponents.ProjectiveCech.inversionExponent (t \ s) i : ℤ) = |
| 49 | a.val i + (k : ℤ) * (LaurentExponents.ProjectiveCech.inversionExponent t i : ℤ) |
| 50 | rw [← hi] |
| 51 | ring |
| 52 | exact_mod_cast he |
| 53 | |
| 54 | omit [Fintype σ] in |
| 55 | theorem inversionMonomial_subset_isUnit {s t : Finset σ} (h : s ⊆ t) : |
| 56 | IsUnit (algebraMap (MvPolynomial σ R) (LaurentMonomials.ProjectiveCech.ChartLocalization R t) (LaurentMonomials.ProjectiveCech.inversionMonomial R s)) := by |
| 57 | apply isUnit_of_dvd_unit |
| 58 | (map_dvd (algebraMap (MvPolynomial σ R) (LaurentMonomials.ProjectiveCech.ChartLocalization R t)) |
| 59 | ⟨LaurentMonomials.ProjectiveCech.inversionMonomial R (t \ s), (inversionMonomial_sdiff R h).symm⟩) |
| 60 | exact IsLocalization.Away.algebraMap_isUnit (LaurentMonomials.ProjectiveCech.inversionMonomial R t) |
| 61 | |
| 62 | def chartRestriction {s t : Finset σ} (h : s ⊆ t) : |
| 63 | LaurentMonomials.ProjectiveCech.ChartLocalization R s →ₐ[R] LaurentMonomials.ProjectiveCech.ChartLocalization R t := |
| 64 | IsLocalization.Away.liftAlgHom (LaurentMonomials.ProjectiveCech.inversionMonomial R s) |
| 65 | (f := IsScalarTower.toAlgHom R (MvPolynomial σ R) (LaurentMonomials.ProjectiveCech.ChartLocalization R t)) |
| 66 | (inversionMonomial_subset_isUnit R h) |
| 67 | |
| 68 | omit [Fintype σ] in |
| 69 | theorem chartRestriction_algebraMap {s t : Finset σ} (h : s ⊆ t) (p : MvPolynomial σ R) : |
| 70 | chartRestriction R h (algebraMap (MvPolynomial σ R) (LaurentMonomials.ProjectiveCech.ChartLocalization R s) p) = |
| 71 | algebraMap (MvPolynomial σ R) (LaurentMonomials.ProjectiveCech.ChartLocalization R t) p := |
| 72 | IsLocalization.Away.lift_eq (LaurentMonomials.ProjectiveCech.inversionMonomial R s) |
| 73 | (inversionMonomial_subset_isUnit R h) p |
| 74 | |
| 75 | theorem chartRestriction_laurentMonomial {s t : Finset σ} (h : s ⊆ t) (a : LaurentExponents.ProjectiveCech.LaurentExponent s) : |
| 76 | chartRestriction R h (LaurentMonomials.ProjectiveCech.laurentMonomial R a) = LaurentMonomials.ProjectiveCech.laurentMonomial R (extendExponent h a) := by |
| 77 | let k := LaurentExponents.ProjectiveCech.denominatorBound a |
| 78 | let φ := algebraMap (MvPolynomial σ R) (LaurentMonomials.ProjectiveCech.ChartLocalization R t) |
| 79 | have hclear := congrArg (chartRestriction R h) (LaurentMonomials.ProjectiveCech.laurentMonomial_clear R a k le_rfl) |
| 80 | rw [map_mul, chartRestriction_algebraMap, chartRestriction_algebraMap] at hclear |
| 81 | have hn : monomial (LaurentExponents.ProjectiveCech.numeratorExponent a k) (1 : R) * LaurentMonomials.ProjectiveCech.inversionMonomial R (t \ s) ^ k = |
| 82 | monomial (LaurentExponents.ProjectiveCech.numeratorExponent (extendExponent h a) k) 1 := by |
| 83 | rw [LaurentMonomials.ProjectiveCech.inversionMonomial_pow, monomial_mul_monomial, one_mul, numeratorExponent_extend h a k le_rfl] |
| 84 | have hg : LaurentMonomials.ProjectiveCech.inversionMonomial R s ^ k * LaurentMonomials.ProjectiveCech.inversionMonomial R (t \ s) ^ k = |
| 85 | LaurentMonomials.ProjectiveCech.inversionMonomial R t ^ k := by rw [← mul_pow, inversionMonomial_sdiff R h] |
| 86 | apply (IsLocalization.map_units (LaurentMonomials.ProjectiveCech.ChartLocalization R t) (LaurentMonomials.ProjectiveCech.chartDenominator R t k)).mul_right_inj.mp |
| 87 | change φ (LaurentMonomials.ProjectiveCech.inversionMonomial R t ^ k) * _ = φ (LaurentMonomials.ProjectiveCech.inversionMonomial R t ^ k) * _ |
| 88 | rw [LaurentMonomials.ProjectiveCech.laurentMonomial_clear R (extendExponent h a) k le_rfl] |
| 89 | calc |
| 90 | φ (LaurentMonomials.ProjectiveCech.inversionMonomial R t ^ k) * chartRestriction R h (LaurentMonomials.ProjectiveCech.laurentMonomial R a) = |
| 91 | φ (LaurentMonomials.ProjectiveCech.inversionMonomial R (t \ s) ^ k) * |
| 92 | (φ (LaurentMonomials.ProjectiveCech.inversionMonomial R s ^ k) * chartRestriction R h (LaurentMonomials.ProjectiveCech.laurentMonomial R a)) := by |
| 93 | rw [← hg, map_mul] |
| 94 | ring |
| 95 | _ = φ (LaurentMonomials.ProjectiveCech.inversionMonomial R (t \ s) ^ k) * φ (monomial (LaurentExponents.ProjectiveCech.numeratorExponent a k) 1) := by |
| 96 | rw [hclear] |
| 97 | _ = φ (monomial (LaurentExponents.ProjectiveCech.numeratorExponent (extendExponent h a) k) 1) := by |
| 98 | rw [mul_comm, ← map_mul, hn] |
| 99 | |
| 100 | theorem chartRestriction_refl (s : Finset σ) : |
| 101 | chartRestriction R (Finset.Subset.refl s) = AlgHom.id R (LaurentMonomials.ProjectiveCech.ChartLocalization R s) := by |
| 102 | apply AlgHom.toLinearMap_injective |
| 103 | apply (LaurentBasis.ProjectiveCech.laurentBasis R s).ext |
| 104 | intro a |
| 105 | simp only [AlgHom.toLinearMap_apply, LaurentBasis.ProjectiveCech.laurentBasis_apply, chartRestriction_laurentMonomial, |
| 106 | AlgHom.id_apply] |
| 107 | rfl |
| 108 | |
| 109 | theorem chartRestriction_comp {s t w : Finset σ} (hst : s ⊆ t) (htw : t ⊆ w) : |
| 110 | (chartRestriction R htw).comp (chartRestriction R hst) = chartRestriction R (hst.trans htw) := by |
| 111 | apply AlgHom.toLinearMap_injective |
| 112 | apply (LaurentBasis.ProjectiveCech.laurentBasis R s).ext |
| 113 | intro a |
| 114 | simp only [AlgHom.toLinearMap_apply, AlgHom.comp_apply, LaurentBasis.ProjectiveCech.laurentBasis_apply, |
| 115 | chartRestriction_laurentMonomial] |
| 116 | rfl |
| 117 | |
| 118 | end |
| 119 | |
| 120 | end OAI.AlgebraicGeometry.HilbertScheme.Presentations.LaurentRestriction.ProjectiveCech |