Rewrite all think blocks in zero-knowledge derivation style
Browse files
README.md
CHANGED
|
@@ -23,9 +23,9 @@ configs:
|
|
| 23 |
|
| 24 |
150 single-turn (user → assistant) reasoning-focused coding samples for supervised
|
| 25 |
fine-tuning (SFT) / distillation of small language models. Every assistant reply
|
| 26 |
-
starts with a
|
| 27 |
-
|
| 28 |
-
|
| 29 |
|
| 30 |
## Format
|
| 31 |
|
|
@@ -41,18 +41,34 @@ assistant turn is:
|
|
| 41 |
|
| 42 |
```
|
| 43 |
<think>
|
| 44 |
-
|
| 45 |
-
|
| 46 |
-
|
| 47 |
-
4. CONCRETE DRY-RUN TRACE: ...
|
| 48 |
-
5. COMPLETENESS VERIFICATION: ...
|
| 49 |
</think>
|
| 50 |
|
| 51 |
-
<2
|
| 52 |
|
| 53 |
<complete runnable code in one fenced block>
|
| 54 |
```
|
| 55 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 56 |
## Composition
|
| 57 |
|
| 58 |
| Slice | Count | Language | Delivery |
|
|
@@ -92,7 +108,8 @@ Every row was machine-checked before upload:
|
|
| 92 |
`getElementById('x')` resolves to an `id="x"` in the same entry's markup.
|
| 93 |
- Python entries: code blocks pass `ast.parse`; every embedded
|
| 94 |
`if __name__ == "__main__":` demo **executes** and prints the annotated expected output.
|
| 95 |
-
- No duplicate topics or duplicate user prompts; think blocks
|
|
|
|
| 96 |
|
| 97 |
## Honest limitations
|
| 98 |
|
|
@@ -100,7 +117,6 @@ Every row was machine-checked before upload:
|
|
| 100 |
No browser/e2e testing was run on the 100 HTML/JS entries; canvas/audio behavior is
|
| 101 |
traced, not observed.
|
| 102 |
- Two near-duplicate mechanics (`stroop-test`, `color-reaction`) slipped through review.
|
| 103 |
-
- Think-block length deviates from the ~350–550 word target in both directions.
|
| 104 |
- Small sample (n=150) — a seed set to iterate on, not a training-ready corpus.
|
| 105 |
Expect several percent of entries to need manual repair before training.
|
| 106 |
- Assistant code follows the stated constraints (single file, stdlib-only) and encodes
|
|
|
|
| 23 |
|
| 24 |
150 single-turn (user → assistant) reasoning-focused coding samples for supervised
|
| 25 |
fine-tuning (SFT) / distillation of small language models. Every assistant reply
|
| 26 |
+
starts with a `<think>` block that derives the solution from first principles
|
| 27 |
+
(zero-knowledge style, no template phases), followed by a concise explanation and a
|
| 28 |
+
complete, runnable program.
|
| 29 |
|
| 30 |
## Format
|
| 31 |
|
|
|
|
| 41 |
|
| 42 |
```
|
| 43 |
<think>
|
| 44 |
+
We need ... Let's figure out ... (first-person derivation, no section headers)
|
| 45 |
+
... state transitions written with real values, e.g. dq: [] -> [0] ...
|
| 46 |
+
... at least two explicit "if I had done X instead, here is the wrong result" fixes ...
|
|
|
|
|
|
|
| 47 |
</think>
|
| 48 |
|
| 49 |
+
<2-4 sentence explanation>
|
| 50 |
|
| 51 |
<complete runnable code in one fenced block>
|
| 52 |
```
|
| 53 |
|
| 54 |
+
### Think-block style (zero-knowledge derivation)
|
| 55 |
+
|
| 56 |
+
The think block is written as if the author has no memorized solution and derives
|
| 57 |
+
everything from the problem statement:
|
| 58 |
+
|
| 59 |
+
- First person, exploratory voice ("Let's figure out...", "Wait - ..."). No numbered
|
| 60 |
+
phases, no headings, no fixed DECONSTRUCTION / ARCHITECTURE template.
|
| 61 |
+
- Every constant, coordinate, index, and boundary is derived from literal arithmetic on
|
| 62 |
+
the concrete demo input, not asserted.
|
| 63 |
+
- Loop boundaries and off-by-one cases are tested with real numbers (first iteration,
|
| 64 |
+
last iteration, empty input).
|
| 65 |
+
- State changes are spelled out as `before -> after` with actual values; each block
|
| 66 |
+
contains at least six such transitions.
|
| 67 |
+
- At least two explicit wrong-behaviour corrections: what a plausible wrong
|
| 68 |
+
implementation would return, and why that is wrong.
|
| 69 |
+
- Every variable, function, and DOM id mentioned is defined in the code that follows.
|
| 70 |
+
- 350-550 words, plain ASCII.
|
| 71 |
+
|
| 72 |
## Composition
|
| 73 |
|
| 74 |
| Slice | Count | Language | Delivery |
|
|
|
|
| 108 |
`getElementById('x')` resolves to an `id="x"` in the same entry's markup.
|
| 109 |
- Python entries: code blocks pass `ast.parse`; every embedded
|
| 110 |
`if __name__ == "__main__":` demo **executes** and prints the annotated expected output.
|
| 111 |
+
- No duplicate topics or duplicate user prompts; think blocks 350-550 words with at
|
| 112 |
+
least six `->` transitions each.
|
| 113 |
|
| 114 |
## Honest limitations
|
| 115 |
|
|
|
|
| 117 |
No browser/e2e testing was run on the 100 HTML/JS entries; canvas/audio behavior is
|
| 118 |
traced, not observed.
|
| 119 |
- Two near-duplicate mechanics (`stroop-test`, `color-reaction`) slipped through review.
|
|
|
|
| 120 |
- Small sample (n=150) — a seed set to iterate on, not a training-ready corpus.
|
| 121 |
Expect several percent of entries to need manual repair before training.
|
| 122 |
- Assistant code follows the stated constraints (single file, stdlib-only) and encodes
|