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.LaurentExponents |
| 2 | import Mathlib.RingTheory.MvPolynomial.Basic |
| 3 | import Mathlib.RingTheory.Localization.Away.Basic |
| 4 | |
| 5 | /-! # Laurent Monomials -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.HilbertScheme.Presentations.LaurentMonomials.ProjectiveCech |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! Laurent monomials in the actual principal localizations of polynomial rings. -/ |
| 12 | |
| 13 | open _root_.MvPolynomial |
| 14 | |
| 15 | universe u v |
| 16 | |
| 17 | variable {σ : Type u} [Fintype σ] [DecidableEq σ] |
| 18 | variable (R : Type v) [CommRing R] |
| 19 | |
| 20 | def inversionMonomial (s : Finset σ) : MvPolynomial σ R := monomial (LaurentExponents.ProjectiveCech.inversionExponent s) 1 |
| 21 | |
| 22 | omit [Fintype σ] [DecidableEq σ] in |
| 23 | theorem inversionMonomial_regular (s : Finset σ) : IsRegular (inversionMonomial R s) := |
| 24 | isRegular_one.monomial |
| 25 | |
| 26 | omit [Fintype σ] [DecidableEq σ] in |
| 27 | theorem inversionMonomial_pow (s : Finset σ) (k : ℕ) : |
| 28 | inversionMonomial R s ^ k = monomial (k • LaurentExponents.ProjectiveCech.inversionExponent s) 1 := by |
| 29 | rw [inversionMonomial, monomial_pow, one_pow] |
| 30 | |
| 31 | abbrev ChartLocalization (s : Finset σ) := Localization.Away (inversionMonomial R s) |
| 32 | |
| 33 | omit [Fintype σ] [DecidableEq σ] in |
| 34 | theorem chartLocalization_injective (s : Finset σ) : |
| 35 | Function.Injective (algebraMap (MvPolynomial σ R) (ChartLocalization R s)) := by |
| 36 | apply IsLocalization.injective (M := Submonoid.powers (inversionMonomial R s)) |
| 37 | rintro x ⟨k, rfl⟩ |
| 38 | exact isRegular_iff_mem_nonZeroDivisors.mp ((inversionMonomial_regular R s).pow k) |
| 39 | |
| 40 | def chartDenominator (s : Finset σ) (k : ℕ) : Submonoid.powers (inversionMonomial R s) := |
| 41 | ⟨inversionMonomial R s ^ k, ⟨k, rfl⟩⟩ |
| 42 | |
| 43 | def fractionAt {s : Finset σ} (a : LaurentExponents.ProjectiveCech.LaurentExponent s) (k : ℕ) : ChartLocalization R s := |
| 44 | IsLocalization.mk' (ChartLocalization R s) (monomial (LaurentExponents.ProjectiveCech.numeratorExponent a k) 1) |
| 45 | (chartDenominator R s k) |
| 46 | |
| 47 | omit [DecidableEq σ] in |
| 48 | theorem fractionAt_eq_of_nonnegative {s : Finset σ} (a : LaurentExponents.ProjectiveCech.LaurentExponent s) (k l : ℕ) |
| 49 | (hk : ∀ i, 0 ≤ a.val i + (k : ℤ) * (LaurentExponents.ProjectiveCech.inversionExponent s i : ℤ)) |
| 50 | (hl : ∀ i, 0 ≤ a.val i + (l : ℤ) * (LaurentExponents.ProjectiveCech.inversionExponent s i : ℤ)) : |
| 51 | fractionAt R a k = fractionAt R a l := by |
| 52 | apply IsLocalization.mk'_eq_of_eq |
| 53 | change inversionMonomial R s ^ k * monomial (LaurentExponents.ProjectiveCech.numeratorExponent a l) 1 = |
| 54 | inversionMonomial R s ^ l * monomial (LaurentExponents.ProjectiveCech.numeratorExponent a k) 1 |
| 55 | rw [inversionMonomial_pow, inversionMonomial_pow, monomial_mul_monomial, monomial_mul_monomial, one_mul] |
| 56 | apply congrArg (fun d => monomial d (1 : R)) |
| 57 | simpa only [add_comm] using (LaurentExponents.ProjectiveCech.numeratorExponent_balance_of_nonnegative a k l hk hl).symm |
| 58 | |
| 59 | theorem fractionAt_eq {s : Finset σ} (a : LaurentExponents.ProjectiveCech.LaurentExponent s) (k l : ℕ) |
| 60 | (hk : LaurentExponents.ProjectiveCech.denominatorBound a ≤ k) (hl : LaurentExponents.ProjectiveCech.denominatorBound a ≤ l) : |
| 61 | fractionAt R a k = fractionAt R a l := by |
| 62 | apply IsLocalization.mk'_eq_of_eq |
| 63 | change inversionMonomial R s ^ k * monomial (LaurentExponents.ProjectiveCech.numeratorExponent a l) 1 = |
| 64 | inversionMonomial R s ^ l * monomial (LaurentExponents.ProjectiveCech.numeratorExponent a k) 1 |
| 65 | rw [inversionMonomial_pow, inversionMonomial_pow, monomial_mul_monomial, monomial_mul_monomial, one_mul] |
| 66 | apply congrArg (fun d => monomial d (1 : R)) |
| 67 | simpa only [add_comm] using (LaurentExponents.ProjectiveCech.numeratorExponent_balance a k l hk hl).symm |
| 68 | |
| 69 | def laurentMonomial {s : Finset σ} (a : LaurentExponents.ProjectiveCech.LaurentExponent s) : ChartLocalization R s := |
| 70 | fractionAt R a (LaurentExponents.ProjectiveCech.denominatorBound a) |
| 71 | |
| 72 | theorem laurentMonomial_fractionAt {s : Finset σ} (a : LaurentExponents.ProjectiveCech.LaurentExponent s) (k : ℕ) |
| 73 | (hk : LaurentExponents.ProjectiveCech.denominatorBound a ≤ k) : laurentMonomial R a = fractionAt R a k := |
| 74 | fractionAt_eq R a _ _ le_rfl hk |
| 75 | |
| 76 | theorem laurentMonomial_clear {s : Finset σ} (a : LaurentExponents.ProjectiveCech.LaurentExponent s) (k : ℕ) |
| 77 | (hk : LaurentExponents.ProjectiveCech.denominatorBound a ≤ k) : |
| 78 | algebraMap (MvPolynomial σ R) (ChartLocalization R s) (inversionMonomial R s ^ k) * laurentMonomial R a = |
| 79 | algebraMap (MvPolynomial σ R) (ChartLocalization R s) (monomial (LaurentExponents.ProjectiveCech.numeratorExponent a k) 1) := by |
| 80 | rw [laurentMonomial_fractionAt R a k hk] |
| 81 | exact IsLocalization.mk'_spec' (ChartLocalization R s) |
| 82 | (monomial (LaurentExponents.ProjectiveCech.numeratorExponent a k) 1) (chartDenominator R s k) |
| 83 | |
| 84 | theorem laurentMonomial_ofNumerator (s : Finset σ) (d : σ →₀ ℕ) (k : ℕ) : |
| 85 | laurentMonomial R (LaurentExponents.ProjectiveCech.exponentOfNumerator s d k) = |
| 86 | IsLocalization.mk' (ChartLocalization R s) (monomial d 1) |
| 87 | (chartDenominator R s k) := by |
| 88 | rw [laurentMonomial, fractionAt_eq_of_nonnegative R (LaurentExponents.ProjectiveCech.exponentOfNumerator s d k) _ k |
| 89 | (LaurentExponents.ProjectiveCech.clearedExponent_nonnegative _ _ le_rfl) (LaurentExponents.ProjectiveCech.exponentOfNumerator_clear s d k)] |
| 90 | simp only [fractionAt, LaurentExponents.ProjectiveCech.numeratorExponent_exponentOfNumerator] |
| 91 | |
| 92 | end |
| 93 | |
| 94 | end OAI.AlgebraicGeometry.HilbertScheme.Presentations.LaurentMonomials.ProjectiveCech |