The areas / V13. General topology
Mathlib.Order.Filter.Partial
35 declarations. Mathlib docs · Source
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, so Filter.comap and Filter.Tendsto
get 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
Partial functions
theorem Filter.rcomap.match_1.congr_eq_1 E1 #
∀ {α : Type u_2} {β : Type u_1} (motive : Set β × Set α → Sort u_3) (x : Set β × Set α)
(h_1 : (s : Set β) → (t : Set α) → motive (s, t)) (s : Set β) (t : Set α),
x = (s, t) →
(match x with
| (s, t) => h_1 s t) ≍
h_1 s t
def Filter.rmap E1 #
{α : Type u} → {β : Type v} → SetRel α β → Filter α → Filter β
The forward map of a filter under a relation. Generalization of Filter.map to relations. Note
that Rel.core generalizes Set.preimage.
theorem Filter.rmap_sets E1 #
∀ {α : Type u} {β : Type v} (r : SetRel α β) (l : Filter α), (Filter.rmap r l).sets = r.core ⁻¹' l.sets
theorem Filter.mem_rmap E0 #
∀ {α : Type u} {β : Type v} (r : SetRel α β) (l : Filter α) (s : Set β), s ∈ Filter.rmap r l ↔ r.core s ∈ l
theorem Filter.rmap_rmap E0 #
∀ {α : Type u} {β : Type v} {γ : Type w} (r : SetRel α β) (s : SetRel β γ) (l : Filter α),
Filter.rmap s (Filter.rmap r l) = Filter.rmap (r.comp s) l
theorem Filter.rmap_compose E0 #
∀ {α : Type u} {β : Type v} {γ : Type w} (r : SetRel α β) (s : SetRel β γ),
Filter.rmap s ∘ Filter.rmap r = Filter.rmap (r.comp s)
def Filter.RTendsto E1 #
{α : Type u} → {β : Type v} → SetRel α β → Filter α → Filter β → Prop
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.
theorem Filter.rtendsto_def E0 #
∀ {α : Type u} {β : Type v} (r : SetRel α β) (l₁ : Filter α) (l₂ : Filter β),
Filter.RTendsto r l₁ l₂ ↔ ∀ s ∈ l₂, r.core s ∈ l₁
def Filter.rcomap E1 #
{α : Type u} → {β : Type v} → SetRel α β → Filter β → Filter α
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.
theorem Filter.rcomap_sets E1 #
∀ {α : Type u} {β : Type v} (r : SetRel α β) (f : Filter β),
(Filter.rcomap r f).sets = SetRel.image {(s, t) | r.core s ⊆ t} f.sets
theorem Filter.rcomap_rcomap E1 #
∀ {α : Type u} {β : Type v} {γ : Type w} (r : SetRel α β) (s : SetRel β γ) (l : Filter γ),
Filter.rcomap r (Filter.rcomap s l) = Filter.rcomap (r.comp s) l
theorem Filter.rcomap_compose E0 #
∀ {α : Type u} {β : Type v} {γ : Type w} (r : SetRel α β) (s : SetRel β γ),
Filter.rcomap r ∘ Filter.rcomap s = Filter.rcomap (r.comp s)
theorem Filter.rtendsto_iff_le_rcomap E1 #
∀ {α : Type u} {β : Type v} (r : SetRel α β) (l₁ : Filter α) (l₂ : Filter β),
Filter.RTendsto r l₁ l₂ ↔ l₁ ≤ Filter.rcomap r l₂
def Filter.rcomap' E1 #
{α : Type u} → {β : Type v} → SetRel α β → Filter β → Filter α
One way of taking the inverse map of a filter under a relation. Generalization of Filter.comap
to relations.
theorem Filter.mem_rcomap' E0 #
∀ {α : Type u} {β : Type v} (r : SetRel α β) (l : Filter β) (s : Set α),
s ∈ Filter.rcomap' r l ↔ ∃ t ∈ l, r.preimage t ⊆ s
theorem Filter.rcomap'_sets E1 #
∀ {α : Type u} {β : Type v} (r : SetRel α β) (f : Filter β),
(Filter.rcomap' r f).sets = SetRel.image {(s, t) | r.preimage s ⊆ t} f.sets
theorem Filter.rcomap'_rcomap' E0 #
∀ {α : Type u} {β : Type v} {γ : Type w} (r : SetRel α β) (s : SetRel β γ) (l : Filter γ),
Filter.rcomap' r (Filter.rcomap' s l) = Filter.rcomap' (r.comp s) l
theorem Filter.rcomap'_compose E0 #
∀ {α : Type u} {β : Type v} {γ : Type w} (r : SetRel α β) (s : SetRel β γ),
Filter.rcomap' r ∘ Filter.rcomap' s = Filter.rcomap' (r.comp s)
def Filter.RTendsto' E1 #
{α : Type u} → {β : Type v} → SetRel α β → Filter α → Filter β → Prop
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.
theorem Filter.rtendsto'_def E0 #
∀ {α : Type u} {β : Type v} (r : SetRel α β) (l₁ : Filter α) (l₂ : Filter β),
Filter.RTendsto' r l₁ l₂ ↔ ∀ s ∈ l₂, r.preimage s ∈ l₁
theorem Filter.tendsto_iff_rtendsto E1 #
∀ {α : Type u} {β : Type v} (l₁ : Filter α) (l₂ : Filter β) (f : α → β),
Filter.Tendsto f l₁ l₂ ↔ Filter.RTendsto (Function.graph f) l₁ l₂
theorem Filter.tendsto_iff_rtendsto' E1 #
∀ {α : Type u} {β : Type v} (l₁ : Filter α) (l₂ : Filter β) (f : α → β),
Filter.Tendsto f l₁ l₂ ↔ Filter.RTendsto' (Function.graph f) l₁ l₂
def Filter.pmap E1 #
{α : Type u} → {β : Type v} → (α →. β) → Filter α → Filter β
The forward map of a filter under a partial function. Generalization of Filter.map to partial
functions.
theorem Filter.mem_pmap E0 #
∀ {α : Type u} {β : Type v} (f : α →. β) (l : Filter α) (s : Set β), s ∈ Filter.pmap f l ↔ f.core s ∈ l
def Filter.PTendsto E1 #
{α : Type u} → {β : Type v} → (α →. β) → Filter α → Filter β → Prop
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.
theorem Filter.ptendsto_def E0 #
∀ {α : Type u} {β : Type v} (f : α →. β) (l₁ : Filter α) (l₂ : Filter β),
Filter.PTendsto f l₁ l₂ ↔ ∀ s ∈ l₂, f.core s ∈ l₁
theorem Filter.ptendsto_iff_rtendsto E1 #
∀ {α : Type u} {β : Type v} (l₁ : Filter α) (l₂ : Filter β) (f : α →. β),
Filter.PTendsto f l₁ l₂ ↔ Filter.RTendsto f.graph' l₁ l₂
theorem Filter.pmap_res E1 #
∀ {α : Type u} {β : Type v} (l : Filter α) (s : Set α) (f : α → β),
Filter.pmap (PFun.res f s) l = Filter.map f (l ⊓ Filter.principal s)
theorem Filter.tendsto_iff_ptendsto E1 #
∀ {α : Type u} {β : Type v} (l₁ : Filter α) (l₂ : Filter β) (s : Set α) (f : α → β),
Filter.Tendsto f (l₁ ⊓ Filter.principal s) l₂ ↔ Filter.PTendsto (PFun.res f s) l₁ l₂
theorem Filter.tendsto_iff_ptendsto_univ E1 #
∀ {α : Type u} {β : Type v} (l₁ : Filter α) (l₂ : Filter β) (f : α → β),
Filter.Tendsto f l₁ l₂ ↔ Filter.PTendsto (PFun.res f Set.univ) l₁ l₂
def Filter.pcomap' E1 #
{α : Type u} → {β : Type v} → (α →. β) → Filter β → Filter α
Inverse map of a filter under a partial function. One generalization of Filter.comap to
partial functions.
def Filter.PTendsto' E1 #
{α : Type u} → {β : Type v} → (α →. β) → Filter α → Filter β → Prop
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.
theorem Filter.ptendsto'_def E0 #
∀ {α : Type u} {β : Type v} (f : α →. β) (l₁ : Filter α) (l₂ : Filter β),
Filter.PTendsto' f l₁ l₂ ↔ ∀ s ∈ l₂, f.preimage s ∈ l₁
theorem Filter.ptendsto_of_ptendsto' E1 #
∀ {α : Type u} {β : Type v} {f : α →. β} {l₁ : Filter α} {l₂ : Filter β},
Filter.PTendsto' f l₁ l₂ → Filter.PTendsto f l₁ l₂
theorem Filter.ptendsto'_of_ptendsto E1 #
∀ {α : Type u} {β : Type v} {f : α →. β} {l₁ : Filter α} {l₂ : Filter β},
f.Dom ∈ l₁ → Filter.PTendsto f l₁ l₂ → Filter.PTendsto' f l₁ l₂