Documentation

Init.Control.Lawful.Lemmas

theorem map_inj_of_left_inverse {m : Type u_1 → Type u_2} {α β : Type u_1} [Functor m] [LawfulFunctor m] {f : αβ} (w : (g : βα), ∀ (x : α), g (f x) = x) {x y : m α} :
f <$> x = f <$> y x = y
@[simp]
theorem map_inj_right_of_nonempty {m : Type u_1 → Type u_2} {α β : Type u_1} [Functor m] [LawfulFunctor m] [Nonempty α] {f : αβ} (w : ∀ {x y : α}, f x = f yx = y) {x y : m α} :
f <$> x = f <$> y x = y
@[simp]
theorem map_inj_right {m : Type u_1 → Type u_2} {α β : Type u_1} [Monad m] [LawfulMonad m] {f : αβ} (h : ∀ {x y : α}, f x = f yx = y) {x y : m α} :
f <$> x = f <$> y x = y