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.AbelianModuli.HilbertConstruction.SparseFiniteProjectiveFrames |
| 2 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.ProjectiveFrame.Normalization |
| 3 | |
| 4 | /-! # Indexed Projective Frames -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Finite.IndexedProjectiveFrames |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! A projective frame chosen from a finite labeled configuration can |
| 11 | be indexed by the prescribed rank, retaining the actual selected labels. -/ |
| 12 | open scoped Classical |
| 13 | universe u v |
| 14 | variable {K V : Type u} [Field K] [AddCommGroup V] [Module K V] [Module.Finite K V] |
| 15 | variable {ι : Type v} (e : ι → V) {r : ℕ} |
| 16 | |
| 17 | def HasFiniteIndexedProjectiveFrame : Prop := |
| 18 | ∃ (b : Module.Basis (Fin r) K V) (σ : Fin r → ι), |
| 19 | (∀ k, b k = e (σ k)) ∧ ∃ j : ι, ∀ k, b.repr (e j) k ≠ 0 |
| 20 | |
| 21 | omit [Module.Finite K V] in |
| 22 | theorem hasFiniteIndexedProjectiveFrame_of_basis |
| 23 | (hr : Module.finrank K V = r) |
| 24 | (h : ∃ (κ : Type u) (_ : Fintype κ) (b : Module.Basis κ K V), |
| 25 | Set.range b ⊆ Set.range e ∧ ∃ j : ι, ∀ k, b.repr (e j) k ≠ 0) : |
| 26 | HasFiniteIndexedProjectiveFrame (K := K) (r := r) e := by |
| 27 | obtain ⟨κ, hκ, b, hb, j, hj⟩ := h |
| 28 | let : Fintype κ := hκ |
| 29 | have hc : Fintype.card κ = r := (Module.finrank_eq_card_basis b).symm.trans hr |
| 30 | let q : κ ≃ Fin r := (Fintype.equivFin κ).trans (finCongr hc) |
| 31 | let c := b.reindex q |
| 32 | have he (k : Fin r) : ∃ i : ι, e i = c k := hb ⟨q.symm k, by simp [c]⟩ |
| 33 | choose σ hσ using he |
| 34 | exact ⟨c, σ, fun k => (hσ k).symm, j, fun k => by |
| 35 | simpa only [c, Module.Basis.repr_reindex_apply] using hj (q.symm k)⟩ |
| 36 | |
| 37 | omit [Module.Finite K V] in |
| 38 | theorem HasFiniteIndexedProjectiveFrame.selected_labels_injective |
| 39 | (b : Module.Basis (Fin r) K V) (σ : Fin r → ι) (hb : ∀ k, b k = e (σ k)) : |
| 40 | Function.Injective σ := by |
| 41 | intro i j hij |
| 42 | apply b.injective |
| 43 | rw [hb, hb, hij] |
| 44 | |
| 45 | omit [Module.Finite K V] in |
| 46 | theorem HasFiniteIndexedProjectiveFrame.normalization |
| 47 | (h : HasFiniteIndexedProjectiveFrame (K := K) (r := r) e) : |
| 48 | ∃ (f : V ≃ₗ[K] (Fin r → K)) (σ : Fin r → ι) (j : ι), |
| 49 | Function.Injective σ ∧ f (e j) = (fun _ => 1) ∧ |
| 50 | ∀ i : Fin r, ∃ c : K, c ≠ 0 ∧ |
| 51 | ∀ k : Fin r, f (e (σ i)) k = if i = k then c else 0 := by |
| 52 | obtain ⟨b, σ, hb, j, hj⟩ := h |
| 53 | let hu := fun k => isUnit_iff_ne_zero.mpr (hj k) |
| 54 | let f := ProjectiveFrame.Normalization.projectiveFrameNormalization b (e j) hu |
| 55 | refine ⟨f, σ, j, HasFiniteIndexedProjectiveFrame.selected_labels_injective e b σ hb, |
| 56 | ProjectiveFrame.Normalization.projectiveFrameNormalization_additional b (e j) hu, ?_⟩ |
| 57 | intro i |
| 58 | refine ⟨↑((hu i).unit⁻¹), Units.ne_zero _, fun k => ?_⟩ |
| 59 | rw [← hb i, ProjectiveFrame.Normalization.projectiveFrameNormalization_basis] |
| 60 | by_cases hik : i = k |
| 61 | · subst k |
| 62 | simp only |
| 63 | · simp only [hik, ite_false] |
| 64 | |
| 65 | end |
| 66 | |
| 67 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Finite.IndexedProjectiveFrames |