import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Affine.Frames import OAI.AlgebraicGeometry.SheafCohomology.Projective.OpenRestrictionComposition /-! # Generic Line Frame -/ namespace OAI.AlgebraicGeometry.PELModuli.IntegralModel.GenericLineFrame noncomputable section /-! A line-bundle identification on a nonempty open gives an actual structure-module frame on a nonempty affine open of the ambient scheme. -/ set_option backward.isDefEq.respectTransparency false set_option backward.isDefEq.respectTransparency.types false open _root_.CategoryTheory _root_.AlgebraicGeometry open _root_.AlgebraicGeometry.Scheme.Modules universe u def imageRestrictionIso {X Y : Scheme.{u}} (f : Y ⟶ X) [IsOpenImmersion f] (W : Y.Opens) (M : X.Modules) : M.restrict (f ''ᵁ W).ι ≅ ((M.restrict f).restrict W.ι).restrict (f.isoImage W).inv := (restrictFunctorCongr (f.isoImage_inv_ι W).symm).app M ≪≫ (restrictFunctorComp (f.isoImage W).inv (W.ι ≫ f)).app M ≪≫ (restrictFunctor (f.isoImage W).inv).mapIso ((restrictFunctorComp W.ι f).app M) theorem exists_generic_line_frame {X : Scheme.{u}} (M : X.Modules) (U : X.Opens) [Nonempty U] (L : AbelianModuli.HilbertConstruction.Line.Bundles.LineBundle U.toScheme) (e : M.restrict U.ι ≅ L.sheaf) : ∃ V : X.Opens, V ≤ U ∧ Nonempty V ∧ IsAffineOpen V ∧ Nonempty (M.restrict V.ι ≅ SheafCohomology.Projective.Invertible.Scheme.Modules.unitObj V.toScheme) := by obtain ⟨W, hxW, hW, ⟨b⟩⟩ := L.exists_affine_frame (Classical.arbitrary U) let V : X.Opens := U.ι ''ᵁ W have hV : Nonempty V := ⟨⟨U.ι (Classical.arbitrary U), _, hxW, rfl⟩⟩ let b' : (M.restrict U.ι).restrict W.ι ≅ SheafCohomology.Projective.Invertible.Scheme.Modules.unitObj W.toScheme := (restrictFunctor W.ι).mapIso e ≪≫ (restrictFunctorIsoPullback W.ι).app L.sheaf ≪≫ b exact ⟨V, U.ι_image_le W, hV, hW.image_of_isOpenImmersion U.ι, ⟨imageRestrictionIso U.ι W M ≪≫ (restrictFunctor (U.ι.isoImage W).inv).mapIso b' ≪≫ restrictUnitIso (U.ι.isoImage W).inv⟩⟩ end end OAI.AlgebraicGeometry.PELModuli.IntegralModel.GenericLineFrame