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.AbelianModuli.HilbertConstruction.KoszulCokernelNonzeroStalks |
| 2 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Finite.SupportStalkEulerBound |
| 3 | |
| 4 | /-! # Euler Point Bound -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.FiniteIntersection.EulerPointBound |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! A finite configuration in the common zeros of g sections on a |
| 11 | proper smooth g-dimensional scheme is bounded by the actual mixed |
| 12 | Euler difference. The proof counts nonzero cokernel stalks, so no |
| 13 | reducedness or transverse-intersection hypothesis is imposed. -/ |
| 14 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry |
| 15 | universe u v |
| 16 | set_option backward.isDefEq.respectTransparency false |
| 17 | set_option backward.isDefEq.respectTransparency.types false |
| 18 | |
| 19 | local instance pointBoundLineBundle_quasicoherent {X : Scheme.{u}} (L : Line.Bundles.LineBundle X) : |
| 20 | L.sheaf.IsQuasicoherent := L.isQuasicoherent |
| 21 | local instance pointBoundLineBundle_finiteType {X : Scheme.{u}} (L : Line.Bundles.LineBundle X) : |
| 22 | L.sheaf.IsFiniteType := L.isFiniteType |
| 23 | |
| 24 | theorem finiteIntersection_card_le_mixedEulerDifference |
| 25 | {K : Type u} [Field K] [IsAlgClosed K] {X : Scheme.{u}} |
| 26 | (p : X ⟶ Spec (.of K)) [IsProper p] (g : ℕ) (hg : 0 < g) [SmoothOfRelativeDimension g p] |
| 27 | (M : Line.Bundles.LineBundle X) (bs : List (LineBundleKoszulComplex.LineBundleSection X)) (hlen : bs.length = g) |
| 28 | (hf : (MixedKoszulGeometricSupport.mixedSectionZeroSet bs).Finite) (S : Finset X) |
| 29 | (hS : ∀ x ∈ S, x ∈ MixedKoszulGeometricSupport.mixedSectionZeroSet bs) : |
| 30 | (S.card : ℤ) ≤ MixedKoszulEulerDifference.mixedLineBundleEulerDifference X bs (LineBundle.EulerShifts.lineBundleClassEuler p) (Line.Bundles.LineBundle.classOf M) := by |
| 31 | have := (MixedKoszulCokernelEuler.mixedKoszulCokernel_coherent M.sheaf bs).1 |
| 32 | have := (MixedKoszulCokernelEuler.mixedKoszulCokernel_coherent M.sheaf bs).2 |
| 33 | have h := HilbertConstruction.Finite.SupportStalkEulerBound.finiteSupport_nonzeroStalk_count_le_euler p (MixedKoszulCokernelEuler.mixedKoszulCokernel M.sheaf bs) |
| 34 | (MixedKoszulCokernelSupport.mixedKoszulCokernel_support_finite M.sheaf bs hf) S |
| 35 | (fun x hx => KoszulCokernelNonzeroStalks.mixedKoszulCokernel_stalk_nonzero M bs x (hS x hx)) |
| 36 | rwa [MixedKoszulCokernelEuler.smoothMixedKoszulCokernel_euler p g hg M bs hlen hf] at h |
| 37 | |
| 38 | theorem finiteIntersection_configuration_card_le_mixedEulerDifference |
| 39 | {K : Type u} [Field K] [IsAlgClosed K] {X : Scheme.{u}} |
| 40 | (p : X ⟶ Spec (.of K)) [IsProper p] (g : ℕ) (hg : 0 < g) [SmoothOfRelativeDimension g p] |
| 41 | (M : Line.Bundles.LineBundle X) (bs : List (LineBundleKoszulComplex.LineBundleSection X)) (hlen : bs.length = g) |
| 42 | (hf : (MixedKoszulGeometricSupport.mixedSectionZeroSet bs).Finite) {ι : Type v} [Finite ι] |
| 43 | (x : ι → X) (hx : Function.Injective x) (hzero : ∀ i, x i ∈ MixedKoszulGeometricSupport.mixedSectionZeroSet bs) : |
| 44 | (Nat.card ι : ℤ) ≤ MixedKoszulEulerDifference.mixedLineBundleEulerDifference X bs (LineBundle.EulerShifts.lineBundleClassEuler p) (Line.Bundles.LineBundle.classOf M) := by |
| 45 | classical |
| 46 | let : Fintype ι := Fintype.ofFinite ι |
| 47 | let S : Finset X := Finset.univ.image x |
| 48 | have hcard : S.card = Nat.card ι := by |
| 49 | dsimp only [S] |
| 50 | rw [Finset.card_image_of_injective _ hx, Finset.card_univ, Nat.card_eq_fintype_card] |
| 51 | have h := finiteIntersection_card_le_mixedEulerDifference p g hg M bs hlen hf S (by |
| 52 | intro y hy |
| 53 | obtain ⟨i, _, rfl⟩ := Finset.mem_image.mp hy |
| 54 | exact hzero i) |
| 55 | simpa only [hcard] using h |
| 56 | |
| 57 | end |
| 58 | |
| 59 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.FiniteIntersection.EulerPointBound |