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.HilbertScheme.Presentations.CanonicalFiberPolynomial |
| 2 | import OAI.AlgebraicGeometry.HilbertScheme.Presentations.FiberPolynomialLocality |
| 3 | import Mathlib.Topology.Irreducible |
| 4 | |
| 5 | /-! # Hilbert Polynomial Agreement -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.PELModuli.IntegralModel.HilbertPolynomialAgreement |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! Actual canonical fiber polynomials agree on nonempty overlaps. |
| 12 | Over an irreducible test scheme, their local existence gives one global |
| 13 | fiber polynomial, with no polynomial constancy premise. -/ |
| 14 | |
| 15 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry |
| 16 | |
| 17 | open OAI.AlgebraicGeometry.HilbertScheme.Presentations.CanonicalFiberPolynomial.GradedHilbert |
| 18 | |
| 19 | theorem canonicalFiberPolynomial_unique |
| 20 | {S : Scheme.{0}} {n : ℕ} {T : Over S} [Nonempty T.left] |
| 21 | (F : HilbertScheme.Presentations.Hilbert.Functor.Family (HilbertScheme.Presentations.Intrinsic.PolynomialAmbient.GradedHilbert.relativeProjectiveOver S n) T) {P Q : Polynomial ℚ} |
| 22 | (hP : HilbertScheme.Presentations.CanonicalFiberPolynomial.GradedHilbert.CanonicalFiberHilbertPolynomial F P) (hQ : HilbertScheme.Presentations.CanonicalFiberPolynomial.GradedHilbert.CanonicalFiberHilbertPolynomial F Q) : P = Q := by |
| 23 | let x : T.left := Classical.choice inferInstance |
| 24 | exact HilbertScheme.Presentations.Hilbert.Polynomial.GradedHilbert.hilbertPolynomial_unique (hP (T.left.residueField x) (T.left.fromSpecResidueField x)) |
| 25 | (hQ (T.left.residueField x) (T.left.fromSpecResidueField x)) |
| 26 | |
| 27 | theorem open_overlap_nonempty |
| 28 | {S : Scheme.{0}} {U V T : Over S} [PreirreducibleSpace T.left] |
| 29 | [Nonempty U.left] [Nonempty V.left] (f : U ⟶ T) (g : V ⟶ T) |
| 30 | [IsOpenImmersion f.left] [IsOpenImmersion g.left] : Nonempty (pullback f g).left := by |
| 31 | obtain ⟨x, ⟨a, ha⟩, ⟨b, hb⟩⟩ := nonempty_preirreducible_inter |
| 32 | f.left.isOpenEmbedding.isOpenMap.isOpen_range g.left.isOpenEmbedding.isOpenMap.isOpen_range |
| 33 | (Set.range_nonempty f.left) (Set.range_nonempty g.left) |
| 34 | obtain ⟨z, _, _⟩ := Scheme.exists_preimage_of_isPullback |
| 35 | ((IsPullback.of_hasPullback f g).map (Over.forget S)) a b (ha.trans hb.symm) |
| 36 | exact ⟨z⟩ |
| 37 | |
| 38 | theorem canonicalFiberPolynomial_open_agreement |
| 39 | {S : Scheme.{0}} {n : ℕ} {U V T : Over S} [PreirreducibleSpace T.left] |
| 40 | [Nonempty U.left] [Nonempty V.left] (f : U ⟶ T) (g : V ⟶ T) |
| 41 | [IsOpenImmersion f.left] [IsOpenImmersion g.left] |
| 42 | (F : HilbertScheme.Presentations.Hilbert.Functor.Family (HilbertScheme.Presentations.Intrinsic.PolynomialAmbient.GradedHilbert.relativeProjectiveOver S n) T) {P Q : Polynomial ℚ} |
| 43 | (hP : HilbertScheme.Presentations.CanonicalFiberPolynomial.GradedHilbert.CanonicalFiberHilbertPolynomial (HilbertScheme.Presentations.Hilbert.Functor.pullbackFamily _ f F) P) |
| 44 | (hQ : HilbertScheme.Presentations.CanonicalFiberPolynomial.GradedHilbert.CanonicalFiberHilbertPolynomial (HilbertScheme.Presentations.Hilbert.Functor.pullbackFamily _ g F) Q) : P = Q := by |
| 45 | have : Nonempty (pullback f g).left := open_overlap_nonempty f g |
| 46 | have hp := hP.pullback (pullback.fst f g) |
| 47 | have hq := hQ.pullback (pullback.snd f g) |
| 48 | rw [← HilbertScheme.Presentations.Hilbert.Functor.pullbackFamily_comp] at hp hq |
| 49 | rw [pullback.condition] at hp |
| 50 | exact canonicalFiberPolynomial_unique _ hp hq |
| 51 | |
| 52 | theorem exists_fiberPolynomial_of_irreducible_open_cover |
| 53 | {S : Scheme.{0}} {n : ℕ} {T : Over S} [IrreducibleSpace T.left] |
| 54 | {ι : Type} (U : ι → Over S) (f : ∀ i, U i ⟶ T) |
| 55 | [∀ i, Nonempty (U i).left] [∀ i, IsOpenImmersion (f i).left] |
| 56 | (hcover : ∀ t : T.left, ∃ i, ∃ y : (U i).left, (f i).left y = t) |
| 57 | (F : HilbertScheme.Presentations.Hilbert.Functor.Family (HilbertScheme.Presentations.Intrinsic.PolynomialAmbient.GradedHilbert.relativeProjectiveOver S n) T) |
| 58 | (hlocal : ∀ i, ∃ P : Polynomial ℚ, HilbertScheme.Presentations.CanonicalFiberPolynomial.GradedHilbert.CanonicalFiberHilbertPolynomial (HilbertScheme.Presentations.Hilbert.Functor.pullbackFamily _ (f i) F) P) : |
| 59 | ∃ P : Polynomial ℚ, HilbertScheme.Presentations.Has.Core.HasFiberHilbertPolynomial (HilbertScheme.Presentations.Intrinsic.ProjectivePresentation.GradedHilbert.canonicalProjectivePresentation S n) F P := by |
| 60 | choose P hP using hlocal |
| 61 | obtain ⟨i₀, _, _⟩ := hcover (Classical.choice (inferInstance : Nonempty T.left)) |
| 62 | refine ⟨P i₀, HilbertScheme.Presentations.FiberPolynomialLocality.Core.hasFiberHilbertPolynomial_of_openCover |
| 63 | (HilbertScheme.Presentations.Intrinsic.ProjectivePresentation.GradedHilbert.canonicalProjectivePresentation S n) U f hcover F (P i₀) ?_⟩ |
| 64 | intro i |
| 65 | have he := canonicalFiberPolynomial_open_agreement (f i) (f i₀) F (hP i) (hP i₀) |
| 66 | exact he ▸ (hP i).hasFiberHilbertPolynomial |
| 67 | |
| 68 | end |
| 69 | |
| 70 | end OAI.AlgebraicGeometry.PELModuli.IntegralModel.HilbertPolynomialAgreement |