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.Picard.PoincareBundle.Finite.AlgebraCharacter |
| 2 | import Mathlib.LinearAlgebra.Contraction |
| 3 | import Mathlib.RingTheory.Coalgebra.Convolution |
| 4 | import Mathlib.RingTheory.Coalgebra.GroupLike |
| 5 | |
| 6 | /-! # Coalgebra Group Like -/ |
| 7 | |
| 8 | namespace OAI.AlgebraicGeometry.Picard.PoincareBundle.Finite.CoalgebraGroupLike |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! Finite cocommutative coalgebras over an algebraically closed field have group-like elements. -/ |
| 13 | |
| 14 | universe u v w |
| 15 | |
| 16 | open _root_.Module TensorProduct Coalgebra WithConv |
| 17 | |
| 18 | variable (k : Type u) [Field k] |
| 19 | (C : Type v) [AddCommGroup C] [Module k C] [Module.Finite k C] |
| 20 | |
| 21 | /-- Rank-one tensor functionals separate elements of a finite tensor product. -/ |
| 22 | theorem tensor_eq_of_duals |
| 23 | (D : Type w) [AddCommGroup D] [Module k D] [Module.Finite k D] |
| 24 | {x y : C ⊗[k] D} |
| 25 | (h : ∀ f : Dual k C, ∀ g : Dual k D, |
| 26 | dualDistrib k C D (f ⊗ₜ g) x = dualDistrib k C D (f ⊗ₜ g) y) : x = y := by |
| 27 | apply (Module.evalEquiv k (C ⊗[k] D)).injective |
| 28 | apply LinearMap.ext |
| 29 | intro φ |
| 30 | obtain ⟨z, rfl⟩ := (dualDistribEquiv k C D).surjective φ |
| 31 | change ((dualDistribEquiv k C D).toLinearMap z) x = |
| 32 | ((dualDistribEquiv k C D).toLinearMap z) y |
| 33 | rw [toLinearMap_dualDistribEquiv] |
| 34 | induction z using TensorProduct.inductionOn with |
| 35 | | tmul f g => exact h f g |
| 36 | | add a b ha hb => simp only [map_add, LinearMap.add_apply, ha, hb] |
| 37 | |
| 38 | omit [Module.Finite k C] in |
| 39 | /-- The tensor-dual evaluation is the scalar multiplication used by convolution. -/ |
| 40 | theorem dualDistrib_eq_mul (f g : Dual k C) (z : C ⊗[k] C) : |
| 41 | dualDistrib k C C (f ⊗ₜ g) z = |
| 42 | LinearMap.mul' k k (TensorProduct.map f g z) := by |
| 43 | induction z using TensorProduct.inductionOn with |
| 44 | | tmul a b => simp |
| 45 | | add a b ha hb => simp only [map_add, ha, hb] |
| 46 | |
| 47 | variable [Coalgebra k C] |
| 48 | |
| 49 | /-- A character of the convolution algebra is represented by an actual coalgebra element. -/ |
| 50 | def characterPoint (χ : WithConv (Dual k C) →ₐ[k] k) : C := |
| 51 | (Module.evalEquiv k C).symm |
| 52 | (χ.toLinearMap.comp (WithConv.linearEquiv k (Dual k C)).symm.toLinearMap) |
| 53 | |
| 54 | theorem characterPoint_eval (χ : WithConv (Dual k C) →ₐ[k] k) (f : Dual k C) : |
| 55 | f (characterPoint k C χ) = χ (toConv f) := by |
| 56 | simp [characterPoint] |
| 57 | |
| 58 | /-- Multiplicativity of the algebra character gives the group-like coalgebra identities. -/ |
| 59 | theorem characterPoint_groupLike (χ : WithConv (Dual k C) →ₐ[k] k) : |
| 60 | IsGroupLikeElem k (characterPoint k C χ) := by |
| 61 | constructor |
| 62 | · have h := characterPoint_eval k C χ (1 : WithConv (Dual k C)).ofConv |
| 63 | simpa using h |
| 64 | · apply tensor_eq_of_duals k C C |
| 65 | intro f g |
| 66 | rw [dualDistrib_apply, dualDistrib_eq_mul] |
| 67 | change (toConv f * toConv g) (characterPoint k C χ) = _ |
| 68 | rw [characterPoint_eval k C χ (toConv f * toConv g).ofConv] |
| 69 | simp only [toConv_ofConv, map_mul, characterPoint_eval] |
| 70 | |
| 71 | variable [IsAlgClosed k] [Nontrivial C] [Coalgebra.IsCocomm k C] |
| 72 | |
| 73 | /-- No reducedness or characteristic restriction is needed for this group-like element. -/ |
| 74 | theorem exists_groupLike : ∃ c : C, IsGroupLikeElem k c := by |
| 75 | have : Module.Finite k (WithConv (Dual k C)) := |
| 76 | Module.Finite.of_surjective (WithConv.linearEquiv k (Dual k C)).symm.toLinearMap |
| 77 | (WithConv.linearEquiv k (Dual k C)).symm.surjective |
| 78 | obtain ⟨χ⟩ := AlgebraCharacter.exists_character k (WithConv (Dual k C)) |
| 79 | exact ⟨characterPoint k C χ, characterPoint_groupLike k C χ⟩ |
| 80 | |
| 81 | end |
| 82 | |
| 83 | end OAI.AlgebraicGeometry.Picard.PoincareBundle.Finite.CoalgebraGroupLike |