I am trying to represent a set of rules using set notation. Each rule has the following format: $i.l.T^{i}_{l}$
This is a small example showing what I would like to represent using an expression.
If $S = \{i_{1},i_{2}\}$, $L^{i_{1}} = \{ l_{a}, l_{b} \}$ and $L^{i_{2}} = \{ l_{b}, l_{c} \}$;
$ T^{i}_{l}$ = represents the set of target agents selected with $i$ and $l$ as input
Full set of rules: $R = \{ (i_{1}. l_{a}.T^{i_{1}}_{l_{a}}),(i_{1}. l_{b}.T^{i_{1}}_{l_{b}}),(i_{2}. l_{b}.T^{i_{2}}_{l_{b}}),(i_{2}. l_{c}.T^{i_{2}}_{l_{c}}), \}$
Below is the logic for generating the set of rules.
R <- {}
For each i in S:
L <- get the set of links i can form
For each l in L(i)
t <- T(i,l) //Get set of target agents of i under link l
i.l.T //create this rule
R.add(i.l.T)
So far I have managed to get this far.
I am not sure if I have got it right. Especially whether I capture different values of $l$ correctly for each $i$
$R =\{ i.l.T{^i}_{l} |(\forall i \in S) ( \forall l \in L^{i})\} $