A scheme is integral iff it is reduced and irreducible
ProvedFamousTheorems.integral_scheme_iff_reduced_irreducible_7aA scheme is integral iff it is reduced and irreducible. A scheme is integral, meaning that is nonempty and is an integral domain for every nonempty open , if and only if is reduced and its underlying topological space is irreducible.
This is the scheme-theoretic analogue of the fact that a ring is an integral domain if and only if it is reduced and has a unique minimal prime. It is used constantly in algebraic geometry: varieties are often defined as integral schemes, and integral schemes have a generic point and a function field.
Formalization note. Mathlib's AlgebraicGeometry.isIntegral_iff_irreducibleSpace_and_isReduced. Irreducible spaces are nonempty by Mathlib's definition, and IsReduced X says that all rings of sections are reduced.
import Mathlib
namespace FamousTheorems
theorem integral_scheme_iff_reduced_irreducible_7a (X : AlgebraicGeometry.Scheme) :
AlgebraicGeometry.IsIntegral X ↔ IrreducibleSpace X ∧ AlgebraicGeometry.IsReduced X := by sorry
end FamousTheorems