$\newcommand{\set}[1]{\{#1\}}$ $\newcommand{\vp}{\varphi}$ $\newcommand{\mr}{\mathscr}$ $\newcommand{\mc}{\mathcal}$ $\newcommand{\A}{\mathbb A}$
I am new to algebraic geometry and in the following I ask two related questions that have come to my mind given the material I have read so far. I believe the notation and terminology I have used is standard. However, I have supplied most of the relevant definitions and notations in the appendix. Please feel free to correct and inaccuracies.
In what follows $k$ is an algebraically closed field.
Question 1
Let $X$ and $Y$ be affine varieties. It is a fact that a morphism $\vp:X\to Y$ is an isomorphism if the corresponding map $\vp^*:\mr O(Y)\to \mr O(X)$ is an isomorphism of $k$-algebras.
Question. Can we extend this fact to the case when $X$ and $Y$ are quasi affine varieties, that is, is a morphism $\vp:X\to Y$ an isomorphism if and only if the corresponding map $\vp^*:\mr O(Y)\to \mr O(X)$ is an isomorphism of $k$-algebras?
The problem I am facing in proving this is the following. When $X$ and $Y$ are affine varieties in $\A^m$ and $\A^n$ respectively, then we have $\mr O(X) = k[x_1, \ldots, x_m]/\mr I(X)$ and $\mr O(Y) = k[y_1, \ldots, y_n]/\mr I(Y)$. Now once we have a $k$-algebra homomorphism $\mr O(Y)\to \mr O(X)$, we get a morphism of varieties $X\to Y$ by using the induced map $\text{MaxSpec}(\mr O(X))\to \text{MaxSpec}(\mr O(Y))$ and then use the nullstellensatz to get a map $X\to Y$.
However, when $X$ and $Y$ are quasi affine varieties in $\A^m$ and $\A^n$ respectively, then one cannot think of $\mr O(X)$ or as a quotient of $k[x_1, \ldots, x_m]$ (and similarly for $\mr O(Y)$). For instance, let $X=\A^1\setminus \set{0}$. Then $\mr O(X) = k[x]_{x}$ which is not a quotient of $k[x]$ but of $k[x, y]$.
So I am unable to identify $\text{MaxSpec}(\mr O(X))$ and $\text{MaxSpec}(\mr O(Y))$ as subsets of $\A^m$ and $\A^n$.
Question 2
Let $\mc V$ be the category of affine varieties and $\mc A$ be the category of finitely generated $k$-algebras that are integral domains. We get an equivalence between two categories by associating to an affine variety its coordinate ring and to a morphism its corresponding map between the algebras, namely the pullback map.
Question. Is there such a statement for the category of quasi affine varieties, that is, is there a nice algebraic category to which the category of quasi affine varieties equivalent?
Question. Suppose we consider the category of subsets of $\A^n$, $n\geq 0$. We can still define $\mr O(X)$ for any such subset and form a category with morphisms as maps which pullback regular functions to regular functions. Is this category useful in any way? Is there a reason why it is not studied?
Appendix
Let $k$ be an algebraically closed field. We write $\A^n$ to denote $k^n$ with the Zariski topology. An affine variety is an irreducible closed subset of some $\A^n$.
Given an affine variety $X$ in $\A^n$, the coordinate ring $\mr A(X)$ of $X$ is defined as $k[x_1, \ldots, x_n]/\mr I(X)$, where $\mr I(X)$ is the set of all the polynomials in $k[x_1, \ldots, x_n]$ which vanish on each point of $X$. It turns out that $\mr I(X)$ is a prime ideal.
A quasi affine variety is any open subset of an affine variety. A regular function on a quasi affine variety $Y\subseteq \A^n$ is a map $\vp:Y\to k$ which can be locally written as a quotient of polynomials in $k[x_1, \ldots, x_n]$. The set of all the regular functions on $Y$ is denoted by $\mr O(Y)$. It turns out that $\mr O(Y)$ has a natural $k$-algebra structure. It is a fact that if $X$ is an affine variety, then $\mr A(X)$ can be naturally identified with $\mr O(X)$.
A morphism of quasi affine varieties $X$ and $Y$ is a map $\vp:X\to Y$ which is continuous (in the Zariski topology) such that $\vp$ pulls back regular functions on $Y$ to regular functions on $X$. Given a morphism $\vp:X\to Y$, we get the pullback map $\vp^*:\mr O(Y)\to \mr O(X)$, and it is easy to check that $\vp^*$ is a $k$-algebra homomorphism.