Skip to content

Commit

Permalink
feat(data/nat/basic): succ_lt_succ_iff (#5422)
Browse files Browse the repository at this point in the history
Co-authored-by: Yakov Pechersky <pechersky@users.noreply.github.com>
  • Loading branch information
pechersky and pechersky committed Dec 18, 2020
1 parent 33483a3 commit 0e9a77c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/data/nat/basic.lean
Expand Up @@ -265,6 +265,9 @@ by simp only [add_comm, add_one_le_iff]
theorem of_le_succ {n m : ℕ} (H : n ≤ m.succ) : n ≤ m ∨ n = m.succ :=
(lt_or_eq_of_le H).imp le_of_lt_succ id

lemma succ_lt_succ_iff {m n : ℕ} : succ m < succ n ↔ m < n :=
⟨lt_of_succ_lt_succ, succ_lt_succ⟩

/-! ### `add` -/

-- Sometimes a bare `nat.add` or similar appears as a consequence of unfolding
Expand Down

0 comments on commit 0e9a77c

Please sign in to comment.