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.LinearAlgebra.Symplectic.BigCell |
| 2 | import OAI.RepresentationTheory.Hecke.RadialDilation.QuadraticCommutator |
| 3 | |
| 4 | /-! # Matrix Pivot -/ |
| 5 | |
| 6 | namespace OAI |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | namespace AlgebraicGeometry.HodgeConjecture.HeckeCycles.Local.MatrixPivot.CM.SymplecticBigCell |
| 11 | |
| 12 | /-! Local-ring symplectic reduction used to assemble an adelic big |
| 13 | cell. The lemma reuses the proved local-ring result in Mathlib. -/ |
| 14 | |
| 15 | open scoped Classical _root_.Matrix |
| 16 | |
| 17 | variable {I K : Type*} [Fintype I] [CommRing K] |
| 18 | |
| 19 | theorem exists_symmetric [IsLocalRing K] (g : RepresentationTheory.Theta.PoissonAutomorphyNormalizationData.Sp I K) : |
| 20 | ∃ B : Matrix I I K, B.IsSymm ∧ |
| 21 | IsUnit (g.val.toBlocks₁₁ + B * g.val.toBlocks₂₁).det := by |
| 22 | apply LinearAlgebra.Symplectic.BigCell.SymplecticBigCell.exists_symmetric_X_isUnit_det_add_mul_of_symplectic |
| 23 | exact (show Matrix.fromBlocks g.val.toBlocks₁₁ g.val.toBlocks₁₂ |
| 24 | g.val.toBlocks₂₁ g.val.toBlocks₂₂ ∈ Matrix.symplecticGroup I K from by |
| 25 | simpa only [Matrix.fromBlocks_toBlocks] using g.property) |
| 26 | |
| 27 | def subringMatrix (S : Subring K) (g : RepresentationTheory.Theta.PoissonAutomorphyNormalizationData.Sp I K) (hg : ∀ i j, g.val i j ∈ S) : |
| 28 | Matrix (I ⊕ I) (I ⊕ I) S := fun i j => ⟨g.val i j, hg i j⟩ |
| 29 | |
| 30 | theorem subringMatrix_map (S : Subring K) (g : RepresentationTheory.Theta.PoissonAutomorphyNormalizationData.Sp I K) (hg : ∀ i j, g.val i j ∈ S) : |
| 31 | (subringMatrix S g hg).map S.subtype = g.val := rfl |
| 32 | |
| 33 | theorem subringMatrix_symplectic (S : Subring K) (g : RepresentationTheory.Theta.PoissonAutomorphyNormalizationData.Sp I K) (hg : ∀ i j, g.val i j ∈ S) : |
| 34 | subringMatrix S g hg ∈ Matrix.symplecticGroup I S := by |
| 35 | apply SymplecticGroup.mem_iff'.mpr |
| 36 | apply Matrix.map_injective S.subtype_injective |
| 37 | simp only [Matrix.map_mul, Matrix.transpose_map, Matrix.map_J, subringMatrix_map] |
| 38 | exact SymplecticGroup.mem_iff'.mp g.property |
| 39 | |
| 40 | def subringSymplectic (S : Subring K) (g : RepresentationTheory.Theta.PoissonAutomorphyNormalizationData.Sp I K) (hg : ∀ i j, g.val i j ∈ S) : RepresentationTheory.Theta.PoissonAutomorphyNormalizationData.Sp I S := |
| 41 | ⟨subringMatrix S g hg, subringMatrix_symplectic S g hg⟩ |
| 42 | |
| 43 | theorem subringSymplectic_map (S : Subring K) (g : RepresentationTheory.Theta.PoissonAutomorphyNormalizationData.Sp I K) (hg : ∀ i j, g.val i j ∈ S) : |
| 44 | RepresentationTheory.Theta.PoissonAutomorphyNormalizationData.mapSp S.subtype (subringSymplectic S g hg) = g := Subtype.ext rfl |
| 45 | |
| 46 | end AlgebraicGeometry.HodgeConjecture.HeckeCycles.Local.MatrixPivot.CM.SymplecticBigCell |
| 47 | |
| 48 | namespace AlgebraicGeometry.HodgeConjecture.HeckeCycles.Local.MatrixPivot.CM |
| 49 | |
| 50 | /-! An invertible matrix over a local ring has a unit in each column. |
| 51 | Adding at most one other row makes a chosen diagonal entry a unit. |
| 52 | The correction coefficients are all zero or one. -/ |
| 53 | |
| 54 | open scoped Classical _root_.Matrix |
| 55 | |
| 56 | variable {I R : Type*} [Fintype I] [CommRing R] [IsLocalRing R] |
| 57 | |
| 58 | theorem column_unit (A : (Matrix I I R)ˣ) (i : I) : ∃ j, IsUnit (A.val j i) := by |
| 59 | have he := congrArg (fun M : Matrix I I R => M i i) A.inv_val |
| 60 | simp only [Matrix.mul_apply, Matrix.one_apply, ite_true] at he |
| 61 | change (∑ j, (A⁻¹).val i j * A.val j i) = 1 at he |
| 62 | have hu : IsUnit (∑ j, (A⁻¹).val i j * A.val j i) := he.symm ▸ isUnit_one |
| 63 | obtain ⟨j, _, hj⟩ := IsLocalRing.exists_of_isUnit_sum hu |
| 64 | exact ⟨j, (IsUnit.mul_iff.mp hj).2⟩ |
| 65 | |
| 66 | theorem nonunit_add_unit {a b : R} (ha : ¬ IsUnit a) (hb : IsUnit b) : IsUnit (a + b) := by |
| 67 | by_contra hab |
| 68 | have hn : ¬ IsUnit (-a) := fun h => ha (by simpa only [neg_neg] using h.neg) |
| 69 | have hh := IsLocalRing.nonunits_add hab hn |
| 70 | have he : a + b + -a = b := by ring |
| 71 | rw [he] at hh |
| 72 | exact hh hb |
| 73 | |
| 74 | theorem exists_binary_correction (A : (Matrix I I R)ˣ) (i : I) : |
| 75 | ∃ c : I → R, c i = 0 ∧ (∀ j, c j = 0 ∨ c j = 1) ∧ |
| 76 | IsUnit (A.val i i + ∑ j, c j * A.val j i) := by |
| 77 | by_cases hii : IsUnit (A.val i i) |
| 78 | · refine ⟨0, rfl, fun _ => Or.inl rfl, ?_⟩ |
| 79 | simpa only [Pi.zero_apply, zero_mul, Finset.sum_const_zero, add_zero] using hii |
| 80 | · obtain ⟨j, hj⟩ := column_unit A i |
| 81 | have hji : j ≠ i := by rintro rfl; exact hii hj |
| 82 | refine ⟨Pi.single j 1, ?_, ?_, ?_⟩ |
| 83 | · simp [Ne.symm hji] |
| 84 | · intro k |
| 85 | by_cases hk : k = j <;> simp [hk] |
| 86 | · simpa [Pi.single_apply] using nonunit_add_unit hii hj |
| 87 | |
| 88 | end AlgebraicGeometry.HodgeConjecture.HeckeCycles.Local.MatrixPivot.CM |
| 89 | |
| 90 | end |
| 91 | |
| 92 | end OAI |