Independence of values of algebraic functions