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.IntersectionTheory.ProjectionFormula.Component.CycleMaps |
| 2 | import OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Component.Iff |
| 3 | import OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Divisor.DivisorRestriction |
| 4 | |
| 5 | /-! # Principal -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Component.Principal |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | section |
| 12 | |
| 13 | /-! Restriction to an actual open component preserves principal-divisor |
| 14 | relations, using the isomorphism of the reduced support schemes. -/ |
| 15 | |
| 16 | set_option backward.isDefEq.respectTransparency false |
| 17 | |
| 18 | open _root_.CategoryTheory _root_.AlgebraicGeometry _root_.TopologicalSpace |
| 19 | |
| 20 | open OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Component.Image OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Component.CycleMaps OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Principal.ClosedSectionCycle |
| 21 | |
| 22 | theorem coefficient_image (X : Foundations.Scheme.SmoothProjective.SmoothProjectivePresentation) (C : irreducibleComponents X.carrier) |
| 23 | (W D : IrreducibleCloseds (X.componentVariety C).carrier) |
| 24 | (f : (CycleClass.Geometric.GenericPoint.reducedSupportScheme (X.componentSupportImage C W)).functionField) : |
| 25 | CycleClass.Thom.IntersectionGeometry.principalDivisorCoefficient (X.componentVariety C).presentation W |
| 26 | (Divisor.DivisorRestriction.openFieldMap (X.componentSupportSchemeIso C W).hom f) D = |
| 27 | CycleClass.Thom.IntersectionGeometry.principalDivisorCoefficient X (X.componentSupportImage C W) f (X.componentSupportImage C D) := by |
| 28 | by_cases h : CycleClass.Thom.IntersectionGeometry.supportPoint D ∈ (W : Set (X.componentVariety C).carrier) |
| 29 | · let y := CycleClass.Thom.IntersectionGeometry.supportPreimage W (CycleClass.Thom.IntersectionGeometry.supportPoint D) h |
| 30 | have hy : CycleClass.Geometric.GenericPoint.reducedSupportι W y = CycleClass.Thom.IntersectionGeometry.supportPoint D := CycleClass.Thom.IntersectionGeometry.supportPreimage_spec W _ h |
| 31 | have he : CycleClass.Geometric.GenericPoint.reducedSupportι (X.componentSupportImage C W) ((X.componentSupportSchemeIso C W).hom y) = |
| 32 | CycleClass.Thom.IntersectionGeometry.supportPoint (X.componentSupportImage C D) := by |
| 33 | have hh := congrArg (fun i : CycleClass.Geometric.GenericPoint.reducedSupportScheme W ⟶ X.carrier => i y) |
| 34 | (X.componentSupportSchemeIso_hom_inclusion C W) |
| 35 | change _ = X.componentInclusion C (CycleClass.Geometric.GenericPoint.reducedSupportι W y) at hh |
| 36 | rw [hy] at hh |
| 37 | exact hh.trans (X.componentSupportImage_genericPoint C D).symm |
| 38 | rw [CycleClass.Thom.IntersectionGeometry.principalDivisorCoefficient_at_image _ _ _ _ y hy, |
| 39 | CycleClass.Thom.IntersectionGeometry.principalDivisorCoefficient_at_image _ _ _ _ _ he, |
| 40 | Divisor.DivisorRestriction.ord_openImmersion] |
| 41 | · have hn : CycleClass.Thom.IntersectionGeometry.supportPoint (X.componentSupportImage C D) ∉ |
| 42 | (X.componentSupportImage C W : Set X.carrier) := |
| 43 | fun hh => h ((Iff.image_point_mem_iff X C W D).mp hh) |
| 44 | rw [CycleClass.Thom.IntersectionGeometry.principalDivisorCoefficient, dite_eq_right h, CycleClass.Thom.IntersectionGeometry.principalDivisorCoefficient, dite_eq_right hn] |
| 45 | |
| 46 | theorem restrict_principal_image (X : Foundations.Scheme.SmoothProjective.SmoothProjectivePresentation) |
| 47 | (C : irreducibleComponents X.carrier) (p : ℕ) |
| 48 | (W : IrreducibleCloseds (X.componentVariety C).carrier) |
| 49 | (f : (CycleClass.Geometric.GenericPoint.reducedSupportScheme (X.componentSupportImage C W)).functionField) : |
| 50 | CycleMaps.restrict X C p (Principal.ClosedSectionCycle.principalCycle X p (X.componentSupportImage C W) f) = |
| 51 | Principal.ClosedSectionCycle.principalCycle (X.componentVariety C).presentation p W |
| 52 | (Divisor.DivisorRestriction.openFieldMap (X.componentSupportSchemeIso C W).hom f) := by |
| 53 | ext D |
| 54 | rw [CycleMaps.restrict_apply, Principal.ClosedSectionCycle.principalCycle_apply, Principal.ClosedSectionCycle.principalCycle_apply] |
| 55 | exact (coefficient_image X C W D.val f).symm |
| 56 | |
| 57 | theorem subset_of_mem (X : Foundations.Scheme.SmoothProjective.SmoothProjectivePresentation) (C : irreducibleComponents X.carrier) |
| 58 | (W : IrreducibleCloseds X.carrier) (x : X.carrier) (hx : x ∈ (W : Set X.carrier)) |
| 59 | (hC : x ∈ C.val) : (W : Set X.carrier) ⊆ C.val := by |
| 60 | let := X.stalk_isDomain x |
| 61 | have he := Foundations.Scheme.LocalDomainComponents.irreducibleComponents_eq_of_mem_of_stalkDomain x (X.supportComponent W).property |
| 62 | C.property (X.support_subset_component W hx) hC |
| 63 | rw [← he] |
| 64 | exact X.support_subset_component W |
| 65 | |
| 66 | theorem restrict_principal_outside (X : Foundations.Scheme.SmoothProjective.SmoothProjectivePresentation) |
| 67 | (C : irreducibleComponents X.carrier) (p : ℕ) (W : IrreducibleCloseds X.carrier) |
| 68 | (hW : ¬ (W : Set X.carrier) ⊆ C.val) (f : (CycleClass.Geometric.GenericPoint.reducedSupportScheme W).functionField) : |
| 69 | CycleMaps.restrict X C p (Principal.ClosedSectionCycle.principalCycle X p W f) = 0 := by |
| 70 | ext D |
| 71 | rw [CycleMaps.restrict_apply, Principal.ClosedSectionCycle.principalCycle_apply, Finsupp.zero_apply, CycleClass.Thom.IntersectionGeometry.principalDivisorCoefficient] |
| 72 | apply dite_eq_right |
| 73 | intro hx |
| 74 | apply hW (subset_of_mem X C W _ hx _) |
| 75 | exact X.componentSupportImage_subset C D.val |
| 76 | (((X.componentSupportImage C D.val).isIrreducible.isGenericPoint_genericPoint |
| 77 | (X.componentSupportImage C D.val).isClosed).mem) |
| 78 | |
| 79 | theorem restrict_preserves_relations (X : Foundations.Scheme.SmoothProjective.SmoothProjectivePresentation) |
| 80 | (C : irreducibleComponents X.carrier) (p : ℕ) : |
| 81 | CycleClass.Thom.IntersectionGeometry.rationalEquivalences X p ≤ |
| 82 | (CycleClass.Thom.IntersectionGeometry.rationalEquivalences (X.componentVariety C).presentation p).comap (CycleMaps.restrict X C p) := by |
| 83 | apply Submodule.span_le.mpr |
| 84 | intro d hd |
| 85 | obtain ⟨W, hW, f, hf, rfl⟩ := (Principal.ClosedSectionCycle.isPrincipalDivisor_iff X p d).mp hd |
| 86 | change CycleMaps.restrict X C p (Principal.ClosedSectionCycle.principalCycle X p W f) ∈ CycleClass.Thom.IntersectionGeometry.rationalEquivalences (X.componentVariety C).presentation p |
| 87 | by_cases hC : (W : Set X.carrier) ⊆ C.val |
| 88 | · obtain ⟨Z, rfl⟩ : ∃ Z, X.componentSupportImage C Z = W := |
| 89 | ⟨X.componentSupportPreimage C W hC, X.componentSupportImage_preimage C W hC⟩ |
| 90 | rw [restrict_principal_image] |
| 91 | apply Submodule.subset_span |
| 92 | apply Principal.ClosedSectionCycle.principalCycle_isPrincipalDivisor |
| 93 | · rwa [Image.image_codimension] at hW |
| 94 | · exact (map_ne_zero (Divisor.DivisorRestriction.openFieldMap (X.componentSupportSchemeIso C Z).hom).hom).mpr hf |
| 95 | · rw [restrict_principal_outside X C p W hC f] |
| 96 | exact Submodule.zero_mem _ |
| 97 | |
| 98 | end |
| 99 | |
| 100 | section |
| 101 | |
| 102 | /-! Rational equivalence of native graded cycles can be tested separately |
| 103 | on the actual integral components. -/ |
| 104 | |
| 105 | set_option backward.isDefEq.respectTransparency false |
| 106 | |
| 107 | open _root_.AlgebraicGeometry _root_.TopologicalSpace |
| 108 | open scoped Classical |
| 109 | |
| 110 | namespace CycleDecomposition |
| 111 | |
| 112 | open OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Component.Image OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Component.CycleMaps |
| 113 | |
| 114 | theorem embed_apply_image (X : Foundations.Scheme.SmoothProjective.SmoothProjectivePresentation) (C : irreducibleComponents X.carrier) |
| 115 | (p : ℕ) (a : (X.componentVariety C).presentation.RationalDimensionCycle p) |
| 116 | (A : (X.componentVariety C).presentation.DimensionCycleSupport p) : |
| 117 | CycleMaps.embed X C p a (Image.supportImage X C p A) = a A := |
| 118 | Finsupp.mapDomain_apply_of_injective (Image.supportImage_injective X C p) a A |
| 119 | |
| 120 | theorem embed_apply_outside (X : Foundations.Scheme.SmoothProjective.SmoothProjectivePresentation) (C : irreducibleComponents X.carrier) |
| 121 | (p : ℕ) (a : (X.componentVariety C).presentation.RationalDimensionCycle p) |
| 122 | (A : X.DimensionCycleSupport p) (h : ¬ (A.val : Set X.carrier) ⊆ C.val) : |
| 123 | CycleMaps.embed X C p a A = 0 := by |
| 124 | apply Finsupp.mapDomain_of_notMem_range |
| 125 | rintro ⟨B, rfl⟩ |
| 126 | exact h (X.componentSupportImage_subset C B.val) |
| 127 | |
| 128 | theorem embed_restrict_apply (X : Foundations.Scheme.SmoothProjective.SmoothProjectivePresentation) (C : irreducibleComponents X.carrier) |
| 129 | (p : ℕ) (a : X.RationalDimensionCycle p) (A : X.DimensionCycleSupport p) : |
| 130 | CycleMaps.embed X C p (CycleMaps.restrict X C p a) A = if X.supportComponent A.val = C then a A else 0 := by |
| 131 | by_cases h : X.supportComponent A.val = C |
| 132 | · rw [ite_eq_left h] |
| 133 | have ha : (A.val : Set X.carrier) ⊆ C.val := h ▸ X.support_subset_component A.val |
| 134 | have he := Image.supportImage_preimage X C p A ha |
| 135 | conv_lhs => rw [← he] |
| 136 | rw [embed_apply_image, CycleMaps.restrict_apply, he] |
| 137 | · rw [ite_eq_right h] |
| 138 | exact embed_apply_outside X C p _ A (fun ha => h (X.supportComponent_eq_of_subset A.val C ha)) |
| 139 | |
| 140 | theorem sum_embed_restrict (X : Foundations.Scheme.SmoothProjective.SmoothProjectivePresentation) (p : ℕ) |
| 141 | [Fintype (irreducibleComponents X.carrier)] (a : X.RationalDimensionCycle p) : |
| 142 | ∑ C : irreducibleComponents X.carrier, CycleMaps.embed X C p (CycleMaps.restrict X C p a) = a := by |
| 143 | ext A |
| 144 | simp only [Finsupp.finsetSum_apply, embed_restrict_apply] |
| 145 | simp |
| 146 | |
| 147 | theorem relations_iff (X : Foundations.Scheme.SmoothProjective.SmoothProjectivePresentation) (m p : ℕ) |
| 148 | [SmoothOfRelativeDimension m X.structureMap] (a : X.RationalDimensionCycle p) : |
| 149 | a ∈ CycleClass.Thom.IntersectionGeometry.rationalEquivalences X p ↔ ∀ C : irreducibleComponents X.carrier, |
| 150 | CycleMaps.restrict X C p a ∈ CycleClass.Thom.IntersectionGeometry.rationalEquivalences (X.componentVariety C).presentation p := by |
| 151 | constructor |
| 152 | · intro ha C |
| 153 | exact restrict_preserves_relations X C p ha |
| 154 | · intro ha |
| 155 | let := Fintype.ofFinite (irreducibleComponents X.carrier) |
| 156 | rw [← sum_embed_restrict X p a] |
| 157 | exact Submodule.sum_mem _ fun C _ => CycleMaps.embed_preserves_relations X m C p (ha C) |
| 158 | |
| 159 | theorem rationallyEquivalent_iff (X : Foundations.Scheme.SmoothProjective.SmoothProjectivePresentation) (m p : ℕ) |
| 160 | [SmoothOfRelativeDimension m X.structureMap] (a b : X.RationalDimensionCycle p) : |
| 161 | CycleClass.Thom.IntersectionGeometry.RationallyEquivalent X p a b ↔ ∀ C : irreducibleComponents X.carrier, |
| 162 | CycleClass.Thom.IntersectionGeometry.RationallyEquivalent (X.componentVariety C).presentation p (CycleMaps.restrict X C p a) (CycleMaps.restrict X C p b) := by |
| 163 | simp only [CycleClass.Thom.IntersectionGeometry.RationallyEquivalent, relations_iff X m p, map_sub] |
| 164 | |
| 165 | end CycleDecomposition |
| 166 | |
| 167 | end |
| 168 | |
| 169 | /-! The native cycle restriction and embedding maps form a direct |
| 170 | sum over the actual disjoint integral components. -/ |
| 171 | |
| 172 | set_option backward.isDefEq.respectTransparency false |
| 173 | set_option backward.isDefEq.respectTransparency.types false |
| 174 | |
| 175 | open _root_.AlgebraicGeometry _root_.TopologicalSpace |
| 176 | open scoped Classical |
| 177 | |
| 178 | namespace Sum |
| 179 | |
| 180 | open OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Component.Image OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Component.CycleMaps |
| 181 | |
| 182 | theorem restrict_embed_other (X : Foundations.Scheme.SmoothProjective.SmoothProjectivePresentation) (C D : irreducibleComponents X.carrier) |
| 183 | (p : ℕ) (a : (X.componentVariety D).presentation.RationalDimensionCycle p) (hCD : C ≠ D) : |
| 184 | CycleMaps.restrict X C p (CycleMaps.embed X D p a) = 0 := by |
| 185 | ext W |
| 186 | rw [CycleMaps.restrict_apply, Finsupp.zero_apply] |
| 187 | apply CycleDecomposition.embed_apply_outside |
| 188 | intro hW |
| 189 | have hC := X.supportComponent_eq_of_subset (Image.supportImage X C p W).val C |
| 190 | (X.componentSupportImage_subset C W.val) |
| 191 | have hD := X.supportComponent_eq_of_subset (Image.supportImage X C p W).val D hW |
| 192 | exact hCD (hC.symm.trans hD) |
| 193 | |
| 194 | theorem restrict_sum (X : Foundations.Scheme.SmoothProjective.SmoothProjectivePresentation) (p : ℕ) |
| 195 | [Fintype (irreducibleComponents X.carrier)] |
| 196 | (a : ∀ C : irreducibleComponents X.carrier, (X.componentVariety C).presentation.RationalDimensionCycle p) |
| 197 | (C : irreducibleComponents X.carrier) : |
| 198 | CycleMaps.restrict X C p (∑ D, CycleMaps.embed X D p (a D)) = a C := by |
| 199 | rw [map_sum] |
| 200 | rw [Finset.sum_eq_single C] |
| 201 | · exact CycleMaps.restrict_embed X C p (a C) |
| 202 | · intro D _ hD |
| 203 | exact restrict_embed_other X C D p (a D) hD.symm |
| 204 | · intro h |
| 205 | exact (h (Finset.mem_univ C)).elim |
| 206 | |
| 207 | end Sum |
| 208 | |
| 209 | end |
| 210 | |
| 211 | end OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Component.Principal |