Pigeonhole principle Created 2026-09-24 Updated 2026-10-18
Place objects into boxes, assigning each object to exactly one box. Here is a nonnegative integer and is a positive integer. The pigeonhole principle says that if , some box contains at least two objects. Equivalently, a function from an -element finite set to an -element finite set cannot be an injective function when . The boxes may stand for categories rather than physical containers. [ref]
For thirteen objects and twelve boxes, a box containing at least two is unavoidable. Thinking of thirteen people and their birth months gives the same conclusion: at least two share a birth month. Twelve people could occupy the twelve months one apiece, so thirteen is the smallest number that forces a shared month. The generalized pigeonhole principle quantifies how many objects must share a box when there are still more objects.
The useful surprise is that the pigeonhole principle proves existence without needing to locate the objects involved. Choosing a good assignment rule is often the creative step: equal labels can mean equal remainders, nearby points, or repeated states of an algorithm. Once the rule is chosen, a short count can force a relationship among a much larger collection of objects. The pigeonhole principle itself does not name the crowded box. When the objects and their assignments are explicitly available, a simple algorithm finds one: scan the objects, keep the first object seen in each box, and stop when a later object enters an occupied box. At most scanned objects are needed when .
A geometric example. Any five points in a square of side one contain two whose Euclidean distance is at most . Give each point Cartesian coordinates . Divide both ranges into the intervals and , making four cells. Thus belongs to the left half and to the right half; belongs to the lower half and to the upper half. This convention assigns every boundary point to exactly one cell.
The pigeonhole principle puts two of the five points in the same cell. Their differences in Cartesian coordinates have magnitude at most , so the Pythagorean theorem gives their Euclidean distance the bound
For the plotted points , , , and , the first two occupy the lower-left cell and have Euclidean distance . These Cartesian coordinates exhibit the forced pair; the argument applies to every placement of five points.
Figure 1.
The pigeonhole principle places two of five points in one of four cells of a square, bounding their Euclidean distance by
. Details.
An arithmetic example. Assign eight integers to their seven residue classes modulo the integer modulus . The pigeonhole principle gives two with the same residue class, so is an integer divisor of their difference. In , for example, and satisfy the integer congruence , and . Likewise, assigning fractional parts to short intervals gives the Dirichlet approximation theorem; its existing article explains the approximation bound.
A natural transformation between functors to the Category of sets is a monomorphism in the functor category exactly when every component is an injective function. Componentwise cancellation proves sufficiency. For necessity, the Yoneda lemma converts two elements with equal component images into two transformations from a covariant representable functor; monicity cancels these transformations, forcing the elements to coincide. The argument remains valid for a locally small category in an ambient universe where the functor category is formed.
Rule of product 2026-10-13
For finite sets, the number of ordered choices of one element from each is the product of the individual numbers of choices. More generally, if stage has exactly possible choices after every permitted history of earlier stages, the total number of full choice sequences is , by mathematical induction on the stages. This counts functions between sets of sizes , and counts the injective functions by the falling factorial when .
With five people, choose a captain in five ways and a different deputy in four ways: ordered assignments. The second choice depends on the first because the captain is excluded, but its number of permitted options is always four. The rule of product therefore applies without any assumption about independent events. To count two-person teams instead, each subset has two possible role assignments, so division by gives ten teams. This division works because every team was counted equally often.
Simple curve Created 2026-09-28 Updated 2026-09-29
A simple curve is an injective curve, apart from the permitted coincidence of its two endpoints when it is closed.
Stretch factor 2026-10-14
For an injective function that does not increase distances, one stretch-factor convention measures the largest compression that must be undone:
If the sharp Lipschitz constant of is one, this equals bi-Lipschitz distortion. Fixing the scale matters: uniform compression has stretch factor two in this convention, but bi-Lipschitz distortion one. In a geometric spanner, the corresponding stretch factor is the largest graph-route distance divided by direct Euclidean distance; the graph-to-Euclidean identification does not increase distances. [ref].
Thermometer Created 2026-10-14 Updated 2026-10-14
A thermometer measures temperature through a physical response whose relation to temperature is known. Examples include the length change from thermal expansion, a change in electrical resistance, and the pressure of a gas thermometer. If the response function is an injective function over the working range, its measured value determines through the inverse function. Thermometer calibration establishes that relation for the particular instrument and measurement conditions. Two matching readings are meaningful only after calibration to a common scale and with the probes sampling comparable equilibrium states. [ref]
For a contact thermometer, the sensing part must reach thermal equilibrium with the region being measured. That region may differ from the rest of the object: an immersed probe near a heater can read a local temperature while the surrounding water remains cooler. A stable reading can also be a steady state set by competing heat transfer paths to the sample and the room. Good contact, adequate immersion, mixing where appropriate, and checks for spatial differences help establish which temperature the reading represents. These are measurement controls inferred from the thermal equilibrium requirement, not a guarantee that every flat trace is equilibrium.
A thermometer also changes the sample it touches. Consider an original toy calculation with an initially uniform sample at , a probe at , and constant whole-body heat capacities and . Suppose together they form an isolated system, with no work or phase transition and negligible contact energy. The first law of thermodynamics and thermal equilibrium give
The final thermometer reading underestimates the sample's original temperature by about , although it correctly measures their new common temperature. The disturbance becomes small when the participating probe heat capacity is small compared with the sample's. A large controlled heat bath is a different limit: it supplies or removes heat while approximately maintaining its own temperature.
Waiting time is a separate issue from disturbance. Under a toy Newton's law of cooling model for a uniform probe in a maintained heat bath, a constant contact conductance gives
The time constant controls this exponential decay. For stipulated values , and , the probe reads about after one time constant and after three. These are calculated values, not an instrument specification or measured data. Real probes may have multiple relaxation times and additional heat transfer paths; choose an equilibration criterion from the required accuracy, rather than assuming that a fixed waiting time works universally.
Torus knot Created 2026-09-24 Updated 2026-10-14
For nonzero coprime integers , the torus knot lies on a standard unknotted torus in the three-sphere and winds times meridionally and times longitudinally. Here a meridian of a solid torus goes around the small cross-section of the doughnut, while the longitudinal direction goes around its central hole. The integers count signed turns, so changing one sign gives the mirror of a link of the torus knot. In this article is always the meridional count and the longitudinal count.
An explicit parametric curve in three-dimensional Euclidean space is
where . Its cylindrical radius satisfies , the equation of the supporting torus. Its meridional angle is and its longitudinal angle is : this checks the convention directly rather than relying on the picture. Its squared speed is
If two parameter values give the same point, their difference satisfies . Bézout's identity for the coprime integers then gives . Thus the loop closes and is an injective function on the parameter circle, with nonzero derivative; it is a smooth embedding.
For example, , , , produces a trefoil knot. During one circuit the meridional angle changes by and the longitudinal angle by . The supporting torus is a guide for construction, not a constraint on later ambient isotopies: the knot may move off it. This family makes arithmetic visible as geometry: the coprime integers determine whether a single traversal visits the whole loop without repetition.
Figure 1.
The trefoil T(2,3): two meridional turns and three longitudinal turns
. Details.
The coprime integers hypothesis matters. If the greatest common divisor is , the same parametric curve retraces a single component times; it does not automatically draw different components. The corresponding torus link is instead the full set of points on the torus whose angles satisfy , with meridional angle and longitudinal angle . It has disjoint components, each with winding counts . For instance, the torus link consists of two parallel loops and is a Hopf link, whereas substituting into simply traces one of those loops twice.
Fix . There is no injective function from all length- binary strings to binary strings of length strictly less than . There are possible inputs, but even allowing the empty string gives only
possible shorter outputs. The finite geometric series and pigeonhole principle leave at least two inputs sharing an output, which prevents exact decoding. For , eight inputs compete for the empty string and the six strings 0, 1, 00, 01, 10, 11.
This counting argument includes any file header or other information sent to the decoder. An algorithm chosen separately for each input must also be identified to the receiver; its description is not free. A useful compressor saves space on some inputs while leaving others unchanged or making them longer. Lossy compression avoids the exact-recovery requirement by deliberately allowing several inputs to share an output.
Put a contact thermometer in thermal contact with , wait for thermal equilibrium, and record response . Repeat with under the same operating constraints. If , and the calibrated response is an injective function of temperature on this range, occupies the same thermal reference state in both comparisons. The zeroth law of thermodynamics then predicts . Equality of raw numbers from different uncalibrated thermometers supplies no such premise.[ref]
Use a probe whose participating heat capacity is small relative to each sample, or use maintained heat baths. Otherwise the matching readings describe the disturbed final states. Also hold the probe's immersion and mechanical conditions fixed: its response can depend on more than temperature. Matching readouts only tests agreement within resolution and repeatability, rather than proving exact equality of temperatures.
Agreement within a tolerance is not itself an equivalence relation. With a tolerance, readings and each agree with , yet disagree with each other. This is a limitation of the measurement rule, not a failure of the exact transitivity asserted by the zeroth law of thermodynamics.