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.RepresentationTheory.Theta.Geometric.UnramifiedJacobianCriterion |
| 2 | import Mathlib.LinearAlgebra.Dimension.Constructions |
| 3 | |
| 4 | /-! # Cotangent Relation Bound -/ |
| 5 | |
| 6 | namespace OAI.RepresentationTheory.Theta.Geometric.CotangentRelationBound |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! A finite set of original ideal generators bounds the residue |
| 11 | cotangent dimension. For an unramified quotient this yields smoothness |
| 12 | when there are no more equations than ambient relative coordinates. -/ |
| 13 | |
| 14 | open scoped TensorProduct |
| 15 | open KaehlerDifferential |
| 16 | |
| 17 | variable {R S : Type*} [CommRing R] [CommRing S] [Algebra R S] |
| 18 | [IsLocalRing S] (P : Algebra.Extension R S) |
| 19 | |
| 20 | theorem cotangent_residue_finrank_le_generators {n : ℕ} (r : Fin n → P.Ring) |
| 21 | (hr : Ideal.span (Set.range r) = P.ker) : |
| 22 | Module.finrank (IsLocalRing.ResidueField S) |
| 23 | (IsLocalRing.ResidueField S ⊗[S] P.Cotangent) ≤ n := by |
| 24 | let v : Fin n → P.Cotangent := fun i => Algebra.Extension.Cotangent.mk |
| 25 | ⟨r i, hr.le (Ideal.subset_span ⟨i, rfl⟩)⟩ |
| 26 | let f := Finsupp.linearCombination S v |
| 27 | have hf : Function.Surjective f := by |
| 28 | rw [← LinearMap.range_eq_top, Finsupp.range_linearCombination] |
| 29 | exact Algebra.Extension.Cotangent.span_eq_top_of_span_eq_ker r hr |
| 30 | have ht : Function.Surjective (f.baseChange (IsLocalRing.ResidueField S)) := |
| 31 | LinearMap.lTensor_surjective (IsLocalRing.ResidueField S) hf |
| 32 | have h := LinearMap.finrank_le_finrank_of_surjective ht |
| 33 | change Module.finrank (IsLocalRing.ResidueField S) |
| 34 | (IsLocalRing.ResidueField S ⊗[S] P.Cotangent) ≤ |
| 35 | Module.finrank (IsLocalRing.ResidueField S) |
| 36 | (IsLocalRing.ResidueField S ⊗[S] (Fin n →₀ S)) at h |
| 37 | simpa only [Module.finrank_baseChange, Module.finrank_finsupp_self, Fintype.card_fin] using h |
| 38 | |
| 39 | variable [Algebra.FormallySmooth R P.Ring] |
| 40 | [Module.Free P.Ring Ω[P.Ring⁄R]] [Module.Finite P.Ring Ω[P.Ring⁄R]] |
| 41 | [Algebra.FormallyUnramified R S] |
| 42 | |
| 43 | omit [Algebra.FormallySmooth R P.Ring] [Module.Finite P.Ring Ω[P.Ring⁄R]] |
| 44 | [Algebra.FormallyUnramified R S] in |
| 45 | theorem cotangentSpace_residue_finrank : |
| 46 | Module.finrank (IsLocalRing.ResidueField S) |
| 47 | (IsLocalRing.ResidueField S ⊗[S] P.CotangentSpace) = |
| 48 | Module.finrank P.Ring Ω[P.Ring⁄R] := by |
| 49 | have : Nontrivial P.Ring := RingHom.domain_nontrivial (algebraMap P.Ring S) |
| 50 | rw [Module.finrank_baseChange] |
| 51 | change Module.finrank S (S ⊗[P.Ring] Ω[P.Ring⁄R]) = _ |
| 52 | rw [Module.finrank_baseChange] |
| 53 | |
| 54 | include P in |
| 55 | theorem formallySmooth_of_unramified_few_equations {n : ℕ} (r : Fin n → P.Ring) |
| 56 | (hr : Ideal.span (Set.range r) = P.ker) |
| 57 | (hn : n ≤ Module.finrank (IsLocalRing.ResidueField S) |
| 58 | (IsLocalRing.ResidueField S ⊗[S] P.CotangentSpace)) : |
| 59 | Algebra.FormallySmooth R S := by |
| 60 | have hI : P.ker.FG := hr ▸ Submodule.fg_span (Set.finite_range r) |
| 61 | exact UnramifiedJacobianCriterion.formallySmooth_of_unramified_cotangent_bound P hI |
| 62 | ((cotangent_residue_finrank_le_generators P r hr).trans hn) |
| 63 | |
| 64 | include P in |
| 65 | theorem formallySmooth_of_unramified_ambient_rank {n : ℕ} (r : Fin n → P.Ring) |
| 66 | (hr : Ideal.span (Set.range r) = P.ker) |
| 67 | (hn : n ≤ Module.finrank P.Ring Ω[P.Ring⁄R]) : Algebra.FormallySmooth R S := |
| 68 | formallySmooth_of_unramified_few_equations P r hr |
| 69 | (hn.trans_eq (cotangentSpace_residue_finrank P).symm) |
| 70 | |
| 71 | end |
| 72 | |
| 73 | end OAI.RepresentationTheory.Theta.Geometric.CotangentRelationBound |