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. https://www.mathematik.uni-kl.de/~gathmann/class/alggeom-2019/alggeom-2019-c2.pdf
how does changing the definition of regular function affect the theory? Can I just assume the first definition?