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.Intrinsic.AffineEquationModel |
| 2 | import Mathlib.AlgebraicGeometry.Noetherian |
| 3 | |
| 4 | /-! # Noetherian Model -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.HilbertScheme.Presentations.Intrinsic.NoetherianModel.GradedHilbert |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Every native affine projective family is the actual base change of a |
| 11 | proper finitely presented projective scheme over a finite coefficient algebra. |
| 12 | The coefficient algebra is noetherian when the chosen base ring is noetherian. -/ |
| 13 | |
| 14 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 15 | |
| 16 | universe u v |
| 17 | variable {S : Scheme.{u}} {R : Type u} [CommRing R] {n : ℕ} |
| 18 | variable {a : Spec (CommRingCat.of R) ⟶ S} |
| 19 | variable {F : Hilbert.Functor.Family (PolynomialAmbient.GradedHilbert.relativeProjectiveOver S n) (Over.mk a)} |
| 20 | variable (E : AffineEquationModel.GradedHilbert.NativeAffineEquations a F) (B : Type v) [CommRing B] [Algebra B R] |
| 21 | |
| 22 | def nativeEquationModelCoefficientMap : Projective.Quotient.GradedHilbert.projectiveQuotient (AffineEquationModel.GradedHilbert.nativeEquationExtendedIdeal E B) ⟶ |
| 23 | Projective.Quotient.GradedHilbert.projectiveQuotient (AffineEquationModel.GradedHilbert.nativeEquationModelIdeal E B) := by |
| 24 | let : Algebra (AffineEquationModel.GradedHilbert.nativeEquationCoefficientRing E B) R := |
| 25 | (AffineEquationModel.GradedHilbert.nativeEquationCoefficientRing E B).val.toRingHom.toAlgebra |
| 26 | exact Projective.CoefficientMap.GradedHilbert.projectiveCoefficientMap (AffineEquationModel.GradedHilbert.nativeEquationModelIdeal E B) |
| 27 | |
| 28 | theorem nativeEquationModelCoefficient_isPullback : |
| 29 | IsPullback (nativeEquationModelCoefficientMap E B) |
| 30 | (Projective.Flatness.GradedHilbert.projectiveStructureMap (Graded.Quotient.GradedHilbert.quotientGrading (AffineEquationModel.GradedHilbert.nativeEquationExtendedIdeal E B))) |
| 31 | (Projective.Flatness.GradedHilbert.projectiveStructureMap (Graded.Quotient.GradedHilbert.quotientGrading (AffineEquationModel.GradedHilbert.nativeEquationModelIdeal E B))) |
| 32 | (Spec.map (CommRingCat.ofHom (AffineEquationModel.GradedHilbert.nativeEquationCoefficientRing E B).val.toRingHom)) := by |
| 33 | let : Algebra (AffineEquationModel.GradedHilbert.nativeEquationCoefficientRing E B) R := |
| 34 | (AffineEquationModel.GradedHilbert.nativeEquationCoefficientRing E B).val.toRingHom.toAlgebra |
| 35 | exact Projective.BaseChange.GradedHilbert.projectiveQuotient_isPullback (AffineEquationModel.GradedHilbert.nativeEquationModelIdeal E B) |
| 36 | |
| 37 | def nativeEquationModelMap : F.val.subscheme ⟶ Projective.Quotient.GradedHilbert.projectiveQuotient (AffineEquationModel.GradedHilbert.nativeEquationModelIdeal E B) := |
| 38 | (AffineEquationModel.GradedHilbert.nativeEquationModelIso E B).hom ≫ nativeEquationModelCoefficientMap E B |
| 39 | |
| 40 | theorem nativeEquationModel_isPullback : |
| 41 | IsPullback (nativeEquationModelMap E B) (Hilbert.Functor.familyProjection (PolynomialAmbient.GradedHilbert.relativeProjectiveOver S n) F.val) |
| 42 | (Projective.Flatness.GradedHilbert.projectiveStructureMap (Graded.Quotient.GradedHilbert.quotientGrading (AffineEquationModel.GradedHilbert.nativeEquationModelIdeal E B))) |
| 43 | (Spec.map (CommRingCat.ofHom (AffineEquationModel.GradedHilbert.nativeEquationCoefficientRing E B).val.toRingHom)) := by |
| 44 | let p : F.val.subscheme ⟶ Spec (CommRingCat.of R) := |
| 45 | Hilbert.Functor.familyProjection (PolynomialAmbient.GradedHilbert.relativeProjectiveOver S n) F.val |
| 46 | have h : IsPullback (AffineEquationModel.GradedHilbert.nativeEquationModelIso E B).hom p |
| 47 | (Projective.Flatness.GradedHilbert.projectiveStructureMap (Graded.Quotient.GradedHilbert.quotientGrading (AffineEquationModel.GradedHilbert.nativeEquationExtendedIdeal E B))) (𝟙 (Spec (CommRingCat.of R))) := |
| 48 | IsPullback.of_horiz_isIso ⟨(AffineEquationModel.GradedHilbert.nativeEquationModelIso_projection E B).trans (Category.comp_id _).symm⟩ |
| 49 | change IsPullback ((AffineEquationModel.GradedHilbert.nativeEquationModelIso E B).hom ≫ nativeEquationModelCoefficientMap E B) p _ _ |
| 50 | simpa only [Category.id_comp] using h.paste_horiz (nativeEquationModelCoefficient_isPullback E B) |
| 51 | |
| 52 | theorem nativeEquationModel_locallyOfFinitePresentation [IsNoetherianRing B] : |
| 53 | LocallyOfFinitePresentation (Projective.Flatness.GradedHilbert.projectiveStructureMap (Graded.Quotient.GradedHilbert.quotientGrading (AffineEquationModel.GradedHilbert.nativeEquationModelIdeal E B))) := by |
| 54 | have : IsProper (Projective.Flatness.GradedHilbert.projectiveStructureMap (Graded.Quotient.GradedHilbert.quotientGrading (AffineEquationModel.GradedHilbert.nativeEquationModelIdeal E B))) := |
| 55 | Projective.Properness.GradedHilbert.projectiveQuotient_proper _ |
| 56 | infer_instance |
| 57 | |
| 58 | theorem native_affine_noetherian_model [IsNoetherianRing B] (a : Spec (CommRingCat.of R) ⟶ S) |
| 59 | (F : Hilbert.Functor.Family (PolynomialAmbient.GradedHilbert.relativeProjectiveOver S n) (Over.mk a)) : |
| 60 | ∃ (C : Subalgebra B R), Algebra.FiniteType B C ∧ IsNoetherianRing C ∧ |
| 61 | ∃ (Z : Scheme.{u}) (p : Z ⟶ Spec (CommRingCat.of C)), IsProper p ∧ LocallyOfFinitePresentation p ∧ |
| 62 | ∃ q : F.val.subscheme ⟶ Z, |
| 63 | IsPullback q (Hilbert.Functor.familyProjection (PolynomialAmbient.GradedHilbert.relativeProjectiveOver S n) F.val) p |
| 64 | (Spec.map (CommRingCat.ofHom C.val.toRingHom)) := by |
| 65 | let E := AffineEquationModel.GradedHilbert.nativeAffineEquations a F |
| 66 | refine ⟨AffineEquationModel.GradedHilbert.nativeEquationCoefficientRing E B, inferInstance, inferInstance, |
| 67 | Projective.Quotient.GradedHilbert.projectiveQuotient (AffineEquationModel.GradedHilbert.nativeEquationModelIdeal E B), Projective.Flatness.GradedHilbert.projectiveStructureMap (Graded.Quotient.GradedHilbert.quotientGrading (AffineEquationModel.GradedHilbert.nativeEquationModelIdeal E B)), |
| 68 | Projective.Properness.GradedHilbert.projectiveQuotient_proper _, nativeEquationModel_locallyOfFinitePresentation E B, |
| 69 | nativeEquationModelMap E B, nativeEquationModel_isPullback E B⟩ |
| 70 | |
| 71 | end |
| 72 | |
| 73 | end OAI.AlgebraicGeometry.HilbertScheme.Presentations.Intrinsic.NoetherianModel.GradedHilbert |