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.AbelianScheme.IsogenyQuotient.SplitCompletion |
| 2 | import Mathlib.LinearAlgebra.TensorProduct.Tower |
| 3 | |
| 4 | /-! # Rational Split Completion -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.AbelianScheme.IsogenyQuotient.RationalSplitCompletion.Construction |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! |
| 11 | The rational split completion uses the same actual field embeddings as |
| 12 | the integral one. The comparison on integral tensors supplies every |
| 13 | coordinate vector, proving surjectivity and hence the rational isomorphism. |
| 14 | -/ |
| 15 | |
| 16 | open scoped TensorProduct |
| 17 | |
| 18 | variable {E L : Type} [Field E] [NumberField E] [IsGalois ℚ E] |
| 19 | [Field L] [NumberField L] {κ : L →+* ℂ} {q : ℕ} [Fact q.Prime] |
| 20 | (j : PELModuli.CMPoints.Arithmetic.QadicChoice L κ q) (iota : E →+* L) (hsplit : j.HasSplitCoordinates iota) |
| 21 | |
| 22 | def l45FieldCharacter (τ : Gal(E/ℚ)) : E →+* ℚ_[q] := |
| 23 | (j.completion.toRingHom.comp (NumberField.FinitePlace.embedding j.prime)).comp |
| 24 | (iota.comp τ.toRingHom) |
| 25 | |
| 26 | omit [IsGalois ℚ E] in |
| 27 | theorem l45FieldCharacter_integer (τ : Gal(E/ℚ)) (a : NumberField.RingOfIntegers E) : |
| 28 | l45FieldCharacter j iota τ (a : E) = (j.localCharacter iota τ a : ℚ_[q]) := |
| 29 | (RingHom.congr_fun j.integral_compatibility |
| 30 | (NumberField.RingOfIntegers.mapRingHom (iota.comp τ.toRingHom) a)).symm |
| 31 | |
| 32 | def l45RationalCompletionMap : |
| 33 | ℚ_[q] ⊗[ℚ] E →ₐ[ℚ_[q]] (Gal(E/ℚ) → ℚ_[q]) := |
| 34 | AlgHom.liftEquiv ℚ ℚ_[q] E _ (RingHom.pi (l45FieldCharacter j iota)).toRatAlgHom |
| 35 | |
| 36 | omit [IsGalois ℚ E] in |
| 37 | theorem l45RationalCompletionMap_integer (a : E) : |
| 38 | l45RationalCompletionMap j iota (1 ⊗ₜ[ℚ] a) = fun τ => l45FieldCharacter j iota τ a := by |
| 39 | change (1 : ℚ_[q]) • (fun τ => l45FieldCharacter j iota τ a) = _ |
| 40 | exact one_smul _ _ |
| 41 | |
| 42 | def integralToRationalCompletion : |
| 43 | ℤ_[q] ⊗[ℤ] NumberField.RingOfIntegers E →ₗ[ℤ_[q]] ℚ_[q] ⊗[ℚ] E := |
| 44 | TensorProduct.AlgebraTensorModule.lift |
| 45 | ((LinearMap.id : ℤ_[q] →ₗ[ℤ_[q]] ℤ_[q]).smulRight |
| 46 | (((TensorProduct.mk ℚ ℚ_[q] E 1).restrictScalars ℤ).comp |
| 47 | (algebraMap (NumberField.RingOfIntegers E) E).toIntAlgHom.toLinearMap)) |
| 48 | |
| 49 | omit [IsGalois ℚ E] in |
| 50 | theorem l45CompletionMap_rational_comparison |
| 51 | (z : ℤ_[q] ⊗[ℤ] NumberField.RingOfIntegers E) (τ : Gal(E/ℚ)) : |
| 52 | l45RationalCompletionMap j iota (integralToRationalCompletion (E := E) (q := q) z) τ = |
| 53 | (SplitCompletion.Construction.l45CompletionMap j iota z τ : ℚ_[q]) := by |
| 54 | induction z using TensorProduct.inductionOn with |
| 55 | | tmul a r => |
| 56 | change l45RationalCompletionMap j iota ((a : ℚ_[q]) • (1 ⊗ₜ[ℚ] (r : E))) τ = |
| 57 | ((a * j.localCharacter iota τ r : ℤ_[q]) : ℚ_[q]) |
| 58 | rw [map_smul, l45RationalCompletionMap_integer] |
| 59 | simp only [Pi.smul_apply, smul_eq_mul, l45FieldCharacter_integer, PadicInt.coe_mul] |
| 60 | | add z w hz hw => |
| 61 | simp only [map_add, Pi.add_apply, PadicInt.coe_add, hz, hw] |
| 62 | |
| 63 | omit [IsGalois ℚ E] in |
| 64 | include hsplit in |
| 65 | theorem l45RationalCompletionMap_surjective : Function.Surjective (l45RationalCompletionMap j iota) := by |
| 66 | classical |
| 67 | apply LinearMap.range_eq_top.mp |
| 68 | apply top_unique |
| 69 | rw [← (Pi.basisFun ℚ_[q] Gal(E/ℚ)).span_eq] |
| 70 | apply Submodule.span_le.mpr |
| 71 | rintro _ ⟨τ, rfl⟩ |
| 72 | obtain ⟨z, hz⟩ := SplitCompletion.Construction.l45CompletionMap_surjective j iota hsplit (Pi.single τ 1) |
| 73 | refine ⟨integralToRationalCompletion (E := E) (q := q) z, ?_⟩ |
| 74 | ext υ |
| 75 | change l45RationalCompletionMap j iota (integralToRationalCompletion z) υ = _ |
| 76 | rw [l45CompletionMap_rational_comparison, hz] |
| 77 | by_cases h : τ = υ |
| 78 | · subst υ |
| 79 | simp |
| 80 | · simp [h] |
| 81 | |
| 82 | include hsplit in |
| 83 | theorem l45RationalCompletionMap_bijective : Function.Bijective (l45RationalCompletionMap j iota) := by |
| 84 | let B := (NumberField.integralBasis E).baseChange ℚ_[q] |
| 85 | have hr : Module.finrank ℚ_[q] (ℚ_[q] ⊗[ℚ] E) = |
| 86 | Module.finrank ℚ_[q] (Gal(E/ℚ) → ℚ_[q]) := by |
| 87 | rw [Module.finrank_eq_card_basis B, Module.finrank_pi] |
| 88 | calc |
| 89 | _ = Module.finrank ℚ E := (Module.finrank_eq_card_basis (NumberField.integralBasis E)).symm |
| 90 | _ = Fintype.card Gal(E/ℚ) := by rw [Fintype.card_eq_nat_card, IsGalois.card_aut_eq_finrank] |
| 91 | let e := LinearEquiv.ofFinrankEq (R := ℚ_[q]) (ℚ_[q] ⊗[ℚ] E) (Gal(E/ℚ) → ℚ_[q]) hr |
| 92 | have hf := l45RationalCompletionMap_surjective j iota hsplit |
| 93 | have hi := Module.End.injective_of_surjective ℚ_[q] (Gal(E/ℚ) → ℚ_[q]) |
| 94 | (f := (l45RationalCompletionMap j iota).toLinearMap.comp e.symm.toLinearMap) |
| 95 | (hf.comp e.symm.surjective) |
| 96 | refine ⟨fun x y hxy => e.injective (hi ?_), hf⟩ |
| 97 | simpa only [LinearMap.comp_apply, LinearEquiv.coe_coe, LinearEquiv.symm_apply_apply, |
| 98 | AlgHom.toLinearMap_apply] using hxy |
| 99 | |
| 100 | def l45RationalCompletionEquiv : ℚ_[q] ⊗[ℚ] E ≃ₐ[ℚ_[q]] (Gal(E/ℚ) → ℚ_[q]) := |
| 101 | AlgEquiv.ofBijective (l45RationalCompletionMap j iota) (l45RationalCompletionMap_bijective j iota hsplit) |
| 102 | |
| 103 | end |
| 104 | |
| 105 | end OAI.AlgebraicGeometry.AbelianScheme.IsogenyQuotient.RationalSplitCompletion.Construction |