File size: 2,400 Bytes
b86ff8a
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
{
 "version": "fewshot_v1",
 "source": "data/teacher_v1 (train split, generated families inv-diff and stable-lin)",
 "task_ids": [
  "gen-06a9d6ef27",
  "gen-0385df5498"
 ],
 "messages": [
  {
   "role": "user",
   "content": "Variables: x\nConstants (ID = exact value; the program uses the binary64 rounding of each):\n  c0 = 1 (decimal-real)\n  c1 = 4 (decimal-real)\nProgram (guards are fixed):\n  (- (/ c0 x) (/ c0 (+ x c1)))\nBranches:\n  b0: (- (/ c0 x) (/ c0 (+ x c1)))   [input box: 1 <= x <= 10000000000; current error on sample inputs: mean 13.39 bits, p95 27.70 bits]\n\nOutput contract:\n- Answer with one JSON object and nothing else: {\"edits\": {\"<branch id>\": \"<FPCore expression>\"}}.\n- To keep the program unchanged, answer {\"edits\": {}}.\n- Expressions use prefix FPCore syntax, e.g. (/ x (+ (sqrt (+ x c0)) c0)).\n- Allowed operators: *, +, -, /, exp, expm1, fabs, log, log1p, sqrt (and (- a) for negation).\n- Use only the listed variables, the constant IDs (c0, c1, ...) and integer literals from -16 to 16. No other numbers, no if, no let.\n- The new body must equal the old one as a real-valued function wherever the old one is defined on the branch's input box, and must be defined there."
  },
  {
   "role": "assistant",
   "content": "{\"edits\": {\"b0\": \"(/ c1 (* x (+ x c1)))\"}}"
  },
  {
   "role": "user",
   "content": "Variables: p\nConstants (ID = exact value; the program uses the binary64 rounding of each):\n  c0 = 100 (decimal-real)\n  c1 = 0.5 (decimal-real)\nProgram (guards are fixed):\n  (+ (* c0 p) c1)\nBranches:\n  b0: (+ (* c0 p) c1)   [input box: -100 <= p <= 100; current error on sample inputs: mean 0.00 bits, p95 0.00 bits]\n\nOutput contract:\n- Answer with one JSON object and nothing else: {\"edits\": {\"<branch id>\": \"<FPCore expression>\"}}.\n- To keep the program unchanged, answer {\"edits\": {}}.\n- Expressions use prefix FPCore syntax, e.g. (/ x (+ (sqrt (+ x c0)) c0)).\n- Allowed operators: *, +, -, /, exp, expm1, fabs, log, log1p, sqrt (and (- a) for negation).\n- Use only the listed variables, the constant IDs (c0, c1, ...) and integer literals from -16 to 16. No other numbers, no if, no let.\n- The new body must equal the old one as a real-valued function wherever the old one is defined on the branch's input box, and must be defined there."
  },
  {
   "role": "assistant",
   "content": "{\"edits\": {}}"
  }
 ]
}