/-
Copyright (c) 2022 Kyle Miller. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kyle Miller
-/
module
public import Mathlib.Data.Fintype.EquivFin
/-!
# Lemmas about `Finite` and `Set`s
In this file we prove two lemmas about `Finite` and `Set`s.
## Tags
finiteness, finite sets
-/
public section
open Set
universe u v w
variable {α : Type u} {β : Type v} {ι : Sort w}
theorem Finite.Set.finite_of_finite_image (s : Set α) {f : α → β} (h : s.InjOn f)
[Finite (f '' s)] : Finite s :=
Finite.of_equiv _ (Equiv.ofBijective _ h.bijOn_image.bijective).symm
theorem Finite.of_injective_finite_range {f : ι → α} (hf : Function.Injective f)
[Finite (range f)] : Finite ι :=
Finite.of_injective (Set.rangeFactorization f) (hf.codRestrict _)
¤ Dauer der Verarbeitung: 0.1 Sekunden
(vorverarbeitet am 2026-11-24)
¤
*© Formatika GbR, Deutschland