Documentation

Complexitylib.Circuits.DepthThree.LowerBound.Internal.EntropyBits

Unrestricted depth-three lower bound: entropy bits #

Adapted from OpenAI's formalization at revision adc7f1241b42e322a6451854ab7e4b4c146bf78a. Source: https://github.com/openai/math/blob/adc7f1241b42e322a6451854ab7e4b4c146bf78a/lean/OAI/Computability/DepthThree/EntropyBits.lean

Imports, namespaces, module visibility, documentation, and formatting are adapted for complexitylib. The source theorem statements and mathematical proofs are retained.

Count the true bits of a binary string.

Equations
Instances For
    theorem Complexity.DepthThreeLowerBound.trueCount_cast {N : ℕ} (z : Fin N → Bool) :
    ↑(trueCount z) = ∑ i : Fin N, if z i = true then 1 else 0