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.Divisors.LineBundles.AffineSpace.SourceRank |
| 2 | import Mathlib.Topology.LocallyConstant.Basic |
| 3 | |
| 4 | /-! # Fiber Rank -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.Divisors.LineBundles.AffineBundle.FiberRank.Cycles |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | section |
| 11 | |
| 12 | /-! The fiber rank of an actual affine-space bundle is locally constant. |
| 13 | It is defined by geometric support dimensions, and every chart computes it. -/ |
| 14 | |
| 15 | open _root_.AlgebraicGeometry _root_.CategoryTheory |
| 16 | |
| 17 | variable {E X : Scheme.{0}} (p : E ⟶ X) [GeometricallyIntegral p] |
| 18 | (f : X ⟶ Foundations.Scheme.ProjectiveSpace.complexBase) |
| 19 | |
| 20 | def affineBundleFiberRank (x : X) : ℕ := |
| 21 | Foundations.Scheme.SupportDimension.supportTranscendenceDimension (irreducibleSetEquivPoints.symm (Integral.FiberGenericPoint.BundleCycles.integralFiberGenericPoint p x)) (p ≫ f) - |
| 22 | Foundations.Scheme.SupportDimension.supportTranscendenceDimension (irreducibleSetEquivPoints.symm x) f |
| 23 | |
| 24 | variable [AlgebraicGeometry.IsNoetherian X] [LocallyOfFiniteType f] |
| 25 | |
| 26 | theorem affineBundleFiberRank_openChart {U : Scheme.{0}} (i : U ⟶ X) [IsOpenImmersion i] |
| 27 | (ι : Type) [Finite ι] (j : AffineSpace ι U ⟶ E) [IsOpenImmersion j] |
| 28 | (hs : (AffineSpace ι U ↘ U) ≫ i = j ≫ p) (u : U) : |
| 29 | affineBundleFiberRank p f (i u) = Nat.card ι := by |
| 30 | let : AlgebraicGeometry.IsNoetherian U := Open.ImmersionNoetherian.BundleCycles.openImmersion_isNoetherian i |
| 31 | unfold affineBundleFiberRank |
| 32 | rw [← Integral.FiberOpen.BundleCycles.integralFiberGenericPoint_openSquare p (AffineSpace ι U ↘ U) i j hs u, |
| 33 | ImmersionDimension.BundleCycles.pointClosure_dimension_immersion j] |
| 34 | have he : j ≫ (p ≫ f) = (AffineSpace ι U ↘ U) ≫ (i ≫ f) := by |
| 35 | rw [← Category.assoc, ← hs, Category.assoc] |
| 36 | rw [he, LineBundles.AffineSpace.CycleGrading.BundleCycles.affineSpaceFiberGenericPoint_dimension, ImmersionDimension.BundleCycles.pointClosure_dimension_immersion i] |
| 37 | omega |
| 38 | |
| 39 | theorem affineBundleFiberRank_locallyConstant (h : Affine.SpaceChartBaseChange.BundleCycles.HasAffineSpaceCharts p) : |
| 40 | IsLocallyConstant (affineBundleFiberRank p f) := by |
| 41 | rw [IsLocallyConstant.iff_exists_open] |
| 42 | intro x |
| 43 | obtain ⟨U, i, ι, hι, j, hi, hj, hx, hs⟩ := h x |
| 44 | let := hι |
| 45 | let := hi |
| 46 | let := hj |
| 47 | refine ⟨i.opensRange, i.opensRange.isOpen, hx, ?_⟩ |
| 48 | obtain ⟨u, rfl⟩ := hx |
| 49 | rintro y ⟨v, rfl⟩ |
| 50 | rw [affineBundleFiberRank_openChart p f i ι j hs.w v, |
| 51 | affineBundleFiberRank_openChart p f i ι j hs.w u] |
| 52 | |
| 53 | theorem affineBundleFiberRank_eq_of_rank (r : ℕ) (h : LineBundles.AffineSpace.SourceRank.BundleCycles.HasAffineSpaceSourceChartsOfRank p r) (x : X) : |
| 54 | affineBundleFiberRank p f x = r := by |
| 55 | unfold affineBundleFiberRank |
| 56 | rw [LineBundles.AffineSpace.SourceRank.BundleCycles.affineSpaceSourceFiberGenericPoint_dimension p f r h] |
| 57 | omega |
| 58 | |
| 59 | theorem affineBundle_hasChartsOfRank_of_fiberRank (h : Affine.SpaceChartBaseChange.BundleCycles.HasAffineSpaceCharts p) (r : ℕ) |
| 60 | (hr : ∀ x : X, affineBundleFiberRank p f x = r) : LineBundles.AffineSpace.BundleRankZero.Cycles.HasAffineSpaceChartsOfRank p r := by |
| 61 | intro x |
| 62 | obtain ⟨U, i, ι, hι, j, hi, hj, hx, hs⟩ := h x |
| 63 | let := hι |
| 64 | let := hi |
| 65 | let := hj |
| 66 | refine ⟨U, i, ι, hι, j, hi, hj, hx, hs, ?_⟩ |
| 67 | obtain ⟨u, rfl⟩ := hx |
| 68 | exact (affineBundleFiberRank_openChart p f i ι j hs.w u).symm.trans (hr (i u)) |
| 69 | |
| 70 | theorem affineBundleFiberRank_finite (h : Affine.SpaceChartBaseChange.BundleCycles.HasAffineSpaceCharts p) : |
| 71 | (Set.range (affineBundleFiberRank p f)).Finite := |
| 72 | (affineBundleFiberRank_locallyConstant p f h).range_finite |
| 73 | |
| 74 | end |
| 75 | |
| 76 | /-! The generic fiber point adds the actual local fiber rank, without |
| 77 | requiring constant rank across different components. -/ |
| 78 | |
| 79 | open _root_.AlgebraicGeometry _root_.CategoryTheory _root_.TopologicalSpace |
| 80 | |
| 81 | theorem affineBundleFiberGenericPoint_dimension_varying {E X : Scheme.{0}} |
| 82 | [AlgebraicGeometry.IsNoetherian X] (p : E ⟶ X) [GeometricallyIntegral p] |
| 83 | (f : X ⟶ Foundations.Scheme.ProjectiveSpace.complexBase) [LocallyOfFiniteType f] (h : Affine.SpaceChartBaseChange.BundleCycles.HasAffineSpaceCharts p) (x : X) : |
| 84 | Foundations.Scheme.SupportDimension.supportTranscendenceDimension (irreducibleSetEquivPoints.symm (Integral.FiberGenericPoint.BundleCycles.integralFiberGenericPoint p x)) (p ≫ f) = |
| 85 | Foundations.Scheme.SupportDimension.supportTranscendenceDimension (irreducibleSetEquivPoints.symm x) f + affineBundleFiberRank p f x := by |
| 86 | obtain ⟨U, i, ι, hι, j, hi, hj, hx, hs⟩ := h x |
| 87 | let := hι |
| 88 | let := hi |
| 89 | let := hj |
| 90 | let : AlgebraicGeometry.IsNoetherian U := Open.ImmersionNoetherian.BundleCycles.openImmersion_isNoetherian i |
| 91 | obtain ⟨u, rfl⟩ := hx |
| 92 | rw [affineBundleFiberRank_openChart p f i ι j hs.w u, |
| 93 | ← Integral.FiberOpen.BundleCycles.integralFiberGenericPoint_openSquare p (AffineSpace ι U ↘ U) i j hs.w u, |
| 94 | ImmersionDimension.BundleCycles.pointClosure_dimension_immersion j] |
| 95 | have he : j ≫ (p ≫ f) = (AffineSpace ι U ↘ U) ≫ (i ≫ f) := by |
| 96 | rw [← Category.assoc, ← hs.w, Category.assoc] |
| 97 | rw [he, LineBundles.AffineSpace.CycleGrading.BundleCycles.affineSpaceFiberGenericPoint_dimension, ImmersionDimension.BundleCycles.pointClosure_dimension_immersion i] |
| 98 | |
| 99 | end |
| 100 | |
| 101 | end OAI.AlgebraicGeometry.Divisors.LineBundles.AffineBundle.FiberRank.Cycles |