Simplify valida_x functions in paper.py