Skip to content

Ternary Operation

A total three-input function—internally T:A³→A when defined on a set—that maps each ordered triple to one output, with any further identities stated separately.

Version
v2 · 2026-11-14 · History
Domain-specific #
12496
Domain group
Formal Sciences
Origin domain
Mathematics
Subdomains
Universal Algebra, Finitary Operations → Mathematics
Aliases
Trinary operation, Three-ary operation, 3-ary operation

Core Idea

A ternary operation generalizes a binary operation by taking three ordered inputs. For an operation on A in universal algebra, every triple in A³ must receive exactly one output in A. Closure and totality belong to the formal definition; symmetry, associativity-like laws, or special meanings do not.

Different fields add structure. The affine expression a−b+c gives heaps and origin-free vector reasoning; planar ternary rings encode geometry; programming languages use three-operand operators such as conditional selection. These are examples because of arity, not because all share the same laws.

How would you explain it like I'm…

Three-In, One-Out Rule

Some games need two things, like adding two blocks together. A ternary operation is a rule that always takes three things, in a set order, and gives back exactly one answer. Whatever three things you pick from the box, the rule always hands you back one thing from the same box.

The Three-Input Rule

An operation is a rule that turns inputs into an output, like adding two numbers to get one number. A Ternary Operation takes three inputs in a fixed order instead of two. The rule has to work for every possible choice of three inputs, and the answer has to be the same kind of thing as the inputs. It does not have to follow any other special rules, like giving the same answer when you shuffle the inputs.

Arity-Three Operation

In math, a binary operation such as addition takes two inputs from a set and returns one element of that set. A Ternary Operation does the same with three ordered inputs: every triple from the set must get exactly one output, and that output must land back in the set. Those two requirements, totality and closure, are the whole definition. Properties like symmetry or associativity-style laws are extra structure that some ternary operations have and others lack. For example, a − b + c on numbers is a ternary operation, and so is a programming language's three-part 'if this, then that, else the other' operator.

 

In universal algebra, a ternary operation on a set A is a function A³ → A: each ordered triple (a, b, c) is assigned exactly one element of A. It generalizes the binary case purely by arity. The formal definition requires only closure and totality; no symmetry, associativity analogue, or interpretation is built in. Particular fields then impose laws on top: the affine expression a − b + c underlies heaps and reasoning about vectors without a chosen origin, planar ternary rings encode the coordinate structure of projective planes, and programming languages supply three-operand operators such as conditional selection. These all count as ternary operations because they take three arguments, not because they satisfy a common set of axioms.

Scope of Application

  • Universal algebra. Studies sets equipped with three-ary operations and identities.
  • Geometry. Uses ternary laws in heaps, torsors, and coordinatization.
  • Logic and Boolean algebra. Represents majority or conditional-like connectives.
  • Programming languages. Classifies operators by three operands and typing behavior.

Clarity

Declare carrier sets, argument order, totality, output sort, and any identities. When nesting terms, use parentheses or a stated ternary associativity law rather than borrowing binary convention. Inclusion test: Specify three ordered inputs, a total single-valued rule, and—when called an operation on A—closure of outputs in A. Exclusion test: Exclude binary operations written with three symbols, partial three-place relations, functions of more than three independent arguments, and syntax whose apparent third part is not an operand. Nearest boundary: A ternary relation classifies triples as related or not; a ternary operation assigns exactly one output to every admissible triple. Exit condition: The object ceases to be a ternary operation if arity changes, outputs are multivalued, or some input triples lack output without being explicitly treated as partial.

Manages Complexity

The abstraction isolates arity from semantics, letting diverse constructions share one formal type while preventing properties of a familiar example from being projected onto all ternary operations.

Abstract Reasoning

  1. Identify the three argument positions and their sorts.
  2. Verify a unique output for every admitted triple.
  3. Check closure for an internal algebraic operation.
  4. State any equations or invariances beyond arity.
  5. Analyze nested applications with explicit grouping.

Knowledge Transfer

Three-input function reasoning transfers across algebra and computing when typing is preserved. Domain-specific names such as heap or conditional require additional laws or semantics.

Relationships to Other Abstractions

Local relationship map for Ternary OperationParents appear above the current abstraction, mutual partners to the right, and children below. Node labels state whether each abstraction is prime or domain-specific; colors identify relation types.Ternary OperationDOMAINPrime abstraction: Function (Mapping) — is a kind ofFunction(Mapping)PRIME

Current abstraction Ternary Operation Domain-specific

Parents (1) — outgoing typed relations

  • Ternary Operation is a kind of Function (Mapping) Prime

    A Ternary Operation is a Function Mapping from ordered triples to one output.

Hierarchy path (1) — routes to 1 parentless root

Neighborhood in Abstraction Space

Ternary Operation sits in a crowded region of the domain-specific corpus (32nd percentile for distinctiveness): several abstractions share nearly its structure, so a description that fits it tends to fit its neighbors too.

Family — Number & Formal Language Properties (7 abstractions)

Nearest neighbors

Computed from structural-signature embeddings · 2026-11-14