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 Mathlib.RingTheory.Smooth.Local |
| 2 | import Mathlib.RingTheory.Unramified.Basic |
| 3 | import Mathlib.LinearAlgebra.FiniteDimensional.Lemmas |
| 4 | |
| 5 | /-! # Unramified Jacobian Criterion -/ |
| 6 | |
| 7 | namespace OAI.RepresentationTheory.Theta.Geometric.UnramifiedJacobianCriterion |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! For an unramified quotient of a smooth local presentation, a bound |
| 12 | on the number of cotangent relations forces the Jacobian to be invertible |
| 13 | on the residue field and hence gives formal smoothness. -/ |
| 14 | |
| 15 | open scoped TensorProduct |
| 16 | open KaehlerDifferential |
| 17 | |
| 18 | variable {R S : Type*} [CommRing R] [CommRing S] [Algebra R S] |
| 19 | (P : Algebra.Extension R S) |
| 20 | |
| 21 | theorem cotangentComplex_surjective_of_unramified [Algebra.FormallyUnramified R S] : |
| 22 | Function.Surjective P.cotangentComplex := by |
| 23 | intro x |
| 24 | exact (P.exact_cotangentComplex_toKaehler x).mp (Subsingleton.elim _ _) |
| 25 | |
| 26 | variable [IsLocalRing S] [Algebra.FormallySmooth R P.Ring] |
| 27 | [Module.Free P.Ring Ω[P.Ring⁄R]] [Module.Finite P.Ring Ω[P.Ring⁄R]] |
| 28 | [Algebra.FormallyUnramified R S] |
| 29 | |
| 30 | include P in |
| 31 | theorem formallySmooth_of_unramified_cotangent_bound (hI : P.ker.FG) |
| 32 | (hdim : Module.finrank (IsLocalRing.ResidueField S) |
| 33 | (IsLocalRing.ResidueField S ⊗[S] P.Cotangent) ≤ |
| 34 | Module.finrank (IsLocalRing.ResidueField S) |
| 35 | (IsLocalRing.ResidueField S ⊗[S] P.CotangentSpace)) : |
| 36 | Algebra.FormallySmooth R S := by |
| 37 | have : Module.Finite S P.Cotangent := Algebra.Extension.Cotangent.finite hI |
| 38 | let f := P.cotangentComplex.baseChange (IsLocalRing.ResidueField S) |
| 39 | have hs : Function.Surjective f := |
| 40 | LinearMap.lTensor_surjective _ (cotangentComplex_surjective_of_unramified P) |
| 41 | have heq : Module.finrank (IsLocalRing.ResidueField S) |
| 42 | (IsLocalRing.ResidueField S ⊗[S] P.Cotangent) = |
| 43 | Module.finrank (IsLocalRing.ResidueField S) |
| 44 | (IsLocalRing.ResidueField S ⊗[S] P.CotangentSpace) := |
| 45 | le_antisymm hdim (LinearMap.finrank_le_finrank_of_surjective hs) |
| 46 | exact (Algebra.FormallySmooth.iff_injective_lTensor_residueField P hI).mpr |
| 47 | ((LinearMap.injective_iff_surjective_of_finrank_eq_finrank heq).mpr hs) |
| 48 | |
| 49 | end |
| 50 | |
| 51 | end OAI.RepresentationTheory.Theta.Geometric.UnramifiedJacobianCriterion |