I need to work with the set of all lines in the Cartesian plane. For my context, the natural way to think of this is that a line can be described by an equation $Ax + By + C = 0$, where $A$ and $B$ cannot both be zero. So a natural representation is as triples $(A,B,C)$ where $A$ and $B$ are not both zero. But the lines characterized by $(A,B,C)$ and by $(7A, 7B, 7C)$ are the same, so I need a quotient. To be explicit, I want to look at the set $Y$ defined by \begin{align} X &= \Bbb R^2 - \{(0,0)\}\\ Y &= X \times \Bbb R \end{align} and the equivalence relation on $Y$ where $((A,B), C) \sim ((P, Q), R)$ if and only if there's a real number $k$ such that $P = kA, Q = kB, R = kC$. Equally good would be to say that $$ Y = \Bbb R^3 - \{(0,0,C) \mid C \in \Bbb R \}, $$ but that seemed as if it might be more difficult to express in Lean.
Those who like geometry will recognize that my set $Y$ is just $\Bbb RP^2$ minus one point, i.e., it's topologically a Mobius band (with "open" edges).
Once I have a description of $Y$, preferably as a type, I can write down the equivalence relation and prove it's an equivalence and even construct the quotient.
Can someone point me in the right direction to defining $Y$ (or even $X$) as a type? (As you may have guessed, I'm a beginner at Lean.)