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.Picard.PoincareBundle.Affine.Invariant |
| 2 | import OAI.AlgebraicGeometry.Picard.PoincareBundle.IsoDescent |
| 3 | import OAI.AlgebraicGeometry.Picard.PoincareBundle.Open.Descent |
| 4 | import OAI.AlgebraicGeometry.Picard.PoincareBundle.Line.Locality |
| 5 | import Mathlib.AlgebraicGeometry.Morphisms.Flat |
| 6 | import Mathlib.AlgebraicGeometry.Morphisms.Affine |
| 7 | import Mathlib.AlgebraicGeometry.Noetherian |
| 8 | |
| 9 | /-! # Global Line Descent -/ |
| 10 | |
| 11 | namespace OAI.AlgebraicGeometry.Picard.PoincareBundle.GlobalLineDescent |
| 12 | |
| 13 | noncomputable section |
| 14 | |
| 15 | /-! |
| 16 | # Global geometric line-bundle invariants for PoincareBundle |
| 17 | |
| 18 | The invariant sheaf of a geometric line-bundle coaction is locally free |
| 19 | of rank one under a faithfully flat affine morphism to a locally |
| 20 | noetherian scheme. Affine computations are transported through actual |
| 21 | scheme isomorphisms and then applied on an affine open cover. |
| 22 | -/ |
| 23 | |
| 24 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 25 | |
| 26 | universe u |
| 27 | |
| 28 | variable {X Y : Scheme.{u}} (f : X ⟶ Y) |
| 29 | |
| 30 | /-- The invariant pullback comparison is invertible on arbitrary affine schemes. -/ |
| 31 | theorem affine_invariantComparison_isIso [IsAffine X] [IsAffine Y] [Flat f] |
| 32 | (D : BeckDescent.SheafDatum f) (hD : Line.Bundles.IsLine D.A) : |
| 33 | IsIso (BeckDescent.invariantComparison f D).f := by |
| 34 | let w := Scheme.isoSpec_inv_naturality f |
| 35 | let D' := (IsoDescent.transportDatum f (Spec.map f.appTop) |
| 36 | X.isoSpec.symm Y.isoSpec.symm w).obj D |
| 37 | have hD' : Line.Bundles.IsLine D'.A := hD.pullback X.isoSpec.inv |
| 38 | have : D'.A.IsQuasicoherent := QuasiCoherent.isQuasicoherent_of_isLine D'.A hD' |
| 39 | exact IsoDescent.comparison_isIso_of_transport f (Spec.map f.appTop) |
| 40 | X.isoSpec.symm Y.isoSpec.symm w D |
| 41 | (PoincareBundle.Affine.Invariant.invariantComparison_isIso f.appTop D' f.flat_appTop) |
| 42 | |
| 43 | /-- The invariant sheaf is a line bundle on arbitrary affine schemes. -/ |
| 44 | theorem affine_invariantSheaf_isLine [IsAffine X] [IsAffine Y] |
| 45 | [IsLocallyNoetherian Y] [Flat f] [Surjective f] |
| 46 | (D : BeckDescent.SheafDatum f) (hD : Line.Bundles.IsLine D.A) : |
| 47 | Line.Bundles.IsLine (BeckDescent.invariantSheaf f D) := by |
| 48 | let w := Scheme.isoSpec_inv_naturality f |
| 49 | let D' := (IsoDescent.transportDatum f (Spec.map f.appTop) |
| 50 | X.isoSpec.symm Y.isoSpec.symm w).obj D |
| 51 | have hD' : Line.Bundles.IsLine D'.A := hD.pullback X.isoSpec.inv |
| 52 | have : IsNoetherianRing Γ(Y, ⊤) := |
| 53 | IsLocallyNoetherian.component_noetherian ⟨⊤, isAffineOpen_top Y⟩ |
| 54 | have hf : f.appTop.hom.FaithfullyFlat := |
| 55 | (Flat.flat_and_surjective_iff_faithfullyFlat_of_isAffine f).mp ⟨inferInstance, inferInstance⟩ |
| 56 | have hline := PoincareBundle.Affine.Invariant.invariantSheaf_isLine f.appTop D' hf hD' |
| 57 | apply IsoDescent.isLine_of_pullback Y.isoSpec.symm |
| 58 | exact hline.of_iso (IsoDescent.invariantSheafIso f (Spec.map f.appTop) |
| 59 | X.isoSpec.symm Y.isoSpec.symm w D).symm |
| 60 | |
| 61 | /-- The invariant sheaf of a line-bundle coaction is itself a line bundle |
| 62 | for faithfully flat affine morphisms over a locally noetherian base. -/ |
| 63 | theorem invariantSheaf_isLine [IsAffineHom f] [IsLocallyNoetherian Y] |
| 64 | [Flat f] [Surjective f] |
| 65 | (D : BeckDescent.SheafDatum f) (hD : Line.Bundles.IsLine D.A) : |
| 66 | Line.Bundles.IsLine (BeckDescent.invariantSheaf f D) := by |
| 67 | apply Line.Locality.isLine_of_locally_isLine |
| 68 | intro y |
| 69 | obtain ⟨U, hU, hy, _⟩ := exists_isAffineOpen_mem_and_subset |
| 70 | (show y ∈ (⊤ : Y.Opens) from trivial) |
| 71 | have : IsAffine U := hU |
| 72 | have : IsAffine (f ⁻¹ᵁ U : X.Opens) := hU.preimage f |
| 73 | have : Surjective (f ∣_ U) := |
| 74 | MorphismProperty.IsStableUnderBaseChange.of_isPullback |
| 75 | (isPullback_morphismRestrict f U).flip (inferInstanceAs (Surjective f)) |
| 76 | let D' := (Open.Descent.restrictDatum f U).obj D |
| 77 | have hD' : Line.Bundles.IsLine D'.A := Open.Descent.restrictDatum_isLine f U D hD |
| 78 | have hline := affine_invariantSheaf_isLine (f ∣_ U) D' hD' |
| 79 | refine ⟨U, hy, ?_⟩ |
| 80 | exact hline.of_iso ((Open.Descent.invariantSheafRestrictIso f U D).symm ≪≫ |
| 81 | (Scheme.Modules.restrictFunctorIsoPullback U.ι).app _) |
| 82 | |
| 83 | /-- The globally defined line bundle obtained by taking geometric invariants. -/ |
| 84 | def descendedLineBundle [IsAffineHom f] [IsLocallyNoetherian Y] [Flat f] [Surjective f] |
| 85 | (D : BeckDescent.SheafDatum f) (hD : Line.Bundles.IsLine D.A) : |
| 86 | Line.Bundles.LineBundle Y := |
| 87 | ⟨BeckDescent.invariantSheaf f D, invariantSheaf_isLine f D hD⟩ |
| 88 | |
| 89 | /-- For a flat affine morphism, the globally defined invariant comparison |
| 90 | recovers every geometric line-bundle coaction. -/ |
| 91 | theorem invariantComparison_isIso [IsAffineHom f] [Flat f] |
| 92 | (D : BeckDescent.SheafDatum f) (hD : Line.Bundles.IsLine D.A) : |
| 93 | IsIso (BeckDescent.invariantComparison f D).f := by |
| 94 | apply ModuleLocality.isIso_of_locally_isIso |
| 95 | intro x |
| 96 | obtain ⟨U, hU, hx, _⟩ := exists_isAffineOpen_mem_and_subset |
| 97 | (show f x ∈ (⊤ : Y.Opens) from trivial) |
| 98 | have : IsAffine U := hU |
| 99 | have : IsAffine (f ⁻¹ᵁ U : X.Opens) := hU.preimage f |
| 100 | let D' := (Open.Descent.restrictDatum f U).obj D |
| 101 | have hD' : Line.Bundles.IsLine D'.A := Open.Descent.restrictDatum_isLine f U D hD |
| 102 | have hc : IsIso (BeckDescent.invariantComparison (f ∣_ U) D').f := |
| 103 | affine_invariantComparison_isIso (f ∣_ U) D' hD' |
| 104 | have := ModuleLocality.restrict_preservesFiniteLimits U.ι |
| 105 | have := Open.Adjunction.rightMate_isIso f U |
| 106 | refine ⟨f ⁻¹ᵁ U, hx, ?_⟩ |
| 107 | exact @InvariantComparison.comparison_map_isIso _ _ _ _ _ _ _ _ _ _ _ _ _ _ |
| 108 | (Scheme.Modules.pullbackPushforwardAdjunction f) |
| 109 | (Scheme.Modules.pullbackPushforwardAdjunction (f ∣_ U)) |
| 110 | (Open.Adjunction.adjointPullbackSquare f U) |
| 111 | inferInstance inferInstance inferInstance inferInstance D hc |
| 112 | |
| 113 | /-- Pullback of the constructed global line bundle is the original line bundle. -/ |
| 114 | def descendedLineBundlePullbackIso [IsAffineHom f] [IsLocallyNoetherian Y] |
| 115 | [Flat f] [Surjective f] |
| 116 | (D : BeckDescent.SheafDatum f) (hD : Line.Bundles.IsLine D.A) : |
| 117 | (Scheme.Modules.pullback f).obj (descendedLineBundle f D hD).sheaf ≅ D.A := by |
| 118 | let a := (BeckDescent.invariantComparison f D).f |
| 119 | have ha : IsIso a := invariantComparison_isIso f D hD |
| 120 | exact @asIso _ _ _ _ a ha |
| 121 | |
| 122 | end |
| 123 | |
| 124 | end OAI.AlgebraicGeometry.Picard.PoincareBundle.GlobalLineDescent |