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.ArithmeticGeometry.OrdinaryLocus.Openness.BaseChange |
| 2 | import Mathlib.CategoryTheory.Conj |
| 3 | |
| 4 | /-! # Open Base Change -/ |
| 5 | |
| 6 | namespace OAI.ArithmeticGeometry.OrdinaryLocus.Openness.OpenBaseChange.Construction |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Geometric points and torsion counts after restricting the base to an open subscheme. -/ |
| 11 | |
| 12 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 13 | open scoped _root_.CategoryTheory.MonObj _root_.CategoryTheory.Obj |
| 14 | |
| 15 | /-- The geometric point of an open subscheme is isomorphic, over the original |
| 16 | base, to the geometric point specified at its image. -/ |
| 17 | def geometricPointOpenIso |
| 18 | {S T : Scheme} (i : T ⟶ S) [IsOpenImmersion i] (t : T) : |
| 19 | (Over.map i).obj (DefinitionsTorsion.geometricPoint T t) ≅ DefinitionsTorsion.geometricPoint S (i t) := by |
| 20 | let e₀ := (asIso (i.residueFieldMap t)).commRingCatIsoToRingEquiv |
| 21 | let e := IsAlgClosure.equivOfEquiv |
| 22 | (AlgebraicClosure (S.residueField (i t))) (AlgebraicClosure (T.residueField t)) e₀ |
| 23 | refine Over.isoMk (Scheme.Spec.mapIso e.toCommRingCatIso.op) ?_ |
| 24 | have he : CommRingCat.ofHom (algebraMap (S.residueField (i t)) |
| 25 | (AlgebraicClosure (S.residueField (i t)))) ≫ CommRingCat.ofHom e.toRingHom = |
| 26 | i.residueFieldMap t ≫ CommRingCat.ofHom |
| 27 | (algebraMap (T.residueField t) (AlgebraicClosure (T.residueField t))) := by |
| 28 | ext x |
| 29 | exact IsAlgClosure.equivOfEquiv_algebraMap _ _ e₀ x |
| 30 | change Spec.map (CommRingCat.ofHom e.toRingHom) ≫ |
| 31 | (Spec.map (CommRingCat.ofHom (algebraMap (S.residueField (i t)) |
| 32 | (AlgebraicClosure (S.residueField (i t))))) ≫ S.fromSpecResidueField (i t)) = |
| 33 | (Spec.map (CommRingCat.ofHom (algebraMap (T.residueField t) |
| 34 | (AlgebraicClosure (T.residueField t)))) ≫ T.fromSpecResidueField t) ≫ i |
| 35 | have he' : Spec.map (CommRingCat.ofHom e.toRingHom) ≫ |
| 36 | Spec.map (CommRingCat.ofHom (algebraMap (S.residueField (i t)) |
| 37 | (AlgebraicClosure (S.residueField (i t))))) = |
| 38 | Spec.map (CommRingCat.ofHom (algebraMap (T.residueField t) |
| 39 | (AlgebraicClosure (T.residueField t)))) ≫ Spec.map (i.residueFieldMap t) := |
| 40 | (Spec.map_comp _ _).symm.trans ((congrArg Spec.map he).trans (Spec.map_comp _ _)) |
| 41 | exact (Category.assoc _ _ _).symm.trans |
| 42 | ((congrArg (fun a => a ≫ S.fromSpecResidueField (i t)) he').trans |
| 43 | ((Category.assoc _ _ _).trans |
| 44 | ((congrArg (fun a => Spec.map (CommRingCat.ofHom |
| 45 | (algebraMap (T.residueField t) (AlgebraicClosure (T.residueField t)))) ≫ a) |
| 46 | (i.SpecMap_residueFieldMap_fromSpecResidueField t)).trans |
| 47 | (Category.assoc _ _ _).symm))) |
| 48 | |
| 49 | /-- Geometric points of a base restriction are the original geometric points. -/ |
| 50 | def geometricPointsOpenEquiv |
| 51 | {S T : Scheme} (i : T ⟶ S) [IsOpenImmersion i] (A : Over S) (t : T) : |
| 52 | (DefinitionsTorsion.geometricPoint T t ⟶ (Over.pullback i).obj A) ≃ |
| 53 | (DefinitionsTorsion.geometricPoint S (i t) ⟶ A) := |
| 54 | ((Over.mapPullbackAdj i).homEquiv (DefinitionsTorsion.geometricPoint T t) A).symm.trans |
| 55 | (Iso.homCongr (geometricPointOpenIso i t) (Iso.refl A)) |
| 56 | |
| 57 | theorem geometricPointCard_openBaseChange |
| 58 | {S T : Scheme} (i : T ⟶ S) [IsOpenImmersion i] (A : Over S) (t : T) : |
| 59 | Nat.card (DefinitionsTorsion.geometricPoint T t ⟶ (Over.pullback i).obj A) = |
| 60 | Nat.card (DefinitionsTorsion.geometricPoint S (i t) ⟶ A) := |
| 61 | Nat.card_congr (geometricPointsOpenEquiv i A t) |
| 62 | |
| 63 | /-- Actual geometric torsion cardinality is unchanged by restricting the base. -/ |
| 64 | theorem torsionPointCard_openBaseChange |
| 65 | {S T : Scheme} (i : T ⟶ S) [IsOpenImmersion i] (A : Over S) [GrpObj A] |
| 66 | (n : ℕ) (t : T) : |
| 67 | Nat.card {x : DefinitionsTorsion.geometricPoint T t ⟶ (Over.pullback i).obj A // x ^ n = 1} = |
| 68 | Nat.card {x : DefinitionsTorsion.geometricPoint S (i t) ⟶ A // x ^ n = 1} := by |
| 69 | rw [← DefinitionsTorsion.Construction.geometric_torsion_card, ← DefinitionsTorsion.Construction.geometric_torsion_card] |
| 70 | have h := Nat.card_congr (Iso.homCongr (Iso.refl (DefinitionsTorsion.geometricPoint T t)) |
| 71 | (BaseChange.Construction.torsionBaseChangeIso i A n)) |
| 72 | exact h.symm.trans (geometricPointCard_openBaseChange i (DefinitionsTorsion.Construction.torsionScheme A n) t) |
| 73 | |
| 74 | end |
| 75 | |
| 76 | end OAI.ArithmeticGeometry.OrdinaryLocus.Openness.OpenBaseChange.Construction |