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.Normed.Module.FiniteDimension |
| 2 | import Mathlib.Analysis.Normed.Module.Convex |
| 3 | import Mathlib.Topology.Compactness.Compact |
| 4 | |
| 5 | /-! # Compact Convex Neighborhood -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.CycleClass.Geometric.CompactConvexNeighborhood.Cycles |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! |
| 12 | # Finite compact convex neighborhoods inside an open set |
| 13 | |
| 14 | A compact subset of an open set in a finite-dimensional real normed space |
| 15 | has a neighborhood which is a finite union of genuine closed balls, all |
| 16 | contained in the open set. Compactness is used on neighborhoods, so the |
| 17 | conclusion places the compact set in the interior of the union. |
| 18 | -/ |
| 19 | |
| 20 | open Set Filter |
| 21 | open scoped _root_.Topology |
| 22 | |
| 23 | universe u |
| 24 | |
| 25 | variable {E : Type u} [NormedAddCommGroup E] [NormedSpace ℝ E] |
| 26 | [FiniteDimensional ℝ E] |
| 27 | |
| 28 | /-- A compact set inside an open set has a neighborhood which is a finite |
| 29 | union of compact convex closed balls contained in that open set. The ball |
| 30 | centers lie in the original compact set and all radii are positive. -/ |
| 31 | theorem exists_finite_closedBall_neighborhood {K W : Set E} |
| 32 | (hK : IsCompact K) (hW : IsOpen W) (hKW : K ⊆ W) : |
| 33 | ∃ (centers : Finset E) (radius : E → ℝ), |
| 34 | (∀ x ∈ centers, |
| 35 | x ∈ K ∧ 0 < radius x ∧ |
| 36 | IsCompact (Metric.closedBall x (radius x)) ∧ |
| 37 | Convex ℝ (Metric.closedBall x (radius x)) ∧ |
| 38 | Metric.closedBall x (radius x) ⊆ W) ∧ |
| 39 | K ⊆ interior (⋃ x ∈ centers, Metric.closedBall x (radius x)) ∧ |
| 40 | (⋃ x ∈ centers, Metric.closedBall x (radius x)) ⊆ W ∧ |
| 41 | IsCompact (⋃ x ∈ centers, Metric.closedBall x (radius x)) := by |
| 42 | classical |
| 43 | choose! radius hpos hsub using fun x (hx : x ∈ K) => |
| 44 | Metric.nhds_basis_closedBall.mem_iff.mp (hW.mem_nhds (hKW hx)) |
| 45 | obtain ⟨centers, hcenters, hcover⟩ := hK.elim_nhds_subcover_nhdsSet |
| 46 | (U := fun x => Metric.closedBall x (radius x)) |
| 47 | (fun x hx => Metric.closedBall_mem_nhds x (hpos x hx)) |
| 48 | refine ⟨centers, radius, ?_, subset_interior_iff_mem_nhdsSet.mpr hcover, ?_, ?_⟩ |
| 49 | · intro x hx |
| 50 | exact ⟨hcenters x hx, hpos x (hcenters x hx), isCompact_closedBall x (radius x), |
| 51 | convex_closedBall x (radius x), hsub x (hcenters x hx)⟩ |
| 52 | · exact iUnion₂_subset fun x hx => hsub x (hcenters x hx) |
| 53 | · exact centers.isCompact_biUnion fun x _ => isCompact_closedBall x (radius x) |
| 54 | |
| 55 | end |
| 56 | |
| 57 | end OAI.AlgebraicGeometry.CycleClass.Geometric.CompactConvexNeighborhood.Cycles |