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.PELModuli.IntegralModel.Coefficient.Models |
| 2 | |
| 3 | /-! # Coefficient Models -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.PELModuli.IntegralModel.Affine.CoefficientModels.Coefficients |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! Finite coefficient models of affine schemes retain actual affineness |
| 10 | of the model, in addition to their generic comparison. -/ |
| 11 | |
| 12 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 13 | |
| 14 | variable {R K : Type} [CommRing R] [Field K] [Algebra R K] |
| 15 | |
| 16 | theorem affine_has_affine_coefficient_model |
| 17 | (A : Type) [CommRing A] [Algebra K A] [Algebra.FinitePresentation K A] : |
| 18 | ∃ M : Coefficient.Models.Coefficients.CoefficientModel R K (ArithmeticGeometry.Models.Scheme.Constructions.Foundations.affineOver K A), IsAffine M.model.left := by |
| 19 | classical |
| 20 | let P := Algebra.Presentation.ofFinitePresentation K A |
| 21 | let s : Finset K := P.finite_coeffs.toFinset |
| 22 | let L := ArithmeticGeometry.Models.CoefficientSystem.Constructions.Foundations.coefficientRing R K s |
| 23 | let : P.HasCoeffs L := ⟨fun c hc => ⟨⟨c, Algebra.subset_adjoin (by simpa [s] using hc)⟩, rfl⟩⟩ |
| 24 | let A₀ := P.ModelOfHasCoeffs L |
| 25 | refine ⟨{ |
| 26 | coefficients := s |
| 27 | model := ArithmeticGeometry.Models.Scheme.Constructions.Foundations.affineOver L A₀ |
| 28 | finitePresentation := ArithmeticGeometry.Models.Scheme.Constructions.Foundations.affineOver_finitePresentation L A₀ |
| 29 | genericIso := ArithmeticGeometry.Models.Scheme.Constructions.Foundations.baseChangeAffineIso L K A₀ ≪≫ ArithmeticGeometry.Models.Scheme.Constructions.Foundations.affineOverIso (P.tensorModelOfHasCoeffsEquiv L) |
| 30 | }, ?_⟩ |
| 31 | exact inferInstanceAs (IsAffine (Spec (.of A₀))) |
| 32 | |
| 33 | theorem isAffine_has_affine_coefficient_model |
| 34 | (X : Over (Spec (.of K))) [IsAffine X.left] |
| 35 | (hX : ArithmeticGeometry.Models.Scheme.Constructions.Foundations.FinitePresentationMorphism X.hom) : |
| 36 | ∃ M : Coefficient.Models.Coefficients.CoefficientModel R K X, IsAffine M.model.left := by |
| 37 | have : LocallyOfFinitePresentation X.hom := hX.1 |
| 38 | obtain ⟨φ, hφ⟩ := Spec.map_surjective (X.left.isoSpec.inv ≫ X.hom) |
| 39 | let A := Γ(X.left, ⊤) |
| 40 | let : Algebra K A := φ.hom.toAlgebra |
| 41 | have hφFP : LocallyOfFinitePresentation (Spec.map φ) := by |
| 42 | rw [hφ] |
| 43 | infer_instance |
| 44 | have : Algebra.FinitePresentation K A := (LocallyOfFinitePresentation.SpecMap_iff φ).mp hφFP |
| 45 | obtain ⟨M, hM⟩ := affine_has_affine_coefficient_model (R := R) (K := K) A |
| 46 | let e : X ≅ ArithmeticGeometry.Models.Scheme.Constructions.Foundations.affineOver K A := Over.isoMk X.left.isoSpec (by |
| 47 | change X.left.isoSpec.hom ≫ Spec.map φ = X.hom |
| 48 | rw [hφ, Iso.hom_inv_id_assoc]) |
| 49 | exact ⟨M.transport e.symm, hM⟩ |
| 50 | |
| 51 | end |
| 52 | |
| 53 | end OAI.AlgebraicGeometry.PELModuli.IntegralModel.Affine.CoefficientModels.Coefficients |