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.ProjectiveFinite.CoefficientLocalPurity |
| 2 | import OAI.NumberTheory.PadicHodge.IntegralComparison.Smooth.ClosedCodimension |
| 3 | import OAI.NumberTheory.PadicHodge.IntegralComparison.Closed.ComplementNeighborhood |
| 4 | |
| 5 | /-! # Coefficient Purity -/ |
| 6 | |
| 7 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.ProjectiveFinite.CoefficientPurity |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! The actual dual negative resolution of finite flat coefficients on a |
| 12 | smooth projective closed subscheme is concentrated in its codimension. -/ |
| 13 | |
| 14 | open _root_.CategoryTheory _root_.AlgebraicGeometry _root_.MvPolynomial |
| 15 | |
| 16 | set_option backward.isDefEq.respectTransparency false |
| 17 | |
| 18 | universe u |
| 19 | variable {R : Type u} [CommRing R] [IsNoetherianRing R] |
| 20 | {σ : Type} [Fintype σ] [LinearOrder σ] |
| 21 | attribute [local instance] MvPolynomial.gradedAlgebra |
| 22 | |
| 23 | open OAI.NumberTheory.PadicHodge.IntegralComparison.ProjectiveFinite.CoefficientLocalPurity |
| 24 | |
| 25 | variable {Y X : Scheme.{u}} (f : Y ⟶ X) [IsFinite f] [Flat f] |
| 26 | (i : X ⟶ Proj (homogeneousSubmodule σ R)) [IsClosedImmersion i] |
| 27 | (j : σ) (B b : ℕ) (hb : b ≤ B) (g : ℕ) |
| 28 | [SmoothOfRelativeDimension g (i ≫ AlgebraicGeometry.SheafCohomology.Projective.MvPolynomialClosure.MvPolynomial.homogeneousProjπ)] |
| 29 | |
| 30 | include hb in |
| 31 | omit [LinearOrder σ] in |
| 32 | theorem exactAt (q : ℕ) (hq : q ≠ Fintype.card σ - 1 - g) : |
| 33 | (CoefficientLocalPurity.internalComplex f i j B b).ExactAt q := by |
| 34 | classical |
| 35 | let : LocallyOfFiniteType (AlgebraicGeometry.SheafCohomology.Projective.MvPolynomialClosure.MvPolynomial.homogeneousProjπ (R := R) (σ := σ)) := |
| 36 | AlgebraicGeometry.SheafCohomology.Projective.MvPolynomialClosure.MvPolynomial.homogeneousProjπ_locallyOfFiniteType |
| 37 | let : IsLocallyNoetherian (Proj (homogeneousSubmodule σ R)) := |
| 38 | LocallyOfFiniteType.isLocallyNoetherian (AlgebraicGeometry.SheafCohomology.Projective.MvPolynomialClosure.MvPolynomial.homogeneousProjπ (R := R) (σ := σ)) |
| 39 | let : IsLocallyNoetherian X := LocallyOfFiniteType.isLocallyNoetherian i |
| 40 | let (m : ℕ) : ((CoefficientLocalPurity.internalComplex f i j B b).X m).IsQuasicoherent := |
| 41 | Projective.InternalHomCoherence.term (CoefficientLocalPurity.coefficients f i) j B b hb m |
| 42 | have hlocal (z : Proj (homogeneousSubmodule σ R)) : |
| 43 | ∃ (V : (Proj (homogeneousSubmodule σ R)).Opens) (_ : IsAffineOpen V), z ∈ V ∧ |
| 44 | ∃ k : σ, V ≤ AlgebraicGeometry.SheafCohomology.Projective.MvPolynomialClosure.MvPolynomial.coordinateOpen (R := R) k ∧ |
| 45 | (RingHom.ker (i.app V).hom = ⊤ ∨ |
| 46 | ∃ rs : List Γ(Proj (homogeneousSubmodule σ R), V), |
| 47 | RingHom.ker (i.app V).hom = Ideal.ofList rs ∧ |
| 48 | RingTheory.Sequence.IsWeaklyRegular Γ(Proj (homogeneousSubmodule σ R), V) rs ∧ |
| 49 | rs.length = Fintype.card σ - 1 - g) := by |
| 50 | by_cases hz : z ∈ Set.range i |
| 51 | · obtain ⟨x, rfl⟩ := hz |
| 52 | obtain ⟨k, V, hV, hVk, hxV, rs, hrs, hreg, hlen⟩ := |
| 53 | Smooth.ClosedCodimension.projective_neighborhood i g x |
| 54 | exact ⟨V, hV, hxV, k, hVk, Or.inr ⟨rs, hrs, hreg.toIsWeaklyRegular, hlen⟩⟩ |
| 55 | · have hz' : z ∈ ⨆ k : σ, AlgebraicGeometry.SheafCohomology.Projective.MvPolynomialClosure.MvPolynomial.coordinateOpen (R := R) k := by |
| 56 | rw [AlgebraicGeometry.SheafCohomology.Projective.MvPolynomialClosure.MvPolynomial.iSup_coordinateOpen_eq_top] |
| 57 | trivial |
| 58 | obtain ⟨k, hk⟩ := TopologicalSpace.Opens.mem_iSup.mp hz' |
| 59 | obtain ⟨V, hV, hVk, hzV, hunit⟩ := |
| 60 | Closed.ComplementNeighborhood.exists_affine i (AlgebraicGeometry.SheafCohomology.Projective.MvPolynomialClosure.MvPolynomial.coordinateOpen (R := R) k) z hk hz |
| 61 | exact ⟨V, hV, hzV, k, hVk, Or.inl hunit⟩ |
| 62 | choose U hAffine hmem k hk heq using hlocal |
| 63 | have hcover : iSup U = ⊤ := by |
| 64 | apply top_unique |
| 65 | intro z _ |
| 66 | exact TopologicalSpace.Opens.mem_iSup.mpr ⟨z, hmem z⟩ |
| 67 | apply Affine.LocalExactness.exactAt_of_cover (CoefficientLocalPurity.internalComplex f i j B b) U hcover hAffine q |
| 68 | intro z |
| 69 | rcases heq z with hunit | ⟨rs, hrs, hreg, hlength⟩ |
| 70 | · exact CoefficientLocalPurity.exactAt_of_unit f i j B b (U z) (hAffine z) (k z) (hk z) hunit q |
| 71 | · exact CoefficientLocalPurity.exactAt f i j B b |
| 72 | (U z) (hAffine z) (k z) (hk z) rs hreg hrs q (by omega) |
| 73 | |
| 74 | end |
| 75 | |
| 76 | end OAI.NumberTheory.PadicHodge.IntegralComparison.ProjectiveFinite.CoefficientPurity |