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.NumberTheory.ArithmeticGroups.Lattices.MultilinearBasisCoordinates |
| 2 | import OAI.NumberTheory.ArithmeticGroups.Lattices.CoordinateRepresentation |
| 3 | |
| 4 | /-! # Multilinear Action -/ |
| 5 | |
| 6 | namespace OAI.NumberTheory.ArithmeticGroups.Lattices.MultilinearAction.Construction |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | section |
| 11 | |
| 12 | /-! Contravariant actions on multilinear forms, expressed in their finite |
| 13 | basis-evaluation coordinates. -/ |
| 14 | |
| 15 | open scoped Classical |
| 16 | |
| 17 | def multilinearContravariantRepresentation |
| 18 | {R E A H : Type*} [Field R] [AddCommGroup E] [Module R E] |
| 19 | [AddCommGroup A] [Module R A] [Group H] (ρ : H →* (E ≃ₗ[R] E)) (r : ℕ) : |
| 20 | H →* (MultilinearMap R (fun _ : Fin r => E) A ≃ₗ[R] MultilinearMap R (fun _ : Fin r => E) A) where |
| 21 | toFun g := LinearEquiv.multilinearMapCongrLeft (fun _ : Fin r => ρ g⁻¹) |
| 22 | map_one' := by |
| 23 | apply LinearEquiv.ext |
| 24 | intro f |
| 25 | apply MultilinearMap.ext |
| 26 | intro v |
| 27 | change f (fun i => ρ (1 : H)⁻¹ (v i)) = f v |
| 28 | simp |
| 29 | map_mul' g h := by |
| 30 | apply LinearEquiv.ext |
| 31 | intro f |
| 32 | apply MultilinearMap.ext |
| 33 | intro v |
| 34 | change f (fun i => ρ (g * h)⁻¹ (v i)) = f (fun i => ρ h⁻¹ (ρ g⁻¹ (v i))) |
| 35 | rw [mul_inv_rev, map_mul] |
| 36 | rfl |
| 37 | |
| 38 | def multilinearBasisRepresentation |
| 39 | {R E A H I : Type*} [Field R] [AddCommGroup E] [Module R E] |
| 40 | [AddCommGroup A] [Module R A] [Group H] |
| 41 | (ρ : H →* (E ≃ₗ[R] E)) (b : Module.Basis I R E) (r : ℕ) : |
| 42 | H →* ((MultilinearBasisCoordinates.Construction.multilinearBasisEvaluation (A := A) b r).range ≃ₗ[R] |
| 43 | (MultilinearBasisCoordinates.Construction.multilinearBasisEvaluation (A := A) b r).range) := |
| 44 | CoordinateRepresentation.Construction.transportLinearRepresentation (multilinearContravariantRepresentation (A := A) ρ r) |
| 45 | (MultilinearBasisCoordinates.Construction.multilinearBasisEvaluationEquiv b r) |
| 46 | |
| 47 | theorem multilinearBasisEvaluationEquiv_symm_evaluate |
| 48 | {R E A I : Type*} [CommRing R] [AddCommGroup E] [Module R E] |
| 49 | [AddCommGroup A] [Module R A] (b : Module.Basis I R E) (r : ℕ) |
| 50 | (x : (MultilinearBasisCoordinates.Construction.multilinearBasisEvaluation (A := A) b r).range) (t : Fin r → I) : |
| 51 | (MultilinearBasisCoordinates.Construction.multilinearBasisEvaluationEquiv b r).symm x (fun i => b (t i)) = x.val t := |
| 52 | congrArg (fun z : (MultilinearBasisCoordinates.Construction.multilinearBasisEvaluation (A := A) b r).range => z.val t) |
| 53 | ((MultilinearBasisCoordinates.Construction.multilinearBasisEvaluationEquiv b r).apply_symm_apply x) |
| 54 | |
| 55 | theorem multilinearBasisRepresentation_apply |
| 56 | {R E A H I : Type*} [Field R] [AddCommGroup E] [Module R E] |
| 57 | [AddCommGroup A] [Module R A] [Group H] [Fintype I] |
| 58 | (ρ : H →* (E ≃ₗ[R] E)) (b : Module.Basis I R E) (r : ℕ) (g : H) |
| 59 | (x : (MultilinearBasisCoordinates.Construction.multilinearBasisEvaluation (A := A) b r).range) (t : Fin r → I) : |
| 60 | (multilinearBasisRepresentation ρ b r g x).val t = |
| 61 | ∑ s : Fin r → I, (∏ i, b.repr (ρ g⁻¹ (b (t i))) (s i)) • x.val s := by |
| 62 | change (MultilinearBasisCoordinates.Construction.multilinearBasisEvaluationEquiv b r).symm x (fun i => ρ g⁻¹ (b (t i))) = _ |
| 63 | rw [MultilinearBasisCoordinates.Construction.multilinear_basis_expansion b r] |
| 64 | simp_rw [multilinearBasisEvaluationEquiv_symm_evaluate] |
| 65 | |
| 66 | theorem continuous_multilinearBasisRepresentation |
| 67 | {E A H I : Type*} [NormedAddCommGroup E] [NormedSpace ℝ E] [FiniteDimensional ℝ E] |
| 68 | [NormedAddCommGroup A] [NormedSpace ℝ A] [Group H] [TopologicalSpace H] [IsTopologicalGroup H] |
| 69 | [Fintype I] (ρ : H →* (E ≃ₗ[ℝ] E)) (b : Module.Basis I ℝ E) (r : ℕ) |
| 70 | (hρ : Continuous (fun a : H × E => ρ a.1 a.2)) : |
| 71 | Continuous (fun a : H × (MultilinearBasisCoordinates.Construction.multilinearBasisEvaluation (A := A) b r).range => |
| 72 | multilinearBasisRepresentation ρ b r a.1 a.2) := by |
| 73 | apply Continuous.subtype_mk |
| 74 | apply continuous_pi |
| 75 | intro t |
| 76 | change Continuous (fun a : H × (MultilinearBasisCoordinates.Construction.multilinearBasisEvaluation (A := A) b r).range => |
| 77 | (multilinearBasisRepresentation ρ b r a.1 a.2).val t) |
| 78 | simp_rw [multilinearBasisRepresentation_apply] |
| 79 | apply continuous_finsetSum |
| 80 | intro s _ |
| 81 | apply Continuous.smul |
| 82 | · apply continuous_finsetProd |
| 83 | intro i _ |
| 84 | exact (b.coord (s i)).continuous_of_finiteDimensional.comp |
| 85 | (hρ.comp ((continuous_inv.comp continuous_fst).prodMk continuous_const)) |
| 86 | · exact (continuous_apply s).comp (continuous_subtype_val.comp continuous_snd) |
| 87 | |
| 88 | end |
| 89 | |
| 90 | section |
| 91 | |
| 92 | /-! Integer-valued multilinear forms form a closed discrete module in |
| 93 | finite basis coordinates. Lattice-preserving actions preserve it. -/ |
| 94 | |
| 95 | open scoped Classical |
| 96 | |
| 97 | def integralMultilinearCoordinates |
| 98 | {E A I : Type*} [AddCommGroup E] [Module ℝ E] [AddCommGroup A] [Module ℝ A] |
| 99 | (b : Module.Basis I ℝ E) (r : ℕ) (Ω : Submodule ℤ A) : |
| 100 | Submodule ℤ (MultilinearBasisCoordinates.Construction.multilinearBasisEvaluation (A := A) b r).range := |
| 101 | (Submodule.pi Set.univ (fun _ : Fin r → I => Ω)).comap |
| 102 | ((MultilinearBasisCoordinates.Construction.multilinearBasisEvaluation (A := A) b r).range.subtype.restrictScalars ℤ) |
| 103 | |
| 104 | theorem mem_integralMultilinearCoordinates |
| 105 | {E A I : Type*} [AddCommGroup E] [Module ℝ E] [AddCommGroup A] [Module ℝ A] |
| 106 | (b : Module.Basis I ℝ E) (r : ℕ) (Ω : Submodule ℤ A) |
| 107 | (x : (MultilinearBasisCoordinates.Construction.multilinearBasisEvaluation (A := A) b r).range) : |
| 108 | x ∈ integralMultilinearCoordinates b r Ω ↔ ∀ t, x.val t ∈ Ω := by |
| 109 | change (∀ t ∈ Set.univ, x.val t ∈ Ω) ↔ _ |
| 110 | simp only [Set.mem_univ, forall_const] |
| 111 | |
| 112 | theorem integralMultilinearCoordinates_discrete |
| 113 | {E A I : Type*} [AddCommGroup E] [Module ℝ E] |
| 114 | [NormedAddCommGroup A] [NormedSpace ℝ A] [Finite I] |
| 115 | (b : Module.Basis I ℝ E) (r : ℕ) (Ω : Submodule ℤ A) [DiscreteTopology Ω] : |
| 116 | DiscreteTopology (integralMultilinearCoordinates b r Ω) := by |
| 117 | let f : integralMultilinearCoordinates b r Ω → ((Fin r → I) → Ω) := fun x t => |
| 118 | ⟨x.val.val t, (mem_integralMultilinearCoordinates b r Ω x.val).mp x.property t⟩ |
| 119 | apply DiscreteTopology.of_continuous_injective (f := f) |
| 120 | · apply continuous_pi |
| 121 | intro t |
| 122 | exact ((continuous_apply t).comp (continuous_subtype_val.comp continuous_subtype_val)).subtype_mk _ |
| 123 | · intro x y he |
| 124 | apply Subtype.ext |
| 125 | apply Subtype.ext |
| 126 | funext t |
| 127 | exact congrArg (fun z : (Fin r → I) → Ω => (z t).val) he |
| 128 | |
| 129 | theorem integralMultilinearCoordinates_closed |
| 130 | {E A I : Type*} [AddCommGroup E] [Module ℝ E] |
| 131 | [NormedAddCommGroup A] [NormedSpace ℝ A] [Finite I] |
| 132 | (b : Module.Basis I ℝ E) (r : ℕ) (Ω : Submodule ℤ A) [DiscreteTopology Ω] : |
| 133 | IsClosed (integralMultilinearCoordinates b r Ω : |
| 134 | Set (MultilinearBasisCoordinates.Construction.multilinearBasisEvaluation (A := A) b r).range) := by |
| 135 | let : DiscreteTopology (integralMultilinearCoordinates b r Ω) := |
| 136 | integralMultilinearCoordinates_discrete b r Ω |
| 137 | exact (integralMultilinearCoordinates b r Ω).toAddSubgroup.isClosed_of_discreteTopology |
| 138 | |
| 139 | theorem integralMultilinearCoordinates_evaluate |
| 140 | {E A I : Type*} [AddCommGroup E] [Module ℝ E] [AddCommGroup A] [Module ℝ A] |
| 141 | [Fintype I] (b : Module.Basis I ℝ E) (r : ℕ) (Ω : Submodule ℤ A) |
| 142 | (x : (MultilinearBasisCoordinates.Construction.multilinearBasisEvaluation (A := A) b r).range) |
| 143 | (hx : x ∈ integralMultilinearCoordinates b r Ω) (v : Fin r → E) |
| 144 | (hv : ∀ i, v i ∈ Submodule.span ℤ (Set.range b)) : |
| 145 | (MultilinearBasisCoordinates.Construction.multilinearBasisEvaluationEquiv b r).symm x v ∈ Ω := by |
| 146 | rw [MultilinearBasisCoordinates.Construction.multilinear_basis_expansion b r] |
| 147 | apply Submodule.sum_mem |
| 148 | intro t _ |
| 149 | rw [multilinearBasisEvaluationEquiv_symm_evaluate] |
| 150 | have hi (i : Fin r) : ∃ z : ℤ, algebraMap ℤ ℝ z = b.repr (v i) (t i) := |
| 151 | (b.mem_span_iff_repr_mem ℤ (v i)).mp (hv i) (t i) |
| 152 | choose z hz using hi |
| 153 | have hc : (∏ i, b.repr (v i) (t i)) = algebraMap ℤ ℝ (∏ i, z i) := by |
| 154 | simp only [map_prod, hz] |
| 155 | rw [hc, IsScalarTower.algebraMap_smul] |
| 156 | exact Ω.smul_mem _ ((mem_integralMultilinearCoordinates b r Ω x).mp hx t) |
| 157 | |
| 158 | theorem integralMultilinearCoordinates_stable |
| 159 | {E A H I : Type*} [AddCommGroup E] [Module ℝ E] [AddCommGroup A] [Module ℝ A] |
| 160 | [Group H] [Fintype I] (ρ : H →* (E ≃ₗ[ℝ] E)) (b : Module.Basis I ℝ E) |
| 161 | (r : ℕ) (Ω : Submodule ℤ A) (Γ : Subgroup H) |
| 162 | (hΓ : ∀ g ∈ Γ, ∀ v ∈ Submodule.span ℤ (Set.range b), |
| 163 | ρ g v ∈ Submodule.span ℤ (Set.range b)) |
| 164 | {g : H} (hg : g ∈ Γ) {x : (MultilinearBasisCoordinates.Construction.multilinearBasisEvaluation (A := A) b r).range} |
| 165 | (hx : x ∈ integralMultilinearCoordinates b r Ω) : |
| 166 | multilinearBasisRepresentation ρ b r g x ∈ integralMultilinearCoordinates b r Ω := by |
| 167 | apply (mem_integralMultilinearCoordinates b r Ω _).mpr |
| 168 | intro t |
| 169 | change (MultilinearBasisCoordinates.Construction.multilinearBasisEvaluationEquiv b r).symm x (fun i => ρ g⁻¹ (b (t i))) ∈ Ω |
| 170 | apply integralMultilinearCoordinates_evaluate b r Ω x hx |
| 171 | intro i |
| 172 | exact hΓ g⁻¹ (Γ.inv_mem hg) (b (t i)) (Submodule.subset_span (Set.mem_range_self (t i))) |
| 173 | |
| 174 | end |
| 175 | |
| 176 | /-! Tensor actions allowing simultaneous change of input and output |
| 177 | coordinates. Unary tensors include conjugation of endomorphisms. -/ |
| 178 | |
| 179 | open scoped Classical |
| 180 | |
| 181 | def multilinearCovariantRepresentation |
| 182 | {R E A H : Type*} [Field R] [AddCommGroup E] [Module R E] |
| 183 | [AddCommGroup A] [Module R A] [Group H] |
| 184 | (ρ : H →* (E ≃ₗ[R] E)) (τ : H →* (A ≃ₗ[R] A)) (r : ℕ) : |
| 185 | H →* (MultilinearMap R (fun _ : Fin r => E) A ≃ₗ[R] MultilinearMap R (fun _ : Fin r => E) A) where |
| 186 | toFun g := (LinearEquiv.multilinearMapCongrLeft (fun _ : Fin r => ρ g⁻¹)).trans |
| 187 | ((τ g).multilinearMapCongrRight R) |
| 188 | map_one' := by |
| 189 | apply LinearEquiv.ext |
| 190 | intro f |
| 191 | apply MultilinearMap.ext |
| 192 | intro v |
| 193 | change τ 1 (f (fun i => ρ (1 : H)⁻¹ (v i))) = f v |
| 194 | simp |
| 195 | map_mul' g h := by |
| 196 | apply LinearEquiv.ext |
| 197 | intro f |
| 198 | apply MultilinearMap.ext |
| 199 | intro v |
| 200 | change τ (g * h) (f (fun i => ρ (g * h)⁻¹ (v i))) = |
| 201 | τ g (τ h (f (fun i => ρ h⁻¹ (ρ g⁻¹ (v i))))) |
| 202 | rw [mul_inv_rev, map_mul, map_mul] |
| 203 | rfl |
| 204 | |
| 205 | def multilinearCovariantBasisRepresentation |
| 206 | {R E A H I : Type*} [Field R] [AddCommGroup E] [Module R E] |
| 207 | [AddCommGroup A] [Module R A] [Group H] |
| 208 | (ρ : H →* (E ≃ₗ[R] E)) (τ : H →* (A ≃ₗ[R] A)) (b : Module.Basis I R E) (r : ℕ) : |
| 209 | H →* ((MultilinearBasisCoordinates.Construction.multilinearBasisEvaluation (A := A) b r).range ≃ₗ[R] |
| 210 | (MultilinearBasisCoordinates.Construction.multilinearBasisEvaluation (A := A) b r).range) := |
| 211 | CoordinateRepresentation.Construction.transportLinearRepresentation (multilinearCovariantRepresentation ρ τ r) |
| 212 | (MultilinearBasisCoordinates.Construction.multilinearBasisEvaluationEquiv b r) |
| 213 | |
| 214 | theorem multilinearCovariantBasisRepresentation_apply |
| 215 | {R E A H I : Type*} [Field R] [AddCommGroup E] [Module R E] |
| 216 | [AddCommGroup A] [Module R A] [Group H] [Fintype I] |
| 217 | (ρ : H →* (E ≃ₗ[R] E)) (τ : H →* (A ≃ₗ[R] A)) (b : Module.Basis I R E) (r : ℕ) (g : H) |
| 218 | (x : (MultilinearBasisCoordinates.Construction.multilinearBasisEvaluation (A := A) b r).range) (t : Fin r → I) : |
| 219 | (multilinearCovariantBasisRepresentation ρ τ b r g x).val t = |
| 220 | ∑ s : Fin r → I, (∏ i, b.repr (ρ g⁻¹ (b (t i))) (s i)) • τ g (x.val s) := by |
| 221 | change τ g ((MultilinearBasisCoordinates.Construction.multilinearBasisEvaluationEquiv b r).symm x (fun i => ρ g⁻¹ (b (t i)))) = _ |
| 222 | rw [MultilinearBasisCoordinates.Construction.multilinear_basis_expansion b r, map_sum] |
| 223 | simp_rw [multilinearBasisEvaluationEquiv_symm_evaluate, map_smul] |
| 224 | |
| 225 | theorem continuous_multilinearCovariantBasisRepresentation |
| 226 | {E A H I : Type*} [NormedAddCommGroup E] [NormedSpace ℝ E] [FiniteDimensional ℝ E] |
| 227 | [NormedAddCommGroup A] [NormedSpace ℝ A] [Group H] [TopologicalSpace H] [IsTopologicalGroup H] |
| 228 | [Fintype I] (ρ : H →* (E ≃ₗ[ℝ] E)) (τ : H →* (A ≃ₗ[ℝ] A)) |
| 229 | (b : Module.Basis I ℝ E) (r : ℕ) |
| 230 | (hρ : Continuous (fun a : H × E => ρ a.1 a.2)) |
| 231 | (hτ : Continuous (fun a : H × A => τ a.1 a.2)) : |
| 232 | Continuous (fun a : H × (MultilinearBasisCoordinates.Construction.multilinearBasisEvaluation (A := A) b r).range => |
| 233 | multilinearCovariantBasisRepresentation ρ τ b r a.1 a.2) := by |
| 234 | apply Continuous.subtype_mk |
| 235 | apply continuous_pi |
| 236 | intro t |
| 237 | change Continuous (fun a : H × (MultilinearBasisCoordinates.Construction.multilinearBasisEvaluation (A := A) b r).range => |
| 238 | (multilinearCovariantBasisRepresentation ρ τ b r a.1 a.2).val t) |
| 239 | simp_rw [multilinearCovariantBasisRepresentation_apply] |
| 240 | apply continuous_finsetSum |
| 241 | intro s _ |
| 242 | apply Continuous.smul |
| 243 | · apply continuous_finsetProd |
| 244 | intro i _ |
| 245 | exact (b.coord (s i)).continuous_of_finiteDimensional.comp |
| 246 | (hρ.comp ((continuous_inv.comp continuous_fst).prodMk continuous_const)) |
| 247 | · exact hτ.comp (continuous_fst.prodMk |
| 248 | ((continuous_apply s).comp (continuous_subtype_val.comp continuous_snd))) |
| 249 | |
| 250 | theorem integralMultilinearCoordinates_covariant_stable |
| 251 | {E A H I : Type*} [AddCommGroup E] [Module ℝ E] [AddCommGroup A] [Module ℝ A] |
| 252 | [Group H] [Fintype I] (ρ : H →* (E ≃ₗ[ℝ] E)) (τ : H →* (A ≃ₗ[ℝ] A)) |
| 253 | (b : Module.Basis I ℝ E) (r : ℕ) (Ω : Submodule ℤ A) (Γ : Subgroup H) |
| 254 | (hΓ : ∀ g ∈ Γ, ∀ v ∈ Submodule.span ℤ (Set.range b), |
| 255 | ρ g v ∈ Submodule.span ℤ (Set.range b)) |
| 256 | (hΩ : ∀ g ∈ Γ, ∀ a ∈ Ω, τ g a ∈ Ω) |
| 257 | {g : H} (hg : g ∈ Γ) {x : (MultilinearBasisCoordinates.Construction.multilinearBasisEvaluation (A := A) b r).range} |
| 258 | (hx : x ∈ integralMultilinearCoordinates b r Ω) : |
| 259 | multilinearCovariantBasisRepresentation ρ τ b r g x ∈ integralMultilinearCoordinates b r Ω := by |
| 260 | apply (mem_integralMultilinearCoordinates b r Ω _).mpr |
| 261 | intro t |
| 262 | change τ g ((MultilinearBasisCoordinates.Construction.multilinearBasisEvaluationEquiv b r).symm x (fun i => ρ g⁻¹ (b (t i)))) ∈ Ω |
| 263 | apply hΩ g hg |
| 264 | apply integralMultilinearCoordinates_evaluate b r Ω x hx |
| 265 | intro i |
| 266 | exact hΓ g⁻¹ (Γ.inv_mem hg) (b (t i)) (Submodule.subset_span (Set.mem_range_self (t i))) |
| 267 | |
| 268 | theorem multilinearCovariantBasisRepresentation_fixed_iff |
| 269 | {R E A H I : Type*} [Field R] [AddCommGroup E] [Module R E] |
| 270 | [AddCommGroup A] [Module R A] [Group H] |
| 271 | (ρ : H →* (E ≃ₗ[R] E)) (τ : H →* (A ≃ₗ[R] A)) (b : Module.Basis I R E) (r : ℕ) |
| 272 | (g : H) (f : MultilinearMap R (fun _ : Fin r => E) A) : |
| 273 | multilinearCovariantBasisRepresentation ρ τ b r g (MultilinearBasisCoordinates.Construction.multilinearBasisEvaluationEquiv b r f) = |
| 274 | MultilinearBasisCoordinates.Construction.multilinearBasisEvaluationEquiv b r f ↔ |
| 275 | ∀ v, τ g (f (fun i => ρ g⁻¹ (v i))) = f v := by |
| 276 | let e := MultilinearBasisCoordinates.Construction.multilinearBasisEvaluationEquiv (A := A) b r |
| 277 | change e (multilinearCovariantRepresentation ρ τ r g (e.symm (e f))) = e f ↔ _ |
| 278 | rw [e.symm_apply_apply, e.injective.eq_iff] |
| 279 | exact ⟨fun h v => congrArg (fun F : MultilinearMap R (fun _ : Fin r => E) A => F v) h, |
| 280 | fun h => MultilinearMap.ext h⟩ |
| 281 | |
| 282 | end |
| 283 | |
| 284 | end OAI.NumberTheory.ArithmeticGroups.Lattices.MultilinearAction.Construction |