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.HilbertScheme.Presentations.Grassmannian.Chart |
| 2 | |
| 3 | /-! # Incidence -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.HilbertScheme.Presentations.Grassmannian.Incidence |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! |
| 10 | Incidence conditions in Grassmannian coordinates. A linear map preserves |
| 11 | the two kernel submodules exactly when an explicit matrix expression |
| 12 | vanishes. Its entries are polynomial expressions in the chart coordinates. |
| 13 | -/ |
| 14 | |
| 15 | universe u v w v' w' |
| 16 | |
| 17 | variable {R : Type u} [CommRing R] |
| 18 | variable {V : Type v} [AddCommGroup V] [Module R V] |
| 19 | variable {W : Type w} [AddCommGroup W] [Module R W] |
| 20 | variable {V' : Type v'} [AddCommGroup V'] [Module R V'] |
| 21 | variable {W' : Type w'} [AddCommGroup W'] [Module R W'] |
| 22 | |
| 23 | def chartKernelGenerator (L : W →ₗ[R] V) : W →ₗ[R] V × W := |
| 24 | (-L).prod LinearMap.id |
| 25 | |
| 26 | theorem chartKernelGenerator_range (L : W →ₗ[R] V) : |
| 27 | (chartKernelGenerator L).range = CoordinateCharts.chartKernel L := by |
| 28 | ext x |
| 29 | constructor |
| 30 | · rintro ⟨w, rfl⟩ |
| 31 | change -L w + L w = 0 |
| 32 | exact neg_add_cancel _ |
| 33 | · intro hx |
| 34 | change x.1 + L x.2 = 0 at hx |
| 35 | refine ⟨x.2, Prod.ext ?_ rfl⟩ |
| 36 | exact (eq_neg_of_add_eq_zero_left hx).symm |
| 37 | |
| 38 | theorem chart_incidence_iff (L : W →ₗ[R] V) (K : W' →ₗ[R] V') |
| 39 | (F : V × W →ₗ[R] V' × W') : |
| 40 | CoordinateCharts.chartKernel L ≤ (CoordinateCharts.chartKernel K).comap F ↔ |
| 41 | (CoordinateCharts.chartQuotientMap K).comp (F.comp (chartKernelGenerator L)) = 0 := by |
| 42 | rw [← chartKernelGenerator_range L] |
| 43 | change (chartKernelGenerator L).range ≤ ((CoordinateCharts.chartQuotientMap K).comp F).ker ↔ _ |
| 44 | rw [LinearMap.range_le_ker_iff, LinearMap.comp_assoc] |
| 45 | |
| 46 | def blockLinearMap (A : V →ₗ[R] V') (B : W →ₗ[R] V') |
| 47 | (C : V →ₗ[R] W') (D : W →ₗ[R] W') : V × W →ₗ[R] V' × W' := |
| 48 | (A.comp (LinearMap.fst R V W) + B.comp (LinearMap.snd R V W)).prod |
| 49 | (C.comp (LinearMap.fst R V W) + D.comp (LinearMap.snd R V W)) |
| 50 | |
| 51 | theorem chart_incidence_blocks (L : W →ₗ[R] V) (K : W' →ₗ[R] V') |
| 52 | (A : V →ₗ[R] V') (B : W →ₗ[R] V') (C : V →ₗ[R] W') (D : W →ₗ[R] W') : |
| 53 | CoordinateCharts.chartKernel L ≤ (CoordinateCharts.chartKernel K).comap (blockLinearMap A B C D) ↔ |
| 54 | B - A.comp L + K.comp D - (K.comp C).comp L = 0 := by |
| 55 | rw [chart_incidence_iff] |
| 56 | have hcomp : (CoordinateCharts.chartQuotientMap K).comp |
| 57 | ((blockLinearMap A B C D).comp (chartKernelGenerator L)) = |
| 58 | B - A.comp L + K.comp D - (K.comp C).comp L := by |
| 59 | ext w |
| 60 | change A (-L w) + B w + K (C (-L w) + D w) = |
| 61 | B w - A (L w) + K (D w) - K (C (L w)) |
| 62 | rw [map_neg, map_neg, map_add, map_neg] |
| 63 | abel |
| 64 | rw [hcomp] |
| 65 | |
| 66 | variable {ι κ ι' κ' : Type v} |
| 67 | variable [Fintype ι] [Fintype κ] [Fintype ι'] [Fintype κ'] |
| 68 | variable [DecidableEq ι] [DecidableEq κ] [DecidableEq ι'] [DecidableEq κ'] |
| 69 | |
| 70 | def incidenceMatrix (L : Matrix ι κ R) (K : Matrix ι' κ' R) |
| 71 | (A : Matrix ι' ι R) (B : Matrix ι' κ R) (C : Matrix κ' ι R) (D : Matrix κ' κ R) : |
| 72 | Matrix ι' κ R := B - A * L + K * D - K * C * L |
| 73 | |
| 74 | omit [Fintype ι'] [DecidableEq ι'] in |
| 75 | theorem chart_incidence_matrix (L : Matrix ι κ R) (K : Matrix ι' κ' R) |
| 76 | (A : Matrix ι' ι R) (B : Matrix ι' κ R) (C : Matrix κ' ι R) (D : Matrix κ' κ R) : |
| 77 | CoordinateCharts.chartKernel (Matrix.toLin' L) ≤ (CoordinateCharts.chartKernel (Matrix.toLin' K)).comap |
| 78 | (blockLinearMap (Matrix.toLin' A) (Matrix.toLin' B) (Matrix.toLin' C) (Matrix.toLin' D)) ↔ |
| 79 | incidenceMatrix L K A B C D = 0 := by |
| 80 | rw [chart_incidence_blocks] |
| 81 | have h : Matrix.toLin' (incidenceMatrix L K A B C D) = |
| 82 | Matrix.toLin' B - (Matrix.toLin' A).comp (Matrix.toLin' L) + |
| 83 | (Matrix.toLin' K).comp (Matrix.toLin' D) - |
| 84 | ((Matrix.toLin' K).comp (Matrix.toLin' C)).comp (Matrix.toLin' L) := by |
| 85 | simp only [incidenceMatrix, map_sub, map_add, Matrix.toLin'_mul] |
| 86 | rw [← h] |
| 87 | exact (Matrix.toLin'.map_eq_zero_iff) |
| 88 | |
| 89 | omit [Fintype κ] [Fintype ι'] [DecidableEq ι] [DecidableEq κ] [DecidableEq ι'] [DecidableEq κ'] in |
| 90 | theorem incidenceMatrix_map {S : Type*} [CommRing S] (φ : R →+* S) |
| 91 | (L : Matrix ι κ R) (K : Matrix ι' κ' R) |
| 92 | (A : Matrix ι' ι R) (B : Matrix ι' κ R) (C : Matrix κ' ι R) (D : Matrix κ' κ R) : |
| 93 | (incidenceMatrix L K A B C D).map φ = |
| 94 | incidenceMatrix (L.map φ) (K.map φ) (A.map φ) (B.map φ) (C.map φ) (D.map φ) := by |
| 95 | simp only [incidenceMatrix, Matrix.map_sub _ φ.map_sub, Matrix.map_add _ φ.map_add, |
| 96 | Matrix.map_mul] |
| 97 | |
| 98 | end |
| 99 | |
| 100 | end OAI.AlgebraicGeometry.HilbertScheme.Presentations.Grassmannian.Incidence |