Consider inputs with d Boolean features x∈{0,1}d. How many distinct Boolean functions exist in total, how many semantically distinct conjunctions of literals (allowing unnegated literals xi, negated literals ¬xi, or omitting feature i) exist, and what are both counts for d=3?

Foundations, Hypothesis spaces
Level L2 Elementary. Length Short. Nature Th+Mat Both.

What's being asked

Whether you can count both the unrestricted function space and a structured hypothesis class, seeing how fast inductive bias shrinks the search space.

Key idea

A Boolean function assigns 0 or 1 independently to each of the 2d inputs, giving 22d functions, whereas a satisfiable conjunction chooses one of 3 states (xi, ¬xi, or omitted) per feature, plus 1 contradictory always-false hypothesis, giving 3d+1.

Steps

  1. Count all Boolean functions: there are 2d possible binary input vectors x∈{0,1}d, and each vector can be mapped to 0 or 1, giving 22d distinct truth tables.
  2. Count distinct conjunctions of literals: for each feature i∈{1,…,d}, a satisfiable conjunction either includes xi, includes ¬xi, or omits feature i (3 choices per feature, giving 3d distinct non-empty subsets of {0,1}d). Any contradictory pair such as xi∧¬xi represents the single empty (always-false) function, adding +1 for a total of 3d+1 semantically distinct hypotheses.
  3. Evaluate at d=3: there are 223=28=256 Boolean functions in total, compared with 33+1=28 conjunctive hypotheses (already nearly a tenfold reduction, which becomes 21024 vs 59,050 at d=10).

Common mistakes

How long your answer should be

3–4 sentences with the two formulas and the numbers for d=3.

Last checked on 4 December 2026.

Read this

Previous in Foundations: Suppose a concept is a conjunction of three attributes (Sky,Temp,Wind) with Sky∈{Sunny,Rainy}, Temp∈{Warm,Cold} and Wind∈{Strong,Weak}. Given the training examples (Sunny,Warm,Strong,+), (Sunny,Warm,Weak,+), (Rainy,Cold,Strong,−) and (Sunny,Cold,Strong,+), what sequence of hypotheses does the Find-S algorithm produce, and what assumptions does it rely on?
Next in Foundations: You fit two nested Gaussian regression models on n=100 data points: Model A has kA=3 parameters and maximised log-likelihood ℓA=−120, while Model B has kB=6 parameters and ℓB=−114. Using AIC=2k−2ℓ and BIC=kln⁡n−2ℓ (lower is better), which model does each criterion select?