ArticleslgStudy

mathematics

Partial combinatory algebra

Partial combinatory algebra is a mathematics topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Partial combinatory algebra rather than just read about it. In short: In theoretical computer science and mathematical logic, specifically in realizability, a partial combinatory algebra (pca) is an algebraic structure which abstracts a model of computation. The definition of pcas uses an idea from combinatory logic.

Key takeaways

  • Partial combinatory algebra belongs to mathematics; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Partial combinatory algebra to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Partial combinatory algebra from memory before moving on to harder problems.

Reference excerpt

In theoretical computer science and mathematical logic, specifically in realizability, a partial combinatory algebra (pca) is an algebraic structure which abstracts a model of computation. The definition of pcas uses an idea from combinatory logic. The realizability topos over a pca is a model of higher-order intuitionistic logic where informally every function is computable in the model of computation specified by the pca.

Definition A partial applicative structure is simply a set A equipped with a partial binary operation A×A⇀A called application. In the context of realizability, this operation is usually denoted by simple juxtaposition, i.e., (a,b)↦ab. It is usually not associative; by convention, the notation abc associates to the left as (ab)c, matching the standard convention in λ-calculus. The terms (or expressions) over a partial applicative structure A are defined inductively:

A constant a∈A is an expression, A variable, from some fixed, countably infinite set of variables, is an expression, If e1 and e2 are expressions, then e1e2 is an expression. (In other words, they form the free magma over the disjoint union A+V where V is the set of variables.) A term is closed when it contains no variables. A closed term may be evaluated in the natural way: a constant a∈A evaluates to itself, and if the terms e1 and e2 respectively evaluate to a1 and a2, then e1e2 evaluates to a1a2, if this is defined. Note that the evaluation is a partial operation, since not all applications are defined. We write t↓ to simultaneously express that the term t evaluates to a defined value and denote this value (this matches standard notation for values of partial functions). We also write t≃u when both closed terms t and u either do not evaluate to a defined value, or evaluate to the same value. A substitution operation is also defined in the natural way: if t is a term, x is a variable and u is another term, t[u/x] denotes the term t with all occurrences of x replaced by u. The partial applicative structure A is said to be combinatory complete or functionally complete if, for every term t(x0,…,xn) (that is, a term t whose variables are among x0,…,xn), there exists an element a∈A such that:

aa0…an−1↓ for all a0,…,an−1∈A, aa0…an≃t[a0/x0,…,an/xn] for all a0,…,an∈A. A partial combinatory algebra (pca) is a combinatory complete partial applicative structure. A total combinatory algebra (tca) is a pca whose application operation is total. Informally, the combinatory completeness condition requires an analogue of the abstraction operation from lambda calculus to exist inside the pca.

Characterization by combinators In the same way as there is a translation from λ-terms to terms of the SKI combinator calculus by eliminating λ-abstractions using combinators, pcas can be characterized by the existence of elements which satisfy equations analogous to the S and K combinators. Note, however, that some care must be taken in the statement and proof since application is not always defined in a pca. Theorem: A partial applicative structure A is combinatory complete if and only if there exist two elements K,S∈A such that:

Kab↓=a for all a,b∈A, Sab↓ for all a,b∈A, Sabc≃(ac)(bc) for all a,b,c∈A. For the proof, in the forward direction, if A is combinatory complete, it suffices to apply the definition of combinatory completeness to the terms tK(x,y):=x and tS(x,y,z):=(xz)(yz) to obtain K and S with the required properties. It is the converse that involves abstraction elimination. Assume we have K and S as stated. Given a variable x and a term t, we define a term ⟨x⟩t whose variables are those of t minus x, which plays a role similar to λx⋅t in λ-calculus. The definition is by induction on t as follows:

⟨x⟩a=Ka for a constant a∈A, ⟨x⟩x=I where I:=SKK, ⟨x⟩y=Ky if y is a variable different from x, ⟨x⟩(uv)=S(⟨x⟩u)(⟨x⟩v). Beware that the analogy between ⟨x⟩t and λx⋅t is not perfect. For example, the terms (⟨x⟩t)t′ and t[t′/x] are not generally equivalent in a reasonable sense, e.g., taking a variable y different from x and a,b∈A constants, we have (⟨x⟩y)(ab)=Ky(ab), which cannot be considered equivalent to y because the latter always evaluates to c if y is replaced by a constant c∈A, while the former may not as ab may be undefined. However, if t′ is a constant a, then (⟨x⟩t)a is indeed equivalent to t[a/x] in the sense that substituting all variables for some constants in these two terms gives the same result (per ≃). Moreover, substituting variables by constants in ⟨x⟩t always evaluates to a defined result, even if this would not be the case by substituting variables in t. For example, if a,b∈A are two constants, the term ⟨x⟩(ab) (abstracting a variable which does not appear) is equal to S(Ka)(Kb). By the assumptions on K and S, this is well-defined, even though ab may not be well-defined. These remarks imply that for all term t(x0,…,xn), the value a:=⟨x0⟩…⟨xn⟩t↓ is well-defined and satisfies the two requirements of combinatory completeness.

Examples

First Kleene algebra The first Kleene algebra 𝒦1 consists of the set ℕ with application ab:=ϕa(b), where ϕa denotes the a-th partial recursive function in a standard Gödel numbering. This pca can also be relativized to an oracle D⊆ℕ: we define a pca 𝒦1D with carrier ℕ by setting ab:=ϕaD(b), where ϕaD is the a-th partial recursive function with oracle D.

Untyped λ-calculus We can form a pca (in fact a tca) by quotienting the set of closed (untyped) λ-terms by β-equivalence and taking the application to be the one inherited from λ-calculus.

Reflexive domains

Second Kleene algebra

References

Worked examples

Example 1 — a first encounter with Partial combinatory algebra

Start with the simplest possible case. Write down what Partial combinatory algebra claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In mathematics, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Partial combinatory algebra before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Partial combinatory algebra ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Partial combinatory algebra

In research
Partial combinatory algebra appears in mathematics research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Partial combinatory algebra in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Partial combinatory algebra is common in secondary-school and first-year university syllabi. It links to neighbouring topics Models of computation, so understanding it makes those chapters shorter.
In everyday life
Look for Partial combinatory algebra outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Partial combinatory algebra” →

How to study Partial combinatory algebra in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Partial combinatory algebra means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Partial combinatory algebra out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Partial combinatory algebra in simple terms?

In theoretical computer science and mathematical logic, specifically in realizability, a partial combinatory algebra (pca) is an algebraic structure which abstracts a model of computation. The definition of pcas uses an idea from combinatory logic.

Why does Partial combinatory algebra matter?

Because it connects several mathematics ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Partial combinatory algebra?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Partial combinatory algebra.

Tags

  • Models of computation

Keep exploring