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 Mathlib |
| 2 | |
| 3 | /-! # Norm Algebra -/ |
| 4 | |
| 5 | namespace OAI.NumberTheory.Adeles.NormAlgebra.CompletionFactors |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! Determinant-norm identities for scalar extension and finite products. -/ |
| 10 | |
| 11 | open scoped TensorProduct Classical |
| 12 | |
| 13 | theorem norm_baseChange |
| 14 | {R A S : Type*} [CommRing R] [CommRing A] [CommRing S] |
| 15 | [Algebra R A] [Algebra R S] [Module.Free R S] [Module.Finite R S] (x : S) : |
| 16 | Algebra.norm A (1 ⊗ₜ[R] x : A ⊗[R] S) = algebraMap R A (Algebra.norm R x) := by |
| 17 | have hm : Algebra.lmul A (A ⊗[R] S) (1 ⊗ₜ[R] x) = |
| 18 | (Algebra.lmul R S x).baseChange A := by |
| 19 | ext a |
| 20 | simp [Algebra.TensorProduct.tmul_mul_tmul] |
| 21 | rw [Algebra.norm_apply, hm, LinearMap.det_baseChange] |
| 22 | rfl |
| 23 | |
| 24 | theorem det_dependent_blockDiagonal |
| 25 | {ι R : Type*} [Fintype ι] [LinearOrder ι] [CommRing R] |
| 26 | {n : ι → Type*} [∀ i, Fintype (n i)] (M : ∀ i, Matrix (n i) (n i) R) : |
| 27 | (Matrix.blockDiagonal' M).det = ∏ i, (M i).det := by |
| 28 | classical |
| 29 | rw [(Matrix.blockTriangular_blockDiagonal' M).det_fintype] |
| 30 | apply Finset.prod_congr rfl |
| 31 | intro i _ |
| 32 | let e : n i ≃ {p : Sigma n // p.1 = i} := |
| 33 | { toFun := fun a => ⟨⟨i, a⟩, rfl⟩ |
| 34 | invFun := fun p => p.property ▸ p.val.2 |
| 35 | left_inv := fun _ => rfl |
| 36 | right_inv := by |
| 37 | rintro ⟨⟨j, a⟩, h⟩ |
| 38 | cases h |
| 39 | rfl } |
| 40 | calc |
| 41 | ((Matrix.blockDiagonal' M).toSquareBlock Sigma.fst i).det = |
| 42 | (((Matrix.blockDiagonal' M).toSquareBlock Sigma.fst i).submatrix e e).det := |
| 43 | (Matrix.det_submatrix_equiv_self e _).symm |
| 44 | _ = (M i).det := by |
| 45 | congr 1 |
| 46 | ext a b |
| 47 | exact Matrix.blockDiagonal'_apply_eq M i a b |
| 48 | |
| 49 | theorem norm_pi |
| 50 | {ι R : Type*} [Fintype ι] [CommRing R] |
| 51 | {S : ι → Type*} [∀ i, CommRing (S i)] [∀ i, Algebra R (S i)] |
| 52 | [∀ i, Module.Free R (S i)] [∀ i, Module.Finite R (S i)] (x : ∀ i, S i) : |
| 53 | Algebra.norm R x = ∏ i, Algebra.norm R (x i) := by |
| 54 | classical |
| 55 | let : LinearOrder ι := LinearOrder.lift' (Fintype.equivFin ι) (Fintype.equivFin ι).injective |
| 56 | let b := fun i => Module.Free.chooseBasis R (S i) |
| 57 | rw [Algebra.norm_eq_matrix_det (Pi.basis b)] |
| 58 | have hm : Algebra.leftMulMatrix (Pi.basis b) x = |
| 59 | Matrix.blockDiagonal' (fun i => Algebra.leftMulMatrix (b i) (x i)) := by |
| 60 | ext ⟨i, a⟩ ⟨j, c⟩ |
| 61 | by_cases h : i = j |
| 62 | · subst j |
| 63 | simp [Algebra.leftMulMatrix_eq_repr_mul, Pi.basis_repr, Pi.basis_apply] |
| 64 | · simp [Algebra.leftMulMatrix_eq_repr_mul, Pi.basis_repr, Pi.basis_apply, |
| 65 | Matrix.blockDiagonal'_apply', h] |
| 66 | rw [hm, det_dependent_blockDiagonal] |
| 67 | apply Finset.prod_congr rfl |
| 68 | intro i _ |
| 69 | exact (Algebra.norm_eq_matrix_det (b i) (x i)).symm |
| 70 | |
| 71 | end |
| 72 | |
| 73 | end OAI.NumberTheory.Adeles.NormAlgebra.CompletionFactors |