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 Mathlib.RingTheory.IsTensorProduct |
| 2 | |
| 3 | /-! # Scalar Extension Map -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.AbelianModuli.ReferenceFamily.Affine.ScalarExtensionMap |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! A map from the original affine family extends uniquely to its |
| 10 | actual scalar extension, preserving the new base algebra and its values |
| 11 | on the original regular functions. -/ |
| 12 | |
| 13 | variable (R D S P T : Type) [CommRing R] [CommRing D] [CommRing S] [CommRing P] [CommRing T] |
| 14 | [Algebra R D] [Algebra R S] [Algebra R P] [Algebra R T] |
| 15 | [Algebra D P] [Algebra D T] [Algebra S P] |
| 16 | [IsScalarTower R D P] [IsScalarTower R S P] [IsScalarTower R D T] |
| 17 | [Algebra.IsPushout R D S P] |
| 18 | |
| 19 | def affineScalarExtensionMap (f : S →ₐ[R] T) : P →ₐ[D] T where |
| 20 | __ := (Algebra.pushoutDesc P (IsScalarTower.toAlgHom R D T) f (fun _ _ => mul_comm _ _)).toRingHom |
| 21 | commutes' d := Algebra.pushoutDesc_left P (IsScalarTower.toAlgHom R D T) f (fun _ _ => mul_comm _ _) d |
| 22 | |
| 23 | theorem affineScalarExtensionMap_algebraMap (f : S →ₐ[R] T) (s : S) : |
| 24 | affineScalarExtensionMap R D S P T f (algebraMap S P s) = f s := |
| 25 | Algebra.pushoutDesc_right P (IsScalarTower.toAlgHom R D T) f (fun _ _ => mul_comm _ _) s |
| 26 | |
| 27 | theorem affineScalarExtensionMap_unique (f : S →ₐ[R] T) (g : P →ₐ[D] T) |
| 28 | (h : ∀ s : S, g (algebraMap S P s) = f s) : |
| 29 | g = affineScalarExtensionMap R D S P T f := by |
| 30 | have H : g.restrictScalars R = (affineScalarExtensionMap R D S P T f).restrictScalars R := by |
| 31 | apply Algebra.IsPushout.algHom_ext (R := R) (S := D) (R' := S) |
| 32 | · apply AlgHom.ext |
| 33 | intro s |
| 34 | exact (h s).trans (affineScalarExtensionMap_algebraMap R D S P T f s).symm |
| 35 | · apply AlgHom.ext |
| 36 | intro d |
| 37 | exact (g.commutes d).trans ((affineScalarExtensionMap R D S P T f).commutes d).symm |
| 38 | apply AlgHom.ext |
| 39 | intro p |
| 40 | exact AlgHom.congr_fun H p |
| 41 | |
| 42 | theorem affineScalarExtensionMap_reduction |
| 43 | (B : Type) [CommRing B] [Algebra R B] [Algebra D B] [IsScalarTower R D B] |
| 44 | (f : S →ₐ[R] T) (qP : P →ₐ[D] B) (qT : T →ₐ[D] B) |
| 45 | (h : ∀ s : S, qT (f s) = qP (algebraMap S P s)) : |
| 46 | qT.comp (affineScalarExtensionMap R D S P T f) = qP := by |
| 47 | let u := (qT.restrictScalars R).comp f |
| 48 | have hP : qP = affineScalarExtensionMap R D S P B u := |
| 49 | affineScalarExtensionMap_unique R D S P B u qP (fun s => (h s).symm) |
| 50 | have hT : qT.comp (affineScalarExtensionMap R D S P T f) = |
| 51 | affineScalarExtensionMap R D S P B u := by |
| 52 | apply affineScalarExtensionMap_unique R D S P B u |
| 53 | intro s |
| 54 | change qT (affineScalarExtensionMap R D S P T f (algebraMap S P s)) = qT (f s) |
| 55 | rw [affineScalarExtensionMap_algebraMap] |
| 56 | exact hT.trans hP.symm |
| 57 | |
| 58 | end |
| 59 | |
| 60 | end OAI.AlgebraicGeometry.AbelianModuli.ReferenceFamily.Affine.ScalarExtensionMap |