theorem
List.SortedLT.erase
{α : Type u_1}
{xs : List α}
[ha : LinearOrder α]
(h : xs.SortedLT)
(x : α)
:
theorem
List.SortedLT.take
{α : Type u_1}
{xs : List α}
[ha : LinearOrder α]
(h : xs.SortedLT)
(n : ℕ)
:
@[simp]
theorem
List.attachWith_eq_attachWith_iff
{α : Type u_1}
{xs ys : List α}
{p : α → Prop}
{h₁ : ∀ x ∈ xs, p x}
{h₂ : ∀ x ∈ ys, p x}
:
@[simp]
theorem
List.attachWith_perm_attachWith_iff
{α : Type u_1}
{xs ys : List α}
{p : α → Prop}
{h₁ : ∀ x ∈ xs, p x}
{h₂ : ∀ x ∈ ys, p x}
:
theorem
List.mergeSort_eq_mergeSort_iff_on
{α : Type u_1}
{xs ys : List α}
{le : α → α → Bool}
(trans : ∀ a ∈ xs ++ ys, ∀ b ∈ xs ++ ys, ∀ c ∈ xs ++ ys, le a b = true → le b c = true → le a c = true)
(total : ∀ a ∈ xs ++ ys, ∀ b ∈ xs ++ ys, (le a b || le b a) = true)
(antisymm : ∀ a ∈ xs ++ ys, ∀ b ∈ xs ++ ys, le a b = true → le b a = true → a = b)
:
theorem
List.mergeSort_append_cons_of_least
{α : Type u_1}
{xs ys : List α}
{x : α}
{le : α → α → Bool}
(trans : ∀ a ∈ x :: xs ++ ys, ∀ b ∈ x :: xs ++ ys, ∀ c ∈ x :: xs ++ ys, le a b = true → le b c = true → le a c = true)
(total : ∀ a ∈ x :: xs ++ ys, ∀ b ∈ x :: xs ++ ys, le a b = true ∨ le b a = true)
(antisymm : ∀ a ∈ x :: xs ++ ys, ∀ b ∈ x :: xs ++ ys, le a b = true → le b a = true → a = b)
(h : ∀ y ∈ xs ++ ys, le x y = true)
:
@[simp]
theorem
List.forIn_append
{α : Type u_1}
{xs ys : List α}
{m : Type → Type}
{σ : Type}
[hm : Monad m]
[hm₂ : LawfulMonad m]
{f : α → σ → m (ForInStep σ)}
{s : σ}
(h : ∃ (g : α → σ → m σ), ∀ (x : α) (s : σ), f x s = ForInStep.yield <$> g x s)
: