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.ProperAnalyticImage |
| 2 | |
| 3 | /-! # Fiber Cardinality -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.ComplexGroups.HolomorphicAlgebraicity.FiberCardinality.Constructions.Cone |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! |
| 10 | # Local bounds on the cardinalities of proper analytic fibers |
| 11 | |
| 12 | Each local prepared polynomial bounds the number of roots in its disk. |
| 13 | Properness ensures finitely many such disks cover all nearby fibers. |
| 14 | -/ |
| 15 | |
| 16 | open Set Filter _root_.Metric _root_.Complex _root_.Polynomial |
| 17 | open scoped _root_.Topology BigOperators |
| 18 | |
| 19 | theorem eventually_fiber_mem_disk_union {n : ℕ} {S : Set ((Fin n → ℂ) × ℂ)} |
| 20 | {x : Fin n → ℂ} (hproper : IsProperMap (fun p : S => p.val.1)) |
| 21 | (R : {z : ℂ | (x, z) ∈ S} → ℝ) (hR : ∀ a, 0 < R a) : |
| 22 | ∀ᶠ y in 𝓝 x, ∀ z, (y, z) ∈ S → |
| 23 | ∃ a : {z : ℂ | (x, z) ∈ S}, z ∈ ball (a : ℂ) (R a) := by |
| 24 | let O : Set ((Fin n → ℂ) × ℂ) := |
| 25 | ⋃ a : {z : ℂ | (x, z) ∈ S}, Prod.snd ⁻¹' ball (a : ℂ) (R a) |
| 26 | have hO : IsOpen O := isOpen_iUnion (fun a => isOpen_ball.preimage continuous_snd) |
| 27 | let D : Set S := Subtype.val ⁻¹' Oᶜ |
| 28 | have hD : IsClosed D := hO.isClosed_compl.preimage continuous_subtype_val |
| 29 | have hclosed := hproper.isClosedMap D hD |
| 30 | have hxnot : x ∉ (fun p : S => p.val.1) '' D := by |
| 31 | rintro ⟨⟨⟨y, z⟩, hyz⟩, hpD, hpx⟩ |
| 32 | dsimp only at hpx |
| 33 | subst y |
| 34 | exact hpD (mem_iUnion.mpr ⟨⟨z, hyz⟩, mem_ball_self (hR ⟨z, hyz⟩)⟩) |
| 35 | filter_upwards [hclosed.isOpen_compl.mem_nhds hxnot] with y hy |
| 36 | intro z hyz |
| 37 | have hyo : (y, z) ∈ O := by |
| 38 | by_contra hnot |
| 39 | exact hy ⟨⟨(y, z), hyz⟩, hnot, rfl⟩ |
| 40 | obtain ⟨a, ha⟩ := mem_iUnion.mp hyo |
| 41 | exact ⟨a, ha⟩ |
| 42 | |
| 43 | theorem exists_local_polynomial_bound {n : ℕ} {S : Set ((Fin n → ℂ) × ℂ)} |
| 44 | {x : Fin n → ℂ} {c : ℂ} (hlocal : ZeroLocus.Constructions.Cone.HolomorphicZeroSetAt S (x, c)) |
| 45 | (hfinite : {z : ℂ | (x, z) ∈ S}.Finite) : |
| 46 | ∃ (R : ℝ) (d : ℕ) (U : Set (Fin n → ℂ)) (P : (Fin n → ℂ) → Polynomial ℂ), |
| 47 | 0 < R ∧ IsOpen U ∧ x ∈ U ∧ |
| 48 | ∀ y ∈ U, (P y).Monic ∧ (P y).natDegree = d ∧ |
| 49 | ∀ z ∈ closedBall c R, (y, z) ∈ S → (P y).eval z = 0 := by |
| 50 | obtain ⟨R, d, m, U, Q, hR, hU, hx, _, _, hQ, heq⟩ := |
| 51 | PolynomialFibers.Constructions.Preparation.polynomial_equations_of_finite_fiber hlocal hfinite |
| 52 | exact ⟨R, d, U, Q 0, hR, hU, hx, fun y hy => |
| 53 | ⟨(hQ y hy).1, (hQ y hy).2.1, fun z hz hzs => ((heq y hy z hz).mp hzs) 0⟩⟩ |
| 54 | |
| 55 | theorem eventually_bounded_fiber_cardinality {n : ℕ} |
| 56 | {S : Set ((Fin n → ℂ) × ℂ)} {x : Fin n → ℂ} |
| 57 | (hproper : IsProperMap (fun p : S => p.val.1)) |
| 58 | (hfinite : {z : ℂ | (x, z) ∈ S}.Finite) |
| 59 | (hlocal : ∀ z, (x, z) ∈ S → ZeroLocus.Constructions.Cone.HolomorphicZeroSetAt S (x, z)) : |
| 60 | ∃ N : ℕ, ∀ᶠ y in 𝓝 x, {z : ℂ | (y, z) ∈ S}.Finite ∧ |
| 61 | {z : ℂ | (y, z) ∈ S}.ncard ≤ N := by |
| 62 | classical |
| 63 | let K := {z : ℂ | (x, z) ∈ S} |
| 64 | let : Fintype K := hfinite.fintype |
| 65 | have hprep := fun a : K => exists_local_polynomial_bound (hlocal a a.property) hfinite |
| 66 | choose R d U P hR hU hx hP using hprep |
| 67 | have hcover := eventually_fiber_mem_disk_union hproper R hR |
| 68 | have hnear : ∀ᶠ y in 𝓝 x, ∀ a : K, y ∈ U a := |
| 69 | eventually_all.mpr (fun a => (hU a).mem_nhds (hx a)) |
| 70 | refine ⟨∑ a : K, d a, ?_⟩ |
| 71 | filter_upwards [hcover, hnear] with y hy hUy |
| 72 | let H : Finset ℂ := Finset.univ.biUnion (fun a : K => (P a y).roots.toFinset) |
| 73 | have hsub : {z : ℂ | (y, z) ∈ S} ⊆ (H : Set ℂ) := by |
| 74 | intro z hz |
| 75 | obtain ⟨a, ha⟩ := hy z hz |
| 76 | exact Finset.mem_biUnion.mpr ⟨a, Finset.mem_univ _, Multiset.mem_toFinset.mpr |
| 77 | ((mem_roots (hP a y (hUy a)).1.ne_zero).mpr |
| 78 | ((hP a y (hUy a)).2.2 z (ball_subset_closedBall ha) hz))⟩ |
| 79 | have hcard : H.card ≤ ∑ a : K, d a := by |
| 80 | apply (Finset.card_biUnion_le).trans |
| 81 | apply Finset.sum_le_sum |
| 82 | intro a _ |
| 83 | exact (Multiset.toFinset_card_le _).trans |
| 84 | ((card_roots' (P a y)).trans_eq (hP a y (hUy a)).2.1) |
| 85 | refine ⟨H.finite_toSet.subset hsub, ?_⟩ |
| 86 | exact (ncard_le_ncard hsub H.finite_toSet).trans (by simpa only [ncard_coe_finset] using hcard) |
| 87 | |
| 88 | theorem bounded_on_compact_of_locally_bounded {X : Type*} [TopologicalSpace X] |
| 89 | {s : Set X} (hs : IsCompact s) {b : X → ℕ} |
| 90 | (hlocal : ∀ x ∈ s, ∃ N : ℕ, ∀ᶠ y in 𝓝 x, b y ≤ N) : |
| 91 | ∃ N : ℕ, ∀ x ∈ s, b x ≤ N := by |
| 92 | classical |
| 93 | choose N hN using (fun a : s => hlocal a a.property) |
| 94 | have hopen := fun a : s => _root_.mem_nhds_iff.mp (hN a) |
| 95 | choose U hUb hU hxU using hopen |
| 96 | have hcover : s ⊆ ⋃ a : s, U a := fun x hx => mem_iUnion.mpr ⟨⟨x, hx⟩, hxU ⟨x, hx⟩⟩ |
| 97 | obtain ⟨t, ht⟩ := hs.elim_finite_subcover U hU hcover |
| 98 | refine ⟨t.sup N, fun x hx => ?_⟩ |
| 99 | obtain ⟨a, hxa⟩ := mem_iUnion.mp (ht hx) |
| 100 | obtain ⟨ha, hxa⟩ := mem_iUnion.mp hxa |
| 101 | exact (hUb a hxa).trans (Finset.le_sup ha) |
| 102 | |
| 103 | theorem fiber_eq_scaled_image |
| 104 | {E : Type*} [NormedAddCommGroup E] [NormedSpace ℂ E] |
| 105 | {S : Set (E × ℂ)} (hcone : ∀ (a : ℂ) ⦃v⦄, v ∈ S → a • v ∈ S) |
| 106 | {a : ℂ} (ha : a ≠ 0) (y : E) : |
| 107 | {z : ℂ | (a • y, z) ∈ S} = (fun z : ℂ => a * z) '' {z : ℂ | (y, z) ∈ S} := by |
| 108 | ext z |
| 109 | constructor |
| 110 | · intro hz |
| 111 | refine ⟨a⁻¹ * z, ?_, mul_inv_cancel_left₀ ha z⟩ |
| 112 | change (y, a⁻¹ * z) ∈ S |
| 113 | have h := hcone a⁻¹ hz |
| 114 | simpa only [Prod.smul_mk, smul_smul, inv_mul_cancel₀ ha, one_smul, smul_eq_mul] using h |
| 115 | · rintro ⟨w, hw, rfl⟩ |
| 116 | exact hcone a hw |
| 117 | |
| 118 | theorem fiber_ncard_smul |
| 119 | {E : Type*} [NormedAddCommGroup E] [NormedSpace ℂ E] |
| 120 | {S : Set (E × ℂ)} (hcone : ∀ (a : ℂ) ⦃v⦄, v ∈ S → a • v ∈ S) |
| 121 | {a : ℂ} (ha : a ≠ 0) (y : E) : |
| 122 | {z : ℂ | (a • y, z) ∈ S}.ncard = {z : ℂ | (y, z) ∈ S}.ncard := by |
| 123 | rw [fiber_eq_scaled_image hcone ha y] |
| 124 | exact ncard_image_of_injective _ (mul_right_injective₀ ha) |
| 125 | |
| 126 | /-- Scaling reduces a global fiber-cardinality bound to compactness of the |
| 127 | unit sphere; the vertex fiber is handled separately. -/ |
| 128 | theorem bounded_fiber_cardinality_of_cone {n : ℕ} |
| 129 | {S : Set ((Fin n → ℂ) × ℂ)} |
| 130 | (hproper : IsProperMap (fun p : S => p.val.1)) |
| 131 | (hfinite : ∀ y, {z : ℂ | (y, z) ∈ S}.Finite) |
| 132 | (hcone : ∀ (a : ℂ) ⦃v⦄, v ∈ S → a • v ∈ S) |
| 133 | (hlocal : ∀ v ∈ S, v ≠ 0 → ZeroLocus.Constructions.Cone.HolomorphicZeroSetAt S v) : |
| 134 | ∃ N : ℕ, ∀ y, {z : ℂ | (y, z) ∈ S}.ncard ≤ N := by |
| 135 | have hb : ∀ y ∈ sphere (0 : Fin n → ℂ) 1, |
| 136 | ∃ N : ℕ, ∀ᶠ x in 𝓝 y, {z : ℂ | (x, z) ∈ S}.ncard ≤ N := by |
| 137 | intro y hy |
| 138 | have hy0 : y ≠ 0 := by |
| 139 | intro h |
| 140 | simp only [h, mem_sphere, dist_self, zero_ne_one] at hy |
| 141 | obtain ⟨N, hN⟩ := eventually_bounded_fiber_cardinality hproper (hfinite y) |
| 142 | (fun z hz => hlocal (y, z) hz (fun h => hy0 (congrArg Prod.fst h))) |
| 143 | exact ⟨N, hN.mono (fun _ h => h.2)⟩ |
| 144 | obtain ⟨N, hN⟩ := bounded_on_compact_of_locally_bounded (isCompact_sphere (0 : Fin n → ℂ) 1) hb |
| 145 | refine ⟨max N {z : ℂ | ((0 : Fin n → ℂ), z) ∈ S}.ncard, fun y => ?_⟩ |
| 146 | by_cases hy : y = 0 |
| 147 | · subst y |
| 148 | exact le_max_right _ _ |
| 149 | let a : ℂ := (‖y‖ : ℂ)⁻¹ |
| 150 | have ha : a ≠ 0 := inv_ne_zero (ofReal_ne_zero.mpr (norm_ne_zero_iff.mpr hy)) |
| 151 | have hunit : a • y ∈ sphere (0 : Fin n → ℂ) 1 := by |
| 152 | rw [mem_sphere_iff_norm, sub_zero, norm_smul] |
| 153 | simp [a, norm_ne_zero_iff.mpr hy] |
| 154 | rw [← fiber_ncard_smul hcone ha y] |
| 155 | exact (hN (a • y) hunit).trans (le_max_left _ _) |
| 156 | |
| 157 | end |
| 158 | |
| 159 | end OAI.AlgebraicGeometry.ComplexGroups.HolomorphicAlgebraicity.FiberCardinality.Constructions.Cone |