Good evening. I have a question.
Suppose I have two sets, $A=\{1,2,3,4\}$ and $B=\{5,6\}$. I want to write the notation for a function that takes each element in $A$ and assigns to it a value in $B$. However, suppose that I want to make sure that the four-element set I wind up with has a certain number of 5's and 6's in it. Let's say $C=\{3,1\}$ and $c_{k}\in C$, where $c_{k}$ denotes the number of times $k^{th}$ element in $B$ appears in the list in the end. This means that $\{5,5,6,5\}$ is a possible list but $\{5,6,6,5\}$ is not. Is a way to write this procedure the following? $f:\{A\rightarrow B:\left|f^{-1}(k)\right|=c_{k}\}$
Once again, thanks in advance.
No. That's not a way to write that (although you could perhaps define that notation to mean that...but people would be puzzled). The arrow notation has the form $$ f: A \to B $$ where $f$ is a function, and $A$ and $B$ are sets. Your example doesns't follow that pattern.
I don't know a standard way to write what you want, except perhaps to say
$$ f: A \to B, \text{ such that } |f^{-1}(\{5\})|= 3. $$