A line in $\mathbb{R}^2$: a $1$-dimensional non-empty affine subspace of $\mathbb{R}^2$.
- carrier : AffineSubspace ℝ (Fin 2 → ℝ)
Instances For
Membership of a point in a Line2: $p \in \ell$ iff $p$ belongs to the underlying
affine subspace.
Two distinct points determine a unique line: if $p \ne q$ and both lie on two lines $\ell_1, \ell_2$, then $\ell_1$ and $\ell_2$ have the same underlying affine subspace.
Weak incidence bound. For any finite set of points $X$ and lines $L$ in $\mathbb{R}^2$, the incidence count satisfies $I(X, L) \le |X| |L|^{1/2} + |L|$, obtained by Cauchy--Schwarz together with the uniqueness of the line through two points.
The projection map $\pi_\theta : \mathbb{R}^2 \to \mathbb{R}$ is surjective.
A point $q$ lies on the line mkProjLine θ p₀ iff $\pi_\theta(q) = \pi_\theta(p_0)$,
i.e. iff $q$ is on the same projection fiber as $p_0$.
General image-counting lemma: if $g(a_1) = g(a_2)$ implies $f(a_1) = f(a_2)$ on $s$, then $|f(s)| \le |g(s)|$. Used to compare the cardinality of two images via a factoring through one of them.
Algebraic key lemma: from the Szemerédi--Trotter incidence inequality $X D \le X + S D + X^{2/3} (SD)^{2/3}$ with $2S < X$ and $D \ge 2$, deduce the projection bound $D \le 144 \cdot S^2 / X + 1$.
Fiber lines construction. Given a set $X \subset \mathbb{R}^2$, a set of directions $D \subset [0, \pi)$, and an upper bound $|\pi_\theta(X)| \le S$ for every $\theta \in D$, one can construct a set of lines $L$ with $|L| \le S |D|$ and $|X| \cdot |D| \le I(X, L)$ (each point lies on exactly $|D|$ fibers).
Szemerédi--Trotter projection theorem. There exists a universal constant $C > 0$ such that for any finite point set $X \subset \mathbb{R}^2$, set of directions $D \subset [0, \pi)$, and bound $|\pi_\theta(X)| \le S$ for $\theta \in D$, if $2S < |X|$ then $|D| \le C \cdot S^2 / |X| + 1$.