Documentation

Complexitylib.Classes.PropertyDensity

Property density #

The density of a property of n-bit Boolean functions: the fraction of the 2 ^ (2 ^ n) Boolean functions that the property contains, as an exact rational (roadmap track L3, toward natural-proofs largeness). This mirrors the random-bit eventProb layer but over the sample space of all Boolean functions.

Main results #

def Complexity.density {n : } (P : Finset ((Fin nBool)Bool)) :

The density of a property P of n-bit Boolean functions: the fraction of all 2 ^ (2 ^ n) such functions that lie in P.

Equations
Instances For
    theorem Complexity.density_nonneg {n : } (P : Finset ((Fin nBool)Bool)) :
    theorem Complexity.card_le_card_boolFunc {n : } (P : Finset ((Fin nBool)Bool)) :
    P.card 2 ^ 2 ^ n

    A property has at most as many members as there are Boolean functions.

    theorem Complexity.density_le_one {n : } (P : Finset ((Fin nBool)Bool)) :
    theorem Complexity.density_compl {n : } (P : Finset ((Fin nBool)Bool)) :

    The density of the complement of a property is one minus its density.

    theorem Complexity.density_union_le {n : } (P Q : Finset ((Fin nBool)Bool)) :

    The union bound for property density.