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.BilinearMap |
| 2 | |
| 3 | /-! # Bilinear Restriction -/ |
| 4 | |
| 5 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.BilinearRestriction |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! Restriction of a bilinear map along an explicit ring homomorphism, |
| 10 | with the existing module actions retained. -/ |
| 11 | |
| 12 | variable (R S : Type*) [CommRing R] [CommRing S] (φ : S →+* R) |
| 13 | (M N P : Type*) [AddCommGroup M] [AddCommGroup N] [AddCommGroup P] |
| 14 | [Module R M] [Module R N] [Module R P] |
| 15 | [Module S M] [Module S N] [Module S P] |
| 16 | (hM : ∀ s (x : M), s • x = φ s • x) |
| 17 | (hN : ∀ s (x : N), s • x = φ s • x) |
| 18 | (hP : ∀ s (x : P), s • x = φ s • x) |
| 19 | (b : M →ₗ[R] N →ₗ[R] P) |
| 20 | |
| 21 | def map : M →ₗ[S] N →ₗ[S] P := |
| 22 | LinearMap.mk₂ S (fun x y => b x y) |
| 23 | (fun x x' y => LinearMap.congr_fun (b.map_add x x') y) |
| 24 | (fun s x y => by |
| 25 | rw [hM, hP] |
| 26 | exact LinearMap.congr_fun (b.map_smul (φ s) x) y) |
| 27 | (fun x y y' => (b x).map_add y y') |
| 28 | (fun s x y => by |
| 29 | rw [hN, hP] |
| 30 | exact (b x).map_smul (φ s) y) |
| 31 | |
| 32 | theorem map_apply (x : M) (y : N) : map R S φ M N P hM hN hP b x y = b x y := rfl |
| 33 | |
| 34 | end |
| 35 | |
| 36 | end OAI.NumberTheory.PadicHodge.IntegralComparison.BilinearRestriction |