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.LocalLocusPointCriterion |
| 2 | import Mathlib.AlgebraicGeometry.Morphisms.Immersion |
| 3 | |
| 4 | /-! # Clopen Locus Gluing -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.AbelianModuli.ReferenceFamily.ClopenLocusGluing |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Compatible local clopen classifiers glue to the actual open |
| 11 | subscheme on every test scheme. The construction retains nilpotents. -/ |
| 12 | |
| 13 | open _root_.CategoryTheory _root_.AlgebraicGeometry _root_.TopologicalSpace |
| 14 | |
| 15 | theorem openImmersion_unique_lift_iff_range {X Z T : Scheme.{0}} |
| 16 | (j : Z ⟶ X) [IsOpenImmersion j] (f : T ⟶ X) : |
| 17 | (∃! q : T ⟶ Z, q ≫ j = f) ↔ Set.range f ⊆ Set.range j := by |
| 18 | constructor |
| 19 | · rintro ⟨q, hq, _⟩ _ ⟨t, rfl⟩ |
| 20 | exact ⟨q t, congrArg (fun m : T ⟶ X => m t) hq⟩ |
| 21 | · intro h |
| 22 | let q := IsOpenImmersion.lift j f h |
| 23 | have hq : q ≫ j = f := IsOpenImmersion.lift_fac j f h |
| 24 | exact ⟨q, hq, fun v hv => (cancel_mono j).mp (hv.trans hq.symm)⟩ |
| 25 | |
| 26 | theorem exists_global_clopen_locus_of_local_classifiers |
| 27 | {S : Scheme.{0}} (F : Subfunctor (yoneda.obj S)) |
| 28 | {I : Type} (U : I → S.Opens) (hU : IsOpenCover U) |
| 29 | (Z : I → Scheme.{0}) (j : ∀ i, Z i ⟶ (U i).toScheme) |
| 30 | (hj : ∀ i, IsOpenImmersion (j i)) (hcj : ∀ i, IsClosedImmersion (j i)) |
| 31 | (hclass : ∀ (i : I) (T : Scheme.{0}) (x : T ⟶ (U i).toScheme), |
| 32 | x ≫ (U i).ι ∈ F.obj (.op T) ↔ ∃! q : T ⟶ Z i, q ≫ j i = x) |
| 33 | (hgeo : ∀ (T : Scheme.{0}) (x : T ⟶ S), |
| 34 | (∀ (k : Type) [Field k] [IsAlgClosed k] (p : Spec (.of k) ⟶ T), |
| 35 | p ≫ x ∈ F.obj (.op (Spec (.of k)))) → x ∈ F.obj (.op T)) : |
| 36 | ∃ L : S.Opens, IsClosed (L : Set S) ∧ |
| 37 | ∀ (T : Scheme.{0}) (x : T ⟶ S), |
| 38 | x ∈ F.obj (.op T) ↔ ∃! q : T ⟶ L.toScheme, q ≫ L.ι = x := by |
| 39 | let hc : ∀ (i : I) (T : Scheme.{0}) [IsReduced T] (x : T ⟶ (U i).toScheme), |
| 40 | x ≫ (U i).ι ∈ F.obj (.op T) ↔ Set.range x ⊆ Set.range (j i) := by |
| 41 | intro i T _ x |
| 42 | let := hj i |
| 43 | exact (hclass i T x).trans (openImmersion_unique_lift_iff_range (j i) x) |
| 44 | let W := PELModuli.IntegralModel.LocalLocusPointCriterion.ReducedLocusGluing.locusSet U Z j |
| 45 | have hopen : IsOpen W := by |
| 46 | apply hU.isOpen_iff_coe_preimage.mpr |
| 47 | intro i |
| 48 | change IsOpen ((U i).ι ⁻¹' W) |
| 49 | rw [PELModuli.IntegralModel.LocalLocusPointCriterion.ReducedLocusGluing.locusSet_preimage F U hU Z j hc i] |
| 50 | let := hj i |
| 51 | exact (j i).isOpenEmbedding.isOpen_range |
| 52 | have hclosed : IsClosed W := by |
| 53 | apply hU.isClosed_iff_coe_preimage.mpr |
| 54 | intro i |
| 55 | change IsClosed ((U i).ι ⁻¹' W) |
| 56 | rw [PELModuli.IntegralModel.LocalLocusPointCriterion.ReducedLocusGluing.locusSet_preimage F U hU Z j hc i] |
| 57 | let := hcj i |
| 58 | exact (j i).isClosedEmbedding.isClosed_range |
| 59 | let L : S.Opens := ⟨W, hopen⟩ |
| 60 | refine ⟨L, hclosed, ?_⟩ |
| 61 | intro T x |
| 62 | rw [openImmersion_unique_lift_iff_range, Scheme.Opens.range_ι] |
| 63 | constructor |
| 64 | · rintro hx _ ⟨t, rfl⟩ |
| 65 | let k := AlgebraicClosure (T.residueField t) |
| 66 | let p : Spec (.of k) ⟶ T := |
| 67 | Spec.map (CommRingCat.ofHom (algebraMap (T.residueField t) k)) ≫ T.fromSpecResidueField t |
| 68 | have hp : p (IsLocalRing.closedPoint k) = t := T.fromSpecResidueField_apply t _ |
| 69 | have hm : p ≫ x ∈ F.obj (.op (Spec (.of k))) := F.map p.op hx |
| 70 | have hr := (PELModuli.IntegralModel.LocalLocusPointCriterion.ReducedLocusGluing.field_mem_iff_locusSet F U hU Z j hc (p ≫ x)).mp hm |
| 71 | change x (p (IsLocalRing.closedPoint k)) ∈ W at hr |
| 72 | exact hp ▸ hr |
| 73 | · intro hx |
| 74 | apply hgeo T x |
| 75 | intro k hk ha p |
| 76 | apply (PELModuli.IntegralModel.LocalLocusPointCriterion.ReducedLocusGluing.field_mem_iff_locusSet F U hU Z j hc (p ≫ x)).mpr |
| 77 | exact hx ⟨p (IsLocalRing.closedPoint k), rfl⟩ |
| 78 | |
| 79 | end |
| 80 | |
| 81 | end OAI.AlgebraicGeometry.AbelianModuli.ReferenceFamily.ClopenLocusGluing |