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.FiberDimensionCharts |
| 2 | |
| 3 | /-! # Fiber Dimension -/ |
| 4 | |
| 5 | namespace OAI.ArithmeticGeometry.OrdinaryLocus.Openness.FiberDimension.Construction |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! Local constancy of the dimension of the group fibers in Openness. -/ |
| 10 | |
| 11 | open _root_.CategoryTheory _root_.AlgebraicGeometry MonoidalCategory MonObj |
| 12 | open scoped _root_.CategoryTheory.MonObj _root_.CategoryTheory.Obj |
| 13 | |
| 14 | variable {S : Scheme} (A : Over S) [GrpObj A] [IsCommMonObj A] |
| 15 | [Smooth A.hom] [IsProper A.hom] [GeometricallyConnected A.hom] |
| 16 | |
| 17 | /-- Fiber dimension is locally constant for the group schemes in Openness. -/ |
| 18 | theorem isLocallyConstant_fiberKrullDim : |
| 19 | IsLocallyConstant (fun s : S => topologicalKrullDim (A.hom.fiber s)) := by |
| 20 | apply (IsLocallyConstant.iff_exists_open _).mpr |
| 21 | intro s |
| 22 | let x : A.left := η[A].left s |
| 23 | have hx : A.hom x = s := by |
| 24 | change (η[A].left ≫ A.hom) s = s |
| 25 | simp |
| 26 | obtain ⟨n, U, V, _, _, hxV, e, hn⟩ := SmoothDimensionCharts.Construction.exists_smoothOfRelativeDimension_chart A.hom x |
| 27 | let B : Over S := Over.mk (V.ι ≫ A.hom) |
| 28 | let i : B ⟶ A := Over.homMk V.ι |
| 29 | have : IsOpenImmersion i.left := inferInstanceAs (IsOpenImmersion V.ι) |
| 30 | have : Smooth B.hom := inferInstanceAs (Smooth (V.ι ≫ A.hom)) |
| 31 | have : SmoothOfRelativeDimension n B.hom := by |
| 32 | change SmoothOfRelativeDimension n (V.ι ≫ A.hom) |
| 33 | rw [← Scheme.Hom.resLE_comp_ι A.hom e] |
| 34 | have : SmoothOfRelativeDimension n (A.hom.resLE U V e) := hn |
| 35 | exact inferInstanceAs (SmoothOfRelativeDimension (n + 0) (A.hom.resLE U V e ≫ U.ι)) |
| 36 | have hs : s ∈ Set.range B.hom := ⟨⟨x, hxV⟩, hx⟩ |
| 37 | refine ⟨Set.range B.hom, B.hom.isOpenMap.isOpen_range, hs, ?_⟩ |
| 38 | intro t ht |
| 39 | exact (FiberDimensionCharts.Construction.dimension_fiber_of_smooth_chart A B i n t ht).trans |
| 40 | (FiberDimensionCharts.Construction.dimension_fiber_of_smooth_chart A B i n s hs).symm |
| 41 | |
| 42 | /-- The natural-number dimension of a fiber, agreeing with the specification. -/ |
| 43 | def fiberDimension (s : S) : ℕ := (GeometricDimension.Construction.exists_nat_dimension_fiber_group A s).choose |
| 44 | |
| 45 | theorem fiberDimension_spec (s : S) : |
| 46 | topologicalKrullDim (A.hom.fiber s) = (fiberDimension A s : WithBot ℕ∞) := |
| 47 | (GeometricDimension.Construction.exists_nat_dimension_fiber_group A s).choose_spec |
| 48 | |
| 49 | /-- The natural-number fiber dimension is locally constant. -/ |
| 50 | theorem isLocallyConstant_fiberDimension : IsLocallyConstant (fiberDimension A) := by |
| 51 | apply (IsLocallyConstant.iff_exists_open _).mpr |
| 52 | intro s |
| 53 | obtain ⟨U, hU, hs, hconst⟩ := (isLocallyConstant_fiberKrullDim A).exists_open s |
| 54 | refine ⟨U, hU, hs, fun t ht => ?_⟩ |
| 55 | have h := hconst t ht |
| 56 | rw [fiberDimension_spec, fiberDimension_spec] at h |
| 57 | exact_mod_cast h |
| 58 | |
| 59 | end |
| 60 | |
| 61 | end OAI.ArithmeticGeometry.OrdinaryLocus.Openness.FiberDimension.Construction |