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.AbelianScheme.TateComparison.PELIsogenies |
| 2 | import Mathlib.NumberTheory.Padics.RingHoms |
| 3 | |
| 4 | /-! # Subgroups -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.AbelianScheme.TateComparison.Subgroups |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! |
| 11 | Subgroups of the actual abelian point functor, including integral split |
| 12 | eigenblocks and isogeny kernels. Finite etale representability below means |
| 13 | representation by an actual finite etale subgroup scheme with a monomorphic |
| 14 | inclusion. It asserts neither a PEL quotient nor a Hecke correspondence. |
| 15 | -/ |
| 16 | |
| 17 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 18 | open scoped _root_.CategoryTheory.MonObj |
| 19 | |
| 20 | universe u |
| 21 | |
| 22 | variable {S : Scheme.{u}} {g : ℕ} |
| 23 | |
| 24 | /-- A subgroup subfunctor of the actual functor of points of A. -/ |
| 25 | structure PointSubgroup (A : AbelianModuli.HilbertConstruction.Abelian.Schemes.AbelianScheme g S) where |
| 26 | atTest : ∀ T : Over S, Subgroup (T ⟶ A.scheme) |
| 27 | pullback_mem : ∀ {T U : Over S} (f : T ⟶ U) (x : U ⟶ A.scheme), |
| 28 | x ∈ atTest U → f ≫ x ∈ atTest T |
| 29 | |
| 30 | namespace PointSubgroup |
| 31 | |
| 32 | variable {A : AbelianModuli.HilbertConstruction.Abelian.Schemes.AbelianScheme g S} |
| 33 | |
| 34 | @[ext] |
| 35 | theorem ext {F G : PointSubgroup A} (h : ∀ T, F.atTest T = G.atTest T) : F = G := by |
| 36 | cases F |
| 37 | cases G |
| 38 | congr |
| 39 | exact funext h |
| 40 | |
| 41 | /-- The kernel subfunctor of a genuine group morphism. -/ |
| 42 | def kernel {B : AbelianModuli.HilbertConstruction.Abelian.Schemes.AbelianScheme g S} (f : A.scheme ⟶ B.scheme) [IsMonHom f] : |
| 43 | PointSubgroup A where |
| 44 | atTest T := (A.mapPoints B f T).ker |
| 45 | pullback_mem h x hx := by |
| 46 | change (h ≫ x) ≫ f = 1 |
| 47 | change x ≫ f = 1 at hx |
| 48 | rw [Category.assoc, hx, MonObj.comp_one] |
| 49 | |
| 50 | /-- Intersections retain their actual subgroup functor structure. -/ |
| 51 | def inf (F G : PointSubgroup A) : PointSubgroup A where |
| 52 | atTest T := F.atTest T ⊓ G.atTest T |
| 53 | pullback_mem f x hx := ⟨F.pullback_mem f x hx.1, G.pullback_mem f x hx.2⟩ |
| 54 | |
| 55 | /-- Inverse image of a subgroup functor under an actual algebraic map. -/ |
| 56 | def comapHom {B : AbelianModuli.HilbertConstruction.Abelian.Schemes.AbelianScheme g S} (F : PointSubgroup B) |
| 57 | (f : A.scheme ⟶ B.scheme) [IsMonHom f] : PointSubgroup A where |
| 58 | atTest T := (F.atTest T).comap (A.mapPoints B f T) |
| 59 | pullback_mem h x hx := by |
| 60 | change (h ≫ x) ≫ f ∈ F.atTest _ |
| 61 | rw [Category.assoc] |
| 62 | exact F.pullback_mem h (x ≫ f) hx |
| 63 | |
| 64 | /-- Base change uses the proved group equivalence on actual test-scheme points. -/ |
| 65 | def pullback {S' : Scheme.{u}} (F : PointSubgroup A) (f : S' ⟶ S) : |
| 66 | PointSubgroup (A.pullback f) where |
| 67 | atTest T := (F.atTest ((Over.map f).obj T)).comap |
| 68 | (A.baseChangePointsMulEquiv f T).toMonoidHom |
| 69 | pullback_mem {T U} h x hx := by |
| 70 | change A.baseChangePointsMulEquiv f T (h ≫ x) ∈ F.atTest _ |
| 71 | have he : A.baseChangePointsMulEquiv f T (h ≫ x) = |
| 72 | (Over.map f).map h ≫ A.baseChangePointsMulEquiv f U x := by |
| 73 | apply Over.OverMorphism.ext |
| 74 | exact Category.assoc _ _ _ |
| 75 | rw [he] |
| 76 | exact F.pullback_mem ((Over.map f).map h) (A.baseChangePointsMulEquiv f U x) hx |
| 77 | |
| 78 | /-- The standard meaning of a finite etale subgroup scheme. The point |
| 79 | subfunctor is the image of a monomorphic algebraic group-scheme inclusion. -/ |
| 80 | def HasFiniteEtaleModel (F : PointSubgroup A) : Prop := |
| 81 | ∃ (H : CommGrp (Over S)) (i : H.X ⟶ A.scheme), |
| 82 | IsMonHom i ∧ Mono i ∧ IsFinite H.X.hom ∧ Etale H.X.hom ∧ |
| 83 | ∀ (T : Over S) (x : T ⟶ A.scheme), |
| 84 | x ∈ F.atTest T ↔ ∃ h : T ⟶ H.X, h ≫ i = x |
| 85 | |
| 86 | /-- The geometric elementary-divisor type uses the genuine fiber subgroup. -/ |
| 87 | def HasGeometricType (F : PointSubgroup A) (q : ℕ) (a : Fin 3 → ℕ) : Prop := |
| 88 | ∀ (k : Type u) [Field k] [IsAlgClosed k] (t : Spec (.of k) ⟶ S), |
| 89 | Nonempty (F.atTest (Over.mk t) ≃* Multiplicative (∀ i : Fin 3, ZMod (q ^ a i))) |
| 90 | |
| 91 | end PointSubgroup |
| 92 | |
| 93 | variable {R : Type u} [CommRing R] {N q : ℕ} [Fact q.Prime] |
| 94 | (A : PEL.PELFamilyData R g N S) |
| 95 | |
| 96 | /-- The chosen split q^h-torsion block is an eigensubgroup of the actual |
| 97 | integral action. The local character determines scalars modulo q^h. -/ |
| 98 | def splitBlock (χ : R →+* ℤ_[q]) (h : ℕ) : PointSubgroup A.abelian where |
| 99 | atTest T := { |
| 100 | carrier := {x | x ^ (q ^ h) = 1 ∧ ∀ b : R, |
| 101 | x ≫ End.endSchemeMap A.abelian.scheme (A.action b) = |
| 102 | x ^ (PadicInt.toZModPow h (χ b)).val} |
| 103 | one_mem' := by |
| 104 | refine ⟨one_pow _, ?_⟩ |
| 105 | intro b |
| 106 | rw [MonObj.one_comp, one_pow] |
| 107 | mul_mem' := by |
| 108 | intro x y hx hy |
| 109 | refine ⟨by rw [mul_pow, hx.1, hy.1, mul_one], ?_⟩ |
| 110 | intro b |
| 111 | rw [MonObj.mul_comp, hx.2 b, hy.2 b, mul_pow] |
| 112 | inv_mem' := by |
| 113 | intro x hx |
| 114 | refine ⟨by rw [inv_pow, hx.1, inv_one], ?_⟩ |
| 115 | intro b |
| 116 | rw [GrpObj.inv_comp, hx.2 b, inv_pow] } |
| 117 | pullback_mem f x hx := by |
| 118 | refine ⟨?_, ?_⟩ |
| 119 | · rw [← MonObj.comp_pow, hx.1, MonObj.comp_one] |
| 120 | · intro b |
| 121 | rw [Category.assoc, hx.2 b, MonObj.comp_pow] |
| 122 | |
| 123 | /-- Independent chosen-side finite etale subgroup choices. Their targets |
| 124 | and quotient polarizations are not part of this type. -/ |
| 125 | def KernelChoices {s : ℕ} (χ : Fin s → R →+* ℤ_[q]) (h : ℕ) |
| 126 | (a : Fin s → Fin 3 → ℕ) := |
| 127 | {F : Fin s → PointSubgroup A.abelian // ∀ v, |
| 128 | (F v).HasFiniteEtaleModel ∧ |
| 129 | (∀ T, (F v).atTest T ≤ (splitBlock A (χ v) h).atTest T) ∧ |
| 130 | (F v).HasGeometricType q (a v)} |
| 131 | |
| 132 | end |
| 133 | |
| 134 | end OAI.AlgebraicGeometry.AbelianScheme.TateComparison.Subgroups |