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