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.NumberTheory.PadicHodge.GeometricComparison.Integral.DeterminantDivisibility |
| 2 | import OAI.NumberTheory.PadicHodge.GeometricComparison.FreeQuotient |
| 3 | import Mathlib.LinearAlgebra.Basis.Prod |
| 4 | import Mathlib.LinearAlgebra.FreeModule.PID |
| 5 | import Mathlib.LinearAlgebra.Determinant |
| 6 | |
| 7 | /-! # Split Lattice -/ |
| 8 | |
| 9 | namespace OAI.NumberTheory.PadicHodge.GeometricComparison.SplitLattice.SplitLatticeDeterminant |
| 10 | |
| 11 | noncomputable section |
| 12 | |
| 13 | /-! A prime-divisible Hodge submodule with projective quotient gives the required determinant valuation bound on an integral lattice. -/ |
| 14 | |
| 15 | variable (p : ℕ) [Fact p.Prime] |
| 16 | {M I J : Type*} [AddCommGroup M] [Module ℤ_[p] M] |
| 17 | [Fintype I] [Fintype J] |
| 18 | |
| 19 | theorem of_split_basis (P Q : Submodule ℤ_[p] M) (hc : IsCompl P Q) |
| 20 | (bP : Module.Basis I ℤ_[p] P) (bQ : Module.Basis J ℤ_[p] Q) |
| 21 | (F : Module.End ℤ_[p] M) (hne : F.det ≠ 0) |
| 22 | (hF : ∀ x : P, ∃ y : M, F x = (p : ℤ_[p]) • y) : |
| 23 | (Fintype.card I : ℤ) ≤ Padic.valuation (F.det : ℚ_[p]) := by |
| 24 | classical |
| 25 | let b := (bP.prod bQ).map (P.prodEquivOfIsCompl Q hc) |
| 26 | let s : Finset (I ⊕ J) := Finset.univ.map Function.Embedding.inl |
| 27 | let A := LinearMap.toMatrix b b F |
| 28 | have hb (i : I) : b (Sum.inl i) = (bP i : M) := by |
| 29 | simp only [b, Module.Basis.map_apply, Submodule.coe_prodEquivOfIsCompl', |
| 30 | Module.Basis.prod_apply_inl_fst, Module.Basis.prod_apply_inl_snd, Submodule.coe_zero, add_zero] |
| 31 | have hd : ∀ j ∈ s, ∀ i, (p : ℤ_[p]) ∣ A i j := by |
| 32 | intro j hj i |
| 33 | obtain ⟨a, _, rfl⟩ := Finset.mem_map.mp hj |
| 34 | obtain ⟨y, hy⟩ := hF (bP a) |
| 35 | refine ⟨b.repr y i, ?_⟩ |
| 36 | change (LinearMap.toMatrix b b F) i (Sum.inl a) = (p : ℤ_[p]) * b.repr y i |
| 37 | rw [LinearMap.toMatrix_apply, hb, hy, map_smul, Finsupp.smul_apply] |
| 38 | rfl |
| 39 | have hA : A.det ≠ 0 := by simpa only [A, LinearMap.det_toMatrix] using hne |
| 40 | have hv := Integral.DeterminantDivisibility.IntegralDeterminantDivisibility.padic_valuation_ge p A s hA hd |
| 41 | simpa only [s, Finset.card_map, Finset.card_univ, A, LinearMap.det_toMatrix] using hv |
| 42 | |
| 43 | theorem valuation_ge {V : Type*} [AddCommGroup V] [Module ℤ_[p] V] |
| 44 | [Module.Free ℤ_[p] V] [Module.Finite ℤ_[p] V] |
| 45 | (P : Submodule ℤ_[p] V) [Module.Projective ℤ_[p] (V ⧸ P)] |
| 46 | (F : Module.End ℤ_[p] V) (hne : F.det ≠ 0) |
| 47 | (hF : ∀ x : P, ∃ y : V, F x = (p : ℤ_[p]) • y) : |
| 48 | (Module.finrank ℤ_[p] P : ℤ) ≤ Padic.valuation (F.det : ℚ_[p]) := by |
| 49 | obtain ⟨Q, hQ⟩ := FreeQuotient.FreeQuotientComplement.exists_complement P |
| 50 | let : Fintype (Module.Free.ChooseBasisIndex ℤ_[p] P) := Fintype.ofFinite _ |
| 51 | let : Fintype (Module.Free.ChooseBasisIndex ℤ_[p] Q) := Fintype.ofFinite _ |
| 52 | have hv := of_split_basis p P Q hQ (Module.Free.chooseBasis ℤ_[p] P) |
| 53 | (Module.Free.chooseBasis ℤ_[p] Q) F hne hF |
| 54 | simpa only [← Module.finrank_eq_card_chooseBasisIndex] using hv |
| 55 | |
| 56 | end |
| 57 | |
| 58 | end OAI.NumberTheory.PadicHodge.GeometricComparison.SplitLattice.SplitLatticeDeterminant |