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.Immersion |
| 2 | import Mathlib.AlgebraicGeometry.Morphisms.Proper |
| 3 | |
| 4 | /-! # Proper Local -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.Quotients.FiniteDescent.ProperLocal.Construction.ProperLocalImmersion |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Recognize closed immersions from properness and local graph charts. -/ |
| 11 | |
| 12 | open _root_.CategoryTheory _root_.AlgebraicGeometry _root_.CategoryTheory.Limits |
| 13 | |
| 14 | universe u v |
| 15 | |
| 16 | theorem immersion_of_open_coordinate {Z U X P Q : Scheme.{u}} |
| 17 | (a : Z ⟶ U) (g : Z ⟶ P) (i : U ⟶ X) |
| 18 | (c : U ⟶ Q) [IsOpenImmersion c] (r : P ⟶ Q) (h : a ≫ c = g ≫ r) |
| 19 | [IsImmersion (prod.lift (a ≫ i) g)] : IsImmersion g := by |
| 20 | let k := pullback.lift a g h |
| 21 | let t : pullback c r ⟶ X ⨯ P := prod.lift (pullback.fst c r ≫ i) (pullback.snd c r) |
| 22 | have hkt : k ≫ t = prod.lift (a ≫ i) g := by |
| 23 | apply prod.hom_ext <;> |
| 24 | simp only [k, t, Category.assoc, prod.lift_fst, prod.lift_snd, |
| 25 | pullback.lift_fst_assoc, pullback.lift_snd] |
| 26 | have : IsImmersion (k ≫ t) := by rw [hkt]; infer_instance |
| 27 | have : IsImmersion k := IsImmersion.of_comp k t |
| 28 | have he : g = k ≫ pullback.snd c r := (pullback.lift_snd _ _ _).symm |
| 29 | rw [he] |
| 30 | infer_instance |
| 31 | |
| 32 | theorem closed_of_chart_cover {X Y : Scheme.{u}} (f : X ⟶ Y) [IsProper f] |
| 33 | {ι : Type v} (V : ι → Y.Opens) (hV : ∀ x : X, ∃ i, f x ∈ V i) |
| 34 | (hi : ∀ i, IsImmersion ((f ⁻¹ᵁ V i).ι ≫ f)) : IsClosedImmersion f := by |
| 35 | have hinj : Function.Injective f := by |
| 36 | intro x y hxy |
| 37 | obtain ⟨i, hx⟩ := hV x |
| 38 | have hy : f y ∈ V i := hxy ▸ hx |
| 39 | have := hi i |
| 40 | have he : ((f ⁻¹ᵁ V i).ι ≫ f) (⟨x, hx⟩ : (f ⁻¹ᵁ V i).toScheme) = |
| 41 | ((f ⁻¹ᵁ V i).ι ≫ f) (⟨y, hy⟩ : (f ⁻¹ᵁ V i).toScheme) := hxy |
| 42 | exact congrArg Subtype.val (((f ⁻¹ᵁ V i).ι ≫ f).isEmbedding.injective he) |
| 43 | have : SurjectiveOnStalks f := by |
| 44 | constructor |
| 45 | intro x |
| 46 | obtain ⟨i, hx⟩ := hV x |
| 47 | have := hi i |
| 48 | let x' : (f ⁻¹ᵁ V i).toScheme := ⟨x, hx⟩ |
| 49 | have hs := ((f ⁻¹ᵁ V i).ι ≫ f).stalkMap_surjective x' |
| 50 | rw [Scheme.Hom.stalkMap_comp] at hs |
| 51 | intro s |
| 52 | obtain ⟨r, hr⟩ := hs ((f ⁻¹ᵁ V i).ι.stalkMap x' s) |
| 53 | refine ⟨r, ?_⟩ |
| 54 | exact (ConcreteCategory.bijective_of_isIso ((f ⁻¹ᵁ V i).ι.stalkMap x')).1 hr |
| 55 | exact ⟨Topology.IsClosedEmbedding.of_continuous_injective_isClosedMap |
| 56 | f.continuous hinj f.isClosedMap⟩ |
| 57 | |
| 58 | end |
| 59 | |
| 60 | end OAI.AlgebraicGeometry.Quotients.FiniteDescent.ProperLocal.Construction.ProperLocalImmersion |