(a, b] = {x / a < x ≤ b}
[a, b) = {x / a ≤ x < b}
Half-closed intervals are also called half-open intervals.