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.ComplexGroups.HolomorphicAlgebraicity.BoundedQuotient |
| 2 | import OAI.AlgebraicGeometry.ComplexGroups.HolomorphicAlgebraicity.GenericDegree |
| 3 | import OAI.AlgebraicGeometry.ComplexGroups.HolomorphicAlgebraicity.LocalPreparation |
| 4 | import OAI.AlgebraicGeometry.ComplexGroups.HolomorphicAlgebraicity.ParametricIntegralAt |
| 5 | |
| 6 | /-! # Quotient -/ |
| 7 | |
| 8 | namespace OAI.AlgebraicGeometry.ComplexGroups.HolomorphicAlgebraicity.Quotient.Constructions.Removable |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | section |
| 13 | |
| 14 | /-! |
| 15 | # Extension of bounded holomorphic quotients in several variables |
| 16 | |
| 17 | A complex line on which the denominator is not identically zero gives a |
| 18 | small circle avoiding its zeros. Cauchy integration on its nearby translates |
| 19 | then gives a holomorphic extension of the bounded quotient. |
| 20 | -/ |
| 21 | |
| 22 | open Set Filter _root_.Metric _root_.Complex |
| 23 | open scoped _root_.Topology |
| 24 | |
| 25 | theorem exists_transverse_disk {n : ℕ} {g : (Fin n → ℂ) → ℂ} |
| 26 | {U : Set (Fin n → ℂ)} (hU : IsOpen U) (hg : DifferentiableOn ℂ g U) |
| 27 | {x : Fin n → ℂ} (hx : x ∈ U) (hn : ¬∀ᶠ y in 𝓝 x, g y = 0) : |
| 28 | ∃ (v : Fin n → ℂ) (r : ℝ), 0 < r ∧ |
| 29 | (∀ z ∈ closedBall (0 : ℂ) r, x + z • v ∈ U) ∧ |
| 30 | ∀ z ∈ sphere (0 : ℂ) r, g (x + z • v) ≠ 0 := by |
| 31 | obtain ⟨R, hR, hball⟩ := Metric.mem_nhds_iff.mp (hU.mem_nhds hx) |
| 32 | obtain ⟨y, hgy, hy⟩ := ((not_eventually.mp hn).and_eventually |
| 33 | (ball_mem_nhds x (show 0 < R / 4 by linarith))).exists |
| 34 | let v := y - x |
| 35 | let line : ℂ → (Fin n → ℂ) := fun z => x + z • v |
| 36 | have hline : Differentiable ℂ line := |
| 37 | (differentiable_const x).add (differentiable_id.smul_const v) |
| 38 | have hmaps : MapsTo line (ball (0 : ℂ) 2) U := by |
| 39 | intro z hz |
| 40 | apply hball |
| 41 | rw [mem_ball_iff_norm] |
| 42 | change ‖x + z • v - x‖ < R |
| 43 | rw [add_sub_cancel_left, norm_smul] |
| 44 | have hz2 : ‖z‖ < 2 := by simpa only [mem_ball_iff_norm, sub_zero] using hz |
| 45 | have hv : ‖v‖ < R / 4 := mem_ball_iff_norm.mp hy |
| 46 | calc |
| 47 | ‖z‖ * ‖v‖ ≤ 2 * ‖v‖ := mul_le_mul_of_nonneg_right hz2.le (norm_nonneg _) |
| 48 | _ < R := by linarith |
| 49 | have hlineG : DifferentiableOn ℂ (fun z => g (line z)) (ball (0 : ℂ) 2) := |
| 50 | hg.comp hline.differentiableOn hmaps |
| 51 | have hlineN : ¬∀ᶠ z in 𝓝 (0 : ℂ), g (line z) = 0 := by |
| 52 | intro hz |
| 53 | have hi := HolomorphicIdentity.Constructions.Identity.eqOn_zero_ball_of_eventually_zero hlineG hz |
| 54 | (show (1 : ℂ) ∈ ball 0 2 by norm_num) |
| 55 | apply hgy |
| 56 | simpa only [line, v, one_smul, ← add_sub_assoc, add_sub_cancel_left, Pi.zero_apply] using hi |
| 57 | let F : (Fin n → ℂ) × ℂ → ℂ := fun p => g (p.1 + p.2 • v) |
| 58 | let W : Set ((Fin n → ℂ) × ℂ) := (fun p => p.1 + p.2 • v) ⁻¹' U |
| 59 | have hmap : Differentiable ℂ (fun p : (Fin n → ℂ) × ℂ => p.1 + p.2 • v) := |
| 60 | differentiable_fst.add (differentiable_snd.smul_const v) |
| 61 | have hW : IsOpen W := hU.preimage hmap.continuous |
| 62 | have hF : DifferentiableOn ℂ F W := hg.comp hmap.differentiableOn (fun _ hp => hp) |
| 63 | have hbase : (x, (0 : ℂ)) ∈ W := by simpa only [W, mem_preimage, zero_smul, add_zero] using hx |
| 64 | obtain ⟨r, hr, hbaseR, hboundary⟩ := LocalPreparation.Constructions.Preparation.exists_zero_free_circle hW hF hbase hlineN |
| 65 | exact ⟨v, r, hr, hbaseR, hboundary⟩ |
| 66 | |
| 67 | theorem exists_holomorphic_quotient_extension {n : ℕ} |
| 68 | {f g : (Fin n → ℂ) → ℂ} {U : Set (Fin n → ℂ)} |
| 69 | (hU : IsOpen U) (hf : DifferentiableOn ℂ f U) (hg : DifferentiableOn ℂ g U) |
| 70 | {x : Fin n → ℂ} (hx : x ∈ U) (hn : ¬∀ᶠ y in 𝓝 x, g y = 0) |
| 71 | (hbound : ∃ M : ℝ, ∀ y ∈ U, g y ≠ 0 → ‖f y / g y‖ ≤ M) : |
| 72 | ∃ (V : Set (Fin n → ℂ)) (F : (Fin n → ℂ) → ℂ), |
| 73 | IsOpen V ∧ x ∈ V ∧ V ⊆ U ∧ DifferentiableOn ℂ F V ∧ |
| 74 | ∀ y ∈ V, g y ≠ 0 → F y = f y / g y := by |
| 75 | obtain ⟨v, R, hR, hbase, hboundary⟩ := exists_transverse_disk hU hg hx hn |
| 76 | let line : (Fin n → ℂ) × ℂ → (Fin n → ℂ) := fun p => p.1 + p.2 • v |
| 77 | have hline : Differentiable ℂ line := |
| 78 | differentiable_fst.add (differentiable_snd.smul_const v) |
| 79 | let W := line ⁻¹' U |
| 80 | have hW : IsOpen W := hU.preimage hline.continuous |
| 81 | have hfW : DifferentiableOn ℂ (f ∘ line) W := hf.comp hline.differentiableOn (fun _ hp => hp) |
| 82 | have hgW : DifferentiableOn ℂ (g ∘ line) W := hg.comp hline.differentiableOn (fun _ hp => hp) |
| 83 | obtain ⟨V, hV, hxV, hVW, hVboundary⟩ := |
| 84 | RootFamiliesAt.Constructions.RootFamilies.exists_disk_family_neighborhood hW hgW.continuousOn hbase hboundary |
| 85 | let W' := W ∩ (g ∘ line) ⁻¹' ({0} : Set ℂ)ᶜ |
| 86 | have hW' : IsOpen W' := |
| 87 | hgW.continuousOn.isOpen_inter_preimage hW isClosed_singleton.isOpen_compl |
| 88 | let Q : (Fin n → ℂ) × ℂ → ℂ := fun p => f (line p) / g (line p) |
| 89 | have hQ : DifferentiableOn ℂ Q W' := by |
| 90 | change DifferentiableOn ℂ (fun p => (f ∘ line) p / (g ∘ line) p) W' |
| 91 | simp only [div_eq_mul_inv] |
| 92 | exact (hfW.mono (show W' ⊆ W from inter_subset_left)).fun_mul |
| 93 | ((hgW.mono inter_subset_left).fun_inv (fun p (hp : p ∈ W') => hp.2)) |
| 94 | have hVW' : V ×ˢ sphere (0 : ℂ) R ⊆ W' := fun p hp => |
| 95 | ⟨hVW ⟨hp.1, sphere_subset_closedBall hp.2⟩, hVboundary p hp⟩ |
| 96 | have hw : ContinuousOn (fun z : ℂ => z⁻¹) (sphere 0 R) := by |
| 97 | apply continuous_id.continuousOn.inv₀ |
| 98 | intro z hz hz0 |
| 99 | change z = 0 at hz0 |
| 100 | have hnorm : ‖z‖ = R := by simpa only [mem_sphere_iff_norm, sub_zero] using hz |
| 101 | rw [hz0, norm_zero] at hnorm |
| 102 | exact hR.ne' hnorm.symm |
| 103 | let F : (Fin n → ℂ) → ℂ := fun y => (2 * Real.pi * I : ℂ)⁻¹ * |
| 104 | ∮ z in C(0, R), z⁻¹ * Q (y, z) |
| 105 | have hVU : V ⊆ U := by |
| 106 | intro y hy |
| 107 | have h := hVW (show (y, (0 : ℂ)) ∈ V ×ˢ closedBall 0 R from |
| 108 | ⟨hy, mem_closedBall_self hR.le⟩) |
| 109 | simpa only [W, line, mem_preimage, zero_smul, add_zero] using h |
| 110 | refine ⟨V, F, hV, hxV, hVU, ?_, ?_⟩ |
| 111 | · intro y hy |
| 112 | exact ((ParametricIntegralAt.Constructions.ParametricIntegral.differentiableAt_weighted_circleIntegral hW' hQ hV hy |
| 113 | hR.le hVW' hw).const_mul _).differentiableWithinAt |
| 114 | · intro y hy hgy |
| 115 | let Uy : Set ℂ := (fun z : ℂ => y + z • v) ⁻¹' U |
| 116 | have hly : Differentiable ℂ (fun z : ℂ => y + z • v) := |
| 117 | (differentiable_const y).add (differentiable_id.smul_const v) |
| 118 | have hUy : IsOpen Uy := hU.preimage hly.continuous |
| 119 | have hfUy : AnalyticOnNhd ℂ (fun z : ℂ => f (y + z • v)) Uy := |
| 120 | (hf.comp hly.differentiableOn (fun _ hp => hp)).analyticOnNhd hUy |
| 121 | have hgUy : AnalyticOnNhd ℂ (fun z : ℂ => g (y + z • v)) Uy := |
| 122 | (hg.comp hly.differentiableOn (fun _ hp => hp)).analyticOnNhd hUy |
| 123 | obtain ⟨M, hM⟩ := hbound |
| 124 | have hquot := BoundedQuotient.Constructions.Removable.quotient_eq_circleIntegral hUy hfUy hgUy |
| 125 | ⟨M, fun z hz => hM (y + z • v) hz⟩ hR |
| 126 | (fun z hz => hVW (show (y, z) ∈ V ×ˢ closedBall 0 R from ⟨hy, hz⟩)) |
| 127 | (fun z hz => hVboundary (y, z) ⟨hy, hz⟩) |
| 128 | (by simpa only [zero_smul, add_zero] using hgy) |
| 129 | simpa only [F, Q, line, sub_zero, zero_smul, add_zero] using hquot |
| 130 | |
| 131 | end |
| 132 | |
| 133 | /-! |
| 134 | # Bounded holomorphic functions extend across a holomorphic zero set |
| 135 | |
| 136 | Multiply by the square of a defining function, extend that product by zero, |
| 137 | and apply the bounded-quotient extension theorem. |
| 138 | -/ |
| 139 | |
| 140 | open Set Filter _root_.Metric _root_.Complex Asymptotics |
| 141 | open scoped _root_.Topology |
| 142 | |
| 143 | theorem hasFDerivAt_mul_sq_of_bounded |
| 144 | {E : Type*} [NormedAddCommGroup E] [NormedSpace ℂ E] |
| 145 | {f g : E → ℂ} {x : E} (hg : DifferentiableAt ℂ g x) (hgx : g x = 0) |
| 146 | (hbound : ∃ M : ℝ, ∀ᶠ y in 𝓝 x, ‖f y‖ ≤ M) : |
| 147 | HasFDerivAt (fun y => f y * (g y) ^ 2) (0 : E →L[ℂ] ℂ) x := by |
| 148 | obtain ⟨M, hM⟩ := hbound |
| 149 | have hfO : f =O[𝓝 x] (fun _ : E => (1 : ℝ)) := |
| 150 | IsBigO.of_bound M (by simpa only [norm_one, mul_one] using hM) |
| 151 | have hgo : g =o[𝓝 x] (fun _ : E => (1 : ℝ)) := |
| 152 | (isLittleO_one_iff ℝ).mpr (by simpa only [hgx] using hg.continuousAt.tendsto) |
| 153 | have hgO : g =O[𝓝 x] (fun y => ‖y - x‖) := by |
| 154 | simpa only [hgx, sub_zero] using hg.isBigO_sub.norm_right |
| 155 | have hsmall : (fun y => f y * g y * g y) =o[𝓝 x] (fun y => y - x) := by |
| 156 | apply IsLittleO.of_norm_right |
| 157 | simpa only [one_mul] using (hfO.mul_isLittleO hgo).mul_isBigO hgO |
| 158 | apply HasFDerivAt.of_isLittleO |
| 159 | simpa only [hgx, zero_pow (by omega : 2 ≠ 0), mul_zero, sub_zero, |
| 160 | zero_apply, pow_two, mul_assoc] using hsmall |
| 161 | |
| 162 | theorem exists_extension_off_zero_set {n : ℕ} |
| 163 | {f g : (Fin n → ℂ) → ℂ} {U : Set (Fin n → ℂ)} |
| 164 | (hU : IsOpen U) (hg : DifferentiableOn ℂ g U) |
| 165 | (hf : DifferentiableOn ℂ f {y | y ∈ U ∧ g y ≠ 0}) |
| 166 | {x : Fin n → ℂ} (hx : x ∈ U) (hn : ¬∀ᶠ y in 𝓝 x, g y = 0) |
| 167 | (hbound : ∃ M : ℝ, ∀ y ∈ U, g y ≠ 0 → ‖f y‖ ≤ M) : |
| 168 | ∃ (V : Set (Fin n → ℂ)) (F : (Fin n → ℂ) → ℂ), |
| 169 | IsOpen V ∧ x ∈ V ∧ V ⊆ U ∧ DifferentiableOn ℂ F V ∧ |
| 170 | ∀ y ∈ V, g y ≠ 0 → F y = f y := by |
| 171 | classical |
| 172 | let f₀ : (Fin n → ℂ) → ℂ := fun y => if g y = 0 then 0 else f y |
| 173 | let H : (Fin n → ℂ) → ℂ := fun y => f₀ y * (g y) ^ 2 |
| 174 | obtain ⟨M, hM⟩ := hbound |
| 175 | have hf₀bound (y : Fin n → ℂ) (hy : y ∈ U) : ‖f₀ y‖ ≤ max 0 M := by |
| 176 | by_cases hgy : g y = 0 |
| 177 | · simpa only [f₀, ite_eq_left hgy, norm_zero] using (le_max_left (0 : ℝ) M) |
| 178 | · exact (show ‖f₀ y‖ ≤ M by simpa only [f₀, ite_eq_right hgy] using hM y hy hgy).trans |
| 179 | (le_max_right _ _) |
| 180 | have hgood : IsOpen {y | y ∈ U ∧ g y ≠ 0} := |
| 181 | hg.continuousOn.isOpen_inter_preimage hU isClosed_singleton.isOpen_compl |
| 182 | have hH : DifferentiableOn ℂ H U := by |
| 183 | intro y hy |
| 184 | have hgy := hg.differentiableAt (hU.mem_nhds hy) |
| 185 | by_cases hzero : g y = 0 |
| 186 | · apply (hasFDerivAt_mul_sq_of_bounded hgy hzero ?_).differentiableAt.differentiableWithinAt |
| 187 | refine ⟨max 0 M, ?_⟩ |
| 188 | filter_upwards [hU.mem_nhds hy] with z hz |
| 189 | exact hf₀bound z hz |
| 190 | · have hf₀eq : f₀ =ᶠ[𝓝 y] f := by |
| 191 | filter_upwards [hgy.continuousAt.eventually_ne hzero] with z hz |
| 192 | exact ite_eq_right hz |
| 193 | have hf₀y : DifferentiableAt ℂ f₀ y := |
| 194 | (hf.differentiableAt (hgood.mem_nhds ⟨hy, hzero⟩)).congr_of_eventuallyEq hf₀eq |
| 195 | exact (hf₀y.mul (hgy.pow 2)).differentiableWithinAt |
| 196 | have hg₂ : DifferentiableOn ℂ (fun y => (g y) ^ 2) U := hg.pow 2 |
| 197 | have hg₂n : ¬∀ᶠ y in 𝓝 x, (g y) ^ 2 = 0 := by |
| 198 | intro hz |
| 199 | apply hn |
| 200 | exact hz.mono (fun _ h => (pow_eq_zero_iff (by decide : 2 ≠ 0)).mp h) |
| 201 | have hquotBound : ∃ C : ℝ, ∀ y ∈ U, (g y) ^ 2 ≠ 0 → ‖H y / (g y) ^ 2‖ ≤ C := by |
| 202 | refine ⟨max 0 M, ?_⟩ |
| 203 | intro y hy hgy |
| 204 | change ‖(f₀ y * (g y) ^ 2) / (g y) ^ 2‖ ≤ _ |
| 205 | rw [mul_div_cancel_right₀ _ hgy] |
| 206 | exact hf₀bound y hy |
| 207 | obtain ⟨V, F, hV, hxV, hVU, hF, hFeq⟩ := |
| 208 | exists_holomorphic_quotient_extension hU hH hg₂ hx hg₂n hquotBound |
| 209 | refine ⟨V, F, hV, hxV, hVU, hF, ?_⟩ |
| 210 | intro y hy hgy |
| 211 | rw [hFeq y hy (pow_ne_zero 2 hgy)] |
| 212 | change (f₀ y * (g y) ^ 2) / (g y) ^ 2 = f y |
| 213 | rw [mul_div_cancel_right₀ _ (pow_ne_zero 2 hgy)] |
| 214 | exact ite_eq_right hgy |
| 215 | |
| 216 | end |
| 217 | |
| 218 | end OAI.AlgebraicGeometry.ComplexGroups.HolomorphicAlgebraicity.Quotient.Constructions.Removable |