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.ArithmeticGeometry.OrdinaryLocus.Openness.HomLocalTrivialization |
| 2 | |
| 3 | /-! # Line Bundle Dual -/ |
| 4 | |
| 5 | namespace OAI.ArithmeticGeometry.OrdinaryLocus.Openness.LineBundleDual.Construction |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! Internal Homs and duals of line bundles are line bundles. -/ |
| 10 | |
| 11 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 12 | |
| 13 | universe u |
| 14 | |
| 15 | def homTrivializationAppIso {X : Scheme.{u}} {M N : X.Modules} {U : X.Opens} |
| 16 | (eM : M.over U ≅ SheafOfModules.unit (X.ringCatSheaf.over U)) |
| 17 | (eN : N.over U ≅ SheafOfModules.unit (X.ringCatSheaf.over U)) |
| 18 | (V : U.toScheme.Opens) : |
| 19 | ((SheafHomModule.Construction.sheafHomModule M N).restrict U.ι).val.obj (.op V) ≅ |
| 20 | (LineBundle.Construction.structureSheafModule U.toScheme).val.obj (.op V) := by |
| 21 | let e := HomLocalTrivialization.Construction.localHomCoordinateLinearEquiv eM eN (U.ι ''ᵁ V) (U.ι_image_le V) |
| 22 | refine ModuleCat.isoMk e.toAddEquiv.toAddCommGrpIso ?_ |
| 23 | intro r |
| 24 | ext q |
| 25 | let r' : Γ(X, U.ι ''ᵁ V) := r |
| 26 | let rinv : Γ(X, U.ι ''ᵁ V) := (U.ι.appIso V).inv r |
| 27 | let q' : ModuleHomAdditive.Construction.moduleHomLocalAddSubgroup M N (U.ι ''ᵁ V) := q |
| 28 | change r' * e q' = e (rinv • q') |
| 29 | have hr : rinv = r' := by dsimp [rinv, r']; rw [Scheme.Opens.ι_appIso]; rfl |
| 30 | exact (e.map_smul r' q').symm.trans (congrArg (fun a ↦ e (a • q')) hr.symm) |
| 31 | |
| 32 | def homTrivializationPresheafIso {X : Scheme.{u}} {M N : X.Modules} {U : X.Opens} |
| 33 | (eM : M.over U ≅ SheafOfModules.unit (X.ringCatSheaf.over U)) |
| 34 | (eN : N.over U ≅ SheafOfModules.unit (X.ringCatSheaf.over U)) : |
| 35 | ((SheafHomModule.Construction.sheafHomModule M N).restrict U.ι).val ≅ (LineBundle.Construction.structureSheafModule U.toScheme).val := by |
| 36 | let A : U.toScheme.PresheafOfModules := ((SheafHomModule.Construction.sheafHomModule M N).restrict U.ι).val |
| 37 | let B : U.toScheme.PresheafOfModules := (LineBundle.Construction.structureSheafModule U.toScheme).val |
| 38 | refine PresheafOfModules.isoMk (M₁ := A) (M₂ := B) |
| 39 | (fun V ↦ homTrivializationAppIso eM eN V.unop) ?_ |
| 40 | intro V W h |
| 41 | apply ModuleCat.hom_ext |
| 42 | apply LinearMap.ext |
| 43 | intro q |
| 44 | exact HomLocalTrivialization.Construction.localHomCoordinate_restrict eM eN (U.ι_image_le V.unop) |
| 45 | (U.ι.image_mono (leOfHom h.unop)) q |
| 46 | |
| 47 | def homTrivializationIso {X : Scheme.{u}} {M N : X.Modules} {U : X.Opens} |
| 48 | (eM : M.over U ≅ SheafOfModules.unit (X.ringCatSheaf.over U)) |
| 49 | (eN : N.over U ≅ SheafOfModules.unit (X.ringCatSheaf.over U)) : |
| 50 | (SheafHomModule.Construction.sheafHomModule M N).restrict U.ι ≅ LineBundle.Construction.structureSheafModule U.toScheme := |
| 51 | (Scheme.Modules.fullyFaithfulToPresheafOfModules (X := U.toScheme)).preimageIso |
| 52 | (homTrivializationPresheafIso eM eN) |
| 53 | |
| 54 | theorem isLineBundle_sheafHom {X : Scheme.{u}} {M N : X.Modules} |
| 55 | (hM : LineBundle.Construction.IsLineBundle M) (hN : LineBundle.Construction.IsLineBundle N) : LineBundle.Construction.IsLineBundle (SheafHomModule.Construction.sheafHomModule M N) := by |
| 56 | intro x |
| 57 | obtain ⟨U, hxU, ⟨eM⟩⟩ := hM x |
| 58 | obtain ⟨V, hxV, ⟨eN⟩⟩ := hN x |
| 59 | let W := U ⊓ V |
| 60 | let a := LineBundleQuasicoherent.Construction.lineBundleOverTrivialization W (TensorRestriction.Construction.restrictLineBundleTrivialization inf_le_left eM) |
| 61 | let b := LineBundleQuasicoherent.Construction.lineBundleOverTrivialization W (TensorRestriction.Construction.restrictLineBundleTrivialization inf_le_right eN) |
| 62 | refine ⟨W, ⟨hxU, hxV⟩, ⟨?_⟩⟩ |
| 63 | exact ((Scheme.Modules.restrictFunctorIsoPullback W.ι).app _).symm ≪≫ homTrivializationIso a b |
| 64 | |
| 65 | theorem isLineBundle_dual {X : Scheme.{u}} {M : X.Modules} (hM : LineBundle.Construction.IsLineBundle M) : |
| 66 | LineBundle.Construction.IsLineBundle (SheafHomModule.Construction.lineBundleDual M) := |
| 67 | isLineBundle_sheafHom hM (LineBundle.Construction.isLineBundle_structureSheaf X) |
| 68 | |
| 69 | end |
| 70 | |
| 71 | end OAI.ArithmeticGeometry.OrdinaryLocus.Openness.LineBundleDual.Construction |