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.NumberTheory.PadicHodge.IntegralComparison.Frobenius.Geometry |
| 2 | import Mathlib.AlgebraicGeometry.Geometrically.Connected |
| 3 | |
| 4 | /-! # Fiber Map -/ |
| 5 | |
| 6 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.Geometric.FiberMap |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Actual maps of the original geometric fibers and their compatibility with the original scalar automorphisms. -/ |
| 11 | |
| 12 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry |
| 13 | |
| 14 | universe u |
| 15 | |
| 16 | open OAI.NumberTheory.PadicHodge.IntegralComparison.Frobenius.Geometry |
| 17 | |
| 18 | variable (k L : Type u) [Field k] [Field L] [Algebra k L] |
| 19 | {X Y : Scheme.{u}} (fX : X ⟶ Spec (CommRingCat.of k)) (fY : Y ⟶ Spec (CommRingCat.of k)) |
| 20 | (g : X ⟶ Y) (hg : g ≫ fY = fX) |
| 21 | |
| 22 | def map : Frobenius.Geometry.geometricFiber (L := L) fX ⟶ Frobenius.Geometry.geometricFiber (L := L) fY := |
| 23 | pullback.lift (pullback.fst fX (Spec.map (CommRingCat.ofHom (algebraMap k L))) ≫ g) |
| 24 | (pullback.snd fX (Spec.map (CommRingCat.ofHom (algebraMap k L)))) |
| 25 | ((Category.assoc _ _ _).trans ((congrArg (fun h => pullback.fst fX _ ≫ h) hg).trans pullback.condition)) |
| 26 | |
| 27 | theorem fst : FiberMap.map k L fX fY g hg ≫ pullback.fst fY (Spec.map (CommRingCat.ofHom (algebraMap k L))) = |
| 28 | pullback.fst fX (Spec.map (CommRingCat.ofHom (algebraMap k L))) ≫ g := pullback.lift_fst _ _ _ |
| 29 | |
| 30 | theorem snd : FiberMap.map k L fX fY g hg ≫ pullback.snd fY (Spec.map (CommRingCat.ofHom (algebraMap k L))) = |
| 31 | pullback.snd fX (Spec.map (CommRingCat.ofHom (algebraMap k L))) := pullback.lift_snd _ _ _ |
| 32 | |
| 33 | theorem isPullback : IsPullback (FiberMap.map k L fX fY g hg) |
| 34 | (pullback.fst fX (Spec.map (CommRingCat.ofHom (algebraMap k L)))) |
| 35 | (pullback.fst fY (Spec.map (CommRingCat.ofHom (algebraMap k L)))) g := by |
| 36 | refine .of_right (t := (IsPullback.of_hasPullback fY (Spec.map (CommRingCat.ofHom (algebraMap k L)))).flip) ?_ ?_ |
| 37 | · rw [FiberMap.snd, hg] |
| 38 | exact (IsPullback.of_hasPullback fX (Spec.map (CommRingCat.ofHom (algebraMap k L)))).flip |
| 39 | · exact FiberMap.fst k L fX fY g hg |
| 40 | |
| 41 | theorem proper [IsProper g] : IsProper (FiberMap.map k L fX fY g hg) := |
| 42 | MorphismProperty.of_isPullback (P := @IsProper) (isPullback k L fX fY g hg).flip inferInstance |
| 43 | |
| 44 | theorem geometricallyConnected [GeometricallyConnected g] : GeometricallyConnected (FiberMap.map k L fX fY g hg) := |
| 45 | MorphismProperty.of_isPullback (P := @GeometricallyConnected) (isPullback k L fX fY g hg).flip inferInstance |
| 46 | |
| 47 | theorem scalar_natural (σ : L ≃ₐ[k] L) : |
| 48 | FiberMap.map k L fX fY g hg ≫ (Frobenius.Geometry.geometricFiberIso fY σ).hom = |
| 49 | (Frobenius.Geometry.geometricFiberIso fX σ).hom ≫ FiberMap.map k L fX fY g hg := by |
| 50 | apply pullback.hom_ext |
| 51 | · rw [Category.assoc, Frobenius.Geometry.geometricFiberIso_hom_fst, Category.assoc, FiberMap.fst, |
| 52 | ← Category.assoc, Frobenius.Geometry.geometricFiberIso_hom_fst] |
| 53 | · rw [Category.assoc, Frobenius.Geometry.geometricFiberIso_hom_snd, ← Category.assoc, FiberMap.snd, |
| 54 | Category.assoc, FiberMap.snd, Frobenius.Geometry.geometricFiberIso_hom_snd] |
| 55 | |
| 56 | end |
| 57 | |
| 58 | end OAI.NumberTheory.PadicHodge.IntegralComparison.Geometric.FiberMap |