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.Analysis.Normed.Module.Connected |
| 2 | import Mathlib.Analysis.Complex.Basic |
| 3 | import Mathlib.LinearAlgebra.Complex.FiniteDimensional |
| 4 | import Mathlib.Algebra.Polynomial.Roots |
| 5 | import Mathlib.LinearAlgebra.Matrix.NonsingularInverse |
| 6 | import Mathlib.Topology.Instances.Matrix |
| 7 | |
| 8 | /-! # Complex Linear Homotopy -/ |
| 9 | |
| 10 | namespace OAI.AlgebraicGeometry.CycleClass.Geometric.ComplexLinearHomotopy.Cycles |
| 11 | |
| 12 | noncomputable section |
| 13 | |
| 14 | /-! |
| 15 | # Paths through invertible complex matrices |
| 16 | |
| 17 | The determinant of the pencil `(1-z)I + zA` is a nonzero complex polynomial. |
| 18 | Its finite root set can be avoided by a path from `0` to `1`. Mapping that path |
| 19 | through the pencil produces a path of invertible matrices from `I` to `A`. |
| 20 | This proves the actual homotopy input for later orientation arguments, without |
| 21 | assuming a local homology generator or any fundamental-class theorem. |
| 22 | -/ |
| 23 | |
| 24 | open _root_.Polynomial |
| 25 | |
| 26 | universe u |
| 27 | |
| 28 | variable {n : Type u} [DecidableEq n] |
| 29 | |
| 30 | /-- The affine complex pencil joining the identity matrix to `A`. -/ |
| 31 | def complexMatrixPencil (A : Matrix n n ℂ) (z : ℂ) : Matrix n n ℂ := |
| 32 | (1 - z) • (1 : Matrix n n ℂ) + z • A |
| 33 | |
| 34 | @[simp] |
| 35 | theorem complexMatrixPencil_zero (A : Matrix n n ℂ) : |
| 36 | complexMatrixPencil A 0 = 1 := by |
| 37 | simp [complexMatrixPencil] |
| 38 | |
| 39 | @[simp] |
| 40 | theorem complexMatrixPencil_one (A : Matrix n n ℂ) : |
| 41 | complexMatrixPencil A 1 = A := by |
| 42 | simp [complexMatrixPencil] |
| 43 | |
| 44 | theorem continuous_complexMatrixPencil (A : Matrix n n ℂ) : |
| 45 | Continuous (complexMatrixPencil A) := |
| 46 | ((continuous_const.sub continuous_id).smul continuous_const).add |
| 47 | (continuous_id.smul continuous_const) |
| 48 | |
| 49 | /-- The pencil entries as actual one-variable polynomials. -/ |
| 50 | def complexMatrixPolynomial (A : Matrix n n ℂ) : Matrix n n ℂ[X] := |
| 51 | fun i j => (1 - Polynomial.X) * Polynomial.C ((1 : Matrix n n ℂ) i j) + |
| 52 | Polynomial.X * Polynomial.C (A i j) |
| 53 | |
| 54 | variable [Fintype n] |
| 55 | |
| 56 | /-- The determinant polynomial whose roots are the singular parameters. -/ |
| 57 | def complexMatrixDetPolynomial (A : Matrix n n ℂ) : ℂ[X] := |
| 58 | (complexMatrixPolynomial A).det |
| 59 | |
| 60 | @[simp] |
| 61 | theorem complexMatrixDetPolynomial_eval (A : Matrix n n ℂ) (z : ℂ) : |
| 62 | (complexMatrixDetPolynomial A).eval z = (complexMatrixPencil A z).det := by |
| 63 | have hmap : (Polynomial.evalRingHom z).mapMatrix (complexMatrixPolynomial A) = |
| 64 | complexMatrixPencil A z := by |
| 65 | ext i j |
| 66 | simp [complexMatrixPolynomial, complexMatrixPencil, Matrix.smul_apply] |
| 67 | exact mul_comm _ _ |
| 68 | exact ((Polynomial.evalRingHom z).map_det (complexMatrixPolynomial A)).trans |
| 69 | (congrArg Matrix.det hmap) |
| 70 | |
| 71 | @[simp] |
| 72 | theorem complexMatrixDetPolynomial_eval_zero (A : Matrix n n ℂ) : |
| 73 | (complexMatrixDetPolynomial A).eval 0 = 1 := by |
| 74 | simp |
| 75 | |
| 76 | @[simp] |
| 77 | theorem complexMatrixDetPolynomial_eval_one (A : Matrix n n ℂ) : |
| 78 | (complexMatrixDetPolynomial A).eval 1 = A.det := by |
| 79 | simp |
| 80 | |
| 81 | theorem complexMatrixDetPolynomial_ne_zero (A : Matrix n n ℂ) : |
| 82 | complexMatrixDetPolynomial A ≠ 0 := by |
| 83 | intro h |
| 84 | have hz := congrArg (fun q : ℂ[X] => q.eval 0) h |
| 85 | simp at hz |
| 86 | |
| 87 | /-- The singular parameters of the pencil form a finite set. -/ |
| 88 | theorem finite_complexMatrixPencil_singular (A : Matrix n n ℂ) : |
| 89 | Set.Finite {z : ℂ | (complexMatrixPencil A z).det = 0} := by |
| 90 | simpa only [Polynomial.IsRoot, complexMatrixDetPolynomial_eval] using |
| 91 | Polynomial.finite_setOfPred_isRoot (complexMatrixDetPolynomial_ne_zero A) |
| 92 | |
| 93 | /-- A nonsingular complex matrix can be joined to the identity without crossing |
| 94 | a singular matrix. -/ |
| 95 | theorem joinedIn_complexMatrix_det_ne_zero (A : Matrix n n ℂ) (hA : A.det ≠ 0) : |
| 96 | JoinedIn {M : Matrix n n ℂ | M.det ≠ 0} 1 A := by |
| 97 | let S : Set ℂ := {z : ℂ | (complexMatrixPencil A z).det = 0}ᶜ |
| 98 | have hS : IsPathConnected S := |
| 99 | (finite_complexMatrixPencil_singular A).countable.isPathConnected_compl_of_one_lt_rank |
| 100 | (by simp [Complex.rank_real_complex]) |
| 101 | have h0 : (0 : ℂ) ∈ S := by simp [S] |
| 102 | have h1 : (1 : ℂ) ∈ S := by simpa [S] using hA |
| 103 | have hpath := (hS.joinedIn 0 h0 1 h1).map (continuous_complexMatrixPencil A).continuousOn |
| 104 | have hrange : complexMatrixPencil A '' S ⊆ {M : Matrix n n ℂ | M.det ≠ 0} := by |
| 105 | rintro M ⟨z, hz, rfl⟩ |
| 106 | exact hz |
| 107 | simpa only [complexMatrixPencil_zero, complexMatrixPencil_one] using hpath.mono hrange |
| 108 | |
| 109 | /-- The group of invertible complex matrices is path connected, expressed as |
| 110 | the actual invertible subset of matrix space. -/ |
| 111 | theorem isPathConnected_invertible_complexMatrices : |
| 112 | IsPathConnected {M : Matrix n n ℂ | IsUnit M} := by |
| 113 | refine ⟨1, isUnit_one, ?_⟩ |
| 114 | intro A hA |
| 115 | have hdet : A.det ≠ 0 := ((Matrix.isUnit_iff_isUnit_det A).mp hA).ne_zero |
| 116 | apply (joinedIn_complexMatrix_det_ne_zero A hdet).mono |
| 117 | intro M hM |
| 118 | exact (Matrix.isUnit_iff_isUnit_det M).mpr (isUnit_iff_ne_zero.mpr hM) |
| 119 | |
| 120 | /-- A chosen genuine path of invertible matrices from the identity to `A`. -/ |
| 121 | def complexMatrixPath (A : Matrix n n ℂ) (hA : IsUnit A) : |
| 122 | Path (1 : Matrix n n ℂ) A := |
| 123 | (isPathConnected_invertible_complexMatrices.joinedIn 1 isUnit_one A hA).somePath |
| 124 | |
| 125 | theorem complexMatrixPath_isUnit (A : Matrix n n ℂ) (hA : IsUnit A) |
| 126 | (t : unitInterval) : IsUnit (complexMatrixPath A hA t) := |
| 127 | (isPathConnected_invertible_complexMatrices.joinedIn 1 isUnit_one A hA).somePath_mem t |
| 128 | |
| 129 | end |
| 130 | |
| 131 | end OAI.AlgebraicGeometry.CycleClass.Geometric.ComplexLinearHomotopy.Cycles |