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.Invariant |
| 2 | import Mathlib.AlgebraicGeometry.Morphisms.Finite |
| 3 | |
| 4 | /-! # Quotient Affine Cover -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.PELModuli.IntegralModel.Finite.QuotientAffineCover |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! A finite quotient gives an invariant affine cover of its source. |
| 11 | On a compact source a finite such cover is chosen. -/ |
| 12 | |
| 13 | open _root_.CategoryTheory _root_.AlgebraicGeometry _root_.TopologicalSpace |
| 14 | |
| 15 | theorem finite_invariant_affine_cover_of_finite_map {X Q R : Scheme.{0}} |
| 16 | [CompactSpace X] (q : X ⟶ Q) [IsFinite q] (s t : R ⟶ X) (h : s ≫ q = t ≫ q) : |
| 17 | ∃ (I : Type) (_ : Finite I) (V : I → X.Opens), |
| 18 | (∀ i, IsAffineOpen (V i)) ∧ (∀ i, s ⁻¹ᵁ V i = t ⁻¹ᵁ V i) ∧ iSup V = ⊤ := by |
| 19 | classical |
| 20 | let V (i : Q.affineCover.I₀) := q ⁻¹ᵁ (Q.affineCover.f i).opensRange |
| 21 | have hV (i) : IsAffineOpen (V i) := (isAffineOpen_opensRange (Q.affineCover.f i)).preimage q |
| 22 | have hc : ∀ x : X, ∃ i, x ∈ V i := by |
| 23 | intro x |
| 24 | exact ⟨Q.affineCover.idx (q x), Q.affineCover.covers (q x)⟩ |
| 25 | obtain ⟨J, hJ⟩ := isCompact_univ.elim_finite_subcover (fun i => (V i : Set X)) |
| 26 | (fun i => (V i).isOpen) (by intro x _; exact Set.mem_iUnion.mpr (hc x)) |
| 27 | refine ⟨J, inferInstance, fun i => V i, fun i => hV i, ?_, ?_⟩ |
| 28 | · intro i |
| 29 | exact (Scheme.Hom.comp_preimage s q _).symm.trans |
| 30 | ((congrArg (fun f : R ⟶ Q => f ⁻¹ᵁ (Q.affineCover.f i).opensRange) h).trans |
| 31 | (Scheme.Hom.comp_preimage t q _)) |
| 32 | · apply top_le_iff.mp |
| 33 | intro x _ |
| 34 | obtain ⟨i, hi⟩ := Set.mem_iUnion.mp (hJ (Set.mem_univ x)) |
| 35 | obtain ⟨hiJ, hxi⟩ := Set.mem_iUnion.mp hi |
| 36 | exact Opens.mem_iSup.mpr ⟨⟨i, hiJ⟩, hxi⟩ |
| 37 | |
| 38 | theorem affine_orbits_of_invariant_cover {X R : Scheme.{0}} (s t : R ⟶ X) |
| 39 | {I : Type} (V : I → X.Opens) (hV : ∀ i, IsAffineOpen (V i)) |
| 40 | (hInv : ∀ i, s ⁻¹ᵁ V i = t ⁻¹ᵁ V i) (hcover : iSup V = ⊤) : |
| 41 | ∀ x : X, ∃ W : X.Opens, IsAffineOpen W ∧ |
| 42 | ∀ y, Quotients.FiniteDescent.Invariant.Construction.InvariantCore.Related s t x y → y ∈ W := by |
| 43 | intro x |
| 44 | have hx : x ∈ iSup V := hcover ▸ Set.mem_univ x |
| 45 | obtain ⟨i, hi⟩ := Opens.mem_iSup.mp hx |
| 46 | refine ⟨V i, hV i, ?_⟩ |
| 47 | rintro y ⟨r, hr, ht⟩ |
| 48 | have hh : r ∈ s ⁻¹ᵁ V i := by simpa only [Scheme.Hom.mem_preimage, hr] using hi |
| 49 | rw [hInv i] at hh |
| 50 | simpa only [Scheme.Hom.mem_preimage, ht] using hh |
| 51 | |
| 52 | end |
| 53 | |
| 54 | end OAI.AlgebraicGeometry.PELModuli.IntegralModel.Finite.QuotientAffineCover |