Tendsto for relations and partial functions #
This file generalizes Filter definitions from functions to partial functions and relations.
Considering functions and partial functions as relations #
A function f : α → β can be considered as the relation Rel α β which relates x and f x for
all x, and nothing else. This relation is called Function.Graph f.
A partial function f : α →. β can be considered as the relation Rel α β which relates x and
f x for all x for which f x exists, and nothing else. This relation is called
PFun.Graph' f.
In this regard, a function is a relation for which every element in α is related to exactly one
element in β and a partial function is a relation for which every element in α is related to at
most one element in β.
This file leverages this analogy to generalize Filter definitions from functions to partial
functions and relations.
Notes #
Set.preimage can be generalized to relations in two ways:
Rel.preimagereturns the image of the set under the inverse relation.Rel.corereturns the set of elements that are only related to those in the set. Both generalizations are sensible in the context of filters, soFilter.comapandFilter.Tendstoget two generalizations each.
We first take care of relations. Then the definitions for partial functions are taken as special cases of the definitions for relations.
Relations #
The forward map of a filter under a relation. Generalization of Filter.map to relations. Note
that Rel.core generalizes Set.preimage.
Equations
Instances For
Generic "limit of a relation" predicate. RTendsto r l₁ l₂ asserts that for every
l₂-neighborhood a, the r-core of a is an l₁-neighborhood. One generalization of
Filter.Tendsto to relations.
Equations
- Filter.RTendsto r l₁ l₂ = (Filter.rmap r l₁ ≤ l₂)
Instances For
One way of taking the inverse map of a filter under a relation. One generalization of
Filter.comap to relations. Note that Rel.core generalizes Set.preimage.
Equations
Instances For
One way of taking the inverse map of a filter under a relation. Generalization of Filter.comap
to relations.
Equations
Instances For
Generic "limit of a relation" predicate. RTendsto' r l₁ l₂ asserts that for every
l₂-neighborhood a, the r-preimage of a is an l₁-neighborhood. One generalization of
Filter.Tendsto to relations.
Equations
- Filter.RTendsto' r l₁ l₂ = (l₁ ≤ Filter.rcomap' r l₂)
Instances For
Partial functions #
The forward map of a filter under a partial function. Generalization of Filter.map to partial
functions.
Equations
- Filter.pmap f l = Filter.rmap f.graph' l
Instances For
Generic "limit of a partial function" predicate. PTendsto r l₁ l₂ asserts that for every
l₂-neighborhood a, the p-core of a is an l₁-neighborhood. One generalization of
Filter.Tendsto to partial function.
Equations
- Filter.PTendsto f l₁ l₂ = (Filter.pmap f l₁ ≤ l₂)
Instances For
Inverse map of a filter under a partial function. One generalization of Filter.comap to
partial functions.
Equations
- Filter.pcomap' f l = Filter.rcomap' f.graph' l
Instances For
Generic "limit of a partial function" predicate. PTendsto' r l₁ l₂ asserts that for every
l₂-neighborhood a, the p-preimage of a is an l₁-neighborhood. One generalization of
Filter.Tendsto to partial functions.
Equations
- Filter.PTendsto' f l₁ l₂ = (l₁ ≤ Filter.rcomap' f.graph' l₂)