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