Conditions for Fin.insertNth to be monotone or strictly monotone #
theorem
Fin.strictMono_insertNth_zero
{n : ℕ}
{α : Type u_1}
[Preorder α]
{f : Fin (n + 1) → α}
(hf : StrictMono f)
(x : α)
(hx : x < f 0)
:
StrictMono (insertNth 0 x f)
theorem
Fin.strictMono_insertNth_last
{n : ℕ}
{α : Type u_1}
[Preorder α]
{f : Fin (n + 1) → α}
(hf : StrictMono f)
(x : α)
(hx : f (last n) < x)
:
StrictMono ((last (n + 1)).insertNth x f)