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.Analysis.Complex.CauchyIntegral |
| 2 | import Mathlib.Analysis.Analytic.Uniqueness |
| 3 | |
| 4 | /-! # Holomorphic Identity -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.ComplexGroups.HolomorphicAlgebraicity.HolomorphicIdentity.Constructions.Identity |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! |
| 11 | # Local identity principles for finite-dimensional holomorphic equations |
| 12 | |
| 13 | Restriction to complex lines proves the identity principle on balls without |
| 14 | assuming a multivariable power-series expansion. This also shows that a |
| 15 | product of holomorphic germs can vanish only if one factor vanishes. |
| 16 | -/ |
| 17 | |
| 18 | open Set Filter _root_.Metric _root_.Complex |
| 19 | open scoped _root_.Topology |
| 20 | |
| 21 | theorem eqOn_zero_ball_of_eventually_zero |
| 22 | {E : Type*} [NormedAddCommGroup E] [NormedSpace ℂ E] |
| 23 | {f : E → ℂ} {x : E} {R : ℝ} (hf : DifferentiableOn ℂ f (ball x R)) |
| 24 | (hzero : ∀ᶠ z in 𝓝 x, f z = 0) : EqOn f 0 (ball x R) := by |
| 25 | intro y hy |
| 26 | by_cases hyx : y = x |
| 27 | · simpa only [hyx, Pi.zero_apply] using hzero.self_of_nhds |
| 28 | let v := y - x |
| 29 | have hv : 0 < ‖v‖ := norm_pos_iff.mpr (sub_ne_zero.mpr hyx) |
| 30 | have hvr : ‖v‖ < R := mem_ball_iff_norm.mp hy |
| 31 | let r := R / ‖v‖ |
| 32 | have h1r : 1 < r := (lt_div_iff₀ hv).mpr (by simpa only [one_mul] using hvr) |
| 33 | have hr : 0 < r := zero_lt_one.trans h1r |
| 34 | let line : ℂ → E := fun z => x + z • v |
| 35 | have hline : Differentiable ℂ line := (differentiable_const x).add (differentiable_id.smul_const v) |
| 36 | have hmaps : MapsTo line (ball (0 : ℂ) r) (ball x R) := by |
| 37 | intro z hz |
| 38 | rw [mem_ball_iff_norm] |
| 39 | change ‖x + z • v - x‖ < R |
| 40 | rw [add_sub_cancel_left, norm_smul] |
| 41 | calc |
| 42 | ‖z‖ * ‖v‖ < r * ‖v‖ := mul_lt_mul_of_pos_right (by simpa only [mem_ball_iff_norm, sub_zero] using hz) hv |
| 43 | _ = R := div_mul_cancel₀ _ hv.ne' |
| 44 | have hg := hf.comp hline.differentiableOn hmaps |
| 45 | have hline0 : Tendsto line (𝓝 0) (𝓝 x) := by |
| 46 | simpa only [line, zero_smul, add_zero] using hline.continuous.tendsto (0 : ℂ) |
| 47 | have hgzero : (fun z => f (line z)) =ᶠ[𝓝 (0 : ℂ)] 0 := hline0.eventually hzero |
| 48 | have hident := (hg.analyticOnNhd isOpen_ball).eqOn_zero_of_preconnected_of_eventuallyEq_zero |
| 49 | (convex_ball (0 : ℂ) r).isPreconnected (mem_ball_self hr) hgzero |
| 50 | have h := hident (show (1 : ℂ) ∈ ball 0 r by simpa using h1r) |
| 51 | simpa only [Function.comp_def, line, v, one_smul, ← add_sub_assoc, add_sub_cancel_left, |
| 52 | Pi.zero_apply] using h |
| 53 | |
| 54 | theorem eventually_zero_or_eventually_zero_of_mul |
| 55 | {E : Type*} [NormedAddCommGroup E] [NormedSpace ℂ E] |
| 56 | {f g : E → ℂ} {U : Set E} {x : E} (hU : IsOpen U) (hx : x ∈ U) |
| 57 | (hf : DifferentiableOn ℂ f U) (hg : DifferentiableOn ℂ g U) |
| 58 | (hprod : ∀ z ∈ U, f z * g z = 0) : |
| 59 | (∀ᶠ z in 𝓝 x, f z = 0) ∨ (∀ᶠ z in 𝓝 x, g z = 0) := by |
| 60 | by_cases hfzero : ∀ᶠ z in 𝓝 x, f z = 0 |
| 61 | · exact Or.inl hfzero |
| 62 | right |
| 63 | obtain ⟨R, hR, hball⟩ := Metric.mem_nhds_iff.mp (hU.mem_nhds hx) |
| 64 | have hsmall : ball x (R / 4) ∈ 𝓝 x := ball_mem_nhds x (by linarith) |
| 65 | obtain ⟨y, hyf, hy⟩ := ((not_eventually.mp hfzero).and_eventually hsmall).exists |
| 66 | have hyU : y ∈ U := hball (ball_subset_ball (by linarith) hy) |
| 67 | have hgy : ∀ᶠ z in 𝓝 y, g z = 0 := by |
| 68 | filter_upwards [hU.mem_nhds hyU, |
| 69 | (hf.differentiableAt (hU.mem_nhds hyU)).continuousAt.eventually_ne hyf] with z hz hzf |
| 70 | exact (mul_eq_zero.mp (hprod z hz)).resolve_left hzf |
| 71 | have hsub : ball y (R / 2) ⊆ U := by |
| 72 | apply Subset.trans (ball_subset_ball' (show R / 2 + dist y x ≤ R from by |
| 73 | have hdist := mem_ball.mp hy |
| 74 | linarith)) hball |
| 75 | have hident := eqOn_zero_ball_of_eventually_zero (hg.mono hsub) hgy |
| 76 | have hxy : x ∈ ball y (R / 2) := by |
| 77 | rw [mem_ball, dist_comm] |
| 78 | have hdist := mem_ball.mp hy |
| 79 | linarith |
| 80 | filter_upwards [isOpen_ball.mem_nhds hxy] with z hz |
| 81 | exact hident hz |
| 82 | |
| 83 | end |
| 84 | |
| 85 | end OAI.AlgebraicGeometry.ComplexGroups.HolomorphicAlgebraicity.HolomorphicIdentity.Constructions.Identity |