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.IntegralComparison.Koszul.DualFlatBaseChange |
| 2 | import OAI.NumberTheory.PadicHodge.IntegralComparison.Koszul.OrientedTopCohomology |
| 3 | |
| 4 | /-! # Coordinate Base Change -/ |
| 5 | |
| 6 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.Koszul.CoordinateBaseChange |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! The canonical flat scalar-extension comparison for the Koszul complex |
| 11 | on a fixed finite list of equations, with its original ordered coordinates. -/ |
| 12 | |
| 13 | open _root_.CategoryTheory _root_.HomologicalComplex |
| 14 | open scoped TensorProduct |
| 15 | |
| 16 | set_option backward.defeqAttrib.useBackward true |
| 17 | set_option backward.isDefEq.respectTransparency false |
| 18 | |
| 19 | universe u |
| 20 | variable (R S : Type u) [CommRing R] [CommRing S] [Algebra R S] |
| 21 | |
| 22 | open OAI.NumberTheory.PadicHodge.IntegralComparison.Exterior.KoszulComplex OAI.NumberTheory.PadicHodge.IntegralComparison.Exterior.ContractionBaseChange OAI.NumberTheory.PadicHodge.IntegralComparison.Koszul.GeneratorMatrix |
| 23 | |
| 24 | def linearIso (V W : Type u) [AddCommGroup V] [Module R V] |
| 25 | [AddCommGroup W] [Module R W] (s : Module.Dual R V) (t : Module.Dual R W) |
| 26 | (e : V ≃ₗ[R] W) (he : t.comp e.toLinearMap = s) : |
| 27 | Exterior.KoszulComplex.complex R V s ≅ Exterior.KoszulComplex.complex R W t where |
| 28 | hom := Exterior.KoszulComplex.map R V W s t e.toLinearMap he |
| 29 | inv := Exterior.KoszulComplex.map R W V t s e.symm.toLinearMap (by |
| 30 | ext x |
| 31 | have h := LinearMap.congr_fun he (e.symm x) |
| 32 | simpa using h.symm) |
| 33 | hom_inv_id := by |
| 34 | apply Hom.ext |
| 35 | funext n |
| 36 | apply ModuleCat.hom_ext |
| 37 | change (exteriorPower.map n e.symm.toLinearMap).comp |
| 38 | (exteriorPower.map n e.toLinearMap) = LinearMap.id |
| 39 | rw [← exteriorPower.map_comp] |
| 40 | simp |
| 41 | inv_hom_id := by |
| 42 | apply Hom.ext |
| 43 | funext n |
| 44 | apply ModuleCat.hom_ext |
| 45 | change (exteriorPower.map n e.toLinearMap).comp |
| 46 | (exteriorPower.map n e.symm.toLinearMap) = LinearMap.id |
| 47 | rw [← exteriorPower.map_comp] |
| 48 | simp |
| 49 | |
| 50 | def coordinate (n : ℕ) : S ⊗[R] (Fin n → R) ≃ₗ[S] (Fin n → S) := |
| 51 | ((Pi.basisFun R (Fin n)).baseChange S).equivFun |
| 52 | |
| 53 | theorem coordinate_tmul {n : ℕ} (a : S) (v : Fin n → R) (i : Fin n) : |
| 54 | coordinate R S n (a ⊗ₜ[R] v) i = a * algebraMap R S (v i) := by |
| 55 | change ((Pi.basisFun R (Fin n)).baseChange S).repr (a ⊗ₜ[R] v) i = _ |
| 56 | rw [Module.Basis.baseChange_repr_tmul] |
| 57 | simp [Algebra.smul_def, mul_comm] |
| 58 | |
| 59 | theorem equation_coordinate {n : ℕ} (s : Fin n → R) : |
| 60 | (GeneratorMatrix.equation S (algebraMap R S ∘ s)).comp (coordinate R S n).toLinearMap = |
| 61 | Exterior.ContractionBaseChange.coefficient R S (Fin n → R) (GeneratorMatrix.equation R s) := by |
| 62 | apply TensorProduct.AlgebraTensorModule.ext |
| 63 | intro a v |
| 64 | simp only [LinearMap.comp_apply, LinearEquiv.coe_coe, GeneratorMatrix.equation_apply, |
| 65 | coordinate_tmul, Exterior.ContractionBaseChange.coefficient_tmul, Function.comp_apply, map_sum, map_mul, |
| 66 | Finset.mul_sum] |
| 67 | apply Finset.sum_congr rfl |
| 68 | intro i _ |
| 69 | ring |
| 70 | |
| 71 | def coordinateKoszulIso {n : ℕ} (s : Fin n → R) : |
| 72 | Exterior.KoszulComplex.complex S (S ⊗[R] (Fin n → R)) (Exterior.ContractionBaseChange.coefficient R S _ (GeneratorMatrix.equation R s)) ≅ |
| 73 | OrientedTopCohomology.koszul S (algebraMap R S ∘ s) := |
| 74 | linearIso S _ _ _ _ (coordinate R S n) (equation_coordinate R S s) |
| 75 | |
| 76 | theorem coordinateKoszulIso_generator {n : ℕ} (s : Fin n → R) : |
| 77 | (coordinateKoszulIso R S s).hom.f n |
| 78 | (TopExteriorCoordinates.generator ((Pi.basisFun R (Fin n)).baseChange S)) = |
| 79 | TopExteriorCoordinates.generator (Pi.basisFun S (Fin n)) := by |
| 80 | change exteriorPower.map n (coordinate R S n).toLinearMap |
| 81 | (exteriorPower.ιMulti S n _) = exteriorPower.ιMulti S n _ |
| 82 | rw [exteriorPower.map_apply_ιMulti] |
| 83 | congr 1 |
| 84 | funext i |
| 85 | change coordinate R S n (((Pi.basisFun R (Fin n)).baseChange S) i) = _ |
| 86 | rw [Module.Basis.baseChange_apply] |
| 87 | ext j |
| 88 | rw [coordinate_tmul] |
| 89 | simp [Pi.basisFun_apply, Pi.single_apply] |
| 90 | |
| 91 | variable [Module.Flat R S] |
| 92 | |
| 93 | def iso {n : ℕ} (s : Fin n → R) : |
| 94 | ((FlatBaseChange.tensorFunctor R S).mapHomologicalComplex (.down ℕ)).obj |
| 95 | (OrientedTopCohomology.koszul R s) ≅ |
| 96 | OrientedTopCohomology.koszul S (algebraMap R S ∘ s) := |
| 97 | FlatBaseChange.iso R S _ (GeneratorMatrix.equation R s) ≪≫ coordinateKoszulIso R S s |
| 98 | |
| 99 | theorem iso_top_generator {n : ℕ} (s : Fin n → R) : |
| 100 | (iso R S s).hom.f n |
| 101 | (1 ⊗ₜ[R] TopExteriorCoordinates.generator (Pi.basisFun R (Fin n))) = |
| 102 | TopExteriorCoordinates.generator (Pi.basisFun S (Fin n)) := by |
| 103 | change (coordinateKoszulIso R S s).hom.f n |
| 104 | ((FlatBaseChange.iso R S _ (GeneratorMatrix.equation R s)).hom.f n _) = _ |
| 105 | rw [FlatBaseChange.iso_top_generator, coordinateKoszulIso_generator] |
| 106 | |
| 107 | end |
| 108 | |
| 109 | end OAI.NumberTheory.PadicHodge.IntegralComparison.Koszul.CoordinateBaseChange |