Finite event probability #
The uniform probability of a finite event over T random bits, |E| / 2^T,
defined once as eventProb and related to Finset.card and to the existing
rational PTM acceptance probability NTM.acceptProb (roadmap track N2).
Main results #
eventProbwitheventProb_nonneg,eventProb_le_one,eventProb_empty,eventProb_univ, the complement identityeventProb_compl, and the union boundeventProb_union_leeventProb_biUnion,eventProb_eq_sum_fiberwise— finite additivity and the conditioning-by-partition identityeventProb_filter_of_constant_fibers,eventProb_repeatRandomSeed— cancel uniformly ignored random bits, including the fixed-time repetition scheduleeventProb_block— independence across blocks: a prefix/suffix-separable event's probability is the product of the two block probabilitieseventProb_blockMajority_eq_false— the exact weighted binomial tail for majority failure across an odd number of independent blockseventProb_blockMajority_false_le_two_pow—12k + 1independent repetitions reduce error from at most1/3to at most1 / 2^keventProb_blockMajority_true_ge_one_sub_two_pow,eventProb_blockMajority_true_le_two_pow— the corresponding amplified yes- and no-instance boundsexists_good_seed_of_sum_eventProb_lt_one,exists_good_seed_of_eventProb_le_two_pow_succ— probabilistic-method adapters from bad-event bounds to one seed that works on every inputNTM.acceptProb_eq_eventProb— the PTM acceptance probability is the event probability of its set of accepting choice sequencesNTM.acceptProb_eq_eventProb_repeatRandomSeed— remove administrative random bits when a machine's acceptance factors through the compact repetition seed
Good seeds from probability bounds #
The probabilistic method in probability form. If the sum, over a finite input set, of the probabilities of the corresponding bad-seed events is strictly below one, then one seed avoids every bad event.
A 2^-(n+1) bad-seed bound for each n-bit input leaves a single seed
that is good for all inputs simultaneously. The strict slack of one bit
makes the argument uniform even when n = 0 or S = 0.
The union bound over a finite family of events: the probability of the
union ⋃ᵢ Eᵢ is at most the sum of the individual probabilities. The
amplification workhorse — bounding the failure probability across many bad
events.
Finite additivity: the probability of a disjoint finite union is the sum of the probabilities of its events.
Conditioning by a finite partition. If the statistic f maps every point
of E into the finite index set s, then E is the disjoint union of its
fibers and its probability is the sum of their probabilities.
Uniformly ignored random bits cancel from event probability. If an event
on total = compact + ignored bits factors through a compact-seed projection
whose fibers all have size 2 ^ ignored, its probability is exactly the
probability of the corresponding compact event.
The fixed-time repetition schedule's administrative choices do not change
the probability of an event depending only on its k * T simulation bits.
Independence across blocks (probability form). For an event that constrains
the prefix and suffix of a length-a + b random string separately, the joint
probability is the product of the two block probabilities. This is the
probability-level counterpart of card_filter_block and the quantitative engine
behind error amplification: k independent runs multiply their success
probabilities.
Exact majority-failure probability across independent blocks. Splitting a
uniform long seed into 2r + 1 blocks makes block-event membership independent,
so the failure probability is the lower tail of the binomial distribution with
success probability eventProb E.
The lower tail of an odd binomial distribution with success probability at
least 2/3 is at most (1/3) * (8/9)^r. This deliberately uses a coarse
elementary bound rather than a Chernoff inequality: each failure term is
bounded by (1/3) * (2/9)^r, and the lower-half binomial coefficients sum to
4^r.
Concrete error amplification. If one T-bit trial succeeds with
probability at least 2/3, then the strict majority of 12k + 1 independent
trials fails with probability at most 1 / 2^k. The explicit odd repetition
count avoids ties and is sufficient for later BPP and protocol amplification.
The PTM acceptance probability is exactly the event probability of the set of
accepting choice sequences: this ties NTM.acceptProb to the abstract
eventProb / Finset.card layer.
A repeated machine's administrative random choices cancel from its acceptance
probability whenever its accepting-path predicate factors through
repeatRandomSeed. The result is the event probability on only the k * T
simulation choices.