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.Prod |
| 2 | |
| 3 | /-! # Transverse Projection Linear -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.CycleClass.Thom.TransverseProjectionLinear.Constructions |
| 6 | |
| 7 | /-! The linear transversality calculation for a normal slice and an immersion with injective base projection. -/ |
| 8 | |
| 9 | variable {k A F U W V : Type*} [Field k] |
| 10 | [AddCommGroup A] [Module k A] [AddCommGroup F] [Module k F] |
| 11 | [AddCommGroup U] [Module k U] [AddCommGroup W] [Module k W] |
| 12 | [AddCommGroup V] [Module k V] |
| 13 | |
| 14 | theorem normal_slice_injective (q : A →ₗ[k] U) (s : U →ₗ[k] A) |
| 15 | (i : W →ₗ[k] A × F) (n : A × F →ₗ[k] V) |
| 16 | (hs : q.comp s = LinearMap.id) |
| 17 | (hn : LinearMap.ker n = LinearMap.range i) |
| 18 | (hq : q.comp ((LinearMap.fst k A F).comp i) = 0) |
| 19 | (hi : Function.Injective ((LinearMap.fst k A F).comp i)) : |
| 20 | Function.Injective (n.comp (s.prodMap (LinearMap.id : F →ₗ[k] F))) := by |
| 21 | apply LinearMap.ker_eq_bot.mp |
| 22 | apply le_antisymm ?_ bot_le |
| 23 | intro v hv |
| 24 | change v = 0 |
| 25 | have hv' : (s v.1, v.2) ∈ LinearMap.ker n := hv |
| 26 | rw [hn] at hv' |
| 27 | obtain ⟨w, hw⟩ := hv' |
| 28 | have hqw := LinearMap.congr_fun hq w |
| 29 | change q (i w).1 = 0 at hqw |
| 30 | rw [hw] at hqw |
| 31 | have hsv := LinearMap.congr_fun hs v.1 |
| 32 | change q (s v.1) = v.1 at hsv |
| 33 | have hv₁ : v.1 = 0 := hsv.symm.trans hqw |
| 34 | have hw₀ : w = 0 := hi (by |
| 35 | change (i w).1 = (i 0).1 |
| 36 | rw [hw, hv₁, map_zero, map_zero] |
| 37 | rfl) |
| 38 | rw [hw₀, map_zero] at hw |
| 39 | exact Prod.ext hv₁ (congrArg Prod.snd hw).symm |
| 40 | |
| 41 | end OAI.AlgebraicGeometry.CycleClass.Thom.TransverseProjectionLinear.Constructions |