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.RingTheory.Smooth.StandardSmooth |
| 2 | import Mathlib.LinearAlgebra.Matrix.Rank |
| 3 | import Mathlib.Basic.Complex.Basic |
| 4 | |
| 5 | /-! # Standard Smooth Jacobian -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.Foundations.Scheme.StandardSmoothJacobian.Algebraic |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! |
| 12 | # Jacobians of standard smooth presentations at field-valued points |
| 13 | |
| 14 | This file uses mathlib's actual algebra presentations and algebra homomorphisms. |
| 15 | It proves that a submersive presentation has an invertible selected Jacobian |
| 16 | minor at every field-valued point, hence full row rank. It makes no claim about |
| 17 | analytic coordinate charts or an implicit function theorem. |
| 18 | -/ |
| 19 | |
| 20 | open _root_.MvPolynomial |
| 21 | |
| 22 | universe u v w t |
| 23 | |
| 24 | variable {K : Type u} {S : Type v} {ι : Type w} {σ : Type t} |
| 25 | variable [Field K] [CommRing S] [Algebra K S] |
| 26 | |
| 27 | /-- The usual relation-by-variable Jacobian of a presentation, evaluated at an |
| 28 | actual field-valued point of its algebra. -/ |
| 29 | def pointJacobian (P : Algebra.Presentation K S ι σ) (x : S →ₐ[K] K) : |
| 30 | Matrix σ ι K := |
| 31 | fun j i => aeval (fun k => x (P.val k)) (pderiv i (P.relation j)) |
| 32 | |
| 33 | /-- Every defining relation vanishes at the coordinates of an algebra point. -/ |
| 34 | theorem point_relation_zero (P : Algebra.Presentation K S ι σ) (x : S →ₐ[K] K) |
| 35 | (j : σ) : aeval (fun i => x (P.val i)) (P.relation j) = 0 := by |
| 36 | rw [← MvPolynomial.comp_aeval_apply] |
| 37 | simp |
| 38 | |
| 39 | /-- The square minor selected by a pre-submersive presentation. -/ |
| 40 | def pointJacobianMinor (P : Algebra.PreSubmersivePresentation K S ι σ) |
| 41 | (x : S →ₐ[K] K) : Matrix σ σ K := |
| 42 | (pointJacobian P.toPresentation x).submatrix id P.map |
| 43 | |
| 44 | variable [Fintype σ] [DecidableEq σ] |
| 45 | |
| 46 | /-- Mathlib uses the variable-by-relation convention for its selected matrix; |
| 47 | the usual Jacobian convention is its transpose. -/ |
| 48 | theorem pointJacobianMinor_eq_map_transpose |
| 49 | (P : Algebra.PreSubmersivePresentation K S ι σ) (x : S →ₐ[K] K) : |
| 50 | pointJacobianMinor P x = |
| 51 | ((aeval (fun k => x (P.val k))).mapMatrix P.jacobiMatrix).transpose := by |
| 52 | ext i j |
| 53 | simp [pointJacobianMinor, pointJacobian, P.jacobiMatrix_apply] |
| 54 | |
| 55 | /-- Evaluation of the algebraic Jacobian agrees with the determinant of the |
| 56 | selected ordinary Jacobian minor at the point. -/ |
| 57 | theorem pointJacobianMinor_det |
| 58 | (P : Algebra.PreSubmersivePresentation K S ι σ) (x : S →ₐ[K] K) : |
| 59 | (pointJacobianMinor P x).det = x P.jacobian := by |
| 60 | rw [pointJacobianMinor_eq_map_transpose, Matrix.det_transpose, ← AlgHom.map_det] |
| 61 | rw [P.jacobian_eq_jacobiMatrix_det, P.algebraMap_apply] |
| 62 | exact (MvPolynomial.comp_aeval_apply P.val x P.jacobiMatrix.det).symm |
| 63 | |
| 64 | /-- A submersive presentation has a nonzero selected Jacobian determinant at |
| 65 | every field-valued point. -/ |
| 66 | theorem pointJacobianMinor_det_ne_zero |
| 67 | (P : Algebra.SubmersivePresentation K S ι σ) (x : S →ₐ[K] K) : |
| 68 | (pointJacobianMinor P.toPreSubmersivePresentation x).det ≠ 0 := by |
| 69 | rw [pointJacobianMinor_det] |
| 70 | exact (P.jacobian_isUnit.map x).ne_zero |
| 71 | |
| 72 | /-- The selected square minor has full rank. -/ |
| 73 | theorem pointJacobianMinor_rank |
| 74 | (P : Algebra.SubmersivePresentation K S ι σ) (x : S →ₐ[K] K) : |
| 75 | (pointJacobianMinor P.toPreSubmersivePresentation x).rank = Fintype.card σ := |
| 76 | Matrix.rank_of_det_ne_zero (pointJacobianMinor_det_ne_zero P x) |
| 77 | |
| 78 | /-- The full Jacobian of all relations has full row rank, not merely the square |
| 79 | minor singled out in the definition of a submersive presentation. -/ |
| 80 | theorem pointJacobian_rank [Fintype ι] |
| 81 | (P : Algebra.SubmersivePresentation K S ι σ) (x : S →ₐ[K] K) : |
| 82 | (pointJacobian P.toPresentation x).rank = Fintype.card σ := by |
| 83 | apply le_antisymm (Matrix.rank_le_card_height _) |
| 84 | calc |
| 85 | Fintype.card σ = |
| 86 | (pointJacobianMinor P.toPreSubmersivePresentation x).rank := |
| 87 | (pointJacobianMinor_rank P x).symm |
| 88 | _ ≤ (pointJacobian P.toPresentation x).rank := |
| 89 | Matrix.rank_submatrix_le _ id P.map |
| 90 | |
| 91 | /-- Standard smoothness supplies a finite polynomial presentation with full |
| 92 | Jacobian row rank at a given field-valued point. -/ |
| 93 | theorem exists_pointJacobian_full_row_rank [Algebra.IsStandardSmooth K S] |
| 94 | (x : S →ₐ[K] K) : |
| 95 | ∃ (n m : ℕ) (P : Algebra.SubmersivePresentation K S (Fin n) (Fin m)), |
| 96 | (pointJacobian P.toPresentation x).rank = m := by |
| 97 | classical |
| 98 | obtain ⟨ι', σ', hσ, hι, ⟨P⟩⟩ := Algebra.IsStandardSmooth.out (R := K) (S := S) |
| 99 | let : Finite σ' := hσ |
| 100 | let : Finite ι' := hι |
| 101 | let : Fintype ι' := Fintype.ofFinite ι' |
| 102 | let : Fintype σ' := Fintype.ofFinite σ' |
| 103 | let Q := P.reindex (Fintype.equivFin ι').symm (Fintype.equivFin σ').symm |
| 104 | refine ⟨Fintype.card ι', Fintype.card σ', Q, ?_⟩ |
| 105 | simpa using pointJacobian_rank Q x |
| 106 | |
| 107 | end |
| 108 | |
| 109 | end OAI.AlgebraicGeometry.Foundations.Scheme.StandardSmoothJacobian.Algebraic |