lean4-htt/tests/lean/run/4290.lean
Markus Himmel 5a34ffb9b0
chore: upstream Nat material from mathlib (#7971)
This PR upstreams much of the material from `Mathlib/Data/Nat/Init.lean`
and `Mathlib/Data/Nat/Basic.lean`.
2025-04-16 06:55:32 +00:00

36 lines
829 B
Text

attribute [-simp] Nat.left_eq_add -- This was later added to the simp set and interfere with the test.
def foo : Nat := 0
def bar : Nat := 0
@[simp] theorem foo_eq_bar : foo = bar := rfl
example : foo = bar := by simp [← foo_eq_bar]
example : foo = bar + 1 := by
simp [← foo_eq_bar]
guard_target =ₛ foo = foo + 1
sorry
def a : Nat := 0
def b : Nat := 0
def c : Nat := 0
@[simp] theorem abc : a = b ∧ a = c := And.intro rfl rfl
example : a = b := by simp [← abc]
example : a = c := by simp [← abc]
example : a = c + 1 := by
simp [← abc]
guard_target =ₛ a = a + 1
sorry
opaque d : Nat
opaque e : Nat
@[simp↓] theorem de : d = e := sorry
example : d = e := by simp [← de]
example : d = e := by simp [↓←de]
example : d = e + 1 := by
simp [↓←de]
guard_target =ₛ d = d + 1
sorry