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.CycleClass.Thom.ProjectiveCoordinates |
| 2 | import Mathlib.Logic.Equiv.Fin.Basic |
| 3 | import Mathlib.Tactic.Ring |
| 4 | |
| 5 | /-! # Segre Coordinates -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.CycleClass.Thom.SegreCoordinates.Constructions.ProjectiveProducts |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 12 | |
| 13 | /-- The projective dimension for the tensor product of two homogeneous |
| 14 | coordinate vectors. -/ |
| 15 | def segreDimension (m n : ℕ) : ℕ := m * n + m + n |
| 16 | |
| 17 | /-- Index tensor coordinates by the ordinary projective coordinate type. -/ |
| 18 | def segreIndexEquiv (m n : ℕ) : Fin (m + 1) × Fin (n + 1) ≃ Fin (segreDimension m n + 1) := |
| 19 | finProdFinEquiv.trans (finCongr (by dsimp [segreDimension]; ring)) |
| 20 | |
| 21 | /-- Pairwise products of homogeneous coordinates. -/ |
| 22 | def segreVector {R : Type*} [Mul R] {m n : ℕ} |
| 23 | (v : Fin (m + 1) → R) (w : Fin (n + 1) → R) : Fin (segreDimension m n + 1) → R := |
| 24 | fun k => v ((segreIndexEquiv m n).symm k).1 * w ((segreIndexEquiv m n).symm k).2 |
| 25 | |
| 26 | @[simp] |
| 27 | theorem segreVector_pair {R : Type*} [Mul R] {m n : ℕ} |
| 28 | (v : Fin (m + 1) → R) (w : Fin (n + 1) → R) (i : Fin (m + 1)) (j : Fin (n + 1)) : |
| 29 | segreVector v w (segreIndexEquiv m n (i, j)) = v i * w j := by |
| 30 | simp [segreVector] |
| 31 | |
| 32 | theorem segreVector_normalized {R : Type*} [MulOneClass R] {m n : ℕ} |
| 33 | (v : Fin (m + 1) → R) (w : Fin (n + 1) → R) (i : Fin (m + 1)) (j : Fin (n + 1)) |
| 34 | (hv : v i = 1) (hw : w j = 1) : |
| 35 | segreVector v w (segreIndexEquiv m n (i, j)) = 1 := by simp [hv, hw] |
| 36 | |
| 37 | /-- Tensor coordinates of two nonzero vectors over a domain are nonzero. -/ |
| 38 | theorem segreVector_ne_zero {R : Type*} [CommRing R] [IsDomain R] {m n : ℕ} |
| 39 | (v : Fin (m + 1) → R) (w : Fin (n + 1) → R) (hv : v ≠ 0) (hw : w ≠ 0) : |
| 40 | segreVector v w ≠ 0 := by |
| 41 | obtain ⟨i, hi⟩ : ∃ i, v i ≠ 0 := Function.ne_iff.mp hv |
| 42 | obtain ⟨j, hj⟩ : ∃ j, w j ≠ 0 := Function.ne_iff.mp hw |
| 43 | intro h |
| 44 | have hz := congrFun h (segreIndexEquiv m n (i, j)) |
| 45 | exact (mul_ne_zero hi hj) (by simpa using hz) |
| 46 | |
| 47 | /-- Changing either homogeneous representative only rescales the Segre vector. -/ |
| 48 | theorem segreVector_smul {R : Type*} [CommRing R] {m n : ℕ} |
| 49 | (v : Fin (m + 1) → R) (w : Fin (n + 1) → R) (c d : R) : |
| 50 | segreVector (c • v) (d • w) = (c * d) • segreVector v w := by |
| 51 | funext k |
| 52 | simp only [segreVector, Pi.smul_apply, smul_eq_mul] |
| 53 | ring |
| 54 | |
| 55 | /-- Segre coordinates satisfy all rank-one matrix equations. -/ |
| 56 | theorem segreVector_minor {R : Type*} [CommRing R] {m n : ℕ} |
| 57 | (v : Fin (m + 1) → R) (w : Fin (n + 1) → R) |
| 58 | (i k : Fin (m + 1)) (j l : Fin (n + 1)) : |
| 59 | segreVector v w (segreIndexEquiv m n (i, j)) * |
| 60 | segreVector v w (segreIndexEquiv m n (k, l)) = |
| 61 | segreVector v w (segreIndexEquiv m n (i, l)) * |
| 62 | segreVector v w (segreIndexEquiv m n (k, j)) := by |
| 63 | simp only [segreVector_pair] |
| 64 | ring |
| 65 | |
| 66 | /-- The local algebraic Segre morphism supplied by two normalized tuples. -/ |
| 67 | def segreMapOfCoordinates {X : Scheme} (f : X ⟶ Foundations.Scheme.ProjectiveSpace.complexBase) {m n : ℕ} |
| 68 | (v : Fin (m + 1) → Γ(X, ⊤)) (w : Fin (n + 1) → Γ(X, ⊤)) |
| 69 | (i : Fin (m + 1)) (j : Fin (n + 1)) (hv : v i = 1) (hw : w j = 1) : |
| 70 | X ⟶ Foundations.Scheme.ProjectiveSpace.projectiveSpace (segreDimension m n) := |
| 71 | ProjectiveCoordinates.Constructions.Products.projectiveMapOfCoordinates f (segreVector v w) (segreIndexEquiv m n (i, j)) |
| 72 | (segreVector_normalized v w i j hv hw) |
| 73 | |
| 74 | @[reassoc (attr := simp)] |
| 75 | theorem segreMapOfCoordinates_over {X : Scheme} (f : X ⟶ Foundations.Scheme.ProjectiveSpace.complexBase) {m n : ℕ} |
| 76 | (v : Fin (m + 1) → Γ(X, ⊤)) (w : Fin (n + 1) → Γ(X, ⊤)) |
| 77 | (i : Fin (m + 1)) (j : Fin (n + 1)) (hv : v i = 1) (hw : w j = 1) : |
| 78 | segreMapOfCoordinates f v w i j hv hw ≫ Foundations.Scheme.ProjectiveSpace.projectiveSpaceToBase (segreDimension m n) = f := |
| 79 | ProjectiveCoordinates.Constructions.Products.projectiveMapOfCoordinates_over _ _ _ _ |
| 80 | |
| 81 | end |
| 82 | |
| 83 | end OAI.AlgebraicGeometry.CycleClass.Thom.SegreCoordinates.Constructions.ProjectiveProducts |