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 | import OAI.AlgebraicTopology.Cohomology.Singular.SheafGluing |
| 2 | import Mathlib.Topology.LocallyConstant.Algebra |
| 3 | |
| 4 | /-! # Orientation Coefficients -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.DivisorClass.Chern.Sheaf.OrientationCoefficients |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | section |
| 11 | |
| 12 | /-! |
| 13 | # ChernClass: actual sections of an oriented sheaf supported on a closed subspace |
| 14 | |
| 15 | A global section whose germ is a basis at every support point identifies |
| 16 | all sections with locally constant scalar functions on the support. |
| 17 | Local constancy follows from equality of actual germs. Surjectivity glues |
| 18 | scalar multiples of the original section with zero off the closed support. |
| 19 | -/ |
| 20 | |
| 21 | open _root_.CategoryTheory _root_.CategoryTheory.Limits Opposite _root_.TopologicalSpace |
| 22 | open OAI.AlgebraicTopology.Cohomology.Singular.SheafGluing |
| 23 | |
| 24 | set_option backward.isDefEq.respectTransparency false |
| 25 | set_option backward.isDefEq.respectTransparency.types false |
| 26 | set_option backward.defeqAttrib.useBackward true |
| 27 | |
| 28 | variable {X : TopCat.{0}} {S : Type} [TopologicalSpace S] |
| 29 | variable (F : TopCat.Sheaf (ModuleCat.{0} ℚ) X) (f : S → X) |
| 30 | variable (e : ∀ x, F.presheaf.stalk (f x) ≅ ModuleCat.of ℚ ℚ) |
| 31 | |
| 32 | def sheafOrientationCoefficient |
| 33 | (s : F.obj.obj (op (⊤ : Opens X))) (x : S) : ℚ := |
| 34 | (e x).hom (F.presheaf.germ ⊤ (f x) trivial s) |
| 35 | |
| 36 | variable (σ : F.obj.obj (op (⊤ : Opens X))) |
| 37 | variable (hσ : ∀ x, sheafOrientationCoefficient F f e σ x = 1) |
| 38 | |
| 39 | include σ hσ in |
| 40 | theorem sheafOrientationCoefficient_locallyConstant (hf : Continuous f) |
| 41 | (s : F.obj.obj (op (⊤ : Opens X))) : |
| 42 | IsLocallyConstant (sheafOrientationCoefficient F f e s) := by |
| 43 | apply (IsLocallyConstant.iff_exists_open _).mpr |
| 44 | intro x |
| 45 | let q := sheafOrientationCoefficient F f e s x |
| 46 | have hg : F.presheaf.germ ⊤ (f x) trivial s = |
| 47 | F.presheaf.germ ⊤ (f x) trivial (q • σ) := by |
| 48 | apply (e x).toLinearEquiv.injective |
| 49 | change q = (e x).hom (F.presheaf.germ ⊤ (f x) trivial (q • σ)) |
| 50 | rw [map_smul, map_smul] |
| 51 | change q = q * sheafOrientationCoefficient F f e σ x |
| 52 | rw [hσ, mul_one] |
| 53 | obtain ⟨U, hx, i, j, hu⟩ := F.presheaf.germ_eq (U := ⊤) (V := ⊤) |
| 54 | (f x) trivial trivial s (q • σ) hg |
| 55 | refine ⟨f ⁻¹' (U : Set X), U.isOpen.preimage hf, hx, ?_⟩ |
| 56 | intro y hy |
| 57 | have hy' := congrArg (F.presheaf.germ U (f y) hy) hu |
| 58 | simp only [TopCat.Presheaf.germ_res_apply] at hy' |
| 59 | have hc := congrArg (e y).hom hy' |
| 60 | rw [map_smul, map_smul] at hc |
| 61 | change sheafOrientationCoefficient F f e s y = |
| 62 | q * sheafOrientationCoefficient F f e σ y at hc |
| 63 | simpa only [hσ, mul_one] using hc |
| 64 | |
| 65 | def sheafOrientationCoefficients (hf : Continuous f) : |
| 66 | F.obj.obj (op (⊤ : Opens X)) →ₗ[ℚ] LocallyConstant S ℚ where |
| 67 | toFun s := ⟨sheafOrientationCoefficient F f e s, |
| 68 | sheafOrientationCoefficient_locallyConstant F f e σ hσ hf s⟩ |
| 69 | map_add' s t := by |
| 70 | apply LocallyConstant.ext |
| 71 | intro x |
| 72 | exact map_add ((F.presheaf.germ ⊤ (f x) trivial) ≫ (e x).hom).hom s t |
| 73 | map_smul' q s := by |
| 74 | apply LocallyConstant.ext |
| 75 | intro x |
| 76 | exact map_smul ((F.presheaf.germ ⊤ (f x) trivial) ≫ (e x).hom).hom q s |
| 77 | |
| 78 | theorem sheafOrientationCoefficients_injective (hf : Continuous f) |
| 79 | (hz : ∀ y, y ∉ Set.range f → IsZero (F.presheaf.stalk y)) : |
| 80 | Function.Injective (sheafOrientationCoefficients F f e σ hσ hf) := by |
| 81 | intro s t h |
| 82 | apply TopCat.Presheaf.section_ext F ⊤ |
| 83 | intro y _ |
| 84 | by_cases hy : y ∈ Set.range f |
| 85 | · obtain ⟨x, rfl⟩ := hy |
| 86 | apply (e x).toLinearEquiv.injective |
| 87 | exact congrArg (fun g : LocallyConstant S ℚ => g x) h |
| 88 | · exact @Subsingleton.elim _ (ModuleCat.subsingleton_of_isZero (hz y hy)) _ _ |
| 89 | |
| 90 | end |
| 91 | |
| 92 | /-! Locally constant coefficients glue to actual sections on the original closed support. -/ |
| 93 | |
| 94 | open _root_.CategoryTheory _root_.CategoryTheory.Limits Opposite _root_.TopologicalSpace |
| 95 | open OAI.AlgebraicTopology.Cohomology.Singular.SheafGluing |
| 96 | |
| 97 | set_option backward.isDefEq.respectTransparency false |
| 98 | set_option backward.isDefEq.respectTransparency.types false |
| 99 | set_option backward.defeqAttrib.useBackward true |
| 100 | |
| 101 | variable {X : TopCat.{0}} {S : Type} [TopologicalSpace S] |
| 102 | variable (F : TopCat.Sheaf (ModuleCat.{0} ℚ) X) (f : S → X) |
| 103 | variable (e : ∀ x, F.presheaf.stalk (f x) ≅ ModuleCat.of ℚ ℚ) |
| 104 | variable (σ : F.obj.obj (op (⊤ : Opens X))) |
| 105 | variable (hσ : ∀ x, sheafOrientationCoefficient F f e σ x = 1) |
| 106 | |
| 107 | theorem sheafOrientationCoefficients_surjective (hf : Topology.IsClosedEmbedding f) |
| 108 | (hz : ∀ y, y ∉ Set.range f → IsZero (F.presheaf.stalk y)) : |
| 109 | Function.Surjective (sheafOrientationCoefficients F f e σ hσ hf.continuous) := by |
| 110 | intro g |
| 111 | have hopen (x : S) : ∃ U : Opens X, |
| 112 | f x ∈ U ∧ ∀ y, f y ∈ U → g y = g x := by |
| 113 | obtain ⟨U, hU, heq⟩ := hf.isInducing.isOpen_iff.mp (g.isLocallyConstant.isOpen_fiber (g x)) |
| 114 | refine ⟨⟨U, hU⟩, ?_, ?_⟩ |
| 115 | · change x ∈ f ⁻¹' U |
| 116 | rw [heq] |
| 117 | rfl |
| 118 | · intro y hy |
| 119 | have : y ∈ f ⁻¹' U := hy |
| 120 | rwa [heq] at this |
| 121 | choose U hx hval using hopen |
| 122 | let O : Opens X := ⟨(Set.range f)ᶜ, hf.isClosed_range.isOpen_compl⟩ |
| 123 | let a (x : S) : F.obj.obj (op (U x)) := |
| 124 | g x • F.obj.map (homOfLE (le_top : U x ≤ ⊤)).op σ |
| 125 | have hcover : iSup U ⊔ O = ⊤ := by |
| 126 | apply top_unique |
| 127 | intro y _ |
| 128 | by_cases hy : y ∈ Set.range f |
| 129 | · obtain ⟨x, rfl⟩ := hy |
| 130 | exact Or.inl ((le_iSup U x) (hx x)) |
| 131 | · exact Or.inr hy |
| 132 | have hcompat : ∀ i j (y : X) (hi : y ∈ U i) (hj : y ∈ U j), |
| 133 | F.presheaf.germ (U i) y hi (a i) = F.presheaf.germ (U j) y hj (a j) := by |
| 134 | intro i j y hi hj |
| 135 | by_cases hy : y ∈ Set.range f |
| 136 | · obtain ⟨x, rfl⟩ := hy |
| 137 | have hij : g i = g j := (hval i x hi).symm.trans (hval j x hj) |
| 138 | simp only [a, map_smul, TopCat.Presheaf.germ_res_apply, hij] |
| 139 | · exact @Subsingleton.elim _ (ModuleCat.subsingleton_of_isZero (hz y hy)) _ _ |
| 140 | obtain ⟨s, hs, _⟩ := AlgebraicTopology.Cohomology.Singular.SheafGluing.existsUnique_moduleSheafSection_with_zero F O U hcover a hcompat |
| 141 | (fun y hy => hz y hy) |
| 142 | refine ⟨s, ?_⟩ |
| 143 | apply LocallyConstant.ext |
| 144 | intro x |
| 145 | change sheafOrientationCoefficient F f e s x = g x |
| 146 | have hg := congrArg (F.presheaf.germ (U x) (f x) (hx x)) (hs.1 x) |
| 147 | simp only [a, map_smul, TopCat.Presheaf.germ_res_apply] at hg |
| 148 | have hc := congrArg (e x).hom hg |
| 149 | rw [map_smul] at hc |
| 150 | change sheafOrientationCoefficient F f e s x = |
| 151 | g x * sheafOrientationCoefficient F f e σ x at hc |
| 152 | simpa only [hσ, mul_one] using hc |
| 153 | |
| 154 | def sheafOrientationCoefficientsEquiv (hf : Topology.IsClosedEmbedding f) |
| 155 | (hz : ∀ y, y ∉ Set.range f → IsZero (F.presheaf.stalk y)) : |
| 156 | F.obj.obj (op (⊤ : Opens X)) ≃ₗ[ℚ] LocallyConstant S ℚ := |
| 157 | LinearEquiv.ofBijective (sheafOrientationCoefficients F f e σ hσ hf.continuous) |
| 158 | ⟨sheafOrientationCoefficients_injective F f e σ hσ hf.continuous hz, |
| 159 | sheafOrientationCoefficients_surjective F f e σ hσ hf hz⟩ |
| 160 | |
| 161 | end |
| 162 | |
| 163 | end OAI.AlgebraicGeometry.DivisorClass.Chern.Sheaf.OrientationCoefficients |