The qcqs lemma: sections over a basic open of a qcqs scheme are a localisation
ProvedFamousTheorems.qcqs_lemma_basic_open_localization_7aThe qcqs lemma. Let be a scheme and an open subset that is quasi-compact and quasi-separated. For every section , the restriction map exhibits as the localization , where is the open set on which is invertible.
For affine this is part of the construction of the structure sheaf. The quasi-compact quasi-separated case, again named by Vakil, is used to show that pushforwards of quasi-coherent sheaves along qcqs morphisms are quasi-coherent. It is also used to show that the global sections functor on a qcqs scheme behaves well under localization.
Formalization note. Mathlib's AlgebraicGeometry.isLocalization_basicOpen_of_qcqs. X.basicOpen f is , and IsLocalization.Away f S says that is the localization of at the powers of , via the restriction map.
import Mathlib
namespace FamousTheorems
open Opposite
theorem qcqs_lemma_basic_open_localization_7a {X : AlgebraicGeometry.Scheme} {U : X.Opens} (hU : IsCompact U.carrier) (hU' : IsQuasiSeparated U.carrier)
(f : X.presheaf.obj (op U)) : IsLocalization.Away f (X.presheaf.obj (op (X.basicOpen f))) := by sorry
end FamousTheorems