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 (c) 2026 Chris Birkbeck. All rights reserved. |
| 3 | Released under Apache 2.0 license as described in the file LICENSE. |
| 4 | Authors: Chris Birkbeck |
| 5 | This file has been modified. |
| 6 | -/ |
| 7 | import Mathlib.LinearAlgebra.TensorProduct.Finiteness |
| 8 | import OAI.AlgebraicGeometry.SheafCohomology.Projective.Evaluation |
| 9 | import OAI.AlgebraicGeometry.SheafCohomology.Projective.Invertible |
| 10 | |
| 11 | /-! # Invertible Evaluation -/ |
| 12 | |
| 13 | namespace OAI.AlgebraicGeometry.SheafCohomology.Projective.InvertibleEvaluation |
| 14 | |
| 15 | noncomputable section |
| 16 | |
| 17 | open _root_.AlgebraicGeometry |
| 18 | open _root_.AlgebraicGeometry.Scheme |
| 19 | open _root_.AlgebraicGeometry.Scheme.Modules |
| 20 | open _root_.SheafOfModules |
| 21 | |
| 22 | set_option backward.defeqAttrib.useBackward true |
| 23 | set_option backward.isDefEq.respectTransparency false |
| 24 | set_option backward.isDefEq.respectTransparency.types false |
| 25 | universe u |
| 26 | open _root_.CategoryTheory MonoidalCategory |
| 27 | |
| 28 | namespace SheafOfModules |
| 29 | |
| 30 | open Opposite |
| 31 | |
| 32 | variable {C : Type u} [Category.{u} C] {J : GrothendieckTopology C} |
| 33 | (R : Sheaf J RingCat.{u}) |
| 34 | |
| 35 | theorem evalSection_unit_mul (U : C) [∀ V, IsMulCommutative (R.obj.obj V)] |
| 36 | (φ : (_root_.SheafOfModules.unit R).over U ⟶ |
| 37 | _root_.SheafOfModules.unit (R.over U)) |
| 38 | (r : (_root_.SheafOfModules.unit R).val.obj (op U)) : |
| 39 | Evaluation.SheafOfModules.evalSection R (_root_.SheafOfModules.unit R) U φ r = |
| 40 | Evaluation.SheafOfModules.evalSection R (_root_.SheafOfModules.unit R) U φ |
| 41 | (show (_root_.SheafOfModules.unit R).val.obj (op U) from (1 : R.obj.obj (op U))) * |
| 42 | (show R.obj.obj (op U) from r) := by |
| 43 | have h := Evaluation.SheafOfModules.evalSection_smul_right R (_root_.SheafOfModules.unit R) U φ |
| 44 | (show R.obj.obj (op U) from r) |
| 45 | (show (_root_.SheafOfModules.unit R).val.obj (op U) from (1 : R.obj.obj (op U))) |
| 46 | rw [show ((show R.obj.obj (op U) from r) • |
| 47 | (show (_root_.SheafOfModules.unit R).val.obj (op U) from (1 : R.obj.obj (op U))) : |
| 48 | (_root_.SheafOfModules.unit R).val.obj (op U)) = r from by |
| 49 | show (show R.obj.obj (op U) from r) * (1 : R.obj.obj (op U)) = r |
| 50 | rw [mul_one]] at h |
| 51 | rw [h, smul_eq_mul] |
| 52 | exact mul_comm' _ _ |
| 53 | |
| 54 | theorem evalSection_unit_one (U : C) |
| 55 | (φ : (_root_.SheafOfModules.unit R).over U ⟶ |
| 56 | _root_.SheafOfModules.unit (R.over U)) : |
| 57 | Evaluation.SheafOfModules.evalSection R (_root_.SheafOfModules.unit R) U φ |
| 58 | (show (_root_.SheafOfModules.unit R).val.obj (op U) from (1 : R.obj.obj (op U))) = |
| 59 | φ.val.app (op (Over.mk (𝟙 U))) |
| 60 | (show (R.over U).obj.obj (op (Over.mk (𝟙 U))) from 1) := by |
| 61 | simp only [Evaluation.SheafOfModules.evalSection_eq] |
| 62 | congr 1 |
| 63 | show R.obj.map (𝟙 U).op (1 : R.obj.obj (op U)) = (1 : R.obj.obj (op U)) |
| 64 | rw [op_id, R.obj.map_id] |
| 65 | rfl |
| 66 | |
| 67 | /-- **Factorization of the evaluation through a trivialization**: for an isomorphism |
| 68 | `ψ: M|ᵤ ≅ 𝒪|ᵤ` on the over-site, every functional is a scalar multiple of `ψ.hom`, and |
| 69 | the evaluation factors accordingly. -/ |
| 70 | theorem evalSection_factor (M : _root_.SheafOfModules R) (U : C) |
| 71 | [∀ V, IsMulCommutative (R.obj.obj V)] |
| 72 | (ψ : M.over U ≅ _root_.SheafOfModules.unit (R.over U)) |
| 73 | (φ : M.over U ⟶ _root_.SheafOfModules.unit (R.over U)) (m : M.val.obj (op U)) : |
| 74 | Evaluation.SheafOfModules.evalSection R M U φ m = |
| 75 | Dual.SheafOfModules.dualUnitSectionsEquiv R U (ψ.inv ≫ φ) * Evaluation.SheafOfModules.evalSection R M U ψ.hom m := by |
| 76 | have hφ : φ = ψ.hom ≫ (ψ.inv ≫ φ) := by rw [Iso.hom_inv_id_assoc] |
| 77 | have hε : (ψ.inv ≫ φ) = Dual.SheafOfModules.overUnitScalarEnd R U (Dual.SheafOfModules.dualUnitSectionsEquiv R U (ψ.inv ≫ φ)) := |
| 78 | ((Dual.SheafOfModules.dualUnitSectionsEquiv R U).symm_apply_apply (ψ.inv ≫ φ)).symm |
| 79 | calc Evaluation.SheafOfModules.evalSection R M U φ m |
| 80 | = Evaluation.SheafOfModules.evalSection R M U (ψ.hom ≫ Dual.SheafOfModules.overUnitScalarEnd R U |
| 81 | (Dual.SheafOfModules.dualUnitSectionsEquiv R U (ψ.inv ≫ φ))) m := by rw [← hε, ← hφ] |
| 82 | _ = Evaluation.SheafOfModules.evalSection R M U (letI := Dual.SheafOfModules.dualSectionsModule R M U |
| 83 | Dual.SheafOfModules.dualUnitSectionsEquiv R U (ψ.inv ≫ φ) • ψ.hom) m := rfl |
| 84 | _ = Dual.SheafOfModules.dualUnitSectionsEquiv R U (ψ.inv ≫ φ) • Evaluation.SheafOfModules.evalSection R M U ψ.hom m := |
| 85 | Evaluation.SheafOfModules.evalSection_smul_left R M U ψ.hom _ m |
| 86 | _ = Dual.SheafOfModules.dualUnitSectionsEquiv R U (ψ.inv ≫ φ) * Evaluation.SheafOfModules.evalSection R M U ψ.hom m := rfl |
| 87 | |
| 88 | /-- Evaluation against (the hom of) a trivialization is bijective: it is the composite of |
| 89 | the section equivalences with the bijective sections-map of an isomorphism. -/ |
| 90 | theorem bijective_evalSection_iso (M : _root_.SheafOfModules R) (U : C) |
| 91 | (ψ : M.over U ≅ _root_.SheafOfModules.unit (R.over U)) : |
| 92 | Function.Bijective (fun m => Evaluation.SheafOfModules.evalSection R M U ψ.hom m) := by |
| 93 | have hcomp : (fun m => Evaluation.SheafOfModules.evalSection R M U ψ.hom m) = |
| 94 | (Dual.SheafOfModules.overUnitSectionEquiv R U).symm ∘ |
| 95 | (fun s => _root_.SheafOfModules.sectionsMap ψ.hom s) ∘ |
| 96 | (Evaluation.SheafOfModules.overSectionEquiv R M U) := rfl |
| 97 | rw [hcomp] |
| 98 | refine Function.Bijective.comp (Equiv.bijective _) |
| 99 | (Function.Bijective.comp ?_ (Equiv.bijective _)) |
| 100 | refine Function.bijective_iff_has_inverse.mpr |
| 101 | ⟨fun s => _root_.SheafOfModules.sectionsMap ψ.inv s, fun s => ?_, fun s => ?_⟩ |
| 102 | · show _root_.SheafOfModules.sectionsMap ψ.inv |
| 103 | (_root_.SheafOfModules.sectionsMap ψ.hom s) = s |
| 104 | rw [← _root_.SheafOfModules.sectionsMap_comp, Iso.hom_inv_id, |
| 105 | _root_.SheafOfModules.sectionsMap_id] |
| 106 | · show _root_.SheafOfModules.sectionsMap ψ.hom |
| 107 | (_root_.SheafOfModules.sectionsMap ψ.inv s) = s |
| 108 | rw [← _root_.SheafOfModules.sectionsMap_comp, Iso.inv_hom_id, |
| 109 | _root_.SheafOfModules.sectionsMap_id] |
| 110 | |
| 111 | end SheafOfModules |
| 112 | |
| 113 | namespace Scheme.Modules |
| 114 | variable {X : Scheme.{u}} |
| 115 | local instance (X : Scheme.{u}) : |
| 116 | ∀ U, IsMulCommutative (X.ringCatSheaf.obj.obj U) := fun U => by |
| 117 | change IsMulCommutative (X.presheaf.obj U) |
| 118 | exact IsMulCommutative.of_comm fun a b => mul_comm a b |
| 119 | |
| 120 | /-- **[PAIR-4′]** On an open where `M` trivializes, the component of the presheaf |
| 121 | evaluation is bijective: conjugate the pairing by the trivialization and its induced |
| 122 | dual-trivialization; the conjugated pairing is the unit multiplication (the component |
| 123 | content of `isIso_ev_unitObj`). Section-level — no functor conjugation. -/ |
| 124 | theorem bijective_evPre_app_of_triv {M : X.Modules} {W : X.Opens} |
| 125 | (e : (Modules.pullback W.ι).obj M ≅ Invertible.Scheme.Modules.unitObj W.toScheme) : |
| 126 | Function.Bijective ((Evaluation.Scheme.Modules.evPre M).app (Opposite.op W)) := by |
| 127 | let := Dual.SheafOfModules.dualSectionsModule X.ringCatSheaf M W |
| 128 | -- the over-trivialization and the packaged bijective evaluation against it |
| 129 | let ψ : M.over W ≅ SheafOfModules.unit (X.ringCatSheaf.over W) := |
| 130 | Invertible.Scheme.Modules.overTrivializationOfRestrictIso M W ((restrictFunctorIsoPullback W.ι).app M ≪≫ e) |
| 131 | let hL : M.val.obj (Opposite.op W) ≃ₗ[X.ringCatSheaf.obj.obj (Opposite.op W)] |
| 132 | X.ringCatSheaf.obj.obj (Opposite.op W) := |
| 133 | LinearEquiv.ofBijective |
| 134 | { toFun := fun m => Evaluation.SheafOfModules.evalSection X.ringCatSheaf M W ψ.hom m |
| 135 | map_add' := fun a b => |
| 136 | Evaluation.SheafOfModules.evalSection_add_right X.ringCatSheaf M W ψ.hom a b |
| 137 | map_smul' := fun c a => |
| 138 | Evaluation.SheafOfModules.evalSection_smul_right X.ringCatSheaf M W ψ.hom c a } |
| 139 | (InvertibleEvaluation.SheafOfModules.bijective_evalSection_iso X.ringCatSheaf M W ψ) |
| 140 | let : CommSemiring ↑(X.ringCatSheaf.obj.obj (Opposite.op W)) := |
| 141 | inferInstanceAs (CommSemiring ↑(X.sheaf.obj.obj (Opposite.op W))) |
| 142 | let : Module ↑(X.ringCatSheaf.obj.obj (Opposite.op W)) |
| 143 | ↑(M.val.obj (Opposite.op W)) := |
| 144 | inferInstanceAs (Module ↑(X.sheaf.obj.obj (Opposite.op W)) |
| 145 | ↑(M.val.obj (Opposite.op W))) |
| 146 | let : Module ↑(X.ringCatSheaf.obj.obj (Opposite.op W)) |
| 147 | ↑((Dual.Scheme.Modules.dualObj M).val.obj (Opposite.op W)) := |
| 148 | inferInstanceAs (Module ↑(X.sheaf.obj.obj (Opposite.op W)) |
| 149 | ↑((Dual.Scheme.Modules.dualObj M).val.obj (Opposite.op W))) |
| 150 | let : Module ((X.sheaf.obj ⋙ forget₂ CommRingCat RingCat).obj (Opposite.op W)) |
| 151 | (TensorProduct (X.sheaf.obj.obj (Opposite.op W)) |
| 152 | (PresheafOfModulesOfCommRing.obj M.val (Opposite.op W)) |
| 153 | (PresheafOfModulesOfCommRing.obj (Dual.Scheme.Modules.dualObj M).val (Opposite.op W))) := |
| 154 | inferInstanceAs (Module (X.sheaf.obj.obj (Opposite.op W)) |
| 155 | (TensorProduct (X.sheaf.obj.obj (Opposite.op W)) |
| 156 | (PresheafOfModulesOfCommRing.obj M.val (Opposite.op W)) |
| 157 | (PresheafOfModulesOfCommRing.obj (Dual.Scheme.Modules.dualObj M).val (Opposite.op W)))) |
| 158 | -- the inverse component `c ↦ hL⁻¹ c ⊗ ψ.hom`, as a hom of module categories |
| 159 | let k : (𝟙_ (_root_.PresheafOfModules |
| 160 | (X.sheaf.obj ⋙ forget₂ CommRingCat RingCat))).obj (Opposite.op W) ⟶ |
| 161 | (M.val ⊗ (Dual.Scheme.Modules.dualObj M).val : _root_.PresheafOfModules |
| 162 | (X.sheaf.obj ⋙ forget₂ CommRingCat RingCat)).obj (Opposite.op W) := |
| 163 | ModuleCat.ofHom |
| 164 | (((TensorProduct.mk (X.ringCatSheaf.obj.obj (Opposite.op W)) |
| 165 | (M.val.obj (Opposite.op W)) ((Dual.Scheme.Modules.dualObj M).val.obj (Opposite.op W))).flip ψ.hom) ∘ₗ |
| 166 | hL.symm.toLinearMap) |
| 167 | have hki : k ≫ (Evaluation.Scheme.Modules.evPre M).app (Opposite.op W) = 𝟙 _ := by |
| 168 | refine ModuleCat.hom_ext (LinearMap.ext fun c => ?_) |
| 169 | simp only [ModuleCat.hom_comp, ModuleCat.hom_id, LinearMap.comp_apply, LinearMap.id_apply] |
| 170 | exact hL.apply_symm_apply c |
| 171 | have hik : (Evaluation.Scheme.Modules.evPre M).app (Opposite.op W) ≫ k = 𝟙 _ := by |
| 172 | refine ModuleCat.MonoidalCategory.tensor_ext fun m φ => ?_ |
| 173 | have hc := InvertibleEvaluation.SheafOfModules.evalSection_factor X.ringCatSheaf M W ψ φ m |
| 174 | -- the inverse image of the evaluation is the scalar times the section |
| 175 | have hsm : hL.symm (Evaluation.SheafOfModules.evalSection X.ringCatSheaf M W φ m) = |
| 176 | Dual.SheafOfModules.dualUnitSectionsEquiv X.ringCatSheaf W (ψ.inv ≫ φ) • m := |
| 177 | hL.injective ((hL.apply_symm_apply _).trans (hc.trans |
| 178 | ((_root_.map_smul hL _ m).trans (smul_eq_mul _ _)).symm)) |
| 179 | -- the scalar times the trivialization is the functional |
| 180 | have hcψ : Dual.SheafOfModules.dualUnitSectionsEquiv X.ringCatSheaf W |
| 181 | (ψ.inv ≫ φ) • ψ.hom = φ := by |
| 182 | show ψ.hom ≫ Dual.SheafOfModules.overUnitScalarEnd X.ringCatSheaf W |
| 183 | (Dual.SheafOfModules.dualUnitSectionsEquiv X.ringCatSheaf W (ψ.inv ≫ φ)) = φ |
| 184 | exact (congrArg (fun t => ψ.hom ≫ t) |
| 185 | ((Dual.SheafOfModules.dualUnitSectionsEquiv |
| 186 | X.ringCatSheaf W).symm_apply_apply (ψ.inv ≫ φ))).trans (Iso.hom_inv_id_assoc ψ φ) |
| 187 | exact (congrArg (fun x => x ⊗ₜ[X.ringCatSheaf.obj.obj (Opposite.op W)] ψ.hom) hsm).trans |
| 188 | ((TensorProduct.smul_tmul _ m ψ.hom).trans (congrArg (fun y => m ⊗ₜ y) hcψ)) |
| 189 | have : IsIso ((Evaluation.Scheme.Modules.evPre M).app (Opposite.op W)) := ⟨k, hik, hki⟩ |
| 190 | exact (ConcreteCategory.isIso_iff_bijective _).mp inferInstance |
| 191 | |
| 192 | /-- **[CMP-PAIR]** For an invertible module the evaluation pairing against the sheaf dual |
| 193 | (consumed from `Picard/Dual.lean`) is an isomorphism onto the unit: the presheaf pairing |
| 194 | is bijective on every open inside the trivializing cover |
| 195 | (`bijective_evPre_app_of_triv` after `restrictTrivialization`), hence locally bijective, |
| 196 | hence inverted by the sheafification. -/ |
| 197 | theorem isIso_eval_of_isInvertible {M : X.Modules} (hM : Invertible.Scheme.Modules.IsInvertible M) : |
| 198 | IsIso (Evaluation.Scheme.Modules.ev M) := by |
| 199 | obtain ⟨ι, U, hU, htriv⟩ := hM |
| 200 | have hw : OfModulesMonoidal.PresheafOfModules.sheafificationW (𝟙 X.ringCatSheaf.obj) (Evaluation.Scheme.Modules.evPre M) := by |
| 201 | refine Invertible.Scheme.Modules.sheafificationW_of_bijective_on_cover (Evaluation.Scheme.Modules.evPre M) U hU (fun i W hW => ?_) |
| 202 | obtain ⟨e⟩ := htriv i |
| 203 | exact bijective_evPre_app_of_triv (Invertible.Scheme.Modules.restrictTrivialization hW e) |
| 204 | rw [OfModulesMonoidal.PresheafOfModules.sheafificationW_iff] at hw |
| 205 | have : IsIso ((PresheafOfModules.sheafification |
| 206 | (𝟙 X.ringCatSheaf.obj)).map (Evaluation.Scheme.Modules.evPre M)) := hw |
| 207 | have : IsIso (Evaluation.Scheme.Modules.ev M) := by |
| 208 | let eSheaf := asIso ((PresheafOfModules.sheafification |
| 209 | (𝟙 X.ringCatSheaf.obj)).map (Evaluation.Scheme.Modules.evPre M)) |
| 210 | let eFinal := eSheaf ≪≫ Invertible.Scheme.Modules.sheafifyValIso (Invertible.Scheme.Modules.unitObj X) |
| 211 | change IsIso eFinal.hom |
| 212 | exact eFinal.isIso_hom |
| 213 | infer_instance |
| 214 | |
| 215 | noncomputable def invertibleEvaluationIso {M : X.Modules} (hM : Invertible.Scheme.Modules.IsInvertible M) : |
| 216 | Invertible.Scheme.Modules.tensorObj M (Dual.Scheme.Modules.dualObj M) ≅ Invertible.Scheme.Modules.unitObj X := by |
| 217 | letI : IsIso (Evaluation.Scheme.Modules.ev M) := isIso_eval_of_isInvertible hM |
| 218 | exact asIso (Evaluation.Scheme.Modules.ev M) |
| 219 | |
| 220 | end Scheme.Modules |
| 221 | |
| 222 | end |
| 223 | |
| 224 | end OAI.AlgebraicGeometry.SheafCohomology.Projective.InvertibleEvaluation |