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 Mathlib.AlgebraicGeometry.AlgebraicCycle.Basic |
| 2 | import Mathlib.Data.Finsupp.Basic |
| 3 | |
| 4 | /-! # Finite Support -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.CycleClass.Geometric.FiniteSupport.Cycles |
| 7 | |
| 8 | /-! |
| 9 | # Finite support of algebraic cycles on quasi-compact schemes |
| 10 | |
| 11 | Mathlib's algebraic cycles are functions on scheme points with locally finite |
| 12 | support. Compactness alone makes that support finite: no Hausdorff or T1 |
| 13 | assumption is needed. The conversions below retain every coefficient. |
| 14 | -/ |
| 15 | |
| 16 | open _root_.AlgebraicGeometry |
| 17 | |
| 18 | universe u v |
| 19 | |
| 20 | /-- A locally finitely supported function on a compact space has finite support, |
| 21 | without any separation assumption on that space. -/ |
| 22 | theorem finiteSupport_locallyFinsupp {T : Type u} [TopologicalSpace T] |
| 23 | [CompactSpace T] {R : Type v} [Zero R] (c : Function.locallyFinsupp T R) : |
| 24 | (Function.support c).Finite := by |
| 25 | simpa only [Set.univ_inter, Function.locallyFinsuppWithin.toFun_eq_coe] using |
| 26 | c.locallyFiniteSupport.finite_inter_support_of_isCompact isCompact_univ |
| 27 | |
| 28 | /-- Quasi-compactness of the scheme suffices to turn mathlib's locally finite |
| 29 | algebraic cycles into finitely supported cycles. -/ |
| 30 | theorem algebraicCycle_finiteSupport {X : Scheme.{u}} [CompactSpace X] |
| 31 | {R : Type v} [Zero R] (c : AlgebraicCycle X R) : |
| 32 | (Function.support c).Finite := |
| 33 | finiteSupport_locallyFinsupp c |
| 34 | |
| 35 | /-- Every finite cycle defines a mathlib algebraic cycle, on any scheme. -/ |
| 36 | def finsuppToAlgebraicCycle {X : Scheme.{u}} {R : Type v} [Zero R] |
| 37 | (c : X →₀ R) : AlgebraicCycle X R where |
| 38 | toFun := c |
| 39 | supportWithinDomain' := Set.subset_univ _ |
| 40 | supportLocallyFiniteWithinDomain' _ _ := |
| 41 | ⟨Set.univ, Filter.univ_mem, by |
| 42 | simpa only [Set.univ_inter, Function.HasFiniteSupport] using c.hasFiniteSupport⟩ |
| 43 | |
| 44 | @[simp] |
| 45 | theorem finsuppToAlgebraicCycle_apply {X : Scheme.{u}} {R : Type v} [Zero R] |
| 46 | (c : X →₀ R) (x : X) : finsuppToAlgebraicCycle c x = c x := rfl |
| 47 | |
| 48 | /-- On a quasi-compact scheme, an algebraic cycle is a finite coefficient list. -/ |
| 49 | noncomputable def algebraicCycleToFinsupp {X : Scheme.{u}} [CompactSpace X] |
| 50 | {R : Type v} [Zero R] (c : AlgebraicCycle X R) : X →₀ R := |
| 51 | Finsupp.ofSupportFinite c (algebraicCycle_finiteSupport c) |
| 52 | |
| 53 | @[simp] |
| 54 | theorem algebraicCycleToFinsupp_apply {X : Scheme.{u}} [CompactSpace X] |
| 55 | {R : Type v} [Zero R] (c : AlgebraicCycle X R) (x : X) : |
| 56 | algebraicCycleToFinsupp c x = c x := rfl |
| 57 | |
| 58 | /-- This equivalence identifies coefficients, rather than selecting an arbitrary |
| 59 | bijection between the two notions of cycles. -/ |
| 60 | noncomputable def algebraicCycleFinsuppEquiv (X : Scheme.{u}) [CompactSpace X] |
| 61 | (R : Type v) [Zero R] : AlgebraicCycle X R ≃ (X →₀ R) where |
| 62 | toFun := algebraicCycleToFinsupp |
| 63 | invFun := finsuppToAlgebraicCycle |
| 64 | left_inv _ := DFunLike.ext _ _ fun _ => rfl |
| 65 | right_inv _ := Finsupp.ext fun _ => rfl |
| 66 | |
| 67 | @[simp] |
| 68 | theorem algebraicCycleToFinsupp_finsuppToAlgebraicCycle {X : Scheme.{u}} |
| 69 | [CompactSpace X] {R : Type v} [Zero R] (c : X →₀ R) : |
| 70 | algebraicCycleToFinsupp (finsuppToAlgebraicCycle c) = c := |
| 71 | (algebraicCycleFinsuppEquiv X R).apply_symm_apply c |
| 72 | |
| 73 | @[simp] |
| 74 | theorem finsuppToAlgebraicCycle_algebraicCycleToFinsupp {X : Scheme.{u}} |
| 75 | [CompactSpace X] {R : Type v} [Zero R] (c : AlgebraicCycle X R) : |
| 76 | finsuppToAlgebraicCycle (algebraicCycleToFinsupp c) = c := |
| 77 | (algebraicCycleFinsuppEquiv X R).symm_apply_apply c |
| 78 | |
| 79 | /-- The equivalence also preserves addition of cycle coefficients. -/ |
| 80 | noncomputable def algebraicCycleFinsuppAddEquiv (X : Scheme.{u}) [CompactSpace X] |
| 81 | (R : Type v) [AddMonoid R] : AlgebraicCycle X R ≃+ (X →₀ R) where |
| 82 | toEquiv := algebraicCycleFinsuppEquiv X R |
| 83 | map_add' _ _ := Finsupp.ext fun _ => rfl |
| 84 | |
| 85 | end OAI.AlgebraicGeometry.CycleClass.Geometric.FiniteSupport.Cycles |