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.Normalization.Length |
| 2 | import Mathlib.Algebra.Module.Torsion.Basic |
| 3 | import Mathlib.RingTheory.Localization.Integer |
| 4 | |
| 5 | /-! # Colength -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Finite.Colength |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! |
| 12 | # ProjectionFormula: finite colength of finite birational extensions in dimension one |
| 13 | |
| 14 | Denominators in the common fraction field make the cokernel torsion. |
| 15 | Finite generation gives a common nonzero annihilator, whose quotient ring |
| 16 | has dimension zero. This discharges the finite-colength condition used in |
| 17 | the normalization-length comparison. |
| 18 | -/ |
| 19 | |
| 20 | open scoped nonZeroDivisors |
| 21 | |
| 22 | theorem length_ne_top_of_finite_torsion |
| 23 | (R M : Type*) [CommRing R] [IsNoetherianRing R] [Ring.KrullDimLE 1 R] |
| 24 | [AddCommGroup M] [Module R M] [Module.Finite R M] |
| 25 | (ht : Module.IsTorsion R M) : Module.length R M ≠ ⊤ := by |
| 26 | obtain ⟨a, ha, hane⟩ := Submodule.annihilator_top_inter_nonZeroDivisors ht |
| 27 | have hkill : Module.IsTorsionBy R M a := fun x => |
| 28 | Submodule.mem_annihilator.mp ha x (Submodule.mem_top) |
| 29 | have hI : Module.IsTorsionBySet R M (Ideal.span {a}) := |
| 30 | (Module.isTorsionBySet_span_singleton_iff a).mpr hkill |
| 31 | let : Module (R ⧸ Ideal.span {a}) M := hI.module |
| 32 | let : IsScalarTower R (R ⧸ Ideal.span {a}) M := hI.isScalarTower |
| 33 | have hlen := isFiniteLength_quotient_span_singleton R hane |
| 34 | obtain ⟨hnoeth, hart⟩ := isFiniteLength_iff_isNoetherian_isArtinian.mp hlen |
| 35 | let : IsArtinian R (R ⧸ Ideal.span {a}) := hart |
| 36 | let : IsArtinianRing (R ⧸ Ideal.span {a}) := isArtinian_of_tower R inferInstance |
| 37 | let : Module.Finite (R ⧸ Ideal.span {a}) M := |
| 38 | Module.Finite.of_restrictScalars_finite R (R ⧸ Ideal.span {a}) M |
| 39 | rw [Module.length_eq_of_surjective (R := R ⧸ Ideal.span {a}) (S := R) |
| 40 | (M := M) (Ideal.Quotient.mk_surjective)] |
| 41 | exact Module.length_ne_top |
| 42 | |
| 43 | theorem birational_quotient_isTorsion |
| 44 | (R S K : Type*) [CommRing R] [CommRing S] [IsDomain R] [IsDomain S] [Field K] |
| 45 | [Algebra R S] [Algebra R K] [Algebra S K] [IsScalarTower R S K] |
| 46 | [IsFractionRing R K] [IsFractionRing S K] : |
| 47 | Module.IsTorsion R (S ⧸ (Algebra.linearMap R S).range) := by |
| 48 | intro x |
| 49 | obtain ⟨s, rfl⟩ := (Algebra.linearMap R S).range.mkQ_surjective x |
| 50 | obtain ⟨a, b, hb⟩ := IsLocalization.exists_integer_multiple R⁰ (algebraMap S K s) |
| 51 | refine ⟨a, ?_⟩ |
| 52 | change (a : R) • (Submodule.Quotient.mk s : S ⧸ (Algebra.linearMap R S).range) = 0 |
| 53 | rw [← Submodule.Quotient.mk_smul, Submodule.Quotient.mk_eq_zero] |
| 54 | refine ⟨b, ?_⟩ |
| 55 | apply IsFractionRing.injective S K |
| 56 | change algebraMap S K (algebraMap R S b) = |
| 57 | algebraMap S K ((a : R) • s) |
| 58 | rw [Algebra.smul_def, map_mul, ← IsScalarTower.algebraMap_apply, |
| 59 | ← IsScalarTower.algebraMap_apply] |
| 60 | simpa only [Algebra.smul_def] using hb |
| 61 | |
| 62 | /-- A finite extension inside the same fraction field has finite colength |
| 63 | over a one-dimensional Noetherian domain. -/ |
| 64 | theorem length_birational_quotient_ne_top |
| 65 | (R S K : Type*) [CommRing R] [CommRing S] [IsDomain R] [IsDomain S] [Field K] |
| 66 | [IsNoetherianRing R] [Ring.KrullDimLE 1 R] |
| 67 | [Algebra R S] [Module.Finite R S] |
| 68 | [Algebra R K] [Algebra S K] [IsScalarTower R S K] |
| 69 | [IsFractionRing R K] [IsFractionRing S K] : |
| 70 | Module.length R (S ⧸ (Algebra.linearMap R S).range) ≠ ⊤ := |
| 71 | length_ne_top_of_finite_torsion R _ (birational_quotient_isTorsion R S K) |
| 72 | |
| 73 | /-- The normalization-length comparison with finite colength discharged by |
| 74 | the actual common fraction field and module finiteness. -/ |
| 75 | theorem ord_eq_length_birational_extension |
| 76 | (R S K : Type*) [CommRing R] [CommRing S] [IsDomain R] [IsDomain S] [Field K] |
| 77 | [IsNoetherianRing R] [Ring.KrullDimLE 1 R] |
| 78 | [Algebra R S] [Module.Finite R S] |
| 79 | [Algebra R K] [Algebra S K] [IsScalarTower R S K] |
| 80 | [IsFractionRing R K] [IsFractionRing S K] |
| 81 | (a : R) (ha : a ≠ 0) : |
| 82 | Ring.ord R a = Module.length R (S ⧸ Ideal.span {algebraMap R S a}) := by |
| 83 | have hi : Function.Injective (algebraMap R S) := by |
| 84 | apply Function.Injective.of_comp (f := algebraMap S K) |
| 85 | simpa only [← RingHom.coe_comp, ← IsScalarTower.algebraMap_eq] using |
| 86 | IsFractionRing.injective R K |
| 87 | exact Normalization.Length.ord_eq_length_extension hi |
| 88 | (length_birational_quotient_ne_top R S K) a ((map_ne_zero_iff _ hi).mpr ha) |
| 89 | |
| 90 | end |
| 91 | |
| 92 | end OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Finite.Colength |