I would like to model linked lists using set theory similar to that in Scheme and LISP.
There is a set theoretic definition of the ordered pair:
$p = \{\{a, 1\}, \{b, 2\}\}$
My question is how does one distinguish a value from a pointer to another list? Should I just use more types like $3$ for value and $4$ for pointer?
So in LISP:
$l= ((('a').()), (('c'.'d').()))$
In set theory beginning of above list:
$l = \{\{h, 1\}, \{i, 2\}\}$
$h = \{\{a, 1\}\}$
$a = \{\{b, 4\}\}$
$b = \{\{'a', 3\}\}$
Without distinguishing pointer from value I'm not sure how a distinction can be made.