Recursion
Description
Recursion is the pattern of defining a structure or process in terms of smaller instances of itself, anchored by a base case that stops the regress. A recursive definition has two parts that must both be present: a self-similar rule (the part is the same kind as the whole — a list is an element followed by a smaller list; a tree is a node whose children are trees) and a base case (the smallest instance, resolved directly, that does not recurse). Between them sits a reduction step that always maps toward something strictly smaller, so the descent provably terminates. The diagnostic question — “is this thing defined as a smaller copy of itself, and is there a base case that bottoms out the descent?” — distinguishes genuine recursion from mere nesting or repetition. The missing base case is the load-bearing failure: a self-referential definition with no terminating bottom is non-well-founded (infinite regress, stack overflow, circular definition). Recursion’s power is that one finite self-similar rule plus one base case generates unbounded structure — the same finite-rule-yields-unbounded-form move that recurs from grammar to fractal geometry.Triggers
User-initiated: User describes something defined in terms of itself, a divide-and-conquer decomposition into the same kind of subproblem, a self-similar / fractal structure, or a “teams of teams” / nested-of-the-same-thing organization. Agent-initiated: Agent notices a problem whose subproblems have the identical shape to the whole, or a structure built from smaller copies of itself. Candidate inference: “this is recursive — what’s the base case, and does every step strictly reduce toward it?” Situation-shape signals: Self-similar structure at multiple scales; a problem that decomposes into the same problem on smaller input; a definition that mentions itself; a need for a terminating base case to avoid infinite regress.Exclusions
- Fixed-point — fixed-point is a self-mapping value; recursion is a self-similar generative definition. One is a stationary point, the other a generating rule.
- Reflection — reflection is self-critique of behavior (an agent evaluating its own output); recursion is structural self-reference with a base case. No evaluative loop.
- Frame-story / nesting — frame-story nests possibly-different content; recursion nests a smaller instance of the same form and bottoms out at a base case.
- Motif / repetition — motif repeats coordinate peers; recursion descends into a smaller copy of the whole.
Structure
Relationships
- composite — the composite pattern (a tree whose parts share the whole’s interface) is the canonical structural instance of a self-similar definition; recursion is the rule a composite embodies.
- fixed-point — self-similar-generation vs self-mapping-stasis; a recursion may converge to a fixed point but is not one.
- bootstrapping — both build up from a seed by repeated rule-application; bootstrapping is staged causal escalation, recursion is self-similar descent to a base case.
- frame-story — containment-with-different-rules vs same-form-reduction-to-a-bottom.
Examples
John McCarthy, "Recursive Functions of Symbolic Expressions and Their Computation by Machine, Part I", Communications of the ACM 3(4), 184–195 (1960) · computer-science
John McCarthy, "Recursive Functions of Symbolic Expressions and Their Computation by Machine, Part I", Communications of the ACM 3(4), 184–195 (1960) · computer-science
Marc D. Hauser, Noam Chomsky & W. Tecumseh Fitch, "The Faculty of Language: What Is It, Who Has It, and How Did It Evolve?", Science 298(5598), 1569–1579 (2002) · linguistics
Marc D. Hauser, Noam Chomsky & W. Tecumseh Fitch, "The Faculty of Language: What Is It, Who Has It, and How Did It Evolve?", Science 298(5598), 1569–1579 (2002) · linguistics
Benoit B. Mandelbrot, "The Fractal Geometry of Nature", W. H. Freeman and Company (1982) · mathematics
Benoit B. Mandelbrot, "The Fractal Geometry of Nature", W. H. Freeman and Company (1982) · mathematics