Documentation

Complexitylib.Circuits.Threshold.Internal

Threshold circuits -- proof internals #

theorem Complexity.eval_majority_internal (n : ) (inputs : BitString n) :
(ThresholdOp.majority n).eval n inputs = decide (n / 2 < Fin.countP inputs)
theorem Complexity.eval_zero_internal (n : ) (inputs : BitString n) :
{ cutoff := 0 }.eval n inputs = true
theorem Complexity.eval_of_arity_lt_internal {cutoff n : } (hcutoff : n < cutoff) (inputs : BitString n) :
{ cutoff := cutoff }.eval n inputs = false

Proof-internal exact embedding of unbounded AND/OR into threshold gates.

Equations
  • One or more equations did not get rendered due to their size.
Instances For