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.Regular.LocalTwoParameters |
| 2 | import OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Tor.LocalDimension |
| 3 | import Mathlib.RingTheory.Regular.Category |
| 4 | import Mathlib.RingTheory.TensorProduct.Quotient |
| 5 | |
| 6 | /-! # Local Two Bound -/ |
| 7 | |
| 8 | namespace OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Regular.LocalTwoBound |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! The actual residue field of a two-dimensional regular local domain |
| 13 | has projective dimension at most two, using its regular pair of parameters. -/ |
| 14 | |
| 15 | set_option backward.isDefEq.respectTransparency false |
| 16 | |
| 17 | open _root_.CategoryTheory IsLocalRing |
| 18 | open scoped Pointwise TensorProduct |
| 19 | |
| 20 | universe u |
| 21 | |
| 22 | variable (R : Type u) [CommRing R] |
| 23 | |
| 24 | theorem quotient_bound (M : ModuleCat.{u} R) (r : R) (hr : IsSMulRegular M r) |
| 25 | (d : ℕ) [HasProjectiveDimensionLE M d] : |
| 26 | HasProjectiveDimensionLE (ModuleCat.of R (QuotSMulTop r M)) (d + 1) := by |
| 27 | have hS := IsSMulRegular.smulShortComplex_shortExact (M := M) hr |
| 28 | exact hS.hasProjectiveDimensionLT_X₃ (d + 1) |
| 29 | (inferInstanceAs (HasProjectiveDimensionLT M (d + 1))) |
| 30 | (hasProjectiveDimensionLT_of_ge M (d + 1) (d + 2) (by omega)) |
| 31 | |
| 32 | def quotientPairEquiv (a b : R) : |
| 33 | QuotSMulTop b (R ⧸ Ideal.span {a}) ≃ₗ[R] R ⧸ Ideal.span {a, b} := by |
| 34 | let S := R ⧸ Ideal.span {a} |
| 35 | let e := LinearEquiv.restrictScalars R |
| 36 | (Algebra.TensorProduct.quotIdealMapEquivTensorQuot S (Ideal.span {b})).symm.toLinearEquiv |
| 37 | exact (QuotSMulTop.equivTensorQuot b S).trans |
| 38 | (e.trans |
| 39 | ((DoubleQuot.quotQuotEquivQuotSupₐ R (Ideal.span {a}) (Ideal.span {b})).toLinearEquiv.trans |
| 40 | (Ideal.quotientEquivAlgOfEq R (by |
| 41 | rw [← Ideal.span_union] |
| 42 | rfl)).toLinearEquiv)) |
| 43 | |
| 44 | theorem residue_bound [IsRegularLocalRing R] [IsDomain R] (hd : ringKrullDim R = 2) : |
| 45 | HasProjectiveDimensionLE (ModuleCat.of R (ResidueField R)) 2 := by |
| 46 | obtain ⟨a, b, ha, hm, hb⟩ := LocalTwoParameters.exists_pair R hd |
| 47 | have hI : (a • (⊤ : Submodule R R) : Ideal R) = Ideal.span {a} := by |
| 48 | rw [← Submodule.ideal_span_singleton_smul, smul_eq_mul, Ideal.mul_top] |
| 49 | let e₁ : QuotSMulTop a R ≃ₗ[R] (R ⧸ Ideal.span {a}) := Submodule.quotEquivOfEq _ _ hI |
| 50 | let : HasProjectiveDimensionLE (ModuleCat.of R (QuotSMulTop a R)) 1 := |
| 51 | quotient_bound R (ModuleCat.of R R) a (fun _ _ h => mul_left_cancel₀ ha h) 0 |
| 52 | let : HasProjectiveDimensionLE (ModuleCat.of R (R ⧸ Ideal.span {a})) 1 := |
| 53 | hasProjectiveDimensionLT_of_iso e₁.toModuleIso 2 |
| 54 | let : HasProjectiveDimensionLE |
| 55 | (ModuleCat.of R (QuotSMulTop b (R ⧸ Ideal.span {a}))) 2 := |
| 56 | quotient_bound R (ModuleCat.of R (R ⧸ Ideal.span {a})) b hb 1 |
| 57 | let e := (quotientPairEquiv R a b).trans (Ideal.quotientEquivAlgOfEq R hm.symm).toLinearEquiv |
| 58 | exact hasProjectiveDimensionLT_of_iso e.toModuleIso 3 |
| 59 | |
| 60 | end |
| 61 | |
| 62 | end OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Regular.LocalTwoBound |