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.Geometry.ComplexTorus.RiemannProjectivity.ReducedFamiliesOn |
| 2 | import OAI.AlgebraicGeometry.ComplexGroups.HolomorphicAlgebraicity.WeierstrassPreparation |
| 3 | |
| 4 | /-! # Polynomial Simple -/ |
| 5 | |
| 6 | namespace OAI |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | namespace Geometry.ComplexTorus.RiemannProjectivity.PolynomialSimple.Constructions.PolynomialUnitFactor |
| 11 | |
| 12 | /-! # RiemannProjectivity: simple roots descend through local holomorphic factorization -/ |
| 13 | |
| 14 | open _root_.Polynomial Filter |
| 15 | open scoped _root_.Topology |
| 16 | |
| 17 | theorem derivative_eq {p q : ℂ[X]} {u : ℂ → ℂ} {z : ℂ} |
| 18 | (hu : DifferentiableAt ℂ u z) |
| 19 | (heq : (fun w => p.eval w) =ᶠ[𝓝 z] (fun w => q.eval w * u w)) |
| 20 | (hq : q.eval z = 0) : p.derivative.eval z = q.derivative.eval z * u z := by |
| 21 | have hd := ((q.hasDerivAt z).mul hu.hasDerivAt).congr_of_eventuallyEq heq |
| 22 | simpa only [hq, zero_mul, add_zero] using (p.hasDerivAt z).unique hd |
| 23 | |
| 24 | theorem separable_of_local_factors {p q : ℂ[X]} (hp : p.Separable) |
| 25 | (hfactor : ∀ z, q.eval z = 0 → ∃ u : ℂ → ℂ, DifferentiableAt ℂ u z ∧ |
| 26 | (fun w => p.eval w) =ᶠ[𝓝 z] (fun w => q.eval w * u w)) : q.Separable := by |
| 27 | rw [separable_def] |
| 28 | apply (Polynomial.isCoprime_iff_aeval_ne_zero_of_isAlgClosed (k := ℂ) ℂ q q.derivative).mpr |
| 29 | intro z |
| 30 | by_cases hq : q.eval z = 0 |
| 31 | · right |
| 32 | change q.derivative.eval z ≠ 0 |
| 33 | obtain ⟨u, hu, heq⟩ := hfactor z hq |
| 34 | have hpz : p.eval z = 0 := by rw [heq.eq_of_nhds, hq, zero_mul] |
| 35 | have hpd : p.derivative.eval z ≠ 0 := |
| 36 | hp.eval₂_derivative_ne_zero (RingHom.id ℂ) hpz |
| 37 | rw [derivative_eq hu heq hq] at hpd |
| 38 | exact (mul_ne_zero_iff.mp hpd).1 |
| 39 | · left |
| 40 | exact hq |
| 41 | |
| 42 | end Geometry.ComplexTorus.RiemannProjectivity.PolynomialSimple.Constructions.PolynomialUnitFactor |
| 43 | |
| 44 | namespace Geometry.ComplexTorus.RiemannProjectivity.PolynomialSimple.Constructions.SimpleBranch |
| 45 | |
| 46 | /-! |
| 47 | # RiemannProjectivity: a single analytic branch is a simple root of the reduced family |
| 48 | |
| 49 | Preparation preserves multiplicities. At a nearby separable fiber its |
| 50 | single root forces preparation degree one; the same degree at the original |
| 51 | fiber makes the polynomial's vertical derivative nonzero. |
| 52 | -/ |
| 53 | |
| 54 | open Set Filter _root_.Polynomial _root_.Metric |
| 55 | open scoped _root_.Topology |
| 56 | |
| 57 | theorem derivative_ne_zero {n : ℕ} {P : (Fin n → ℂ) → ℂ[X]} |
| 58 | {O : Set (Fin n → ℂ)} (hO : IsOpen O) |
| 59 | (hP : DifferentiableOn ℂ (fun p : (Fin n → ℂ) × ℂ => (P p.1).eval p.2) (O ×ˢ univ)) |
| 60 | {x : Fin n → ℂ} (hx : x ∈ O) {c : ℂ} {R : ℝ} (hR : 0 < R) |
| 61 | (g : (Fin n → ℂ) → ℂ) (hg : ∀ y ∈ O, g y ∈ ball c R) |
| 62 | (hroot : ∀ y ∈ O, ∀ z ∈ closedBall c R, (P y).eval z = 0 ↔ z = g y) |
| 63 | (hsep : ∃ᶠ y in 𝓝 x, (P y).Separable) : (P x).derivative.eval (g x) ≠ 0 := by |
| 64 | have hn (z : ℂ) (hz : z ∈ sphere c R) : (P x).eval z ≠ 0 := by |
| 65 | intro hpz |
| 66 | have hzg := (hroot x hx z (sphere_subset_closedBall hz)).mp hpz |
| 67 | exact (ne_of_lt (mem_ball.mp (hg x hx))) (hzg ▸ mem_sphere.mp hz) |
| 68 | obtain ⟨m, U, Q, hU, hxU, hUO, _, hQ⟩ := |
| 69 | AlgebraicGeometry.ComplexGroups.HolomorphicAlgebraicity.WeierstrassPreparation.Constructions.Preparation.exists_polynomial_preparation (hO.prod isOpen_univ) hP hR |
| 70 | (fun _ _ => ⟨hx, mem_univ _⟩) hn |
| 71 | have hsub : U ⊆ O := by |
| 72 | intro y hy |
| 73 | exact (hUO (show (y, c) ∈ U ×ˢ closedBall c R from ⟨hy, mem_closedBall_self hR.le⟩)).1 |
| 74 | have hiff (y : Fin n → ℂ) (hy : y ∈ U) (z : ℂ) (hz : z ∈ closedBall c R) : |
| 75 | (P y).eval z = 0 ↔ (Q y).eval z = 0 := by |
| 76 | obtain ⟨_, _, _, u, _, hun, hfu⟩ := hQ y hy |
| 77 | rw [(hfu z hz).eq_of_nhds, mul_eq_zero, or_iff_left (hun z hz)] |
| 78 | have hQg (y : Fin n → ℂ) (hy : y ∈ U) : (Q y).eval (g y) = 0 := |
| 79 | (hiff y hy (g y) (ball_subset_closedBall (hg y (hsub hy)))).mp |
| 80 | ((hroot y (hsub hy) (g y) (ball_subset_closedBall (hg y (hsub hy)))).mpr rfl) |
| 81 | have hQroots (y : Fin n → ℂ) (hy : y ∈ U) : |
| 82 | {z : ℂ | (Q y).eval z = 0} = {g y} := by |
| 83 | ext z |
| 84 | constructor |
| 85 | · intro hz |
| 86 | have hzball := (hQ y hy).2.2.1 z hz |
| 87 | exact (hroot y (hsub hy) z (ball_subset_closedBall hzball)).mp |
| 88 | ((hiff y hy z (ball_subset_closedBall hzball)).mpr hz) |
| 89 | · intro hz |
| 90 | exact hz ▸ hQg y hy |
| 91 | obtain ⟨y, hys, hyU⟩ := (hsep.and_eventually (hU.mem_nhds hxU)).exists |
| 92 | have hQs : (Q y).Separable := by |
| 93 | apply PolynomialUnitFactor.separable_of_local_factors hys |
| 94 | intro z hz |
| 95 | obtain ⟨_, _, hball, u, hu, _, hfu⟩ := hQ y hyU |
| 96 | have hzclosed := ball_subset_closedBall (hball z hz) |
| 97 | exact ⟨u, (hu z hzclosed).differentiableAt, hfu z hzclosed⟩ |
| 98 | have hm : m = 1 := by |
| 99 | have h := AlgebraicGeometry.ComplexGroups.HolomorphicAlgebraicity.MonicRoots.Constructions.RootPolynomials.ncard_zero_set (hQ y hyU).1.ne_zero hQs |
| 100 | rw [hQroots y hyU, ncard_singleton, (hQ y hyU).2.1] at h |
| 101 | exact h.symm |
| 102 | obtain ⟨hQm, hQd, _, u, hu, hun, hfu⟩ := hQ x hxU |
| 103 | have hlinear : Q x = X - C (g x) := |
| 104 | eq_of_monic_of_dvd_of_natDegree_le (monic_X_sub_C _) hQm |
| 105 | (dvd_iff_isRoot.mpr (hQg x hxU)) (by rw [hQd, hm, natDegree_X_sub_C]) |
| 106 | have hgclosed := ball_subset_closedBall (hg x hx) |
| 107 | have hder := PolynomialUnitFactor.derivative_eq (p := P x) (hu (g x) hgclosed).differentiableAt |
| 108 | (hfu (g x) hgclosed) (hQg x hxU) |
| 109 | rw [hlinear, derivative_X_sub_C, eval_one, one_mul] at hder |
| 110 | rw [hder] |
| 111 | exact hun (g x) hgclosed |
| 112 | |
| 113 | end Geometry.ComplexTorus.RiemannProjectivity.PolynomialSimple.Constructions.SimpleBranch |
| 114 | |
| 115 | namespace Geometry.ComplexTorus.RiemannProjectivity.PolynomialSimple.Constructions.LocalCoordinateGraph |
| 116 | |
| 117 | /-! |
| 118 | # RiemannProjectivity: a separating coordinate isolates one local projection branch |
| 119 | |
| 120 | A closed map and a finite fiber keep all other sheets away from a small |
| 121 | vertical disk. A local inverse then describes the entire coordinate image |
| 122 | in that disk as one graph. |
| 123 | -/ |
| 124 | |
| 125 | open Set Filter _root_.Metric |
| 126 | open scoped _root_.Topology |
| 127 | |
| 128 | variable {X Y : Type*} [TopologicalSpace X] [TopologicalSpace Y] |
| 129 | |
| 130 | theorem exists_graph {f : X → Y} (hf : IsClosedMap f) {l : X → ℂ} (hl : Continuous l) |
| 131 | (e : OpenPartialHomeomorph X Y) (he : (e : X → Y) = f) {x : X} (hx : x ∈ e.source) |
| 132 | (hfinite : (f ⁻¹' {f x}).Finite) |
| 133 | (hsep : ∀ u, f u = f x → l u = l x → u = x) : |
| 134 | ∃ (R : ℝ) (O : Set Y) (g : Y → ℂ), 0 < R ∧ IsOpen O ∧ f x ∈ O ∧ |
| 135 | ContinuousOn g O ∧ (∀ y ∈ O, g y ∈ ball (l x) R) ∧ |
| 136 | ∀ y ∈ O, ∀ z ∈ closedBall (l x) R, |
| 137 | (y, z) ∈ range (fun u => (f u, l u)) ↔ z = g y := by |
| 138 | let K := f ⁻¹' {f x} ∩ e.sourceᶜ |
| 139 | let M := l '' K |
| 140 | have hM : IsClosed M := ((hfinite.subset inter_subset_left).image l).isClosed |
| 141 | have hxM : l x ∉ M := by |
| 142 | rintro ⟨u, hu, hul⟩ |
| 143 | exact hu.2 ((hsep u hu.1 hul) ▸ hx) |
| 144 | obtain ⟨R, hR, hRM⟩ := nhds_basis_closedBall.mem_iff.mp (hM.isOpen_compl.mem_nhds hxM) |
| 145 | let D := e.sourceᶜ ∩ l ⁻¹' closedBall (l x) R |
| 146 | have hD : IsClosed D := e.open_source.isClosed_compl.inter (isClosed_closedBall.preimage hl) |
| 147 | have hbad : IsClosed (f '' D) := hf D hD |
| 148 | have hxnot : f x ∉ f '' D := by |
| 149 | rintro ⟨u, hu, huf⟩ |
| 150 | exact hRM hu.2 ⟨u, ⟨huf, hu.1⟩, rfl⟩ |
| 151 | have hfx : f x ∈ e.target := by rw [← he]; exact e.map_source hx |
| 152 | let g : Y → ℂ := fun y => l (e.symm y) |
| 153 | have hg : ContinuousOn g e.target := hl.comp_continuousOn e.continuousOn_symm |
| 154 | have hgf : g (f x) = l x := by change l (e.symm (f x)) = l x; rw [← he, e.left_inv hx] |
| 155 | let O₀ := e.target ∩ (f '' D)ᶜ |
| 156 | have hO₀ : IsOpen O₀ := e.open_target.inter hbad.isOpen_compl |
| 157 | let O := O₀ ∩ g ⁻¹' ball (l x) R |
| 158 | have hO : IsOpen O := (hg.mono inter_subset_left).isOpen_inter_preimage hO₀ isOpen_ball |
| 159 | refine ⟨R, O, g, hR, hO, ⟨⟨hfx, hxnot⟩, ?_⟩, |
| 160 | hg.mono (fun _ hy => hy.1.1), fun _ hy => hy.2, ?_⟩ |
| 161 | · change g (f x) ∈ ball (l x) R |
| 162 | rw [hgf] |
| 163 | exact mem_ball_self hR |
| 164 | · intro y hy z hz |
| 165 | constructor |
| 166 | · rintro ⟨u, hup⟩ |
| 167 | have huf : f u = y := congrArg Prod.fst hup |
| 168 | have hul : l u = z := congrArg Prod.snd hup |
| 169 | have hu : u ∈ e.source := by |
| 170 | by_contra hnot |
| 171 | exact hy.1.2 ⟨u, ⟨hnot, by change l u ∈ closedBall (l x) R; rwa [hul]⟩, huf⟩ |
| 172 | have hinv : e.symm (f u) = u := by rw [← he]; exact e.left_inv hu |
| 173 | change z = l (e.symm y) |
| 174 | rw [← huf, hinv, hul] |
| 175 | · intro hzgy |
| 176 | refine ⟨e.symm y, Prod.ext ?_ ?_⟩ |
| 177 | · rw [← he] |
| 178 | exact e.right_inv hy.1.1 |
| 179 | · exact hzgy.symm |
| 180 | |
| 181 | end Geometry.ComplexTorus.RiemannProjectivity.PolynomialSimple.Constructions.LocalCoordinateGraph |
| 182 | |
| 183 | end |
| 184 | |
| 185 | end OAI |