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.SheafRestriction |
| 2 | |
| 3 | /-! # Tensor Restriction -/ |
| 4 | |
| 5 | namespace OAI.ArithmeticGeometry.OrdinaryLocus.Openness.TensorRestriction.Construction |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! Tensor products commute with restriction to open subschemes. -/ |
| 10 | |
| 11 | open _root_.CategoryTheory _root_.AlgebraicGeometry MonoidalCategory |
| 12 | |
| 13 | universe u |
| 14 | |
| 15 | local instance (X : Scheme.{u}) : MonoidalCategory X.PresheafOfModules := |
| 16 | PresheafOfModulesOfCommRing.monoidalCategory (R := X.presheaf) |
| 17 | |
| 18 | local instance {R S : Type u} [CommRing R] [CommRing S] (e : R ≃+* S) : |
| 19 | RingHomInvPair e.toRingHom e.symm.toRingHom := RingHomInvPair.of_ringEquiv e |
| 20 | |
| 21 | local instance {R S : Type u} [CommRing R] [CommRing S] (e : R ≃+* S) : |
| 22 | RingHomInvPair e.symm.toRingHom e.toRingHom := |
| 23 | RingHomInvPair.of_ringEquiv e.symm |
| 24 | |
| 25 | def restrictScalarsSemilinearEquiv {R S : Type u} [CommRing R] [CommRing S] |
| 26 | (e : R ≃+* S) (M : ModuleCat.{u} S) : |
| 27 | (ModuleCat.restrictScalars e.toRingHom).obj M ≃ₛₗ[e.toRingHom] M where |
| 28 | toFun := id |
| 29 | invFun := id |
| 30 | left_inv _ := rfl |
| 31 | right_inv _ := rfl |
| 32 | map_add' _ _ := rfl |
| 33 | map_smul' _ _ := rfl |
| 34 | |
| 35 | /-- Restricting scalars along a ring isomorphism commutes with tensor products. -/ |
| 36 | def restrictScalarsTensorIso {R S : Type u} [CommRing R] [CommRing S] |
| 37 | (e : R ≃+* S) (M N : ModuleCat.{u} S) : |
| 38 | (ModuleCat.restrictScalars e.toRingHom).obj M ⊗ |
| 39 | (ModuleCat.restrictScalars e.toRingHom).obj N ≅ |
| 40 | (ModuleCat.restrictScalars e.toRingHom).obj (M ⊗ N) := by |
| 41 | let t := TensorProduct.congr (restrictScalarsSemilinearEquiv e M) |
| 42 | (restrictScalarsSemilinearEquiv e N) |
| 43 | exact ModuleCat.isoMk t.toAddEquiv.toAddCommGrpIso (fun r ↦ by |
| 44 | ext x |
| 45 | exact (t.map_smulₛₗ r x).symm) |
| 46 | |
| 47 | theorem restrictScalarsTensorIso_hom_tmul {R S : Type u} [CommRing R] [CommRing S] |
| 48 | (e : R ≃+* S) (M N : ModuleCat.{u} S) (m : M) (n : N) : |
| 49 | (restrictScalarsTensorIso e M N).hom (m ⊗ₜ[R] n) = m ⊗ₜ[S] n := rfl |
| 50 | |
| 51 | /-- Tensoring module presheaves commutes with open restriction. -/ |
| 52 | def restrictPresheafTensorIso {X Y : Scheme.{u}} (f : X ⟶ Y) [IsOpenImmersion f] |
| 53 | (M N : Y.PresheafOfModules) : |
| 54 | (SheafRestriction.Construction.restrictModulePresheaf f).obj M ⊗ (SheafRestriction.Construction.restrictModulePresheaf f).obj N ≅ |
| 55 | (SheafRestriction.Construction.restrictModulePresheaf f).obj (M ⊗ N) := by |
| 56 | refine PresheafOfModules.isoMk (fun U ↦ ?_) ?_ |
| 57 | · exact restrictScalarsTensorIso |
| 58 | (f.appIso U.unop).symm.commRingCatIsoToRingEquiv |
| 59 | (M.obj (.op (f ''ᵁ U.unop))) (N.obj (.op (f ''ᵁ U.unop))) |
| 60 | · intro U V h |
| 61 | apply ModuleCat.MonoidalCategory.tensor_ext |
| 62 | intro m n |
| 63 | rfl |
| 64 | |
| 65 | /-- Tensoring module sheaves commutes with restriction to an open subscheme. -/ |
| 66 | def restrictSheafTensorIso {X Y : Scheme.{u}} (f : X ⟶ Y) [IsOpenImmersion f] |
| 67 | (M N : Y.Modules) : |
| 68 | SheafTensor.Construction.sheafTensor (M.restrict f) (N.restrict f) ≅ (SheafTensor.Construction.sheafTensor M N).restrict f := |
| 69 | (PresheafOfModules.sheafification (𝟙 X.ringCatSheaf.obj)).mapIso |
| 70 | (restrictPresheafTensorIso f M.val N.val) ≪≫ |
| 71 | SheafRestriction.Construction.restrictSheafificationIso f (M.val ⊗ N.val) |
| 72 | |
| 73 | /-- The pullback description of the tensor-restriction isomorphism. -/ |
| 74 | def pullbackSheafTensorIso_of_openImmersion {X Y : Scheme.{u}} |
| 75 | (f : X ⟶ Y) [IsOpenImmersion f] (M N : Y.Modules) : |
| 76 | (Scheme.Modules.pullback f).obj (SheafTensor.Construction.sheafTensor M N) ≅ |
| 77 | SheafTensor.Construction.sheafTensor ((Scheme.Modules.pullback f).obj M) ((Scheme.Modules.pullback f).obj N) := |
| 78 | ((Scheme.Modules.restrictFunctorIsoPullback f).app (SheafTensor.Construction.sheafTensor M N)).symm ≪≫ |
| 79 | (restrictSheafTensorIso f M N).symm ≪≫ |
| 80 | SheafTensor.Construction.sheafTensorCongr ((Scheme.Modules.restrictFunctorIsoPullback f).app M) |
| 81 | ((Scheme.Modules.restrictFunctorIsoPullback f).app N) |
| 82 | |
| 83 | /-- A trivialization remains a trivialization after shrinking its open domain. -/ |
| 84 | def restrictLineBundleTrivialization {X : Scheme.{u}} {M : X.Modules} |
| 85 | {U V : X.Opens} (hVU : V ≤ U) |
| 86 | (e : (Scheme.Modules.pullback U.ι).obj M ≅ LineBundle.Construction.structureSheafModule U.toScheme) : |
| 87 | (Scheme.Modules.pullback V.ι).obj M ≅ LineBundle.Construction.structureSheafModule V.toScheme := |
| 88 | (Scheme.Modules.pullbackCongr (X.homOfLE_ι hVU).symm).app M ≪≫ |
| 89 | ((Scheme.Modules.pullbackComp (X.homOfLE hVU) U.ι).app M).symm ≪≫ |
| 90 | (Scheme.Modules.pullback (X.homOfLE hVU)).mapIso e ≪≫ |
| 91 | LineBundle.Construction.pullbackStructureSheafIso (X.homOfLE hVU) |
| 92 | |
| 93 | /-- The tensor product of two line bundles is a line bundle. -/ |
| 94 | theorem isLineBundle_sheafTensor {X : Scheme.{u}} {M N : X.Modules} |
| 95 | (hM : LineBundle.Construction.IsLineBundle M) (hN : LineBundle.Construction.IsLineBundle N) : LineBundle.Construction.IsLineBundle (SheafTensor.Construction.sheafTensor M N) := by |
| 96 | intro x |
| 97 | obtain ⟨U, hxU, ⟨eU⟩⟩ := hM x |
| 98 | obtain ⟨V, hxV, ⟨eV⟩⟩ := hN x |
| 99 | refine ⟨U ⊓ V, ⟨hxU, hxV⟩, ⟨?_⟩⟩ |
| 100 | exact pullbackSheafTensorIso_of_openImmersion (U ⊓ V).ι M N ≪≫ |
| 101 | SheafTensor.Construction.sheafTensorCongr (restrictLineBundleTrivialization inf_le_left eU) |
| 102 | (restrictLineBundleTrivialization inf_le_right eV) ≪≫ |
| 103 | SheafTensor.Construction.sheafTensorUnitLeft (LineBundle.Construction.structureSheafModule (U ⊓ V).toScheme) |
| 104 | |
| 105 | /-- Nonnegative tensor powers of a sheaf of modules. -/ |
| 106 | def sheafTensorPower {X : Scheme.{u}} (M : X.Modules) : ℕ → X.Modules |
| 107 | | 0 => LineBundle.Construction.structureSheafModule X |
| 108 | | n + 1 => SheafTensor.Construction.sheafTensor (sheafTensorPower M n) M |
| 109 | |
| 110 | theorem isLineBundle_sheafTensorPower {X : Scheme.{u}} {M : X.Modules} |
| 111 | (hM : LineBundle.Construction.IsLineBundle M) (n : ℕ) : LineBundle.Construction.IsLineBundle (Construction.sheafTensorPower M n) := by |
| 112 | induction n with |
| 113 | | zero => exact LineBundle.Construction.isLineBundle_structureSheaf X |
| 114 | | succ n ih => exact isLineBundle_sheafTensor ih hM |
| 115 | |
| 116 | end |
| 117 | |
| 118 | end OAI.ArithmeticGeometry.OrdinaryLocus.Openness.TensorRestriction.Construction |