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.Topology.Algebra.Module.FiniteDimension |
| 2 | import Mathlib.Topology.Algebra.Affine |
| 3 | import Mathlib.LinearAlgebra.AffineSpace.FiniteDimensional |
| 4 | import Mathlib.Analysis.Convex.Combination |
| 5 | |
| 6 | /-! # Basis Interior Witness -/ |
| 7 | |
| 8 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Affine.BasisInteriorWitness |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! A finite affine basis gives an explicit point in the interior of |
| 13 | its convex hull. Positivity of its continuous barycentric coordinates |
| 14 | provides an open neighborhood of the centroid. -/ |
| 15 | open Set |
| 16 | open scoped Classical |
| 17 | variable {E : Type*} [NormedAddCommGroup E] [NormedSpace ℝ E] [FiniteDimensional ℝ E] |
| 18 | |
| 19 | theorem affineBasis_centroid_mem_interior {ι : Type*} [Fintype ι] (b : AffineBasis ι ℝ E) : |
| 20 | Finset.univ.centroid ℝ b ∈ interior (convexHull ℝ (range b)) := by |
| 21 | have : Nonempty ι := b.nonempty |
| 22 | let U : Set E := {x | ∀ i, 0 < b.coord i x} |
| 23 | have hU : IsOpen U := by |
| 24 | simpa only [U, Set.ofPred_forall] using isOpen_iInter_of_finite (fun i => |
| 25 | isOpen_lt continuous_const |
| 26 | (AffineMap.continuous_linear_iff.mp (b.coord i).linear.continuous_of_finiteDimensional)) |
| 27 | have hsub : U ⊆ convexHull ℝ (range b) := by |
| 28 | intro x hx |
| 29 | rw [b.convexHull_eq_nonneg_coord] |
| 30 | exact fun i => (hx i).le |
| 31 | apply interior_maximal hsub hU |
| 32 | intro i |
| 33 | rw [b.coord_apply_centroid (Finset.mem_univ i)] |
| 34 | exact inv_pos.mpr (Nat.cast_pos.mpr (Finset.card_pos.mpr Finset.univ_nonempty)) |
| 35 | |
| 36 | theorem convexHull_interior_nonempty_of_affineSpan_eq_top {s : Set E} |
| 37 | (hs : affineSpan ℝ s = ⊤) : (interior (convexHull ℝ s)).Nonempty := by |
| 38 | obtain ⟨t, hts, b, hb⟩ := AffineBasis.exists_affine_subbasis hs |
| 39 | have ht : t.Finite := b.setFinite |
| 40 | let : Fintype t := ht.fintype |
| 41 | have hrange : range b ⊆ s := by |
| 42 | rw [hb, Subtype.range_coe_subtype] |
| 43 | exact hts |
| 44 | exact ⟨Finset.univ.centroid ℝ b, |
| 45 | interior_mono (convexHull_mono hrange) (affineBasis_centroid_mem_interior b)⟩ |
| 46 | |
| 47 | end |
| 48 | |
| 49 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Affine.BasisInteriorWitness |