lean4-htt/library/data/nat/sub.lean

18 lines
462 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.

/-
Copyright (c) 2014 Floris van Doorn. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Floris van Doorn, Jeremy Avigad
Subtraction on the natural numbers, as well as min, max, and distance.
-/
namespace nat
/- subtraction -/
-- defined in data/nat/sub.lean
protected theorem sub_le_sub_right {n m : } (H : n ≤ m) : Πk, n - k ≤ m - k
| 0 := H
| (succ z) := pred_le_pred (sub_le_sub_right z)
end nat