In the literature there appear to be two different definitions of "regular functions":
defined locally by polynomials https://en.wikipedia.org/wiki/Morphism_of_algebraic_varieties
defined locally by rational functions as a well defined quotient of polynomials about each point. http://www.mathematik.uni-kl.de/~gathmann/class/alggeom-2002/chapter-2.pdf
how does changing the definition of regular function affect the theory? Can I just assume the first definition?