The image of a map
Content created by Fredrik Bakke, Egbert Rijke and Jonathan Prieto-Cubides.
Created on 2022-02-15.
Last modified on 2023-09-06.
module univalent-combinatorics.image-of-maps where open import foundation.images public
Imports
open import foundation.decidable-equality open import foundation.decidable-types open import foundation.fibers-of-maps open import foundation.propositional-truncations open import foundation.subtypes open import foundation.surjective-maps open import foundation.universe-levels open import univalent-combinatorics.dependent-pair-types open import univalent-combinatorics.equality-finite-types open import univalent-combinatorics.finite-types
module _ {l1 l2 : Level} {A : UU l1} {B : UU l2} {f : A → B} (K : is-finite A) where abstract is-finite-codomain : is-surjective f → has-decidable-equality B → is-finite B is-finite-codomain H d = is-finite-base-is-finite-Σ-merely-inhabited ( is-set-has-decidable-equality d) ( H) ( is-finite-equiv' (equiv-total-fiber f) K) ( λ b → is-finite-Σ K (λ a → is-finite-eq d)) abstract is-finite-im : {l1 l2 : Level} {A : UU l1} {B : UU l2} {f : A → B} (K : is-finite A) → has-decidable-equality B → is-finite (im f) is-finite-im {f = f} K d = is-finite-codomain K ( is-surjective-map-unit-im f) ( λ x y → is-decidable-equiv ( extensionality-type-subtype' (λ u → trunc-Prop (fiber f u)) x y) ( d (pr1 x) (pr1 y)))
Recent changes
- 2023-09-06. Egbert Rijke. Rename fib to fiber (#722).
- 2023-06-07. Fredrik Bakke. Move public imports before “Imports” block (#642).
- 2023-04-08. Egbert Rijke. Refactoring elementary number theory files (#546).
- 2023-03-10. Fredrik Bakke. Additions to
fix-import
(#497). - 2023-03-09. Jonathan Prieto-Cubides. Add hooks (#495).