Patterns of Patterns: Extending Memoryless Recursions to Search Problems
A previous paper, Memoryless Recursions with a Provability Check (10.5281/zenodo.24294504), showed how to build multi-step workflows as memoryless recursions and how to prove them: every loop ends, the documentation and code match step for step, each level feeds the one above, and nothing is carried by memory. Proof, though, looks backward. It certifies what is already built and says nothing about two things that matter as a system grows: whether look-alike pieces still share their parts, and where the next piece should come from. This paper adds two forward-looking methods that work as a pair. Patterns start every new piece from the closest proven recursion and borrow its parts in place, rather than starting from a blank page. Choosing a pattern is done silhouette first: five structural proportions are compared blindfolded before any details are read. The same short recursion (look, confirm, check, go), the pattern of patterns, applies to questions as well as code, and ends in one answer: what to build on and what to borrow. Clean then keeps that borrowing honest: look-alike lanes are checked for shared parts, each borrowed step is starved of one input at a time to show it stops and names what is missing, and the codebase's dependencies are checked for a one-way, connected structure. The method is shown on a near borrow inside one working system and on a far borrow into a different world: a solver for Letter Boxed, a daily word puzzle published by The New York Times, built on the shape of a report-writing recursion, cleaned and proven. The search it runs is complete, so for any published board it finds an answer with the fewest words. It builds on the TJ++ Logic Engine (10.5281/zenodo.22057917). A reference kit with the Letter Boxed solver, the clean checks and deliberately broken copies is on GitHub: github.com/abhi50188/patterns-of-patterns-kit (code under MIT).
Authors
- Abhi Sharma
Publication Details
- Journal
- Zenodo (CERN European Organization for Nuclear Research)
- Published
- 2026-12-02
- DOI
- https://doi.org/10.5281/zenodo.24764945
- Primary Topic
- Logic, programming, and type systems
- Type
- article
- Field-Weighted Citation Impact
- 0.00