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.CategoryTheory.Limits.Constructions.FiniteProductsOfBinaryProducts |
| 2 | |
| 3 | /-! # Nonempty Finite Products -/ |
| 4 | |
| 5 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.NonemptyFiniteProducts |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! Binary products suffice for all nonempty finite tuples in the original crystalline category. -/ |
| 10 | |
| 11 | open _root_.CategoryTheory _root_.CategoryTheory.Limits |
| 12 | |
| 13 | universe u v |
| 14 | |
| 15 | variable {C : Type u} [Category.{v} C] [HasBinaryProducts C] |
| 16 | |
| 17 | theorem hasProduct : ∀ (n : ℕ) (f : Fin (n + 1) → C), HasProduct f |
| 18 | | 0 => fun f => by |
| 19 | let : Unique (Fin 1) := |
| 20 | { default := ⟨0, Nat.zero_lt_one⟩ |
| 21 | uniq i := Fin.ext (Nat.eq_zero_of_le_zero (Nat.le_of_lt_succ i.isLt)) } |
| 22 | exact HasLimit.mk (limitConeOfUnique f) |
| 23 | | n + 1 => fun f => by |
| 24 | let := hasProduct n (fun i => f i.succ) |
| 25 | exact HasLimit.mk ⟨_, extendFanIsLimit f (limit.isLimit _) (limit.isLimit _)⟩ |
| 26 | |
| 27 | instance hasProductsOfShape (n : ℕ) : HasProductsOfShape (Fin (n + 1)) C := |
| 28 | ⟨fun K => by |
| 29 | let e : Discrete.functor (fun i => K.obj ⟨i⟩) ≅ K := Discrete.natIso (fun _ => Iso.refl _) |
| 30 | rw [← hasLimit_iff_of_iso e] |
| 31 | exact NonemptyFiniteProducts.hasProduct n _⟩ |
| 32 | |
| 33 | end |
| 34 | |
| 35 | end OAI.NumberTheory.PadicHodge.IntegralComparison.NonemptyFiniteProducts |