If $f,g: \mathbb{N}\rightarrow\mathbb{N}$ and $f\circ g=\operatorname{id}_\mathbb{N}$
Is $f$ necessarily invertible?
I can't prove it formally, but also can't come up with two functions that contradict it.
If $f,g: \mathbb{N}\rightarrow\mathbb{N}$ and $f\circ g=\operatorname{id}_\mathbb{N}$
Is $f$ necessarily invertible?
I can't prove it formally, but also can't come up with two functions that contradict it.
Take the function $$f:\Bbb{N}\to \Bbb{N} $$ by $f(1)=1, f(n)=n-1 \forall n >1$. Take $g(n)=n+1$