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.AbelianModuli.HilbertConstruction.Matrix.CokernelLocalization |
| 2 | import Mathlib.Data.Matrix.Block |
| 3 | |
| 4 | /-! # Augmented Matrix Cokernels -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.AugmentedMatrixCokernels |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Adding an identity block preserves the actual cokernel and encodes any requested cokernel rank without subtraction or dimension assumptions. -/ |
| 11 | |
| 12 | universe u |
| 13 | |
| 14 | variable {R : Type u} [CommRing R] {μ ν κ : Type u} |
| 15 | variable [Fintype μ] [Fintype ν] [Fintype κ] |
| 16 | variable [DecidableEq μ] [DecidableEq ν] [DecidableEq κ] |
| 17 | variable (A : Matrix ν μ R) |
| 18 | |
| 19 | def identityAugmentedMatrix : Matrix (ν ⊕ κ) (μ ⊕ κ) R := |
| 20 | Matrix.fromBlocks A 0 0 1 |
| 21 | |
| 22 | omit [Fintype ν] [DecidableEq ν] in |
| 23 | theorem identityAugmentedMatrix_apply (x : μ ⊕ κ → R) : |
| 24 | Matrix.toLin' (identityAugmentedMatrix (κ := κ) A) x = |
| 25 | Sum.elim (Matrix.toLin' A (x ∘ Sum.inl)) (x ∘ Sum.inr) := by |
| 26 | simp only [identityAugmentedMatrix, Matrix.toLin'_apply, Matrix.fromBlocks_mulVec, |
| 27 | Matrix.zero_mulVec, Matrix.one_mulVec, add_zero, zero_add] |
| 28 | |
| 29 | def identityAugmentedCokernelMap : |
| 30 | (ν ⊕ κ → R) →ₗ[R] ((ν → R) ⧸ (Matrix.toLin' A).range) := |
| 31 | (Matrix.toLin' A).range.mkQ.comp (LinearMap.pi (fun i => LinearMap.proj (Sum.inl i))) |
| 32 | |
| 33 | omit [Fintype ν] [Fintype κ] [DecidableEq ν] [DecidableEq κ] in |
| 34 | theorem identityAugmentedCokernelMap_surjective : |
| 35 | Function.Surjective (identityAugmentedCokernelMap (κ := κ) A) := by |
| 36 | intro z |
| 37 | obtain ⟨x, rfl⟩ := (Matrix.toLin' A).range.mkQ_surjective z |
| 38 | exact ⟨Sum.elim x 0, rfl⟩ |
| 39 | |
| 40 | omit [Fintype ν] [DecidableEq ν] in |
| 41 | theorem identityAugmentedCokernelMap_kernel : |
| 42 | (identityAugmentedCokernelMap (κ := κ) A).ker = |
| 43 | (Matrix.toLin' (identityAugmentedMatrix (κ := κ) A)).range := by |
| 44 | ext x |
| 45 | change (Matrix.toLin' A).range.mkQ (x ∘ Sum.inl) = 0 ↔ _ |
| 46 | rw [Submodule.mkQ_apply, Submodule.Quotient.mk_eq_zero] |
| 47 | constructor |
| 48 | · rintro ⟨y, hy⟩ |
| 49 | refine ⟨Sum.elim y (x ∘ Sum.inr), ?_⟩ |
| 50 | rw [identityAugmentedMatrix_apply] |
| 51 | funext i |
| 52 | cases i with |
| 53 | | inl i => exact congrFun hy i |
| 54 | | inr i => rfl |
| 55 | · rintro ⟨y, hy⟩ |
| 56 | refine ⟨y ∘ Sum.inl, ?_⟩ |
| 57 | rw [identityAugmentedMatrix_apply] at hy |
| 58 | funext i |
| 59 | exact congrFun hy (Sum.inl i) |
| 60 | |
| 61 | def identityAugmentedCokernelEquiv : |
| 62 | ((ν ⊕ κ → R) ⧸ (Matrix.toLin' (identityAugmentedMatrix (κ := κ) A)).range) ≃ₗ[R] |
| 63 | ((ν → R) ⧸ (Matrix.toLin' A).range) := |
| 64 | (Submodule.quotEquivOfEq _ _ (identityAugmentedCokernelMap_kernel A).symm).trans |
| 65 | ((identityAugmentedCokernelMap A).quotKerEquivOfSurjective |
| 66 | (identityAugmentedCokernelMap_surjective A)) |
| 67 | |
| 68 | omit [DecidableEq ν] in |
| 69 | theorem identityAugmentedMatrix_flatRank_iff : |
| 70 | (Module.Flat R ((ν ⊕ κ → R) ⧸ (Matrix.toLin' (identityAugmentedMatrix (κ := κ) A)).range) ∧ |
| 71 | ∀ p, Module.rankAtStalk (R := R) |
| 72 | ((ν ⊕ κ → R) ⧸ (Matrix.toLin' (identityAugmentedMatrix (κ := κ) A)).range) p + |
| 73 | Fintype.card ν = Fintype.card (ν ⊕ κ)) ↔ |
| 74 | (Module.Flat R ((ν → R) ⧸ (Matrix.toLin' A).range) ∧ |
| 75 | ∀ p, Module.rankAtStalk (R := R) ((ν → R) ⧸ (Matrix.toLin' A).range) p = Fintype.card κ) := by |
| 76 | rw [Module.Flat.equiv_iff (identityAugmentedCokernelEquiv (κ := κ) A), |
| 77 | Module.rankAtStalk_eq_of_equiv (identityAugmentedCokernelEquiv (κ := κ) A)] |
| 78 | apply and_congr_right |
| 79 | intro _ |
| 80 | apply forall_congr' |
| 81 | intro p |
| 82 | rw [Fintype.card_sum] |
| 83 | omega |
| 84 | |
| 85 | omit [Fintype μ] [Fintype ν] [Fintype κ] [DecidableEq μ] [DecidableEq ν] in |
| 86 | theorem identityAugmentedMatrix_map {S : Type u} [CommRing S] (φ : R →+* S) : |
| 87 | (identityAugmentedMatrix (κ := κ) A).map φ = identityAugmentedMatrix (κ := κ) (A.map φ) := by |
| 88 | ext i j |
| 89 | cases i <;> cases j <;> simp [identityAugmentedMatrix, Matrix.map_apply, Matrix.one_apply] |
| 90 | |
| 91 | end |
| 92 | |
| 93 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.AugmentedMatrixCokernels |