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.CycleClass.Thom.RationalComplementVanishing |
| 2 | import OAI.AlgebraicGeometry.CycleClass.Thom.Open.ComplementPurity |
| 3 | import OAI.AlgebraicGeometry.HodgeConjecture.DegreeTwo.RelativeLocalDetection |
| 4 | |
| 5 | /-! # Rational Divisor Neighborhood -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.CycleClass.Thom.RationalDivisorNeighborhood |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! Compare the actual rational-function boundary with the existing divisor |
| 12 | cycle class on algebraic neighborhoods, using native complex normal charts. -/ |
| 13 | |
| 14 | open _root_.CategoryTheory _root_.AlgebraicGeometry _root_.TopologicalSpace |
| 15 | open scoped _root_.Manifold ContDiff |
| 16 | set_option backward.isDefEq.respectTransparency false |
| 17 | set_option backward.isDefEq.respectTransparency.types false |
| 18 | set_option backward.defeqAttrib.useBackward true |
| 19 | |
| 20 | namespace Constructions |
| 21 | open OAI.AlgebraicGeometry.CycleClass.Thom.RationalRegularNormal.Constructions OAI.AlgebraicGeometry.CycleClass.Thom.RationalComplementVanishing.Constructions |
| 22 | RationalBoundary.Constructions.Restriction Open.ComplementPurity.Constructions HodgeConjecture.DegreeTwo.RelativeLocalDetection.Constructions |
| 23 | |
| 24 | theorem exists_rational_comparison_on_regular_support |
| 25 | {V : Foundations.Scheme.IntegralProjective.IntegralProjectiveVariety} {g : V.carrier.functionField} (D : RationalFunctionBoundary.Constructions.Principal.RationalUnitRepresentative V.carrier g) |
| 26 | (Z : Geometric.DimensionCycles.DimensionCycleSupport V 1) |
| 27 | (hO : (DivisorClass.Chern.Line.Bundles.AlgebraicLineBundle.analyticOpen V.presentation D.domain : Set V.analyticSpace) ⊆ |
| 28 | (Set.range Z.analyticInclusion)ᶜ) |
| 29 | (U : V.carrier.Opens) [Nonempty U] (hU : IsAffineOpen U) |
| 30 | (p b c : Γ(V.carrier, U)) (hp : p ≠ 0) |
| 31 | (v : Γ(V.carrier, U)ˣ) (m : ℤ) (hm : m ≠ 0) |
| 32 | (he : g = |
| 33 | V.carrier.germToFunctionField U v * (V.carrier.germToFunctionField U p) ^ m) |
| 34 | (hsm : letI := Foundations.Scheme.SpecScalarTransport.specSectionScalarAlgebra V.structureMap U |
| 35 | Algebra.Smooth ℂ (Localization.Away (Ideal.Quotient.mk (Ideal.span {p}) b))) |
| 36 | (hsupp : ∀ y : DivisorClass.Chern.Line.Bundles.AlgebraicLineBundle.analyticOpen V.presentation U, |
| 37 | DivisorClass.Chern.Line.Bundles.AlgebraicLineBundle.sectionEvaluationOn V.presentation U c y ≠ 0 → |
| 38 | (DivisorClass.Chern.Line.Bundles.AlgebraicLineBundle.sectionEvaluationOn V.presentation U p y = 0 ↔ y.val ∈ Set.range Z.analyticInclusion)) |
| 39 | (x : Z.regularAnalyticSpace) |
| 40 | (hxU : Z.regularAnalyticToAmbient x ∈ DivisorClass.Chern.Line.Bundles.AlgebraicLineBundle.analyticOpen V.presentation U) |
| 41 | (hxb : DivisorClass.Chern.Line.Bundles.AlgebraicLineBundle.sectionEvaluationOn V.presentation U b ⟨Z.regularAnalyticToAmbient x, hxU⟩ ≠ 0) |
| 42 | (hxc : DivisorClass.Chern.Line.Bundles.AlgebraicLineBundle.sectionEvaluationOn V.presentation U c ⟨Z.regularAnalyticToAmbient x, hxU⟩ ≠ 0) : |
| 43 | ∃ W : Opens V.analyticSpace, Z.regularAnalyticToAmbient x ∈ W ∧ |
| 44 | Geometric.RelativeCohomologySections.Cycles.relativeCohomologyOpenRestriction (ModuleCat.of ℚ ℚ) (TopCat.of V.analyticSpace) |
| 45 | (DivisorClass.Chern.Line.Bundles.AlgebraicLineBundle.analyticOpen V.presentation D.domain : Set V.analyticSpace) W 2 |
| 46 | (RationalBoundary.Constructions.Restriction.rationalGlobalBoundary V.presentation D) = |
| 47 | Geometric.RelativeCohomologySections.Cycles.relativeCohomologyOpenRestriction (ModuleCat.of ℚ ℚ) (TopCat.of V.analyticSpace) |
| 48 | (DivisorClass.Chern.Line.Bundles.AlgebraicLineBundle.analyticOpen V.presentation D.domain : Set V.analyticSpace) W 2 |
| 49 | (m • (RationalRegularNormal.Constructions.cycleWithUnitComplement D Z hO)) := by |
| 50 | obtain ⟨P, hPU, hmd, hcoord, _⟩ := |
| 51 | HodgeConjecture.DegreeTwo.RegularSectionFixedPair.Constructions.exists_regular_section_fixedNormalPair V Z U hU p b c hp hsm hsupp x hxU hxb hxc |
| 52 | let k := HodgeConjecture.DegreeTwo.SupportedCycleNormalRestriction.Constructions.regularPairAmbientMap Z x P |
| 53 | have hg : Topology.IsOpenEmbedding k := |
| 54 | Z.regularAmbientOpen.isOpenEmbedding'.comp P.openNeighborhood.isOpenEmbedding' |
| 55 | let O : Set V.analyticSpace := DivisorClass.Chern.Line.Bundles.AlgebraicLineBundle.analyticOpen V.presentation D.domain |
| 56 | have hclass : AlgebraicTopology.Cohomology.Singular.RelativeSequence.relativeSingularCohomologyMap (ModuleCat.of ℚ ℚ) k |
| 57 | (A := k ⁻¹' O) (fun _ hy => hy) 2 (RationalBoundary.Constructions.Restriction.rationalGlobalBoundary V.presentation D) = |
| 58 | AlgebraicTopology.Cohomology.Singular.RelativeSequence.relativeSingularCohomologyMap (ModuleCat.of ℚ ℚ) k |
| 59 | (A := k ⁻¹' O) (fun _ hy => hy) 2 |
| 60 | (m • (RationalRegularNormal.Constructions.cycleWithUnitComplement D Z hO)) := by |
| 61 | rw [map_zsmul] |
| 62 | exact RationalRegularNormal.Constructions.rationalGlobalBoundary_regularNormal D Z U x P hPU hO p hp v m hm he hmd hcoord |
| 63 | obtain ⟨W, hW, hcompare⟩ := HodgeConjecture.DegreeTwo.RelativeLocalDetection.Constructions.relativeClass_eq_on_openEmbedding_range |
| 64 | (ModuleCat.of ℚ ℚ) (TopCat.of V.analyticSpace) O 2 k hg |
| 65 | (RationalBoundary.Constructions.Restriction.rationalGlobalBoundary V.presentation D) |
| 66 | (m • (RationalRegularNormal.Constructions.cycleWithUnitComplement D Z hO)) hclass |
| 67 | refine ⟨W, ?_, hcompare⟩ |
| 68 | rw [← SetLike.mem_coe, hW] |
| 69 | exact ⟨⟨Z.regularComplementInclusion x, P.point_mem_neighborhood⟩, rfl⟩ |
| 70 | |
| 71 | section OffSupport |
| 72 | variable {V : Foundations.Scheme.IntegralProjective.IntegralProjectiveVariety} {g : V.carrier.functionField} |
| 73 | (D : RationalFunctionBoundary.Constructions.Principal.RationalUnitRepresentative V.carrier g) (Z : Geometric.DimensionCycles.DimensionCycleSupport V 1) |
| 74 | (hO : (DivisorClass.Chern.Line.Bundles.AlgebraicLineBundle.analyticOpen V.presentation D.domain : Set V.analyticSpace) ⊆ |
| 75 | (Set.range Z.analyticInclusion)ᶜ) |
| 76 | (U : V.carrier.Opens) [Nonempty U] |
| 77 | (p : Γ(V.carrier, U)) (hp : p ≠ 0) (v : Γ(V.carrier, U)ˣ) (m : ℤ) (hm : m ≠ 0) |
| 78 | (he : g = V.carrier.germToFunctionField U v * (V.carrier.germToFunctionField U p) ^ m) |
| 79 | include hp hm he |
| 80 | /-- Both actual global classes agree on an ambient neighborhood of each |
| 81 | point where the local parameter and the support are absent. -/ |
| 82 | theorem exists_rational_comparison_off_support |
| 83 | (y : DivisorClass.Chern.Line.Bundles.AlgebraicLineBundle.analyticOpen V.presentation U) (hyp : DivisorClass.Chern.Line.Bundles.AlgebraicLineBundle.sectionEvaluationOn V.presentation U p y ≠ 0) |
| 84 | (hyZ : y.val ∉ Set.range Z.analyticInclusion) : |
| 85 | ∃ W : Opens V.analyticSpace, y.val ∈ W ∧ |
| 86 | Geometric.RelativeCohomologySections.Cycles.relativeCohomologyOpenRestriction (ModuleCat.of ℚ ℚ) (TopCat.of V.analyticSpace) |
| 87 | (DivisorClass.Chern.Line.Bundles.AlgebraicLineBundle.analyticOpen V.presentation D.domain : Set V.analyticSpace) W 2 |
| 88 | (RationalBoundary.Constructions.Restriction.rationalGlobalBoundary V.presentation D) = |
| 89 | Geometric.RelativeCohomologySections.Cycles.relativeCohomologyOpenRestriction (ModuleCat.of ℚ ℚ) (TopCat.of V.analyticSpace) |
| 90 | (DivisorClass.Chern.Line.Bundles.AlgebraicLineBundle.analyticOpen V.presentation D.domain : Set V.analyticSpace) W 2 |
| 91 | (m • (RationalRegularNormal.Constructions.cycleWithUnitComplement D Z hO)) := by |
| 92 | let N : Opens V.analyticSpace := |
| 93 | ⟨Subtype.val '' {w : DivisorClass.Chern.Line.Bundles.AlgebraicLineBundle.analyticOpen V.presentation U | DivisorClass.Chern.Line.Bundles.AlgebraicLineBundle.sectionEvaluationOn V.presentation U p w ≠ 0}, |
| 94 | (DivisorClass.Chern.Line.Bundles.AlgebraicLineBundle.analyticOpen V.presentation U).isOpenEmbedding'.isOpenMap _ |
| 95 | (isOpen_ne.preimage (DivisorClass.Chern.Line.Bundles.AlgebraicLineBundle.sectionEvaluationOn V.presentation U p).continuous)⟩ |
| 96 | let K : Opens V.analyticSpace := |
| 97 | ⟨(Set.range Z.analyticInclusion)ᶜ, Z.isClosedEmbedding_analyticInclusion.isClosed_range.isOpen_compl⟩ |
| 98 | let W := N ⊓ K |
| 99 | have hWU : W ≤ DivisorClass.Chern.Line.Bundles.AlgebraicLineBundle.analyticOpen V.presentation U := by |
| 100 | rintro w ⟨⟨t, _, rfl⟩, _⟩ |
| 101 | exact t.property |
| 102 | have hWp : ∀ w : W, DivisorClass.Chern.Line.Bundles.AlgebraicLineBundle.sectionEvaluationOn V.presentation U p ⟨w.val, hWU w.property⟩ ≠ 0 := by |
| 103 | intro w |
| 104 | obtain ⟨t, ht, htw⟩ := w.property.1 |
| 105 | have ht' : t = ⟨w.val, hWU w.property⟩ := Subtype.ext htw |
| 106 | exact ht' ▸ ht |
| 107 | refine ⟨W, ⟨⟨y, hyp, rfl⟩, hyZ⟩, ?_⟩ |
| 108 | rw [RationalComplementVanishing.Constructions.rationalGlobalBoundary_restrict_zero_of_parameter_nonzero V.presentation D U p hp v m hm he W hWU hWp, |
| 109 | map_zsmul, RationalComplementVanishing.Constructions.cycleWithUnitComplement_restrict_away D Z hO W |
| 110 | (fun _ hw => hw.2), smul_zero] |
| 111 | |
| 112 | end OffSupport |
| 113 | |
| 114 | theorem rationalGlobalBoundary_eq_supportedCycle_on_neighborhood |
| 115 | {V : Foundations.Scheme.IntegralProjective.IntegralProjectiveVariety} {g : V.carrier.functionField} (D : RationalFunctionBoundary.Constructions.Principal.RationalUnitRepresentative V.carrier g) |
| 116 | (Z : Geometric.DimensionCycles.DimensionCycleSupport V 1) |
| 117 | (hO : (DivisorClass.Chern.Line.Bundles.AlgebraicLineBundle.analyticOpen V.presentation D.domain : Set V.analyticSpace) ⊆ |
| 118 | (Set.range Z.analyticInclusion)ᶜ) |
| 119 | (U : V.carrier.Opens) [Nonempty U] (hU : IsAffineOpen U) |
| 120 | (p b c : Γ(V.carrier, U)) (hp : p ≠ 0) |
| 121 | (v : Γ(V.carrier, U)ˣ) (m : ℤ) (hm : m ≠ 0) |
| 122 | (he : g = |
| 123 | V.carrier.germToFunctionField U v * (V.carrier.germToFunctionField U p) ^ m) |
| 124 | (hsm : letI := Foundations.Scheme.SpecScalarTransport.specSectionScalarAlgebra V.structureMap U |
| 125 | Algebra.Smooth ℂ (Localization.Away (Ideal.Quotient.mk (Ideal.span {p}) b))) |
| 126 | (hsupp : ∀ y : DivisorClass.Chern.Line.Bundles.AlgebraicLineBundle.analyticOpen V.presentation U, |
| 127 | DivisorClass.Chern.Line.Bundles.AlgebraicLineBundle.sectionEvaluationOn V.presentation U c y ≠ 0 → |
| 128 | (DivisorClass.Chern.Line.Bundles.AlgebraicLineBundle.sectionEvaluationOn V.presentation U p y = 0 ↔ y.val ∈ Set.range Z.analyticInclusion)) |
| 129 | (W : V.carrier.Opens) (hWU : W ≤ U) |
| 130 | (hW : ∀ y : DivisorClass.Chern.Line.Bundles.AlgebraicLineBundle.analyticOpen V.presentation W, |
| 131 | y.val ∈ Z.regularAmbientOpen ∧ |
| 132 | DivisorClass.Chern.Line.Bundles.AlgebraicLineBundle.sectionEvaluationOn V.presentation U b ⟨y.val, hWU y.property⟩ ≠ 0 ∧ |
| 133 | DivisorClass.Chern.Line.Bundles.AlgebraicLineBundle.sectionEvaluationOn V.presentation U c ⟨y.val, hWU y.property⟩ ≠ 0) : |
| 134 | Geometric.RelativeCohomologySections.Cycles.relativeCohomologyOpenRestriction (ModuleCat.of ℚ ℚ) (TopCat.of V.analyticSpace) |
| 135 | (DivisorClass.Chern.Line.Bundles.AlgebraicLineBundle.analyticOpen V.presentation D.domain : Set V.analyticSpace) |
| 136 | (DivisorClass.Chern.Line.Bundles.AlgebraicLineBundle.analyticOpen V.presentation W) 2 (RationalBoundary.Constructions.Restriction.rationalGlobalBoundary V.presentation D) = |
| 137 | Geometric.RelativeCohomologySections.Cycles.relativeCohomologyOpenRestriction (ModuleCat.of ℚ ℚ) (TopCat.of V.analyticSpace) |
| 138 | (DivisorClass.Chern.Line.Bundles.AlgebraicLineBundle.analyticOpen V.presentation D.domain : Set V.analyticSpace) |
| 139 | (DivisorClass.Chern.Line.Bundles.AlgebraicLineBundle.analyticOpen V.presentation W) 2 |
| 140 | (m • (RationalRegularNormal.Constructions.cycleWithUnitComplement D Z hO)) := by |
| 141 | apply HodgeConjecture.DegreeTwo.RelativeLocalDetection.Constructions.relativeClass_restrict_eq_of_local_restrictions (ModuleCat.of ℚ ℚ) |
| 142 | (TopCat.of V.analyticSpace) (DivisorClass.Chern.Line.Bundles.AlgebraicLineBundle.analyticOpen V.presentation D.domain) |
| 143 | (DivisorClass.Chern.Line.Bundles.AlgebraicLineBundle.analyticOpen V.presentation W) 2 |
| 144 | intro y hy _ |
| 145 | have hgood := hW ⟨y, hy⟩ |
| 146 | by_cases hyZ : y ∈ Set.range Z.analyticInclusion |
| 147 | · have hyr : (⟨y, hgood.1⟩ : Z.regularAmbientSpace) ∈ Set.range Z.regularComplementInclusion := by |
| 148 | rw [Z.range_regularComplementInclusion] |
| 149 | exact hyZ |
| 150 | obtain ⟨x, hx⟩ := hyr |
| 151 | have hxy : Z.regularAnalyticToAmbient x = y := congrArg Subtype.val hx |
| 152 | subst y |
| 153 | exact exists_rational_comparison_on_regular_support D Z hO U hU p b c hp |
| 154 | v m hm he hsm hsupp x (hWU hy) hgood.2.1 hgood.2.2 |
| 155 | · let yU : DivisorClass.Chern.Line.Bundles.AlgebraicLineBundle.analyticOpen V.presentation U := ⟨y, hWU hy⟩ |
| 156 | have hyp : DivisorClass.Chern.Line.Bundles.AlgebraicLineBundle.sectionEvaluationOn V.presentation U p yU ≠ 0 := |
| 157 | fun h => hyZ ((hsupp yU hgood.2.2).mp h) |
| 158 | exact exists_rational_comparison_off_support D Z hO U p hp v m hm he yU hyp hyZ |
| 159 | |
| 160 | end Constructions |
| 161 | |
| 162 | end |
| 163 | |
| 164 | end OAI.AlgebraicGeometry.CycleClass.Thom.RationalDivisorNeighborhood |