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.RingTheory.Flat.Equalizer |
| 2 | |
| 3 | /-! # Exact Kernels -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.HilbertScheme.Presentations.Flat.ExactKernels |
| 6 | |
| 7 | /-! Kernels in short exact sequences of flat modules are flat. -/ |
| 8 | |
| 9 | universe u v w t |
| 10 | |
| 11 | variable {R : Type u} [CommRing R] |
| 12 | variable {M : Type v} [AddCommGroup M] [Module R M] |
| 13 | variable {N : Type w} [AddCommGroup N] [Module R N] |
| 14 | variable {P : Type t} [AddCommGroup P] [Module R P] |
| 15 | |
| 16 | theorem flat_of_exact_flat_quotient [Module.Flat R N] [Module.Flat R P] |
| 17 | (i : M →ₗ[R] N) (p : N →ₗ[R] P) (hi : Function.Injective i) (hp : Function.Surjective p) |
| 18 | (hex : Function.Exact i p) : Module.Flat R M := by |
| 19 | rw [Module.Flat.iff_rTensor_preserves_injective_linearMap] |
| 20 | intro U V _ _ _ _ f hf |
| 21 | apply Function.Injective.of_comp (f := i.lTensor V) |
| 22 | have hcomm : (i.lTensor V).comp (f.rTensor M) = (f.rTensor N).comp (i.lTensor U) := by |
| 23 | rw [LinearMap.lTensor_comp_rTensor, LinearMap.rTensor_comp_lTensor] |
| 24 | change Function.Injective ((i.lTensor V).comp (f.rTensor M)) |
| 25 | rw [hcomm] |
| 26 | exact (Module.Flat.rTensor_preserves_injective_linearMap (M := N) f hf).comp |
| 27 | (LinearMap.lTensor_injective_of_exact_of_flat p hp i hi hex U) |
| 28 | |
| 29 | theorem kernel_flat_of_surjective [Module.Flat R N] [Module.Flat R P] |
| 30 | (p : N →ₗ[R] P) (hp : Function.Surjective p) : Module.Flat R p.ker := |
| 31 | flat_of_exact_flat_quotient p.ker.subtype p p.ker.subtype_injective hp (LinearMap.exact_subtype_ker_map p) |
| 32 | |
| 33 | end OAI.AlgebraicGeometry.HilbertScheme.Presentations.Flat.ExactKernels |