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.Pi |
| 2 | |
| 3 | /-! # Semilinear Scalar Factorization -/ |
| 4 | |
| 5 | namespace OAI.NumberTheory.PadicHodge.PeriodInvariants.SemilinearScalarFactorization |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! # Scalar finite-free splittings transport across compatible changes of residue rings -/ |
| 10 | |
| 11 | variable {R S M N ι : Type*} [CommRing R] [CommRing S] |
| 12 | [AddCommGroup M] [AddCommGroup N] [Module R M] [Module S N] (e : R ≃+* S) |
| 13 | |
| 14 | local instance forwardPair : RingHomInvPair e.toRingHom e.symm.toRingHom := RingHomInvPair.of_ringEquiv e |
| 15 | |
| 16 | local instance backwardPair : RingHomInvPair e.symm.toRingHom e.toRingHom := |
| 17 | RingHomInvPair.symm e.toRingHom e.symm.toRingHom |
| 18 | |
| 19 | variable (E : M ≃ₛₗ[e.toRingHom] N) |
| 20 | |
| 21 | def forward (f : N →ₗ[S] (ι → S)) : M →ₗ[R] (ι → R) where |
| 22 | toFun x i := e.symm (f (E x) i) |
| 23 | map_add' x y := by |
| 24 | ext i |
| 25 | simp only [map_add, Pi.add_apply] |
| 26 | map_smul' a x := by |
| 27 | ext i |
| 28 | simp only [RingHom.id_apply, LinearEquiv.map_smulₛₗ, map_smul, Pi.smul_apply, smul_eq_mul, |
| 29 | map_mul] |
| 30 | change e.symm (e a) * e.symm (f (E x) i) = _ |
| 31 | rw [e.symm_apply_apply] |
| 32 | |
| 33 | def backward (g : (ι → S) →ₗ[S] N) : (ι → R) →ₗ[R] M where |
| 34 | toFun c := E.symm (g (fun i => e (c i))) |
| 35 | map_add' x y := by |
| 36 | change E.symm (g (fun i => e (x i + y i))) = _ |
| 37 | simp only [map_add] |
| 38 | change E.symm (g ((fun i => e (x i)) + (fun i => e (y i)))) = _ |
| 39 | rw [map_add, map_add] |
| 40 | map_smul' a c := by |
| 41 | change E.symm (g (fun i => e (a * c i))) = a • E.symm (g (fun i => e (c i))) |
| 42 | simp only [map_mul] |
| 43 | change E.symm (g (e a • (fun i => e (c i)))) = _ |
| 44 | rw [map_smul, LinearEquiv.map_smulₛₗ] |
| 45 | change e.symm (e a) • E.symm (g (fun i => e (c i))) = _ |
| 46 | rw [e.symm_apply_apply] |
| 47 | |
| 48 | theorem factorization (f : N →ₗ[S] (ι → S)) (g : (ι → S) →ₗ[S] N) |
| 49 | (a : S) (h : g.comp f = a • LinearMap.id) : |
| 50 | (backward e E g).comp (forward e E f) = e.symm a • LinearMap.id := by |
| 51 | apply LinearMap.ext |
| 52 | intro x |
| 53 | change E.symm (g (fun i => e (e.symm (f (E x) i)))) = e.symm a • x |
| 54 | simp only [e.apply_symm_apply] |
| 55 | have hx := LinearMap.congr_fun h (E x) |
| 56 | change g (f (E x)) = a • E x at hx |
| 57 | rw [hx, LinearEquiv.map_smulₛₗ, E.symm_apply_apply] |
| 58 | rfl |
| 59 | |
| 60 | end |
| 61 | |
| 62 | end OAI.NumberTheory.PadicHodge.PeriodInvariants.SemilinearScalarFactorization |