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.DivisorClass.Chern.Rational.Coordinates |
| 2 | import Mathlib.Topology.NoetherianSpace |
| 3 | import Mathlib.Data.Finsupp.Defs |
| 4 | import OAI.AlgebraicGeometry.CycleClass.Geometric.FiniteSupport |
| 5 | |
| 6 | /-! # Support -/ |
| 7 | |
| 8 | namespace OAI.AlgebraicGeometry.DivisorClass.Chern |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! |
| 13 | # ChernClass: finite support of the rational section's divisor |
| 14 | |
| 15 | The finite-complement argument follows the local LineBundleCycles divisor-support proof: |
| 16 | in an integral Noetherian scheme, only finitely many codimension-one points |
| 17 | lie outside any nonempty open. The rational section is a generator on its |
| 18 | reference chart, so its nonzero orders are supported on this finite set. |
| 19 | -/ |
| 20 | |
| 21 | open _root_.AlgebraicGeometry _root_.TopologicalSpace _root_.Order |
| 22 | |
| 23 | namespace Support.Construction |
| 24 | |
| 25 | /-- A nonempty open misses only finitely many codimension-one points. -/ |
| 26 | theorem finite_codimension_one_complement |
| 27 | (X : Scheme) [IsIntegral X] [AlgebraicGeometry.IsNoetherian X] |
| 28 | (U : X.Opens) [Nonempty U] : |
| 29 | {x : X | coheight x = 1 ∧ x ∉ U}.Finite := by |
| 30 | classical |
| 31 | obtain ⟨S, hSf, hSc, hSi, hSU⟩ := |
| 32 | NoetherianSpace.exists_finite_set_isClosed_irreducible U.isOpen.isClosed_compl |
| 33 | let := hSf.to_subtype |
| 34 | let C : S → IrreducibleCloseds X := fun s => ⟨s.1, hSi s.1 s.2, hSc s.1 s.2⟩ |
| 35 | let g : S → X := fun s => irreducibleSetEquivPoints (C s) |
| 36 | apply (Set.finite_range g).subset |
| 37 | intro x hx |
| 38 | have hxc : x ∈ (U : Set X)ᶜ := hx.2 |
| 39 | rw [hSU] at hxc |
| 40 | obtain ⟨s, hs, hxs⟩ := Set.mem_sUnion.mp hxc |
| 41 | let s' : S := ⟨s, hs⟩ |
| 42 | let A : IrreducibleCloseds X := irreducibleSetEquivPoints.symm x |
| 43 | let T : IrreducibleCloseds X := ⟨Set.univ, IrreducibleSpace.isIrreducible_univ X, isClosed_univ⟩ |
| 44 | have hAC : A ≤ C s' := by |
| 45 | change closure ({x} : Set X) ⊆ s |
| 46 | exact (hSc s hs).closure_subset_iff.mpr (Set.singleton_subset_iff.mpr hxs) |
| 47 | have hCT : C s' < T := by |
| 48 | refine lt_of_le_of_ne (show C s' ≤ T from Set.subset_univ _) ?_ |
| 49 | intro heq |
| 50 | obtain ⟨y⟩ := ‹Nonempty U› |
| 51 | have hy : y.1 ∈ s := by |
| 52 | change y.1 ∈ (C s' : Set X) |
| 53 | rw [heq] |
| 54 | trivial |
| 55 | have hyc : y.1 ∈ (U : Set X)ᶜ := by |
| 56 | rw [hSU] |
| 57 | exact Set.mem_sUnion.mpr ⟨s, hs, hy⟩ |
| 58 | exact hyc y.2 |
| 59 | have hC1 : 1 ≤ coheight (C s') := by |
| 60 | calc |
| 61 | 1 ≤ coheight T + 1 := le_add_self |
| 62 | _ ≤ coheight (C s') := coheight_add_one_le hCT |
| 63 | have hA1 : coheight A = 1 := by simpa only [A, coheight_orderIso] using hx.1 |
| 64 | have hEq : A = C s' := by |
| 65 | apply le_antisymm hAC |
| 66 | by_contra hCA |
| 67 | have hlt : A < C s' := lt_of_le_not_ge hAC hCA |
| 68 | have h2 : (2 : ℕ∞) ≤ coheight A := by |
| 69 | calc |
| 70 | 2 = 1 + 1 := rfl |
| 71 | _ ≤ coheight (C s') + 1 := add_le_add hC1 le_rfl |
| 72 | _ ≤ coheight A := coheight_add_one_le hlt |
| 73 | rw [hA1] at h2 |
| 74 | exact (by decide : ¬ (2 : ℕ∞) ≤ 1) h2 |
| 75 | refine ⟨s', ?_⟩ |
| 76 | change irreducibleSetEquivPoints (C s') = x |
| 77 | rw [← hEq] |
| 78 | exact irreducibleSetEquivPoints.apply_symm_apply x |
| 79 | |
| 80 | end Support.Construction |
| 81 | |
| 82 | variable {X : Foundations.Scheme.SmoothProjective.SmoothProjectivePresentation} (L : Line.Bundles.AlgebraicLineBundle X) |
| 83 | variable [IsIntegral X.carrier] |
| 84 | |
| 85 | /-- The actual local-length multiplicities of the rational section have finite support. -/ |
| 86 | theorem Line.Bundles.AlgebraicLineBundle.finite_support_rationalSectionOrder : (Function.support L.rationalSectionOrder).Finite := by |
| 87 | let : Nonempty L.rationalReferenceOpen := |
| 88 | ⟨⟨genericPoint X.carrier, L.mem_trivializingOpen _⟩⟩ |
| 89 | apply (Support.Construction.finite_codimension_one_complement X.carrier L.rationalReferenceOpen).subset |
| 90 | intro x hx |
| 91 | constructor |
| 92 | · by_contra hc |
| 93 | exact hx (L.rationalSectionOrder_eq_zero_of_coheight_ne_one x hc) |
| 94 | · intro hU |
| 95 | exact hx (L.rationalSectionOrder_zero_on_reference x hU) |
| 96 | |
| 97 | /-- The divisor of the chosen actual rational section, indexed by scheme points. -/ |
| 98 | def Line.Bundles.AlgebraicLineBundle.rationalSectionPointDivisor : X.carrier →₀ ℤ := |
| 99 | Finsupp.ofSupportFinite L.rationalSectionOrder L.finite_support_rationalSectionOrder |
| 100 | |
| 101 | @[simp] |
| 102 | theorem Line.Bundles.AlgebraicLineBundle.rationalSectionPointDivisor_apply (x : X.carrier) : |
| 103 | L.rationalSectionPointDivisor x = L.rationalSectionOrder x := rfl |
| 104 | |
| 105 | /-- The same divisor in mathlib's genuine locally finite algebraic-cycle type. -/ |
| 106 | def Line.Bundles.AlgebraicLineBundle.rationalSectionAlgebraicDivisor : AlgebraicCycle X.carrier ℤ := |
| 107 | CycleClass.Geometric.FiniteSupport.Cycles.finsuppToAlgebraicCycle L.rationalSectionPointDivisor |
| 108 | |
| 109 | @[simp] |
| 110 | theorem Line.Bundles.AlgebraicLineBundle.rationalSectionAlgebraicDivisor_apply (x : X.carrier) : |
| 111 | L.rationalSectionAlgebraicDivisor x = L.rationalSectionOrder x := rfl |
| 112 | |
| 113 | /-- Every point with nonzero multiplicity has order-theoretic codimension one. -/ |
| 114 | theorem Line.Bundles.AlgebraicLineBundle.rationalSectionAlgebraicDivisor_coheight_one (x : X.carrier) |
| 115 | (hx : L.rationalSectionAlgebraicDivisor x ≠ 0) : coheight x = 1 := by |
| 116 | by_contra h |
| 117 | exact hx (L.rationalSectionOrder_eq_zero_of_coheight_ne_one x h) |
| 118 | |
| 119 | end |
| 120 | |
| 121 | end OAI.AlgebraicGeometry.DivisorClass.Chern |