All Exercises
#53 Left Inverse Implies Injectivity
live.lean-lang.org
Pure Lean 4 · No Mathlib
EasyFunctions & Relations

53. Left Inverse Implies Injectivity

Prove that any function `f : α → β` with a left inverse (retraction) `g : β → α` satisfying `∀ x, g (f x) = x` must be injective.

Target Theorem
theorem left_inverse_injective (α β : Type) (f : α → β) (g : β → α) (h : ∀ x, g (f x) = x) : ∀ x y, f x = f y → x = y
Hints (0/2)

Stuck? Reveal hints one step at a time without spoiling the full proof.

Symbols:
Initializing Lean 4 editor…
Infoview & Diagnosticsline 1idle
Write your proof above and click Submit Proof (or open in live.lean-lang.org).