lean4-htt/tests/lean/convPatternAtLetIssue.lean
Leonardo de Moura 83cf5b20a1 fix: simpLet
Given `let x := v; b`, `simpLet` was using an incorrect local context to simplify `v`.
2021-10-22 16:29:00 -07:00

12 lines
224 B
Text

def f (x : Nat) := x
def test : (λ x => f x)
=
(λ x : Nat =>
let foo := λ y => id (id y)
foo x) := by
conv =>
pattern (id _)
trace_state
simp
trace_state