Generalised Mermin-type non-locality arguments (Logical Methods in Computer Science, 2019)