Constrain Every Array Element
Problem
Every element of a random array must satisfy the same constraint, and writing one constraint per index does not scale with the array size.
Solution
Use a foreach constraint with an index_identifier. The constraint body is applied to
each element in turn.