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.Algebra.Order.BigOperators.Group.Finset |
| 2 | import Mathlib.LinearAlgebra.Basis.VectorSpace |
| 3 | import Mathlib.Algebra.BigOperators.Ring.Finset |
| 4 | |
| 5 | /-! # Coordinate Frame Selection -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Finite.CoordinateFrameSelection |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! A finite configuration with fewer than one r-th of its points in |
| 12 | each of r coordinate hyperplanes has a point outside all of them. This |
| 13 | is the finite union estimate used to select a projective frame. -/ |
| 14 | open scoped BigOperators Classical |
| 15 | universe u v w |
| 16 | |
| 17 | theorem finite_small_sets_do_not_cover |
| 18 | {ι : Type u} {κ : Type v} [Fintype ι] [Fintype κ] [Nonempty κ] |
| 19 | (B : κ → Finset ι) |
| 20 | (h : ∀ k, Fintype.card κ * (B k).card < Fintype.card ι) : |
| 21 | ∃ j : ι, ∀ k, j ∉ B k := by |
| 22 | classical |
| 23 | by_contra hn |
| 24 | push Not at hn |
| 25 | have hcover : (Finset.univ : Finset ι) ⊆ Finset.univ.biUnion B := by |
| 26 | intro j _ |
| 27 | obtain ⟨k, hk⟩ := hn j |
| 28 | exact Finset.mem_biUnion.mpr ⟨k, Finset.mem_univ k, hk⟩ |
| 29 | have hcount : Fintype.card ι ≤ ∑ k, (B k).card := |
| 30 | (Finset.card_le_card hcover).trans Finset.card_biUnion_le |
| 31 | have hsum : Fintype.card κ * (∑ k, (B k).card) < Fintype.card κ * Fintype.card ι := by |
| 32 | rw [Finset.mul_sum] |
| 33 | calc |
| 34 | (∑ k, Fintype.card κ * (B k).card) < ∑ _k : κ, Fintype.card ι := |
| 35 | Finset.sum_lt_sum_of_nonempty Finset.univ_nonempty (fun k _ => h k) |
| 36 | _ = _ := by simp only [Finset.sum_const, Finset.card_univ, smul_eq_mul] |
| 37 | exact (Nat.not_lt_of_ge (Nat.mul_le_mul_left (Fintype.card κ) hcount)) hsum |
| 38 | |
| 39 | theorem basis_sparseFamily_exists_all_coordinates_ne_zero |
| 40 | {K : Type u} [Field K] {V : Type v} [AddCommGroup V] [Module K V] |
| 41 | {ι : Type w} {κ : Type v} [Fintype ι] [Fintype κ] [Nonempty κ] |
| 42 | (b : Module.Basis κ K V) (v : ι → V) |
| 43 | (h : ∀ k, Fintype.card κ * (Finset.univ.filter (fun j => b.repr (v j) k = 0)).card < |
| 44 | Fintype.card ι) : |
| 45 | ∃ j : ι, ∀ k, b.repr (v j) k ≠ 0 := by |
| 46 | obtain ⟨j, hj⟩ := finite_small_sets_do_not_cover |
| 47 | (fun k => Finset.univ.filter (fun j => b.repr (v j) k = 0)) h |
| 48 | refine ⟨j, fun k hk => ?_⟩ |
| 49 | exact hj k (Finset.mem_filter.mpr ⟨Finset.mem_univ j, hk⟩) |
| 50 | |
| 51 | end |
| 52 | |
| 53 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Finite.CoordinateFrameSelection |