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.Integral.ClopenComponents |
| 2 | import OAI.AlgebraicGeometry.Divisors.LineBundles.FiberFundamentalCycle |
| 3 | import OAI.AlgebraicGeometry.Divisors.LineBundles.ClopenCoverBaseChange |
| 4 | import OAI.AlgebraicGeometry.Divisors.LineBundles.Integral.FiberGenericPoint |
| 5 | |
| 6 | /-! # Clopen Fiber Cycle Pullback -/ |
| 7 | |
| 8 | namespace OAI.AlgebraicGeometry.Divisors.LineBundles.ClopenFiberCyclePullback.BundleCycles |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | section |
| 13 | |
| 14 | /-! The full fundamental cycle of a reduced fiber decomposes along an |
| 15 | actual finite clopen cover whose component projections have integral fibers. -/ |
| 16 | |
| 17 | open _root_.AlgebraicGeometry _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.TopologicalSpace |
| 18 | |
| 19 | variable {E X : Scheme.{0}} (p : E ⟶ X) [LocallyOfFiniteType p] [QuasiCompact p] |
| 20 | {ι : Type} [Fintype ι] (U : ι → Scheme.{0}) (i : ∀ k, U k ⟶ E) |
| 21 | [∀ k, IsOpenImmersion (i k)] [∀ k, IsClosedImmersion (i k)] |
| 22 | [∀ k, GeometricallyIntegral (i k ≫ p)] |
| 23 | (hcover : ∀ x : E, ∃! k, x ∈ Set.range (i k)) |
| 24 | |
| 25 | include hcover in |
| 26 | theorem clopenFiber_fundamentalPointCycle (y : X) [IsReduced (p.fiber y)] : |
| 27 | FiberFundamentalCycle.BundleCycles.fiberFundamentalPointCycle p y = |
| 28 | ∑ k, Finsupp.single (i k (Integral.FiberGenericPoint.BundleCycles.integralFiberGenericPoint (i k ≫ p) y)) 1 := by |
| 29 | classical |
| 30 | let V : ι → Scheme := fun k => (i k ≫ p).fiber y |
| 31 | let j : ∀ k, V k ⟶ p.fiber y := fun k => |
| 32 | Relative.BaseChangeMap.BundleCycles.relativeBaseChangeMap p (i k ≫ p) (i k) rfl (X.fromSpecResidueField y) |
| 33 | let : ∀ k, IsIntegral (V k) := fun k => inferInstanceAs (IsIntegral ((i k ≫ p).fiber y)) |
| 34 | let : ∀ k, IsOpenImmersion (j k) := fun k => |
| 35 | ClopenCoverBaseChange.BundleCycles.clopenCoverBaseChangeMap_isOpenImmersion p U i (X.fromSpecResidueField y) k |
| 36 | let : ∀ k, IsClosedImmersion (j k) := fun k => |
| 37 | Relative.BaseChangeMap.BundleCycles.relativeBaseChangeMap_isClosedImmersion _ _ _ _ _ |
| 38 | have hc : ∀ x : p.fiber y, ∃! k, x ∈ Set.range (j k) := |
| 39 | ClopenCoverBaseChange.BundleCycles.clopenCoverBaseChange_covers p U i (X.fromSpecResidueField y) hcover |
| 40 | let e := Integral.ClopenComponents.BundleCycles.integralClopenComponentsEquiv V j hc |
| 41 | let := (NoetherianSpace.finite_irreducibleComponents (α := p.fiber y)).fintype |
| 42 | change (∑ C : irreducibleComponents (p.fiber y), |
| 43 | Finsupp.single (p.fiberι y (FiberFundamentalCycle.BundleCycles.componentGenericPoint (p.fiber y) C)) |
| 44 | ((Module.length ((p.fiber y).presheaf.stalk (FiberFundamentalCycle.BundleCycles.componentGenericPoint (p.fiber y) C)) |
| 45 | ((p.fiber y).presheaf.stalk (FiberFundamentalCycle.BundleCycles.componentGenericPoint (p.fiber y) C))).toNat : ℚ)) = _ |
| 46 | rw [← e.sum_comp] |
| 47 | apply Finset.sum_congr rfl |
| 48 | intro k _ |
| 49 | rw [FiberFundamentalCycle.BundleCycles.componentGenericPoint_length_one_of_reduced] |
| 50 | have hpoint : p.fiberι y (FiberFundamentalCycle.BundleCycles.componentGenericPoint (p.fiber y) (e k)) = |
| 51 | i k (Integral.FiberGenericPoint.BundleCycles.integralFiberGenericPoint (i k ≫ p) y) := by |
| 52 | change p.fiberι y (FiberFundamentalCycle.BundleCycles.componentGenericPoint (p.fiber y) (Integral.ClopenComponents.BundleCycles.integralClopenComponent V j k)) = _ |
| 53 | rw [Integral.ClopenComponents.BundleCycles.integralClopenComponent_genericPoint] |
| 54 | exact congrArg (fun t : V k ⟶ E => t (genericPoint (V k))) |
| 55 | (Relative.BaseChangeMap.BundleCycles.relativeBaseChangeMap_fst p (i k ≫ p) (i k) rfl (X.fromSpecResidueField y)) |
| 56 | exact congrArg₂ Finsupp.single hpoint rfl |
| 57 | |
| 58 | end |
| 59 | |
| 60 | /-! The actual flat point-cycle formula is the sum of its integral |
| 61 | component formulas on a finite disjoint clopen cover. -/ |
| 62 | |
| 63 | open _root_.AlgebraicGeometry _root_.CategoryTheory |
| 64 | |
| 65 | variable {E X : Scheme.{0}} (p : E ⟶ X) [LocallyOfFiniteType p] [QuasiCompact p] |
| 66 | {ι : Type} [Fintype ι] (U : ι → Scheme.{0}) (i : ∀ k, U k ⟶ E) |
| 67 | [∀ k, IsOpenImmersion (i k)] [∀ k, IsClosedImmersion (i k)] |
| 68 | [∀ k, GeometricallyIntegral (i k ≫ p)] [∀ y, IsReduced (p.fiber y)] |
| 69 | (hcover : ∀ x : E, ∃! k, x ∈ Set.range (i k)) |
| 70 | |
| 71 | include hcover in |
| 72 | theorem clopenFiberCyclePullback_eq_sum : FiberFundamentalCycle.BundleCycles.fiberPointCyclePullback p = |
| 73 | ∑ k, (Finsupp.lmapDomain ℚ ℚ (i k)).comp (Integral.FiberGenericPoint.BundleCycles.integralFiberCycleExtension (i k ≫ p)) := by |
| 74 | apply Finsupp.lhom_ext |
| 75 | intro y a |
| 76 | rw [FiberFundamentalCycle.BundleCycles.fiberPointCyclePullback_single, clopenFiber_fundamentalPointCycle p U i hcover, |
| 77 | Finset.smul_sum, LinearMap.sum_apply] |
| 78 | apply Finset.sum_congr rfl |
| 79 | intro k _ |
| 80 | change a • Finsupp.single (i k (Integral.FiberGenericPoint.BundleCycles.integralFiberGenericPoint (i k ≫ p) y)) 1 = |
| 81 | Finsupp.mapDomain (i k) |
| 82 | (Finsupp.mapDomain (Integral.FiberGenericPoint.BundleCycles.integralFiberGenericPoint (i k ≫ p)) (Finsupp.single y a)) |
| 83 | rw [Finsupp.mapDomain_single, Finsupp.mapDomain_single, Finsupp.smul_single, smul_eq_mul, mul_one] |
| 84 | |
| 85 | include hcover in |
| 86 | theorem clopenFiberCyclePullback_apply (z : X →₀ ℚ) : FiberFundamentalCycle.BundleCycles.fiberPointCyclePullback p z = |
| 87 | ∑ k, Finsupp.mapDomain (i k) (Integral.FiberGenericPoint.BundleCycles.integralFiberCycleExtension (i k ≫ p) z) := by |
| 88 | rw [clopenFiberCyclePullback_eq_sum p U i hcover, LinearMap.sum_apply] |
| 89 | rfl |
| 90 | |
| 91 | end |
| 92 | |
| 93 | end OAI.AlgebraicGeometry.Divisors.LineBundles.ClopenFiberCyclePullback.BundleCycles |