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.LinearAlgebra.Charpoly.BaseChange |
| 2 | import Mathlib.LinearAlgebra.FiniteDimensional.Basic |
| 3 | import Mathlib.RingTheory.Ideal.Quotient.Basic |
| 4 | |
| 5 | /-! # Finite Free Fiber Surjectivity -/ |
| 6 | |
| 7 | namespace OAI.NumberTheory.PadicHodge.PeriodInvariants.FiniteFreeFiberSurjectivity |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! # An endomorphism of a finite free module is invertible if every residue-field fibre is -/ |
| 12 | |
| 13 | variable {R M : Type*} [CommRing R] [AddCommGroup M] [Module R M] |
| 14 | [Module.Free R M] [Module.Finite R M] (f : M →ₗ[R] M) |
| 15 | |
| 16 | theorem isUnit_det |
| 17 | (hf : ∀ (m : Ideal R) [m.IsMaximal], Function.Surjective (f.baseChange (R ⧸ m))) : |
| 18 | IsUnit f.det := by |
| 19 | apply Ideal.span_singleton_eq_top.mp |
| 20 | by_contra hn |
| 21 | obtain ⟨m, hm, hle⟩ := Ideal.exists_le_maximal (Ideal.span {f.det}) hn |
| 22 | have : m.IsMaximal := hm |
| 23 | let : Field (R ⧸ m) := Ideal.Quotient.field m |
| 24 | let e := LinearEquiv.ofBijective (f.baseChange (R ⧸ m)) |
| 25 | ⟨LinearMap.injective_iff_surjective.mpr (hf m), hf m⟩ |
| 26 | have hu : IsUnit (LinearMap.det (f.baseChange (R ⧸ m))) := e.isUnit_det' |
| 27 | rw [LinearMap.det_baseChange] at hu |
| 28 | have hz : algebraMap R (R ⧸ m) f.det = 0 := |
| 29 | Ideal.Quotient.eq_zero_iff_mem.mpr (hle (Ideal.subset_span (Set.mem_singleton _))) |
| 30 | exact hu.ne_zero hz |
| 31 | |
| 32 | theorem bijective |
| 33 | (hf : ∀ (m : Ideal R) [m.IsMaximal], Function.Surjective (f.baseChange (R ⧸ m))) : |
| 34 | Function.Bijective f := by |
| 35 | have he := (LinearMap.equivOfIsUnitDet (isUnit_det f hf)).bijective |
| 36 | simpa only [Function.Bijective, Function.Injective, Function.Surjective, |
| 37 | LinearMap.equivOfIsUnitDet_apply] using he |
| 38 | |
| 39 | end |
| 40 | |
| 41 | end OAI.NumberTheory.PadicHodge.PeriodInvariants.FiniteFreeFiberSurjectivity |