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.RepresentationTheory.Weil.UnitarySplitting.TracePairing |
| 2 | import OAI.RepresentationTheory.Weil.UnitarySplitting.NormOneParameters |
| 3 | import OAI.RepresentationTheory.Weil.UnitarySplitting.GenericCharacterCorrection |
| 4 | |
| 5 | /-! # Generic -/ |
| 6 | |
| 7 | namespace OAI.RepresentationTheory.Weil.UnitarySplitting.Generic.Construction |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | section |
| 12 | |
| 13 | /-! The invertible-difference domain in a unitary group meets every finite |
| 14 | family of right translates. Norm-one scalar matrices give the translates. -/ |
| 15 | |
| 16 | open _root_.Matrix |
| 17 | |
| 18 | variable {F E : Type} [Field F] [Field E] [Algebra F E] |
| 19 | variable {I : Type} [Fintype I] [DecidableEq I] |
| 20 | variable (σ : E ≃ₐ[F] E) (Q : Matrix I I E) |
| 21 | |
| 22 | omit [Fintype I] [DecidableEq I] in |
| 23 | theorem adjointMatrix_smul (z : E) (A : Matrix I I E) : |
| 24 | DualPair.Construction.adjointMatrix σ (z • A) = σ z • DualPair.Construction.adjointMatrix σ A := by |
| 25 | ext i j |
| 26 | exact map_mul σ z (A j i) |
| 27 | |
| 28 | def unitaryScalar (z : E) (hz : σ z * z = 1) : DualPair.Construction.unitaryGroup σ Q := by |
| 29 | let u := Units.mk0 z (right_ne_zero_of_mul_eq_one hz) |
| 30 | refine ⟨Units.map (algebraMap E (Matrix I I E)).toMonoidHom u, ?_⟩ |
| 31 | change DualPair.Construction.adjointMatrix σ (algebraMap E (Matrix I I E) z) * Q * |
| 32 | algebraMap E (Matrix I I E) z = Q |
| 33 | rw [Algebra.algebraMap_eq_smul_one, adjointMatrix_smul, DualPair.Construction.adjointMatrix_one] |
| 34 | simp only [smul_mul_assoc, mul_smul_comm, one_mul, mul_one, smul_smul] |
| 35 | rw [mul_comm z, hz, one_smul] |
| 36 | |
| 37 | theorem unitaryScalar_val (z : E) (hz : σ z * z = 1) : |
| 38 | ((unitaryScalar σ Q z hz).val : Matrix I I E) = z • 1 := |
| 39 | Algebra.algebraMap_eq_smul_one z |
| 40 | |
| 41 | def unitaryGenericDomain : Set (DualPair.Construction.unitaryGroup σ Q) := |
| 42 | {g | ((g.val : Matrix I I E) - 1).det ≠ 0} |
| 43 | |
| 44 | theorem unitary_scalar_difference_det (g : DualPair.Construction.unitaryGroup σ Q) (z : E) (hz : σ z * z = 1) : |
| 45 | (((g * unitaryScalar σ Q z hz).val : Matrix I I E) - 1).det = |
| 46 | (g.val : Matrix I I E).det * (↑g.val⁻¹ : Matrix I I E).charpoly.eval z := by |
| 47 | rw [Matrix.eval_charpoly, ← Matrix.det_mul] |
| 48 | congr 1 |
| 49 | change (g.val : Matrix I I E) * ((unitaryScalar σ Q z hz).val : Matrix I I E) - 1 = |
| 50 | (g.val : Matrix I I E) * (Matrix.scalar I z - (↑g.val⁻¹ : Matrix I I E)) |
| 51 | rw [unitaryScalar_val, mul_sub, Units.mul_inv] |
| 52 | congr 2 |
| 53 | ext i j |
| 54 | simp [Matrix.scalar, Matrix.diagonal_apply, Matrix.one_apply, Algebra.algebraMap_eq_smul_one] |
| 55 | |
| 56 | theorem unitaryGenericDomain_thick [CharZero F] |
| 57 | (hσ : Function.Involutive σ) (hne : ∃ z : E, σ z ≠ z) : |
| 58 | ∀ s : Finset (DualPair.Construction.unitaryGroup σ Q), ∃ t : DualPair.Construction.unitaryGroup σ Q, |
| 59 | ∀ g ∈ s, g * t ∈ unitaryGenericDomain σ Q := by |
| 60 | classical |
| 61 | intro s |
| 62 | let bad : Finset E := s.biUnion fun g => (↑g.val⁻¹ : Matrix I I E).charpoly.roots.toFinset |
| 63 | obtain ⟨z, hz, hzbad⟩ := (NormOneParameters.Construction.infinite_normOne σ hσ hne).exists_notMem_finset bad |
| 64 | refine ⟨unitaryScalar σ Q z hz, fun g hg => ?_⟩ |
| 65 | change (((g * unitaryScalar σ Q z hz).val : Matrix I I E) - 1).det ≠ 0 |
| 66 | rw [unitary_scalar_difference_det] |
| 67 | apply mul_ne_zero ((Matrix.isUnit_iff_isUnit_det _).mp g.val.isUnit).ne_zero |
| 68 | intro heval |
| 69 | apply hzbad |
| 70 | apply Finset.mem_biUnion.mpr |
| 71 | refine ⟨g, hg, Multiset.mem_toFinset.mpr ?_⟩ |
| 72 | exact (Polynomial.mem_roots (Matrix.charpoly_monic _).ne_zero).mpr heval |
| 73 | |
| 74 | end |
| 75 | |
| 76 | /-! Openness of the generic unitary domain. -/ |
| 77 | |
| 78 | theorem unitaryGenericDomain_open |
| 79 | {F E : Type} [Field F] [NormedField E] [Algebra F E] |
| 80 | {I : Type} [Fintype I] [DecidableEq I] |
| 81 | (σ : E ≃ₐ[F] E) (Q : Matrix I I E) : IsOpen (unitaryGenericDomain σ Q) := by |
| 82 | change IsOpen {g : DualPair.Construction.unitaryGroup σ Q | ((g.val : Matrix I I E) - 1).det ≠ 0} |
| 83 | exact isOpen_ne.preimage (by fun_prop) |
| 84 | |
| 85 | end |
| 86 | |
| 87 | end OAI.RepresentationTheory.Weil.UnitarySplitting.Generic.Construction |