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 Mathlib.AlgebraicGeometry.Morphisms.Smooth |
| 2 | |
| 3 | /-! # Source Property Open Locus -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.SourcePropertyOpenLocus |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! Every morphism property local on the source has a largest open source locus on which it holds. This supplies the source locus for a specified smooth relative dimension. -/ |
| 10 | |
| 11 | open _root_.CategoryTheory _root_.AlgebraicGeometry _root_.TopologicalSpace |
| 12 | |
| 13 | universe u |
| 14 | |
| 15 | variable (P : MorphismProperty Scheme.{u}) [IsZariskiLocalAtSource P] |
| 16 | variable {X S : Scheme.{u}} (f : X ⟶ S) |
| 17 | |
| 18 | def sourcePropertyOpenLocus : X.Opens := ⨆ U : {U : X.Opens // P (U.ι ≫ f)}, U.val |
| 19 | |
| 20 | omit [IsZariskiLocalAtSource P] in |
| 21 | theorem le_sourcePropertyOpenLocus (U : X.Opens) (hU : P (U.ι ≫ f)) : U ≤ sourcePropertyOpenLocus P f := |
| 22 | le_iSup (fun V : {V : X.Opens // P (V.ι ≫ f)} => V.val) ⟨U, hU⟩ |
| 23 | |
| 24 | theorem sourcePropertyOpenLocus_property : P ((sourcePropertyOpenLocus P f).ι ≫ f) := by |
| 25 | let V := sourcePropertyOpenLocus P f |
| 26 | let W (U : {U : X.Opens // P (U.ι ≫ f)}) : V.toScheme.Opens := V.ι ⁻¹ᵁ U.val |
| 27 | have hW : (⨆ U, W U) = ⊤ := by |
| 28 | apply top_le_iff.mp |
| 29 | intro x _ |
| 30 | obtain ⟨U, hx⟩ := (Opens.mem_iSup).mp x.property |
| 31 | exact (Opens.mem_iSup).mpr ⟨U, hx⟩ |
| 32 | apply IsZariskiLocalAtSource.of_iSup_eq_top (P := P) W hW |
| 33 | intro U |
| 34 | have : IsOpenImmersion (V.ι.resLE U.val (W U) le_rfl) := by |
| 35 | dsimp only [Scheme.Hom.resLE] |
| 36 | infer_instance |
| 37 | have hr : P (V.ι.resLE U.val (W U) le_rfl ≫ U.val.ι ≫ f) := |
| 38 | IsZariskiLocalAtSource.comp U.property (V.ι.resLE U.val (W U) le_rfl) |
| 39 | rw [← Category.assoc, Scheme.Hom.resLE_comp_ι, Category.assoc] at hr |
| 40 | exact hr |
| 41 | |
| 42 | theorem sourcePropertyOpenLocus_iff (U : X.Opens) : P (U.ι ≫ f) ↔ U ≤ sourcePropertyOpenLocus P f := by |
| 43 | refine ⟨le_sourcePropertyOpenLocus P f U, fun hU => ?_⟩ |
| 44 | have h := IsZariskiLocalAtSource.comp (sourcePropertyOpenLocus_property P f) (X.homOfLE hU) |
| 45 | rwa [← Category.assoc, Scheme.homOfLE_ι] at h |
| 46 | |
| 47 | end |
| 48 | |
| 49 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.SourcePropertyOpenLocus |