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.IntersectionTheory.ProjectionFormula.Polynomial.Resolution |
| 2 | import OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Projective.DimensionFunctor |
| 3 | import OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Flat.Extension |
| 4 | import Mathlib.Algebra.MvPolynomial.Equiv |
| 5 | |
| 6 | /-! # Dimension Bound -/ |
| 7 | |
| 8 | namespace OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Polynomial.DimensionBound |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! A polynomial ring in n variables over a field has projective dimension |
| 13 | at most n for every module. The proof iterates the actual induced-module |
| 14 | short exact sequence, starting with vector spaces. -/ |
| 15 | |
| 16 | open _root_.CategoryTheory _root_.Polynomial |
| 17 | open scoped TensorProduct |
| 18 | |
| 19 | universe u |
| 20 | |
| 21 | theorem polynomial_module_bound (R M : Type u) [CommRing R] [AddCommGroup M] [Module R M] |
| 22 | [Module R[X] M] [IsScalarTower R R[X] M] (d : ℕ) |
| 23 | [HasProjectiveDimensionLE (ModuleCat.of R M) d] : |
| 24 | HasProjectiveDimensionLE (ModuleCat.of R[X] M) (d + 1) := by |
| 25 | let : HasProjectiveDimensionLE (ModuleCat.of R[X] (R[X] ⊗[R] M)) d := |
| 26 | Projective.DimensionFunctor.preserves_bound (Flat.Extension.baseChange R R[X]) |
| 27 | (ModuleCat.of R M) d |
| 28 | let : HasProjectiveDimensionLE (ModuleCat.of R[X] (PolynomialModule R M)) d := |
| 29 | ModuleCat.hasProjectiveDimensionLE_of_linearEquiv |
| 30 | (M := ModuleCat.of R[X] (R[X] ⊗[R] M)) |
| 31 | (PolynomialModule.polynomialTensorProductLEquivPolynomialModule R M) d |
| 32 | exact (Resolution.shortExact R M).hasProjectiveDimensionLT_X₃ (d + 1) |
| 33 | (show HasProjectiveDimensionLE (ModuleCat.of R[X] (PolynomialModule R M)) d from inferInstance) |
| 34 | (hasProjectiveDimensionLT_of_ge (ModuleCat.of R[X] (PolynomialModule R M)) |
| 35 | (d + 1) (d + 2) (by omega)) |
| 36 | |
| 37 | def GlobalBound (R : Type u) [CommRing R] (d : ℕ) : Prop := |
| 38 | ∀ M : ModuleCat.{u} R, HasProjectiveDimensionLE M d |
| 39 | |
| 40 | attribute [local instance] RingHomInvPair.of_ringEquiv in |
| 41 | theorem bound_of_ringEquiv {R S : Type u} [CommRing R] [CommRing S] (e : R ≃+* S) |
| 42 | (d : ℕ) (h : GlobalBound R d) : GlobalBound S d := by |
| 43 | intro M |
| 44 | let : Module R M := Module.compHom M e.toRingHom |
| 45 | let : HasProjectiveDimensionLE (ModuleCat.of R M) d := h (ModuleCat.of R M) |
| 46 | let eM : (ModuleCat.of R M) ≃ₛₗ[RingHomClass.toRingHom e] M := |
| 47 | { AddEquiv.refl M with map_smul' := by intros; rfl } |
| 48 | exact ModuleCat.hasProjectiveDimensionLE_of_semiLinearEquiv e eM d |
| 49 | |
| 50 | theorem polynomial_bound (R : Type u) [CommRing R] (d : ℕ) (h : GlobalBound R d) : |
| 51 | GlobalBound R[X] (d + 1) := by |
| 52 | intro M |
| 53 | let : Module R M := Module.compHom M (algebraMap R R[X]) |
| 54 | let : IsScalarTower R R[X] M := IsScalarTower.of_algebraMap_smul (by intros; rfl) |
| 55 | let : HasProjectiveDimensionLE (ModuleCat.of R M) d := h (ModuleCat.of R M) |
| 56 | exact polynomial_module_bound R M d |
| 57 | |
| 58 | theorem field_bound (K : Type u) [Field K] : GlobalBound K 0 := by |
| 59 | intro M |
| 60 | exact (projective_iff_hasProjectiveDimensionLE_zero M).mp inferInstance |
| 61 | |
| 62 | theorem mvPolynomial_bound (K : Type u) [Field K] (n : ℕ) : |
| 63 | GlobalBound (MvPolynomial (Fin n) K) n := by |
| 64 | induction n with |
| 65 | | zero => |
| 66 | exact bound_of_ringEquiv (MvPolynomial.isEmptyAlgEquiv K (Fin 0)).toRingEquiv.symm |
| 67 | 0 (field_bound K) |
| 68 | | succ n ih => |
| 69 | exact bound_of_ringEquiv (MvPolynomial.finSuccEquiv K n).toRingEquiv.symm |
| 70 | (n + 1) (polynomial_bound (MvPolynomial (Fin n) K) n ih) |
| 71 | |
| 72 | theorem mvPolynomial_bound_of_zero (R : Type u) [CommRing R] |
| 73 | (h : GlobalBound R 0) (n : ℕ) : GlobalBound (MvPolynomial (Fin n) R) n := by |
| 74 | induction n with |
| 75 | | zero => exact bound_of_ringEquiv (MvPolynomial.isEmptyAlgEquiv R (Fin 0)).toRingEquiv.symm 0 h |
| 76 | | succ n ih => |
| 77 | exact bound_of_ringEquiv (MvPolynomial.finSuccEquiv R n).toRingEquiv.symm |
| 78 | (n + 1) (polynomial_bound (MvPolynomial (Fin n) R) n ih) |
| 79 | |
| 80 | end |
| 81 | |
| 82 | end OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Polynomial.DimensionBound |