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.Divisors.LineBundles.Section.AffineNeighborhoodInside |
| 2 | |
| 3 | /-! # Morphism Neighborhoods -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.PELModuli.IntegralModel.Section.MorphismNeighborhoods |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! Every finite family of section-preserving endomorphisms admits |
| 10 | actual affine source and target neighborhoods over the same affine base open. -/ |
| 11 | |
| 12 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 13 | |
| 14 | theorem affineOpen_inter_base_preimage {X Y : Scheme.{0}} (p : Y ⟶ X) |
| 15 | (U : Y.Opens) (V₀ V : X.Opens) (hU : IsAffineOpen U) |
| 16 | (hV₀ : IsAffineOpen V₀) (hV : IsAffineOpen V) |
| 17 | (hUV₀ : U ≤ p ⁻¹ᵁ V₀) (hVV₀ : V ≤ V₀) : |
| 18 | IsAffineOpen (U ⊓ p ⁻¹ᵁ V) := by |
| 19 | let q : U.toScheme ⟶ V₀.toScheme := Y.homOfLE hUV₀ ≫ morphismRestrict p V₀ |
| 20 | have hq : q ≫ V₀.ι = U.ι ≫ p := by |
| 21 | dsimp only [q] |
| 22 | rw [Category.assoc, morphismRestrict_ι, ← Category.assoc, Scheme.homOfLE_ι] |
| 23 | have : IsAffine U.toScheme := hU |
| 24 | have : IsAffine V₀.toScheme := hV₀ |
| 25 | have hVV₀' : V ≤ V₀.ι.opensRange := by |
| 26 | rw [Scheme.Opens.opensRange_ι] |
| 27 | exact hVV₀ |
| 28 | have hW : IsAffineOpen (q ⁻¹ᵁ (V₀.ι ⁻¹ᵁ V)) := |
| 29 | (hV.preimage_of_isOpenImmersion V₀.ι hVV₀').preimage q |
| 30 | have himage : U.ι ''ᵁ (q ⁻¹ᵁ (V₀.ι ⁻¹ᵁ V)) = U ⊓ p ⁻¹ᵁ V := by |
| 31 | ext y |
| 32 | constructor |
| 33 | · rintro ⟨z, hz, rfl⟩ |
| 34 | refine ⟨z.property, ?_⟩ |
| 35 | have he := congrArg (fun f => f z) hq |
| 36 | change V₀.ι (q z) ∈ V at hz |
| 37 | change p (U.ι z) ∈ V |
| 38 | exact he ▸ hz |
| 39 | · rintro ⟨hy, hpy⟩ |
| 40 | refine ⟨⟨y, hy⟩, ?_, rfl⟩ |
| 41 | have he := congrArg (fun f => f (⟨y, hy⟩ : U.toScheme)) hq |
| 42 | change V₀.ι (q ⟨y, hy⟩) ∈ V |
| 43 | exact he.symm ▸ hpy |
| 44 | exact himage ▸ hW.image_of_isOpenImmersion U.ι |
| 45 | |
| 46 | theorem section_exists_affine_morphism_neighborhoods |
| 47 | {X Y : Scheme.{0}} (p : Y ⟶ X) (s : X ⟶ Y) (hs : s ≫ p = 𝟙 X) |
| 48 | {ι : Type} [Finite ι] (f : ι → (Y ⟶ Y)) |
| 49 | (hf : ∀ i, f i ≫ p = p) (he : ∀ i, s ≫ f i = s) (x : X) : |
| 50 | ∃ (U W : Y.Opens) (V : X.Opens), |
| 51 | IsAffineOpen U ∧ IsAffineOpen W ∧ IsAffineOpen V ∧ x ∈ V ∧ |
| 52 | V ≤ s ⁻¹ᵁ W ∧ W ≤ U ∧ U ≤ p ⁻¹ᵁ V ∧ |
| 53 | ∀ i, W ≤ f i ⁻¹ᵁ U := by |
| 54 | obtain ⟨U₀, V₀, hU₀, hV₀, hxV₀, hsU₀, hpU₀⟩ := |
| 55 | Divisors.LineBundles.Section.AffineNeighborhoodInside.BundleCycles.section_exists_affineNeighborhoods p s hs x |
| 56 | have hxH : s x ∈ U₀ ⊓ ⨅ i, f i ⁻¹ᵁ U₀ := by |
| 57 | refine ⟨hsU₀ hxV₀, ?_⟩ |
| 58 | rw [TopologicalSpace.Opens.coe_iInf, Set.mem_iInter] |
| 59 | intro i |
| 60 | change f i (s x) ∈ U₀ |
| 61 | have hix : f i (s x) = s x := congrArg (fun g => g x) (he i) |
| 62 | exact hix.symm ▸ hsU₀ hxV₀ |
| 63 | obtain ⟨W₀, hW₀, hxW₀, hW₀H⟩ := exists_isAffineOpen_mem_and_subset hxH |
| 64 | change W₀ ≤ U₀ ⊓ ⨅ i, f i ⁻¹ᵁ U₀ at hW₀H |
| 65 | obtain ⟨V, hV, hxV, hVsub⟩ := exists_isAffineOpen_mem_and_subset |
| 66 | (show x ∈ V₀ ⊓ s ⁻¹ᵁ W₀ from ⟨hxV₀, hxW₀⟩) |
| 67 | change V ≤ V₀ ⊓ s ⁻¹ᵁ W₀ at hVsub |
| 68 | let U := U₀ ⊓ p ⁻¹ᵁ V |
| 69 | let W := W₀ ⊓ p ⁻¹ᵁ V |
| 70 | have hUV : IsAffineOpen U := affineOpen_inter_base_preimage p U₀ V₀ V hU₀ hV₀ hV |
| 71 | hpU₀ (le_trans hVsub inf_le_left) |
| 72 | have hWV : IsAffineOpen W := affineOpen_inter_base_preimage p W₀ V₀ V hW₀ hV₀ hV |
| 73 | (le_trans (le_trans hW₀H inf_le_left) hpU₀) (le_trans hVsub inf_le_left) |
| 74 | refine ⟨U, W, V, hUV, hWV, hV, hxV, ?_, ?_, inf_le_right, ?_⟩ |
| 75 | · intro y hy |
| 76 | refine ⟨(hVsub hy).2, ?_⟩ |
| 77 | change p (s y) ∈ V |
| 78 | exact (congrArg (fun g => g y) hs).symm ▸ hy |
| 79 | · exact inf_le_inf (le_trans hW₀H inf_le_left) le_rfl |
| 80 | · intro i y hy |
| 81 | refine ⟨?_, ?_⟩ |
| 82 | · have h := (hW₀H hy.1).2 |
| 83 | rw [TopologicalSpace.Opens.coe_iInf, Set.mem_iInter] at h |
| 84 | exact h i |
| 85 | · change p (f i y) ∈ V |
| 86 | exact (congrArg (fun g => g y) (hf i)).symm ▸ hy.2 |
| 87 | |
| 88 | end |
| 89 | |
| 90 | end OAI.AlgebraicGeometry.PELModuli.IntegralModel.Section.MorphismNeighborhoods |