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.PadicHodge.GeometricComparison.Integral.ExteriorAlgebraBaseChange |
| 2 | import Mathlib.LinearAlgebra.ExteriorPower.Basic |
| 3 | import Mathlib.RingTheory.Flat.Basic |
| 4 | |
| 5 | /-! # Exterior Power Base Change -/ |
| 6 | |
| 7 | namespace OAI.NumberTheory.PadicHodge.GeometricComparison.Integral.ExteriorPowerBaseChange.IntegralExteriorBaseChange |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | section |
| 12 | |
| 13 | /-! Flat scalar extension embeds every exterior power into the exterior power of the extended module. -/ |
| 14 | |
| 15 | open scoped TensorProduct |
| 16 | |
| 17 | variable (R S M : Type*) [CommRing R] [CommRing S] [AddCommGroup M] |
| 18 | [Algebra R S] [Module R M] |
| 19 | |
| 20 | def algebraMap : ExteriorAlgebra R M →ₐ[R] ExteriorAlgebra S (S ⊗[R] M) := |
| 21 | ((ExteriorAlgebraBaseChange.IntegralExteriorBaseChange.algebraEquiv R S M).toAlgHom.restrictScalars R).comp Algebra.TensorProduct.includeRight |
| 22 | |
| 23 | theorem algebraMap_ι (m : M) : |
| 24 | algebraMap R S M (ExteriorAlgebra.ι R m) = ExteriorAlgebra.ι S (1 ⊗ₜ[R] m) := |
| 25 | ExteriorAlgebraBaseChange.IntegralExteriorBaseChange.algebraEquiv_tmul_ι R S M 1 m |
| 26 | |
| 27 | theorem algebraMap_ιMulti (n : ℕ) (v : Fin n → M) : |
| 28 | algebraMap R S M (ExteriorAlgebra.ιMulti R n v) = |
| 29 | ExteriorAlgebra.ιMulti S n (fun i => 1 ⊗ₜ[R] v i) := by |
| 30 | simp only [ExteriorAlgebra.ιMulti_apply, map_list_prod, List.map_ofFn, Function.comp_def, |
| 31 | algebraMap_ι] |
| 32 | |
| 33 | theorem algebraEquiv_tmul_ιMulti (n : ℕ) (s : S) (v : Fin n → M) : |
| 34 | ExteriorAlgebraBaseChange.IntegralExteriorBaseChange.algebraEquiv R S M (s ⊗ₜ[R] ExteriorAlgebra.ιMulti R n v) = |
| 35 | s • ExteriorAlgebra.ιMulti S n (fun i => 1 ⊗ₜ[R] v i) := by |
| 36 | rw [TensorProduct.tmul_eq_smul_one_tmul, map_smul] |
| 37 | exact congrArg (s • ·) (algebraMap_ιMulti R S M n v) |
| 38 | |
| 39 | theorem algebraEquiv_tmul_power_mem (n : ℕ) (s : S) (ω : ⋀[R]^n M) : |
| 40 | ExteriorAlgebraBaseChange.IntegralExteriorBaseChange.algebraEquiv R S M (s ⊗ₜ[R] (ω : ExteriorAlgebra R M)) ∈ ⋀[S]^n (S ⊗[R] M) := by |
| 41 | have hω : ω ∈ Submodule.span R (Set.range (exteriorPower.ιMulti R n)) := by |
| 42 | rw [exteriorPower.ιMulti_span] |
| 43 | trivial |
| 44 | induction hω using Submodule.span_induction with |
| 45 | | mem x hx => |
| 46 | obtain ⟨v, rfl⟩ := hx |
| 47 | change ExteriorAlgebraBaseChange.IntegralExteriorBaseChange.algebraEquiv R S M (s ⊗ₜ[R] ExteriorAlgebra.ιMulti R n v) ∈ _ |
| 48 | rw [algebraEquiv_tmul_ιMulti] |
| 49 | exact Submodule.smul_mem _ _ (ExteriorAlgebra.ιMulti_range S n (Set.mem_range_self _)) |
| 50 | | zero => simp only [ZeroMemClass.coe_zero, TensorProduct.tmul_zero, map_zero, zero_mem] |
| 51 | | add x y hx hy ihx ihy => |
| 52 | simpa only [Submodule.coe_add, TensorProduct.tmul_add, map_add] using |
| 53 | Submodule.add_mem _ ihx ihy |
| 54 | | smul r x hx ih => |
| 55 | change ExteriorAlgebraBaseChange.IntegralExteriorBaseChange.algebraEquiv R S M (s ⊗ₜ[R] (r • (x : ExteriorAlgebra R M))) ∈ _ |
| 56 | rw [TensorProduct.tmul_smul] |
| 57 | change ((ExteriorAlgebraBaseChange.IntegralExteriorBaseChange.algebraEquiv R S M).toLinearEquiv.restrictScalars R) |
| 58 | (r • (s ⊗ₜ[R] (x : ExteriorAlgebra R M))) ∈ _ |
| 59 | rw [map_smul] |
| 60 | exact ((⋀[S]^n (S ⊗[R] M)).restrictScalars R).smul_mem r ih |
| 61 | |
| 62 | def powerAmbientMap (n : ℕ) : S ⊗[R] (⋀[R]^n M) →ₗ[S] ExteriorAlgebra S (S ⊗[R] M) := |
| 63 | (ExteriorAlgebraBaseChange.IntegralExteriorBaseChange.algebraEquiv R S M).toLinearMap.comp ((⋀[R]^n M).subtype.baseChange S) |
| 64 | |
| 65 | theorem powerAmbientMap_mem (n : ℕ) (x : S ⊗[R] (⋀[R]^n M)) : |
| 66 | powerAmbientMap R S M n x ∈ ⋀[S]^n (S ⊗[R] M) := by |
| 67 | induction x using TensorProduct.inductionOn with |
| 68 | | add x y hx hy => rw [map_add]; exact Submodule.add_mem _ hx hy |
| 69 | | tmul s ω => exact algebraEquiv_tmul_power_mem R S M n s ω |
| 70 | |
| 71 | def powerScalarMap (n : ℕ) : S ⊗[R] (⋀[R]^n M) →ₗ[S] ⋀[S]^n (S ⊗[R] M) := |
| 72 | (powerAmbientMap R S M n).codRestrict _ (powerAmbientMap_mem R S M n) |
| 73 | |
| 74 | theorem powerScalarMap_injective [Module.Flat R S] (n : ℕ) : |
| 75 | Function.Injective (powerScalarMap R S M n) := by |
| 76 | intro x y h |
| 77 | apply Module.Flat.lTensor_preserves_injective_linearMap |
| 78 | (M := S) (⋀[R]^n M).subtype Subtype.val_injective |
| 79 | apply (ExteriorAlgebraBaseChange.IntegralExteriorBaseChange.algebraEquiv R S M).injective |
| 80 | exact congrArg Subtype.val h |
| 81 | |
| 82 | end |
| 83 | |
| 84 | /-! Every exterior power commutes with flat scalar extension over arbitrary commutative rings. -/ |
| 85 | |
| 86 | open scoped TensorProduct |
| 87 | |
| 88 | variable (R S M : Type*) [CommRing R] [CommRing S] [AddCommGroup M] |
| 89 | [Algebra R S] [Module R M] |
| 90 | |
| 91 | theorem one_tmul_span : |
| 92 | Submodule.span S (Set.range (fun m : M => (1 : S) ⊗ₜ[R] m)) = ⊤ := by |
| 93 | apply top_unique |
| 94 | intro x _ |
| 95 | induction x using TensorProduct.inductionOn with |
| 96 | | add x y hx hy => exact Submodule.add_mem _ (hx trivial) (hy trivial) |
| 97 | | tmul s m => |
| 98 | rw [TensorProduct.tmul_eq_smul_one_tmul] |
| 99 | exact Submodule.smul_mem _ s (Submodule.subset_span (Set.mem_range_self m)) |
| 100 | |
| 101 | theorem powerScalarMap_tmul_ιMulti (n : ℕ) (s : S) (v : Fin n → M) : |
| 102 | powerScalarMap R S M n (s ⊗ₜ[R] exteriorPower.ιMulti R n v) = |
| 103 | s • exteriorPower.ιMulti S n (fun i => 1 ⊗ₜ[R] v i) := by |
| 104 | apply Subtype.ext |
| 105 | exact algebraEquiv_tmul_ιMulti R S M n s v |
| 106 | |
| 107 | theorem powerScalarMap_surjective (n : ℕ) : Function.Surjective (powerScalarMap R S M n) := by |
| 108 | apply LinearMap.range_eq_top.mp |
| 109 | apply top_unique |
| 110 | rw [← exteriorPower.ιMulti_span_of_span S n (S ⊗[R] M) (one_tmul_span R S M)] |
| 111 | apply Submodule.span_le.mpr |
| 112 | rintro _ ⟨v, hv, rfl⟩ |
| 113 | choose m hm using (fun i => hv (Set.mem_range_self i)) |
| 114 | refine ⟨1 ⊗ₜ[R] exteriorPower.ιMulti R n m, ?_⟩ |
| 115 | rw [powerScalarMap_tmul_ιMulti, one_smul] |
| 116 | exact congrArg (exteriorPower.ιMulti S n) (funext hm) |
| 117 | |
| 118 | def powerEquiv [Module.Flat R S] (n : ℕ) : |
| 119 | S ⊗[R] (⋀[R]^n M) ≃ₗ[S] ⋀[S]^n (S ⊗[R] M) := |
| 120 | LinearEquiv.ofBijective (powerScalarMap R S M n) |
| 121 | ⟨powerScalarMap_injective R S M n, powerScalarMap_surjective R S M n⟩ |
| 122 | |
| 123 | theorem powerEquiv_tmul_ιMulti [Module.Flat R S] (n : ℕ) (s : S) (v : Fin n → M) : |
| 124 | powerEquiv R S M n (s ⊗ₜ[R] exteriorPower.ιMulti R n v) = |
| 125 | s • exteriorPower.ιMulti S n (fun i => 1 ⊗ₜ[R] v i) := |
| 126 | powerScalarMap_tmul_ιMulti R S M n s v |
| 127 | |
| 128 | end |
| 129 | |
| 130 | end OAI.NumberTheory.PadicHodge.GeometricComparison.Integral.ExteriorPowerBaseChange.IntegralExteriorBaseChange |