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.PointedLifts |
| 2 | import Mathlib.AlgebraicGeometry.Geometrically.Connected |
| 3 | |
| 4 | /-! # Pointed Lifts -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.PELModuli.IntegralModel.Relative.PointedLifts |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Pointed unramified lifts are unique over any base when the source |
| 11 | has geometrically connected fibers. The equality locus is open and closed, |
| 12 | and the common section meets every fiber. No connectedness or reducedness |
| 13 | of the base is required. -/ |
| 14 | |
| 15 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry |
| 16 | |
| 17 | theorem clopen_eq_univ_of_connected_fibers_and_section |
| 18 | {X B : Type*} [TopologicalSpace X] (p : X → B) (s : B → X) |
| 19 | (hs : Function.RightInverse s p) (hconn : ∀ b, IsConnected (p ⁻¹' {b})) |
| 20 | {U : Set X} (hU : IsClopen U) (hsec : Set.range s ⊆ U) : U = Set.univ := by |
| 21 | apply Set.eq_univ_of_forall |
| 22 | intro x |
| 23 | let F := {y : X // p y = p x} |
| 24 | have : ConnectedSpace F := isConnected_iff_connectedSpace.mp (hconn (p x)) |
| 25 | have hc : IsClopen ((Subtype.val : F → X) ⁻¹' U) := hU.preimage continuous_subtype_val |
| 26 | have hn : ((Subtype.val : F → X) ⁻¹' U).Nonempty := |
| 27 | ⟨⟨s (p x), hs (p x)⟩, hsec (Set.mem_range_self _)⟩ |
| 28 | have heq := hc.eq_univ hn |
| 29 | have hmem : (⟨x, rfl⟩ : F) ∈ (Subtype.val : F → X) ⁻¹' U := by rw [heq]; trivial |
| 30 | exact hmem |
| 31 | |
| 32 | theorem relative_pointed_unramified_lifts_unique |
| 33 | {B X Y Z : Scheme} (pX : X ⟶ B) [GeometricallyConnected pX] |
| 34 | (s : B ⟶ X) (hs : s ≫ pX = 𝟙 B) |
| 35 | (q : Y ⟶ Z) [FormallyUnramified q] [LocallyOfFiniteType q] [IsSeparated q] |
| 36 | (f g : X ⟶ Y) (hcomp : f ≫ q = g ≫ q) |
| 37 | (hpoint : s ≫ f = s ≫ g) : f = g := by |
| 38 | let p : X ⟶ pullback q q := pullback.lift f g hcomp |
| 39 | let d := pullback.diagonal q |
| 40 | let E := pullback p d |
| 41 | let e : E ⟶ X := pullback.fst p d |
| 42 | have hpoint' : s ≫ p = (s ≫ f) ≫ d := by |
| 43 | apply pullback.hom_ext |
| 44 | · simp only [Category.assoc, p, d, pullback.lift_fst, pullback.diagonal_fst, Category.comp_id] |
| 45 | · simp only [Category.assoc, p, d, pullback.lift_snd, pullback.diagonal_snd, Category.comp_id] |
| 46 | exact hpoint.symm |
| 47 | let z : B ⟶ E := pullback.lift s (s ≫ f) hpoint' |
| 48 | have : IsOpenImmersion e := inferInstanceAs (IsOpenImmersion (pullback.fst p d)) |
| 49 | have : IsClosedImmersion e := inferInstanceAs (IsClosedImmersion (pullback.fst p d)) |
| 50 | have he : IsClopen (Set.range e) := ⟨e.isClosedEmbedding.isClosed_range, e.isOpenEmbedding.isOpen_range⟩ |
| 51 | have hsection : Function.RightInverse s pX := fun b => congrArg (fun m : B ⟶ B => m b) hs |
| 52 | have hsec : Set.range s ⊆ Set.range e := by |
| 53 | rintro _ ⟨b, rfl⟩ |
| 54 | exact ⟨z b, congrArg (fun m : B ⟶ X => m b) (pullback.lift_fst _ _ _)⟩ |
| 55 | have hrange : Set.range e = Set.univ := clopen_eq_univ_of_connected_fibers_and_section |
| 56 | pX s hsection pX.isConnected_preimage_singleton he hsec |
| 57 | have : Surjective e := ⟨Set.range_eq_univ.mp hrange⟩ |
| 58 | have : IsIso e := (isIso_iff_isOpenImmersion_and_surjective e).mpr ⟨inferInstance, inferInstance⟩ |
| 59 | have h : e ≫ p = pullback.snd p d ≫ d := pullback.condition |
| 60 | have hf : e ≫ f = pullback.snd p d := by |
| 61 | simpa only [Category.assoc, p, d, pullback.lift_fst, pullback.diagonal_fst, Category.comp_id] |
| 62 | using congrArg (fun k => k ≫ pullback.fst q q) h |
| 63 | have hg : e ≫ g = pullback.snd p d := by |
| 64 | simpa only [Category.assoc, p, d, pullback.lift_snd, pullback.diagonal_snd, Category.comp_id] |
| 65 | using congrArg (fun k => k ≫ pullback.snd q q) h |
| 66 | exact (cancel_epi e).mp (hf.trans hg.symm) |
| 67 | |
| 68 | end |
| 69 | |
| 70 | end OAI.AlgebraicGeometry.PELModuli.IntegralModel.Relative.PointedLifts |