Pick's Theorem

(Redirected from Pick's theorem)

Pick's Theorem expresses the area of a polygon, all of whose vertices are lattice points in a coordinate plane, in terms of the number of lattice points inside the polygon and the number of lattice points on the sides of the polygon. The formula is:

$A = I + \frac{1}{2}B - 1$

where $I$ is the number of lattice points in the interior and $B$ being the number of lattice points on the boundary. It is similar to the Shoelace Theorem, and although it is less powerful, it is a good tool to have in solving problems.

[asy] size(150); defaultpen(linewidth(0.8)); for (int i = -2; i <= 2; i=i+1) { for (int j = -2; j <= 2; j=j+1) { dot((i,j)); } } draw((-2,-2)--(-2,0)--(0,1)--(-1,2)--(2,2)--(0,0)--(1,-2)--cycle);[/asy]

Proof

If a triangle on the lattice points with exactly $3$ points in its interior or on its edges, it has an area of $\frac{1}{2}$. Such triangle must contain two lattice points distance $1$ from each other and one lattice point on a line parallel to the opposite edge distance $1$ apart. The minimum distance between two distinct lattice points is $1$. If no two lattice points have distance $1$, then by $\frac{1}{2}bh$ the area is more than 1 and similarly for the height. Removing a triangle either removes $1$ boundary point or turns $1$ interior point into a boundary point, accounting for the $I+\frac{1}{2}B$ part. The $-1$ part is accounted for by looking at the area of the unit triangle with $3$ boundary points, $0$ interior points, and $\frac{1}{2}$ area.

Solution by a1b2


The above proof is questionable. Let me added the sketch of two proofs below.

Sketch of Proof 1:

Step 1: Prove the theorem for rectangles whose sides are parallel to the axes. Suppose that the side parallel to the $x$-axis has length $a$, and the side parallel to the $y$-axis has length $b$, then: \[A = ab, \; I = (a-1)(b-1), \; B = 2a+2b,\] and thus the asserted formula holds.

Step 2: Prove the theorem for right triangles whose bases are parallel to the axes. This can be checked by cutting a rectangle in step 1 into two right triangles.

Step 3: Prove the theorem for an arbitrary triangle $T$. Consider a rectangle $R$ containing $T$ with $R \setminus T$ can be divided into several right triangles and rectangles. This enables us to subtract off the right triangles and rectangles from the rectangles to verify the claimed formula.

To be more specific, suppose that $T$ has vertices $V_1 = (x_1, y_1)$, $V_2 = (x_2, y_2)$ and $V_3 = (x_3, y_3)$ with $x_1 \le x_2 \le x_3$. Without loss of generality, suppose $y_1 \le y_3$. If $y_1 \le y_2 \le y_3$ and $V_2$ is below the segment $\overline{V_1V_3}$, then write \[R \setminus T = \Delta_{V_3 V_4 V_1} + \Delta_{V_1 V_5 V_2} + \Delta_{V_2 V_6 V_3} + [x_2,x_3] \times [y_1, y_2],\] where the vertices $V_4 = (x_1, y_3)$, $V_5 = (x_2, y_1)$, $V_6 = (x_3, y_2)$. If $y_2 < y_1$, then write \[R \setminus T = \Delta_{V_3 V_4 V_1} + \Delta_{V_1 V_7 V_2} + \Delta_{V_2 V_6 V_3},\] where the vertices $V_4 = (x_1, y_3)$, $V_6 = (x_3, y_2)$, $V_7 = (x_1, y_2)$. For the cases when $V_2$ is above the segment $\overline{V_1V_3}$, this can be done in a similar way.

Step 4: Prove the theorem for any polygon: simply triangulate the polygon.


Sketch of Proof 2:

Since one can triangulate any polygon, it suffices to prove for triangles. Since if a triangle has any interior points or boundary points other than its vertices, one can further divide this triangle into smaller triangles, it suffices to prove the theorem for triangles with $0$ interior points and $3$ boundary points. This is equivalent to showing that any triangles (whose vertices are lattice points) with $0$ interior points and $3$ boundary points, its area is $0 + 3/2 - 1 = 1/2$.

To show this, without loss of generality we can assume that one vertice is $(0,0)$. Suppose the other two vertices are $(x_1, y_1)$ and $(x_2, y_2)$, we see immediately that $gcd(x_1, y_1) = gcd(x_2, y_2) = 1$ from the fact that there are no boundary points other than the vertices. Since the are of the triangle is given by $|x_1 y_2 - x_2 y_1|/2$, our aim is to show that $|x_1 y_2 - x_2 y_1| = 1$.

We argue by contradiction. Since this is indeed a triangle (which means that $x_1 y_2 - x_2 y_1 \neq 0$), we have $d := |x_1 y_2 - x_2 y_1| \ge 2$. Without loss of generality, we can further assume the sign, i.e $d = x_1 y_2 - x_2 y_1 \ge 2$. Using the fact that $gcd(x_1, y_1) = 1$, there exists integers $a$ and $b$ thus that $b x_1 - a y_1 = 1$. One can show that the distance from the point $(a, b)$ to the line $L_1$ passing through $(0,0)$ and $(x_1, y_1)$ is $\frac{1}{\sqrt{x_1^2  + y_1^2}}$ and both $(a,b)$ and $(x_2,y_2)$ are on the same side of $L_1$. Since the distance from $(x_2, y_2)$ to $L_1$ is $\frac{d}{\sqrt{x_1^2  + y_1^2}}$, the distance from $(a,b)$ to $L_1$ is smaller.

Furthermore, for any integer $k$, the point $(a + kx_1, b + ky_1)$ also has a distance $\frac{1}{\sqrt{x_1^2  + y_1^2}}$ to $L$ and on the same side with $(x_2,y_2)$. Let $L_2$ be the line passing through $(0,0)$ and $(x_2,y_2)$, the distance from $(a + kx_1, b + ky_1)$ to $L_2$ is \[\frac{| (a + kx_1)y_2 - (b + ky_1)x_2 |}{\sqrt{x_2^2 + y_2^2}} = \frac{| ay_2 - bx_2 + kd |}{\sqrt{x_2^2 + y_2^2}}.\] Consequently, one can choose $k$ such that $0 \le ay_2 - bx_2 + kd < d$, i.e. the point $(a + kx_1, b + ky_1)$ is on the same side of $L_2$ with $(x_2, y_2)$ and has a smaller distance. Combining with the previous result, we show that the point $(a + kx_1, b + ky_1)$ is inside the closure of the parallelogram with vertices $(0,0), (x_1,y_2), (x_2,y_2), (x_1+x_2, y_1+y_2)$. So either $(a + kx_1, b + ky_1)$ or $( x_1 + x_2 - (a + kx_1), y_1 + y_2 - (b + ky_1) )$ is an interior point or boundary point for the traingle with vertices $(0,0), (x_1,y_2), (x_2,y_2)$. Due to that the distance from $(a + kx_1, b + ky_1)$ or $( x_1 + x_2 - (a + kx_1), y_1 + y_2 - (b + ky_1) )$ to $L_1$ is $\frac{1}{\sqrt{x_1^2  + y_1^2}}$ or $\frac{d-1}{\sqrt{x_1^2  + y_1^2}}$, this point must be different from the vertices, which finishes the proof.

Usage