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.GroupSchemes.ConstantPoints |
| 2 | import OAI.AlgebraicGeometry.GroupSchemes.PointSpecialization |
| 3 | import OAI.AlgebraicGeometry.GroupSchemes.SplitAlgebra |
| 4 | |
| 5 | /-! # Etale Point Functor -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.GroupSchemes.EtalePointFunctor.Finite.FiniteCommGroupScheme |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! The full point functor of a split finite group scheme is its locally constant point functor. -/ |
| 12 | |
| 13 | open _root_.CategoryTheory _root_.AlgebraicGeometry Opposite WithConv _root_.CategoryTheory.MonObj |
| 14 | open OAI.AlgebraicGeometry.GroupSchemes.ConstantPoints.FiniteEtale |
| 15 | |
| 16 | universe u |
| 17 | variable {k : Type u} [Field k] [IsAlgClosed k] |
| 18 | |
| 19 | local instance (G : FiniteEtale.FiniteCommGroupScheme k) : Fintype G.rationalPoints := Fintype.ofFinite _ |
| 20 | |
| 21 | /-- Evaluation at all rational points is the canonical split coordinate algebra. -/ |
| 22 | def _root_.OAI.AlgebraicGeometry.GroupSchemes.FiniteEtale.FiniteCommGroupScheme.etaleCoordinateEquiv (G : FiniteEtale.FiniteCommGroupScheme k) [Algebra.IsFiniteSplit k G.algebra] : |
| 23 | G.algebra ≃ₐ[k] (G.rationalPoints → k) := |
| 24 | SplitAlgebra.FiniteEtale.evaluationEquiv k G.algebra G.rationalPointsEquivAlgHom |
| 25 | G.rationalPointsEquivAlgHom.injective |
| 26 | (by simpa only [Nat.card_eq_fintype_card] using G.rationalPoints_card) |
| 27 | |
| 28 | theorem _root_.OAI.AlgebraicGeometry.GroupSchemes.FiniteEtale.FiniteCommGroupScheme.etaleCoordinateEquiv_apply (G : FiniteEtale.FiniteCommGroupScheme k) |
| 29 | [Algebra.IsFiniteSplit k G.algebra] (a : G.algebra) (x : G.rationalPoints) : |
| 30 | G.etaleCoordinateEquiv a x = G.rationalPointsEquivAlgHom x a := rfl |
| 31 | |
| 32 | /-- All affine points of the split group, as locally constant rational-point functions. -/ |
| 33 | def _root_.OAI.AlgebraicGeometry.GroupSchemes.FiniteEtale.FiniteCommGroupScheme.etalePointsEquiv (G : FiniteEtale.FiniteCommGroupScheme k) [Algebra.IsFiniteSplit k G.algebra] |
| 34 | (R : CommAlgCat.{u} k) : |
| 35 | (FiniteEtale.affine k R ⟶ G.scheme) ≃ LocallyConstant (PrimeSpectrum R) G.rationalPoints := |
| 36 | ((G.coordinatePoints R).toEquiv.symm.trans (WithConv.equiv _)).trans |
| 37 | ((G.etaleCoordinateEquiv.arrowCongr (AlgEquiv.refl : R ≃ₐ[k] R)).trans (ConstantPoints.FiniteEtale.constantPointsEquiv k)) |
| 38 | |
| 39 | theorem _root_.OAI.AlgebraicGeometry.GroupSchemes.FiniteEtale.FiniteCommGroupScheme.etalePointsEquiv_coordinate (G : FiniteEtale.FiniteCommGroupScheme k) |
| 40 | [Algebra.IsFiniteSplit k G.algebra] (R : CommAlgCat.{u} k) (f : G.algebra →ₐ[k] R) : |
| 41 | G.etalePointsEquiv R (G.coordinatePoints R (toConv f)) = |
| 42 | ConstantPoints.FiniteEtale.constantPointsEquiv k (f.comp G.etaleCoordinateEquiv.symm.toAlgHom) := by |
| 43 | change ConstantPoints.FiniteEtale.constantPointsEquiv k |
| 44 | ((G.etaleCoordinateEquiv.arrowCongr (AlgEquiv.refl : R ≃ₐ[k] R)) |
| 45 | (((G.coordinatePoints R).symm (G.coordinatePoints R (toConv f))).ofConv)) = _ |
| 46 | rw [MulEquiv.symm_apply_apply] |
| 47 | rfl |
| 48 | |
| 49 | /-- The locally constant description is the group-valued specialization at each prime. -/ |
| 50 | theorem _root_.OAI.AlgebraicGeometry.GroupSchemes.FiniteEtale.FiniteCommGroupScheme.etalePointsEquiv_coordinate_prime (G : FiniteEtale.FiniteCommGroupScheme k) |
| 51 | [Algebra.IsFiniteSplit k G.algebra] (R : CommAlgCat.{u} k) (P : PrimeSpectrum R) |
| 52 | (f : G.algebra →ₐ[k] R) : |
| 53 | G.etalePointsEquiv R (G.coordinatePoints R (toConv f)) P = |
| 54 | G.pointAtPrime R P (G.coordinatePoints R (toConv f)) := by |
| 55 | classical |
| 56 | rw [FiniteEtale.FiniteCommGroupScheme.etalePointsEquiv_coordinate] |
| 57 | let y := G.pointAtPrime R P (G.coordinatePoints R (toConv f)) |
| 58 | apply (ConstantPoints.FiniteEtale.constantPointsEquiv_eq_iff k (f.comp G.etaleCoordinateEquiv.symm.toAlgHom) P y).mpr |
| 59 | let t := G.etaleCoordinateEquiv.symm (Pi.single y (1 : k)) |
| 60 | have ht : G.rationalPointsEquivAlgHom y t = 1 := by |
| 61 | have h := congrFun (G.etaleCoordinateEquiv.apply_symm_apply (Pi.single y (1 : k))) y |
| 62 | change G.rationalPointsEquivAlgHom y t = (Pi.single y (1 : k) : G.rationalPoints → k) y at h |
| 63 | simpa only [Pi.single_eq_same] using h |
| 64 | have he := AlgHom.congr_fun (G.pointAtPrime_coordinates R P f) t |
| 65 | have hmod : Ideal.Quotient.mk P.asIdeal (f t) = 1 := by |
| 66 | change Ideal.Quotient.mk P.asIdeal (f t) = algebraMap k (R ⧸ P.asIdeal) |
| 67 | (G.rationalPointsEquivAlgHom y t) at he |
| 68 | simpa only [ht, map_one] using he |
| 69 | intro hm |
| 70 | change f t ∈ P.asIdeal at hm |
| 71 | exact zero_ne_one ((Ideal.Quotient.eq_zero_iff_mem.mpr hm).symm.trans hmod) |
| 72 | |
| 73 | theorem _root_.OAI.AlgebraicGeometry.GroupSchemes.FiniteEtale.FiniteCommGroupScheme.etalePointsEquiv_prime (G : FiniteEtale.FiniteCommGroupScheme k) |
| 74 | [Algebra.IsFiniteSplit k G.algebra] (R : CommAlgCat.{u} k) (P : PrimeSpectrum R) |
| 75 | (x : FiniteEtale.affine k R ⟶ G.scheme) : G.etalePointsEquiv R x P = G.pointAtPrime R P x := by |
| 76 | let f : G.algebra →ₐ[k] R := ((G.coordinatePoints R).symm x).ofConv |
| 77 | have hf : G.coordinatePoints R (toConv f) = x := (G.coordinatePoints R).apply_symm_apply x |
| 78 | rw [← hf] |
| 79 | exact G.etalePointsEquiv_coordinate_prime R P f |
| 80 | |
| 81 | /-- The all-affine locally constant description preserves the original geometric group law. -/ |
| 82 | def _root_.OAI.AlgebraicGeometry.GroupSchemes.FiniteEtale.FiniteCommGroupScheme.etalePointsMulEquiv (G : FiniteEtale.FiniteCommGroupScheme k) [Algebra.IsFiniteSplit k G.algebra] |
| 83 | (R : CommAlgCat.{u} k) : |
| 84 | (FiniteEtale.affine k R ⟶ G.scheme) ≃* LocallyConstant (PrimeSpectrum R) G.rationalPoints where |
| 85 | __ := G.etalePointsEquiv R |
| 86 | map_mul' x y := by |
| 87 | apply LocallyConstant.ext |
| 88 | intro P |
| 89 | change G.etalePointsEquiv R (x * y) P = |
| 90 | G.etalePointsEquiv R x P * G.etalePointsEquiv R y P |
| 91 | rw [FiniteEtale.FiniteCommGroupScheme.etalePointsEquiv_prime, FiniteEtale.FiniteCommGroupScheme.etalePointsEquiv_prime, FiniteEtale.FiniteCommGroupScheme.etalePointsEquiv_prime] |
| 92 | exact (G.pointAtPrime R P).map_mul x y |
| 93 | |
| 94 | /-- The all-affine group equivalence is natural in the test algebra. -/ |
| 95 | theorem _root_.OAI.AlgebraicGeometry.GroupSchemes.FiniteEtale.FiniteCommGroupScheme.etalePoints_naturality (G : FiniteEtale.FiniteCommGroupScheme k) [Algebra.IsFiniteSplit k G.algebra] |
| 96 | {R S : CommAlgCat.{u} k} (a : R ⟶ S) (x : FiniteEtale.affine k R ⟶ G.scheme) : |
| 97 | G.etalePointsMulEquiv S ((G.points.map a) x) = |
| 98 | (G.etalePointsMulEquiv R x).comap |
| 99 | ⟨PrimeSpectrum.comap a.hom.toRingHom, PrimeSpectrum.continuous_comap _⟩ := by |
| 100 | let f : G.algebra →ₐ[k] R := ((G.coordinatePoints R).symm x).ofConv |
| 101 | have hf : G.coordinatePoints R (toConv f) = x := (G.coordinatePoints R).apply_symm_apply x |
| 102 | rw [← hf] |
| 103 | change G.etalePointsEquiv S ((algSpec (CommRingCat.of k)).map a.op ≫ |
| 104 | G.coordinatePoints R (toConv f)) = (G.etalePointsEquiv R (G.coordinatePoints R (toConv f))).comap _ |
| 105 | rw [← G.coordinatePoints_precomp a f] |
| 106 | exact (G.etalePointsEquiv_coordinate S (a.hom.comp f)).trans |
| 107 | ((ConstantPoints.FiniteEtale.constantPointsEquiv_naturality k a.hom (f.comp G.etaleCoordinateEquiv.symm.toAlgHom)).trans |
| 108 | (congrArg (fun z : LocallyConstant (PrimeSpectrum R) G.rationalPoints => z.comap |
| 109 | ⟨PrimeSpectrum.comap a.hom.toRingHom, PrimeSpectrum.continuous_comap _⟩) |
| 110 | (G.etalePointsEquiv_coordinate R f).symm)) |
| 111 | |
| 112 | /-- The locally constant point description also respects geometric morphisms. -/ |
| 113 | theorem _root_.OAI.AlgebraicGeometry.GroupSchemes.FiniteEtale.FiniteCommGroupScheme.etalePoints_postcomp {G H : FiniteEtale.FiniteCommGroupScheme k} |
| 114 | [Algebra.IsFiniteSplit k G.algebra] [Algebra.IsFiniteSplit k H.algebra] |
| 115 | (h : G.scheme ⟶ H.scheme) (R : CommAlgCat.{u} k) (x : FiniteEtale.affine k R ⟶ G.scheme) : |
| 116 | H.etalePointsMulEquiv R (x ≫ h) = |
| 117 | (G.etalePointsMulEquiv R x).map (fun y => y ≫ h) := by |
| 118 | apply LocallyConstant.ext |
| 119 | intro P |
| 120 | change H.etalePointsEquiv R (x ≫ h) P = G.etalePointsEquiv R x P ≫ h |
| 121 | rw [FiniteEtale.FiniteCommGroupScheme.etalePointsEquiv_prime, FiniteEtale.FiniteCommGroupScheme.etalePointsEquiv_prime] |
| 122 | exact FiniteEtale.FiniteCommGroupScheme.pointAtPrime_postcomp h R P x |
| 123 | |
| 124 | end |
| 125 | |
| 126 | end OAI.AlgebraicGeometry.GroupSchemes.EtalePointFunctor.Finite.FiniteCommGroupScheme |