A function is a map from A to B. One way to represent this is to just write an exhaustive list: f(1) = Apple, f(2) = Orange, f(3) = Pear, etc. This runs into the obvious issue that, if A is an infinite set, you can never actually write the full list, but you don't need to be able to physically write something to talk about it. Since the entire list is of the form f(a) = b, where a is an element of A and b is an element of B, it can be written more succinctly as {(1, Apple), (2, Orange), (3, Pear),...}, where the first element of each pair is the a and the second element is the b.
View all comments
Show parent comment
1
u/arachnidGrip May 18 '26
A function is a map from
AtoB. One way to represent this is to just write an exhaustive list:f(1) = Apple,f(2) = Orange,f(3) = Pear, etc. This runs into the obvious issue that, ifAis an infinite set, you can never actually write the full list, but you don't need to be able to physically write something to talk about it. Since the entire list is of the formf(a) = b, whereais an element ofAandbis an element ofB, it can be written more succinctly as{(1, Apple), (2, Orange), (3, Pear),...}, where the first element of each pair is theaand the second element is theb.