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.Quotients.FiniteDescent.AffineGroupoidIs |
| 2 | import OAI.AlgebraicGeometry.Quotients.FiniteDescent.Quotient |
| 3 | import Mathlib.AlgebraicGeometry.Sites.Fpqc |
| 4 | import Mathlib.AlgebraicGeometry.Limits |
| 5 | |
| 6 | /-! # Affine Quotient Of -/ |
| 7 | |
| 8 | namespace OAI.AlgebraicGeometry.Quotients.FiniteDescent.AffineQuotientOf.Construction.AffineQuotient |
| 9 | |
| 10 | /-! |
| 11 | # Quotients of closed finite-free affine equivalence relations |
| 12 | |
| 13 | The quotient is the spectrum of the invariant ring. Its projection is finite |
| 14 | locally free and surjective, its kernel pair is the original relation, and |
| 15 | it has the quotient universal property against all scheme targets. |
| 16 | -/ |
| 17 | |
| 18 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry |
| 19 | |
| 20 | universe u v |
| 21 | |
| 22 | /-- The quotient projection, with the original affine scheme as its domain. -/ |
| 23 | noncomputable abbrev projection {U V : Scheme.{u}} [IsAffine U] (s t : V ⟶ U) : |
| 24 | U ⟶ AffineRing.Construction.Affine.quotient s.appTop.hom t.appTop.hom := |
| 25 | U.isoSpec.hom ≫ AffineRing.Construction.Affine.projection s.appTop.hom t.appTop.hom |
| 26 | |
| 27 | /-- The actual affine quotient projection is finite locally free and surjective, |
| 28 | and the given relation is its kernel pair. -/ |
| 29 | theorem projection_properties |
| 30 | {U V S : Scheme.{u}} [IsAffine U] [IsAffine V] [IsAffine S] |
| 31 | (a : U ⟶ S) (s t : V ⟶ U) (e : CategoryTheory.EquivalenceRelation s t) |
| 32 | (h : s ≫ a = t ≫ a) [IsClosedImmersion (pullback.lift s t h)] |
| 33 | {ι : Type v} [Fintype ι] [DecidableEq ι] |
| 34 | (b : letI := s.appTop.hom.toAlgebra; Module.Basis ι Γ(U, ⊤) Γ(V, ⊤)) : |
| 35 | IsFinite (projection s t) ∧ Flat (projection s t) ∧ |
| 36 | LocallyOfFinitePresentation (projection s t) ∧ Surjective (projection s t) ∧ |
| 37 | IsKernelPair (projection s t) s t := by |
| 38 | obtain ⟨hfin, hflat, hfp, hsurj⟩ := |
| 39 | AffineGroupoidIs.Construction.AffineGroupoid.quotient_projection_finiteLocallyFree_surjective a s t e h b |
| 40 | let := hfin |
| 41 | let := hflat |
| 42 | let := hfp |
| 43 | let := hsurj |
| 44 | refine ⟨inferInstance, inferInstance, inferInstance, inferInstance, ?_⟩ |
| 45 | have hk := AffineGroupoidIs.Construction.AffineGroupoid.quotient_projection_isKernelPair a s t e h b |
| 46 | refine hk.of_iso V.isoSpec.symm U.isoSpec.symm U.isoSpec.symm (Iso.refl _) ?_ ?_ |
| 47 | (by simp) (by simp) |
| 48 | · exact Scheme.isoSpec_inv_naturality s |
| 49 | · exact Scheme.isoSpec_inv_naturality t |
| 50 | |
| 51 | /-- Every map invariant under the affine equivalence relation descends uniquely |
| 52 | to the quotient scheme, without assuming its target is affine. -/ |
| 53 | theorem universal_property |
| 54 | {U V S : Scheme.{u}} [IsAffine U] [IsAffine V] [IsAffine S] |
| 55 | (a : U ⟶ S) (s t : V ⟶ U) (e : CategoryTheory.EquivalenceRelation s t) |
| 56 | (h : s ≫ a = t ≫ a) [IsClosedImmersion (pullback.lift s t h)] |
| 57 | {ι : Type v} [Fintype ι] [DecidableEq ι] |
| 58 | (b : letI := s.appTop.hom.toAlgebra; Module.Basis ι Γ(U, ⊤) Γ(V, ⊤)) |
| 59 | (T : Scheme.{u}) (f : U ⟶ T) (hf : s ≫ f = t ≫ f) : |
| 60 | ∃! g : AffineRing.Construction.Affine.quotient s.appTop.hom t.appTop.hom ⟶ T, projection s t ≫ g = f := by |
| 61 | obtain ⟨hfin, hflat, _, hsurj, hk⟩ := projection_properties a s t e h b |
| 62 | let := hfin |
| 63 | let := hflat |
| 64 | let := hsurj |
| 65 | exact Quotient.Construction.QuotientDescent.existsUnique_desc (projection s t) hk f hf |
| 66 | |
| 67 | /-- For an affine equivalence relation with finite-free source over an affine |
| 68 | base, closedness of the relation follows from finiteness and joint monicity. -/ |
| 69 | theorem projection_properties_of_finiteFree |
| 70 | {U V S : Scheme.{u}} [IsAffine U] [IsAffine V] [IsAffine S] |
| 71 | (a : U ⟶ S) (s t : V ⟶ U) (e : CategoryTheory.EquivalenceRelation s t) |
| 72 | (h : s ≫ a = t ≫ a) |
| 73 | {ι : Type v} [Fintype ι] [DecidableEq ι] |
| 74 | (b : letI := s.appTop.hom.toAlgebra; Module.Basis ι Γ(U, ⊤) Γ(V, ⊤)) : |
| 75 | IsFinite (projection s t) ∧ Flat (projection s t) ∧ |
| 76 | LocallyOfFinitePresentation (projection s t) ∧ Surjective (projection s t) ∧ |
| 77 | IsKernelPair (projection s t) s t := by |
| 78 | let := s.appTop.hom.toAlgebra |
| 79 | have : IsFinite s := by |
| 80 | have : IsFinite (Spec.map s.appTop) := |
| 81 | (IsFinite.SpecMap_iff s.appTop).mpr (Module.Finite.of_basis b) |
| 82 | have heq : s = V.isoSpec.hom ≫ Spec.map s.appTop ≫ U.isoSpec.inv := by |
| 83 | rw [← Category.assoc, Scheme.isoSpec_hom_naturality, Category.assoc, |
| 84 | Iso.hom_inv_id, Category.comp_id] |
| 85 | rw [heq] |
| 86 | infer_instance |
| 87 | have : JointlyMono₂ s t := e.toJointlyMono₂ |
| 88 | have : IsClosedImmersion (pullback.lift s t h) := |
| 89 | AffineSpanIs.Construction.AffineSpan.relation_isClosedImmersion a s t h |
| 90 | exact projection_properties a s t e h b |
| 91 | |
| 92 | /-- The finite basis may be supplied on the affine group scheme over the |
| 93 | base: the cartesian source square transports it to each affine object chart. -/ |
| 94 | theorem projection_properties_of_source_baseChange |
| 95 | {H U V S : Scheme.{u}} [IsAffine H] [IsAffine U] [IsAffine S] |
| 96 | (hH : H ⟶ S) (a : U ⟶ S) (v : V ⟶ H) (s t : V ⟶ U) |
| 97 | (hs : IsPullback v s hH a) (e : CategoryTheory.EquivalenceRelation s t) |
| 98 | (h : s ≫ a = t ≫ a) |
| 99 | {ι : Type v} [Fintype ι] [DecidableEq ι] |
| 100 | (b : letI := hH.appTop.hom.toAlgebra; Module.Basis ι Γ(S, ⊤) Γ(H, ⊤)) : |
| 101 | IsFinite (projection s t) ∧ Flat (projection s t) ∧ |
| 102 | LocallyOfFinitePresentation (projection s t) ∧ Surjective (projection s t) ∧ |
| 103 | IsKernelPair (projection s t) s t := by |
| 104 | let := hH.appTop.hom.toAlgebra |
| 105 | have : IsFinite hH := by |
| 106 | have : IsFinite (Spec.map hH.appTop) := |
| 107 | (IsFinite.SpecMap_iff hH.appTop).mpr (Module.Finite.of_basis b) |
| 108 | have heq : hH = H.isoSpec.hom ≫ Spec.map hH.appTop ≫ S.isoSpec.inv := by |
| 109 | rw [← Category.assoc, Scheme.isoSpec_hom_naturality, Category.assoc, |
| 110 | Iso.hom_inv_id, Category.comp_id] |
| 111 | rw [heq] |
| 112 | infer_instance |
| 113 | have : IsFinite s := MorphismProperty.of_isPullback hs inferInstance |
| 114 | have : IsAffine V := isAffine_of_isAffineHom s |
| 115 | obtain ⟨bV, _⟩ := AffineGroupoidIs.Construction.AffineGroupoid.exists_basis_of_isPushout hH.appTop a.appTop |
| 116 | v.appTop s.appTop (isPushout_appTop_of_isPullback hs) b |
| 117 | exact projection_properties_of_finiteFree a s t e h bV |
| 118 | |
| 119 | /-- The affine finite-free quotient theorem does not require a chosen base: |
| 120 | the canonical map to the spectrum of the integers supplies one. -/ |
| 121 | theorem projection_properties_of_finiteFree_absolute |
| 122 | {U V : Scheme.{u}} [IsAffine U] [IsAffine V] |
| 123 | (s t : V ⟶ U) (e : CategoryTheory.EquivalenceRelation s t) |
| 124 | {ι : Type v} [Fintype ι] [DecidableEq ι] |
| 125 | (b : letI := s.appTop.hom.toAlgebra; Module.Basis ι Γ(U, ⊤) Γ(V, ⊤)) : |
| 126 | IsFinite (projection s t) ∧ Flat (projection s t) ∧ |
| 127 | LocallyOfFinitePresentation (projection s t) ∧ Surjective (projection s t) ∧ |
| 128 | IsKernelPair (projection s t) s t := by |
| 129 | exact projection_properties_of_finiteFree (specULiftZIsTerminal.from U) s t e |
| 130 | (specULiftZIsTerminal.hom_ext _ _) b |
| 131 | |
| 132 | end OAI.AlgebraicGeometry.Quotients.FiniteDescent.AffineQuotientOf.Construction.AffineQuotient |