Skip to content

Look behind definitions (such that explicit unfolds are not needed) when performing rewrites #8

@dranov

Description

@dranov

This is the behaviour Coq rewrite seems to have.

Currently in Lean, we either:

  1. Add a @[simp] attribute to the definition, which means it's always unfolded when simplification is called – which is annoying when a goal has multiple functions, only some of which we want to unfold, or
  2. Manually unfold before calling the rewrite, which is verbose

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions