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.Cohomology.SingularSheafComparison |
| 18 | |
| 19 | /-! # Sheaf Cochain Resolution -/ |
| 20 | |
| 21 | namespace OAI.AlgebraicTopology.Singular.SheafCochainResolution |
| 22 | |
| 23 | noncomputable section |
| 24 | |
| 25 | /-! |
| 26 | # The singular-cochain resolution of a constant sheaf |
| 27 | |
| 28 | The map from a constant sheaf to its sheafified singular-cochain complex is a monomorphism, and |
| 29 | a quasi-isomorphism on a space with a basis of contractible open sets. |
| 30 | -/ |
| 31 | |
| 32 | open _root_.CategoryTheory Filter Limits _root_.TopologicalSpace |
| 33 | |
| 34 | section |
| 35 | |
| 36 | set_option backward.isDefEq.respectTransparency false in |
| 37 | /-- The constant-to-singular-cochain resolution is a monomorphism of complexes. -/ |
| 38 | lemma constantsToSingularCochainSheafComplex_mono |
| 39 | (R : Type) [CommRing R] (Y : TopCat.{0}) : |
| 40 | Mono (SheafCochain.constantsToSingularCochainSheafComplex R Y) := by |
| 41 | apply HomologicalComplex.mono_of_mono_f |
| 42 | intro n |
| 43 | cases n with |
| 44 | | zero => |
| 45 | change Mono (SheafCochain.constantsToSingularCochainZeroSheaf R Y) |
| 46 | exact SheafCochainAt.constantsToSingularCochainZeroSheaf_mono R Y |
| 47 | | succ n => |
| 48 | exact (HomologicalComplex.isZero_single_obj_X (ComplexShape.up ℕ) 0 |
| 49 | 𝓒(Y; R) (n + 1) (by lia)).mono _ |
| 50 | |
| 51 | /-- Extending the constant-to-singular-cochain resolution to integer degrees remains monic. -/ |
| 52 | lemma constantsToSingularCochainComplexInt_mono |
| 53 | (R : Type) [CommRing R] (Y : TopCat.{0}) : |
| 54 | Mono (HomologicalComplex.extendMap |
| 55 | (SheafCochain.constantsToSingularCochainSheafComplex R Y) ComplexShape.embeddingUpNat) := by |
| 56 | let a := SheafCochain.constantsToSingularCochainSheafComplex R Y |
| 57 | let : Mono a := constantsToSingularCochainSheafComplex_mono R Y |
| 58 | apply HomologicalComplex.mono_of_mono_f |
| 59 | intro n |
| 60 | by_cases hn : ∃ m : ℕ, (m : ℤ) = n |
| 61 | · obtain ⟨m, rfl⟩ := hn |
| 62 | change Mono ((HomologicalComplex.extendMap a ComplexShape.embeddingUpNat).f (m : ℤ)) |
| 63 | rw [HomologicalComplex.extendMap_f a ComplexShape.embeddingUpNat |
| 64 | (i := m) (i' := (m : ℤ)) rfl] |
| 65 | infer_instance |
| 66 | · exact (((CochainComplex.single₀ (TopCat.Sheaf AddCommGrpCat Y)).obj |
| 67 | 𝓒(Y; R)).isZero_extend_X |
| 68 | ComplexShape.embeddingUpNat n (fun i hi ↦ hn ⟨i, hi⟩)).mono _ |
| 69 | |
| 70 | end |
| 71 | |
| 72 | universe u |
| 73 | |
| 74 | variable (R : Type u) [CommRing R] {U X : TopCat.{u}} (j : U ⟶ X) |
| 75 | |
| 76 | lemma contractibleOpenBasis_of_isOpenEmbedding |
| 77 | (hj : Topology.IsOpenEmbedding j) |
| 78 | (hX : ∀ (x : X) (V : Opens X), x ∈ V → |
| 79 | ∃ (W : Opens X), x ∈ W ∧ ContractibleSpace W ∧ W ≤ V) : |
| 80 | ∀ (x : U) (V : Opens U), x ∈ V → |
| 81 | ∃ (W : Opens U), x ∈ W ∧ ContractibleSpace W ∧ W ≤ V := by |
| 82 | intro x V hxV |
| 83 | let Vi : Opens X := ⟨j '' (V : Set U), (hj.isOpen_iff_image_isOpen).mp V.2⟩ |
| 84 | have hjx : j x ∈ Vi := ⟨x, hxV, rfl⟩ |
| 85 | obtain ⟨W, hjxW, hWcontractible, hWVi⟩ := hX (j x) Vi hjx |
| 86 | let W' : Opens U := |
| 87 | ⟨j ⁻¹' (W : Set X), W.2.preimage j.hom.continuous⟩ |
| 88 | have hWrange : (W : Set X) ⊆ Set.range j := by |
| 89 | intro y hy |
| 90 | obtain ⟨z, hz, hzy⟩ := hWVi hy |
| 91 | exact ⟨z, hzy⟩ |
| 92 | have hW'contractible : ContractibleSpace W' := by |
| 93 | change ContractibleSpace (j ⁻¹' (W : Set X)) |
| 94 | exact (hj.toIsEmbedding.homeomorphOfSubsetRange hWrange).contractibleSpace_iff.mpr |
| 95 | hWcontractible |
| 96 | refine ⟨W', hjxW, hW'contractible, ?_⟩ |
| 97 | intro y hy |
| 98 | obtain ⟨z, hz, hzy⟩ := hWVi hy |
| 99 | exact hj.toIsEmbedding.injective hzy ▸ hz |
| 100 | |
| 101 | lemma locallyPathConnectedSpace_of_contractibleOpenBasis |
| 102 | (hX : ∀ (x : X) (V : Opens X), x ∈ V → |
| 103 | ∃ (W : Opens X), x ∈ W ∧ ContractibleSpace W ∧ W ≤ V) : |
| 104 | LocallyPathConnectedSpace X := by |
| 105 | refine ⟨fun x ↦ hasBasis_self.mpr fun S hS ↦ ?_⟩ |
| 106 | obtain ⟨V, hVS, hVopen, hxV⟩ := mem_nhds_iff.mp hS |
| 107 | let Vo : Opens X := ⟨V, hVopen⟩ |
| 108 | obtain ⟨W, hxW, hWcontractible, hWVo⟩ := hX x Vo hxV |
| 109 | refine ⟨(W : Set X), W.2.mem_nhds hxW, ?_, ?_⟩ |
| 110 | · rw [isPathConnected_iff_pathConnectedSpace] |
| 111 | infer_instance |
| 112 | · exact fun y hy ↦ hVS (hWVo hy) |
| 113 | |
| 114 | lemma constantsToSingularCochainSheafComplex_quasiIso_of_contractibleOpenBasis |
| 115 | (hX : ∀ (x : X) (V : Opens X), x ∈ V → |
| 116 | ∃ (W : Opens X), x ∈ W ∧ ContractibleSpace W ∧ W ≤ V) : |
| 117 | QuasiIso (SheafCochain.constantsToSingularCochainSheafComplex R X) := by |
| 118 | let : LocallyPathConnectedSpace X := |
| 119 | locallyPathConnectedSpace_of_contractibleOpenBasis hX |
| 120 | constructor |
| 121 | intro n |
| 122 | cases n with |
| 123 | | zero => exact SheafCochainAt.constantsToSingularCochainSheafComplex_quasiIsoAt_zero R X |
| 124 | | succ n => |
| 125 | exact SheafCochainAt.constantsToSingularCochainSheafComplex_quasiIsoAt_succ_of_contractibleOpenBasis |
| 126 | R X hX n |
| 127 | |
| 128 | end |
| 129 | |
| 130 | end OAI.AlgebraicTopology.Singular.SheafCochainResolution |