Linear functions and duality on the infinite polytorus