Let (X,A), (Y,B) be measurable spaces. f:X→Y is measurable if f−1(B)∈A for every B∈B. For real (or [−∞,+∞]-valued) functions, Y=R carries its Borel σ-algebra, and it suffices to check f−1((t,+∞))={f>t}∈A for all t∈R: the good sets {B:f−1(B)∈A} form a σ-algebra (preimages commute with set operations) containing the generating rays (Definition 9.2, Method 9.17).