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.ExteriorPower.Basic |
| 2 | import Mathlib.LinearAlgebra.Determinant |
| 3 | |
| 4 | /-! # Top Exterior Determinant -/ |
| 5 | |
| 6 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.TopExteriorDeterminant |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! On the top exterior power, the map induced by an endomorphism is |
| 11 | multiplication by its native determinant. This is pure linear algebra. -/ |
| 12 | |
| 13 | variable {R V W ι : Type*} [CommRing R] |
| 14 | [AddCommGroup V] [Module R V] [AddCommGroup W] [Module R W] |
| 15 | [Fintype ι] [DecidableEq ι] |
| 16 | |
| 17 | theorem alternating_eq_det_smulRight (b : Module.Basis ι R V) |
| 18 | (ω : V [⋀^ι]→ₗ[R] W) : ω = b.det.smulRight (ω b) := by |
| 19 | apply b.ext_alternating |
| 20 | intro v hv |
| 21 | let σ : Equiv.Perm ι := Equiv.ofBijective v (Finite.injective_iff_bijective.mp hv) |
| 22 | change ω (b ∘ σ) = (b.det.smulRight (ω b)) (b ∘ σ) |
| 23 | rw [AlternatingMap.map_perm, AlternatingMap.map_perm] |
| 24 | congr 1 |
| 25 | change ω b = b.det b • ω b |
| 26 | rw [b.det_self, one_smul] |
| 27 | |
| 28 | theorem alternating_apply_eq_det_smul (b : Module.Basis ι R V) |
| 29 | (ω : V [⋀^ι]→ₗ[R] W) (v : ι → V) : ω v = b.det v • ω b := |
| 30 | DFunLike.congr_fun (alternating_eq_det_smulRight b ω) v |
| 31 | |
| 32 | theorem alternating_apply_comp (b : Module.Basis ι R V) |
| 33 | (ω : V [⋀^ι]→ₗ[R] W) (f : Module.End R V) (v : ι → V) : |
| 34 | ω (f ∘ v) = f.det • ω v := by |
| 35 | rw [alternating_apply_eq_det_smul b ω (f ∘ v), |
| 36 | alternating_apply_eq_det_smul b ω v, b.det_comp, mul_smul] |
| 37 | |
| 38 | theorem map_eq_det_smul_of_basis {n : ℕ} (b : Module.Basis (Fin n) R V) |
| 39 | (f : Module.End R V) : |
| 40 | exteriorPower.map n f = f.det • LinearMap.id := by |
| 41 | apply LinearMap.ext_on (exteriorPower.ιMulti_span R n V) |
| 42 | rintro w ⟨v, rfl⟩ |
| 43 | rw [exteriorPower.map_apply_ιMulti, LinearMap.smul_apply, LinearMap.id_apply] |
| 44 | exact alternating_apply_comp b (exteriorPower.ιMulti R n) f v |
| 45 | |
| 46 | theorem map_top_eq_det_smul {K : Type*} [Field K] |
| 47 | {M : Type*} [AddCommGroup M] [Module K M] [FiniteDimensional K M] |
| 48 | (f : Module.End K M) : |
| 49 | exteriorPower.map (Module.finrank K M) f = f.det • LinearMap.id := |
| 50 | map_eq_det_smul_of_basis (Module.finBasis K M) f |
| 51 | |
| 52 | end |
| 53 | |
| 54 | end OAI.NumberTheory.PadicHodge.IntegralComparison.TopExteriorDeterminant |