The first two clauses unfold the definition of the value of a function, the third passes through the range, and the metric clause applies the third to the distance map at the pair (x, y).
Every element of a class is a set by Classes, Membership, Sets and Proper Classes (i); in particular , and below and , are sets. By Functions, Values of a Function, and Functions from One Class to Another (iii), is a function with , so by Functions, Values of a Function, and Functions from One Class to Another (ii) is the unique set with . In particular is a set, which is (i), and , which is (ii).
By Relations, Domain, Range, Inverse and Composition (iii) and Class Abstraction: the Class of All Sets Satisfying a Predicative Formula (i), applied to the set , holds if and only if there is a set with ; by (ii) the set is one, so . By Functions, Values of a Function, and Functions from One Class to Another (iii), , so by Subclasses and Subsets (i). This is (iii).
For (iv): by Metric Space (vi) and the standing hypothesis of Metric Space, is a map , a map in the sense of Functions, Values of a Function, and Functions from One Class to Another (iii) as fixed by Sets and Maps: Ordinary Notation (v). Since and are sets, by Membership in a Cartesian Product, and the Cartesian Product of Two Sets Is a Set (i). Applying (iii) to the map from the class to the class at the element gives , which by Sets and Maps: Ordinary Notation (v) is .
Loadingβ¦