Knowledge pack — guides, templates, examples
Least-to-Most (LtM) decomposes a complex task into a sequence of subproblems ordered from easiest to hardest so earlier solutions scaffold later reasoning.
Problem: A library has 480 books. 35% are fiction. Of the remainder, 25% are science. How many are neither fiction nor science? Steps (easiest -> hardest): S1: Compute fiction count. S2: Compute remaining after fiction. S3: Compute science count from remainder. S4: Compute remainder after science. Solutions: S1: 0.35 * 480 = 168 S2: 480 - 168 = 312 S3: 0.25 * 312 = 78 S4: 312 - 78 = 234 Answer: 234
Task: <problem> 1) List ordered subproblems (easiest -> hardest). 2) For each i: Solve S_i referencing only S_1..S_{i-1}. 3) Return final answer + JSON breakdown {"steps": [ {"id": "S1", "desc": "...", "value": ... } ]}.