state-bench / formats /integer-code-modular.yaml
jacksonp-ai2's picture
Replace long-context data with the solvable build (same as solvable@7ca678bd) (part 5)
ceb0bbf verified
Raw History Blame Contribute Delete
1.75 kB
schema_version: 1
name: integer-code-modular
# Identical to integer-code except that values are zero-based ("0".."99"), so
# `x <- (x + d) mod 100` renders truthfully: the surface value of index i is
# literally i. Use this formatter whenever `solvable` is among an experiment's
# generation.families; render the other families with it too when the four
# classes should share a value vocabulary.
vocabulary:
variables: [a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p]
temporary_variable: TMP
values: ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15", "16", "17", "18", "19", "20", "21", "22", "23", "24", "25", "26", "27", "28", "29", "30", "31", "32", "33", "34", "35", "36", "37", "38", "39", "40", "41", "42", "43", "44", "45", "46", "47", "48", "49", "50", "51", "52", "53", "54", "55", "56", "57", "58", "59", "60", "61", "62", "63", "64", "65", "66", "67", "68", "69", "70", "71", "72", "73", "74", "75", "76", "77", "78", "79", "80", "81", "82", "83", "84", "85", "86", "87", "88", "89", "90", "91", "92", "93", "94", "95", "96", "97", "98", "99"]
templates:
task_description: >-
Track the current value of each variable after executing the assignments.
assign_constant: "$target <- $value;"
assign_reference: "$target <- $source;"
assign_increment: "$target <- ($target + $delta) mod $modulus;"
answer_prompt: null
state_assertion: "$variable ?= $value;"
filler_easy: "// $filler_dots"
filler_medium: "// unrelated note $filler_index"
filler_hard: "// stale log; do not execute: $variable <- $value;"
layout:
prompt_blocks: [task_description, program, answer_prompt]
block_separator: "\n\n"
instruction_separator: " "
completion_separator: " "
trailing_newline: false