module
public meta import Mathlib.Control.Functor
public import Mathlib.Tactic.HigherOrder
set_option autoImplicit true
namespace HigherOrderTest
@[higher_order map_comp_pure]
theorem map_pure' {f : Type u → Type v} [Applicative f] [LawfulApplicative f]
{α β : Type u} (g : α → β) (x : α) : g <$> (pure x : f α) = pure (g x) := map_pure g x
example {f : Type u → Type v} [Applicative f] [LawfulApplicative f]
{α β : Type u} (g : α → β) : Functor.map g ∘ (pure : α → f α) = pure ∘ g := by
apply map_comp_pure
end HigherOrderTest
¤ Dauer der Verarbeitung: 0.0 Sekunden
(vorverarbeitet am 2026-11-24)
¤
*© Formatika GbR, Deutschland