⊦ valid-indices(ar, nx) ↔ (∀ n. n ∈ nx → n < # ar)
n ≤ # ar ⊦ ∀ n0. n0 ∈ ar.indicesWhere(φ, n) → n0 < # ar
Used terms: ar.indicesWhere(φ, n), ar