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.Analysis.HodgeTheory.Decomposition.Multilinear |
| 2 | import OAI.AlgebraicGeometry.ComplexMultiplication.SignSwitch |
| 3 | import Mathlib.LinearAlgebra.Alternating.Basic |
| 4 | |
| 5 | /-! # Pointwise -/ |
| 6 | |
| 7 | namespace OAI.Analysis.HodgeTheory.Decomposition.Pointwise.Constructions |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! Pure-character spanning for actual algebraic alternating covectors. -/ |
| 12 | |
| 13 | open scoped BigOperators |
| 14 | |
| 15 | variable (E : Type*) [NormedAddCommGroup E] [NormedSpace ℝ E] [NormedSpace ℂ E] |
| 16 | [IsScalarTower ℝ ℂ E] |
| 17 | |
| 18 | /-- A signed joint eigenvector is complex-linear or conjugate-linear in each slot. -/ |
| 19 | theorem signed_slot_scalar (n : ℕ) (ε : Fin n → Bool) (f : Multilinear.Constructions.RealMultilinear E n) |
| 20 | (hf : f ∈ Multilinear.Constructions.signedMultilinearSpace E n ε) (i : Fin n) (z : ℂ) (v : Fin n → E) : |
| 21 | f (Function.update v i (z • v i)) = (if ε i then z else star z) * f v := by |
| 22 | have hi := (iInf_le (fun j => (Multilinear.Constructions.slotRotation E n j).eigenspace |
| 23 | (if ε j then Complex.I else -Complex.I)) i) hf |
| 24 | rw [Module.End.mem_eigenspace_iff] at hi |
| 25 | have hJ := congrArg (fun g : Multilinear.Constructions.RealMultilinear E n => g v) hi |
| 26 | rw [Multilinear.Constructions.slotRotation_apply] at hJ |
| 27 | change f (Function.update v i (Complex.I • v i)) = |
| 28 | (if ε i then Complex.I else -Complex.I) * f v at hJ |
| 29 | have hR (r : ℝ) (x : E) : (r : ℂ) • x = r • x := algebraMap_smul ℂ r x |
| 30 | have hz : z • v i = z.re • v i + z.im • (Complex.I • v i) := by |
| 31 | conv_lhs => rw [← Complex.re_add_im z] |
| 32 | rw [add_smul, mul_smul, hR, hR] |
| 33 | have hc : (z.re : ℂ) + (z.im : ℂ) * (if ε i then Complex.I else -Complex.I) = |
| 34 | (if ε i then z else star z) := by |
| 35 | cases ε i <;> apply Complex.ext <;> simp |
| 36 | rw [hz, f.map_update_add, f.map_update_smul, f.map_update_smul, |
| 37 | Function.update_eq_self, hJ] |
| 38 | simp only [Complex.real_smul] |
| 39 | calc |
| 40 | (z.re : ℂ) * f v + (z.im : ℂ) * ((if ε i then Complex.I else -Complex.I) * f v) = |
| 41 | ((z.re : ℂ) + (z.im : ℂ) * (if ε i then Complex.I else -Complex.I)) * f v := by ring |
| 42 | _ = _ := by rw [hc] |
| 43 | |
| 44 | section SlotProduct |
| 45 | |
| 46 | variable {ι A : Type*} [Fintype ι] [DecidableEq ι] |
| 47 | |
| 48 | /-- Independent transformations of all slots multiply their individual eigenvalues. -/ |
| 49 | theorem apply_all_slots (f : (ι → A) → ℂ) (L : ι → A → A) (c : ι → ℂ) |
| 50 | (h : ∀ i v, f (Function.update v i (L i (v i))) = c i * f v) |
| 51 | (v : ι → A) : f (fun i => L i (v i)) = (∏ i, c i) * f v := by |
| 52 | have aux (s : Finset ι) : |
| 53 | f (fun i => if i ∈ s then L i (v i) else v i) = (∏ i ∈ s, c i) * f v := by |
| 54 | induction s using Finset.induction_on with |
| 55 | | empty => simp |
| 56 | | @insert i s his ih => |
| 57 | let w : ι → A := fun j => if j ∈ s then L j (v j) else v j |
| 58 | have hw : (fun j => if j ∈ insert i s then L j (v j) else v j) = |
| 59 | Function.update w i (L i (w i)) := by |
| 60 | funext j |
| 61 | by_cases hji : j = i |
| 62 | · subst j |
| 63 | simp [w, his] |
| 64 | · simp [w, hji] |
| 65 | rw [hw, h] |
| 66 | change c i * f (fun j => if j ∈ s then L j (v j) else v j) = _ |
| 67 | rw [ih, Finset.prod_insert his, mul_assoc] |
| 68 | simpa using aux Finset.univ |
| 69 | |
| 70 | end SlotProduct |
| 71 | |
| 72 | def signBidegree {n : ℕ} (ε : Fin n → Bool) : Core.Constructions.Bidegree n := |
| 73 | ⟨(Fintype.card {i // ε i = true}, Fintype.card {i // ε i = false}), by |
| 74 | simpa only [AlgebraicGeometry.ComplexMultiplication.SignSwitch.CM.signCount, Fintype.card_fin] using |
| 75 | AlgebraicGeometry.ComplexMultiplication.SignSwitch.CM.signCount_true_add_false (fun i (_ : Unit) => ε i) ()⟩ |
| 76 | |
| 77 | theorem signed_product_character {n : ℕ} (ε : Fin n → Bool) (z : ℂˣ) : |
| 78 | (∏ i, if ε i then (z : ℂ) else star (z : ℂ)) = |
| 79 | DifferentialForms.Manifold.Bidegree.bidegreeCharacter (signBidegree ε).val.1 (signBidegree ε).val.2 z := by |
| 80 | classical |
| 81 | simp only [signBidegree, Finset.prod_ite, Finset.prod_const, |
| 82 | DifferentialForms.Manifold.Bidegree.bidegreeCharacter, Fintype.card_subtype, Bool.not_eq_true] |
| 83 | |
| 84 | /-- The simultaneous scalar character depends only on the numbers of the two slot types. -/ |
| 85 | theorem signed_multilinear_character (n : ℕ) (ε : Fin n → Bool) (f : Multilinear.Constructions.RealMultilinear E n) |
| 86 | (hf : f ∈ Multilinear.Constructions.signedMultilinearSpace E n ε) (z : ℂˣ) (v : Fin n → E) : |
| 87 | f (fun i => (z : ℂ) • v i) = |
| 88 | DifferentialForms.Manifold.Bidegree.bidegreeCharacter (signBidegree ε).val.1 (signBidegree ε).val.2 z * f v := by |
| 89 | rw [apply_all_slots f (fun _ x => (z : ℂ) • x) |
| 90 | (fun i => if ε i then (z : ℂ) else star (z : ℂ)) |
| 91 | (fun i v => signed_slot_scalar E n ε f hf i z v) v, |
| 92 | signed_product_character] |
| 93 | |
| 94 | /-- The complex-linear alternatization map on the actual multilinear covectors. -/ |
| 95 | def alternatizationLinear (n : ℕ) : |
| 96 | Multilinear.Constructions.RealMultilinear E n →ₗ[ℂ] (E [⋀^Fin n]→ₗ[ℝ] ℂ) where |
| 97 | toFun := MultilinearMap.alternatization |
| 98 | map_add' := MultilinearMap.alternatization.map_add |
| 99 | map_smul' c f := by |
| 100 | ext v |
| 101 | simp only [RingHom.id_apply, AlternatingMap.smul_apply, |
| 102 | MultilinearMap.alternatization_apply, MultilinearMap.domDomCongr_apply, |
| 103 | smul_apply, Finset.smul_sum] |
| 104 | apply Finset.sum_congr rfl |
| 105 | intro σ _ |
| 106 | exact smul_comm (Equiv.Perm.sign σ) c _ |
| 107 | |
| 108 | /-- Algebraic pure covectors in one fixed total degree. -/ |
| 109 | def algebraicPureSpace (n : ℕ) (i : Core.Constructions.Bidegree n) : |
| 110 | Submodule ℂ (E [⋀^Fin n]→ₗ[ℝ] ℂ) where |
| 111 | carrier := {f | ∀ z : ℂˣ, ∀ v, f (fun j => (z : ℂ) • v j) = |
| 112 | DifferentialForms.Manifold.Bidegree.bidegreeCharacter i.val.1 i.val.2 z * f v} |
| 113 | zero_mem' := by intro z v; simp |
| 114 | add_mem' := by |
| 115 | intro f g hf hg z v |
| 116 | simpa only [AlternatingMap.add_apply, mul_add] using congrArg₂ (· + ·) (hf z v) (hg z v) |
| 117 | smul_mem' := by |
| 118 | intro c f hf z v |
| 119 | change c * f (fun j => (z : ℂ) • v j) = DifferentialForms.Manifold.Bidegree.bidegreeCharacter i.val.1 i.val.2 z * (c * f v) |
| 120 | rw [hf] |
| 121 | ring |
| 122 | |
| 123 | /-- Alternatization preserves the scalar character. -/ |
| 124 | theorem alternatization_signed_mem (n : ℕ) (ε : Fin n → Bool) (f : Multilinear.Constructions.RealMultilinear E n) |
| 125 | (hf : f ∈ Multilinear.Constructions.signedMultilinearSpace E n ε) : |
| 126 | alternatizationLinear E n f ∈ algebraicPureSpace E n (signBidegree ε) := by |
| 127 | intro z v |
| 128 | simp only [alternatizationLinear, LinearMap.coe_mk, AddHom.coe_mk, |
| 129 | MultilinearMap.alternatization_apply, MultilinearMap.domDomCongr_apply] |
| 130 | rw [Finset.mul_sum] |
| 131 | apply Finset.sum_congr rfl |
| 132 | intro σ _ |
| 133 | rw [signed_multilinear_character E n ε f hf z (fun j => v (σ j))] |
| 134 | exact (smul_comm (Equiv.Perm.sign σ) |
| 135 | (DifferentialForms.Manifold.Bidegree.bidegreeCharacter (signBidegree ε).val.1 (signBidegree ε).val.2 z) (f (fun j => v (σ j)))) |
| 136 | |
| 137 | omit [NormedSpace ℂ E] [IsScalarTower ℝ ℂ E] in |
| 138 | /-- Alternatization is onto in characteristic zero. -/ |
| 139 | theorem alternatizationLinear_surjective (n : ℕ) : Function.Surjective (alternatizationLinear E n) := by |
| 140 | intro f |
| 141 | refine ⟨((n.factorial : ℂ)⁻¹) • f.toMultilinearMap, ?_⟩ |
| 142 | rw [map_smul] |
| 143 | change ((n.factorial : ℂ)⁻¹) • MultilinearMap.alternatization f.toMultilinearMap = f |
| 144 | rw [AlternatingMap.coe_alternatization, Fintype.card_fin] |
| 145 | rw [← Nat.cast_smul_eq_nsmul ℂ n.factorial f, smul_smul, |
| 146 | inv_mul_cancel₀ (Nat.cast_ne_zero.mpr (Nat.factorial_ne_zero n)), one_smul] |
| 147 | |
| 148 | /-- Every algebraic alternating covector is a sum of covectors of pure bidegree. -/ |
| 149 | theorem algebraicPureSpace_span [FiniteDimensional ℝ E] (n : ℕ) : |
| 150 | (⨆ i : Core.Constructions.Bidegree n, algebraicPureSpace E n i) = ⊤ := by |
| 151 | apply top_unique |
| 152 | have htop : (⊤ : Submodule ℂ (E [⋀^Fin n]→ₗ[ℝ] ℂ)) = |
| 153 | (⊤ : Submodule ℂ (Multilinear.Constructions.RealMultilinear E n)).map (alternatizationLinear E n) := by |
| 154 | rw [Submodule.map_top, LinearMap.range_eq_top.mpr (alternatizationLinear_surjective E n)] |
| 155 | rw [htop, ← Multilinear.Constructions.signedMultilinearSpace_span E n, Submodule.map_iSup] |
| 156 | refine iSup_le fun ε => ?_ |
| 157 | apply le_trans _ (le_iSup (algebraicPureSpace E n) (signBidegree ε)) |
| 158 | rintro _ ⟨f, hf, rfl⟩ |
| 159 | exact alternatization_signed_mem E n ε f hf |
| 160 | |
| 161 | end |
| 162 | |
| 163 | end OAI.Analysis.HodgeTheory.Decomposition.Pointwise.Constructions |