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.AugmentedRegularJet |
| 2 | import OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.JetProduct |
| 3 | |
| 4 | /-! # Jet Ideal Generators -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.JetIdealGenerators |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! A spanning family of first-order data produces generators of |
| 11 | the maximal ideal after subtracting its values along a chosen nonzero coordinate. -/ |
| 12 | |
| 13 | set_option backward.isDefEq.respectTransparency false |
| 14 | |
| 15 | open OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.AugmentedCotangent |
| 16 | |
| 17 | universe u v w |
| 18 | |
| 19 | variable {K : Type u} {R : Type v} [Field K] [CommRing R] [Algebra K R] |
| 20 | (ε : R →ₐ[K] K) (r : R) |
| 21 | |
| 22 | def centered : R →ₗ[K] AugmentedCotangent.ideal ε := |
| 23 | ε r • AugmentedCotangent.center ε - LinearMap.smulRight ε.toLinearMap (AugmentedCotangent.center ε r) |
| 24 | |
| 25 | theorem centered_val (s : R) : |
| 26 | (centered ε r s).val = ε r • s - ε s • r := by |
| 27 | change ε r • (s - algebraMap K R (ε s)) - ε s • (r - algebraMap K R (ε r)) = _ |
| 28 | simp only [Algebra.smul_def] |
| 29 | ring |
| 30 | |
| 31 | def cotangentMap : (K × (AugmentedCotangent.ideal ε).Cotangent) →ₗ[K] (AugmentedCotangent.ideal ε).Cotangent := |
| 32 | ε r • LinearMap.snd K K (AugmentedCotangent.ideal ε).Cotangent - |
| 33 | LinearMap.smulRight (LinearMap.fst K K (AugmentedCotangent.ideal ε).Cotangent) (AugmentedCotangent.differential ε r) |
| 34 | |
| 35 | theorem cotangentMap_jet (s : R) : |
| 36 | cotangentMap ε r (AugmentedCotangent.jet ε s) = (AugmentedCotangent.ideal ε).toCotangent (centered ε r s) := by |
| 37 | change ε r • (AugmentedCotangent.ideal ε).toCotangent (AugmentedCotangent.center ε s) - ε s • (AugmentedCotangent.ideal ε).toCotangent (AugmentedCotangent.center ε r) = _ |
| 38 | exact (((AugmentedCotangent.ideal ε).toCotangent.restrictScalars K).map_sub |
| 39 | (ε r • AugmentedCotangent.center ε s) (ε s • AugmentedCotangent.center ε r)).symm |
| 40 | |
| 41 | theorem cotangentMap_surjective (hr : ε r ≠ 0) : Function.Surjective (cotangentMap ε r) := by |
| 42 | intro v |
| 43 | refine ⟨(0, (ε r)⁻¹ • v), ?_⟩ |
| 44 | change ε r • ((ε r)⁻¹ • v) - (0 : K) • AugmentedCotangent.differential ε r = v |
| 45 | simp [smul_smul, hr] |
| 46 | |
| 47 | theorem span_cotangent {ι : Type w} (s : ι → R) (hr : ε r ≠ 0) |
| 48 | (hs : Submodule.span K (Set.range (fun a => AugmentedCotangent.jet ε (s a))) = ⊤) : |
| 49 | Submodule.span K (Set.range (fun a => (AugmentedCotangent.ideal ε).toCotangent (centered ε r (s a)))) = ⊤ := by |
| 50 | have h := congrArg (Submodule.map (cotangentMap ε r)) hs |
| 51 | rw [Submodule.map_span, Submodule.map_top, |
| 52 | LinearMap.range_eq_top.mpr (cotangentMap_surjective ε r hr)] at h |
| 53 | simpa only [← Set.range_comp, Function.comp_def, cotangentMap_jet] using h |
| 54 | |
| 55 | theorem map_top_iff [IsNoetherianRing R] [IsLocalRing R] |
| 56 | (I : Ideal R) (hI : I = IsLocalRing.maximalIdeal R) (M : Submodule R I) : |
| 57 | M.map I.toCotangent = ⊤ ↔ M = ⊤ := by |
| 58 | subst I |
| 59 | exact IsLocalRing.CotangentSpace.map_eq_top_iff |
| 60 | |
| 61 | theorem span_maximalIdeal [IsNoetherianRing R] [IsLocalRing R] |
| 62 | {ι : Type w} (s : ι → R) (hr : ε r ≠ 0) |
| 63 | (hs : Submodule.span K (Set.range (fun a => AugmentedCotangent.jet ε (s a))) = ⊤) : |
| 64 | Ideal.span (Set.range (fun a => ε r • s a - ε (s a) • r)) = IsLocalRing.maximalIdeal R := by |
| 65 | let M := Submodule.span R (Set.range (fun a => centered ε r (s a))) |
| 66 | have hM : M.map (AugmentedCotangent.ideal ε).toCotangent = ⊤ := by |
| 67 | apply (Submodule.restrictScalars_eq_top_iff K R (AugmentedCotangent.ideal ε).Cotangent).mp |
| 68 | rw [← top_le_iff, ← span_cotangent ε r s hr hs] |
| 69 | apply Submodule.span_le.mpr |
| 70 | rintro _ ⟨a, rfl⟩ |
| 71 | exact Submodule.mem_map_of_mem (Submodule.subset_span ⟨a, rfl⟩) |
| 72 | have htop := (map_top_iff (AugmentedCotangent.ideal ε) (AugmentedRegularJet.ideal_eq ε) M).mp hM |
| 73 | have h := congrArg (Submodule.map (AugmentedCotangent.ideal ε).subtype) htop |
| 74 | rw [Submodule.map_span, Submodule.map_top, Submodule.range_subtype] at h |
| 75 | rw [← AugmentedRegularJet.ideal_eq ε] |
| 76 | simpa only [← Set.range_comp, Function.comp_def, Submodule.subtype_apply, centered_val] using h |
| 77 | |
| 78 | end |
| 79 | |
| 80 | end OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.JetIdealGenerators |