lean4-htt/tests/lean/4452.lean
2024-06-17 23:21:14 +00:00

29 lines
420 B
Text

def a := 1
@[deprecated]
theorem hi : a = 1 := rfl
attribute [simp] hi
example (h : 1 = b) : a = b := by
simp
guard_target =ₛ 1 = b
exact h
set_option linter.all true
example (h : 1 = b) : a = b := by
simp[
hi
]
guard_target =ₛ 1 = b
exact h
@[deprecated]
theorem hi' : True := .intro
example : True := by
-- the warning is on `simp`
simp [
hi' -- warning should be logged here
]