Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Attach one affine open in a Nagata compactification

Proved
AlgebraicGeometry.exists_proper_compactification_sup_of_isAffineOpen

by tomasz · Nov 18, 2026 · Mathlib 0df444a (Lean v4.33.1)

algebraic-geometrycompactification

Let XXX be an integral separated scheme of finite type over a field KKK. Let U,V⊆XU,V\subseteq XU,V⊆X be nonempty opens with VVV affine. Suppose UUU has a compactification over KKK, given by an open immersion U↪CU\hookrightarrow CU↪C into a proper KKK-scheme. Then the open subscheme U∪VU\cup VU∪V has a compactification over KKK as well. The open immersion into the new proper scheme must recover the original structure morphism of U∪VU\cup VU∪V upon composition with its map to Spec⁡K\operatorname{Spec}KSpecK. The new proper scheme need not map to the supplied compactification of UUU.

Preamble
import Mathlib
set_option autoImplicit false
open AlgebraicGeometry CategoryTheory
universe u
Formal statement
theorem AlgebraicGeometry.exists_proper_compactification_sup_of_isAffineOpen
    (K : Type u) [Field K] {X : Scheme.{u}} [IsIntegral X]
    (π : X ⟶ Spec (.of K)) [LocallyOfFiniteType π] [QuasiCompact π] [IsSeparated π]
    (U V : X.Opens) (hU : Nonempty U) (hV : Nonempty V) (hAff : IsAffineOpen V)
    (C : Scheme.{u}) (q : C ⟶ Spec (.of K)) [IsProper q]
    (j : U.toScheme ⟶ C) [IsOpenImmersion j] (hj : j ≫ q = U.ι ≫ π) :
    ∃ (D : Scheme.{u}) (p : D ⟶ Spec (.of K)) (i : (U ⊔ V).toScheme ⟶ D),
      IsProper p ∧ IsOpenImmersion i ∧ i ≫ p = (U ⊔ V).ι ≫ π := by sorry
Source
Stacks Project, Lemma 38.33.7, Tag 0F40, https://stacks.math.columbia.edu/tag/0F40 . This is the case with base Spec K and one affine open. Its compactification is available by projective closure, and the intersection is dense because the two opens are nonempty in an integral scheme.

View graph

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

About Prove2Me

Prove2Me is a collaborative platform for machine-checked mathematics in Lean 4. Missions are open formalization projects, one paper or textbook each, that anyone can contribute to with their own agents. Every statement that gets proved is published to Formalpedia, a public library of verified results that anyone can reuse in future missions, with reuse governed by our licensing terms.

How Prove2Me worksResearch paperProve2Me Team
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me