# mathlib3documentation

topology.sheaves.local_predicate

# Functions satisfying a local predicate form a sheaf. #

THIS FILE IS SYNCHRONIZED WITH MATHLIB4. Any changes to this file require a corresponding PR to mathlib4.

At this stage, in topology/sheaves/sheaf_of_functions.lean we've proved that not-necessarily-continuous functions from a topological space into some type (or type family) form a sheaf.

Why do the continuous functions form a sheaf? The point is just that continuity is a local condition, so one can use the lifting condition for functions to provide a candidate lift, then verify that the lift is actually continuous by using the factorisation condition for the lift (which guarantees that on each open set it agrees with the functions being lifted, which were assumed to be continuous).

This file abstracts this argument to work for any collection of dependent functions on a topological space satisfying a "local predicate".

As an application, we check that continuity is a local predicate in this sense, and provide

• Top.sheaf_to_Top: continuous functions into a topological space form a sheaf

A sheaf constructed in this way has a natural map stalk_to_fiber from the stalks to the types in the ambient type family.

We give conditions sufficient to show that this map is injective and/or surjective.

structure Top.prelocal_predicate {X : Top} (T : X Type v) :

Given a topological space X : Top and a type family T : X → Type, a P : prelocal_predicate T consists of:

• a family of predicates P.pred, one for each U : opens X, of the form (Π x : U, T x) → Prop
• a proof that if f : Π x : V, T x satisfies the predicate on V : opens X, then the restriction of f to any open subset U also satisfies the predicate.
Instances for Top.prelocal_predicate

Continuity is a "prelocal" predicate on functions to a fixed topological space T.

Equations
@[protected, instance]

Satisfying the inhabited linter.

Equations
structure Top.local_predicate {X : Top} (T : X Type v) :

Given a topological space X : Top and a type family T : X → Type, a P : local_predicate T consists of:

• a family of predicates P.pred, one for each U : opens X, of the form (Π x : U, T x) → Prop
• a proof that if f : Π x : V, T x satisfies the predicate on V : opens X, then the restriction of f to any open subset U also satisfies the predicate, and
• a proof that given some f : Π x : U, T x, if for every x : U we can find an open set x ∈ V ≤ U so that the restriction of f to V satisfies the predicate, then f itself satisfies the predicate.
Instances for Top.local_predicate
def Top.continuous_local (X T : Top) :

Continuity is a "local" predicate on functions to a fixed topological space T.

Equations
@[protected, instance]

Satisfying the inhabited linter.

Equations

Given a P : prelocal_predicate, we can always construct a local_predicate by asking that the condition from P holds locally near every point.

Equations
theorem Top.prelocal_predicate.sheafify_of {X : Top} {T : X Type v} {P : Top.prelocal_predicate T} {U : topological_space.opens X} {f : Π (x : U), T x} (h : P.pred f) :
@[simp]
theorem Top.subpresheaf_to_Types_map_coe {X : Top} {T : X Type v} (P : Top.prelocal_predicate T) (U V : ᵒᵖ) (i : U V) (f : {f // P.pred f}) (x : ) :
i f) x = f.val ((i.unop) x)

The subpresheaf of dependent functions on X satisfying the "pre-local" predicate P.

Equations
@[simp]
theorem Top.subpresheaf_to_Types_obj {X : Top} {T : X Type v} (P : Top.prelocal_predicate T) (U : ᵒᵖ) :
= {f // P.pred f}

The natural transformation including the subpresheaf of functions satisfying a local predicate into the presheaf of all functions.

Equations

The functions satisfying a local predicate satisfy the sheaf condition.

def Top.subsheaf_to_Types {X : Top} {T : X Type v} (P : Top.local_predicate T) :

The subsheaf of the sheaf of all dependently typed functions satisfying the local predicate P.

Equations
@[simp]
theorem Top.subsheaf_to_Types_val {X : Top} {T : X Type v} (P : Top.local_predicate T) :
noncomputable def Top.stalk_to_fiber {X : Top} {T : X Type v} (P : Top.local_predicate T) (x : X) :
T x

There is a canonical map from the stalk to the original fiber, given by evaluating sections.

Equations
@[simp]
theorem Top.stalk_to_fiber_germ {X : Top} {T : X Type v} (P : Top.local_predicate T) (U : topological_space.opens X) (x : U) (f : (opposite.op U)) :
f) = f.val x
theorem Top.stalk_to_fiber_surjective {X : Top} {T : X Type v} (P : Top.local_predicate T) (x : X) (w : (t : T x), (U : (f : Π (y : (U.obj)), T y) (h : , f x, _⟩ = t) :

The stalk_to_fiber map is surjective at x if every point in the fiber T x has an allowed section passing through it.

theorem Top.stalk_to_fiber_injective {X : Top} {T : X Type v} (P : Top.local_predicate T) (x : X) (w : (U V : (fU : Π (y : (U.obj)), T y), (fV : Π (y : (V.obj)), T y), fU x, _⟩ = fV x, _⟩ ( (W : (iU : W U) (iV : W V), (w : (W.obj)), fU (iU w) = fV (iV w))) :

The stalk_to_fiber map is injective at x if any two allowed sections which agree at x agree on some neighborhood of x.

Some repackaging: the presheaf of functions satisfying continuous_prelocal is just the same thing as the presheaf of continuous functions.

Equations
def Top.sheaf_to_Top {X : Top} (T : Top) :

The sheaf of continuous functions on X with values in a space T.

Equations