The areas / V13. General topology
Mathlib.Topology.LocallyConstant.Basic
118 declarations. Mathlib docs · Source
Locally constant functions
This file sets up the theory of locally constant function from a topological space to a type.
Main definitions and constructions
IsLocallyConstant f: a mapf : X → YwhereXis a topological space is locally constant if every set inYhas an open preimage.LocallyConstant X Y: the type of locally constant maps fromXtoYLocallyConstant.map: push-forward of locally constant mapsLocallyConstant.comap: pull-back of locally constant maps
TODO
Link IsLocallyConstant to Function.IsConst(On).
theorem LocallyConstant.mk.injEq E0 #
∀ {X : Type u_5} {Y : Type u_6} [inst : TopologicalSpace X] (toFun : X → Y)
(isLocallyConstant : IsLocallyConstant toFun) (toFun_1 : X → Y) (isLocallyConstant_1 : IsLocallyConstant toFun_1),
({ toFun := toFun, isLocallyConstant := isLocallyConstant } =
{ toFun := toFun_1, isLocallyConstant := isLocallyConstant_1 }) =
(toFun = toFun_1)
theorem TopologicalSpace.Clopens.mk.congr_simp E1 #
∀ {α : Type u_4} [inst : TopologicalSpace α] (carrier carrier_1 : Set α) (e_carrier : carrier = carrier_1)
(isClopen' : IsClopen carrier),
{ carrier := carrier, isClopen' := isClopen' } = { carrier := carrier_1, isClopen' := ⋯ }
def LocallyConstant.ctorIdx E1 #
{X : Type u_5} → {Y : Type u_6} → {inst : TopologicalSpace X} → LocallyConstant X Y → ℕ
theorem LocallyConstant.mk.inj E1 #
∀ {X : Type u_5} {Y : Type u_6} {inst : TopologicalSpace X} {toFun : X → Y}
{isLocallyConstant : IsLocallyConstant toFun} {toFun_1 : X → Y} {isLocallyConstant_1 : IsLocallyConstant toFun_1},
{ toFun := toFun, isLocallyConstant := isLocallyConstant } =
{ toFun := toFun_1, isLocallyConstant := isLocallyConstant_1 } →
toFun = toFun_1
theorem LocallyConstant.mk.congr_simp E1 #
∀ {X : Type u_5} {Y : Type u_6} [inst : TopologicalSpace X] (toFun toFun_1 : X → Y) (e_toFun : toFun = toFun_1)
(isLocallyConstant : IsLocallyConstant toFun),
{ toFun := toFun, isLocallyConstant := isLocallyConstant } = { toFun := toFun_1, isLocallyConstant := ⋯ }
theorem LocallyConstant.ofIsClopen.congr_simp E1 #
∀ {X : Type u_5} [inst : TopologicalSpace X] {U U_1 : Set X} (e_U : U = U_1) {inst_1 : (x : X) → Decidable (x ∈ U)}
[inst_2 : (x : X) → Decidable (x ∈ U_1)] (hU : IsClopen U),
LocallyConstant.ofIsClopen hU = LocallyConstant.ofIsClopen ⋯
def IsLocallyConstant E1 #
{X : Type u_1} → {Y : Type u_2} → [TopologicalSpace X] → (X → Y) → Prop
A function between topological spaces is locally constant if the preimage of any set is open.
theorem IsLocallyConstant.tfae E1 #
∀ {X : Type u_1} {Y : Type u_2} [inst : TopologicalSpace X] (f : X → Y),
[IsLocallyConstant f, ∀ (x : X), ∀ᶠ (x' : X) in nhds x, f x' = f x, ∀ (x : X), Filter.EventuallyConst f (nhds x),
∀ (x : X), IsOpen {x' | f x' = f x}, ∀ (y : Y), IsOpen (f ⁻¹' {y}),
∀ (x : X), ∃ U, IsOpen U ∧ x ∈ U ∧ ∀ x' ∈ U, f x' = f x].TFAE
theorem IsLocallyConstant.of_discrete E1 #
∀ {X : Type u_1} {Y : Type u_2} [inst : TopologicalSpace X] [DiscreteTopology X] (f : X → Y), IsLocallyConstant f
theorem IsLocallyConstant.isOpen_fiber E1 #
∀ {X : Type u_1} {Y : Type u_2} [inst : TopologicalSpace X] {f : X → Y},
IsLocallyConstant f → ∀ (y : Y), IsOpen {x | f x = y}
theorem IsLocallyConstant.isClosed_fiber E1 #
∀ {X : Type u_1} {Y : Type u_2} [inst : TopologicalSpace X] {f : X → Y},
IsLocallyConstant f → ∀ (y : Y), IsClosed {x | f x = y}
theorem IsLocallyConstant.isClopen_fiber E1 #
∀ {X : Type u_1} {Y : Type u_2} [inst : TopologicalSpace X] {f : X → Y},
IsLocallyConstant f → ∀ (y : Y), IsClopen {x | f x = y}
theorem IsLocallyConstant.iff_exists_open E1 #
∀ {X : Type u_1} {Y : Type u_2} [inst : TopologicalSpace X] (f : X → Y),
IsLocallyConstant f ↔ ∀ (x : X), ∃ U, IsOpen U ∧ x ∈ U ∧ ∀ x' ∈ U, f x' = f x
theorem IsLocallyConstant.iff_eventually_eq E0 #
∀ {X : Type u_1} {Y : Type u_2} [inst : TopologicalSpace X] (f : X → Y),
IsLocallyConstant f ↔ ∀ (x : X), ∀ᶠ (y : X) in nhds x, f y = f x
theorem IsLocallyConstant.iff_forall_eventuallyConst E1 #
∀ {X : Type u_1} {Y : Type u_2} [inst : TopologicalSpace X] {f : X → Y},
IsLocallyConstant f ↔ ∀ (x : X), Filter.EventuallyConst f (nhds x)
theorem IsLocallyConstant.eventuallyConst E1 #
∀ {X : Type u_1} {Y : Type u_2} [inst : TopologicalSpace X] {f : X → Y},
IsLocallyConstant f → ∀ (x : X), Filter.EventuallyConst f (nhds x)
Alias of the forward direction of IsLocallyConstant.iff_forall_eventuallyConst.
theorem IsLocallyConstant.exists_open E1 #
∀ {X : Type u_1} {Y : Type u_2} [inst : TopologicalSpace X] {f : X → Y},
IsLocallyConstant f → ∀ (x : X), ∃ U, IsOpen U ∧ x ∈ U ∧ ∀ x' ∈ U, f x' = f x
theorem IsLocallyConstant.eventually_eq E0 #
∀ {X : Type u_1} {Y : Type u_2} [inst : TopologicalSpace X] {f : X → Y},
IsLocallyConstant f → ∀ (x : X), ∀ᶠ (y : X) in nhds x, f y = f x
theorem IsLocallyConstant.iff_isOpen_fiber_apply E0 #
∀ {X : Type u_1} {Y : Type u_2} [inst : TopologicalSpace X] {f : X → Y},
IsLocallyConstant f ↔ ∀ (x : X), IsOpen (f ⁻¹' {f x})
theorem IsLocallyConstant.iff_isOpen_fiber E1 #
∀ {X : Type u_1} {Y : Type u_2} [inst : TopologicalSpace X] {f : X → Y},
IsLocallyConstant f ↔ ∀ (y : Y), IsOpen (f ⁻¹' {y})
theorem IsLocallyConstant.continuous E1 #
∀ {X : Type u_1} {Y : Type u_2} [inst : TopologicalSpace X] [inst_1 : TopologicalSpace Y] {f : X → Y},
IsLocallyConstant f → Continuous f
theorem IsLocallyConstant.iff_continuous E1 #
∀ {X : Type u_1} {Y : Type u_2} [inst : TopologicalSpace X] {x : TopologicalSpace Y} [DiscreteTopology Y] (f : X → Y),
IsLocallyConstant f ↔ Continuous f
theorem IsLocallyConstant.of_constant E1 #
∀ {X : Type u_1} {Y : Type u_2} [inst : TopologicalSpace X] (f : X → Y), (∀ (x y : X), f x = f y) → IsLocallyConstant f
theorem IsLocallyConstant.const E1 #
∀ {X : Type u_1} {Y : Type u_2} [inst : TopologicalSpace X] (y : Y), IsLocallyConstant (Function.const X y)
theorem IsLocallyConstant.comp E1 #
∀ {X : Type u_1} {Y : Type u_2} {Z : Type u_3} [inst : TopologicalSpace X] {f : X → Y},
IsLocallyConstant f → ∀ (g : Y → Z), IsLocallyConstant (g ∘ f)
theorem IsLocallyConstant.prodMk E1 #
∀ {X : Type u_1} {Y : Type u_2} [inst : TopologicalSpace X] {Y' : Type u_5} {f : X → Y} {f' : X → Y'},
IsLocallyConstant f → IsLocallyConstant f' → IsLocallyConstant fun x ↦ (f x, f' x)
theorem IsLocallyConstant.comp₂ E1 #
∀ {X : Type u_1} [inst : TopologicalSpace X] {Y₁ : Type u_5} {Y₂ : Type u_6} {Z : Type u_7} {f : X → Y₁} {g : X → Y₂},
IsLocallyConstant f → IsLocallyConstant g → ∀ (h : Y₁ → Y₂ → Z), IsLocallyConstant fun x ↦ h (f x) (g x)
theorem IsLocallyConstant.comp_continuous E1 #
∀ {X : Type u_1} {Y : Type u_2} {Z : Type u_3} [inst : TopologicalSpace X] [inst_1 : TopologicalSpace Y] {g : Y → Z}
{f : X → Y}, IsLocallyConstant g → Continuous f → IsLocallyConstant (g ∘ f)
theorem IsLocallyConstant.apply_eq_of_isPreconnected E1 #
∀ {X : Type u_1} {Y : Type u_2} [inst : TopologicalSpace X] {f : X → Y},
IsLocallyConstant f → ∀ {s : Set X}, IsPreconnected s → ∀ {x y : X}, x ∈ s → y ∈ s → f x = f y
A locally constant function is constant on any preconnected set.
theorem IsLocallyConstant.apply_eq_of_preconnectedSpace E1 #
∀ {X : Type u_1} {Y : Type u_2} [inst : TopologicalSpace X] [PreconnectedSpace X] {f : X → Y},
IsLocallyConstant f → ∀ (x y : X), f x = f y
theorem IsLocallyConstant.exists_eq_const E1 #
∀ {X : Type u_1} {Y : Type u_2} [inst : TopologicalSpace X] [PreconnectedSpace X] [Nonempty Y] {f : X → Y},
IsLocallyConstant f → ∃ y, f = Function.const X y
theorem IsLocallyConstant.iff_is_const E1 #
∀ {X : Type u_1} {Y : Type u_2} [inst : TopologicalSpace X] [PreconnectedSpace X] {f : X → Y},
IsLocallyConstant f ↔ ∀ (x y : X), f x = f y
theorem IsLocallyConstant.range_finite E1 #
∀ {X : Type u_1} {Y : Type u_2} [inst : TopologicalSpace X] [CompactSpace X] {f : X → Y},
IsLocallyConstant f → (Set.range f).Finite
theorem IsLocallyConstant.one E1 #
∀ {X : Type u_1} {Y : Type u_2} [inst : TopologicalSpace X] [inst_1 : One Y], IsLocallyConstant 1
theorem IsLocallyConstant.zero E1 #
∀ {X : Type u_1} {Y : Type u_2} [inst : TopologicalSpace X] [inst_1 : Zero Y], IsLocallyConstant 0
theorem IsLocallyConstant.neg E1 #
∀ {X : Type u_1} {Y : Type u_2} [inst : TopologicalSpace X] [inst_1 : Neg Y] ⦃f : X → Y⦄,
IsLocallyConstant f → IsLocallyConstant (-f)
theorem IsLocallyConstant.inv E1 #
∀ {X : Type u_1} {Y : Type u_2} [inst : TopologicalSpace X] [inst_1 : Inv Y] ⦃f : X → Y⦄,
IsLocallyConstant f → IsLocallyConstant f⁻¹
theorem IsLocallyConstant.mul E1 #
∀ {X : Type u_1} {Y : Type u_2} [inst : TopologicalSpace X] [inst_1 : Mul Y] ⦃f g : X → Y⦄,
IsLocallyConstant f → IsLocallyConstant g → IsLocallyConstant (f * g)
theorem IsLocallyConstant.add E1 #
∀ {X : Type u_1} {Y : Type u_2} [inst : TopologicalSpace X] [inst_1 : Add Y] ⦃f g : X → Y⦄,
IsLocallyConstant f → IsLocallyConstant g → IsLocallyConstant (f + g)
theorem IsLocallyConstant.sub E1 #
∀ {X : Type u_1} {Y : Type u_2} [inst : TopologicalSpace X] [inst_1 : Sub Y] ⦃f g : X → Y⦄,
IsLocallyConstant f → IsLocallyConstant g → IsLocallyConstant (f - g)
theorem IsLocallyConstant.div E1 #
∀ {X : Type u_1} {Y : Type u_2} [inst : TopologicalSpace X] [inst_1 : Div Y] ⦃f g : X → Y⦄,
IsLocallyConstant f → IsLocallyConstant g → IsLocallyConstant (f / g)
theorem IsLocallyConstant.desc E1 #
∀ {X : Type u_1} [inst : TopologicalSpace X] {α : Type u_5} {β : Type u_6} (f : X → α) (g : α → β),
IsLocallyConstant (g ∘ f) → Function.Injective g → IsLocallyConstant f
If a composition of a function f followed by an injection g is locally
constant, then the locally constant property descends to f.
theorem IsLocallyConstant.of_constant_on_connected_components E1 #
∀ {X : Type u_1} {Y : Type u_2} [inst : TopologicalSpace X] [LocallyConnectedSpace X] {f : X → Y},
(∀ (x y : X), y ∈ connectedComponent x → f y = f x) → IsLocallyConstant f
theorem IsLocallyConstant.of_constant_on_connected_clopens E1 #
∀ {X : Type u_1} {Y : Type u_2} [inst : TopologicalSpace X] [LocallyConnectedSpace X] {f : X → Y},
(∀ (U : Set X), IsConnected U → IsClopen U → ∀ x ∈ U, ∀ y ∈ U, f y = f x) → IsLocallyConstant f
theorem IsLocallyConstant.of_constant_on_preconnected_clopens E1 #
∀ {X : Type u_1} {Y : Type u_2} [inst : TopologicalSpace X] [LocallyConnectedSpace X] {f : X → Y},
(∀ (U : Set X), IsPreconnected U → IsClopen U → ∀ x ∈ U, ∀ y ∈ U, f y = f x) → IsLocallyConstant f
structure LocallyConstant E1 #
(X : Type u_5) → Type u_6 → [TopologicalSpace X] → Type (max u_5 u_6)
A (bundled) locally constant function from a topological space X to a type Y.
ctor LocallyConstant.mk E0 #
{X : Type u_5} →
{Y : Type u_6} → [inst : TopologicalSpace X] → (toFun : X → Y) → IsLocallyConstant toFun → LocallyConstant X Y
abbrev LocallyConstant.toFun E1 #
{X : Type u_5} → {Y : Type u_6} → [inst : TopologicalSpace X] → LocallyConstant X Y → X → Y
The underlying function.
theorem LocallyConstant.isLocallyConstant E1 #
∀ {X : Type u_5} {Y : Type u_6} [inst : TopologicalSpace X] (self : LocallyConstant X Y), IsLocallyConstant self.toFun
The map is locally constant.
instance LocallyConstant.instInhabited E0 #
{X : Type u_1} → {Y : Type u_2} → [inst : TopologicalSpace X] → [Inhabited Y] → Inhabited (LocallyConstant X Y)
instance LocallyConstant.instFunLike E0 #
{X : Type u_1} → {Y : Type u_2} → [inst : TopologicalSpace X] → FunLike (LocallyConstant X Y) X Y
def LocallyConstant.Simps.apply E1 #
{X : Type u_1} → {Y : Type u_2} → [inst : TopologicalSpace X] → LocallyConstant X Y → X → Y
See Note [custom simps projections].
theorem LocallyConstant.toFun_eq_coe E0 #
∀ {X : Type u_1} {Y : Type u_2} [inst : TopologicalSpace X] (f : LocallyConstant X Y), f.toFun = ⇑f
theorem LocallyConstant.coe_mk E0 #
∀ {X : Type u_1} {Y : Type u_2} [inst : TopologicalSpace X] (f : X → Y) (h : IsLocallyConstant f),
⇑{ toFun := f, isLocallyConstant := h } = f
theorem LocallyConstant.congr_fun E1 #
∀ {X : Type u_1} {Y : Type u_2} [inst : TopologicalSpace X] {f g : LocallyConstant X Y}, f = g → ∀ (x : X), f x = g x
theorem LocallyConstant.congr_arg E1 #
∀ {X : Type u_1} {Y : Type u_2} [inst : TopologicalSpace X] (f : LocallyConstant X Y) {x y : X}, x = y → f x = f y
theorem LocallyConstant.coe_injective E0 #
∀ {X : Type u_1} {Y : Type u_2} [inst : TopologicalSpace X], Function.Injective DFunLike.coe
theorem LocallyConstant.coe_inj E0 #
∀ {X : Type u_1} {Y : Type u_2} [inst : TopologicalSpace X] {f g : LocallyConstant X Y}, ⇑f = ⇑g ↔ f = g
theorem LocallyConstant.ext_iff E0 #
∀ {X : Type u_1} {Y : Type u_2} [inst : TopologicalSpace X] {f g : LocallyConstant X Y}, f = g ↔ ∀ (x : X), f x = g x
theorem LocallyConstant.ext E1 #
∀ {X : Type u_1} {Y : Type u_2} [inst : TopologicalSpace X] ⦃f g : LocallyConstant X Y⦄, (∀ (x : X), f x = g x) → f = g
theorem LocallyConstant.continuous E1 #
∀ {X : Type u_1} {Y : Type u_2} [inst : TopologicalSpace X] [inst_1 : TopologicalSpace Y] (f : LocallyConstant X Y),
Continuous ⇑f
def LocallyConstant.toContinuousMap E1 #
{X : Type u_1} →
{Y : Type u_2} → [inst : TopologicalSpace X] → [inst_1 : TopologicalSpace Y] → LocallyConstant X Y → C(X, Y)
We can turn a locally-constant function into a bundled ContinuousMap.
instance LocallyConstant.instCoeContinuousMap E0 #
{X : Type u_1} →
{Y : Type u_2} → [inst : TopologicalSpace X] → [inst_1 : TopologicalSpace Y] → Coe (LocallyConstant X Y) C(X, Y)
As a shorthand, LocallyConstant.toContinuousMap is available as a coercion
theorem LocallyConstant.coe_continuousMap E0 #
∀ {X : Type u_1} {Y : Type u_2} [inst : TopologicalSpace X] [inst_1 : TopologicalSpace Y] (f : LocallyConstant X Y),
⇑↑f = ⇑f
theorem LocallyConstant.toContinuousMap_injective E1 #
∀ {X : Type u_1} {Y : Type u_2} [inst : TopologicalSpace X] [inst_1 : TopologicalSpace Y],
Function.Injective LocallyConstant.toContinuousMap
def LocallyConstant.const E1 #
(X : Type u_5) → {Y : Type u_6} → [inst : TopologicalSpace X] → Y → LocallyConstant X Y
The constant locally constant function on X with value y : Y.
theorem LocallyConstant.coe_const E0 #
∀ {X : Type u_1} {Y : Type u_2} [inst : TopologicalSpace X] (y : Y), ⇑(LocallyConstant.const X y) = Function.const X y
def LocallyConstant.eval E1 #
{ι : Type u_5} →
{X : ι → Type u_6} →
[inst : (i : ι) → TopologicalSpace (X i)] →
(i : ι) → [DiscreteTopology (X i)] → LocallyConstant ((i : ι) → X i) (X i)
Evaluation/projection as a locally constant function.
theorem LocallyConstant.eval_apply E0 #
∀ {ι : Type u_5} {X : ι → Type u_6} [inst : (i : ι) → TopologicalSpace (X i)] (i : ι) [inst_1 : DiscreteTopology (X i)]
(f : (i : ι) → X i), (LocallyConstant.eval i) f = f i
def LocallyConstant.ofIsClopen E1 #
{X : Type u_5} →
[inst : TopologicalSpace X] → {U : Set X} → [(x : X) → Decidable (x ∈ U)] → IsClopen U → LocallyConstant X (Fin 2)
The locally constant function to Fin 2 associated to a clopen set.
theorem LocallyConstant.ofIsClopen_fiber_zero E0 #
∀ {X : Type u_5} [inst : TopologicalSpace X] {U : Set X} [inst_1 : (x : X) → Decidable (x ∈ U)] (hU : IsClopen U),
⇑(LocallyConstant.ofIsClopen hU) ⁻¹' {0} = U
theorem LocallyConstant.ofIsClopen_fiber_one E0 #
∀ {X : Type u_5} [inst : TopologicalSpace X] {U : Set X} [inst_1 : (x : X) → Decidable (x ∈ U)] (hU : IsClopen U),
⇑(LocallyConstant.ofIsClopen hU) ⁻¹' {1} = Uᶜ
theorem LocallyConstant.locallyConstant_eq_of_fiber_zero_eq E0 #
∀ {X : Type u_5} [inst : TopologicalSpace X] (f g : LocallyConstant X (Fin 2)), ⇑f ⁻¹' {0} = ⇑g ⁻¹' {0} → f = g
theorem LocallyConstant.range_finite E1 #
∀ {X : Type u_1} {Y : Type u_2} [inst : TopologicalSpace X] [CompactSpace X] (f : LocallyConstant X Y),
(Set.range ⇑f).Finite
theorem LocallyConstant.apply_eq_of_isPreconnected E1 #
∀ {X : Type u_1} {Y : Type u_2} [inst : TopologicalSpace X] (f : LocallyConstant X Y) {s : Set X},
IsPreconnected s → ∀ {x y : X}, x ∈ s → y ∈ s → f x = f y
theorem LocallyConstant.apply_eq_of_preconnectedSpace E1 #
∀ {X : Type u_1} {Y : Type u_2} [inst : TopologicalSpace X] [PreconnectedSpace X] (f : LocallyConstant X Y) (x y : X),
f x = f y
theorem LocallyConstant.exists_eq_const E1 #
∀ {X : Type u_1} {Y : Type u_2} [inst : TopologicalSpace X] [PreconnectedSpace X] [Nonempty Y]
(f : LocallyConstant X Y), ∃ y, f = LocallyConstant.const X y
def LocallyConstant.map E1 #
{X : Type u_1} →
{Y : Type u_2} → {Z : Type u_3} → [inst : TopologicalSpace X] → (Y → Z) → LocallyConstant X Y → LocallyConstant X Z
Push forward of locally constant maps under any map, by post-composition.
theorem LocallyConstant.map_apply E0 #
∀ {X : Type u_1} {Y : Type u_2} {Z : Type u_3} [inst : TopologicalSpace X] (f : Y → Z) (g : LocallyConstant X Y),
⇑(LocallyConstant.map f g) = f ∘ ⇑g
theorem LocallyConstant.map_id E0 #
∀ {X : Type u_1} {Y : Type u_2} [inst : TopologicalSpace X], LocallyConstant.map id = id
theorem LocallyConstant.map_comp E0 #
∀ {X : Type u_1} [inst : TopologicalSpace X] {Y₁ : Type u_5} {Y₂ : Type u_6} {Y₃ : Type u_7} (g : Y₂ → Y₃)
(f : Y₁ → Y₂), LocallyConstant.map g ∘ LocallyConstant.map f = LocallyConstant.map (g ∘ f)
def LocallyConstant.flip E1 #
{X : Type u_5} →
{α : Type u_6} → {β : Type u_7} → [inst : TopologicalSpace X] → LocallyConstant X (α → β) → α → LocallyConstant X β
Given a locally constant function to α → β, construct a family of locally constant
functions with values in β indexed by α.
def LocallyConstant.unflip E1 #
{X : Type u_5} →
{α : Type u_6} →
{β : Type u_7} → [Finite α] → [inst : TopologicalSpace X] → (α → LocallyConstant X β) → LocallyConstant X (α → β)
If α is finite, this constructs a locally constant function to α → β given a
family of locally constant functions with values in β indexed by α.
theorem LocallyConstant.unflip_flip E0 #
∀ {X : Type u_5} {α : Type u_6} {β : Type u_7} [inst : Finite α] [inst_1 : TopologicalSpace X]
(f : LocallyConstant X (α → β)), LocallyConstant.unflip f.flip = f
theorem LocallyConstant.flip_unflip E0 #
∀ {X : Type u_5} {α : Type u_6} {β : Type u_7} [inst : Finite α] [inst_1 : TopologicalSpace X]
(f : α → LocallyConstant X β), (LocallyConstant.unflip f).flip = f
def LocallyConstant.comap E1 #
{X : Type u_1} →
{Y : Type u_2} →
{Z : Type u_3} →
[inst : TopologicalSpace X] → [inst_1 : TopologicalSpace Y] → C(X, Y) → LocallyConstant Y Z → LocallyConstant X Z
Pull back of locally constant maps under a continuous map, by pre-composition.
theorem LocallyConstant.coe_comap E0 #
∀ {X : Type u_1} {Y : Type u_2} {Z : Type u_3} [inst : TopologicalSpace X] [inst_1 : TopologicalSpace Y] (f : C(X, Y))
(g : LocallyConstant Y Z), ⇑(LocallyConstant.comap f g) = ⇑g ∘ ⇑f
theorem LocallyConstant.coe_comap_apply E0 #
∀ {X : Type u_1} {Y : Type u_2} {Z : Type u_3} [inst : TopologicalSpace X] [inst_1 : TopologicalSpace Y] (f : C(X, Y))
(g : LocallyConstant Y Z) (x : X), (LocallyConstant.comap f g) x = g (f x)
theorem LocallyConstant.comap_id E0 #
∀ {X : Type u_1} {Z : Type u_3} [inst : TopologicalSpace X], LocallyConstant.comap (ContinuousMap.id X) = id
theorem LocallyConstant.comap_comp E1 #
∀ {X : Type u_1} {Y : Type u_2} {Z : Type u_3} [inst : TopologicalSpace X] [inst_1 : TopologicalSpace Y] {W : Type u_5}
[inst_2 : TopologicalSpace W] (f : C(W, X)) (g : C(X, Y)),
LocallyConstant.comap (g.comp f) = LocallyConstant.comap f ∘ LocallyConstant.comap g
theorem LocallyConstant.comap_comap E1 #
∀ {X : Type u_1} {Y : Type u_2} {Z : Type u_3} [inst : TopologicalSpace X] [inst_1 : TopologicalSpace Y] {W : Type u_5}
[inst_2 : TopologicalSpace W] (f : C(W, X)) (g : C(X, Y)) (x : LocallyConstant Y Z),
LocallyConstant.comap f (LocallyConstant.comap g x) = LocallyConstant.comap (g.comp f) x
theorem LocallyConstant.comap_const E1 #
∀ {X : Type u_1} {Y : Type u_2} {Z : Type u_3} [inst : TopologicalSpace X] [inst_1 : TopologicalSpace Y] (f : C(X, Y))
(y : Y), (∀ (x : X), f x = y) → LocallyConstant.comap f = fun g ↦ LocallyConstant.const X (g y)
theorem LocallyConstant.comap_injective E1 #
∀ {X : Type u_1} {Y : Type u_2} {Z : Type u_3} [inst : TopologicalSpace X] [inst_1 : TopologicalSpace Y] (f : C(X, Y)),
Function.Surjective f.toFun → Function.Injective (LocallyConstant.comap f)
def LocallyConstant.desc E1 #
{X : Type u_5} →
{α : Type u_6} →
{β : Type u_7} →
[inst : TopologicalSpace X] →
{g : α → β} → (f : X → α) → (h : LocallyConstant X β) → g ∘ f = ⇑h → Function.Injective g → LocallyConstant X α
If a locally constant function factors through an injection, then it factors through a locally constant function.
theorem LocallyConstant.coe_desc E0 #
∀ {X : Type u_5} {α : Type u_6} {β : Type u_7} [inst : TopologicalSpace X] (f : X → α) (g : α → β)
(h : LocallyConstant X β) (cond : g ∘ f = ⇑h) (inj : Function.Injective g), ⇑(LocallyConstant.desc f h cond inj) = f
def LocallyConstant.mulIndicator E1 #
{X : Type u_1} →
[inst : TopologicalSpace X] →
{R : Type u_5} → [One R] → {U : Set X} → LocallyConstant X R → IsClopen U → LocallyConstant X R
Given a clopen set U and a locally constant function f, LocallyConstant.mulIndicator
returns the locally constant function that is f on U and 1 otherwise.
def LocallyConstant.indicator E1 #
{X : Type u_1} →
[inst : TopologicalSpace X] →
{R : Type u_5} → [Zero R] → {U : Set X} → LocallyConstant X R → IsClopen U → LocallyConstant X R
Given a clopen set U and a locally constant function f,
LocallyConstant.indicator returns the locally constant function that is f on U and 0
otherwise.
theorem LocallyConstant.indicator_apply E0 #
∀ {X : Type u_1} [inst : TopologicalSpace X] {R : Type u_5} [inst_1 : Zero R] {U : Set X} (f : LocallyConstant X R)
(hU : IsClopen U) (x : X), (f.indicator hU) x = U.indicator (⇑f) x
theorem LocallyConstant.mulIndicator_apply E0 #
∀ {X : Type u_1} [inst : TopologicalSpace X] {R : Type u_5} [inst_1 : One R] {U : Set X} (f : LocallyConstant X R)
(hU : IsClopen U) (x : X), (f.mulIndicator hU) x = U.mulIndicator (⇑f) x
theorem LocallyConstant.indicator_apply_eq_if E1 #
∀ {X : Type u_1} [inst : TopologicalSpace X] {R : Type u_5} [inst_1 : Zero R] {U : Set X} (f : LocallyConstant X R)
(a : X) (hU : IsClopen U), (f.indicator hU) a = if a ∈ U then f a else 0
theorem LocallyConstant.mulIndicator_apply_eq_if E1 #
∀ {X : Type u_1} [inst : TopologicalSpace X] {R : Type u_5} [inst_1 : One R] {U : Set X} (f : LocallyConstant X R)
(a : X) (hU : IsClopen U), (f.mulIndicator hU) a = if a ∈ U then f a else 1
theorem LocallyConstant.mulIndicator_of_mem E1 #
∀ {X : Type u_1} [inst : TopologicalSpace X] {R : Type u_5} [inst_1 : One R] {U : Set X} (f : LocallyConstant X R)
{a : X} (hU : IsClopen U), a ∈ U → (f.mulIndicator hU) a = f a
theorem LocallyConstant.indicator_of_mem E1 #
∀ {X : Type u_1} [inst : TopologicalSpace X] {R : Type u_5} [inst_1 : Zero R] {U : Set X} (f : LocallyConstant X R)
{a : X} (hU : IsClopen U), a ∈ U → (f.indicator hU) a = f a
theorem LocallyConstant.indicator_of_notMem E1 #
∀ {X : Type u_1} [inst : TopologicalSpace X] {R : Type u_5} [inst_1 : Zero R] {U : Set X} (f : LocallyConstant X R)
{a : X} (hU : IsClopen U), a ∉ U → (f.indicator hU) a = 0
theorem LocallyConstant.mulIndicator_of_notMem E1 #
∀ {X : Type u_1} [inst : TopologicalSpace X] {R : Type u_5} [inst_1 : One R] {U : Set X} (f : LocallyConstant X R)
{a : X} (hU : IsClopen U), a ∉ U → (f.mulIndicator hU) a = 1
def LocallyConstant.congrLeft E1 #
{X : Type u_1} →
{Y : Type u_2} →
{Z : Type u_3} →
[inst : TopologicalSpace X] → [inst_1 : TopologicalSpace Y] → X ≃ₜ Y → LocallyConstant X Z ≃ LocallyConstant Y Z
The equivalence between LocallyConstant X Z and LocallyConstant Y Z given a
homeomorphism X ≃ₜ Y
theorem LocallyConstant.congrLeft_symm_apply E0 #
∀ {X : Type u_1} {Y : Type u_2} {Z : Type u_3} [inst : TopologicalSpace X] [inst_1 : TopologicalSpace Y] (e : X ≃ₜ Y)
(g : LocallyConstant Y Z), (LocallyConstant.congrLeft e).symm g = LocallyConstant.comap (↑e) g
theorem LocallyConstant.congrLeft_apply E0 #
∀ {X : Type u_1} {Y : Type u_2} {Z : Type u_3} [inst : TopologicalSpace X] [inst_1 : TopologicalSpace Y] (e : X ≃ₜ Y)
(g : LocallyConstant X Z), (LocallyConstant.congrLeft e) g = LocallyConstant.comap (↑e.symm) g
def LocallyConstant.congrRight E1 #
{X : Type u_1} →
{Y : Type u_2} → {Z : Type u_3} → [inst : TopologicalSpace X] → Y ≃ Z → LocallyConstant X Y ≃ LocallyConstant X Z
The equivalence between LocallyConstant X Y and LocallyConstant X Z given an
equivalence Y ≃ Z
theorem LocallyConstant.congrRight_apply E0 #
∀ {X : Type u_1} {Y : Type u_2} {Z : Type u_3} [inst : TopologicalSpace X] (e : Y ≃ Z) (g : LocallyConstant X Y),
(LocallyConstant.congrRight e) g = LocallyConstant.map (⇑e) g
theorem LocallyConstant.congrRight_symm_apply E0 #
∀ {X : Type u_1} {Y : Type u_2} {Z : Type u_3} [inst : TopologicalSpace X] (e : Y ≃ Z) (g : LocallyConstant X Z),
(LocallyConstant.congrRight e).symm g = LocallyConstant.map (⇑e.symm) g
def LocallyConstant.equivClopens E1 #
(X : Type u_1) →
[inst : TopologicalSpace X] →
[(s : Set X) → (x : X) → Decidable (x ∈ s)] → LocallyConstant X (Fin 2) ≃ TopologicalSpace.Clopens X
The set of clopen subsets of a topological space is equivalent to the locally constant maps to a two-element set
def LocallyConstant.piecewise E1 #
{X : Type u_1} →
{Z : Type u_3} →
[inst : TopologicalSpace X] →
{C₁ C₂ : Set X} →
IsClosed C₁ →
IsClosed C₂ →
C₁ ∪ C₂ = Set.univ →
(f : LocallyConstant (↑C₁) Z) →
(g : LocallyConstant (↑C₂) Z) →
(∀ (x : X) (hx : x ∈ C₁ ∩ C₂), f ⟨x, ⋯⟩ = g ⟨x, ⋯⟩) →
[DecidablePred fun x ↦ x ∈ C₁] → LocallyConstant X Z
Given two closed sets covering a topological space, and locally constant maps on these two sets, then if these two locally constant maps agree on the intersection, we get a piecewise defined locally constant map on the whole space.
TODO: Generalise this construction to ContinuousMap.
theorem LocallyConstant.piecewise_apply_left E0 #
∀ {X : Type u_1} {Z : Type u_3} [inst : TopologicalSpace X] {C₁ C₂ : Set X} (h₁ : IsClosed C₁) (h₂ : IsClosed C₂)
(h : C₁ ∪ C₂ = Set.univ) (f : LocallyConstant (↑C₁) Z) (g : LocallyConstant (↑C₂) Z)
(hfg : ∀ (x : X) (hx : x ∈ C₁ ∩ C₂), f ⟨x, ⋯⟩ = g ⟨x, ⋯⟩) [inst_1 : DecidablePred fun x ↦ x ∈ C₁] (x : X)
(hx : x ∈ C₁), (LocallyConstant.piecewise h₁ h₂ h f g hfg) x = f ⟨x, hx⟩
theorem LocallyConstant.piecewise_apply_right E0 #
∀ {X : Type u_1} {Z : Type u_3} [inst : TopologicalSpace X] {C₁ C₂ : Set X} (h₁ : IsClosed C₁) (h₂ : IsClosed C₂)
(h : C₁ ∪ C₂ = Set.univ) (f : LocallyConstant (↑C₁) Z) (g : LocallyConstant (↑C₂) Z)
(hfg : ∀ (x : X) (hx : x ∈ C₁ ∩ C₂), f ⟨x, ⋯⟩ = g ⟨x, ⋯⟩) [inst_1 : DecidablePred fun x ↦ x ∈ C₁] (x : X)
(hx : x ∈ C₂), (LocallyConstant.piecewise h₁ h₂ h f g hfg) x = g ⟨x, hx⟩
def LocallyConstant.piecewise' E1 #
{X : Type u_1} →
{Z : Type u_3} →
[inst : TopologicalSpace X] →
{C₀ C₁ C₂ : Set X} →
C₀ ⊆ C₁ ∪ C₂ →
IsClosed C₁ →
IsClosed C₂ →
(f₁ : LocallyConstant (↑C₁) Z) →
(f₂ : LocallyConstant (↑C₂) Z) →
[DecidablePred fun x ↦ x ∈ C₁] →
(∀ (x : X) (hx : x ∈ C₁ ∩ C₂), f₁ ⟨x, ⋯⟩ = f₂ ⟨x, ⋯⟩) → LocallyConstant (↑C₀) Z
A variant of LocallyConstant.piecewise where the two closed sets cover a subset.
TODO: Generalise this construction to ContinuousMap.
theorem LocallyConstant.piecewise'_apply_left E0 #
∀ {X : Type u_1} {Z : Type u_3} [inst : TopologicalSpace X] {C₀ C₁ C₂ : Set X} (h₀ : C₀ ⊆ C₁ ∪ C₂) (h₁ : IsClosed C₁)
(h₂ : IsClosed C₂) (f₁ : LocallyConstant (↑C₁) Z) (f₂ : LocallyConstant (↑C₂) Z)
[inst_1 : DecidablePred fun x ↦ x ∈ C₁] (hf : ∀ (x : X) (hx : x ∈ C₁ ∩ C₂), f₁ ⟨x, ⋯⟩ = f₂ ⟨x, ⋯⟩) (x : ↑C₀)
(hx : ↑x ∈ C₁), (LocallyConstant.piecewise' h₀ h₁ h₂ f₁ f₂ hf) x = f₁ ⟨↑x, hx⟩
theorem LocallyConstant.piecewise'_apply_right E0 #
∀ {X : Type u_1} {Z : Type u_3} [inst : TopologicalSpace X] {C₀ C₁ C₂ : Set X} (h₀ : C₀ ⊆ C₁ ∪ C₂) (h₁ : IsClosed C₁)
(h₂ : IsClosed C₂) (f₁ : LocallyConstant (↑C₁) Z) (f₂ : LocallyConstant (↑C₂) Z)
[inst_1 : DecidablePred fun x ↦ x ∈ C₁] (hf : ∀ (x : X) (hx : x ∈ C₁ ∩ C₂), f₁ ⟨x, ⋯⟩ = f₂ ⟨x, ⋯⟩) (x : ↑C₀)
(hx : ↑x ∈ C₂), (LocallyConstant.piecewise' h₀ h₁ h₂ f₁ f₂ hf) x = f₂ ⟨↑x, hx⟩