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.Noetherian.IntrinsicFiberPolynomial |
| 2 | import OAI.AlgebraicGeometry.HilbertScheme.Presentations.Noetherian.LocalClassification |
| 3 | |
| 4 | /-! # Canonical Fiber Polynomial -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.HilbertScheme.Presentations.CanonicalFiberPolynomial.GradedHilbert |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Canonical fiber polynomials use the fixed projective coordinates of |
| 11 | the ambient projective space and are preserved by every test-scheme map. -/ |
| 12 | |
| 13 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 14 | |
| 15 | universe u |
| 16 | variable {S : Scheme.{u}} {n : ℕ} {T T' : Over S} |
| 17 | |
| 18 | def CanonicalFiberHilbertPolynomial |
| 19 | (F : Hilbert.Functor.Family (Intrinsic.PolynomialAmbient.GradedHilbert.relativeProjectiveOver S n) T) (P : Polynomial ℚ) : Prop := |
| 20 | ∀ (K : Type u) [Field K] (a : Spec (CommRingCat.of K) ⟶ T.left), |
| 21 | Hilbert.Polynomial.GradedHilbert.HasHilbertPolynomial (Affine.IntrinsicHomogeneousCoordinates.GradedHilbert.affineNativeHomogeneousIdeal n (a ≫ T.hom) |
| 22 | (Hilbert.Functor.pullbackFamily (Intrinsic.PolynomialAmbient.GradedHilbert.relativeProjectiveOver S n) |
| 23 | (Over.homMk a rfl : Over.mk (a ≫ T.hom) ⟶ T) F)).toIdeal P |
| 24 | |
| 25 | theorem CanonicalFiberHilbertPolynomial.over_point |
| 26 | {F : Hilbert.Functor.Family (Intrinsic.PolynomialAmbient.GradedHilbert.relativeProjectiveOver S n) T} {P : Polynomial ℚ} |
| 27 | (hP : CanonicalFiberHilbertPolynomial F P) {K : Type u} [Field K] |
| 28 | (f : Spec (.of K) ⟶ S) (a : Over.mk f ⟶ T) : |
| 29 | Hilbert.Polynomial.GradedHilbert.HasHilbertPolynomial (Affine.IntrinsicHomogeneousCoordinates.GradedHilbert.affineNativeHomogeneousIdeal n f |
| 30 | (Hilbert.Functor.pullbackFamily (Intrinsic.PolynomialAmbient.GradedHilbert.relativeProjectiveOver S n) a F)).toIdeal P := by |
| 31 | generalize hg : a.left = g |
| 32 | have hf : g ≫ T.hom = f := by rw [← hg]; exact a.w |
| 33 | have ha : a = Over.homMk g hf := Over.OverMorphism.ext hg |
| 34 | rw [ha] |
| 35 | clear ha hg a |
| 36 | change Spec (.of K) ⟶ T.left at g |
| 37 | exact Eq.rec (motive := fun (f' : Spec (.of K) ⟶ S) (hf' : g ≫ T.hom = f') => |
| 38 | Hilbert.Polynomial.GradedHilbert.HasHilbertPolynomial (Affine.IntrinsicHomogeneousCoordinates.GradedHilbert.affineNativeHomogeneousIdeal n f' |
| 39 | (Hilbert.Functor.pullbackFamily (Intrinsic.PolynomialAmbient.GradedHilbert.relativeProjectiveOver S n) |
| 40 | (Over.homMk g hf' : Over.mk f' ⟶ T) F)).toIdeal P) (hP K g) hf |
| 41 | |
| 42 | theorem CanonicalFiberHilbertPolynomial.pullback |
| 43 | {F : Hilbert.Functor.Family (Intrinsic.PolynomialAmbient.GradedHilbert.relativeProjectiveOver S n) T} {P : Polynomial ℚ} |
| 44 | (hP : CanonicalFiberHilbertPolynomial F P) (b : T' ⟶ T) : |
| 45 | CanonicalFiberHilbertPolynomial (Hilbert.Functor.pullbackFamily (Intrinsic.PolynomialAmbient.GradedHilbert.relativeProjectiveOver S n) b F) P := by |
| 46 | intro K _ a |
| 47 | let c : Over.mk (a ≫ T'.hom) ⟶ T' := Over.homMk a rfl |
| 48 | change Hilbert.Polynomial.GradedHilbert.HasHilbertPolynomial (Affine.IntrinsicHomogeneousCoordinates.GradedHilbert.affineNativeHomogeneousIdeal n (a ≫ T'.hom) |
| 49 | (Hilbert.Functor.pullbackFamily (Intrinsic.PolynomialAmbient.GradedHilbert.relativeProjectiveOver S n) c |
| 50 | (Hilbert.Functor.pullbackFamily (Intrinsic.PolynomialAmbient.GradedHilbert.relativeProjectiveOver S n) b F))).toIdeal P |
| 51 | rw [← Hilbert.Functor.pullbackFamily_comp] |
| 52 | exact hP.over_point (a ≫ T'.hom) (c ≫ b) |
| 53 | |
| 54 | theorem CanonicalFiberHilbertPolynomial.affine_residue |
| 55 | {R : Type u} [CommRing R] {f : Spec (.of R) ⟶ S} |
| 56 | {F : Hilbert.Functor.Family (Intrinsic.PolynomialAmbient.GradedHilbert.relativeProjectiveOver S n) (Over.mk f)} {P : Polynomial ℚ} |
| 57 | (hP : CanonicalFiberHilbertPolynomial F P) (p : PrimeSpectrum R) : |
| 58 | Hilbert.Polynomial.GradedHilbert.HasHilbertPolynomial (Projective.Saturation.GradedHilbert.projectiveSaturation (Graded.BaseChange.GradedHilbert.extendedHomogeneousIdeal (S := p.asIdeal.ResidueField) |
| 59 | (Affine.IntrinsicHomogeneousCoordinates.GradedHilbert.affineNativeHomogeneousIdeal n f F))).toIdeal P := by |
| 60 | have h := hP p.asIdeal.ResidueField (Spec.map (CommRingCat.ofHom (algebraMap R p.asIdeal.ResidueField))) |
| 61 | change Hilbert.Polynomial.GradedHilbert.HasHilbertPolynomial (Affine.IntrinsicHomogeneousCoordinates.GradedHilbert.affineNativeHomogeneousIdeal n |
| 62 | (Spec.map (CommRingCat.ofHom (algebraMap R p.asIdeal.ResidueField)) ≫ f) |
| 63 | (Hilbert.Functor.pullbackFamily (Intrinsic.PolynomialAmbient.GradedHilbert.relativeProjectiveOver S n) |
| 64 | (Affine.ProjectiveAmbientNaturality.GradedHilbert.affineTestMap f (algebraMap R p.asIdeal.ResidueField)) F)).toIdeal P at h |
| 65 | rw [Affine.HomogeneousCoordinateBaseChange.GradedHilbert.affineNativeHomogeneousIdeal_baseChange] at h |
| 66 | exact h |
| 67 | |
| 68 | theorem canonicalFiberHilbertPolynomial_of_noetherian_affine_residues |
| 69 | {R : Type u} [CommRing R] [IsNoetherianRing R] (f : Spec (.of R) ⟶ S) |
| 70 | (F : Hilbert.Functor.Family (Intrinsic.PolynomialAmbient.GradedHilbert.relativeProjectiveOver S n) (Over.mk f)) (P : Polynomial ℚ) |
| 71 | (hP : ∀ p : PrimeSpectrum R, Hilbert.Polynomial.GradedHilbert.HasHilbertPolynomial |
| 72 | (Projective.Saturation.GradedHilbert.projectiveSaturation (Graded.BaseChange.GradedHilbert.extendedHomogeneousIdeal (S := p.asIdeal.ResidueField) |
| 73 | (Affine.IntrinsicHomogeneousCoordinates.GradedHilbert.affineNativeHomogeneousIdeal n f F))).toIdeal P) : |
| 74 | CanonicalFiberHilbertPolynomial F P := by |
| 75 | intro K _ a |
| 76 | obtain ⟨φ, rfl⟩ : ∃ φ : R →+* K, Spec.map (CommRingCat.ofHom φ) = a := |
| 77 | ⟨(Spec.preimage a).hom, Spec.map_preimage a⟩ |
| 78 | exact Noetherian.IntrinsicFiberPolynomial.GradedHilbert.noetherian_canonical_field_polynomial f F P hP φ |
| 79 | |
| 80 | theorem CanonicalFiberHilbertPolynomial.hasFiberHilbertPolynomial |
| 81 | {F : Hilbert.Functor.Family (Intrinsic.PolynomialAmbient.GradedHilbert.relativeProjectiveOver S n) T} {P : Polynomial ℚ} |
| 82 | (hP : CanonicalFiberHilbertPolynomial F P) : |
| 83 | Has.Core.HasFiberHilbertPolynomial (Intrinsic.ProjectivePresentation.GradedHilbert.canonicalProjectivePresentation S n) F P := |
| 84 | CanonicalFiberPolynomialCriterion.GradedHilbert.hasFiberHilbertPolynomial_of_canonical_fibers F P hP |
| 85 | |
| 86 | end |
| 87 | |
| 88 | end OAI.AlgebraicGeometry.HilbertScheme.Presentations.CanonicalFiberPolynomial.GradedHilbert |