Table of contents
Extends
Formal definition
Extension is a relation (read: extends , or embeds in ):
where:
- and 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
- is a monomorphism (injective structure-preserving map) — a morphism that (i) is injective on elements and (ii) preserves all structure (operations, relations, axioms) of within ; the monomorphism makes an isomorphic copy of a sub-structure of
- “Structure-preserving” means: for each -ary operation of , ; and for each predicate of ,
The extension preorder: is a preorder on structures of a given signature:
- Reflexivity: via the identity morphism
- Transitivity: if and , then
Extension is not implication: a structure can extend another without implying it in any logical sense. The embedding is a structural containment, not a logical entailment.
Extension vs. refinement: extension requires a literal structural embedding — literally contains a copy of . Refinement requires only that ’s behaviors are a subset of ’s — no structural embedding required. Extension implies refinement (if extends , every behavior of is compatible with ’s structure) but refinement does not imply extension.
Algebraic extensions
Field extensions (Lang, Algebra, 1965): a field extension is a field together with a field homomorphism making a -algebra. The extension has:
- Degree (the dimension of as a -vector space)
- Simple extension: for a single element ; if is a root of an irreducible polynomial , the extension is algebraic of degree ; if is transcendental over , the extension is transcendental
Galois extensions (Galois 1832, formalized by Artin 1942): a finite algebraic extension is Galois iff . The Galois group is the group of field automorphisms of fixing pointwise. The fundamental theorem of Galois theory establishes a bijection between: intermediate fields and subgroups — via and (fixed field of ). 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: is an integral extension of (where as rings) iff every element of is integral over — satisfies a monic polynomial with coefficients in . The going-up and going-down theorems (Cohen-Seidenberg) describe how prime ideals of extend and contract along an integral extension.
Theory extensions in logic
Theory extension: a theory (a set of sentences in a first-order language) extends theory iff — every axiom of is an axiom of , and therefore every theorem of is a theorem of .
Conservative extension: is a conservative extension of iff proves no new theorems in the language of — implies for every sentence in . 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 extends but there exists a sentence with but , then 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 (where is a theory and a sentence in an extended language), there exists an interpolant in the common language such that and . 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 be a property provable about objects of type . Then should be true for objects of type where is a subtype of .”
subtypes (extends) iff every instance of can be substituted for an instance of without violating any property that 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 :
-
Precondition rule (contravariant): for each method , — the subtype may not strengthen preconditions; it must accept all inputs the supertype accepts.
-
Postcondition rule (covariant): for each method , — the subtype may not weaken postconditions; it must establish everything the supertype guarantees.
-
Invariant rule: — every value satisfying ’s invariant also satisfies ’s invariant; the subtype preserves all type invariants.
-
History constraint (the key addition): for any sequence of operations permitted on an object of type , the corresponding state transitions are also permitted by type ’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: extends iff is a behavioral subtype of — embeds into ’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 and , the left Kan extension is the universal functor such that — it extends along in the most general way. Universality: any functor with factors through 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 has colimits): — the weighted colimit of over all with mapping to .
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 and .
- 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 — whether as structures corresponds to 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.