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.Projection |
| 2 | import Mathlib.Algebra.Module.Projective |
| 3 | |
| 4 | /-! # Free Quotient -/ |
| 5 | |
| 6 | namespace OAI.NumberTheory.PadicHodge.GeometricComparison.FreeQuotient.FreeQuotientComplement |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! A projective quotient supplies a genuine complement to the original submodule, over a general coefficient ring. -/ |
| 11 | |
| 12 | variable {R M : Type*} [Ring R] [AddCommGroup M] [Module R M] |
| 13 | |
| 14 | theorem exists_complement (P : Submodule R M) [Module.Projective R (M ⧸ P)] : |
| 15 | ∃ Q : Submodule R M, IsCompl P Q := by |
| 16 | obtain ⟨s, hs⟩ := P.mkQ.exists_rightInverse_of_surjective |
| 17 | (LinearMap.range_eq_top.mpr P.mkQ_surjective) |
| 18 | let g : M →ₗ[R] P := (LinearMap.id - s.comp P.mkQ).codRestrict P (by |
| 19 | intro x |
| 20 | apply (Submodule.Quotient.mk_eq_zero P).mp |
| 21 | change P.mkQ (x - s (P.mkQ x)) = 0 |
| 22 | rw [map_sub] |
| 23 | exact sub_eq_zero.mpr (LinearMap.congr_fun hs (P.mkQ x)).symm) |
| 24 | refine ⟨g.ker, LinearMap.isCompl_of_proj (f := g) ?_⟩ |
| 25 | intro x |
| 26 | apply Subtype.ext |
| 27 | change (x : M) - s (P.mkQ x) = (x : M) |
| 28 | rw [show P.mkQ (x : M) = 0 from (Submodule.Quotient.mk_eq_zero P).mpr x.property, map_zero, sub_zero] |
| 29 | |
| 30 | end |
| 31 | |
| 32 | end OAI.NumberTheory.PadicHodge.GeometricComparison.FreeQuotient.FreeQuotientComplement |