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.Algebra.Exact.Basic |
| 2 | |
| 3 | /-! # Exact Linear Coordinates -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.SheafCohomology.Projective.ExactLinearCoordinates |
| 6 | |
| 7 | /-! Exactness transports through commuting linear coordinate equivalences. -/ |
| 8 | |
| 9 | universe u v₁ v₂ v₃ w₁ w₂ w₃ |
| 10 | variable {R : Type u} [CommRing R] |
| 11 | variable {M : Type v₁} {N : Type v₂} {P : Type v₃} |
| 12 | variable {M' : Type w₁} {N' : Type w₂} {P' : Type w₃} |
| 13 | variable [AddCommGroup M] [AddCommGroup N] [AddCommGroup P] |
| 14 | variable [AddCommGroup M'] [AddCommGroup N'] [AddCommGroup P'] |
| 15 | variable [Module R M] [Module R N] [Module R P] |
| 16 | variable [Module R M'] [Module R N'] [Module R P'] |
| 17 | |
| 18 | theorem exact_of_linearEquiv_coordinates (eM : M ≃ₗ[R] M') (eN : N ≃ₗ[R] N') (eP : P ≃ₗ[R] P') |
| 19 | (f : M →ₗ[R] N) (g : N →ₗ[R] P) (f' : M' →ₗ[R] N') (g' : N' →ₗ[R] P') |
| 20 | (hf : ∀ x, eN (f x) = f' (eM x)) (hg : ∀ x, eP (g x) = g' (eN x)) |
| 21 | (hex : Function.Exact f' g') : Function.Exact f g := by |
| 22 | intro x |
| 23 | constructor |
| 24 | · intro hx |
| 25 | have hx' : g' (eN x) = 0 := by rw [← hg, hx, map_zero] |
| 26 | obtain ⟨y, hy⟩ := (hex (eN x)).mp hx' |
| 27 | refine ⟨eM.symm y, eN.injective ?_⟩ |
| 28 | rw [hf, eM.apply_symm_apply, hy] |
| 29 | · rintro ⟨y, rfl⟩ |
| 30 | apply eP.injective |
| 31 | rw [map_zero, hg, hf] |
| 32 | exact hex.apply_apply_eq_zero (eM y) |
| 33 | |
| 34 | end OAI.AlgebraicGeometry.SheafCohomology.Projective.ExactLinearCoordinates |