Skip to content

Extension is a relation A extends B — written B ≤ A or B ↪ A — asserting that B embeds in A as a sub-structure: there exists a monomorphism (structure-preserving injection) ι: B → A that commutes with all operations. The defining structure: A contains all of B (via ι) and may contain more. Extension is not mere inclusion of sets — it requires structure preservation: the embedding ι must respect the algebraic, logical, or categorical structure at stake. Extension is a preorder: reflexive (B ≤ B via the identity), transitive (B ≤ A and A ≤ C implies B ≤ C via composition), and generates a partial order on the equivalence classes of mutual extensions.
Table of contents

Extends

Formal definition

Extension is a relation BAB \leq A (read: AA extends BB, or BB embeds in AA):

BAiff  ι:BA   (monomorphism)B \leq A \quad\text{iff}\quad \exists\; \iota : B \hookrightarrow A \;\text{ (monomorphism)}

where:

  • BB and AA are structures of the same signature — sets, algebras, topological spaces, categories, theories, or any other mathematical objects; the notion of extension depends on what kind of structure is at stake
  • ι:BA\iota : B \hookrightarrow A is a monomorphism (injective structure-preserving map) — a morphism that (i) is injective on elements and (ii) preserves all structure (operations, relations, axioms) of BB within AA; the monomorphism makes BB an isomorphic copy of a sub-structure of AA
  • “Structure-preserving” means: for each nn-ary operation ff of BB, ι(fB(b1,,bn))=fA(ι(b1),,ι(bn))\iota(f^B(b_1, \ldots, b_n)) = f^A(\iota(b_1), \ldots, \iota(b_n)); and for each predicate RR of BB, RB(b1,,bn)RA(ι(b1),,ι(bn))R^B(b_1, \ldots, b_n) \Leftrightarrow R^A(\iota(b_1), \ldots, \iota(b_n))

The extension preorder: \leq is a preorder on structures of a given signature:

  • Reflexivity: BBB \leq B via the identity morphism idB\mathrm{id}_B
  • Transitivity: if ι1:B1B2\iota_1 : B_1 \hookrightarrow B_2 and ι2:B2B3\iota_2 : B_2 \hookrightarrow B_3, then ι2ι1:B1B3\iota_2 \circ \iota_1 : B_1 \hookrightarrow B_3

Extension is not implication: a structure can extend another without implying it in any logical sense. The embedding ι\iota is a structural containment, not a logical entailment.

Extension vs. refinement: extension requires a literal structural embedding ι:BA\iota : B \hookrightarrow AAA literally contains a copy of BB. Refinement requires only that AA’s behaviors are a subset of BB’s — no structural embedding required. Extension implies refinement (if AA extends BB, every behavior of AA is compatible with BB’s structure) but refinement does not imply extension.

Algebraic extensions

Field extensions (Lang, Algebra, 1965): a field extension L/KL/K is a field LL together with a field homomorphism ι:KL\iota : K \hookrightarrow L making LL a KK-algebra. The extension L/KL/K has:

  • Degree [L:K]=dimKL[L : K] = \dim_K L (the dimension of LL as a KK-vector space)
  • Simple extension: L=K(α)L = K(\alpha) for a single element αL\alpha \in L; if α\alpha is a root of an irreducible polynomial p(x)K[x]p(x) \in K[x], the extension is algebraic of degree deg(p)\deg(p); if α\alpha is transcendental over KK, the extension is transcendental

Galois extensions (Galois 1832, formalized by Artin 1942): a finite algebraic extension L/KL/K is Galois iff Aut(L/K)=[L:K]|Aut(L/K)| = [L : K]. The Galois group Gal(L/K)=Aut(L/K)\mathrm{Gal}(L/K) = Aut(L/K) is the group of field automorphisms of LL fixing KK pointwise. The fundamental theorem of Galois theory establishes a bijection between: intermediate fields KELK \subseteq E \subseteq L and subgroups HGal(L/K)H \leq \mathrm{Gal}(L/K) — via EGal(L/E)E \mapsto \mathrm{Gal}(L/E) and HLHH \mapsto L^H (fixed field of HH). This is the archetypal theorem relating the extension structure (the lattice of intermediate fields) to a group-theoretic object (the lattice of subgroups), and is the prototype of Galois theory in its general form.

Ring extensions and integral extensions: BB is an integral extension of AA (where ABA \hookrightarrow B as rings) iff every element of BB is integral over AA — satisfies a monic polynomial with coefficients in AA. The going-up and going-down theorems (Cohen-Seidenberg) describe how prime ideals of AA extend and contract along an integral extension.

Theory extensions in logic

Theory extension: a theory T2T_2 (a set of sentences in a first-order language) extends theory T1T_1 iff T1T2T_1 \subseteq T_2 — every axiom of T1T_1 is an axiom of T2T_2, and therefore every theorem of T1T_1 is a theorem of T2T_2.

Conservative extension: T2T_2 is a conservative extension of T1T_1 iff T2T_2 proves no new theorems in the language of T1T_1T2ϕT_2 \vdash \phi implies T1ϕT_1 \vdash \phi for every sentence ϕ\phi in L(T1)L(T_1). A conservative extension adds new vocabulary or new axioms about the new vocabulary without changing what is provable in the old language. Conservative extensions are safe: they add expressive power without changing existing commitments.

Non-conservative extension: if T2T_2 extends T1T_1 but there exists a sentence ϕL(T1)\phi \in L(T_1) with T2ϕT_2 \vdash \phi but T1⊬ϕT_1 \not\vdash \phi, then T2T_2 is a non-conservative extension. Non-conservative extensions add new theorems in the original language — they change the theory’s commitments, not just its vocabulary.

Craig’s interpolation theorem (Craig 1957): if T1ϕT_1 \vdash \phi (where T1T_1 is a theory and ϕ\phi a sentence in an extended language), there exists an interpolant ψ\psi in the common language L(T1)L(ϕ)L(T_1) \cap L(\phi) such that T1ψT_1 \vdash \psi and ψϕ\psi \vdash \phi. This is the fundamental theorem governing what can be “lifted” from an extension back to the base theory.

Liskov substitution principle

Barbara Liskov and Jeannette Wing (A Behavioral Notion of Subtyping, 1994) formalized the Liskov Substitution Principle for type systems:

“Let φ(x)\varphi(x) be a property provable about objects xx of type TT. Then φ(y)\varphi(y) should be true for objects yy of type SS where SS is a subtype of TT.”

SS subtypes (extends) TT iff every instance of SS can be substituted for an instance of TT without violating any property that TT guarantees. This is the behavioral content of extension for type systems: the subtype extends the supertype not merely by having more methods, but by preserving all behavioral guarantees.

Liskov and Wing give four formal conditions for S<:TS <: T:

  1. Precondition rule (contravariant): for each method mm, preT(m)preS(m)\mathrm{pre}_T(m) \Rightarrow \mathrm{pre}_S(m) — the subtype may not strengthen preconditions; it must accept all inputs the supertype accepts.

  2. Postcondition rule (covariant): for each method mm, postS(m)postT(m)\mathrm{post}_S(m) \Rightarrow \mathrm{post}_T(m) — the subtype may not weaken postconditions; it must establish everything the supertype guarantees.

  3. Invariant rule: invT(x)invS(x)\mathrm{inv}_T(x) \Rightarrow \mathrm{inv}_S(x) — every value satisfying TT’s invariant also satisfies SS’s invariant; the subtype preserves all type invariants.

  4. History constraint (the key addition): for any sequence of operations permitted on an object of type SS, the corresponding state transitions are also permitted by type TT’s behavioral specification. A subtype cannot introduce new mutable state transitions that the supertype’s history would prohibit — subtype-only methods cannot violate supertype invariants that depend on the object’s history. This rules out, for example, a mutable subtype of an immutable supertype.

The Liskov Substitution Principle is the type-theoretic formulation of extension: SS extends TT iff SS is a behavioral subtype of TTSS embeds into TT’s behavioral specification with all structural and behavioral guarantees preserved.

Kan extensions in category theory

F. William Lawvere (1963) and Daniel Kan (Adjoint Functors, 1958) identified Kan extensions as the universal extension operation in category theory:

Given functors F:CEF : \mathcal{C} \to \mathcal{E} and K:CDK : \mathcal{C} \to \mathcal{D}, the left Kan extension LanKF:DE\mathrm{Lan}_K F : \mathcal{D} \to \mathcal{E} is the universal functor such that LanKFKF\mathrm{Lan}_K F \circ K \cong F — it extends FF along KK in the most general way. Universality: any functor G:DEG : \mathcal{D} \to \mathcal{E} with GKFG \circ K \cong F factors through LanKF\mathrm{Lan}_K F via a unique natural transformation.

Kan extensions are the fundamental extension operation in category theory — they generalize: adjoint functors (as Kan extensions along the unique functor to the terminal category), sheafification (left Kan extension along the inclusion of a site), and nerve-realization adjunctions (geometric realization as a Kan extension). Lawvere’s dictum: “All concepts are Kan extensions.”

The extension formula (when D\mathcal{D} has colimits): (LanKF)(d)=cCD(Kc,d)Fc(\mathrm{Lan}_K F)(d) = \int^{c \in \mathcal{C}} \mathcal{D}(Kc, d) \cdot Fc — the weighted colimit of FF over all cc with KcKc mapping to dd.

Open questions

  • Whether the relationship between field extensions and Galois theory (the Galois correspondence between subextensions and subgroups) has a direct analogue for theory extensions — whether there is a “Galois group” of a theory extension that classifies the intermediate theories between T1T_1 and T2T_2.
  • Whether Liskov behavioral subtyping (extension for types) and Kan extension (extension for functors) are the same concept seen in different categories — whether the Liskov condition is the type-theoretic instance of the Kan extension’s universal property in some appropriate 2-category of type specifications.
  • Whether the extension preorder on structures corresponds to the sub-object order in the topos Sh(T,J)\mathbf{Sh}(T, J) — whether BAB \leq A as structures corresponds to BAB \hookrightarrow A as a sub-object in the sheaf topos, and whether the extension lattice is the sub-object lattice.
  • Whether conservative extensions (which add vocabulary without changing provable sentences) correspond to adjoint equivalences in the corresponding category of models — whether the models of a conservative extension are equivalent to the models of the base theory, making conservative extension the categorical analogue of adding definitional extensions.

Relations

Ast
Base structure
Relational universe
Date created
Date modified
Defines
Extends
Extended structure
Relational universe
Output
Relational universe morphism
Related
Refines, satisfies, field extension, theory extension, kan extension, liskov substitution