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.GroupWithZero.Finset |
| 2 | import Mathlib.Algebra.Order.Ring.Nat |
| 3 | import Mathlib.Data.Fintype.Fin |
| 4 | import Mathlib.Tactic.NormNum |
| 5 | |
| 6 | /-! # Embedding Numerics -/ |
| 7 | |
| 8 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Graph.EmbeddingNumerics |
| 9 | |
| 10 | /-! The fixed ranks and degrees of the graph embeddings. -/ |
| 11 | |
| 12 | open scoped BigOperators |
| 13 | |
| 14 | def graphSquareSectionRank (g : ℕ) (δ : Fin g → ℕ) : ℕ := |
| 15 | (2 : ℕ) ^ g * (∏ i, δ i) * 2 ^ g |
| 16 | |
| 17 | theorem graphSquareSectionRank_pos (g : ℕ) (δ : Fin g → ℕ) (hδ : ∀ i, 0 < δ i) : |
| 18 | 0 < graphSquareSectionRank g δ := by |
| 19 | exact Nat.mul_pos (Nat.mul_pos (pow_pos (by decide) g) |
| 20 | (Finset.prod_pos (fun i _ => hδ i))) (pow_pos (by decide) g) |
| 21 | |
| 22 | theorem graphSquareSectionRank_eq (g : ℕ) (δ : Fin g → ℕ) : |
| 23 | graphSquareSectionRank g δ = (4 : ℕ) ^ g * ∏ i, δ i := by |
| 24 | dsimp [graphSquareSectionRank] |
| 25 | calc |
| 26 | _ = ((2 : ℕ) ^ g * 2 ^ g) * ∏ i, δ i := by ac_rfl |
| 27 | _ = (4 : ℕ) ^ g * ∏ i, δ i := by rw [← mul_pow]; norm_num |
| 28 | |
| 29 | def graphUniformEmbeddingDegree (g : ℕ) (δ : Fin g → ℕ) : ℕ := |
| 30 | 2 * graphSquareSectionRank g δ |
| 31 | |
| 32 | def graphUniformEmbeddingSectionRank (g : ℕ) (δ : Fin g → ℕ) : ℕ := |
| 33 | (2 : ℕ) ^ g * (∏ i, δ i) * graphUniformEmbeddingDegree g δ ^ g |
| 34 | |
| 35 | theorem graphUniformEmbeddingDegree_pos (g : ℕ) (δ : Fin g → ℕ) (hδ : ∀ i, 0 < δ i) : |
| 36 | 0 < graphUniformEmbeddingDegree g δ := |
| 37 | Nat.mul_pos (by decide) (graphSquareSectionRank_pos g δ hδ) |
| 38 | |
| 39 | theorem graphUniformEmbeddingSectionRank_pos (g : ℕ) (δ : Fin g → ℕ) (hδ : ∀ i, 0 < δ i) : |
| 40 | 0 < graphUniformEmbeddingSectionRank g δ := |
| 41 | Nat.mul_pos (Nat.mul_pos (pow_pos (by decide) g) (Finset.prod_pos (fun i _ => hδ i))) |
| 42 | (pow_pos (graphUniformEmbeddingDegree_pos g δ hδ) g) |
| 43 | |
| 44 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Graph.EmbeddingNumerics |