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 | /- |
| 2 | Copyright 2026 The Formal Conjectures Authors. |
| 3 | |
| 4 | Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | you may not use this file except in compliance with the License. |
| 6 | You may obtain a copy of the License at |
| 7 | |
| 8 | https://www.apache.org/licenses/LICENSE-2.0 |
| 9 | |
| 10 | Unless required by applicable law or agreed to in writing, software |
| 11 | distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | See the License for the specific language governing permissions and |
| 14 | limitations under the License. |
| 15 | This file has been modified. |
| 16 | -/ |
| 17 | import OAI.Analysis.Foundations.NormedSpaceWedgeCovectors |
| 18 | import Mathlib.Analysis.Calculus.DifferentialForm.Basic |
| 19 | |
| 20 | /-! # Exact Wedge -/ |
| 21 | |
| 22 | namespace OAI.Analysis.DifferentialForms.ExactWedge.DifferentialForm |
| 23 | |
| 24 | noncomputable section |
| 25 | |
| 26 | /-! |
| 27 | # Wedges of exact one-forms |
| 28 | |
| 29 | Wedging the differentials of `p` scalar functions, all differentiated within one set, gives a |
| 30 | differential `p`-form on that set. This file proves it is closed, by identifying it with the |
| 31 | pullback of the constant volume form on `ℂ^p` along the map assembling the functions and applying |
| 32 | naturality of the exterior derivative. |
| 33 | |
| 34 | Multiplying such a wedge by an analytic scalar therefore has exterior derivative the wedge of the |
| 35 | scalar's differential with it — the only case of the Leibniz rule the holomorphic de Rham complex |
| 36 | needs. |
| 37 | -/ |
| 38 | |
| 39 | open _root_.ContinuousAlternatingMap |
| 40 | open scoped ContDiff |
| 41 | |
| 42 | /-- A wedge of derivatives is the pullback of the standard constant volume form. -/ |
| 43 | lemma wedgeFDerivWithin_eq_standardVolumeForm_comp |
| 44 | (E : Type*) [NormedAddCommGroup E] [NormedSpace ℂ E] |
| 45 | (p : ℕ) (f : Fin p → E → ℂ) (s : Set E) (x : E) |
| 46 | (hf : ∀ i, DifferentiableWithinAt ℂ (f i) s x) |
| 47 | (hs : UniqueDiffWithinAt ℂ s x) : |
| 48 | Foundations.NormedSpaceWedgeCovectors.ContinuousAlternatingMap.wedgeCovectors ℂ E (fun i ↦ fderivWithin ℂ (f i) s x) = |
| 49 | (Foundations.NormedSpaceWedgeCovectors.ContinuousAlternatingMap.standardVolumeForm (Fin p)).compContinuousLinearMap |
| 50 | (fderivWithin ℂ (fun y i ↦ f i y) s x) := by |
| 51 | refine ContinuousAlternatingMap.ext fun v ↦ ?_ |
| 52 | rw [Foundations.NormedSpaceWedgeCovectors.ContinuousAlternatingMap.wedgeCovectors_apply_eq_det, |
| 53 | ContinuousAlternatingMap.compContinuousLinearMap_apply, |
| 54 | Foundations.NormedSpaceWedgeCovectors.ContinuousAlternatingMap.standardVolumeForm, Foundations.NormedSpaceWedgeCovectors.ContinuousAlternatingMap.wedgeCovectors_apply_eq_det] |
| 55 | congr 1 |
| 56 | rw [fderivWithin_pi hf hs] |
| 57 | simp |
| 58 | |
| 59 | /-- A wedge of differentials of scalar functions, all differentiated within the same set. -/ |
| 60 | def exactWedgeWithin (E : Type*) [NormedAddCommGroup E] [NormedSpace ℂ E] |
| 61 | (p : ℕ) (f : Fin p → E → ℂ) (s : Set E) : |
| 62 | E → E [⋀^Fin p]→L[ℂ] ℂ := |
| 63 | fun x ↦ Foundations.NormedSpaceWedgeCovectors.ContinuousAlternatingMap.wedgeCovectors ℂ E (fun i ↦ fderivWithin ℂ (f i) s x) |
| 64 | |
| 65 | /-- A wedge of exact one-forms is closed. The proof identifies it with the pullback of the |
| 66 | constant volume form and applies naturality of the exterior derivative. -/ |
| 67 | lemma extDerivWithin_exactWedgeWithin_eq_zero |
| 68 | (E : Type*) [NormedAddCommGroup E] [NormedSpace ℂ E] |
| 69 | (p : ℕ) (f : Fin p → E → ℂ) (s : Set E) (x : E) |
| 70 | (hs : IsOpen s) (hx : x ∈ s) |
| 71 | (hf : ∀ i, ContDiffOn ℂ ω (f i) s) : |
| 72 | extDerivWithin (exactWedgeWithin E p f s) s x = 0 := by |
| 73 | let F : E → (Fin p → ℂ) := fun y i ↦ f i y |
| 74 | let η : (Fin p → ℂ) → (Fin p → ℂ) [⋀^Fin p]→L[ℂ] ℂ := |
| 75 | fun _ ↦ Foundations.NormedSpaceWedgeCovectors.ContinuousAlternatingMap.standardVolumeForm (Fin p) |
| 76 | have hF : ContDiffWithinAt ℂ ω F s x := contDiffWithinAt_pi.2 fun i ↦ hf i x hx |
| 77 | have hEq : Set.EqOn (exactWedgeWithin E p f s) |
| 78 | (fun y ↦ (η (F y)).compContinuousLinearMap |
| 79 | (fderivWithin ℂ F s y)) s := by |
| 80 | intro y hy |
| 81 | exact wedgeFDerivWithin_eq_standardVolumeForm_comp E p f s y |
| 82 | (fun i ↦ (hf i y hy).differentiableWithinAt (by simp)) |
| 83 | (hs.uniqueDiffWithinAt hy) |
| 84 | rw [extDerivWithin_congr' hEq hx] |
| 85 | rw [extDerivWithin_pullback |
| 86 | (hω := differentiableAt_const (x := F x) (Foundations.NormedSpaceWedgeCovectors.ContinuousAlternatingMap.standardVolumeForm (Fin p)) |>.differentiableWithinAt) |
| 87 | (hf := hF) (hr := by simp) (hs := hs.uniqueDiffOn) |
| 88 | (hxc := by simpa [hs.interior_eq] using (show x ∈ closure s from subset_closure hx)) |
| 89 | (hxs := hx) (hst := Set.mapsTo_univ F s)] |
| 90 | have hη : extDerivWithin η Set.univ (F x) = 0 := by |
| 91 | rw [extDerivWithin, show fderivWithin ℂ η Set.univ (F x) = 0 from |
| 92 | congrFun (fderivWithin_const (𝕜 := ℂ) (E := Fin p → ℂ) |
| 93 | (s := Set.univ) (Foundations.NormedSpaceWedgeCovectors.ContinuousAlternatingMap.standardVolumeForm (Fin p))) (F x)] |
| 94 | exact map_zero _ |
| 95 | rw [hη] |
| 96 | refine ContinuousAlternatingMap.ext fun v ↦ ?_ |
| 97 | simp [ContinuousAlternatingMap.compContinuousLinearMap_apply] |
| 98 | |
| 99 | lemma exactWedgeWithin_differentiableWithinAt |
| 100 | (E : Type*) [NormedAddCommGroup E] [NormedSpace ℂ E] |
| 101 | (p : ℕ) (f : Fin p → E → ℂ) (s : Set E) (x : E) |
| 102 | (hs : IsOpen s) (hx : x ∈ s) |
| 103 | (hf : ∀ i, ContDiffOn ℂ ω (f i) s) : |
| 104 | DifferentiableWithinAt ℂ (exactWedgeWithin E p f s) s x := by |
| 105 | let F : E → (Fin p → ℂ) := fun y i ↦ f i y |
| 106 | let η : (Fin p → ℂ) → (Fin p → ℂ) [⋀^Fin p]→L[ℂ] ℂ := |
| 107 | fun _ ↦ Foundations.NormedSpaceWedgeCovectors.ContinuousAlternatingMap.standardVolumeForm (Fin p) |
| 108 | have hF : ContDiffWithinAt ℂ ω F s x := contDiffWithinAt_pi.2 fun i ↦ hf i x hx |
| 109 | have hDF : DifferentiableWithinAt ℂ (fderivWithin ℂ F s) s x := |
| 110 | (hF.fderivWithin_right (m := 1) hs.uniqueDiffOn (by simp) hx).differentiableWithinAt |
| 111 | one_ne_zero |
| 112 | have hPull : DifferentiableWithinAt ℂ |
| 113 | (fun y ↦ (η (F y)).compContinuousLinearMap (fderivWithin ℂ F s y)) s x := |
| 114 | DifferentiableWithinAt.continuousAlternatingMapCompContinuousLinearMap |
| 115 | (differentiableWithinAt_const (c := Foundations.NormedSpaceWedgeCovectors.ContinuousAlternatingMap.standardVolumeForm (Fin p))) hDF |
| 116 | apply hPull.congr |
| 117 | · intro y hy |
| 118 | exact wedgeFDerivWithin_eq_standardVolumeForm_comp E p f s y |
| 119 | (fun i ↦ (hf i y hy).differentiableWithinAt (by simp)) |
| 120 | (hs.uniqueDiffWithinAt hy) |
| 121 | · exact wedgeFDerivWithin_eq_standardVolumeForm_comp E p f s x |
| 122 | (fun i ↦ (hf i x hx).differentiableWithinAt (by simp)) |
| 123 | (hs.uniqueDiffWithinAt hx) |
| 124 | |
| 125 | /-- Exterior differentiation of `a · df₁ ∧ ⋯ ∧ dfₚ` gives |
| 126 | `da ∧ df₁ ∧ ⋯ ∧ dfₚ`. -/ |
| 127 | lemma extDerivWithin_smul_exactWedgeWithin |
| 128 | (E : Type*) [NormedAddCommGroup E] [NormedSpace ℂ E] |
| 129 | (p : ℕ) (a : E → ℂ) (f : Fin p → E → ℂ) (s : Set E) (x : E) |
| 130 | (hs : IsOpen s) (hx : x ∈ s) (ha : ContDiffOn ℂ ω a s) |
| 131 | (hf : ∀ i, ContDiffOn ℂ ω (f i) s) : |
| 132 | extDerivWithin (fun y ↦ a y • exactWedgeWithin E p f s y) s x = |
| 133 | Foundations.NormedSpaceWedgeCovectors.ContinuousAlternatingMap.wedgeCovectors ℂ E |
| 134 | (Fin.cases (fderivWithin ℂ a s x) |
| 135 | (fun i ↦ fderivWithin ℂ (f i) s x)) := by |
| 136 | rw [extDerivWithin, fderivWithin_fun_smul |
| 137 | (hs.uniqueDiffWithinAt hx) |
| 138 | ((ha x hx).differentiableWithinAt (by simp)) |
| 139 | (exactWedgeWithin_differentiableWithinAt E p f s x hs hx hf), |
| 140 | ContinuousAlternatingMap.alternatizeUncurryFin_add, |
| 141 | ContinuousAlternatingMap.alternatizeUncurryFin_smul] |
| 142 | change a x • extDerivWithin (exactWedgeWithin E p f s) s x + _ = _ |
| 143 | rw [extDerivWithin_exactWedgeWithin_eq_zero E p f s x hs hx hf, smul_zero, zero_add] |
| 144 | rw [Foundations.NormedSpaceWedgeCovectors.ContinuousAlternatingMap.wedgeCovectors_succ p] |
| 145 | rfl |
| 146 | |
| 147 | end |
| 148 | |
| 149 | end OAI.Analysis.DifferentialForms.ExactWedge.DifferentialForm |