lean4-htt/tests/lean/bad_error2.lean

11 lines
276 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.

open nat
example {k n m : } (h : k + n ≤ k + m) : n ≤ m :=
match le.dest h with
| ⟨w, hw⟩ := @le.intro _ _ w
begin
-- in the following error pp.beta is automatically disabled
rw [nat.add_assoc] at hw,
apply nat.add_left_cancel hw
end
end