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.AbelianModuli.ReferenceFamily.Tensor.ScalarExtensionFiber |
| 2 | import OAI.AlgebraicGeometry.AbelianModuli.ReferenceFamily.Affine.ScalarExtensionMap |
| 3 | import OAI.AlgebraicGeometry.AbelianModuli.ReferenceFamily.CommonFiberMapIsomorphism |
| 4 | |
| 5 | /-! # Scalar Extension Product -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.AbelianModuli.ReferenceFamily.Tensor.ScalarExtensionProduct |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! A prescribed lift from the original affine algebra gives an |
| 12 | actual equivalence from its literal scalar extension to a smooth product. |
| 13 | The equivalence retains the chosen lift on every original function. -/ |
| 14 | |
| 15 | open scoped TensorProduct |
| 16 | |
| 17 | variable (R D k A T : Type) [CommRing R] [CommRing D] [CommRing k] [CommRing A] [CommRing T] |
| 18 | [Algebra R D] [Algebra R k] [Algebra D k] [IsScalarTower R D k] [Algebra R A] |
| 19 | [Algebra R T] [Algebra D T] [IsScalarTower R D T] [Algebra.FormallySmooth D T] |
| 20 | |
| 21 | local instance tensorScalarProduct_sourceRing : CommRing (D ⊗[R] A) := |
| 22 | Algebra.TensorProduct.instCommRing (R := R) (A := D) (B := A) |
| 23 | |
| 24 | local instance tensorScalarProduct_fiberRing : CommRing (k ⊗[R] A) := |
| 25 | Algebra.TensorProduct.instCommRing (R := R) (A := k) (B := A) |
| 26 | |
| 27 | attribute [local instance] Algebra.TensorProduct.rightAlgebra |
| 28 | |
| 29 | variable (hD : Function.Surjective (algebraMap D k)) |
| 30 | (hI : RingHom.ker (algebraMap D k) * RingHom.ker (algebraMap D k) = ⊥) |
| 31 | (eT : (T ⧸ (RingHom.ker (algebraMap D k)).map (algebraMap D T)) ≃ₐ[D] (k ⊗[R] A)) |
| 32 | (f : A →ₐ[R] T) |
| 33 | (hf : ∀ a, eT (Ideal.Quotient.mk ((RingHom.ker (algebraMap D k)).map (algebraMap D T)) (f a)) = |
| 34 | (1 : k) ⊗ₜ[R] a) |
| 35 | |
| 36 | def tensorScalarExtensionProductEquiv : (D ⊗[R] A) ≃ₐ[D] T := by |
| 37 | let eP := ScalarExtensionFiber.tensorScalarExtensionFiberQuotientEquiv R D k A hD |
| 38 | let qT : T →ₐ[D] (k ⊗[R] A) := |
| 39 | eT.toAlgHom.comp (Ideal.Quotient.mkₐ D ((RingHom.ker (algebraMap D k)).map (algebraMap D T))) |
| 40 | have H : qT.comp (Affine.ScalarExtensionMap.affineScalarExtensionMap R D A (D ⊗[R] A) T f) = |
| 41 | ScalarExtensionFiber.tensorScalarExtensionReduction R D k A := by |
| 42 | apply Affine.ScalarExtensionMap.affineScalarExtensionMap_reduction R D A (D ⊗[R] A) T (k ⊗[R] A) |
| 43 | intro a |
| 44 | change eT (Ideal.Quotient.mk _ (f a)) = algebraMap D k 1 ⊗ₜ[R] a |
| 45 | rw [map_one] |
| 46 | exact hf a |
| 47 | apply CommonFiberMapIsomorphism.commonFiberMapEquiv (RingHom.ker (algebraMap D k)) hI eP eT |
| 48 | (Affine.ScalarExtensionMap.affineScalarExtensionMap R D A (D ⊗[R] A) T f) |
| 49 | intro p |
| 50 | exact (AlgHom.congr_fun H p).trans (ScalarExtensionFiber.tensorScalarExtensionFiberQuotientEquiv_mk R D k A hD p).symm |
| 51 | |
| 52 | theorem tensorScalarExtensionProductEquiv_toAlgHom : |
| 53 | (tensorScalarExtensionProductEquiv R D k A T hD hI eT f hf).toAlgHom = |
| 54 | Affine.ScalarExtensionMap.affineScalarExtensionMap R D A (D ⊗[R] A) T f := rfl |
| 55 | |
| 56 | theorem tensorScalarExtensionProductEquiv_original (a : A) : |
| 57 | tensorScalarExtensionProductEquiv R D k A T hD hI eT f hf ((1 : D) ⊗ₜ[R] a) = f a := |
| 58 | Affine.ScalarExtensionMap.affineScalarExtensionMap_algebraMap R D A (D ⊗[R] A) T f a |
| 59 | |
| 60 | theorem tensorScalarExtensionProductEquiv_reduction (p : D ⊗[R] A) : |
| 61 | eT (Ideal.Quotient.mk ((RingHom.ker (algebraMap D k)).map (algebraMap D T)) |
| 62 | (tensorScalarExtensionProductEquiv R D k A T hD hI eT f hf p)) = |
| 63 | ScalarExtensionFiber.tensorScalarExtensionReduction R D k A p := by |
| 64 | let qT : T →ₐ[D] (k ⊗[R] A) := |
| 65 | eT.toAlgHom.comp (Ideal.Quotient.mkₐ D ((RingHom.ker (algebraMap D k)).map (algebraMap D T))) |
| 66 | have H : qT.comp (Affine.ScalarExtensionMap.affineScalarExtensionMap R D A (D ⊗[R] A) T f) = |
| 67 | ScalarExtensionFiber.tensorScalarExtensionReduction R D k A := by |
| 68 | apply Affine.ScalarExtensionMap.affineScalarExtensionMap_reduction R D A (D ⊗[R] A) T (k ⊗[R] A) |
| 69 | intro a |
| 70 | change eT (Ideal.Quotient.mk _ (f a)) = algebraMap D k 1 ⊗ₜ[R] a |
| 71 | rw [map_one] |
| 72 | exact hf a |
| 73 | exact AlgHom.congr_fun H p |
| 74 | |
| 75 | end |
| 76 | |
| 77 | end OAI.AlgebraicGeometry.AbelianModuli.ReferenceFamily.Tensor.ScalarExtensionProduct |