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.Affine |
| 2 | |
| 3 | /-! # Affine Neighborhood Inside -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.Divisors.LineBundles.Section.AffineNeighborhoodInside.BundleCycles |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | section |
| 10 | |
| 11 | /-! # LineBundleCycles: actual compatible affine neighborhoods of every point of a scheme section -/ |
| 12 | |
| 13 | open _root_.AlgebraicGeometry _root_.CategoryTheory |
| 14 | |
| 15 | theorem section_exists_affineNeighborhoods {X Y : Scheme.{0}} (p : Y ⟶ X) (s : X ⟶ Y) |
| 16 | (hs : s ≫ p = 𝟙 X) (x : X) : |
| 17 | ∃ (U : Y.Opens) (V : X.Opens), IsAffineOpen U ∧ IsAffineOpen V ∧ x ∈ V ∧ |
| 18 | V ≤ s ⁻¹ᵁ U ∧ U ≤ p ⁻¹ᵁ V := by |
| 19 | obtain ⟨V₀, hV₀, hxV₀, _⟩ := exists_isAffineOpen_mem_and_subset (show x ∈ (⊤ : X.Opens) from trivial) |
| 20 | have hsx : p (s x) = x := congrArg (fun f => f x) hs |
| 21 | obtain ⟨U₀, hU₀, hsxU₀, hU₀V₀⟩ := exists_isAffineOpen_mem_and_subset |
| 22 | (show s x ∈ p ⁻¹ᵁ V₀ by change p (s x) ∈ V₀; rw [hsx]; exact hxV₀) |
| 23 | change U₀ ≤ p ⁻¹ᵁ V₀ at hU₀V₀ |
| 24 | obtain ⟨V, hV, hxV, hVV₀⟩ := exists_isAffineOpen_mem_and_subset |
| 25 | (show x ∈ V₀ ⊓ s ⁻¹ᵁ U₀ from ⟨hxV₀, hsxU₀⟩) |
| 26 | change V ≤ V₀ ⊓ s ⁻¹ᵁ U₀ at hVV₀ |
| 27 | let q : U₀.toScheme ⟶ V₀.toScheme := Y.homOfLE hU₀V₀ ≫ morphismRestrict p V₀ |
| 28 | have hq : q ≫ V₀.ι = U₀.ι ≫ p := by |
| 29 | dsimp only [q] |
| 30 | rw [Category.assoc, morphismRestrict_ι, ← Category.assoc, Scheme.homOfLE_ι] |
| 31 | have : IsAffine U₀.toScheme := hU₀ |
| 32 | have : IsAffine V₀.toScheme := hV₀ |
| 33 | have hVV₀' : V ≤ V₀.ι.opensRange := by |
| 34 | rw [Scheme.Opens.opensRange_ι] |
| 35 | exact fun y hy => (hVV₀ hy).1 |
| 36 | have hW : IsAffineOpen (q ⁻¹ᵁ (V₀.ι ⁻¹ᵁ V)) := |
| 37 | (hV.preimage_of_isOpenImmersion V₀.ι hVV₀').preimage q |
| 38 | let U := U₀.ι ''ᵁ (q ⁻¹ᵁ (V₀.ι ⁻¹ᵁ V)) |
| 39 | have hU : IsAffineOpen U := hW.image_of_isOpenImmersion U₀.ι |
| 40 | have hUeq : U = U₀ ⊓ p ⁻¹ᵁ V := by |
| 41 | ext y |
| 42 | constructor |
| 43 | · rintro ⟨z, hz, rfl⟩ |
| 44 | refine ⟨z.property, ?_⟩ |
| 45 | have he := congrArg (fun f => f z) hq |
| 46 | change V₀.ι (q z) ∈ V at hz |
| 47 | change p (U₀.ι z) ∈ V |
| 48 | exact he ▸ hz |
| 49 | · rintro ⟨hy, hpy⟩ |
| 50 | refine ⟨⟨y, hy⟩, ?_, rfl⟩ |
| 51 | have he := congrArg (fun f => f (⟨y, hy⟩ : U₀.toScheme)) hq |
| 52 | change V₀.ι (q ⟨y, hy⟩) ∈ V |
| 53 | exact he.symm ▸ hpy |
| 54 | refine ⟨U, V, hU, hV, hxV, ?_, ?_⟩ |
| 55 | · intro y hy |
| 56 | change s y ∈ U |
| 57 | rw [hUeq] |
| 58 | refine ⟨(hVV₀ hy).2, ?_⟩ |
| 59 | change p (s y) ∈ V |
| 60 | exact (congrArg (fun f => f y) hs).symm ▸ hy |
| 61 | · rw [hUeq] |
| 62 | exact inf_le_right |
| 63 | |
| 64 | end |
| 65 | |
| 66 | /-! Compatible affine section neighborhoods can be chosen inside any given ambient open neighborhood. -/ |
| 67 | |
| 68 | open _root_.AlgebraicGeometry _root_.CategoryTheory |
| 69 | |
| 70 | theorem section_exists_affineNeighborhoods_inside {X Y : Scheme.{0}} (p : Y ⟶ X) (s : X ⟶ Y) |
| 71 | (hs : s ≫ p = 𝟙 X) (x : X) (W : Y.Opens) (hxW : s x ∈ W) : |
| 72 | ∃ (U : Y.Opens) (V : X.Opens), IsAffineOpen U ∧ IsAffineOpen V ∧ x ∈ V ∧ |
| 73 | V ≤ s ⁻¹ᵁ U ∧ U ≤ p ⁻¹ᵁ V ∧ U ≤ W := by |
| 74 | obtain ⟨V₀, hV₀, hxV₀, _⟩ := exists_isAffineOpen_mem_and_subset (show x ∈ (⊤ : X.Opens) from trivial) |
| 75 | have hsx : p (s x) = x := congrArg (fun f => f x) hs |
| 76 | obtain ⟨U₀, hU₀, hsxU₀, hU₀W⟩ := exists_isAffineOpen_mem_and_subset |
| 77 | (show s x ∈ W ⊓ p ⁻¹ᵁ V₀ from ⟨hxW, by change p (s x) ∈ V₀; rw [hsx]; exact hxV₀⟩) |
| 78 | have hU₀V₀ : U₀ ≤ p ⁻¹ᵁ V₀ := fun y hy => (hU₀W hy).2 |
| 79 | obtain ⟨V, hV, hxV, hVV₀⟩ := exists_isAffineOpen_mem_and_subset |
| 80 | (show x ∈ V₀ ⊓ s ⁻¹ᵁ U₀ from ⟨hxV₀, hsxU₀⟩) |
| 81 | change V ≤ V₀ ⊓ s ⁻¹ᵁ U₀ at hVV₀ |
| 82 | let q : U₀.toScheme ⟶ V₀.toScheme := Y.homOfLE hU₀V₀ ≫ morphismRestrict p V₀ |
| 83 | have hq : q ≫ V₀.ι = U₀.ι ≫ p := by |
| 84 | dsimp only [q] |
| 85 | rw [Category.assoc, morphismRestrict_ι, ← Category.assoc, Scheme.homOfLE_ι] |
| 86 | have : IsAffine U₀.toScheme := hU₀ |
| 87 | have : IsAffine V₀.toScheme := hV₀ |
| 88 | have hVV₀' : V ≤ V₀.ι.opensRange := by |
| 89 | rw [Scheme.Opens.opensRange_ι] |
| 90 | exact fun y hy => (hVV₀ hy).1 |
| 91 | have hW : IsAffineOpen (q ⁻¹ᵁ (V₀.ι ⁻¹ᵁ V)) := |
| 92 | (hV.preimage_of_isOpenImmersion V₀.ι hVV₀').preimage q |
| 93 | let U := U₀.ι ''ᵁ (q ⁻¹ᵁ (V₀.ι ⁻¹ᵁ V)) |
| 94 | have hU : IsAffineOpen U := hW.image_of_isOpenImmersion U₀.ι |
| 95 | have hUeq : U = U₀ ⊓ p ⁻¹ᵁ V := by |
| 96 | ext y |
| 97 | constructor |
| 98 | · rintro ⟨z, hz, rfl⟩ |
| 99 | refine ⟨z.property, ?_⟩ |
| 100 | have he := congrArg (fun f => f z) hq |
| 101 | change V₀.ι (q z) ∈ V at hz |
| 102 | change p (U₀.ι z) ∈ V |
| 103 | exact he ▸ hz |
| 104 | · rintro ⟨hy, hpy⟩ |
| 105 | refine ⟨⟨y, hy⟩, ?_, rfl⟩ |
| 106 | have he := congrArg (fun f => f (⟨y, hy⟩ : U₀.toScheme)) hq |
| 107 | change V₀.ι (q ⟨y, hy⟩) ∈ V |
| 108 | exact he.symm ▸ hpy |
| 109 | refine ⟨U, V, hU, hV, hxV, ?_, ?_, ?_⟩ |
| 110 | · intro y hy |
| 111 | change s y ∈ U |
| 112 | rw [hUeq] |
| 113 | refine ⟨(hVV₀ hy).2, ?_⟩ |
| 114 | change p (s y) ∈ V |
| 115 | exact (congrArg (fun f => f y) hs).symm ▸ hy |
| 116 | · rw [hUeq] |
| 117 | exact inf_le_right |
| 118 | |
| 119 | · rw [hUeq] |
| 120 | exact fun y hy => (hU₀W hy.1).1 |
| 121 | |
| 122 | end |
| 123 | |
| 124 | end OAI.AlgebraicGeometry.Divisors.LineBundles.Section.AffineNeighborhoodInside.BundleCycles |