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.ArithmeticGeometry.OrdinaryLocus.Openness.TensorCocycles |
| 2 | import Mathlib.LinearAlgebra.Isomorphisms |
| 3 | import Mathlib.Algebra.Exact.Basic |
| 4 | |
| 5 | /-! # Vector Space Contraction -/ |
| 6 | |
| 7 | namespace OAI.ArithmeticGeometry.OrdinaryLocus.Openness.VectorSpaceContraction.Construction |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! Constructing the degree-zero contractions used in the Kunneth cocycle argument. -/ |
| 12 | |
| 13 | open scoped TensorProduct |
| 14 | |
| 15 | universe u v w |
| 16 | |
| 17 | variable {k : Type u} [Field k] {C₀ : Type v} {C₁ : Type w} |
| 18 | [AddCommGroup C₀] [Module k C₀] [AddCommGroup C₁] [Module k C₁] |
| 19 | |
| 20 | theorem augmented_vectorSpace_contraction |
| 21 | (u : k →ₗ[k] C₀) (e : C₀ →ₗ[k] k) (d : C₀ →ₗ[k] C₁) |
| 22 | (he : e.comp u = LinearMap.id) (hexact : Function.Exact u d) : |
| 23 | ∃ h : C₁ →ₗ[k] C₀, h.comp d = LinearMap.id - u.comp e := by |
| 24 | let q : C₀ →ₗ[k] C₀ := LinearMap.id - u.comp e |
| 25 | have hker : LinearMap.ker d ≤ LinearMap.ker q := by |
| 26 | intro x hx |
| 27 | obtain ⟨r, rfl⟩ := (hexact x).mp hx |
| 28 | change u r - u (e (u r)) = 0 |
| 29 | have hr : e (u r) = r := LinearMap.congr_fun he r |
| 30 | rw [hr, sub_self] |
| 31 | let g := (LinearMap.ker d).liftQ q hker |
| 32 | let r := g.comp d.quotKerEquivRange.symm.toLinearMap |
| 33 | obtain ⟨h, hh⟩ := r.exists_extend |
| 34 | refine ⟨h, ?_⟩ |
| 35 | apply LinearMap.ext |
| 36 | intro x |
| 37 | have hx := LinearMap.congr_fun hh ⟨d x, ⟨x, rfl⟩⟩ |
| 38 | change h (d x) = g (d.quotKerEquivRange.symm ⟨d x, ⟨x, rfl⟩⟩) at hx |
| 39 | exact hx.trans (congrArg g (d.quotKerEquivRange_symm_apply_image x ⟨x, rfl⟩)) |
| 40 | |
| 41 | theorem augmented_exact_comp_zero |
| 42 | (u : k →ₗ[k] C₀) (d : C₀ →ₗ[k] C₁) (hexact : Function.Exact u d) : |
| 43 | d.comp u = 0 := by |
| 44 | apply LinearMap.ext |
| 45 | intro r |
| 46 | exact (hexact (u r)).mpr ⟨r, rfl⟩ |
| 47 | |
| 48 | end |
| 49 | |
| 50 | end OAI.ArithmeticGeometry.OrdinaryLocus.Openness.VectorSpaceContraction.Construction |