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.HodgeConjecture.HeckeCycles.BlockMatrixUnits |
| 2 | |
| 3 | /-! # Matrix Elimination -/ |
| 4 | |
| 5 | namespace OAI |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | namespace AlgebraicGeometry.HodgeConjecture.HeckeCycles.Finite.MatrixElimination.CM |
| 10 | |
| 11 | /-! Finite adelic Gaussian elimination, using actual unit pivots. -/ |
| 12 | |
| 13 | open scoped Classical _root_.Matrix |
| 14 | open _root_.Matrix |
| 15 | open OAI.AlgebraicGeometry.HodgeConjecture.HeckeCycles.ElementaryMatrixUnits.CM |
| 16 | open OAI.AlgebraicGeometry.HodgeConjecture.HeckeCycles.BlockMatrixUnits.CM |
| 17 | open OAI.AlgebraicGeometry.HodgeConjecture.HeckeCycles.BlockMatrixUnits.CM.UnitPivotFactorization |
| 18 | |
| 19 | variable {I : Type*} [Fintype I] [DecidableEq I] |
| 20 | |
| 21 | theorem exists_row_correction (A : (Matrix I I RepresentationTheory.Theta.PoissonAutomorphyNormalizationData.AQf)ˣ) (i : I) : |
| 22 | ∃ c : I → RepresentationTheory.Theta.PoissonAutomorphyNormalizationData.AQf, c i = 0 ∧ IsUnit (A.val i i + ∑ j, c j * A.val j i) := by |
| 23 | have hdec : ‹DecidableEq I› = Classical.decEq I := Subsingleton.elim _ _ |
| 24 | cases hdec |
| 25 | exact MatrixPivot.CM.exists_row_correction A i |
| 26 | |
| 27 | theorem mem_of_smaller (H : Subgroup (Matrix (I ⊕ Unit) (I ⊕ Unit) RepresentationTheory.Theta.PoissonAutomorphyNormalizationData.AQf)ˣ) |
| 28 | (hSym : ∀ A : (Matrix (I ⊕ Unit) (I ⊕ Unit) RepresentationTheory.Theta.PoissonAutomorphyNormalizationData.AQf)ˣ, A.val.IsSymm → A ∈ H) |
| 29 | (hLeft : ∀ A : (Matrix I I RepresentationTheory.Theta.PoissonAutomorphyNormalizationData.AQf)ˣ, BlockMatrixUnits.CM.embedLeft A ∈ H) |
| 30 | (M : (Matrix (I ⊕ Unit) (I ⊕ Unit) RepresentationTheory.Theta.PoissonAutomorphyNormalizationData.AQf)ˣ) : M ∈ H := by |
| 31 | obtain ⟨c, hc, hp⟩ := exists_row_correction M (Sum.inr ()) |
| 32 | let E := ElementaryMatrixUnits.CM.rowUnit (Sum.inr ()) c hc |
| 33 | have hE : E ∈ H := ElementaryMatrixUnits.CM.rowUnit_mem H hSym _ _ _ |
| 34 | have hEM : E * M ∈ H := by |
| 35 | apply BlockMatrixUnits.CM.UnitPivotFactorization.mem_of_unit_pivot H hSym hLeft |
| 36 | change IsUnit (((ElementaryMatrixUnits.CM.rowUnit (Sum.inr ()) c hc).val * M.val) (Sum.inr ()) (Sum.inr ())) |
| 37 | rw [ElementaryMatrixUnits.CM.rowUnit_mul_pivot] |
| 38 | exact hp |
| 39 | have he := H.mul_mem (H.inv_mem hE) hEM |
| 40 | simpa only [inv_mul_cancel_left] using he |
| 41 | |
| 42 | end AlgebraicGeometry.HodgeConjecture.HeckeCycles.Finite.MatrixElimination.CM |
| 43 | |
| 44 | namespace AlgebraicGeometry.HodgeConjecture.HeckeCycles.Finite.MatrixElimination.CM.SymmetricGeneration |
| 45 | |
| 46 | /-! Actual general linear groups over the finite adeles are generated |
| 47 | by symmetric invertible matrices. The proof uses adelic unit pivots |
| 48 | and induction on the matrix dimension. -/ |
| 49 | |
| 50 | open scoped Classical _root_.Matrix |
| 51 | open _root_.Matrix |
| 52 | open OAI.AlgebraicGeometry.HodgeConjecture.HeckeCycles.BlockMatrixUnits.CM |
| 53 | open OAI.AlgebraicGeometry.HodgeConjecture.HeckeCycles.Finite.MatrixElimination.CM |
| 54 | |
| 55 | variable {I J : Type*} [Fintype I] [Fintype J] [DecidableEq I] [DecidableEq J] |
| 56 | |
| 57 | def GeneratedBySymmetric (I : Type*) [Fintype I] [DecidableEq I] : Prop := |
| 58 | ∀ H : Subgroup (Matrix I I RepresentationTheory.Theta.PoissonAutomorphyNormalizationData.AQf)ˣ, |
| 59 | (∀ A : (Matrix I I RepresentationTheory.Theta.PoissonAutomorphyNormalizationData.AQf)ˣ, A.val.IsSymm → A ∈ H) → H = ⊤ |
| 60 | |
| 61 | theorem of_equiv (e : I ≃ J) (hJ : GeneratedBySymmetric J) : GeneratedBySymmetric I := by |
| 62 | let F : (Matrix I I RepresentationTheory.Theta.PoissonAutomorphyNormalizationData.AQf)ˣ ≃* (Matrix J J RepresentationTheory.Theta.PoissonAutomorphyNormalizationData.AQf)ˣ := |
| 63 | Units.mapEquiv (Matrix.reindexRingEquiv RepresentationTheory.Theta.PoissonAutomorphyNormalizationData.AQf e).toMulEquiv |
| 64 | intro H hSym |
| 65 | let K := H.comap F.symm.toMonoidHom |
| 66 | have hK : K = ⊤ := by |
| 67 | apply hJ |
| 68 | intro A hA |
| 69 | apply hSym (F.symm A) |
| 70 | exact hA.reindex e.symm |
| 71 | apply top_unique |
| 72 | intro A _ |
| 73 | have hmem : F A ∈ K := by rw [hK]; trivial |
| 74 | change F.symm (F A) ∈ H at hmem |
| 75 | simpa only [F.symm_apply_apply] using hmem |
| 76 | |
| 77 | theorem fin_generation (n : ℕ) : GeneratedBySymmetric (Fin n) := by |
| 78 | induction n with |
| 79 | | zero => |
| 80 | intro H hSym |
| 81 | apply top_unique |
| 82 | intro A _ |
| 83 | apply hSym A |
| 84 | ext i |
| 85 | exact Fin.elim0 i |
| 86 | | succ n ih => |
| 87 | have e : Fin (n + 1) ≃ Fin n ⊕ Unit := Fintype.equivOfCardEq (by simp) |
| 88 | apply of_equiv e |
| 89 | intro H hSym |
| 90 | apply top_unique |
| 91 | intro M _ |
| 92 | apply mem_of_smaller H hSym _ M |
| 93 | intro A |
| 94 | have hK : H.comap (BlockMatrixUnits.CM.embedLeft (J := Unit)) = ⊤ := by |
| 95 | apply ih |
| 96 | intro B hB |
| 97 | exact hSym _ (BlockMatrixUnits.CM.embedLeft_symmetric B hB) |
| 98 | change A ∈ H.comap (BlockMatrixUnits.CM.embedLeft (J := Unit)) |
| 99 | rw [hK] |
| 100 | trivial |
| 101 | |
| 102 | theorem generated_by_symmetric (H : Subgroup (Matrix I I RepresentationTheory.Theta.PoissonAutomorphyNormalizationData.AQf)ˣ) |
| 103 | (hSym : ∀ A : (Matrix I I RepresentationTheory.Theta.PoissonAutomorphyNormalizationData.AQf)ˣ, A.val.IsSymm → A ∈ H) : H = ⊤ := |
| 104 | of_equiv (Fintype.equivFin I) (fin_generation (Fintype.card I)) H hSym |
| 105 | |
| 106 | end AlgebraicGeometry.HodgeConjecture.HeckeCycles.Finite.MatrixElimination.CM.SymmetricGeneration |
| 107 | |
| 108 | end |
| 109 | |
| 110 | end OAI |