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.RepresentationTheory.Theta.Geometric.SquareZero.Subalgebra |
| 2 | import Mathlib.Algebra.Algebra.Subalgebra.Basic |
| 3 | |
| 4 | /-! # Factorization -/ |
| 5 | |
| 6 | namespace OAI.RepresentationTheory.Theta.Geometric.SquareZero.Factorization |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! A morphism constant modulo a square-zero subspace factors through the |
| 11 | actual split square-zero subalgebra, without requiring an augmentation of |
| 12 | the ambient algebra. -/ |
| 13 | |
| 14 | variable {M R A : Type*} [AddCommGroup M] [Module ℂ M] [Module ℂᵐᵒᵖ M] |
| 15 | [IsCentralScalar ℂ M] [CommRing R] [Algebra ℂ R] [Nontrivial R] |
| 16 | [CommRing A] [Algebra ℂ A] |
| 17 | |
| 18 | omit [Nontrivial R] in |
| 19 | theorem squareZeroSubalgebraMap_mem_range |
| 20 | (i : M →ₗ[ℂ] R) (hsq : ∀ x y, i x * i y = 0) |
| 21 | (r : R) (c : ℂ) (h : r - algebraMap ℂ R c ∈ LinearMap.range i) : |
| 22 | r ∈ (SquareZero.Subalgebra.squareZeroSubalgebraMap i hsq).range := by |
| 23 | obtain ⟨m, hm⟩ := h |
| 24 | refine ⟨TrivSqZeroExt.inl c + TrivSqZeroExt.inr m, ?_⟩ |
| 25 | change algebraMap ℂ R (c + 0) + i (0 + m) = r |
| 26 | rw [add_zero, zero_add, hm, add_sub_cancel] |
| 27 | |
| 28 | def squareZeroFactorization (i : M →ₗ[ℂ] R) (hi : Function.Injective i) |
| 29 | (hsq : ∀ x y, i x * i y = 0) (f : A →ₐ[ℂ] R) (e : A →ₐ[ℂ] ℂ) |
| 30 | (hf : ∀ a, f a - algebraMap ℂ R (e a) ∈ LinearMap.range i) : |
| 31 | A →ₐ[ℂ] TrivSqZeroExt ℂ M := |
| 32 | (AlgEquiv.ofInjective (SquareZero.Subalgebra.squareZeroSubalgebraMap i hsq) |
| 33 | (SquareZero.Subalgebra.squareZeroSubalgebraMap_injective i hi hsq)).symm.toAlgHom.comp |
| 34 | (f.codRestrict _ (fun a => squareZeroSubalgebraMap_mem_range i hsq (f a) (e a) (hf a))) |
| 35 | |
| 36 | theorem squareZeroFactorization_comp (i : M →ₗ[ℂ] R) (hi : Function.Injective i) |
| 37 | (hsq : ∀ x y, i x * i y = 0) (f : A →ₐ[ℂ] R) (e : A →ₐ[ℂ] ℂ) |
| 38 | (hf : ∀ a, f a - algebraMap ℂ R (e a) ∈ LinearMap.range i) : |
| 39 | (SquareZero.Subalgebra.squareZeroSubalgebraMap i hsq).comp (squareZeroFactorization i hi hsq f e hf) = f := by |
| 40 | ext a |
| 41 | let eqv := AlgEquiv.ofInjective (SquareZero.Subalgebra.squareZeroSubalgebraMap i hsq) |
| 42 | (SquareZero.Subalgebra.squareZeroSubalgebraMap_injective i hi hsq) |
| 43 | have h := congrArg Subtype.val (eqv.apply_symm_apply |
| 44 | (f.codRestrict _ (fun a => squareZeroSubalgebraMap_mem_range i hsq (f a) (e a) (hf a)) a)) |
| 45 | exact h |
| 46 | |
| 47 | end |
| 48 | |
| 49 | end OAI.RepresentationTheory.Theta.Geometric.SquareZero.Factorization |