The finite p-random restriction distribution #
For 0 <= p <= 1, every input coordinate is independently left live with
probability p, fixed to false with probability (1 - p) / 2, and fixed to
true with the same probability. Parameters are nonnegative reals and event
probabilities are extended nonnegative reals, matching mathlib's PMF API.
The distribution is defined by its exact finite product mass. The normalization proof factors the sum over all partial assignments into the product of the three-state coordinate sums. No sampler or empirical approximation is used.
Probability of either fixed Boolean value at one coordinate.
Equations
- Algebraic.AC0.RandomRestriction.fixedWeight p = (1 - p) / 2
Instances For
One-coordinate mass: p for a live variable and (1 - p) / 2 for either
fixed value.
Equations
Instances For
The three one-coordinate masses sum exactly to one.
Product mass of a particular restriction.
Equations
- Algebraic.AC0.RandomRestriction.weight p rho = ∏ index : Fin n, ↑(Algebraic.AC0.RandomRestriction.coordinateWeight p (rho index))
Instances For
The finite product masses over all restrictions sum exactly to one.
The standard independent p-random restriction on n variables.
Equations
Instances For
The product mass depends only on the numbers of live and fixed variables.
Closed form for the mass assigned to an individual restriction.
Probability of a predicate under the finite random-restriction distribution.
Equations
- Algebraic.AC0.RandomRestriction.probability n p atMostOne event = ∑ rho : Algebraic.PartialAssignment n with event rho, (Algebraic.AC0.RandomRestriction.distribution n p atMostOne) rho
Instances For
The certain event has probability one.
The impossible event has probability zero.
An event and its complement have total probability one.
Every event has probability at most one.
Extensionally equal events have equal probability.
Inclusion of finite events implies monotonicity of their exact probabilities.
The exact probability of a union of two finite events is at most the sum of their probabilities.
Finite union bound for an indexed family of exact restriction events.
A singleton event has the point mass specified by the product formula.