The B, C, K, W system is a variant of combinatory logic that takes as primitive the combinators B, C, K, and W. This system was discovered by Haskell Curry in his doctoral thesis Grundlagen der kombinatorischen Logik, whose results are set out in Curry (1930).
The combinators are defined as follows:
Intuitively,
In recent decades, the SKI combinator calculus, with only two primitive combinators, K and S, has become the canonical approach to combinatory logic. B, C, and W can be expressed in terms of S and K as follows:
Another way is, having defined B as above, to further define C = S(BBS)(KK) and W = CSI.
Going the other direction, SKI can be defined in terms of B, C, K, W as:
Also of note, Y combinator has a short expression in this system, as Y = BU(CBU), where U = WI = SII is the self-application combinator. Then we have Yg = U(BgU) = BgU(BgU) = g(U(BgU)) = g(Yg).
The combinators B, C, K and W correspond to four well-known axioms of sentential logic:
AB: (B → C) → ((A → B) → (A → C)),
AC: (A → (B → C)) → (B → (A → C)),
AK: A → (B → A),
AW: (A → (A → B)) → (A → B).
Function application corresponds to the rule modus ponens:
MP: from A → B and A infer B.
The axioms AB, AC, AK and AW, and the rule MP are complete for the implicational fragment of intuitionistic logic. In order for combinatory logic to have as a model: