I'd prefer these stay explicit. I understand there's duplication, and maybe there is a way to reduce some of the ceremony, but there is a lot of important information about the inputs there (for example, the fact that each thing is named "x") and I'd rather those not be abstracted into a separate file.  In tests, it's better to have explicit inputs and outputs so the reader can read the test.