lean4-htt/tests/lean/run/2669.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

15 lines
423 B
Text

def f : Nat → Nat := fun x => x - x
@[simp] theorem f_zero (n : Nat) : f n = 0 :=
Nat.sub_self n
example (n : Nat) : False := by
let g := f n
have : g + n = n := by
fail_if_success simp (config := { zeta := false }) [Nat.zero_add, -Nat.add_eq_right] -- Should not succeed
simp [g]
sorry
example (h : a = b) : (fun x => a + x) 0 = b := by
fail_if_success simp (config := { beta := false })
simp [*]