lean4-htt/tests/lean/2514.lean

17 lines
500 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.

-- dsimp can close goals by rfl
-- but metadata would inhibit this
-- Easy case: no metadata, so expected to work even without fix.
example : ∀ (x : α × α), x = id x := by
intro p
dsimp
-- The `intro` adds `noImplicitLambda` metadata. Without fix, a `rfl` is needed.
example : ∀ (x : α × α), x = id x := by
intro (x, y)
dsimp
-- The `have` adds `noImplicitLambda` metadata. Without fix, `dsimp` makes no progress.
example {α : Type _} (n : α) : n = n := by
have := 0
dsimp