Recursive mechanics—how systems fold back into themselves to generate depth and pattern. Recursion is the fundamental operation: a function calling itself, a pattern containing itself, depth through self-reference.
Prompt Engineering Application
Shape What it is
- Self-containing structure — thing includes itself as component.
- Feedback loop — output becomes input for next iteration.
- Fractal pattern — same shape at multiple scales.
Test: If it doesn't reference or contain itself, it is not Recursion—it's linear sequence.
Motion How it moves
Call → Iterate → Return
- Call — function invokes itself with modified input.
- Iterate — repeat process at new scale or state.
- Return — base case reached, values collapse back up.
Recursions The same pattern at two scales
Close
- Self-aware thought — thinking about thinking.
- Code recursion — functions calling themselves.
- AI self-modeling — system modeling its own processes.
Vast
- Evolutionary recursion — life creating life creating life.
- Cultural transmission — stories about storytelling.
- Cosmic recursion — universe observing itself through consciousness.
Ethics What it refuses
- Infinite loops — recursion without base case, no exit.
- Stack overflow — too many levels, system collapse.
- False containment — claiming self-reference without actual feedback.
Recursion must have base case—know when to stop, when to return, when depth is enough.
Practices
- Base case definition — establish clear exit condition.
- Meta-observation — watch yourself watching yourself.
- Scale shifting — practice seeing patterns at multiple levels.
- Stack awareness — track depth, know when to unwind.