Documentation

CslibFrontier.Computability.QueryComplexity.MajorityThree

Exact expected query complexity of three-bit majority #

Uniformly choose one of the six query orders, stopping after two equal answers. The expected query cost is two on constant inputs and 8 / 3 otherwise. The uniform input law on the six nonconstant words forces expected cost at least 8 / 3 on every everywhere-correct decision tree, including adaptive trees with repeated queries. A residual-subcube potential proves the lower bound by structural induction; the proof never classifies arbitrary trees as query orders. Local computation and random choice are uncharged, as in the existing zero-error query model.

Main definitions #

Main results #

References #

Read π(0), π(1); stop if they agree, and otherwise read π(2).

Choose one of the six short-circuit majority query orders uniformly.

Uniform on the six hard inputs, with no mass on 000 or 111.

theorem Cslib.QueryComplexity.MajorityThree.weights_hardDistribution (x : Fin 3 → Bool) :
hardDistribution.weights x = if (x = fun (x : Fin 3) => false) ∨ x = fun (x : Fin 3) => true then 0 else 1 / 6

The hard law excludes the two constant inputs and assigns mass 1 / 6 to every other word.

Three-bit majority has zero-error expected query complexity exactly 8 / 3.