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.AbelianModuli.HilbertConstruction.Constant.BaseChange |
| 2 | import OAI.AlgebraicGeometry.FormalGeometry.Completion.Finite.CoefficientSheaf |
| 3 | import Mathlib.AlgebraicGeometry.ZariskisMainTheorem |
| 4 | import Mathlib.Topology.ContinuousMap.LocallyConstant |
| 5 | |
| 6 | /-! # Constant Scheme -/ |
| 7 | |
| 8 | namespace OAI.AlgebraicGeometry.FormalGeometry.Completion.Finite.ConstantScheme.Construction |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! |
| 13 | # Completion: finite coefficients are represented by finite étale constant schemes |
| 14 | |
| 15 | We reuse the checked disjoint-union construction and its base-change |
| 16 | isomorphism from HilbertConstruction. The Completion checker rebuilds and audits those dependencies. |
| 17 | -/ |
| 18 | |
| 19 | open _root_.CategoryTheory Limits _root_.AlgebraicGeometry Opposite |
| 20 | open OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Constant.BaseChange |
| 21 | |
| 22 | set_option backward.defeqAttrib.useBackward true |
| 23 | set_option backward.isDefEq.respectTransparency false |
| 24 | |
| 25 | universe u |
| 26 | |
| 27 | variable (S : Scheme.{u}) (I : Type u) |
| 28 | |
| 29 | theorem finiteConstantScheme_etale : Etale (AbelianModuli.HilbertConstruction.ConstantScheme.Iff.constantScheme S I).hom := by |
| 30 | have := HasRingHomProperty.instIsZariskiLocalAtSource |
| 31 | (P := @Etale.{u}) (Q := @RingHom.Etale) |
| 32 | change Etale (Sigma.desc (fun _ : I => 𝟙 S)) |
| 33 | exact IsZariskiLocalAtSource.sigmaDesc (P := @Etale.{u}) |
| 34 | (fun _ => inferInstanceAs (Etale (𝟙 S))) |
| 35 | |
| 36 | theorem finiteConstantScheme_isClosedMap [Finite I] : |
| 37 | IsClosedMap (AbelianModuli.HilbertConstruction.ConstantScheme.Iff.constantScheme S I).hom := by |
| 38 | intro C hC |
| 39 | have heq : (AbelianModuli.HilbertConstruction.ConstantScheme.Iff.constantScheme S I).hom '' C = |
| 40 | ⋃ i : I, (Sigma.ι (fun _ : I => S) i) ⁻¹' C := by |
| 41 | ext s |
| 42 | constructor |
| 43 | · rintro ⟨x, hx, hs⟩ |
| 44 | obtain ⟨⟨i, t⟩, rfl⟩ := (sigmaMk (fun _ : I => S)).surjective x |
| 45 | rw [sigmaMk_mk] at hs hx |
| 46 | have ht : t = s := (congrArg (fun f : S ⟶ S => f t) |
| 47 | (AbelianModuli.HilbertConstruction.ConstantScheme.Iff.constantScheme_ι_hom (S := S) i)).symm.trans hs |
| 48 | subst t |
| 49 | exact Set.mem_iUnion.mpr ⟨i, hx⟩ |
| 50 | · intro hs |
| 51 | obtain ⟨i, hi⟩ := Set.mem_iUnion.mp hs |
| 52 | exact ⟨Sigma.ι (fun _ : I => S) i s, hi, |
| 53 | congrArg (fun f : S ⟶ S => f s) (AbelianModuli.HilbertConstruction.ConstantScheme.Iff.constantScheme_ι_hom i)⟩ |
| 54 | rw [heq] |
| 55 | exact isClosed_iUnion_of_finite (fun i => hC.preimage (Sigma.ι (fun _ : I => S) i).continuous) |
| 56 | |
| 57 | theorem finiteConstantScheme_affine [Finite I] : IsAffineHom (AbelianModuli.HilbertConstruction.ConstantScheme.Iff.constantScheme S I).hom := by |
| 58 | constructor |
| 59 | intro U hU |
| 60 | have : IsAffine U.toScheme := hU |
| 61 | have : IsAffine (AbelianModuli.HilbertConstruction.ConstantScheme.Iff.constantScheme U.toScheme I).left := |
| 62 | inferInstanceAs (IsAffine (∐ fun _ : I => U.toScheme)) |
| 63 | let e : (AbelianModuli.HilbertConstruction.ConstantScheme.Iff.constantScheme U.toScheme I).left ≅ |
| 64 | ((AbelianModuli.HilbertConstruction.ConstantScheme.Iff.constantScheme S I).hom ⁻¹ᵁ U).toScheme := |
| 65 | ((Over.forget U.toScheme).mapIso (AbelianModuli.HilbertConstruction.Constant.BaseChange.constantSchemeBaseChangeIso U.ι I)) ≪≫ |
| 66 | pullbackRestrictIsoRestrict (AbelianModuli.HilbertConstruction.ConstantScheme.Iff.constantScheme S I).hom U |
| 67 | exact IsAffine.of_isIso e.inv |
| 68 | |
| 69 | theorem finiteConstantScheme_universallyClosed [Finite I] : |
| 70 | UniversallyClosed (AbelianModuli.HilbertConstruction.ConstantScheme.Iff.constantScheme S I).hom where |
| 71 | universally_isClosedMap {X Y} i₁ i₂ f h := by |
| 72 | let e := AbelianModuli.HilbertConstruction.Constant.BaseChange.constantSchemeBaseChangeIso i₂ I |
| 73 | have hsnd : IsClosedMap (pullback.snd (AbelianModuli.HilbertConstruction.ConstantScheme.Iff.constantScheme S I).hom i₂) := by |
| 74 | have he : e.inv.left ≫ (AbelianModuli.HilbertConstruction.ConstantScheme.Iff.constantScheme Y I).hom = |
| 75 | pullback.snd (AbelianModuli.HilbertConstruction.ConstantScheme.Iff.constantScheme S I).hom i₂ := e.inv.w |
| 76 | exact he ▸ (finiteConstantScheme_isClosedMap Y I).comp |
| 77 | (((Over.forget Y).mapIso e).inv.homeomorph.isClosedMap) |
| 78 | have he : h.flip.isoPullback.hom ≫ pullback.snd (AbelianModuli.HilbertConstruction.ConstantScheme.Iff.constantScheme S I).hom i₂ = f := |
| 79 | h.flip.isoPullback_hom_snd |
| 80 | exact he ▸ hsnd.comp h.flip.isoPullback.hom.homeomorph.isClosedMap |
| 81 | |
| 82 | /-- The actual finite disjoint union is finite over its base. -/ |
| 83 | theorem finiteConstantScheme_finite [Finite I] : IsFinite (AbelianModuli.HilbertConstruction.ConstantScheme.Iff.constantScheme S I).hom := by |
| 84 | have := finiteConstantScheme_etale S I |
| 85 | have := finiteConstantScheme_affine S I |
| 86 | have := finiteConstantScheme_universallyClosed S I |
| 87 | have : LocallyQuasiFinite (AbelianModuli.HilbertConstruction.ConstantScheme.Iff.constantScheme S I).hom := by |
| 88 | have := HasRingHomProperty.instIsZariskiLocalAtSource |
| 89 | (P := @LocallyQuasiFinite.{u}) (Q := @RingHom.QuasiFinite) |
| 90 | change LocallyQuasiFinite (Sigma.desc (fun _ : I => 𝟙 S)) |
| 91 | exact IsZariskiLocalAtSource.sigmaDesc (P := @LocallyQuasiFinite.{u}) |
| 92 | (fun _ => inferInstanceAs (LocallyQuasiFinite (𝟙 S))) |
| 93 | have : IsProper (AbelianModuli.HilbertConstruction.ConstantScheme.Iff.constantScheme S I).hom := ⟨⟩ |
| 94 | exact IsFinite.of_isProper_of_locallyQuasiFinite _ |
| 95 | |
| 96 | variable (ℓ n : ℕ) (X : Scheme.{u}) |
| 97 | |
| 98 | /-- Continuous functions to discrete coefficients are exactly locally constant functions. -/ |
| 99 | def locallyConstantContinuousEquiv {T A : Type*} [TopologicalSpace T] |
| 100 | [TopologicalSpace A] [DiscreteTopology A] : LocallyConstant T A ≃ C(T, A) where |
| 101 | toFun f := ⟨f, f.continuous⟩ |
| 102 | invFun f := ⟨f, (IsLocallyConstant.iff_continuous _).mpr f.continuous⟩ |
| 103 | left_inv f := by ext; rfl |
| 104 | right_inv f := by ext; rfl |
| 105 | |
| 106 | /-- The finite coefficient scheme as an actual object of the pro-étale site. -/ |
| 107 | def finiteCoefficientProEt : X.ProEt := by |
| 108 | have := finiteConstantScheme_etale X (ULift.{u} (ZMod (ℓ ^ n))) |
| 109 | exact Scheme.ProEt.mk (AbelianModuli.HilbertConstruction.ConstantScheme.Iff.constantScheme X (ULift.{u} (ZMod (ℓ ^ n)))).hom |
| 110 | |
| 111 | theorem finiteCoefficientProEt_finite [NeZero (ℓ ^ n)] : |
| 112 | IsFinite (finiteCoefficientProEt ℓ n X).hom := |
| 113 | finiteConstantScheme_finite X (ULift.{u} (ZMod (ℓ ^ n))) |
| 114 | |
| 115 | /-- Maps to the coefficient object are exactly continuous finite coefficient functions. -/ |
| 116 | def finiteCoefficientProEtHomEquiv (U : X.ProEt) : |
| 117 | (U ⟶ finiteCoefficientProEt ℓ n X) ≃ C(U.left, ZMod (ℓ ^ n)) := |
| 118 | ((Scheme.ProEt.forgetFullyFaithful X).homEquiv).trans |
| 119 | ((AbelianModuli.HilbertConstruction.ConstantScheme.Iff.constantSchemePointsEquiv X (ULift.{u} (ZMod (ℓ ^ n))) |
| 120 | ((Scheme.ProEt.forget X).obj U)).trans |
| 121 | ((LocallyConstant.congrRight Equiv.ulift).trans |
| 122 | locallyConstantContinuousEquiv)) |
| 123 | |
| 124 | /-- The actual coefficient sheaf is represented by the finite coefficient scheme. -/ |
| 125 | def finiteCoefficientRepresentable : |
| 126 | ((CoefficientSheaf.Construction.finiteEllAdicCoefficient ℓ n X).obj ⋙ forget Ab.{u + 1}).RepresentableBy |
| 127 | (finiteCoefficientProEt ℓ n X) where |
| 128 | homEquiv {U} := (finiteCoefficientProEtHomEquiv ℓ n X U).trans Equiv.ulift.symm |
| 129 | homEquiv_comp f g := by |
| 130 | apply ULift.ext |
| 131 | apply ContinuousMap.ext |
| 132 | intro x |
| 133 | rfl |
| 134 | |
| 135 | end |
| 136 | |
| 137 | end OAI.AlgebraicGeometry.FormalGeometry.Completion.Finite.ConstantScheme.Construction |