Skip to content

Add global pull lemmas #40183

Description

@grunweg

Some lemmas in mathlib could be global pull lemmas, but we would not like them as push lemmas: Function.comp_def is such an example. As a pull lemma, it expands g ∘ f to fun x => g (f x); there is no apparent use for the converse.

This appears when using the to_fun attribute to generate eta-expanded versions of some statements: in a number of places, we do attribute [local push ←] Function.comp_def to make to_fun behave the way we want. All these locations could benefit from this feature.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions