Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: adds some unexpanders for functors. (#2545)
A (category-theoretic) functor is defined to extend a `Prefunctor`, which has data fields `obj` and `map`. We routinely use `F.obj` as a spelling for `F.toPrefunctor.obj` and similarly for `map`. However, when pretty printed, an application of this function would display as `Prefunctor.obj F.toPrefunctor X` and the analogous thing for `map`. This PR is an attempt to fix this with two unexpanders, one for `obj` and one for `map`. [Zulip "discussion"](https://leanprover.zulipchat.com/#narrow/stream/287929-mathlib4/topic/unexpanders.20for.20functors/near/338492828)
- Loading branch information