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 OAI.AlgebraicGeometry.Quotients.FiniteDescent.FlatKernelProd |
| 2 | import Mathlib.RingTheory.Finiteness.Basic |
| 3 | import Mathlib.LinearAlgebra.Finsupp.LinearCombination |
| 4 | |
| 5 | /-! # Free Cokernel -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.Quotients.FiniteDescent.FreeCokernel.Construction.FiniteFreeCokernel |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! Completing a map with finite cokernel by finitely many free generators. |
| 12 | This is the elementary step in replacing a bounded flat complex by a |
| 13 | finite complex. -/ |
| 14 | |
| 15 | universe u v w |
| 16 | |
| 17 | variable {R : Type u} [CommRing R] |
| 18 | variable {M : Type v} [AddCommGroup M] [Module R M] |
| 19 | variable {N : Type w} [AddCommGroup N] [Module R N] |
| 20 | |
| 21 | theorem exists_completion (f : M →ₗ[R] N) [Module.Finite R (N ⧸ f.range)] : |
| 22 | ∃ (n : ℕ) (v : (Fin n → R) →ₗ[R] N), Function.Surjective (f.coprod v) := by |
| 23 | classical |
| 24 | obtain ⟨n, s, hs⟩ := Module.Finite.exists_fin (R := R) (M := N ⧸ f.range) |
| 25 | choose t ht using fun i => f.range.mkQ_surjective (s i) |
| 26 | let v : (Fin n → R) →ₗ[R] N := Fintype.linearCombination R t |
| 27 | refine ⟨n, v, fun y => ?_⟩ |
| 28 | have hy : f.range.mkQ y ∈ Submodule.span R (Set.range s) := hs ▸ Submodule.mem_top |
| 29 | obtain ⟨c, hc⟩ := (Submodule.mem_span_range_iff_exists_fun R).mp hy |
| 30 | have he : f.range.mkQ (v c) = f.range.mkQ y := by |
| 31 | change f.range.mkQ (∑ i, c i • t i) = _ |
| 32 | simpa only [map_sum, map_smul, ht] using hc |
| 33 | have hr : y - v c ∈ f.range := by |
| 34 | rw [← f.range.ker_mkQ] |
| 35 | change f.range.mkQ (y - v c) = 0 |
| 36 | rw [map_sub, he, sub_self] |
| 37 | obtain ⟨x, hx⟩ := hr |
| 38 | refine ⟨(x, c), ?_⟩ |
| 39 | change f x + v c = y |
| 40 | rw [hx, sub_add_cancel] |
| 41 | |
| 42 | structure Completion (f : M →ₗ[R] N) where |
| 43 | n : ℕ |
| 44 | generators : (Fin n → R) →ₗ[R] N |
| 45 | surjective : Function.Surjective (f.coprod generators) |
| 46 | |
| 47 | def completion (f : M →ₗ[R] N) [Module.Finite R (N ⧸ f.range)] : Completion f := |
| 48 | let n := (exists_completion f).choose |
| 49 | let h := (exists_completion f).choose_spec |
| 50 | ⟨n, h.choose, h.choose_spec⟩ |
| 51 | |
| 52 | theorem Completion.flat_kernel [Module.Flat R M] [Module.Flat R N] |
| 53 | {f : M →ₗ[R] N} (D : Completion f) : Module.Flat R (f.coprod D.generators).ker := by |
| 54 | have : Module.Flat R (M × (Fin D.n → R)) := FlatKernelProd.Construction.FlatKernel.prod |
| 55 | apply FlatKernelProd.Construction.FlatKernel.flat _ D.surjective |
| 56 | |
| 57 | end |
| 58 | |
| 59 | end OAI.AlgebraicGeometry.Quotients.FiniteDescent.FreeCokernel.Construction.FiniteFreeCokernel |