# What does Liu mean by “topological open/closed immersion” in his book “Algebraic Geometry and Arithmetic Curves”?

In his book "Algebraic Geometry and Arithmetic Curves", Liu defines open/closed immersions of locally ringed spaces in terms of topological open/closed immersions:

What does he mean by the terms "topological open (resp. closed) immersion"?

Does he mean that

1. $f(X)$ is an open (resp. closed) subset of $Y\!,\,$ and

2. the induced map $X\to f(X); \;x \mapsto f(x)$ is a homeomorphism?

Many thanks! :)

1. $f(X)$ is open (closed) and $f$ is a homeomorphism on its image
2. $f$ is open (closed) and a homeomorphism on its image