fix: have app unexpanders be considered before field notation

On [Zulip](https://leanprover.zulipchat.com/#narrow/stream/270676-lean4/topic/Notation.20in.20namespace.20not.20showing.20in.20pp/near/437016468), Peter Nelson reported that notations that could be pretty printed with generalized field notation did not pretty print using the notation.

This PR has app unexpanders be considered before generalized field notation. The complexity before was that we wanted to do parent projection collapse, which meant it was not safe to consider app unexpanders anymore. The new solution is to collapse parent projections only when actually considering field notation, which can be done because we can safely strip off projection syntax in an expression-directed way.
3 files changed