Skip to main content
biology computer-science geography linguistics mathematics

Container

Description

A bounded region of space, scope, or domain — there is an interior, an exterior, and a boundary that decides what crosses. Containment is one of the most pervasive cognitive primitives because it grounds three independent moves at once: scope (what does the rule apply to?), encapsulation (what does the consumer see vs not see?), and transition (what changes when something crosses the boundary?). The diagnostic: when a question implicitly asks “is X inside or outside Y?” — what’s in scope, what counts as covered, what the boundary lets through — the container schema is the right primitive to reach for.

Triggers

User-initiated: User asks about scope, namespacing, encapsulation, “what counts as,” “what is inside this” — anywhere the question implicitly asks about an in/out boundary. Agent-initiated: Agent recognizes that a system has a boundary the right side of which an item must be on to count, be visible, or be affected. Candidate inference: “what does the boundary let through; what does it block?” Situation-shape signals: Anywhere “scope” makes sense. Anywhere “the rule applies inside but not outside” is the right framing. Anywhere a “wall,” “skin,” or “shell” metaphor lands without being weird.

Exclusions

  • Truly continuous / unbounded fields — gravitational fields, magnetic fields, market sentiment. The “where does it end?” question doesn’t have a sharp answer.
  • Network or graph structures — graph nodes don’t have an interior/exterior; the connectivity is the structure, not the containment. Forcing container framing onto graph-shaped reality misrepresents.
  • Process-shape rather than space-shape phenomena — feedback-loops, cadences, gradients aren’t containers; they’re shapes through time, not through space.

Structure

Internal structure of container: a table of its component slots and the concepts that fill them.

Relationships

Relationship neighborhood of container: a graph of the concepts it connects to and the concepts it is a part of.
  • leaky-abstraction — leaky-abstraction is container + projection; the container is supposed to hide the substrate but the projection isn’t invertible so the substrate bleeds through.
  • surface — the boundary of a container is its surface; the relationship is intimate enough that some treatments collapse them (the catalog separates them because the questions you ask differ).
  • route-as-context — the route is a container; “the path is the meaning.”
  • vertical-slice — a vertical slice is a thin container that crosses every stack layer; container + grain.
  • grain — what counts as a single container shapes everything: a session vs a request vs a user vs an org is a container at a different grain.

Examples

Cell membranes in biology · biology

a literal container with selective permeability; the canonical biology case.

Geographic / political boundaries · geography

Countries, time zones, school catchment areas, and tax jurisdictions all instantiate the container schema at the geographic scale: a bounded region whose interior is governed by one set of rules and whose exterior is governed by another, with the boundary itself doing the regulatory work of deciding which rule applies. Crossing the boundary changes what holds — taxes owed, languages spoken, currency accepted, laws enforced, school attended. The boundary is not merely a line on a map; it is what makes “inside” and “outside” carry different policy weight.The persistence of these containers despite their cost (border infrastructure, jurisdiction disputes, mismatch at edges) reveals what they are paying for: a way to localize rule-application so that the regulatory load doesn’t have to be computed everywhere globally. The schema makes “which rule applies here?” a constant-time lookup against the spatial container rather than a search over all possible rule sources. This is the same compression move that scope, namespace, and encapsulation perform in programming languages — bounded regions where local rules apply without the cost of disambiguating against every possible rule the system contains.Inference: When a system’s complexity grows past a threshold, partitioning by container — geographic, organizational, namespace, scope — often beats elaborate rule-resolution machinery. The container’s boundary becomes the dispatch table, and the rules inside each container can be simpler because they don’t have to disambiguate against the others.
bounded scopes over which side-effects accumulate and commit-or-roll-back atomically.
Lakoff and Johnson’s 1980 book argued that everyday metaphor is not decorative language but the structural means by which abstract concepts are grounded in bodily experience. CONTAINMENT — the schema of a bounded interior, a boundary, and an exterior — is one of the recurring grounding schemas they identified. We speak of being “in” trouble, “out of” patience, “deep in” thought, “filled with” anger — and the prepositions are not arbitrary, they map abstract states onto the same container-shape we use for physical bounded regions.This is the cog-sci foundational claim that motivates treating container as a structural primitive in the catalog: the shape is not borrowed from software’s encapsulation idioms or from biology’s cell membranes, it is independently a primitive of human cognition that those substrates inherited. The image-schema literature that followed (Johnson 1987 in The Body in the Mind, Talmy’s force dynamics work) extended the formal articulation, decomposing the schema into interior, boundary, and exterior with the asymmetric in/out relation as the load-bearing operation. Lakoff and Johnson are where the move from “metaphor is poetry” to “metaphor is conceptual structure” canonically lives.The image-schema literature treats CONTAINMENT as foundational because of the convergent evidence: it appears across cultures, shows up early in linguistic development, grounds prepositions in many unrelated languages, and appears unbidden when speakers describe abstract states. That cross-linguistic, developmental, and gestural convergence is why the catalog adopts container as a primitive whose decomposition reuses the image-schema components directly.
Mark Johnson’s The Body in the Mind takes the image-schema thesis from his earlier work with Lakoff and develops it into a sustained philosophical treatment: bodily experience supplies a small set of recurring spatial-relational structures (CONTAINER, PATH, BALANCE, FORCE, LINK, CENTER-PERIPHERY, NEAR-FAR, and others) that get extended via metaphor to scaffold abstract reasoning. The book argues these schemas are meaningful structures — preconceptual but pre-linguistic — that ground later conceptual thought.For the catalog’s container primitive, Johnson is the canonical extension: containment is not just a useful metaphor but one of a handful of image schemas whose recurring use across cultures and domains is evidence for its status as a cognitive primitive. The structural decomposition Johnson articulates — interior + boundary + exterior + the in/out asymmetry — is the same decomposition used here in the container slot structure.
the object hides internal state; only the surface (methods) crosses the boundary.
a set is a container; element-of is the in-or-out test.
Leonard Talmy’s Toward a Cognitive Semantics (2000) gave the most-developed formal treatment of how spatial image-schemas — including the container schema — structure linguistic meaning. Talmy argued that natural-language grammars encode a small set of recurring spatial primitives (containment, support, path, contact, force-dynamics) and that these primitives serve as the conceptual scaffolding for non-spatial domains through metaphorical extension. The container schema appears in prepositions (“in,” “out,” “into”), in verbal aspect (entering / exiting states), in modality (“within the rules,” “outside our jurisdiction”), and in abstract domain-talk (“inside the budget,” “out of scope”) — the same structural shape recurring with the spatial referent stripped out and replaced with an abstract one.Talmy’s contribution within cognitive linguistics is showing that this is not coincidental polysemy but rather systematic extension: the spatial schema is the source, and its abstract uses inherit its inferential structure. Things inside a container are protected from things outside; things must cross the boundary to change status; the container’s boundary itself can be permeable, sealed, or contested. These inferences transfer wholesale to non-spatial uses, which is why “inside the budget” feels structurally coherent rather than arbitrary.Inference: When debating whether a metaphor is doing real work or is decorative, the test is whether its source-domain inferential structure transfers. A container metaphor that licenses inferences about boundary, interior, exterior, and crossing is doing structural work; one that merely uses spatial vocabulary without licensing those inferences is decoration.
the function body is the container; identifiers inside have one meaning, outside have another.