Skip to content

Main content

Set Membership Four Way Label Tool

Classify one element into the four Boolean membership regions of two sets.

Loading tool…

Description

Map the two Boolean membership flags to intersection, first-only, second-only, or neither.

A set contains distinct values, so duplicate input items do not contribute additional members. Ordered output is a serialization convention; membership, equality, and the chosen universe determine the underlying set result.

Map the two Boolean membership flags to intersection, first-only, second-only, or neither.

When to use this tool

Use Set Membership Four Way Label when you need a deterministic operation on explicitly supplied sets or a finite membership representation.

How to use the tool and how it works

  1. Enter inFirst, inSecond. Use the units and conventions below.
  2. Run the tool. Correct any format, range, or cross-field input error before interpreting the output.
  3. Read region. Use the output convention below.

Map the two Boolean membership flags to intersection, first-only, second-only, or neither.1

Input fieldMeaning and unitsAccepted input
inFirstIn FirstRequired. Boolean.
inSecondIn SecondRequired. Boolean.
Output fieldInterpretationReturned shape
regionRegionRequired. Text; maximum UTF-16 length 8192.
json
{
  "input": {
    "inFirst": true,
    "inSecond": false
  },
  "output": {
    "region": "first-only"
  }
}

Limitations and assumptions

  • This labels supplied membership, without inspecting sets or verifying a universal-set definition.
  • Inputs must satisfy both the field types and the cross-field conditions above. Invalid input causes an error; a successful false flag or documented placeholder is a different result.

Alternative or Complementary methods

Specify the universe and equality convention before combining this result with other set operations.

References

  1. Calculation and input contract: set/set-membership-four-way-label — tool.io

Similar or alternative tools