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.AugmentedCotangent |
| 2 | import Mathlib.RingTheory.RegularLocalRing.Defs |
| 3 | import Mathlib.LinearAlgebra.Dimension.Free |
| 4 | |
| 5 | /-! # Augmented Regular Jet -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.AugmentedRegularJet |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! The first-order algebra of a regular local ring at a rational |
| 12 | point has dimension one greater than the local dimension. -/ |
| 13 | |
| 14 | set_option backward.isDefEq.respectTransparency false |
| 15 | |
| 16 | open OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.AugmentedCotangent |
| 17 | |
| 18 | universe u v |
| 19 | |
| 20 | variable {K : Type u} {R : Type v} [Field K] [CommRing R] [Algebra K R] |
| 21 | (ε : R →ₐ[K] K) |
| 22 | |
| 23 | theorem surjective : Function.Surjective ε := |
| 24 | fun c => ⟨algebraMap K R c, ε.commutes c⟩ |
| 25 | |
| 26 | theorem ideal_eq [IsLocalRing R] : AugmentedCotangent.ideal ε = IsLocalRing.maximalIdeal R := |
| 27 | IsLocalRing.ker_eq_maximalIdeal ε.toRingHom (surjective ε) |
| 28 | |
| 29 | def residueEquiv : (R ⧸ AugmentedCotangent.ideal ε) ≃ₐ[K] K := |
| 30 | Ideal.quotientKerAlgEquivOfSurjective (surjective ε) |
| 31 | |
| 32 | instance cotangent_tower : IsScalarTower K (R ⧸ AugmentedCotangent.ideal ε) (AugmentedCotangent.ideal ε).Cotangent := |
| 33 | IsScalarTower.of_algebraMap_smul fun c x => by |
| 34 | change (algebraMap R (R ⧸ AugmentedCotangent.ideal ε) (algebraMap K R c)) • x = c • x |
| 35 | rw [IsScalarTower.algebraMap_smul (R ⧸ AugmentedCotangent.ideal ε), IsScalarTower.algebraMap_smul R] |
| 36 | |
| 37 | theorem finite_cotangent [IsNoetherianRing R] : Module.Finite K (AugmentedCotangent.ideal ε).Cotangent := by |
| 38 | let : Module.Finite R (AugmentedCotangent.ideal ε).Cotangent := |
| 39 | Module.Finite.of_surjective (AugmentedCotangent.ideal ε).toCotangent (AugmentedCotangent.ideal ε).toCotangent_surjective |
| 40 | let : Module.Finite K (R ⧸ AugmentedCotangent.ideal ε) := |
| 41 | Module.Finite.of_injective (residueEquiv ε).toLinearMap (residueEquiv ε).injective |
| 42 | let : Module.Finite (R ⧸ AugmentedCotangent.ideal ε) (AugmentedCotangent.ideal ε).Cotangent := |
| 43 | Module.Finite.of_restrictScalars_finite R _ _ |
| 44 | exact Module.Finite.trans (R ⧸ AugmentedCotangent.ideal ε) (AugmentedCotangent.ideal ε).Cotangent |
| 45 | |
| 46 | theorem cotangent_dimension [IsRegularLocalRing R] : |
| 47 | (Module.finrank K (AugmentedCotangent.ideal ε).Cotangent : WithBot ℕ∞) = ringKrullDim R := by |
| 48 | let : (AugmentedCotangent.ideal ε).IsMaximal := by rw [ideal_eq]; infer_instance |
| 49 | let : Field (R ⧸ AugmentedCotangent.ideal ε) := Ideal.Quotient.field (AugmentedCotangent.ideal ε) |
| 50 | let : Module.Finite K (R ⧸ AugmentedCotangent.ideal ε) := |
| 51 | Module.Finite.of_injective (residueEquiv ε).toLinearMap (residueEquiv ε).injective |
| 52 | have hf : Module.finrank K (R ⧸ AugmentedCotangent.ideal ε) = 1 := by |
| 53 | rw [(residueEquiv ε).toLinearEquiv.finrank_eq, Module.finrank_self] |
| 54 | have ht := Module.finrank_mul_finrank K (R ⧸ AugmentedCotangent.ideal ε) (AugmentedCotangent.ideal ε).Cotangent |
| 55 | rw [hf, one_mul] at ht |
| 56 | rw [← ht, ideal_eq] |
| 57 | exact (IsRegularLocalRing.iff_finrank_cotangentSpace R).mp inferInstance |
| 58 | |
| 59 | theorem jet_dimension [IsRegularLocalRing R] (m : ℕ) (hd : ringKrullDim R = m) : |
| 60 | Module.finrank K (K × (AugmentedCotangent.ideal ε).Cotangent) = m + 1 := by |
| 61 | let := finite_cotangent ε |
| 62 | have hm : Module.finrank K (AugmentedCotangent.ideal ε).Cotangent = m := by |
| 63 | exact_mod_cast (cotangent_dimension ε).trans hd |
| 64 | rw [Module.finrank_prod, Module.finrank_self, hm, add_comm] |
| 65 | |
| 66 | end |
| 67 | |
| 68 | end OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.AugmentedRegularJet |