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.LocallyUniformLimit |
| 2 | import Mathlib.Analysis.Calculus.ContDiff.FiniteDimension |
| 3 | import Mathlib.Topology.UniformSpace.HeineCantor |
| 4 | |
| 5 | /-! # Holomorphic Regularity At -/ |
| 6 | |
| 7 | namespace OAI.Geometry.ComplexTorus.RiemannProjectivity.HolomorphicRegularityAt.Constructions.HolomorphicRegularity |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! |
| 12 | # RiemannProjectivity: continuous derivatives of holomorphic maps in finite dimensions |
| 13 | |
| 14 | Restriction to affine complex lines turns continuity in the base point into |
| 15 | locally uniform convergence. The one-variable Cauchy theorem then gives |
| 16 | continuity of each directional derivative, hence of the full derivative. |
| 17 | This supplies the regularity needed for local inverse-function coordinates. |
| 18 | -/ |
| 19 | |
| 20 | open Set Filter _root_.Metric |
| 21 | open scoped _root_.Topology ContDiff |
| 22 | |
| 23 | variable {V W : Type*} [NormedAddCommGroup V] [NormedSpace ℂ V] |
| 24 | [NormedAddCommGroup W] [NormedSpace ℂ W] [CompleteSpace W] |
| 25 | |
| 26 | omit [CompleteSpace W] in |
| 27 | theorem deriv_affineLine {f : V → W} {x : V} (hf : DifferentiableAt ℂ f x) (v : V) : |
| 28 | deriv (fun z : ℂ => f (x + z • v)) 0 = fderiv ℂ f x v := by |
| 29 | have h : HasDerivAt (fun z : ℂ => f (x + z • v)) (fderiv ℂ f x v) 0 := by |
| 30 | have hfx : HasFDerivAt f (fderiv ℂ f x) (x + (0 : ℂ) • v) := by |
| 31 | simpa only [zero_smul, add_zero] using hf.hasFDerivAt |
| 32 | convert! hfx.comp_hasDerivAt 0 |
| 33 | (((hasDerivAt_id (0 : ℂ)).smul_const v).const_add x) using 1 |
| 34 | simp |
| 35 | exact h.deriv |
| 36 | |
| 37 | variable [FiniteDimensional ℂ V] |
| 38 | |
| 39 | theorem continuousAt_directionalDerivative {f : V → W} {U : Set V} |
| 40 | (hU : IsOpen U) (hf : DifferentiableOn ℂ f U) {x : V} (hx : x ∈ U) (v : V) : |
| 41 | ContinuousAt (fun y => fderiv ℂ f y v) x := by |
| 42 | let : ProperSpace V := FiniteDimensional.proper ℂ V |
| 43 | let A : V × ℂ → V := fun p => p.1 + p.2 • v |
| 44 | have hA : Continuous A := continuous_fst.add (continuous_snd.smul continuous_const) |
| 45 | obtain ⟨r, hr, hsub⟩ := Metric.isOpen_iff.mp (hU.preimage hA) (x, 0) |
| 46 | (by simpa [A] using hx) |
| 47 | have hδ : 0 < r / 2 := half_pos hr |
| 48 | have hmem : ∀ y ∈ closedBall x (r / 2), ∀ z ∈ closedBall (0 : ℂ) (r / 2), |
| 49 | y + z • v ∈ U := by |
| 50 | intro y hy z hz |
| 51 | apply hsub (a := (y, z)) |
| 52 | change dist (y, z) (x, 0) < r |
| 53 | rw [Prod.dist_eq] |
| 54 | exact max_lt ((mem_closedBall.mp hy).trans_lt (half_lt_self hr)) |
| 55 | ((mem_closedBall.mp hz).trans_lt (half_lt_self hr)) |
| 56 | have hcont : ContinuousOn (fun p : V × ℂ => f (p.1 + p.2 • v)) |
| 57 | (closedBall x (r / 2) ×ˢ closedBall (0 : ℂ) (r / 2)) := |
| 58 | hf.continuousOn.comp hA.continuousOn (fun p hp => hmem p.1 hp.1 p.2 hp.2) |
| 59 | have hlim : TendstoUniformlyOn (fun y z => f (y + z • v)) |
| 60 | (fun z => f (x + z • v)) (𝓝 x) (closedBall (0 : ℂ) (r / 2)) := by |
| 61 | have h := ((isCompact_closedBall x (r / 2)).prod |
| 62 | (isCompact_closedBall (0 : ℂ) (r / 2))).uniformContinuousOn_of_continuous hcont |
| 63 | simpa only [nhdsWithin_eq_nhds.mpr (closedBall_mem_nhds _ hδ)] using |
| 64 | h.tendstoUniformlyOn (F := fun y z => f (y + z • v)) (x := x) |
| 65 | (mem_closedBall_self hδ.le) |
| 66 | have hdiff : ∀ᶠ y in 𝓝 x, |
| 67 | DifferentiableOn ℂ (fun z : ℂ => f (y + z • v)) (ball 0 (r / 2)) := by |
| 68 | filter_upwards [closedBall_mem_nhds x hδ] with y hy |
| 69 | intro z hz |
| 70 | have hfz : DifferentiableAt ℂ f (y + z • v) := |
| 71 | (hf _ (hmem y hy z (ball_subset_closedBall hz))).differentiableAt |
| 72 | (hU.mem_nhds (hmem y hy z (ball_subset_closedBall hz))) |
| 73 | exact (hfz.comp z (((differentiable_id.smul_const v).const_add y) z)).differentiableWithinAt |
| 74 | have ht := ((hlim.mono ball_subset_closedBall).tendstoLocallyUniformlyOn.deriv hdiff |
| 75 | isOpen_ball).tendsto_at (mem_ball_self hδ) |
| 76 | have hder : ∀ y ∈ closedBall x (r / 2), |
| 77 | deriv (fun z : ℂ => f (y + z • v)) 0 = fderiv ℂ f y v := by |
| 78 | intro y hy |
| 79 | have hyU : y ∈ U := by simpa using hmem y hy 0 (mem_closedBall_self hδ.le) |
| 80 | exact deriv_affineLine ((hf y hyU).differentiableAt (hU.mem_nhds hyU)) v |
| 81 | rw [hder x (mem_closedBall_self hδ.le)] at ht |
| 82 | exact ht.congr' (by |
| 83 | filter_upwards [closedBall_mem_nhds x hδ] with y hy |
| 84 | exact hder y hy) |
| 85 | |
| 86 | /-- Complex differentiability on an open finite-dimensional domain implies C¹ regularity. -/ |
| 87 | theorem contDiffAt_one_of_differentiableOn {f : V → W} {U : Set V} |
| 88 | (hU : IsOpen U) (hf : DifferentiableOn ℂ f U) {x : V} (hx : x ∈ U) : |
| 89 | ContDiffAt ℂ 1 f x := by |
| 90 | apply contDiffAt_one_iff.mpr |
| 91 | refine ⟨fderiv ℂ f, U, hU.mem_nhds hx, ?_, ?_⟩ |
| 92 | · intro y hy |
| 93 | exact (continuousAt_clm_apply.mpr fun v => |
| 94 | continuousAt_directionalDerivative hU hf hy v).continuousWithinAt |
| 95 | · intro y hy |
| 96 | exact ((hf y hy).differentiableAt (hU.mem_nhds hy)).hasFDerivAt |
| 97 | |
| 98 | end |
| 99 | |
| 100 | end OAI.Geometry.ComplexTorus.RiemannProjectivity.HolomorphicRegularityAt.Constructions.HolomorphicRegularity |