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.LaurentMonomials |
| 2 | import Mathlib.LinearAlgebra.Basis.Basic |
| 3 | |
| 4 | /-! # Laurent Basis -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.HilbertScheme.Presentations.LaurentBasis.ProjectiveCech |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! |
| 11 | The principal localization at a product of variables is free over the |
| 12 | coefficient ring, with the expected partially Laurent monomial basis. |
| 13 | -/ |
| 14 | |
| 15 | open _root_.MvPolynomial _root_.Module |
| 16 | |
| 17 | universe u v |
| 18 | |
| 19 | variable {σ : Type u} [Fintype σ] [DecidableEq σ] |
| 20 | variable (R : Type v) [CommRing R] |
| 21 | |
| 22 | theorem laurentMonomial_linearIndependent (s : Finset σ) : |
| 23 | LinearIndependent R (LaurentMonomials.ProjectiveCech.laurentMonomial R (s := s)) := by |
| 24 | classical |
| 25 | rw [linearIndependent_iff_finset_linearIndependent] |
| 26 | intro t |
| 27 | let k : ℕ := ∑ a ∈ t, LaurentExponents.ProjectiveCech.denominatorBound a |
| 28 | have hk (a : t) : LaurentExponents.ProjectiveCech.denominatorBound a.val ≤ k := |
| 29 | Finset.single_le_sum (f := fun a => LaurentExponents.ProjectiveCech.denominatorBound a) |
| 30 | (fun _ _ => Nat.zero_le _) a.property |
| 31 | let e : t → σ →₀ ℕ := fun a => LaurentExponents.ProjectiveCech.numeratorExponent a.val k |
| 32 | have he : Function.Injective e := by |
| 33 | intro a b h |
| 34 | apply Subtype.ext |
| 35 | exact LaurentExponents.ProjectiveCech.numeratorExponent_injective a.val b.val k (hk a) (hk b) h |
| 36 | let f : MvPolynomial σ R →ₗ[R] LaurentMonomials.ProjectiveCech.ChartLocalization R s := |
| 37 | (IsScalarTower.toAlgHom R (MvPolynomial σ R) (LaurentMonomials.ProjectiveCech.ChartLocalization R s)).toLinearMap |
| 38 | have hf : LinearMap.ker f = ⊥ := |
| 39 | LinearMap.ker_eq_bot.mpr (LaurentMonomials.ProjectiveCech.chartLocalization_injective R s) |
| 40 | have hi := ((basisMonomials σ R).linearIndependent.comp e he).map' f hf |
| 41 | let μ : LaurentMonomials.ProjectiveCech.ChartLocalization R s →ₗ[R] LaurentMonomials.ProjectiveCech.ChartLocalization R s := |
| 42 | LinearMap.mulLeft R (algebraMap (MvPolynomial σ R) (LaurentMonomials.ProjectiveCech.ChartLocalization R s) |
| 43 | (LaurentMonomials.ProjectiveCech.inversionMonomial R s ^ k)) |
| 44 | apply LinearIndependent.of_comp μ |
| 45 | have hμ : μ ∘ (LaurentMonomials.ProjectiveCech.laurentMonomial R ∘ (Subtype.val : t → LaurentExponents.ProjectiveCech.LaurentExponent s)) = |
| 46 | f ∘ ((basisMonomials σ R) ∘ e) := by |
| 47 | funext a |
| 48 | exact LaurentMonomials.ProjectiveCech.laurentMonomial_clear R a.val k (hk a) |
| 49 | rw [hμ] |
| 50 | exact hi |
| 51 | |
| 52 | def chartFractionLinearMap (s : Finset σ) (k : ℕ) : |
| 53 | MvPolynomial σ R →ₗ[R] LaurentMonomials.ProjectiveCech.ChartLocalization R s := |
| 54 | (LinearMap.mulRight R (IsLocalization.mk' (LaurentMonomials.ProjectiveCech.ChartLocalization R s) 1 |
| 55 | (LaurentMonomials.ProjectiveCech.chartDenominator R s k))).comp |
| 56 | (IsScalarTower.toAlgHom R (MvPolynomial σ R) (LaurentMonomials.ProjectiveCech.ChartLocalization R s)).toLinearMap |
| 57 | |
| 58 | omit [Fintype σ] [DecidableEq σ] in |
| 59 | theorem chartFractionLinearMap_apply (s : Finset σ) (k : ℕ) (p : MvPolynomial σ R) : |
| 60 | chartFractionLinearMap R s k p = |
| 61 | IsLocalization.mk' (LaurentMonomials.ProjectiveCech.ChartLocalization R s) p (LaurentMonomials.ProjectiveCech.chartDenominator R s k) := |
| 62 | (IsLocalization.mk'_eq_mul_mk'_one (S := LaurentMonomials.ProjectiveCech.ChartLocalization R s) p |
| 63 | (LaurentMonomials.ProjectiveCech.chartDenominator R s k)).symm |
| 64 | |
| 65 | theorem chartFractionLinearMap_mem_span (s : Finset σ) (k : ℕ) (p : MvPolynomial σ R) : |
| 66 | chartFractionLinearMap R s k p ∈ Submodule.span R (Set.range (LaurentMonomials.ProjectiveCech.laurentMonomial R (s := s))) := by |
| 67 | induction p using MvPolynomial.induction_on' with |
| 68 | | monomial d r => |
| 69 | have h : monomial d r = r • monomial d (1 : R) := by |
| 70 | rw [smul_monomial, smul_eq_mul, mul_one] |
| 71 | rw [h, map_smul, chartFractionLinearMap_apply, ← LaurentMonomials.ProjectiveCech.laurentMonomial_ofNumerator] |
| 72 | exact Submodule.smul_mem _ r (Submodule.subset_span ⟨_, rfl⟩) |
| 73 | | add p q hp hq => |
| 74 | rw [map_add] |
| 75 | exact Submodule.add_mem _ hp hq |
| 76 | |
| 77 | theorem laurentMonomial_span (s : Finset σ) : |
| 78 | Submodule.span R (Set.range (LaurentMonomials.ProjectiveCech.laurentMonomial R (s := s))) = ⊤ := by |
| 79 | apply top_unique |
| 80 | intro x _ |
| 81 | obtain ⟨p, ⟨d, hd⟩, rfl⟩ := |
| 82 | IsLocalization.exists_mk'_eq (Submonoid.powers (LaurentMonomials.ProjectiveCech.inversionMonomial R s)) x |
| 83 | obtain ⟨k, rfl⟩ := hd |
| 84 | exact (chartFractionLinearMap_apply R s k p) ▸ chartFractionLinearMap_mem_span R s k p |
| 85 | |
| 86 | def laurentBasis (s : Finset σ) : Basis (LaurentExponents.ProjectiveCech.LaurentExponent s) R (LaurentMonomials.ProjectiveCech.ChartLocalization R s) := |
| 87 | Basis.mk (laurentMonomial_linearIndependent R s) (by rw [laurentMonomial_span]) |
| 88 | |
| 89 | theorem laurentBasis_apply (s : Finset σ) (a : LaurentExponents.ProjectiveCech.LaurentExponent s) : |
| 90 | laurentBasis R s a = LaurentMonomials.ProjectiveCech.laurentMonomial R a := |
| 91 | Basis.mk_apply _ _ _ |
| 92 | |
| 93 | end |
| 94 | |
| 95 | end OAI.AlgebraicGeometry.HilbertScheme.Presentations.LaurentBasis.ProjectiveCech |