Used simplifier rules: firstN-lastN-in: ⊦ n ≤ # x ∧ a ∈ x ∧ ¬ a ∈ lastn(n, x) → (¬ a ∈ firstn(# x - n, x) ↔ false);