@[simp]
instance : LE α := ⟨fun _ _ ↦ True⟩
@[simp]
abbrev Sorted : List α → Prop
| [] | [_] => True
| x :: x' :: xs => x ≤ x' ∧ Sorted (x' :: xs)
theorem sortExists (xs : List α) : ∃ ys, Sorted ys ∧ xs.Perm ys :=
⟨xs, by
induction xs
case nil => simp
case cons _ xs _ => induction xs <;> simp; grind⟩