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.ODE.ExistUnique |
| 2 | import Mathlib.Analysis.Calculus.MeanValue |
| 3 | |
| 4 | /-! # Parametric Flow -/ |
| 5 | |
| 6 | namespace OAI.ArithmeticGeometry.Descent.CMVariety.ParametricFlow.Abelian |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! |
| 11 | Construct a local flow with continuous dependence on an external |
| 12 | parameter. Picard-Lindelöf is applied to the enlarged autonomous vector |
| 13 | field `(p,v) ↦ (0,F(p,v))`; uniqueness of a function with zero derivative |
| 14 | shows that the constructed flow keeps the parameter fixed. |
| 15 | -/ |
| 16 | |
| 17 | open Set _root_.Metric |
| 18 | open scoped _root_.Topology NNReal |
| 19 | |
| 20 | variable {P V : Type*} |
| 21 | [NormedAddCommGroup P] [NormedSpace ℝ P] [CompleteSpace P] |
| 22 | [NormedAddCommGroup V] [NormedSpace ℝ V] [CompleteSpace V] |
| 23 | |
| 24 | /-- Local solutions depend continuously on the parameter, initial vector, |
| 25 | and time. The differential equation uses the unchanged initial parameter. -/ |
| 26 | theorem exists_continuous_parametric_flow |
| 27 | (F : P × V → V) (u₀ : P × V) (hF : ContDiffAt ℝ 1 F u₀) : |
| 28 | ∃ (r : ℝ≥0), 0 < r ∧ ∃ ε : ℝ, 0 < ε ∧ |
| 29 | ∃ flow : (P × V) × ℝ → V, |
| 30 | ContinuousOn flow (closedBall u₀ r ×ˢ Ioo (-ε) ε) ∧ |
| 31 | ∀ u ∈ closedBall u₀ r, flow (u, 0) = u.2 ∧ |
| 32 | ∀ t ∈ Ioo (-ε) ε, |
| 33 | HasDerivAt (fun τ => flow (u, τ)) (F (u.1, flow (u, t))) t := by |
| 34 | let G : P × V → P × V := fun u => (0, F u) |
| 35 | have hG : ContDiffAt ℝ 1 G u₀ := contDiffAt_const.prodMk hF |
| 36 | obtain ⟨ε, hε, a, r, L, K, hr, hpl⟩ := IsPicardLindelof.of_contDiffAt_one hG |
| 37 | obtain ⟨α, hα, hc⟩ := (hpl 0).exists_forall_mem_closedBall_eq_hasDerivWithinAt_continuousOn |
| 38 | have hα₀ (u : P × V) (hu : u ∈ closedBall u₀ r) : α (u, 0) = u := (hα u hu).1 |
| 39 | have hd (u : P × V) (hu : u ∈ closedBall u₀ r) (t : ℝ) (ht : t ∈ Ioo (-ε) ε) : |
| 40 | HasDerivAt (fun τ => α (u, τ)) (G (α (u, t))) t := by |
| 41 | have ht' : t ∈ Ioo (0 - ε) (0 + ε) := by simpa only [zero_sub, zero_add] using ht |
| 42 | exact ((hα u hu).2 t (Ioo_subset_Icc_self ht')).hasDerivAt |
| 43 | (Icc_mem_nhds ht'.1 ht'.2) |
| 44 | have hparam (u : P × V) (hu : u ∈ closedBall u₀ r) (t : ℝ) (ht : t ∈ Ioo (-ε) ε) : |
| 45 | (α (u, t)).1 = u.1 := by |
| 46 | have hp (s : ℝ) (hs : s ∈ Ioo (-ε) ε) : |
| 47 | HasDerivAt (fun τ => (α (u, τ)).1) 0 s := (hd u hu s hs).fst |
| 48 | have he := isOpen_Ioo.is_const_of_deriv_eq_zero (convex_Ioo (-ε) ε).isPreconnected |
| 49 | (fun s hs => (hp s hs).differentiableAt.differentiableWithinAt) |
| 50 | (fun s hs => (hp s hs).deriv) ht (show (0 : ℝ) ∈ Ioo (-ε) ε by constructor <;> linarith) |
| 51 | exact he.trans (congrArg Prod.fst (hα₀ u hu)) |
| 52 | refine ⟨r, hr, ε, hε, fun q => (α q).2, ?_, ?_⟩ |
| 53 | · apply hc.snd.mono |
| 54 | rintro ⟨u, t⟩ ⟨hu, ht⟩ |
| 55 | exact ⟨hu, by simpa only [zero_sub, zero_add] using Ioo_subset_Icc_self ht⟩ |
| 56 | · intro u hu |
| 57 | refine ⟨congrArg Prod.snd (hα₀ u hu), ?_⟩ |
| 58 | intro t ht |
| 59 | have h := (hd u hu t ht).snd |
| 60 | change HasDerivAt (fun τ => (α (u, τ)).2) (F (α (u, t))) t at h |
| 61 | have hp : α (u, t) = (u.1, (α (u, t)).2) := |
| 62 | Prod.ext (hparam u hu t ht) rfl |
| 63 | rw [hp] at h |
| 64 | exact h |
| 65 | |
| 66 | theorem exists_continuous_parametric_flow_zero |
| 67 | (F : P × V → V) (p₀ : P) (hF : ContDiffAt ℝ 1 F (p₀, 0)) : |
| 68 | ∃ (r : ℝ≥0), 0 < r ∧ ∃ ε : ℝ, 0 < ε ∧ |
| 69 | ∃ flow : P × ℝ → V, |
| 70 | ContinuousOn flow (closedBall p₀ r ×ˢ Ioo (-ε) ε) ∧ |
| 71 | ∀ p ∈ closedBall p₀ r, flow (p, 0) = 0 ∧ |
| 72 | ∀ t ∈ Ioo (-ε) ε, |
| 73 | HasDerivAt (fun τ => flow (p, τ)) (F (p, flow (p, t))) t := by |
| 74 | obtain ⟨r, hr, ε, hε, α, hc, hα⟩ := exists_continuous_parametric_flow F (p₀, 0) hF |
| 75 | have hball (p : P) (hp : p ∈ closedBall p₀ r) : |
| 76 | (p, (0 : V)) ∈ closedBall (p₀, 0) r := by |
| 77 | simpa only [mem_closedBall, Prod.dist_eq, dist_self, max_eq_left dist_nonneg] using hp |
| 78 | refine ⟨r, hr, ε, hε, fun q => α ((q.1, 0), q.2), ?_, ?_⟩ |
| 79 | · apply hc.comp ((continuous_fst.prodMk continuous_const).prodMk continuous_snd).continuousOn |
| 80 | rintro ⟨p, t⟩ ⟨hp, ht⟩ |
| 81 | exact ⟨hball p hp, ht⟩ |
| 82 | · intro p hp |
| 83 | exact hα (p, 0) (hball p hp) |
| 84 | |
| 85 | end |
| 86 | |
| 87 | end OAI.ArithmeticGeometry.Descent.CMVariety.ParametricFlow.Abelian |