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.Calculus.FDeriv.Mul |
| 2 | import Mathlib.Analysis.Complex.Basic |
| 3 | import Mathlib.Analysis.SpecificLimits.Basic |
| 4 | import Mathlib.Topology.OpenPartialHomeomorph.Basic |
| 5 | |
| 6 | /-! # Holomorphic Power Continuation -/ |
| 7 | |
| 8 | namespace OAI.AlgebraicGeometry.PELModuli.CMPoints.HolomorphicPowerContinuation |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | section |
| 13 | |
| 14 | /-! Holomorphic power maps propagate a chart expression from velocities |
| 15 | near zero to every velocity whose image belongs to the original chart. -/ |
| 16 | |
| 17 | open Set _root_.Metric Filter |
| 18 | open scoped _root_.Topology |
| 19 | |
| 20 | variable {P V X : Type} |
| 21 | [NormedAddCommGroup P] [NormedSpace ℂ P] |
| 22 | [NormedAddCommGroup V] [NormedSpace ℂ V] [NormedSpace ℝ V] |
| 23 | [IsScalarTower ℝ ℂ V] [TopologicalSpace X] |
| 24 | |
| 25 | theorem differentiableAt_of_holomorphic_power_coordinates |
| 26 | (φ : P × V → X) (f : P × V → V) (e : OpenPartialHomeomorph X (P × V)) |
| 27 | (power : ℕ → X → X) |
| 28 | (hpower : ∀ n, DifferentiableOn ℂ (fun z => e (power n (e.symm z))) |
| 29 | (e.target ∩ (fun z => power n (e.symm z)) ⁻¹' e.source)) |
| 30 | (hopen : ∀ n, IsOpen |
| 31 | (e.target ∩ (fun z => power n (e.symm z)) ⁻¹' e.source)) |
| 32 | (hscale : ∀ n : ℕ, 0 < n → ∀ q : P × V, |
| 33 | power n (φ (q.1, (n : ℝ)⁻¹ • q.2)) = φ q) |
| 34 | (B : Set P) |
| 35 | (hcoord : ∀ q : P × V, q.1 ∈ B → φ q ∈ e.source → e (φ q) = (q.1, f q)) |
| 36 | (p₀ : P) (U : Set (P × V)) (hU : IsOpen U) (hzero : (p₀, (0 : V)) ∈ U) |
| 37 | (hUB : ∀ q ∈ U, q.1 ∈ B) (hsource : ∀ q ∈ U, φ q ∈ e.source) |
| 38 | (hf : DifferentiableOn ℂ f U) |
| 39 | (v₀ : V) (hv₀ : φ (p₀, v₀) ∈ e.source) : |
| 40 | DifferentiableAt ℂ f (p₀, v₀) := by |
| 41 | have hlim : Tendsto (fun n : ℕ => (p₀, ((n : ℝ) + 1)⁻¹ • v₀)) |
| 42 | atTop (𝓝 (p₀, (0 : V))) := by |
| 43 | have h := (tendsto_one_div_add_atTop_nhds_zero_nat (𝕜 := ℝ)).smul_const v₀ |
| 44 | simpa only [one_div, zero_smul] using tendsto_const_nhds.prodMk_nhds h |
| 45 | obtain ⟨n, hn⟩ := (hlim.eventually (hU.mem_nhds hzero)).exists |
| 46 | change (p₀, ((n : ℝ) + 1)⁻¹ • v₀) ∈ U at hn |
| 47 | let k := n + 1 |
| 48 | have hk : 0 < k := Nat.succ_pos n |
| 49 | let scale : P × V → P × V := fun q => (q.1, (k : ℝ)⁻¹ • q.2) |
| 50 | have hmem : scale (p₀, v₀) ∈ U := by |
| 51 | simpa only [scale, k, Nat.cast_add, Nat.cast_one] using hn |
| 52 | have hscalar (v : V) : Complex.ofReal ((k : ℝ)⁻¹) • v = (k : ℝ)⁻¹ • v := |
| 53 | IsScalarTower.algebraMap_smul ℂ (k : ℝ)⁻¹ v |
| 54 | have hdscale : Differentiable ℂ scale := by |
| 55 | have heq : scale = (fun q : P × V => |
| 56 | (q.1, Complex.ofReal ((k : ℝ)⁻¹) • q.2)) := by |
| 57 | funext q |
| 58 | exact Prod.ext rfl (hscalar q.2).symm |
| 59 | rw [heq] |
| 60 | exact differentiable_fst.prodMk |
| 61 | (differentiable_snd.const_smul (Complex.ofReal ((k : ℝ)⁻¹))) |
| 62 | let z := fun q : P × V => (q.1, f (scale q)) |
| 63 | have hdz : DifferentiableAt ℂ z (p₀, v₀) := |
| 64 | differentiableAt_fst.prodMk ((hf.differentiableAt (hU.mem_nhds hmem)).comp _ hdscale.differentiableAt) |
| 65 | have hz (q : P × V) (hq : scale q ∈ U) : z q = e (φ (scale q)) := |
| 66 | (hcoord (scale q) (hUB _ hq) (hsource _ hq)).symm |
| 67 | have hzmem : z (p₀, v₀) ∈ e.target ∩ |
| 68 | (fun w => power k (e.symm w)) ⁻¹' e.source := by |
| 69 | rw [hz _ hmem] |
| 70 | refine ⟨e.map_source (hsource _ hmem), ?_⟩ |
| 71 | change power k (e.symm (e (φ (scale (p₀, v₀))))) ∈ e.source |
| 72 | rw [e.left_inv (hsource _ hmem)] |
| 73 | exact (hscale k hk (p₀, v₀)) ▸ hv₀ |
| 74 | have hd := ((hpower k).differentiableAt ((hopen k).mem_nhds hzmem)).comp _ hdz |
| 75 | apply hd.snd.congr_of_eventuallyEq |
| 76 | have hsmall := hdscale.continuous.continuousAt.preimage_mem_nhds (hU.mem_nhds hmem) |
| 77 | have hlarge := hdz.continuousAt.preimage_mem_nhds ((hopen k).mem_nhds hzmem) |
| 78 | filter_upwards [hsmall, hlarge] with q hq hqD |
| 79 | change f q = (e (power k (e.symm (z q)))).2 |
| 80 | rw [hz q hq, e.left_inv (hsource _ hq)] |
| 81 | change f q = (e (power k (φ (q.1, (k : ℝ)⁻¹ • q.2)))).2 |
| 82 | rw [hscale k hk] |
| 83 | have hbig : φ q ∈ e.source := by |
| 84 | have h := hqD.2 |
| 85 | change power k (e.symm (z q)) ∈ e.source at h |
| 86 | rw [hz q hq, e.left_inv (hsource _ hq)] at h |
| 87 | exact (hscale k hk q) ▸ h |
| 88 | exact (congrArg Prod.snd (hcoord q (hUB (scale q) hq) hbig)).symm |
| 89 | |
| 90 | end |
| 91 | |
| 92 | /-! A fixed open base neighborhood on which the actual exponential is |
| 93 | holomorphic everywhere that it meets the supplied total-space chart. -/ |
| 94 | |
| 95 | open Set _root_.Metric Filter |
| 96 | open scoped _root_.Topology |
| 97 | |
| 98 | variable {P V X : Type} |
| 99 | [NormedAddCommGroup P] [NormedSpace ℂ P] |
| 100 | [NormedAddCommGroup V] [NormedSpace ℂ V] [NormedSpace ℝ V] |
| 101 | [IsScalarTower ℝ ℂ V] [TopologicalSpace X] |
| 102 | |
| 103 | theorem exists_holomorphic_power_domain |
| 104 | (φ : P × V → X) (f : P × V → V) (e : OpenPartialHomeomorph X (P × V)) |
| 105 | (power : ℕ → X → X) |
| 106 | (hpower : ∀ n, DifferentiableOn ℂ (fun z => e (power n (e.symm z))) |
| 107 | (e.target ∩ (fun z => power n (e.symm z)) ⁻¹' e.source)) |
| 108 | (hopen : ∀ n, IsOpen |
| 109 | (e.target ∩ (fun z => power n (e.symm z)) ⁻¹' e.source)) |
| 110 | (hscale : ∀ n : ℕ, 0 < n → ∀ q : P × V, |
| 111 | power n (φ (q.1, (n : ℝ)⁻¹ • q.2)) = φ q) |
| 112 | (B₀ : Set P) (hB₀ : IsOpen B₀) (p₀ : P) (hp₀ : p₀ ∈ B₀) |
| 113 | (hcoord : ∀ q : P × V, q.1 ∈ B₀ → φ q ∈ e.source → e (φ q) = (q.1, f q)) |
| 114 | (hcont : ContinuousOn φ (B₀ ×ˢ Set.univ)) |
| 115 | (U : Set (P × V)) (hU : IsOpen U) (hzero : (p₀, (0 : V)) ∈ U) |
| 116 | (hf : DifferentiableOn ℂ f U) (hsource₀ : φ (p₀, 0) ∈ e.source) : |
| 117 | ∃ B : Set P, IsOpen B ∧ p₀ ∈ B ∧ B ⊆ B₀ ∧ |
| 118 | IsOpen ((B ×ˢ Set.univ) ∩ φ ⁻¹' e.source) ∧ |
| 119 | DifferentiableOn ℂ f ((B ×ˢ Set.univ) ∩ φ ⁻¹' e.source) := by |
| 120 | let O := (B₀ ×ˢ Set.univ) ∩ U |
| 121 | have hO : IsOpen O := (hB₀.prod isOpen_univ).inter hU |
| 122 | let W := O ∩ φ ⁻¹' e.source |
| 123 | have hW : IsOpen W := (hcont.mono inter_subset_left).isOpen_inter_preimage hO e.open_source |
| 124 | have hpW : (p₀, (0 : V)) ∈ W := ⟨⟨⟨hp₀, mem_univ 0⟩, hzero⟩, hsource₀⟩ |
| 125 | let B := {p : P | (p, (0 : V)) ∈ W} |
| 126 | have hB : IsOpen B := hW.preimage (continuous_id.prodMk continuous_const) |
| 127 | have hBB₀ : B ⊆ B₀ := fun _ hp => hp.1.1.1 |
| 128 | have hD : IsOpen ((B ×ˢ Set.univ) ∩ φ ⁻¹' e.source) := |
| 129 | (hcont.mono (Set.prod_mono hBB₀ subset_rfl)).isOpen_inter_preimage |
| 130 | (hB.prod isOpen_univ) e.open_source |
| 131 | refine ⟨B, hB, hpW, hBB₀, hD, ?_⟩ |
| 132 | intro q hq |
| 133 | exact (differentiableAt_of_holomorphic_power_coordinates φ f e power hpower hopen hscale |
| 134 | B₀ hcoord q.1 W hW hq.1.1 (fun _ hw => hw.1.1.1) (fun _ hw => hw.2) |
| 135 | (hf.mono (fun _ hw => hw.1.2)) q.2 hq.2).differentiableWithinAt |
| 136 | |
| 137 | end |
| 138 | |
| 139 | end OAI.AlgebraicGeometry.PELModuli.CMPoints.HolomorphicPowerContinuation |