containselement
Containselement is a predicate used in mathematics and computer science to express whether a container includes a given element. In set theory, the statement “A contains element x” is true precisely when x is a member of A, commonly written as x ∈ A. Equivalently, containselement(A, x) holds if and only if x ∈ A.
In the context of multisets, the predicate may take multiplicity into account: containselement(A, x) is true
In programming languages, containers often provide a contains or has method to test membership. For example,
Containselement is related but distinct from the subset relation. If B is a set, A ⊇ B expresses
Applications include formal specifications, query languages, data validation, and automated reasoning, where explicit membership tests help
See also: membership, element of, contains operator, subset, multiset.