lean4-htt/tests/lean/run/bug_refl_lemma.lean
Sebastian Ullrich 5279f92dae fix(library/tactic/simp_lemmas): avoid rewrite failure with more robust code
The old code assumed `emetas` to be descendingly ordered by tmp idx, which is
not true for rfl lemmas.
2018-02-27 10:59:51 -08:00

4 lines
112 B
Text
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

def f := @id
@[simp] lemma foo {α : Type} [inhabited α] : f = @id α := rfl
example : f = @id := by simp