lean_workbook_plus_32839
ProvedA function is surjective if for each there is at least one such that . A function is injective if for each there is at most one such that . A function is a bijection if it is both injective and surjective.
Preamble
import Mathlib.Analysis.Complex.Basic
Formal statement
theorem lean_workbook_plus_32839 {X Y : Type*} (f : X → Y) : Function.Surjective f ↔ ∀ y, ∃ x, f x = y := by sorrySource