Difference set Created 2026-09-24 Updated 2026-10-13
For finite sets in an abelian group , their difference set isHere is the additive inverse in . The difference set records possible displacements from a member of to a member of ; it is distinct from the set difference .
For the integer sets and ,The positive differences for are , each obtained once; reversing each ordered pair supplies the corresponding negative difference. Every nonempty finite set has , with representations . Swapping the members of an ordered pair also shows . In the cyclic group , the subgroup satisfies as well as .
Dirac measure Created 2026-10-05 Updated 2026-10-14
On a measurable space , the Dirac measure at assigns unit mass according to whether a measurable set contains that point:Here is the indicator function. This is a probability measure, since . For pairwise disjoint measurable sets , at most one contains , so : countable additivity reduces to a membership test. The definition works even when the singleton is not a measurable set. [ref]
To assert that its support of a measure is exactly , assume that is a metric space and is its Borel sigma-algebra. The singleton is then a closed set and a Borel set, with . Every open neighbourhood of has mass one; every other point has an open ball of radius less than its distance from , with mass zero. Thus . An abstract measurable space has no specified topology, so this topological conclusion is not part of the bare definition. Indeed, on the sigma-algebra , all Dirac measures coincide: the available measurable sets cannot distinguish points.
The Lebesgue integral against a Dirac measure is evaluation:This holds for every nonnegative measurable function, allowing an infinite value, and for real or complex measurable functions satisfying , which are precisely the integrable functions for . For a nonnegative simple function, only the cell containing contributes to its integral; increasing simple functions and the monotone convergence theorem extend the identity. Splitting into positive and negative parts, and then real and imaginary parts, gives the remaining cases. This is why a Dirac measure turns integration into a point query.
For a measurable function , its pushforward measure satisfiesConsequently for nonnegative or integrable measurable functions . For example, on the real numbers with their Borel sigma-algebra, sends to , so integrating against that pushforward measure gives . [ref]
https://terrytao.wordpress.com/2009/01/01/245b-notes-0-a-quick-review-of-measure-and-integration-theory/. Terence Tao, 245B notes 0, Example 10 and Theorem 2(8): pushforward and change of variables
Finite weighted sums of Dirac measures give useful measures with finitely many point masses. For finite nonnegative weights ,for nonnegative measurable functions , or whenever , with zero-weight terms omitted. Repeated locations have their weights added. On the real numbers, this is the finite version of the measure underlying the left-continuous cumulative function of an atomic measure; a positive-weight singleton is an atom of a measure. Unit weights at the distinct points of a finite set recover counting measure on that set. [ref]
https://terrytao.wordpress.com/2010/09/25/245a-notes-3-integration-on-abstract-measure-spaces-and-the-convergence-theorems/. Terence Tao, 245A notes 3, Exercises 21 and 25: representation by weighted Dirac measures
The same function can have sharply different integrals for different measures. On with its Borel sigma-algebra, defineHere is Lebesgue measure and is counting measure. The singleton is a Lebesgue null set, so its changed value leaves the Lebesgue integral equal to . For counting measure on the whole interval, on an infinite set, forcing an infinite integral. On the smaller measure space with its power set and counting measure, the restricted function instead has integral .
This also explains the almost everywhere convention in Lp spaces: equality almost everywhere for requires equality at , whereas equality almost everywhere for Lebesgue measure allows different values at that singleton. A point value therefore cannot be read unambiguously from an equivalence class in an Lp space formed using Lebesgue measure.
On the real numbers, a Dirac measure gives the Dirac delta distribution by for every test function. The name Dirac delta function does not mean an ordinary function that is zero away from and infinitely high at . Such a nonnegative measurable function still has Lebesgue integral zero, because its nonzero values occur on a Lebesgue null set. More generally, no nonnegative density with respect to Lebesgue measure can represent : it would give , contradicting unit mass. The measure and its associated distribution act on different kinds of inputs, namely measurable sets and test functions, but express the same point evaluation. [ref]
https://terrytao.wordpress.com/2009/04/19/245c-notes-3-distributions/. Terence Tao, 245C notes 3: Radon measures, test functions, and the Dirac delta distribution
Discrete uniform distribution Created 2026-09-29 Updated 2026-10-14
A discrete uniform distribution gives every element of a nonempty finite set the same probability. Write for its cardinality. A random variable with this law has support of a probability distribution and probability mass functionThe masses sum to . Conversely, if all masses equal , their sum is , so necessarily . Thus equal chances determine the whole law.[ref]
Counting now computes an event's probability: for any set of possible values,In particular, when , the answer is . The intersection matters: values outside the support of a probability distribution contribute zero. This turns a probability question into a combinatorics question, provided that equal chances are justified by the model.
For an ideal fair six-sided die, and each face has probability . The event of an even integer is , so its probability is ; the event has probability . Direct summation gives the expected value and the variance . The mean is a balance point between possible outcomes. These are exact consequences of stipulated fairness, rather than measured frequencies from physical dice.
Uniformity describes probabilities, not distances between values. For a second constructed model, stipulate equal-chance selection from . Every value has probability , despite the unequal gaps . Here , while the expected value and variance areNeither the midpoint of the extreme values, , nor a formula using only the cardinality gives these moments. For a general numerical support of a probability distribution, use its actual values:
Equal chances for unequal gaps: four masses and four equal-width sampling intervals
. Details. Choosing an item from a finite list with equal chances is a basic building block of simple random sampling. A bijection that relabels the items preserves equal probabilities, although changing numerical labels can change the expected value and variance. A function that merges labels can destroy uniformity: for the fair-die model, has masses at , since four faces map to three. Always count the original equally likely outcomes.
An indicator random variable for membership in a set has a Bernoulli distribution with parameter ; counting that event over independent repetitions gives a binomial distribution with parameters and . Equal chances among individual values need not produce equal chances among aggregated counts.[ref]
Introduction to Probability, Statistics, and Random Processes by Hossein Pishro-Nik. §3.1.5, indicator random variables and binomial variables as sums of independent Bernoulli variables
Double counting (proof technique) 2026-10-13
Double counting establishes an identity by computing the cardinality of the same finite set in two ways. The useful step is to identify exactly what the members of that collection are; an algebraic equality then records two legitimate ways to organize them.
Take the ordered pairs where is a -element subset of an -element set and is marked. Choosing first gives pairs. Choosing first leaves members to choose from the other , giving . HenceFor five people and two-person teams, both counts give : ten teams with two choices of a marked member, or five choices of that member with four choices of a teammate. The identity is explained by the bijection between these descriptions, rather than merely verified through factorials.
Doubling constant Created 2026-09-24 Updated 2026-10-13
The doubling constant of a nonempty finite set in an abelian group isIt measures the cardinality of the sumset relative to the original set. For the integer examples, and . A nonconstant arithmetic progression with members has doubling constant , which stays below two as grows. This is the sense in which its sumset has small growth.
In any abelian group, : fixing puts a translated copy inside . The stronger integer bound gives only in that setting. A finite subgroup has , as does every coset , since its sumset is . In particular has doubling constant one.
Small doubling constant is useful because it constrains repeated growth, as in the Plünnecke-Ruzsa inequality. It signals structure such as arithmetic progressions and subgroups; precise descriptions depend on the ambient abelian group and are the subject of the Freiman-Ruzsa theorem. The additive energy bound below gives a simpler immediate consequence: .
Edge count of a complete graph 2026-10-14
For a finite set of vertices, a simple graph selects some of their unordered pairs as edges. There are ordered pairs of distinct vertices; each unordered pair is counted twice, giving possibilities. Hence every simple graph on those vertices satisfieswith equality exactly when is a complete graph. The binomial coefficient also shows why the count grows quadratically with the number of vertices.
Equivalence of partial functions modulo finite changes Created 2026-10-05 Updated 2026-10-07
Two functions and , whose domains lie in one ambient set, are equivalent modulo finite changes when is a finite set and the functions disagree at only finitely many points of . The symmetric difference inclusion handles domains in a transitive chain. An exceptional set for values must also include points of absent from the middle domain ; these lie in the finite difference .
Equivalence relation Created 2026-09-24 Updated 2026-10-14
An equivalence relation says which set elements should count as the same for a particular purpose. In modular arithmetic, for example, distinct integers with the same remainder are equivalent. The relation gathers interchangeable set elements into equivalence classes; the quotient set then treats each whole equivalence class as one object.
Formally, an equivalence relation on a set is a binary relation , written , satisfying three conditions for all :These conditions make the equivalence classes a partition of a set: each set element belongs to exactly one class. [ref]
- Reflexivity: .
- Symmetric relation: implies .
- Transitivity: and imply .
https://www.jirka.org/ra/html/sec_basicset.html. Jiří Lebl, Basic Analysis, §0.3.4, Definitions 0.3.21 and 0.3.23 and Proposition 0.3.24
For a worked example, take the finite set and restrict integer congruence modulo three to :Reflexivity follows because . The symmetric relation property follows by changing the sign of a difference, and transitivity follows by adding and : divisibility by three is preserved in both steps. Thus and force . The three equivalence classes are , and . Their members alternate along the number line; membership in an equivalence class need not mean being close together.
The transitivity requirement rules out a tempting alternative. On , define nearness by the absolute value condition . This binary relation is reflexive and symmetric, but is near and is near while is not near . Its neighborhoods , and overlap without being equal. They are not equivalence classes or a partition of a set.
Finite alphabet 2026-10-14
A finite alphabet is an alphabet whose symbols form a finite set. The binary alphabet and a finite vocabulary of possible messages are examples.
Finite coloring Created 2026-09-24 Updated 2026-10-07
For a finite set and open sets for , the setsform a basis of a topology for the product topology. The empty set intersection is . Each basic open set is a cylinder set; all coordinates outside are free. Arbitrary open sets are unions of these basic tests and need not themselves depend on one fixed finite collection of coordinates.[ref]
Point-Set Topology, Chapter 2: Continuous functions. Proposition 2.2.1, Definition 2.2.2 and Remark 2.2.8: finite-coordinate basis and general open subsets
Why finitely many? Any topology making the projection maps continuous must contain their preimages of open sets, and hence finite set intersections of those preimages. Taking arbitrary unions supplies exactly the product topology. Intersecting two basic cylinder sets still restricts only the finite union of their coordinate sets.
Finite-dimensional vector space Created 2026-09-29 Updated 2026-10-14
Let be a finite set, let every singleton have positive probability, and let preserve that probability measure. For every ,so every has a preimage. Thus is a surjection, and every surjection from a finite set to itself is a bijection.
Finite Ramsey theorem Created 2026-09-24 Updated 2026-10-14
Fix positive integers with . There is an integer , depending only on , such that every finite coloringhas a subset of size for which the restriction of a function to is a constant function. Here , and denotes the collection of all -element subsets of , rather than its binomial coefficient cardinality. The notation abbreviates this property. Thus is a homogeneous set for a colouring; when , the monochromatic set consists of its -element subsets, not its individual elements. This is the finite assertion in Ramsey's original Theorem B, p. 267.
For , this is the pigeonhole principle, with sharp threshold . For instance, every red-blue coloring of five objects has three of one color; four objects can split two and two. For , and , the sharp threshold is six, as shown by the Ramsey number for triangles. Coloring pairs makes this a problem about edges of a complete graph. For larger , the analogous viewpoint uses a hypergraph.
The finite Ramsey theorem lets an existence argument discard most of a large finite set while retaining a prescribed amount of uniform structure. Its threshold applies to every coloring; one does not need an assumption that colors were assigned randomly. A diagonal compactness argument deduces finite existence from Ramsey's theorem, but does not by itself identify the smallest threshold. For pairs, a Ramsey number makes that optimization explicit.
Finite repetition-free sequence Created 2026-10-05 Updated 2026-10-06
A finite repetition-free sequence in a set is an injective function from an initial segment of the natural numbers into , including the empty sequence for . For a finite set of size , the number of these sequences isThe order of each list is part of the data, so it can be enumerated without choosing an order on its underlying support.
Here is an original reproducible finite set with 40 points and 512 coordinates. Let be the first four vectors of the standard basis of . With point indices , generateThe four groups have different centers, and the standard normal random variables perturb all 512 coordinates. Generate the coordinates in row order using NumPy's PCG64 pseudorandom number generator with seed 20261013. Then keep this finite set fixed. A second PCG64 stream with seed 424242 generates a matrix of independent random variables with the standard normal distribution; divide it by to obtain the Gaussian Johnson–Lindenstrauss transform.
For all 780 unordered pairs, compute the distance ratio . In this draw, its minimum is approximately and its maximum , giving a maximum relative error in Euclidean distance of about . The squared-distance ratios instead range from approximately to : their maximum relative error is about . Thus this particular draw fails a 20% distance tolerance. The Johnson–Lindenstrauss lemma does not assert that every draw into 32 dimensions must succeed.
The two bands of original Euclidean distances distinguish pairs within a group from pairs between groups. Their spread after the linear map shows why checking an average distance is insufficient: the Johnson–Lindenstrauss lemma controls every pair. The dashed 20% distance band is an illustrative tolerance, not a confidence interval or a squared-distance band. The affine hull of 40 points has dimension at most 39; 512 is the ambient coordinate count, and no full-dimensionality assumption is required. For this draw the bi-Lipschitz distortion is approximately .
Now keep the same points and draw 48 fresh Gaussian Johnson–Lindenstrauss transforms for each target dimension . NumPy's
SeedSequence(314159).spawn(240) supplies distinct PCG64 streams, ordered first by target dimension, then by draw. Each stream generates a new random matrix, normalized by ; no map is a row prefix of another map. Each plotted value isThe observed median maximum relative errors in Euclidean distance are approximately , , , , and , respectively. All pairs fall inside the 20% distance tolerance in , , , , and of the 48 draws, respectively. These are computations on one synthetic finite set, rather than optimal dimension bounds or measured physical data. The displayed quantiles describe the sampled maps; they do not certify a success probability for other sets. Even at 128 dimensions, 13 of the sampled maps fail this tolerance.
The practical benefit is that each point acquires fewer coordinates while its pairwise Euclidean distances can remain useful. The choice of target dimension balances compression, accuracy, and failure probability. For example, a conservative sufficient squared-distance tolerance with and gives by the explicit bound above. Here that exceeds the ambient dimension, so the identity map is better for a certified guarantee. The much smaller dimensions in the plots illustrate observed behavior without claiming that this sufficient bound is sharp.
Finite-state machine 2026-10-14
A finite-state machine processes inputs using a finite set of automaton states and input-dependent automaton transitions. An automaton state records everything the machine remembers; an automaton transition says how that memory changes on the next symbol. A finite-state machine may also emit outputs. Here the emphasis is on recognizing a formal language: start in a designated automaton state, read a word from an alphabet, and accept exactly when the final automaton state is designated accepting.
Finite memory does not impose a maximum input length. A finite-state machine can read arbitrarily long words, revisiting its automaton states indefinitely. The restriction is that the part already read must be compressed into one of finitely many summaries. For divisibility by three, a word of binary digits can describe an enormous integer, yet its congruence class modulo three is all that the machine needs to retain. Two already-read words giving the same automaton state behave identically under every subsequent continuation in a DFA.
This makes finite-state machines useful whenever past details can be forgotten safely: checking whether a sequence of commands follows an allowed order, or recognizing a pattern with a regular expression. The beautiful design question is which distinctions about the past matter to the future. DFA minimization makes that question precise by merging indistinguishable states of a deterministic finite automaton. Both DFAs and NFAs recognize exactly the regular languages.





