Finite random restrictions #
RandomRestriction.Seed N q is an exact finite product distribution. Each
coordinate has one free symbol and q copies of each fixed Boolean value, so:
- the sample space has
(2 * q + 1) ^ Nequiprobable seeds; - exactly one coordinate symbol decodes to
none; and - exactly
qsymbols decode to each fixed value.
Thus the free-coordinate probability is exactly 1 / (2 * q + 1). The API is
stated in cardinality form so later switching arguments do not depend on
rounding or division conventions.
The exact cardinality of the sparse-restriction sample space.
There is exactly one free symbol at each coordinate.
Exactly (2q + 1)^(N - 1) seeds leave one prescribed input coordinate
free.
Each fixed Boolean value has exactly q equiprobable symbols.
Every event count is bounded by the total number of seeds.
The certain event has the full sample-space cardinality.
Extensionally equal restriction events have equal counts.
Inclusion of finite restriction events implies monotonicity of their counts.
The count of a union of two restriction events is at most the sum of their counts.
Finite union bound for restriction events, stated directly in exact cardinality form.
The event-seed subtype has exactly the event count as its cardinality.
Exactly (2 * q) ^ N seeds fix every input coordinate.
The number of seeds leaving at least one coordinate free is the total sample-space size minus the number of all-fixed seeds.
Cardinality form of the exact probability that at least one coordinate survives the sparse restriction.
Generic finite encoding bound used by switching arguments.
An injection that assigns every bad seed and every queryCount-tuple of
q copy labels to an arbitrary seed plus a finite auxiliary code proves the
displayed amplified counting inequality. No probability division or
positivity side condition is hidden in the statement.
The assignment supported on queries is disjoint from any restriction
under which every queried coordinate is free.
Fixing formerly-free embedded coordinates and then freeing them recovers the original seed.