Skip to content

Commit 527baba

Browse files
committed
feat(Data/Finset/Range): add strictMono_range (leanprover-community#39557)
1 parent 9529c50 commit 527baba

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

Mathlib/Data/Finset/Range.lean

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,9 @@ theorem range_subset_range {n m} : range n ⊆ range m ↔ n ≤ m := by grind
9292

9393
theorem range_mono : Monotone range := fun _ _ => range_subset_range.2
9494

95+
theorem strictMono_range : StrictMono range :=
96+
strictMono_nat_of_lt_succ fun _ ↦ by simp [ssubset_def]
97+
9598
theorem mem_range_succ_iff {a b : ℕ} : a ∈ range b.succ ↔ a ≤ b := by grind
9699

97100
theorem mem_range_le {n x : ℕ} (hx : x ∈ range n) : x ≤ n := by grind

0 commit comments

Comments
 (0)