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.SymmetricAlgebra.Basic |
| 2 | import Mathlib.RingTheory.GradedAlgebra.Basic |
| 3 | |
| 4 | /-! # Grading -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.Divisors.LineBundles.Symmetric.Grading.BundleCycles |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! The actual symmetric algebra is internally graded by the powers of |
| 11 | its degree-one module. The decomposition is constructed by its universal property. -/ |
| 12 | |
| 13 | open scoped DirectSum |
| 14 | |
| 15 | variable (R M : Type*) [CommSemiring R] [AddCommMonoid M] [Module R M] |
| 16 | |
| 17 | def symmetricGrading (n : ℕ) : Submodule R (SymmetricAlgebra R M) := |
| 18 | LinearMap.range (SymmetricAlgebra.ι R M) ^ n |
| 19 | |
| 20 | instance symmetricGrading_gradedMonoid : SetLike.GradedMonoid (symmetricGrading R M) := |
| 21 | Submodule.nat_power_gradedMonoid (LinearMap.range (SymmetricAlgebra.ι R M)) |
| 22 | |
| 23 | def symmetricGradedGenerator : M →ₗ[R] ⨁ n : ℕ, symmetricGrading R M n := |
| 24 | DirectSum.lof R ℕ (fun n => symmetricGrading R M n) 1 ∘ₗ |
| 25 | (SymmetricAlgebra.ι R M).codRestrict _ fun m => by |
| 26 | change SymmetricAlgebra.ι R M m ∈ LinearMap.range (SymmetricAlgebra.ι R M) ^ 1 |
| 27 | simpa only [pow_one] using LinearMap.mem_range_self (SymmetricAlgebra.ι R M) m |
| 28 | |
| 29 | theorem symmetricGradedGenerator_apply (m : M) : |
| 30 | symmetricGradedGenerator R M m = DirectSum.of (fun n => symmetricGrading R M n) 1 |
| 31 | ⟨SymmetricAlgebra.ι R M m, by |
| 32 | change SymmetricAlgebra.ι R M m ∈ LinearMap.range (SymmetricAlgebra.ι R M) ^ 1 |
| 33 | simpa only [pow_one] using LinearMap.mem_range_self (SymmetricAlgebra.ι R M) m⟩ := rfl |
| 34 | |
| 35 | def symmetricDecompose : SymmetricAlgebra R M →ₐ[R] ⨁ n : ℕ, symmetricGrading R M n := |
| 36 | SymmetricAlgebra.lift (symmetricGradedGenerator R M) |
| 37 | |
| 38 | theorem symmetricDecompose_homogeneous (n : ℕ) (x : symmetricGrading R M n) : |
| 39 | symmetricDecompose R M x = DirectSum.of (fun n => symmetricGrading R M n) n x := by |
| 40 | obtain ⟨x, hx⟩ := x |
| 41 | change x ∈ LinearMap.range (SymmetricAlgebra.ι R M) ^ n at hx |
| 42 | dsimp only [Subtype.coe_mk] |
| 43 | induction hx using Submodule.pow_induction_on_left' with |
| 44 | | algebraMap r => |
| 45 | rw [AlgHom.commutes, DirectSum.algebraMap_apply] |
| 46 | rfl |
| 47 | | add x y n hx hy ihx ihy => |
| 48 | rw [map_add, ihx, ihy, ← map_add] |
| 49 | rfl |
| 50 | | mem_mul m hm n x hx ih => |
| 51 | obtain ⟨a, rfl⟩ := hm |
| 52 | rw [map_mul, ih] |
| 53 | change SymmetricAlgebra.lift (symmetricGradedGenerator R M) (SymmetricAlgebra.ι R M a) * _ = _ |
| 54 | rw [SymmetricAlgebra.lift_ι_apply, symmetricGradedGenerator_apply, DirectSum.of_mul_of] |
| 55 | exact DirectSum.of_eq_of_gradedMonoid_eq (Sigma.subtype_ext (add_comm _ _) rfl) |
| 56 | |
| 57 | instance symmetricGradedAlgebra : GradedAlgebra (symmetricGrading R M) := |
| 58 | GradedAlgebra.ofAlgHom _ (symmetricDecompose R M) |
| 59 | (by |
| 60 | apply SymmetricAlgebra.algHom_ext |
| 61 | ext m |
| 62 | change DirectSum.coeAlgHom (symmetricGrading R M) |
| 63 | (SymmetricAlgebra.lift (symmetricGradedGenerator R M) (SymmetricAlgebra.ι R M m)) = _ |
| 64 | rw [SymmetricAlgebra.lift_ι_apply, symmetricGradedGenerator_apply, DirectSum.coeAlgHom_of] |
| 65 | rfl) |
| 66 | (symmetricDecompose_homogeneous R M) |
| 67 | |
| 68 | end |
| 69 | |
| 70 | end OAI.AlgebraicGeometry.Divisors.LineBundles.Symmetric.Grading.BundleCycles |