Images of subtypes
module foundation.images-subtypes where
Imports
open import foundation.images open import foundation-core.functions open import foundation-core.subtypes open import foundation-core.universe-levels
Idea
Consider a map f : A → B
and a subtype S ⊆ A
, then the images of S
under
f
is the subtype of B
consisting of the values of the composite S ⊆ A → B
.
Definition
module _ {l1 l2 : Level} {A : UU l1} {B : UU l2} (f : A → B) where subtype-im-subtype : {l3 : Level} → subtype l3 A → subtype (l1 ⊔ l2 ⊔ l3) B subtype-im-subtype S y = subtype-im (f ∘ inclusion-subtype S) y