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.Crystalline.Cohomology.FreeDivided.Basis |
| 2 | import Mathlib.LinearAlgebra.TensorProduct.Basis |
| 3 | import Mathlib.RingTheory.TensorProduct.Basic |
| 4 | import Mathlib.RingTheory.Localization.BaseChange |
| 5 | |
| 6 | /-! # Tensor Base Change -/ |
| 7 | |
| 8 | namespace OAI.AlgebraicGeometry.Crystalline.Cohomology.FreeDivided.TensorBaseChange.FreeDividedTensorBaseChange |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! |
| 13 | # Tensor base change and localization of actual free divided-power algebras |
| 14 | |
| 15 | Extending the coefficients of the actual free divided-power algebra agrees |
| 16 | with algebraic tensor base change. The proof uses its proved divided-monomial |
| 17 | basis over arbitrary rings. In particular coefficient localizations produce |
| 18 | the corresponding localizations of the actual divided-power algebra. |
| 19 | -/ |
| 20 | |
| 21 | open scoped TensorProduct |
| 22 | |
| 23 | open OAI.AlgebraicGeometry.Crystalline.Cohomology.Multivariable.DividedAlgebra.MultivariableDividedAlgebra |
| 24 | |
| 25 | universe u |
| 26 | |
| 27 | variable (R S σ : Type u) [CommRing R] [CommRing S] [Algebra R S] |
| 28 | |
| 29 | local notation "GR" => DividedPowerAlgebra R (σ →₀ R) |
| 30 | local notation "GS" => DividedPowerAlgebra S (σ →₀ S) |
| 31 | |
| 32 | def tensorMap : (S ⊗[R] GR) →ₐ[S] GS := |
| 33 | AlgHom.liftEquiv R S GR GS (Divided.AlgebraBaseChange.DividedAlgebraBaseChange.map R S σ) |
| 34 | |
| 35 | theorem tensorMap_tmul (s : S) (a : GR) : |
| 36 | tensorMap R S σ (s ⊗ₜ[R] a) = s • Divided.AlgebraBaseChange.DividedAlgebraBaseChange.map R S σ a := rfl |
| 37 | |
| 38 | def basisEquiv : (S ⊗[R] GR) ≃ₗ[S] GS := |
| 39 | ((FreeDivided.Basis.FreeDividedBasis.basis R σ).baseChange S).equiv (FreeDivided.Basis.FreeDividedBasis.basis S σ) (Equiv.refl _) |
| 40 | |
| 41 | theorem tensorMap_eq_basisEquiv : (tensorMap R S σ).toLinearMap = (basisEquiv R S σ).toLinearMap := by |
| 42 | apply ((FreeDivided.Basis.FreeDividedBasis.basis R σ).baseChange S).ext |
| 43 | intro d |
| 44 | have he := ((FreeDivided.Basis.FreeDividedBasis.basis R σ).baseChange S).equiv_apply d |
| 45 | (FreeDivided.Basis.FreeDividedBasis.basis S σ) (Equiv.refl _) |
| 46 | change tensorMap R S σ (((FreeDivided.Basis.FreeDividedBasis.basis R σ).baseChange S) d) = basisEquiv R S σ _ |
| 47 | rw [show basisEquiv R S σ (((FreeDivided.Basis.FreeDividedBasis.basis R σ).baseChange S) d) = |
| 48 | FreeDivided.Basis.FreeDividedBasis.basis S σ d from he, |
| 49 | Module.Basis.baseChange_apply, FreeDivided.Basis.FreeDividedBasis.basis_apply, tensorMap_tmul, |
| 50 | Divided.AlgebraBaseChange.DividedAlgebraBaseChange.map_monomial, one_smul, FreeDivided.Basis.FreeDividedBasis.basis_apply] |
| 51 | |
| 52 | def algebraEquiv : (S ⊗[R] GR) ≃ₐ[S] GS := |
| 53 | AlgEquiv.ofBijective (tensorMap R S σ) (by |
| 54 | change Function.Bijective (tensorMap R S σ).toLinearMap |
| 55 | rw [tensorMap_eq_basisEquiv] |
| 56 | exact (basisEquiv R S σ).bijective) |
| 57 | |
| 58 | theorem algebraEquiv_tmul (s : S) (a : GR) : |
| 59 | algebraEquiv R S σ (s ⊗ₜ[R] a) = s • Divided.AlgebraBaseChange.DividedAlgebraBaseChange.map R S σ a := |
| 60 | tensorMap_tmul R S σ s a |
| 61 | |
| 62 | instance coefficientAlgebra : Algebra GR GS := |
| 63 | (Divided.AlgebraBaseChange.DividedAlgebraBaseChange.map R S σ).toRingHom.toAlgebra |
| 64 | |
| 65 | attribute [local instance] Algebra.TensorProduct.rightAlgebra |
| 66 | |
| 67 | /-- Tensor base change also respects the original divided-power coefficient algebra. -/ |
| 68 | def rightEquiv : (S ⊗[R] GR) ≃ₐ[GR] GS where |
| 69 | __ := (algebraEquiv R S σ).toRingEquiv |
| 70 | commutes' a := by |
| 71 | change algebraEquiv R S σ (1 ⊗ₜ[R] a) = Divided.AlgebraBaseChange.DividedAlgebraBaseChange.map R S σ a |
| 72 | rw [algebraEquiv_tmul, one_smul] |
| 73 | |
| 74 | theorem isLocalization (M : Submonoid R) [IsLocalization M S] : |
| 75 | IsLocalization (Algebra.algebraMapSubmonoid GR M) GS := |
| 76 | IsLocalization.isLocalization_of_algEquiv (S := S ⊗[R] GR) _ (rightEquiv R S σ) |
| 77 | |
| 78 | end |
| 79 | |
| 80 | end OAI.AlgebraicGeometry.Crystalline.Cohomology.FreeDivided.TensorBaseChange.FreeDividedTensorBaseChange |