With an equal protection clause, i.e., no particular number or a group of numbers can appear in the rule, is the problem solvable?
What you want to forbid is not so much mentioning specific numbers, but you want to only allow rules that have certain symmetries. Eg you can require tranlation invariance
rule(x, y, z) = rule(x+offset, y+offset, z+offset)
to restrict the set of rules.