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 | import OAI.AlgebraicGeometry.PELModuli.IntegralModel.Group.BaseChangeComparisons |
| 3 | import Mathlib.AlgebraicGeometry.Morphisms.LocalFlatDescent |
| 4 | import Mathlib.RingTheory.Localization.FractionRing |
| 5 | |
| 6 | /-! # Fraction Field -/ |
| 7 | |
| 8 | namespace OAI.AlgebraicGeometry.PELModuli.IntegralModel.Coefficient |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! Factor the ambient field point of a finite coefficient model through |
| 13 | the actual fraction field of its coefficient ring. The latter inclusion is |
| 14 | a localization, while the remaining field extension is faithfully flat. -/ |
| 15 | |
| 16 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 17 | |
| 18 | variable (R K : Type) [CommRing R] [Field K] [Algebra R K] (s : Finset K) |
| 19 | |
| 20 | abbrev FractionField.Coefficients.coefficientFractionField := FractionRing (ArithmeticGeometry.Models.CoefficientSystem.Constructions.Foundations.coefficientRing R K s) |
| 21 | |
| 22 | def FractionField.Coefficients.coefficientFieldEmbedding : FractionField.Coefficients.coefficientFractionField R K s →+* K := |
| 23 | IsFractionRing.lift (K := FractionField.Coefficients.coefficientFractionField R K s) |
| 24 | (g := (ArithmeticGeometry.Models.CoefficientSystem.Constructions.Foundations.coefficientRing R K s).val.toRingHom) Subtype.val_injective |
| 25 | |
| 26 | theorem FractionField.Coefficients.coefficientFieldEmbedding_comp : |
| 27 | (FractionField.Coefficients.coefficientFieldEmbedding R K s).comp |
| 28 | (algebraMap (ArithmeticGeometry.Models.CoefficientSystem.Constructions.Foundations.coefficientRing R K s) (FractionField.Coefficients.coefficientFractionField R K s)) = |
| 29 | (ArithmeticGeometry.Models.CoefficientSystem.Constructions.Foundations.coefficientRing R K s).val.toRingHom := by |
| 30 | ext a |
| 31 | exact IsFractionRing.lift_algebraMap Subtype.val_injective a |
| 32 | |
| 33 | def FractionField.Coefficients.fractionBaseMap : Spec (.of (FractionField.Coefficients.coefficientFractionField R K s)) ⟶ ArithmeticGeometry.Models.CoefficientSystem.Constructions.Foundations.coefficientBase R K s := |
| 34 | Spec.map (CommRingCat.ofHom (algebraMap (ArithmeticGeometry.Models.CoefficientSystem.Constructions.Foundations.coefficientRing R K s) (FractionField.Coefficients.coefficientFractionField R K s))) |
| 35 | |
| 36 | def FractionField.Coefficients.ambientFieldMap : Spec (.of K) ⟶ Spec (.of (FractionField.Coefficients.coefficientFractionField R K s)) := |
| 37 | Spec.map (CommRingCat.ofHom (FractionField.Coefficients.coefficientFieldEmbedding R K s)) |
| 38 | |
| 39 | theorem FractionField.Coefficients.fractionBase_factorization : |
| 40 | FractionField.Coefficients.ambientFieldMap R K s ≫ FractionField.Coefficients.fractionBaseMap R K s = ArithmeticGeometry.Models.CoefficientSystem.Constructions.Foundations.genericBaseMap R K s := by |
| 41 | change Spec.map (CommRingCat.ofHom (FractionField.Coefficients.coefficientFieldEmbedding R K s)) ≫ |
| 42 | Spec.map (CommRingCat.ofHom (algebraMap (ArithmeticGeometry.Models.CoefficientSystem.Constructions.Foundations.coefficientRing R K s) (FractionField.Coefficients.coefficientFractionField R K s))) = _ |
| 43 | rw [← Spec.map_comp] |
| 44 | exact congrArg (fun a => Spec.map (CommRingCat.ofHom a)) (FractionField.Coefficients.coefficientFieldEmbedding_comp R K s) |
| 45 | |
| 46 | instance FractionField.Coefficients.fractionBaseMap_preimmersion : IsPreimmersion (FractionField.Coefficients.fractionBaseMap R K s) := |
| 47 | IsPreimmersion.of_isLocalization (nonZeroDivisors (ArithmeticGeometry.Models.CoefficientSystem.Constructions.Foundations.coefficientRing R K s)) |
| 48 | |
| 49 | instance FractionField.Coefficients.ambientFieldMap_flat : Flat (FractionField.Coefficients.ambientFieldMap R K s) := inferInstance |
| 50 | |
| 51 | instance FractionField.Coefficients.ambientFieldMap_surjective : Surjective (FractionField.Coefficients.ambientFieldMap R K s) := |
| 52 | ⟨fun x => ⟨IsLocalRing.closedPoint K, Subsingleton.elim _ x⟩⟩ |
| 53 | |
| 54 | instance FractionField.Coefficients.ambientFieldMap_quasiCompact : QuasiCompact (FractionField.Coefficients.ambientFieldMap R K s) := by |
| 55 | unfold FractionField.Coefficients.ambientFieldMap |
| 56 | infer_instance |
| 57 | |
| 58 | variable {R K} {X : Over (Spec (.of K))} |
| 59 | |
| 60 | def Models.Coefficients.CoefficientModel.fractionFiberIso (M : Models.Coefficients.CoefficientModel R K X) : |
| 61 | (Over.pullback (FractionField.Coefficients.ambientFieldMap R K M.coefficients)).obj |
| 62 | ((Over.pullback (FractionField.Coefficients.fractionBaseMap R K M.coefficients)).obj M.model) ≅ X := |
| 63 | Group.BaseChangeComparisons.GroupBaseChange.iteratedIso M.model (FractionField.Coefficients.fractionBaseMap R K M.coefficients) |
| 64 | (FractionField.Coefficients.ambientFieldMap R K M.coefficients) (ArithmeticGeometry.Models.CoefficientSystem.Constructions.Foundations.genericBaseMap R K M.coefficients) |
| 65 | (FractionField.Coefficients.fractionBase_factorization R K M.coefficients) ≪≫ M.genericIso |
| 66 | |
| 67 | theorem Models.Coefficients.CoefficientModel.smooth_fractionFiber (M : Models.Coefficients.CoefficientModel R K X) |
| 68 | [Smooth X.hom] : |
| 69 | Smooth ((Over.pullback (FractionField.Coefficients.fractionBaseMap R K M.coefficients)).obj M.model).hom := by |
| 70 | let Y := (Over.pullback (FractionField.Coefficients.fractionBaseMap R K M.coefficients)).obj M.model |
| 71 | let ψ := FractionField.Coefficients.ambientFieldMap R K M.coefficients |
| 72 | let e := M.fractionFiberIso |
| 73 | have : IsIso e.hom.left := ((Over.forget (Spec (.of K))).mapIso e).isIso_hom |
| 74 | have hsm : Smooth (((Over.pullback ψ).obj Y).hom) := by |
| 75 | rw [← e.hom.w] |
| 76 | infer_instance |
| 77 | exact MorphismProperty.of_isPullback_of_descendsAlong |
| 78 | (Q := @Surjective ⊓ @Flat ⊓ @QuasiCompact) |
| 79 | (IsPullback.of_hasPullback Y.hom ψ).flip |
| 80 | ⟨⟨inferInstance, inferInstance⟩, inferInstance⟩ hsm |
| 81 | |
| 82 | end |
| 83 | |
| 84 | end OAI.AlgebraicGeometry.PELModuli.IntegralModel.Coefficient |