Sets, membership, and logic

Read set-builder notation as a typed logical filter over a candidate domain.

Notes

Turn logic into a filtering procedure

Read set-builder notation as a typed filter—candidate domain, true-or-false test, result set—and read quantifiers in order to expose dependency.

Run the candidate test

$$\{x\in\{-1,0,2\}\mid x>0\}=\{2\}$$

Test each candidate against x greater than zero: negative one and zero fail, two passes, and only two enters the result set.

Domain is not membership

$$x\in\mathbb{R}$$

Tempting reading: Treating the domain clause as proof that every real number belongs to the set being defined.

Apply the predicate

The clause only supplies eligible candidates. The proposition after “such that” decides which candidates the outer braces collect.

Draw dependency arrows

$$\forall x\in\mathbb{R},\;\exists y\in\mathbb{R}:y>x$$

A theorem uses nested quantifiers whose order controls which witness may see which choice.

Write the chooser order

Write the chooser order and dependency arrows. Here y may depend on x; reversing the quantifiers demands one fixed y above every real x and changes the claim.