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.NumberTheory.PadicHodge.IntegralComparison.Projective.ClosedImmersionPurity |
| 2 | import OAI.NumberTheory.PadicHodge.IntegralComparison.Projective.InternalHomCoherence |
| 3 | import OAI.NumberTheory.PadicHodge.IntegralComparison.Affine.LocalExactness |
| 4 | |
| 5 | /-! # Purity Concentration -/ |
| 6 | |
| 7 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.Projective.PurityConcentration |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! Regular defining equations of fixed length concentrate the actual |
| 12 | dual resolution in that degree. Opens disjoint from the closed image |
| 13 | contribute zero cohomology in every degree. -/ |
| 14 | |
| 15 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry _root_.MvPolynomial |
| 16 | open scoped Pointwise |
| 17 | |
| 18 | set_option backward.isDefEq.respectTransparency false |
| 19 | |
| 20 | universe u v |
| 21 | |
| 22 | theorem unit_regular (A : Type u) [CommRing A] : |
| 23 | RingTheory.Sequence.IsWeaklyRegular A ([1] : List A) := by |
| 24 | apply (RingTheory.Sequence.isWeaklyRegular_singleton_iff A 1).mpr |
| 25 | intro x y h |
| 26 | simpa only [one_smul] using h |
| 27 | |
| 28 | theorem unit_quotient_zero (A : Type u) [CommRing A] : |
| 29 | IsZero (ProjectiveResolution.DualPurity.quotient A ([1] : List A)) := by |
| 30 | change IsZero (ModuleCat.of A (A ⧸ (Ideal.ofList ([1] : List A) • (⊤ : Submodule A A)))) |
| 31 | have he : Ideal.ofList ([1] : List A) • (⊤ : Submodule A A) = ⊤ := by simp |
| 32 | rw [he] |
| 33 | exact ModuleCat.isZero_of_subsingleton _ |
| 34 | |
| 35 | variable {R : Type u} [CommRing R] [IsNoetherianRing R] |
| 36 | {σ : Type} [Fintype σ] [LinearOrder σ] |
| 37 | |
| 38 | attribute [local instance] MvPolynomial.gradedAlgebra |
| 39 | |
| 40 | open OAI.NumberTheory.PadicHodge.IntegralComparison.Projective.ClosedImmersionPurity |
| 41 | |
| 42 | variable {X : Scheme.{u}} (f : X ⟶ Proj (homogeneousSubmodule σ R)) [IsClosedImmersion f] |
| 43 | (j : σ) (B b : ℕ) |
| 44 | |
| 45 | omit [LinearOrder σ] in |
| 46 | theorem exactAt_of_unit (U : (Proj (homogeneousSubmodule σ R)).Opens) (hU : IsAffineOpen U) |
| 47 | (i : σ) (hUi : U ≤ AlgebraicGeometry.SheafCohomology.Projective.MvPolynomialClosure.MvPolynomial.coordinateOpen (R := R) i) |
| 48 | (hunit : RingHom.ker (f.app U).hom = ⊤) (n : ℕ) : |
| 49 | (ClosedImmersionPurity.sectionComplex f j B b U).ExactAt n := by |
| 50 | let rs : List Γ(Proj (homogeneousSubmodule σ R), U) := [1] |
| 51 | have hrs : RingHom.ker (f.app U).hom = Ideal.ofList rs := by simpa [rs] using hunit |
| 52 | by_cases hn : n = rs.length |
| 53 | · subst n |
| 54 | rw [HomologicalComplex.exactAt_iff_isZero_homology] |
| 55 | apply (ClosedImmersionPurity.purityIso f j B b U hU i hUi rs (unit_regular _) hrs).isZero_iff.mpr |
| 56 | exact (forget₂ (ModuleCat Γ(Proj (homogeneousSubmodule σ R), U)) AddCommGrpCat).map_isZero |
| 57 | (unit_quotient_zero _) |
| 58 | · exact ClosedImmersionPurity.exactAt f j B b U hU i hUi rs (unit_regular _) hrs n hn |
| 59 | |
| 60 | omit [LinearOrder σ] in |
| 61 | theorem exactAt_of_cover (hb : b ≤ B) {τ : Type v} |
| 62 | (U : τ → (Proj (homogeneousSubmodule σ R)).Opens) (hcover : iSup U = ⊤) |
| 63 | (haffine : ∀ a, IsAffineOpen (U a)) |
| 64 | (hcoordinate : ∀ a, ∃ i : σ, U a ≤ AlgebraicGeometry.SheafCohomology.Projective.MvPolynomialClosure.MvPolynomial.coordinateOpen (R := R) i) (c : ℕ) |
| 65 | (hlocal : ∀ a, RingHom.ker (f.app (U a)).hom = ⊤ ∨ |
| 66 | ∃ rs : List Γ(Proj (homogeneousSubmodule σ R), U a), |
| 67 | RingHom.ker (f.app (U a)).hom = Ideal.ofList rs ∧ |
| 68 | RingTheory.Sequence.IsWeaklyRegular Γ(Proj (homogeneousSubmodule σ R), U a) rs ∧ |
| 69 | rs.length = c) (n : ℕ) (hn : n ≠ c) : |
| 70 | (ClosedImmersionPurity.internalComplex f j B b).ExactAt n := by |
| 71 | let (q : ℕ) : ((ClosedImmersionPurity.internalComplex f j B b).X q).IsQuasicoherent := |
| 72 | InternalHomCoherence.term (ClosedImmersionPurity.directImage f) j B b hb q |
| 73 | apply Affine.LocalExactness.exactAt_of_cover (ClosedImmersionPurity.internalComplex f j B b) U hcover haffine n |
| 74 | intro a |
| 75 | obtain ⟨i, hi⟩ := hcoordinate a |
| 76 | rcases hlocal a with hunit | ⟨rs, hrs, hreg, hlength⟩ |
| 77 | · exact exactAt_of_unit f j B b (U a) (haffine a) i hi hunit n |
| 78 | · exact ClosedImmersionPurity.exactAt f j B b (U a) (haffine a) i hi |
| 79 | rs hreg hrs n (by omega) |
| 80 | |
| 81 | end |
| 82 | |
| 83 | end OAI.NumberTheory.PadicHodge.IntegralComparison.Projective.PurityConcentration |