Documentation

Mathlib.Order.Fin.InsertNth

Conditions for Fin.insertNth to be monotone or strictly monotone #

theorem Fin.insertNth_zero_monotone {n : } {α : Type u_1} [Preorder α] {f : Fin (n + 1)α} (hf : Monotone f) (x : α) (hx : x f 0) :
theorem Fin.strictMono_insertNth_zero {n : } {α : Type u_1} [Preorder α] {f : Fin (n + 1)α} (hf : StrictMono f) (x : α) (hx : x < f 0) :
theorem Fin.insertNth_monotone {n : } {α : Type u_1} [Preorder α] {f : Fin (n + 1)α} (hf : Monotone f) (i : Fin n) (x : α) (hx₁ : f i.castSucc x) (hx₂ : x f i.succ) :
theorem Fin.strictMono_insertNth {n : } {α : Type u_1} [Preorder α] {f : Fin (n + 1)α} (hf : StrictMono f) (i : Fin n) (x : α) (hx₁ : f i.castSucc < x) (hx₂ : x < f i.succ) :
theorem Fin.insertNth_last_monotone {n : } {α : Type u_1} [Preorder α] {f : Fin (n + 1)α} (hf : Monotone f) (x : α) (hx : f (last n) x) :
Monotone ((last (n + 1)).insertNth 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)