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.Picard.Homomorphisms.KernelScalar |
| 2 | import Mathlib.AlgebraicGeometry.Group.Affine |
| 3 | import Mathlib.RingTheory.HopfAlgebra.GroupLike |
| 4 | |
| 5 | /-! # Scalar Characters -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.Picard.Homomorphisms.ScalarCharacters |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! Multiplicative global functions on an affine group scheme are |
| 12 | group-like elements of its actual coordinate Hopf algebra. -/ |
| 13 | |
| 14 | open _root_.CategoryTheory _root_.AlgebraicGeometry Opposite |
| 15 | open scoped _root_.CategoryTheory.MonObj TensorProduct |
| 16 | |
| 17 | set_option backward.isDefEq.respectTransparency.types false |
| 18 | |
| 19 | namespace Construction |
| 20 | |
| 21 | universe u |
| 22 | |
| 23 | variable (k R : Type u) [CommRing k] [CommRing R] [Bialgebra k R] |
| 24 | |
| 25 | theorem specScalar_evaluation (s : Γ(Spec (.of R), ⊤)) |
| 26 | (T : Type u) [CommRing T] [Algebra k T] (a : WithConv (R →ₐ[k] T)) : |
| 27 | (Scheme.ΓSpecIso (.of T)).hom |
| 28 | ((Spec.mapMulEquiv (R := k) a).left.appTop s) = |
| 29 | a ((Scheme.ΓSpecIso (.of R)).hom s) := |
| 30 | ConcreteCategory.congr_hom (Scheme.ΓSpecIso_naturality |
| 31 | (CommRingCat.ofHom a.ofConv.toRingHom)) s |
| 32 | |
| 33 | variable (s : Γ(Spec (.of R), ⊤)) |
| 34 | variable (hone : ∀ (T : Over (Spec (.of k))), |
| 35 | (1 : T ⟶ (Spec (.of R)).asOver (Spec (.of k))).left.appTop s = 1) |
| 36 | variable (hmul : ∀ (T : Over (Spec (.of k))) |
| 37 | (a b : T ⟶ (Spec (.of R)).asOver (Spec (.of k))), |
| 38 | (a * b).left.appTop s = a.left.appTop s * b.left.appTop s) |
| 39 | |
| 40 | include hmul in |
| 41 | theorem multiplicativeScalar_convMul (T : Type u) [CommRing T] [Algebra k T] |
| 42 | (a b : WithConv (R →ₐ[k] T)) : |
| 43 | (a * b) ((Scheme.ΓSpecIso (.of R)).hom s) = |
| 44 | a ((Scheme.ΓSpecIso (.of R)).hom s) * b ((Scheme.ΓSpecIso (.of R)).hom s) := by |
| 45 | have hp : (Spec.mapMulEquiv (R := k) (a * b)).left.appTop s = |
| 46 | (Spec.mapMulEquiv (R := k) a).left.appTop s * |
| 47 | (Spec.mapMulEquiv (R := k) b).left.appTop s := |
| 48 | (congrArg (fun c => c.left.appTop s) |
| 49 | ((Spec.mapMulEquiv (R := k) (S := R) (T := T)).map_mul a b)).trans |
| 50 | (hmul _ _ _) |
| 51 | exact (specScalar_evaluation k R s T (a * b)).symm.trans |
| 52 | ((congrArg (fun z : Γ(Spec (.of T), ⊤) => (Scheme.ΓSpecIso (.of T)).hom z) hp).trans |
| 53 | ((map_mul (Scheme.ΓSpecIso (.of T)).hom.hom _ _).trans |
| 54 | (congrArg₂ (· * ·) (specScalar_evaluation k R s T a) (specScalar_evaluation k R s T b)))) |
| 55 | |
| 56 | include hone hmul in |
| 57 | def groupLikeOfMultiplicativeScalar : GroupLike k R := by |
| 58 | let r : R := (Scheme.ΓSpecIso (.of R)).hom s |
| 59 | refine ⟨r, ?_, ?_⟩ |
| 60 | · have hp : (Spec.mapMulEquiv (R := k) (S := R) (T := k) 1).left.appTop s = 1 := |
| 61 | (congrArg (fun c => c.left.appTop s) |
| 62 | (Spec.mapMulEquiv (R := k) (S := R) (T := k)).map_one).trans (hone _) |
| 63 | exact (specScalar_evaluation k R s k 1).symm.trans |
| 64 | ((congrArg (fun z : Γ(Spec (.of k), ⊤) => (Scheme.ΓSpecIso (.of k)).hom z) hp).trans |
| 65 | (map_one (Scheme.ΓSpecIso (.of k)).hom.hom)) |
| 66 | · let a : WithConv (R →ₐ[k] R ⊗[k] R) := WithConv.toConv Algebra.TensorProduct.includeLeft |
| 67 | let b : WithConv (R →ₐ[k] R ⊗[k] R) := WithConv.toConv Algebra.TensorProduct.includeRight |
| 68 | have hl : Algebra.TensorProduct.lift a.ofConv b.ofConv (fun _ _ => .all ..) = |
| 69 | AlgHom.id k (R ⊗[k] R) := by |
| 70 | apply AlgHom.toLinearMap_injective |
| 71 | apply TensorProduct.ext' |
| 72 | intro x y |
| 73 | simp [a, b] |
| 74 | have h := multiplicativeScalar_convMul k R s hmul (R ⊗[k] R) a b |
| 75 | rw [AlgHom.convMul_apply, hl] at h |
| 76 | change Coalgebra.comul r = (r ⊗ₜ[k] 1) * (1 ⊗ₜ[k] r) at h |
| 77 | simpa only [Algebra.TensorProduct.tmul_mul_tmul, mul_one, one_mul] using h |
| 78 | |
| 79 | variable {k R} |
| 80 | |
| 81 | theorem groupLikeOfMultiplicativeScalar_injective (s t : Γ(Spec (.of R), ⊤)) |
| 82 | (hsone htone) (hsmul htmul) |
| 83 | (h : groupLikeOfMultiplicativeScalar k R s (hone := hsone) (hmul := hsmul) = |
| 84 | groupLikeOfMultiplicativeScalar k R t (hone := htone) (hmul := htmul)) : s = t := by |
| 85 | apply (ConcreteCategory.bijective_of_isIso (Scheme.ΓSpecIso (.of R)).hom).injective |
| 86 | exact congrArg GroupLike.val h |
| 87 | |
| 88 | end Construction |
| 89 | |
| 90 | end |
| 91 | |
| 92 | end OAI.AlgebraicGeometry.Picard.Homomorphisms.ScalarCharacters |