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.Definitions.AlgebraicGeometry.Cycle.Local.Purity |
| 20 | |
| 21 | import HodgeConjecture.Lemmas.AlgebraicGeometry.Cycle.Component.ClosedPointDimension |
| 22 | import HodgeConjecture.Lemmas.AlgebraicGeometry.ComplexPoint.ProjectiveHausdorff |
| 23 | import HodgeConjecture.Lemmas.AlgebraicTopology.LocalHomology.ChartFundamentalClassGenerator |
| 24 | import HodgeConjecture.Lemmas.AlgebraicTopology.LocalHomology.FundamentalClassGenerator |
| 25 | import HodgeConjecture.Lemmas.AlgebraicTopology.LocalHomology.PuncturedEuclidean |
| 26 | |
| 27 | namespace OAI.AlgebraicGeometry.Cycle.LocalPurityOf |
| 28 | |
| 29 | /-! |
| 30 | # Local dual classes on cycle components |
| 31 | |
| 32 | Lemmas about the definitions in |
| 33 | `HodgeConjecture.Definitions.AlgebraicGeometry.Cycle.Local.Purity`. |
| 34 | -/ |
| 35 | |
| 36 | /-! ### Constructions used only in proofs -/ |
| 37 | |
| 38 | noncomputable section |
| 39 | |
| 40 | open _root_.CategoryTheory _root_.Topology |
| 41 | |
| 42 | namespace AlgebraicTopology |
| 43 | open _root_.AlgebraicTopology |
| 44 | namespace Singular |
| 45 | open _root_.AlgebraicTopology |
| 46 | open _root_.OAI.AlgebraicTopology.Singular |
| 47 | |
| 48 | variable {R M : Type*} [Field R] [AddCommGroup M] [Module R M] |
| 49 | |
| 50 | @[simp] |
| 51 | lemma normalizedDual_apply_self (z : M) (hz : z ≠ 0) : |
| 52 | (_root_.OAI.AlgebraicGeometry.Cycle.LocalPurity.AlgebraicTopology.Singular.normalizedDual (R := R) z hz) z = (1 : R) := |
| 53 | Classical.choose_spec (Module.Projective.exists_dual_eq_one R hz) |
| 54 | |
| 55 | @[simp] |
| 56 | lemma relativeCohomologyEquivDualHomology_normalizedRelativeCoclass {R : Type*} [Field R] |
| 57 | {X : TopPair} {n : ℕ} (z : _root_.OAI.AlgebraicTopology.Singular.Cohomology.RelativeHomology R X n) (hz : z ≠ 0) : |
| 58 | _root_.OAI.AlgebraicTopology.Singular.Cohomology.relativeCohomologyEquivDualHomology R X n (_root_.OAI.AlgebraicGeometry.Cycle.LocalPurity.AlgebraicTopology.Singular.normalizedRelativeCoclass z hz) = |
| 59 | _root_.OAI.AlgebraicGeometry.Cycle.LocalPurity.AlgebraicTopology.Singular.normalizedDual z hz := |
| 60 | (_root_.OAI.AlgebraicTopology.Singular.Cohomology.relativeCohomologyEquivDualHomology R X n).apply_symm_apply _ |
| 61 | |
| 62 | @[simp] |
| 63 | lemma normalizedRelativeCoclass_pairing_self {R : Type*} [Field R] {X : TopPair} {n : ℕ} |
| 64 | (z : _root_.OAI.AlgebraicTopology.Singular.Cohomology.RelativeHomology R X n) (hz : z ≠ 0) : |
| 65 | _root_.OAI.AlgebraicTopology.Singular.Cohomology.relativeCohomologyEquivDualHomology R X n (_root_.OAI.AlgebraicGeometry.Cycle.LocalPurity.AlgebraicTopology.Singular.normalizedRelativeCoclass z hz) z = (1 : R) := by |
| 66 | rw [relativeCohomologyEquivDualHomology_normalizedRelativeCoclass, normalizedDual_apply_self] |
| 67 | |
| 68 | /-- The oriented standard complex local class is nonzero in every complex dimension. -/ |
| 69 | lemma standardComplexLocalClass_ne_zero (n : ℕ) : |
| 70 | _root_.OAI.AlgebraicTopology.LocalHomology.ComplexClass.Singular.standardComplexLocalClass ℚ n ≠ 0 := by |
| 71 | rw [_root_.OAI.AlgebraicTopology.LocalHomology.FundamentalClassGenerator.Singular.standardComplexLocalClass_ne_zero_iff] |
| 72 | by_cases hn : n = 0 |
| 73 | · subst n |
| 74 | exact _root_.OAI.AlgebraicTopology.LocalHomology.FundamentalClassGenerator.Singular.standardLocalClass_zero_ne_zero |
| 75 | · exact _root_.OAI.AlgebraicTopology.LocalHomology.PuncturedEuclidean.Singular.standardLocalClass_ne_zero_of_pos (n * 2) (Nat.mul_pos (Nat.pos_of_ne_zero hn) (by |
| 76 | norm_num)) |
| 77 | |
| 78 | /-- Two one-dimensional vector spaces with specified normalized generators are canonically |
| 79 | linearly equivalent by sending the first generator to the second. -/ |
| 80 | def linearEquivOfNormalizedGenerators |
| 81 | {N : Type*} [AddCommGroup N] [Module R N] |
| 82 | (x : M) (hx : x ≠ 0) (hxspan : Submodule.span R {x} = ⊤) |
| 83 | (y : N) (hy : y ≠ 0) (hyspan : Submodule.span R {y} = ⊤) : |
| 84 | M ≃ₗ[R] N := |
| 85 | let f : M →ₗ[R] N := |
| 86 | (LinearMap.toSpanSingleton R N y).comp (_root_.OAI.AlgebraicGeometry.Cycle.LocalPurity.AlgebraicTopology.Singular.normalizedDual x hx) |
| 87 | let g : N →ₗ[R] M := |
| 88 | (LinearMap.toSpanSingleton R M x).comp (_root_.OAI.AlgebraicGeometry.Cycle.LocalPurity.AlgebraicTopology.Singular.normalizedDual y hy) |
| 89 | LinearEquiv.ofLinearMap f g |
| 90 | (by |
| 91 | apply LinearMap.ext |
| 92 | intro n |
| 93 | obtain ⟨a, rfl⟩ := (Submodule.span_singleton_eq_top_iff R y).mp hyspan n |
| 94 | simp [f, g, normalizedDual_apply_self]) |
| 95 | (by |
| 96 | apply LinearMap.ext |
| 97 | intro m |
| 98 | obtain ⟨a, rfl⟩ := (Submodule.span_singleton_eq_top_iff R x).mp hxspan m |
| 99 | simp [f, g, normalizedDual_apply_self]) |
| 100 | |
| 101 | end Singular |
| 102 | end AlgebraicTopology |
| 103 | |
| 104 | end |
| 105 | |
| 106 | noncomputable section |
| 107 | |
| 108 | open _root_.CategoryTheory _root_.Topology |
| 109 | |
| 110 | namespace AlgebraicTopology |
| 111 | open _root_.AlgebraicTopology |
| 112 | namespace Singular |
| 113 | open _root_.AlgebraicTopology |
| 114 | open _root_.OAI.AlgebraicTopology.Singular |
| 115 | |
| 116 | variable {R M : Type*} [Field R] [AddCommGroup M] [Module R M] |
| 117 | |
| 118 | /-- A normalized dual is unique when its distinguished vector generates the module. -/ |
| 119 | lemma normalizedDual_unique {z : M} (hz : z ≠ 0) |
| 120 | (hzspan : Submodule.span R {z} = ⊤) |
| 121 | (φ : Module.Dual R M) (hφ : φ z = 1) : |
| 122 | φ = _root_.OAI.AlgebraicGeometry.Cycle.LocalPurity.AlgebraicTopology.Singular.normalizedDual z hz := by |
| 123 | ext y |
| 124 | obtain ⟨a, rfl⟩ := (Submodule.span_singleton_eq_top_iff R z).mp hzspan y |
| 125 | simp [hφ] |
| 126 | |
| 127 | section Coclass |
| 128 | |
| 129 | variable {R : Type*} [Field R] {X : TopPair} {n : ℕ} |
| 130 | |
| 131 | /-- The normalization condition characterizes the normalized coclass. -/ |
| 132 | lemma normalizedRelativeCoclass_unique {z : _root_.OAI.AlgebraicTopology.Singular.Cohomology.RelativeHomology R X n} (hz : z ≠ 0) |
| 133 | (hzspan : Submodule.span R {z} = ⊤) (β : _root_.OAI.AlgebraicTopology.Singular.Cohomology.RelativeCohomology R X n) |
| 134 | (hβ : _root_.OAI.AlgebraicTopology.Singular.Cohomology.relativeCohomologyEquivDualHomology R X n β z = 1) : |
| 135 | β = _root_.OAI.AlgebraicGeometry.Cycle.LocalPurity.AlgebraicTopology.Singular.normalizedRelativeCoclass z hz := |
| 136 | (_root_.OAI.AlgebraicTopology.Singular.Cohomology.relativeCohomologyEquivDualHomology R X n).injective <| by |
| 137 | rw [relativeCohomologyEquivDualHomology_normalizedRelativeCoclass] |
| 138 | exact normalizedDual_unique hz hzspan _ hβ |
| 139 | |
| 140 | end Coclass |
| 141 | |
| 142 | @[simp] |
| 143 | lemma linearEquivOfNormalizedGenerators_apply |
| 144 | {N : Type*} [AddCommGroup N] [Module R N] |
| 145 | (x : M) (hx : x ≠ 0) (hxspan : Submodule.span R {x} = ⊤) |
| 146 | (y : N) (hy : y ≠ 0) (hyspan : Submodule.span R {y} = ⊤) |
| 147 | (z : M) : |
| 148 | linearEquivOfNormalizedGenerators x hx hxspan y hy hyspan z = |
| 149 | (_root_.OAI.AlgebraicGeometry.Cycle.LocalPurity.AlgebraicTopology.Singular.normalizedDual (R := R) x hx z : R) • y := |
| 150 | rfl |
| 151 | |
| 152 | @[simp] |
| 153 | lemma linearEquivOfNormalizedGenerators_apply_generator |
| 154 | {N : Type*} [AddCommGroup N] [Module R N] |
| 155 | (x : M) (hx : x ≠ 0) (hxspan : Submodule.span R {x} = ⊤) |
| 156 | (y : N) (hy : y ≠ 0) (hyspan : Submodule.span R {y} = ⊤) : |
| 157 | linearEquivOfNormalizedGenerators x hx hxspan y hy hyspan x = y := by simp |
| 158 | |
| 159 | end Singular |
| 160 | end AlgebraicTopology |
| 161 | |
| 162 | end |
| 163 | |
| 164 | end OAI.AlgebraicGeometry.Cycle.LocalPurityOf |