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 |
| 2 | import OAI.Analysis.DifferentialForms.Manifold.Algebra |
| 3 | import OAI.Analysis.DifferentialForms.Manifold.ManifoldBidegree |
| 4 | import OAI.Analysis.DifferentialForms.Manifold.Derivative |
| 5 | import OAI.Analysis.DifferentialForms.Coordinates |
| 6 | |
| 7 | /-! # Pairing Continuity -/ |
| 8 | |
| 9 | namespace OAI.Analysis.HodgeTheory.PairingContinuity |
| 10 | |
| 11 | /-! |
| 12 | # PairingContinuity: persistence of a nonzero top-form pairing |
| 13 | |
| 14 | The first theorem has exactly the hypotheses and conclusion of the committed |
| 15 | PairingContinuity specification. It uses no statement stubs. The supplied topology and |
| 16 | pairing retain their intended meanings: C∞ convergence of forms on the fixed |
| 17 | compact quotient, and the integral of the first form wedged with the conjugate |
| 18 | of the second. Their geometric construction is not an assertion of this file. |
| 19 | |
| 20 | The second part connects the prerequisite outputs, with named hypotheses: |
| 21 | * `h_LocalApproximation` is the approximation conclusion of LocalApproximation, using its actual period |
| 22 | coordinates. `NewSignsSplitting` groups the first four conjuncts in the output. |
| 23 | * `h_ThetaKernel_continuous` is the continuity clause of ThetaKernel restricted to admissible |
| 24 | compact periods, with the distinguished-place prescription fixed. |
| 25 | `h_ThetaKernel_nonzero` specifies the already chosen nonzero Schwartz input. |
| 26 | * `h_PolarizedPairing` is the strict-positivity clause of PolarizedPairing, specialized to the supplied |
| 27 | conjugate pairing on complex surfaces. Purity and closedness are explicit. |
| 28 | PolarizedPairing's proposed integral operator is undefined in its committed specification; |
| 29 | the pairing therefore remains the same explicit interface as in PairingContinuity. |
| 30 | * GaussianConvergence is unnecessary once the ThetaKernel continuity output is supplied. ThetaKernel's |
| 31 | factorization and level clauses are also unnecessary for this implication. |
| 32 | |
| 33 | Pairing continuity is needed in addition to these prerequisite outputs; it is |
| 34 | already a natural hypothesis of the committed PairingContinuity target, not a new condition. |
| 35 | Instantiating the shared smooth topology, actual integration, and period-chart |
| 36 | identifications remains geometric interface work, as in the specifications. |
| 37 | -/ |
| 38 | |
| 39 | open scoped _root_.Manifold ContDiff _root_.Topology |
| 40 | |
| 41 | abbrev SurfaceTwoForm (X : Type*) [TopologicalSpace X] |
| 42 | [ChartedSpace (Fin 2 → ℂ) X] := |
| 43 | DifferentialForms.Manifold.Algebra.SmoothManifoldForm (Fin 2 → ℂ) X 2 |
| 44 | |
| 45 | /-- The committed PairingContinuity implication, with every original hypothesis retained. -/ |
| 46 | theorem persistence_of_nonzero_top_form_pairing |
| 47 | {X Φ RationalSplitting : Type*} |
| 48 | [TopologicalSpace X] [CompactSpace X] [T2Space X] |
| 49 | [ChartedSpace (Fin 2 → ℂ) X] |
| 50 | [IsManifold 𝓘(ℂ, Fin 2 → ℂ) ∞ X] |
| 51 | (smoothTopology : TopologicalSpace (SurfaceTwoForm X)) |
| 52 | (theta : Φ → RationalSplitting → SurfaceTwoForm X) |
| 53 | (pairing : SurfaceTwoForm X → SurfaceTwoForm X → ℂ) |
| 54 | (φ : Φ) |
| 55 | (s₀ : RationalSplitting) |
| 56 | (admissible : RationalSplitting → Prop) |
| 57 | (s : ℕ → RationalSplitting) |
| 58 | (h_admissible : ∀ n, admissible (s n)) |
| 59 | (h_converges : |
| 60 | letI := smoothTopology |
| 61 | Filter.Tendsto (fun n => theta φ (s n)) |
| 62 | Filter.atTop (𝓝 (theta φ s₀))) |
| 63 | (h_pairing_continuous : |
| 64 | letI := smoothTopology |
| 65 | ContinuousAt (fun η => pairing (theta φ s₀) η) |
| 66 | (theta φ s₀)) |
| 67 | (h_self : pairing (theta φ s₀) (theta φ s₀) ≠ 0) : |
| 68 | ∃ s' : RationalSplitting, |
| 69 | admissible s' ∧ |
| 70 | pairing (theta φ s₀) (theta φ s') ≠ 0 := by |
| 71 | let _ := smoothTopology |
| 72 | have h_limit := h_pairing_continuous.tendsto.comp h_converges |
| 73 | obtain ⟨n, hn⟩ := (h_limit.eventually_ne h_self).exists |
| 74 | exact ⟨s n, h_admissible n, hn⟩ |
| 75 | |
| 76 | /-- Approximation in parameter space and continuity suffice; only the |
| 77 | admissible parameter values need lie in the continuity domain. -/ |
| 78 | theorem exists_pairing_ne_zero_of_approximation |
| 79 | {P F S : Type*} [PseudoMetricSpace P] [TopologicalSpace F] |
| 80 | (p₀ : P) (period : S → P) (admissible : S → Prop) |
| 81 | (theta : P → F) (pairing : F → F → ℂ) |
| 82 | (h_approx : ∀ ε : ℝ, 0 < ε → |
| 83 | ∃ s, admissible s ∧ dist (period s) p₀ < ε) |
| 84 | (h_theta : ContinuousWithinAt theta |
| 85 | {p | ∃ s, admissible s ∧ period s = p} p₀) |
| 86 | (h_pairing : ContinuousAt (pairing (theta p₀)) (theta p₀)) |
| 87 | (h_self : pairing (theta p₀) (theta p₀) ≠ 0) : |
| 88 | ∃ s, admissible s ∧ pairing (theta p₀) (theta (period s)) ≠ 0 := by |
| 89 | have h_ne := (h_pairing.tendsto.comp h_theta).eventually_ne h_self |
| 90 | obtain ⟨ε, hε, hball⟩ := Metric.mem_nhdsWithin_iff.mp h_ne |
| 91 | obtain ⟨s, hs, hdist⟩ := h_approx ε hε |
| 92 | exact ⟨s, hs, hball ⟨hdist, ⟨s, hs, rfl⟩⟩⟩ |
| 93 | |
| 94 | open OAI.Analysis.DifferentialForms.Coordinates.LocalApproximation _root_.Module |
| 95 | open scoped _root_.Matrix.Norms.Elementwise |
| 96 | |
| 97 | /-- Exactly the orthogonality, nondegeneracy, orthocomplement, and new-sign |
| 98 | conditions in the conclusion of the committed LocalApproximation specification. -/ |
| 99 | def NewSignsSplitting |
| 100 | {E Place : Type*} [Field E] [Algebra ℚ E] [NumberField E] |
| 101 | [NumberField.IsCMField E] |
| 102 | (σ : Place → E →ₐ[ℚ] ℂ) (a : Fin 2 → E) |
| 103 | (dNew : Fin 2 → Place → Bool) (η : Place → ℝ) |
| 104 | (b : Basis (Fin 2) E (DifferentialForms.Coordinates.LocalApproximation.W E)) : Prop := |
| 105 | DifferentialForms.Coordinates.LocalApproximation.hermitian a (b 0) (b 1) = 0 ∧ |
| 106 | (∀ i, DifferentialForms.Coordinates.LocalApproximation.hermitian a (b i) (b i) ≠ 0) ∧ |
| 107 | (∀ y : DifferentialForms.Coordinates.LocalApproximation.W E, y ∈ Submodule.span E {b 1} ↔ DifferentialForms.Coordinates.LocalApproximation.hermitian a (b 0) y = 0) ∧ |
| 108 | (∀ i τ, 0 < (AlgebraicGeometry.ComplexMultiplication.SignSwitch.CM.signValue (dNew i τ) : ℝ) * |
| 109 | η τ * (σ τ (DifferentialForms.Coordinates.LocalApproximation.hermitian a (b i) (b i))).re) |
| 110 | |
| 111 | /-- Conditional manuscript application for the same chosen total Schwartz |
| 112 | input. LocalApproximation is assumed as a proposition, never invoked as a statement stub. |
| 113 | The old and new forms live on the same compact complex surface. -/ |
| 114 | theorem persistence_from_prerequisites |
| 115 | {E Place X Φ : Type*} |
| 116 | [Field E] [Algebra ℚ E] [NumberField E] |
| 117 | [IsGalois ℚ E] [NumberField.IsCMField E] [Fintype Place] |
| 118 | [TopologicalSpace X] [CompactSpace X] [T2Space X] |
| 119 | [SecondCountableTopology X] [ChartedSpace (Fin 2 → ℂ) X] |
| 120 | [IsManifold 𝓘(ℂ, Fin 2 → ℂ) ∞ X] |
| 121 | [IsManifold 𝓘(ℝ, Fin 2 → ℂ) ∞ X] |
| 122 | (σ : Place → E →ₐ[ℚ] ℂ) (μ : Place) |
| 123 | (a : Fin 2 → E) (dOld dNew : Fin 2 → Place → Bool) |
| 124 | (η : Place → ℝ) (Qμ : X → Submodule ℂ DifferentialForms.Coordinates.LocalApproximation.MuAmbient) |
| 125 | (smoothTopology : TopologicalSpace (SurfaceTwoForm X)) |
| 126 | (theta : Φ → DifferentialForms.Coordinates.LocalApproximation.PeriodData Place X μ → SurfaceTwoForm X) |
| 127 | (pairing : SurfaceTwoForm X → SurfaceTwoForm X → ℂ) |
| 128 | (φ : Φ) |
| 129 | (h_LocalApproximation : ∀ ε : ℝ, 0 < ε → |
| 130 | ∃ b : Basis (Fin 2) E (DifferentialForms.Coordinates.LocalApproximation.W E), |
| 131 | DifferentialForms.Coordinates.LocalApproximation.hermitian a (b 0) (b 1) = 0 ∧ |
| 132 | (∀ i, DifferentialForms.Coordinates.LocalApproximation.hermitian a (b i) (b i) ≠ 0) ∧ |
| 133 | (∀ y : DifferentialForms.Coordinates.LocalApproximation.W E, |
| 134 | y ∈ Submodule.span E {b 1} ↔ DifferentialForms.Coordinates.LocalApproximation.hermitian a (b 0) y = 0) ∧ |
| 135 | (∀ i τ, 0 < (AlgebraicGeometry.ComplexMultiplication.SignSwitch.CM.signValue (dNew i τ) : ℝ) * |
| 136 | η τ * (σ τ (DifferentialForms.Coordinates.LocalApproximation.hermitian a (b i) (b i))).re) ∧ |
| 137 | (∀ τ : {τ : Place // τ ≠ μ}, |
| 138 | dist ((DifferentialForms.Coordinates.LocalApproximation.totalPeriod σ μ Qμ b dNew).2 τ) |
| 139 | ((DifferentialForms.Coordinates.LocalApproximation.totalPeriod σ μ Qμ (Pi.basisFun E (Fin 2)) dOld).2 τ) < ε) ∧ |
| 140 | (DifferentialForms.Coordinates.LocalApproximation.totalPeriod σ μ Qμ b dNew).1 = |
| 141 | (DifferentialForms.Coordinates.LocalApproximation.totalPeriod σ μ Qμ (Pi.basisFun E (Fin 2)) dOld).1) |
| 142 | (h_ThetaKernel_continuous : |
| 143 | let _ := smoothTopology |
| 144 | ContinuousWithinAt (fun p => theta φ (Qμ, p)) |
| 145 | {p | ∃ b : Basis (Fin 2) E (DifferentialForms.Coordinates.LocalApproximation.W E), |
| 146 | NewSignsSplitting σ a dNew η b ∧ |
| 147 | (DifferentialForms.Coordinates.LocalApproximation.totalPeriod σ μ Qμ b dNew).2 = p} |
| 148 | (DifferentialForms.Coordinates.LocalApproximation.totalPeriod σ μ Qμ (Pi.basisFun E (Fin 2)) dOld).2) |
| 149 | (h_ThetaKernel_nonzero : |
| 150 | theta φ (DifferentialForms.Coordinates.LocalApproximation.totalPeriod σ μ Qμ (Pi.basisFun E (Fin 2)) dOld) ≠ 0) |
| 151 | (h_type : DifferentialForms.Manifold.ManifoldBidegree.HasManifoldBidegree (Fin 2 → ℂ) X 2 0 |
| 152 | (theta φ (DifferentialForms.Coordinates.LocalApproximation.totalPeriod σ μ Qμ (Pi.basisFun E (Fin 2)) dOld)).val) |
| 153 | (h_closed : DifferentialForms.Manifold.Algebra.SmoothManifoldForm.d |
| 154 | (theta φ (DifferentialForms.Coordinates.LocalApproximation.totalPeriod σ μ Qμ (Pi.basisFun E (Fin 2)) dOld)) = 0) |
| 155 | (h_PolarizedPairing : ∀ form : SurfaceTwoForm X, |
| 156 | DifferentialForms.Manifold.ManifoldBidegree.HasManifoldBidegree (Fin 2 → ℂ) X 2 0 form.val → |
| 157 | DifferentialForms.Manifold.Algebra.SmoothManifoldForm.d form = 0 → form ≠ 0 → |
| 158 | 0 < (Complex.I ^ (2 * 2) * pairing form form).re) |
| 159 | (h_pairing_continuous : |
| 160 | let _ := smoothTopology |
| 161 | let ξ := theta φ (DifferentialForms.Coordinates.LocalApproximation.totalPeriod σ μ Qμ (Pi.basisFun E (Fin 2)) dOld) |
| 162 | ContinuousAt (pairing ξ) ξ) : |
| 163 | ∃ b : Basis (Fin 2) E (DifferentialForms.Coordinates.LocalApproximation.W E), |
| 164 | NewSignsSplitting σ a dNew η b ∧ |
| 165 | (DifferentialForms.Coordinates.LocalApproximation.totalPeriod σ μ Qμ b dNew).1 = |
| 166 | (DifferentialForms.Coordinates.LocalApproximation.totalPeriod σ μ Qμ (Pi.basisFun E (Fin 2)) dOld).1 ∧ |
| 167 | pairing (theta φ (DifferentialForms.Coordinates.LocalApproximation.totalPeriod σ μ Qμ (Pi.basisFun E (Fin 2)) dOld)) |
| 168 | (theta φ (DifferentialForms.Coordinates.LocalApproximation.totalPeriod σ μ Qμ b dNew)) ≠ 0 := by |
| 169 | classical |
| 170 | let _ := smoothTopology |
| 171 | let p₀ := (DifferentialForms.Coordinates.LocalApproximation.totalPeriod σ μ Qμ (Pi.basisFun E (Fin 2)) dOld).2 |
| 172 | let period := fun b : Basis (Fin 2) E (DifferentialForms.Coordinates.LocalApproximation.W E) => (DifferentialForms.Coordinates.LocalApproximation.totalPeriod σ μ Qμ b dNew).2 |
| 173 | let Θ := fun p => theta φ (Qμ, p) |
| 174 | have h_approx : ∀ ε : ℝ, 0 < ε → |
| 175 | ∃ b, NewSignsSplitting σ a dNew η b ∧ dist (period b) p₀ < ε := by |
| 176 | intro ε hε |
| 177 | obtain ⟨b, horth, hnondeg, hcompl, hsign, hdist, _⟩ := h_LocalApproximation ε hε |
| 178 | exact ⟨b, ⟨horth, hnondeg, hcompl, hsign⟩, (dist_pi_lt_iff hε).mpr hdist⟩ |
| 179 | have h_self : pairing (Θ p₀) (Θ p₀) ≠ 0 := by |
| 180 | intro hz |
| 181 | have hpos := h_PolarizedPairing (Θ p₀) h_type h_closed h_ThetaKernel_nonzero |
| 182 | simp only [hz, mul_zero, Complex.zero_re, lt_self_iff_false] at hpos |
| 183 | obtain ⟨b, hb, hpair⟩ := exists_pairing_ne_zero_of_approximation |
| 184 | p₀ period (NewSignsSplitting σ a dNew η) Θ pairing |
| 185 | h_approx h_ThetaKernel_continuous h_pairing_continuous h_self |
| 186 | exact ⟨b, hb, rfl, hpair⟩ |
| 187 | |
| 188 | end OAI.Analysis.HodgeTheory.PairingContinuity |