Dataset Viewer
Auto-converted to Parquet Duplicate
trajectory_id
stringlengths
12
12
canonical_expr
stringlengths
1
64
canonical_ast_json
stringlengths
50
1.08k
original_expr
stringlengths
7
161
original_ast_json
stringlengths
146
2.78k
steps_json
stringlengths
291
21.8k
difficulty
int32
1
12
inverse_sequence_json
stringlengths
15
141
n_steps
int32
1
12
traj_0000000
(6 * x)
{"children": [{"children": [], "type": "NUMBER", "value": "6"}, {"children": [], "type": "VARIABLE", "value": "x"}], "type": "MUL", "value": null}
((1 + 5) * x)
{"children": [{"children": [{"children": [], "type": "NUMBER", "value": "1"}, {"children": [], "type": "NUMBER", "value": "5"}], "type": "ADD", "value": null}, {"children": [], "type": "VARIABLE", "value": "x"}], "type": "MUL", "value": null}
[{"state": {"type": "MUL", "value": null, "children": [{"type": "ADD", "value": null, "children": [{"type": "NUMBER", "value": "1", "children": []}, {"type": "NUMBER", "value": "5", "children": []}]}, {"type": "VARIABLE", "value": "x", "children": []}]}, "state_expr": "((1 + 5) * x)", "candidate_actions": [[0, "EXPAND"...
1
["UNFOLD_CONST"]
1
traj_0000001
((-8 * (x)^4) + (-3 * (x)^2))
{"children": [{"children": [{"children": [], "type": "NUMBER", "value": "-8"}, {"children": [{"children": [], "type": "VARIABLE", "value": "x"}, {"children": [], "type": "NUMBER", "value": "4"}], "type": "POW", "value": null}], "type": "MUL", "value": null}, {"children": [{"children": [], "type": "NUMBER", "value": "-3...
((-8 * ((1 * x))^4) + (-3 * ((0 + x))^(1 + 1)))
{"children": [{"children": [{"children": [], "type": "NUMBER", "value": "-8"}, {"children": [{"children": [{"children": [], "type": "NUMBER", "value": "1"}, {"children": [], "type": "VARIABLE", "value": "x"}], "type": "MUL", "value": null}, {"children": [], "type": "NUMBER", "value": "4"}], "type": "POW", "value": null...
[{"state": {"type": "ADD", "value": null, "children": [{"type": "MUL", "value": null, "children": [{"type": "NUMBER", "value": "-8", "children": []}, {"type": "POW", "value": null, "children": [{"type": "MUL", "value": null, "children": [{"type": "NUMBER", "value": "1", "children": []}, {"type": "VARIABLE", "value": "x...
3
["INTRODUCE_REDUNDANT_ZERO", "SHUFFLE_COMMUTATIVE", "UNFOLD_CONST", "INTRODUCE_REDUNDANT_ONE"]
3
traj_0000002
((8 * x) + 4)
{"children": [{"children": [{"children": [], "type": "NUMBER", "value": "8"}, {"children": [], "type": "VARIABLE", "value": "x"}], "type": "MUL", "value": null}, {"children": [], "type": "NUMBER", "value": "4"}], "type": "ADD", "value": null}
(4 + ((3 + 5) * (1 * (x + 0))))
{"children": [{"children": [], "type": "NUMBER", "value": "4"}, {"children": [{"children": [{"children": [], "type": "NUMBER", "value": "3"}, {"children": [], "type": "NUMBER", "value": "5"}], "type": "ADD", "value": null}, {"children": [{"children": [], "type": "NUMBER", "value": "1"}, {"children": [{"children": [], "...
[{"state": {"type": "ADD", "value": null, "children": [{"type": "NUMBER", "value": "4", "children": []}, {"type": "MUL", "value": null, "children": [{"type": "ADD", "value": null, "children": [{"type": "NUMBER", "value": "3", "children": []}, {"type": "NUMBER", "value": "5", "children": []}]}, {"type": "MUL", "value": ...
4
["INTRODUCE_REDUNDANT_ONE", "INTRODUCE_REDUNDANT_ZERO", "UNFOLD_CONST", "SHUFFLE_COMMUTATIVE"]
4
traj_0000003
((-7 * (x)^5) + (-1 * (x)^2) + (-2 * x) + 3)
{"children": [{"children": [{"children": [], "type": "NUMBER", "value": "-7"}, {"children": [{"children": [], "type": "VARIABLE", "value": "x"}, {"children": [], "type": "NUMBER", "value": "5"}], "type": "POW", "value": null}], "type": "MUL", "value": null}, {"children": [{"children": [], "type": "NUMBER", "value": "-1...
((-7 * (x)^5) + (-1 * ((1 * x))^2) + (-2 * x) + 3)
{"children": [{"children": [{"children": [], "type": "NUMBER", "value": "-7"}, {"children": [{"children": [], "type": "VARIABLE", "value": "x"}, {"children": [], "type": "NUMBER", "value": "5"}], "type": "POW", "value": null}], "type": "MUL", "value": null}, {"children": [{"children": [], "type": "NUMBER", "value": "-1...
[{"state": {"type": "ADD", "value": null, "children": [{"type": "MUL", "value": null, "children": [{"type": "NUMBER", "value": "-7", "children": []}, {"type": "POW", "value": null, "children": [{"type": "VARIABLE", "value": "x", "children": []}, {"type": "NUMBER", "value": "5", "children": []}]}]}, {"type": "MUL", "val...
1
["INTRODUCE_REDUNDANT_ONE"]
1
traj_0000004
((-8 * (x)^4) + (-7 * (x)^2) + 2)
{"children": [{"children": [{"children": [], "type": "NUMBER", "value": "-8"}, {"children": [{"children": [], "type": "VARIABLE", "value": "x"}, {"children": [], "type": "NUMBER", "value": "4"}], "type": "POW", "value": null}], "type": "MUL", "value": null}, {"children": [{"children": [], "type": "NUMBER", "value": "-7...
((-8 * (x)^(3 + 1)) + (-7 * (x)^2) + 2)
{"children": [{"children": [{"children": [], "type": "NUMBER", "value": "-8"}, {"children": [{"children": [], "type": "VARIABLE", "value": "x"}, {"children": [{"children": [], "type": "NUMBER", "value": "3"}, {"children": [], "type": "NUMBER", "value": "1"}], "type": "ADD", "value": null}], "type": "POW", "value": null...
[{"state": {"type": "ADD", "value": null, "children": [{"type": "MUL", "value": null, "children": [{"type": "NUMBER", "value": "-8", "children": []}, {"type": "POW", "value": null, "children": [{"type": "VARIABLE", "value": "x", "children": []}, {"type": "ADD", "value": null, "children": [{"type": "NUMBER", "value": "3...
1
["UNFOLD_CONST"]
1
traj_0000005
((2 * (x)^5) + (3 * (x)^3) + 2)
{"children": [{"children": [{"children": [], "type": "NUMBER", "value": "2"}, {"children": [{"children": [], "type": "VARIABLE", "value": "x"}, {"children": [], "type": "NUMBER", "value": "5"}], "type": "POW", "value": null}], "type": "MUL", "value": null}, {"children": [{"children": [], "type": "NUMBER", "value": "3"}...
((((1 * (x)^5) + (1 * (x)^5)) + (3 * (x)^3)) + 2)
{"children": [{"children": [{"children": [{"children": [{"children": [], "type": "NUMBER", "value": "1"}, {"children": [{"children": [], "type": "VARIABLE", "value": "x"}, {"children": [], "type": "NUMBER", "value": "5"}], "type": "POW", "value": null}], "type": "MUL", "value": null}, {"children": [{"children": [], "ty...
[{"state": {"type": "ADD", "value": null, "children": [{"type": "ADD", "value": null, "children": [{"type": "ADD", "value": null, "children": [{"type": "MUL", "value": null, "children": [{"type": "NUMBER", "value": "1", "children": []}, {"type": "POW", "value": null, "children": [{"type": "VARIABLE", "value": "x", "chi...
2
["UNFLATTEN_ADD", "SPLIT_COEFFICIENT"]
2
traj_0000006
((-1 * (x)^2) + -5)
{"children": [{"children": [{"children": [], "type": "NUMBER", "value": "-1"}, {"children": [{"children": [], "type": "VARIABLE", "value": "x"}, {"children": [], "type": "NUMBER", "value": "2"}], "type": "POW", "value": null}], "type": "MUL", "value": null}, {"children": [], "type": "NUMBER", "value": "-5"}], "type": "...
((-1 * ((0 + (x)^1) * (x)^1)) + -5)
{"children": [{"children": [{"children": [], "type": "NUMBER", "value": "-1"}, {"children": [{"children": [{"children": [], "type": "NUMBER", "value": "0"}, {"children": [{"children": [], "type": "VARIABLE", "value": "x"}, {"children": [], "type": "NUMBER", "value": "1"}], "type": "POW", "value": null}], "type": "ADD",...
[{"state": {"type": "ADD", "value": null, "children": [{"type": "MUL", "value": null, "children": [{"type": "NUMBER", "value": "-1", "children": []}, {"type": "MUL", "value": null, "children": [{"type": "ADD", "value": null, "children": [{"type": "NUMBER", "value": "0", "children": []}, {"type": "POW", "value": null, "...
2
["SPLIT_POWER", "INTRODUCE_REDUNDANT_ZERO", "SHUFFLE_COMMUTATIVE"]
2
traj_0000007
(-9 * x)
{"children": [{"children": [], "type": "NUMBER", "value": "-9"}, {"children": [], "type": "VARIABLE", "value": "x"}], "type": "MUL", "value": null}
(-9 * (1 * x))
{"children": [{"children": [], "type": "NUMBER", "value": "-9"}, {"children": [{"children": [], "type": "NUMBER", "value": "1"}, {"children": [], "type": "VARIABLE", "value": "x"}], "type": "MUL", "value": null}], "type": "MUL", "value": null}
[{"state": {"type": "MUL", "value": null, "children": [{"type": "NUMBER", "value": "-9", "children": []}, {"type": "MUL", "value": null, "children": [{"type": "NUMBER", "value": "1", "children": []}, {"type": "VARIABLE", "value": "x", "children": []}]}]}, "state_expr": "(-9 * (1 * x))", "candidate_actions": [[0, "FLATT...
1
["INTRODUCE_REDUNDANT_ONE"]
1
traj_0000008
((-2 * (x)^5) + (8 * (x)^4) + (-7 * (x)^3))
{"children": [{"children": [{"children": [], "type": "NUMBER", "value": "-2"}, {"children": [{"children": [], "type": "VARIABLE", "value": "x"}, {"children": [], "type": "NUMBER", "value": "5"}], "type": "POW", "value": null}], "type": "MUL", "value": null}, {"children": [{"children": [], "type": "NUMBER", "value": "8"...
(((-1 * (x)^5) + (-1 * (1 * ((x)^5 + 0)))) + (8 * (x)^4) + (-7 * (((x)^1 * (x)^1) * (x)^1)))
{"children": [{"children": [{"children": [{"children": [], "type": "NUMBER", "value": "-1"}, {"children": [{"children": [], "type": "VARIABLE", "value": "x"}, {"children": [], "type": "NUMBER", "value": "5"}], "type": "POW", "value": null}], "type": "MUL", "value": null}, {"children": [{"children": [], "type": "NUMBER"...
[{"state": {"type": "ADD", "value": null, "children": [{"type": "ADD", "value": null, "children": [{"type": "MUL", "value": null, "children": [{"type": "NUMBER", "value": "-1", "children": []}, {"type": "POW", "value": null, "children": [{"type": "VARIABLE", "value": "x", "children": []}, {"type": "NUMBER", "value": "5...
5
["SPLIT_COEFFICIENT", "SPLIT_POWER", "INTRODUCE_REDUNDANT_ONE", "UNFLATTEN_MUL", "INTRODUCE_REDUNDANT_ZERO"]
5
traj_0000009
(x)^5
{"children": [{"children": [], "type": "VARIABLE", "value": "x"}, {"children": [], "type": "NUMBER", "value": "5"}], "type": "POW", "value": null}
((x + 0))^(1 + 4)
{"children": [{"children": [{"children": [], "type": "VARIABLE", "value": "x"}, {"children": [], "type": "NUMBER", "value": "0"}], "type": "ADD", "value": null}, {"children": [{"children": [], "type": "NUMBER", "value": "1"}, {"children": [], "type": "NUMBER", "value": "4"}], "type": "ADD", "value": null}], "type": "PO...
[{"state": {"type": "POW", "value": null, "children": [{"type": "ADD", "value": null, "children": [{"type": "VARIABLE", "value": "x", "children": []}, {"type": "NUMBER", "value": "0", "children": []}]}, {"type": "ADD", "value": null, "children": [{"type": "NUMBER", "value": "1", "children": []}, {"type": "NUMBER", "val...
2
["UNFOLD_CONST", "INTRODUCE_REDUNDANT_ZERO"]
2
traj_0000010
((4 * (x)^2) + (8 * x))
{"children": [{"children": [{"children": [], "type": "NUMBER", "value": "4"}, {"children": [{"children": [], "type": "VARIABLE", "value": "x"}, {"children": [], "type": "NUMBER", "value": "2"}], "type": "POW", "value": null}], "type": "MUL", "value": null}, {"children": [{"children": [], "type": "NUMBER", "value": "8"}...
((4 * (x)^2) + ((5 + 3) * x))
{"children": [{"children": [{"children": [], "type": "NUMBER", "value": "4"}, {"children": [{"children": [], "type": "VARIABLE", "value": "x"}, {"children": [], "type": "NUMBER", "value": "2"}], "type": "POW", "value": null}], "type": "MUL", "value": null}, {"children": [{"children": [{"children": [], "type": "NUMBER",...
[{"state": {"type": "ADD", "value": null, "children": [{"type": "MUL", "value": null, "children": [{"type": "NUMBER", "value": "4", "children": []}, {"type": "POW", "value": null, "children": [{"type": "VARIABLE", "value": "x", "children": []}, {"type": "NUMBER", "value": "2", "children": []}]}]}, {"type": "MUL", "valu...
1
["UNFOLD_CONST"]
1
traj_0000011
((6 * (x)^3) + -2)
{"children": [{"children": [{"children": [], "type": "NUMBER", "value": "6"}, {"children": [{"children": [], "type": "VARIABLE", "value": "x"}, {"children": [], "type": "NUMBER", "value": "3"}], "type": "POW", "value": null}], "type": "MUL", "value": null}, {"children": [], "type": "NUMBER", "value": "-2"}], "type": "A...
(((3 + 3) * ((1 * x))^3) + -2)
{"children": [{"children": [{"children": [{"children": [], "type": "NUMBER", "value": "3"}, {"children": [], "type": "NUMBER", "value": "3"}], "type": "ADD", "value": null}, {"children": [{"children": [{"children": [], "type": "NUMBER", "value": "1"}, {"children": [], "type": "VARIABLE", "value": "x"}], "type": "MUL", ...
[{"state": {"type": "ADD", "value": null, "children": [{"type": "MUL", "value": null, "children": [{"type": "ADD", "value": null, "children": [{"type": "NUMBER", "value": "3", "children": []}, {"type": "NUMBER", "value": "3", "children": []}]}, {"type": "POW", "value": null, "children": [{"type": "MUL", "value": null, ...
2
["INTRODUCE_REDUNDANT_ONE", "UNFOLD_CONST"]
2
traj_0000012
(9 * x)
{"children": [{"children": [], "type": "NUMBER", "value": "9"}, {"children": [], "type": "VARIABLE", "value": "x"}], "type": "MUL", "value": null}
(9 * (1 * x))
{"children": [{"children": [], "type": "NUMBER", "value": "9"}, {"children": [{"children": [], "type": "NUMBER", "value": "1"}, {"children": [], "type": "VARIABLE", "value": "x"}], "type": "MUL", "value": null}], "type": "MUL", "value": null}
[{"state": {"type": "MUL", "value": null, "children": [{"type": "NUMBER", "value": "9", "children": []}, {"type": "MUL", "value": null, "children": [{"type": "NUMBER", "value": "1", "children": []}, {"type": "VARIABLE", "value": "x", "children": []}]}]}, "state_expr": "(9 * (1 * x))", "candidate_actions": [[0, "FLATTEN...
1
["INTRODUCE_REDUNDANT_ONE"]
1
traj_0000013
((x)^5 + (5 * x) + -7)
{"children": [{"children": [{"children": [], "type": "VARIABLE", "value": "x"}, {"children": [], "type": "NUMBER", "value": "5"}], "type": "POW", "value": null}, {"children": [{"children": [], "type": "NUMBER", "value": "5"}, {"children": [], "type": "VARIABLE", "value": "x"}], "type": "MUL", "value": null}, {"children...
((-7 + ((1 * x) + (4 * x))) + ((1 * x))^(2 + 3))
{"children": [{"children": [{"children": [], "type": "NUMBER", "value": "-7"}, {"children": [{"children": [{"children": [], "type": "NUMBER", "value": "1"}, {"children": [], "type": "VARIABLE", "value": "x"}], "type": "MUL", "value": null}, {"children": [{"children": [], "type": "NUMBER", "value": "4"}, {"children": []...
[{"state": {"type": "ADD", "value": null, "children": [{"type": "ADD", "value": null, "children": [{"type": "NUMBER", "value": "-7", "children": []}, {"type": "ADD", "value": null, "children": [{"type": "MUL", "value": null, "children": [{"type": "NUMBER", "value": "1", "children": []}, {"type": "VARIABLE", "value": "x...
5
["SHUFFLE_COMMUTATIVE", "SPLIT_COEFFICIENT", "INTRODUCE_REDUNDANT_ONE", "UNFLATTEN_ADD", "UNFOLD_CONST"]
5
traj_0000015
(-1 * x)
{"children": [{"children": [], "type": "NUMBER", "value": "-1"}, {"children": [], "type": "VARIABLE", "value": "x"}], "type": "MUL", "value": null}
((1 * (x + 0)) * -1)
{"children": [{"children": [{"children": [], "type": "NUMBER", "value": "1"}, {"children": [{"children": [], "type": "VARIABLE", "value": "x"}, {"children": [], "type": "NUMBER", "value": "0"}], "type": "ADD", "value": null}], "type": "MUL", "value": null}, {"children": [], "type": "NUMBER", "value": "-1"}], "type": "M...
[{"state": {"type": "MUL", "value": null, "children": [{"type": "MUL", "value": null, "children": [{"type": "NUMBER", "value": "1", "children": []}, {"type": "ADD", "value": null, "children": [{"type": "VARIABLE", "value": "x", "children": []}, {"type": "NUMBER", "value": "0", "children": []}]}]}, {"type": "NUMBER", "v...
3
["SHUFFLE_COMMUTATIVE", "INTRODUCE_REDUNDANT_ONE", "INTRODUCE_REDUNDANT_ZERO"]
3
traj_0000016
(-9 * (x)^2)
{"children": [{"children": [], "type": "NUMBER", "value": "-9"}, {"children": [{"children": [], "type": "VARIABLE", "value": "x"}, {"children": [], "type": "NUMBER", "value": "2"}], "type": "POW", "value": null}], "type": "MUL", "value": null}
(-9 * (((x + 0))^1 * ((1 * x))^1))
{"children": [{"children": [], "type": "NUMBER", "value": "-9"}, {"children": [{"children": [{"children": [{"children": [], "type": "VARIABLE", "value": "x"}, {"children": [], "type": "NUMBER", "value": "0"}], "type": "ADD", "value": null}, {"children": [], "type": "NUMBER", "value": "1"}], "type": "POW", "value": null...
[{"state": {"type": "MUL", "value": null, "children": [{"type": "NUMBER", "value": "-9", "children": []}, {"type": "MUL", "value": null, "children": [{"type": "POW", "value": null, "children": [{"type": "ADD", "value": null, "children": [{"type": "VARIABLE", "value": "x", "children": []}, {"type": "NUMBER", "value": "0...
3
["SPLIT_POWER", "INTRODUCE_REDUNDANT_ZERO", "INTRODUCE_REDUNDANT_ONE"]
3
traj_0000017
((7 * (x)^4) + (-9 * (x)^3) + -1)
{"children": [{"children": [{"children": [], "type": "NUMBER", "value": "7"}, {"children": [{"children": [], "type": "VARIABLE", "value": "x"}, {"children": [], "type": "NUMBER", "value": "4"}], "type": "POW", "value": null}], "type": "MUL", "value": null}, {"children": [{"children": [], "type": "NUMBER", "value": "-9"...
(((7 * (1 * (x)^4)) + (-9 * (x)^(2 + 1))) + -1)
{"children": [{"children": [{"children": [{"children": [], "type": "NUMBER", "value": "7"}, {"children": [{"children": [], "type": "NUMBER", "value": "1"}, {"children": [{"children": [], "type": "VARIABLE", "value": "x"}, {"children": [], "type": "NUMBER", "value": "4"}], "type": "POW", "value": null}], "type": "MUL", ...
[{"state": {"type": "ADD", "value": null, "children": [{"type": "ADD", "value": null, "children": [{"type": "MUL", "value": null, "children": [{"type": "NUMBER", "value": "7", "children": []}, {"type": "MUL", "value": null, "children": [{"type": "NUMBER", "value": "1", "children": []}, {"type": "POW", "value": null, "c...
3
["UNFOLD_CONST", "INTRODUCE_REDUNDANT_ONE", "UNFLATTEN_ADD"]
3
traj_0000018
(-8 * x)
{"children": [{"children": [], "type": "NUMBER", "value": "-8"}, {"children": [], "type": "VARIABLE", "value": "x"}], "type": "MUL", "value": null}
((1 * (x + 0)) * -8)
{"children": [{"children": [{"children": [], "type": "NUMBER", "value": "1"}, {"children": [{"children": [], "type": "VARIABLE", "value": "x"}, {"children": [], "type": "NUMBER", "value": "0"}], "type": "ADD", "value": null}], "type": "MUL", "value": null}, {"children": [], "type": "NUMBER", "value": "-8"}], "type": "M...
[{"state": {"type": "MUL", "value": null, "children": [{"type": "MUL", "value": null, "children": [{"type": "NUMBER", "value": "1", "children": []}, {"type": "ADD", "value": null, "children": [{"type": "VARIABLE", "value": "x", "children": []}, {"type": "NUMBER", "value": "0", "children": []}]}]}, {"type": "NUMBER", "v...
3
["INTRODUCE_REDUNDANT_ONE", "SHUFFLE_COMMUTATIVE", "INTRODUCE_REDUNDANT_ZERO"]
3
traj_0000019
((-3 * (x)^5) + (-8 * (x)^2) + (-4 * x))
{"children": [{"children": [{"children": [], "type": "NUMBER", "value": "-3"}, {"children": [{"children": [], "type": "VARIABLE", "value": "x"}, {"children": [], "type": "NUMBER", "value": "5"}], "type": "POW", "value": null}], "type": "MUL", "value": null}, {"children": [{"children": [], "type": "NUMBER", "value": "-8...
(((x)^5 * -3) + (-8 * (x)^(1 + 1)) + (((-1 * x) + (-2 * x)) + (-1 * x)))
{"children": [{"children": [{"children": [{"children": [], "type": "VARIABLE", "value": "x"}, {"children": [], "type": "NUMBER", "value": "5"}], "type": "POW", "value": null}, {"children": [], "type": "NUMBER", "value": "-3"}], "type": "MUL", "value": null}, {"children": [{"children": [], "type": "NUMBER", "value": "-8...
[{"state": {"type": "ADD", "value": null, "children": [{"type": "MUL", "value": null, "children": [{"type": "POW", "value": null, "children": [{"type": "VARIABLE", "value": "x", "children": []}, {"type": "NUMBER", "value": "5", "children": []}]}, {"type": "NUMBER", "value": "-3", "children": []}]}, {"type": "MUL", "val...
4
["UNFOLD_CONST", "SPLIT_COEFFICIENT", "SPLIT_COEFFICIENT", "SHUFFLE_COMMUTATIVE"]
4
traj_0000020
((-7 * (x)^2) + x + 8)
{"children": [{"children": [{"children": [], "type": "NUMBER", "value": "-7"}, {"children": [{"children": [], "type": "VARIABLE", "value": "x"}, {"children": [], "type": "NUMBER", "value": "2"}], "type": "POW", "value": null}], "type": "MUL", "value": null}, {"children": [], "type": "VARIABLE", "value": "x"}, {"childre...
((-7 * ((x)^1 * (x)^1)) + x + 8)
{"children": [{"children": [{"children": [], "type": "NUMBER", "value": "-7"}, {"children": [{"children": [{"children": [], "type": "VARIABLE", "value": "x"}, {"children": [], "type": "NUMBER", "value": "1"}], "type": "POW", "value": null}, {"children": [{"children": [], "type": "VARIABLE", "value": "x"}, {"children": ...
[{"state": {"type": "ADD", "value": null, "children": [{"type": "MUL", "value": null, "children": [{"type": "NUMBER", "value": "-7", "children": []}, {"type": "MUL", "value": null, "children": [{"type": "POW", "value": null, "children": [{"type": "VARIABLE", "value": "x", "children": []}, {"type": "NUMBER", "value": "1...
1
["SPLIT_POWER"]
1
traj_0000021
((8 * (x)^5) + (-7 * (x)^3) + (6 * (x)^2) + (5 * x) + 1)
{"children": [{"children": [{"children": [], "type": "NUMBER", "value": "8"}, {"children": [{"children": [], "type": "VARIABLE", "value": "x"}, {"children": [], "type": "NUMBER", "value": "5"}], "type": "POW", "value": null}], "type": "MUL", "value": null}, {"children": [{"children": [], "type": "NUMBER", "value": "-7"...
((8 * (x)^5) + (-7 * ((x + 0))^3) + ((2 * ((1 * x))^2) + (4 * (x)^2)) + (5 * x) + 1)
{"children": [{"children": [{"children": [], "type": "NUMBER", "value": "8"}, {"children": [{"children": [], "type": "VARIABLE", "value": "x"}, {"children": [], "type": "NUMBER", "value": "5"}], "type": "POW", "value": null}], "type": "MUL", "value": null}, {"children": [{"children": [], "type": "NUMBER", "value": "-7"...
[{"state": {"type": "ADD", "value": null, "children": [{"type": "MUL", "value": null, "children": [{"type": "NUMBER", "value": "8", "children": []}, {"type": "POW", "value": null, "children": [{"type": "VARIABLE", "value": "x", "children": []}, {"type": "NUMBER", "value": "5", "children": []}]}]}, {"type": "MUL", "valu...
3
["INTRODUCE_REDUNDANT_ZERO", "SPLIT_COEFFICIENT", "INTRODUCE_REDUNDANT_ONE"]
3
traj_0000022
(2 * (x)^2)
{"children": [{"children": [], "type": "NUMBER", "value": "2"}, {"children": [{"children": [], "type": "VARIABLE", "value": "x"}, {"children": [], "type": "NUMBER", "value": "2"}], "type": "POW", "value": null}], "type": "MUL", "value": null}
((1 + 1) * ((x)^1 * (x)^1))
{"children": [{"children": [{"children": [], "type": "NUMBER", "value": "1"}, {"children": [], "type": "NUMBER", "value": "1"}], "type": "ADD", "value": null}, {"children": [{"children": [{"children": [], "type": "VARIABLE", "value": "x"}, {"children": [], "type": "NUMBER", "value": "1"}], "type": "POW", "value": null}...
[{"state": {"type": "MUL", "value": null, "children": [{"type": "ADD", "value": null, "children": [{"type": "NUMBER", "value": "1", "children": []}, {"type": "NUMBER", "value": "1", "children": []}]}, {"type": "MUL", "value": null, "children": [{"type": "POW", "value": null, "children": [{"type": "VARIABLE", "value": "...
2
["UNFOLD_CONST", "SPLIT_POWER"]
2
traj_0000023
(-9 * (x)^2)
{"children": [{"children": [], "type": "NUMBER", "value": "-9"}, {"children": [{"children": [], "type": "VARIABLE", "value": "x"}, {"children": [], "type": "NUMBER", "value": "2"}], "type": "POW", "value": null}], "type": "MUL", "value": null}
(-9 * ((0 + (1 * x)))^(1 + 1))
{"children": [{"children": [], "type": "NUMBER", "value": "-9"}, {"children": [{"children": [{"children": [], "type": "NUMBER", "value": "0"}, {"children": [{"children": [], "type": "NUMBER", "value": "1"}, {"children": [], "type": "VARIABLE", "value": "x"}], "type": "MUL", "value": null}], "type": "ADD", "value": null...
[{"state": {"type": "MUL", "value": null, "children": [{"type": "NUMBER", "value": "-9", "children": []}, {"type": "POW", "value": null, "children": [{"type": "ADD", "value": null, "children": [{"type": "NUMBER", "value": "0", "children": []}, {"type": "MUL", "value": null, "children": [{"type": "NUMBER", "value": "1",...
3
["INTRODUCE_REDUNDANT_ZERO", "UNFOLD_CONST", "SHUFFLE_COMMUTATIVE", "INTRODUCE_REDUNDANT_ONE"]
3
traj_0000024
(-1 * (x)^3)
{"children": [{"children": [], "type": "NUMBER", "value": "-1"}, {"children": [{"children": [], "type": "VARIABLE", "value": "x"}, {"children": [], "type": "NUMBER", "value": "3"}], "type": "POW", "value": null}], "type": "MUL", "value": null}
(-1 * ((1 * (((x)^1 * (x)^1) * (x)^1)) + 0))
{"children": [{"children": [], "type": "NUMBER", "value": "-1"}, {"children": [{"children": [{"children": [], "type": "NUMBER", "value": "1"}, {"children": [{"children": [{"children": [{"children": [], "type": "VARIABLE", "value": "x"}, {"children": [], "type": "NUMBER", "value": "1"}], "type": "POW", "value": null}, {...
[{"state": {"type": "MUL", "value": null, "children": [{"type": "NUMBER", "value": "-1", "children": []}, {"type": "ADD", "value": null, "children": [{"type": "MUL", "value": null, "children": [{"type": "NUMBER", "value": "1", "children": []}, {"type": "MUL", "value": null, "children": [{"type": "MUL", "value": null, "...
4
["INTRODUCE_REDUNDANT_ZERO", "INTRODUCE_REDUNDANT_ONE", "SPLIT_POWER", "SPLIT_POWER"]
4
traj_0000025
(3 * (x)^5)
{"children": [{"children": [], "type": "NUMBER", "value": "3"}, {"children": [{"children": [], "type": "VARIABLE", "value": "x"}, {"children": [], "type": "NUMBER", "value": "5"}], "type": "POW", "value": null}], "type": "MUL", "value": null}
((2 + 1) * ((x * 1))^5)
{"children": [{"children": [{"children": [], "type": "NUMBER", "value": "2"}, {"children": [], "type": "NUMBER", "value": "1"}], "type": "ADD", "value": null}, {"children": [{"children": [{"children": [], "type": "VARIABLE", "value": "x"}, {"children": [], "type": "NUMBER", "value": "1"}], "type": "MUL", "value": null}...
[{"state": {"type": "MUL", "value": null, "children": [{"type": "ADD", "value": null, "children": [{"type": "NUMBER", "value": "2", "children": []}, {"type": "NUMBER", "value": "1", "children": []}]}, {"type": "POW", "value": null, "children": [{"type": "MUL", "value": null, "children": [{"type": "VARIABLE", "value": "...
2
["INTRODUCE_REDUNDANT_ONE", "UNFOLD_CONST", "SHUFFLE_COMMUTATIVE"]
2
traj_0000026
((-3 * (x)^3) + (-1 * (x)^2) + (9 * x) + 6)
{"children": [{"children": [{"children": [], "type": "NUMBER", "value": "-3"}, {"children": [{"children": [], "type": "VARIABLE", "value": "x"}, {"children": [], "type": "NUMBER", "value": "3"}], "type": "POW", "value": null}], "type": "MUL", "value": null}, {"children": [{"children": [], "type": "NUMBER", "value": "-1...
(((-2 * (x)^3) + (-1 * (x)^3)) + (-1 * (x)^2) + (9 * x) + 6)
{"children": [{"children": [{"children": [{"children": [], "type": "NUMBER", "value": "-2"}, {"children": [{"children": [], "type": "VARIABLE", "value": "x"}, {"children": [], "type": "NUMBER", "value": "3"}], "type": "POW", "value": null}], "type": "MUL", "value": null}, {"children": [{"children": [], "type": "NUMBER"...
[{"state": {"type": "ADD", "value": null, "children": [{"type": "ADD", "value": null, "children": [{"type": "MUL", "value": null, "children": [{"type": "NUMBER", "value": "-2", "children": []}, {"type": "POW", "value": null, "children": [{"type": "VARIABLE", "value": "x", "children": []}, {"type": "NUMBER", "value": "3...
1
["SPLIT_COEFFICIENT"]
1
traj_0000027
((-7 * x) + -8)
{"children": [{"children": [{"children": [], "type": "NUMBER", "value": "-7"}, {"children": [], "type": "VARIABLE", "value": "x"}], "type": "MUL", "value": null}, {"children": [], "type": "NUMBER", "value": "-8"}], "type": "ADD", "value": null}
((((1 * x) + 0) * -7) + -8)
{"children": [{"children": [{"children": [{"children": [{"children": [], "type": "NUMBER", "value": "1"}, {"children": [], "type": "VARIABLE", "value": "x"}], "type": "MUL", "value": null}, {"children": [], "type": "NUMBER", "value": "0"}], "type": "ADD", "value": null}, {"children": [], "type": "NUMBER", "value": "-7"...
[{"state": {"type": "ADD", "value": null, "children": [{"type": "MUL", "value": null, "children": [{"type": "ADD", "value": null, "children": [{"type": "MUL", "value": null, "children": [{"type": "NUMBER", "value": "1", "children": []}, {"type": "VARIABLE", "value": "x", "children": []}]}, {"type": "NUMBER", "value": "...
3
["SHUFFLE_COMMUTATIVE", "INTRODUCE_REDUNDANT_ZERO", "INTRODUCE_REDUNDANT_ONE"]
3
traj_0000028
((-5 * (x)^2) + (5 * x) + 4)
{"children": [{"children": [{"children": [], "type": "NUMBER", "value": "-5"}, {"children": [{"children": [], "type": "VARIABLE", "value": "x"}, {"children": [], "type": "NUMBER", "value": "2"}], "type": "POW", "value": null}], "type": "MUL", "value": null}, {"children": [{"children": [], "type": "NUMBER", "value": "5"...
(((-3 * (x)^2) + (-2 * ((x)^1 * (x)^1))) + (5 * x) + (2 * (1 + 1)))
{"children": [{"children": [{"children": [{"children": [], "type": "NUMBER", "value": "-3"}, {"children": [{"children": [], "type": "VARIABLE", "value": "x"}, {"children": [], "type": "NUMBER", "value": "2"}], "type": "POW", "value": null}], "type": "MUL", "value": null}, {"children": [{"children": [], "type": "NUMBER"...
[{"state": {"type": "ADD", "value": null, "children": [{"type": "ADD", "value": null, "children": [{"type": "MUL", "value": null, "children": [{"type": "NUMBER", "value": "-3", "children": []}, {"type": "POW", "value": null, "children": [{"type": "VARIABLE", "value": "x", "children": []}, {"type": "NUMBER", "value": "2...
4
["UNFOLD_CONST", "SPLIT_COEFFICIENT", "SPLIT_POWER", "FACTOR_PAIR"]
4
traj_0000029
((6 * (x)^5) + (-1 * (x)^4) + (-4 * (x)^2) + (3 * x))
{"children": [{"children": [{"children": [], "type": "NUMBER", "value": "6"}, {"children": [{"children": [], "type": "VARIABLE", "value": "x"}, {"children": [], "type": "NUMBER", "value": "5"}], "type": "POW", "value": null}], "type": "MUL", "value": null}, {"children": [{"children": [], "type": "NUMBER", "value": "-1"...
((6 * (x)^5) + (-1 * (x)^4) + (-4 * ((1 * x))^2) + (3 * x))
{"children": [{"children": [{"children": [], "type": "NUMBER", "value": "6"}, {"children": [{"children": [], "type": "VARIABLE", "value": "x"}, {"children": [], "type": "NUMBER", "value": "5"}], "type": "POW", "value": null}], "type": "MUL", "value": null}, {"children": [{"children": [], "type": "NUMBER", "value": "-1"...
[{"state": {"type": "ADD", "value": null, "children": [{"type": "MUL", "value": null, "children": [{"type": "NUMBER", "value": "6", "children": []}, {"type": "POW", "value": null, "children": [{"type": "VARIABLE", "value": "x", "children": []}, {"type": "NUMBER", "value": "5", "children": []}]}]}, {"type": "MUL", "valu...
1
["INTRODUCE_REDUNDANT_ONE"]
1
traj_0000030
((-6 * x) + -4)
{"children": [{"children": [{"children": [], "type": "NUMBER", "value": "-6"}, {"children": [], "type": "VARIABLE", "value": "x"}], "type": "MUL", "value": null}, {"children": [], "type": "NUMBER", "value": "-4"}], "type": "ADD", "value": null}
((((-2 * x) + (-3 * x)) + (-1 * x)) + -4)
{"children": [{"children": [{"children": [{"children": [{"children": [], "type": "NUMBER", "value": "-2"}, {"children": [], "type": "VARIABLE", "value": "x"}], "type": "MUL", "value": null}, {"children": [{"children": [], "type": "NUMBER", "value": "-3"}, {"children": [], "type": "VARIABLE", "value": "x"}], "type": "MU...
[{"state": {"type": "ADD", "value": null, "children": [{"type": "ADD", "value": null, "children": [{"type": "ADD", "value": null, "children": [{"type": "MUL", "value": null, "children": [{"type": "NUMBER", "value": "-2", "children": []}, {"type": "VARIABLE", "value": "x", "children": []}]}, {"type": "MUL", "value": nul...
2
["SPLIT_COEFFICIENT", "SPLIT_COEFFICIENT"]
2
traj_0000031
((8 * x) + -4)
{"children": [{"children": [{"children": [], "type": "NUMBER", "value": "8"}, {"children": [], "type": "VARIABLE", "value": "x"}], "type": "MUL", "value": null}, {"children": [], "type": "NUMBER", "value": "-4"}], "type": "ADD", "value": null}
(((4 + 4) * (x + 0)) + -4)
{"children": [{"children": [{"children": [{"children": [], "type": "NUMBER", "value": "4"}, {"children": [], "type": "NUMBER", "value": "4"}], "type": "ADD", "value": null}, {"children": [{"children": [], "type": "VARIABLE", "value": "x"}, {"children": [], "type": "NUMBER", "value": "0"}], "type": "ADD", "value": null}...
[{"state": {"type": "ADD", "value": null, "children": [{"type": "MUL", "value": null, "children": [{"type": "ADD", "value": null, "children": [{"type": "NUMBER", "value": "4", "children": []}, {"type": "NUMBER", "value": "4", "children": []}]}, {"type": "ADD", "value": null, "children": [{"type": "VARIABLE", "value": "...
2
["UNFOLD_CONST", "INTRODUCE_REDUNDANT_ZERO"]
2
traj_0000032
((-6 * (x)^2) + (-6 * x))
{"children": [{"children": [{"children": [], "type": "NUMBER", "value": "-6"}, {"children": [{"children": [], "type": "VARIABLE", "value": "x"}, {"children": [], "type": "NUMBER", "value": "2"}], "type": "POW", "value": null}], "type": "MUL", "value": null}, {"children": [{"children": [], "type": "NUMBER", "value": "-6...
((-6 * ((x)^1 * ((x)^1 + 0))) + (((-4 * x) + (-1 * x)) + (-1 * x)))
{"children": [{"children": [{"children": [], "type": "NUMBER", "value": "-6"}, {"children": [{"children": [{"children": [], "type": "VARIABLE", "value": "x"}, {"children": [], "type": "NUMBER", "value": "1"}], "type": "POW", "value": null}, {"children": [{"children": [{"children": [], "type": "VARIABLE", "value": "x"},...
[{"state": {"type": "ADD", "value": null, "children": [{"type": "MUL", "value": null, "children": [{"type": "NUMBER", "value": "-6", "children": []}, {"type": "MUL", "value": null, "children": [{"type": "POW", "value": null, "children": [{"type": "VARIABLE", "value": "x", "children": []}, {"type": "NUMBER", "value": "1...
4
["SPLIT_COEFFICIENT", "SPLIT_COEFFICIENT", "SPLIT_POWER", "INTRODUCE_REDUNDANT_ZERO"]
4
traj_0000033
(-2 * (x)^3)
{"children": [{"children": [], "type": "NUMBER", "value": "-2"}, {"children": [{"children": [], "type": "VARIABLE", "value": "x"}, {"children": [], "type": "NUMBER", "value": "3"}], "type": "POW", "value": null}], "type": "MUL", "value": null}
(-2 * (((x)^1 * (x)^1) * ((1 * x))^1))
{"children": [{"children": [], "type": "NUMBER", "value": "-2"}, {"children": [{"children": [{"children": [{"children": [], "type": "VARIABLE", "value": "x"}, {"children": [], "type": "NUMBER", "value": "1"}], "type": "POW", "value": null}, {"children": [{"children": [], "type": "VARIABLE", "value": "x"}, {"children": ...
[{"state": {"type": "MUL", "value": null, "children": [{"type": "NUMBER", "value": "-2", "children": []}, {"type": "MUL", "value": null, "children": [{"type": "MUL", "value": null, "children": [{"type": "POW", "value": null, "children": [{"type": "VARIABLE", "value": "x", "children": []}, {"type": "NUMBER", "value": "1...
3
["SPLIT_POWER", "INTRODUCE_REDUNDANT_ONE", "UNFLATTEN_MUL"]
3
traj_0000034
(7 * (x)^4)
{"children": [{"children": [], "type": "NUMBER", "value": "7"}, {"children": [{"children": [], "type": "VARIABLE", "value": "x"}, {"children": [], "type": "NUMBER", "value": "4"}], "type": "POW", "value": null}], "type": "MUL", "value": null}
((2 + 5) * ((x)^1 * (x)^1 * (x)^1 * ((x)^1 + 0)))
{"children": [{"children": [{"children": [], "type": "NUMBER", "value": "2"}, {"children": [], "type": "NUMBER", "value": "5"}], "type": "ADD", "value": null}, {"children": [{"children": [{"children": [], "type": "VARIABLE", "value": "x"}, {"children": [], "type": "NUMBER", "value": "1"}], "type": "POW", "value": null}...
[{"state": {"type": "MUL", "value": null, "children": [{"type": "ADD", "value": null, "children": [{"type": "NUMBER", "value": "2", "children": []}, {"type": "NUMBER", "value": "5", "children": []}]}, {"type": "MUL", "value": null, "children": [{"type": "POW", "value": null, "children": [{"type": "VARIABLE", "value": "...
3
["UNFOLD_CONST", "SPLIT_POWER", "INTRODUCE_REDUNDANT_ZERO"]
3
traj_0000035
((-9 * (x)^2) + x)
{"children": [{"children": [{"children": [], "type": "NUMBER", "value": "-9"}, {"children": [{"children": [], "type": "VARIABLE", "value": "x"}, {"children": [], "type": "NUMBER", "value": "2"}], "type": "POW", "value": null}], "type": "MUL", "value": null}, {"children": [], "type": "VARIABLE", "value": "x"}], "type": ...
((-9 * ((x)^1 * (0 + (x)^1))) + x)
{"children": [{"children": [{"children": [], "type": "NUMBER", "value": "-9"}, {"children": [{"children": [{"children": [], "type": "VARIABLE", "value": "x"}, {"children": [], "type": "NUMBER", "value": "1"}], "type": "POW", "value": null}, {"children": [{"children": [], "type": "NUMBER", "value": "0"}, {"children": [{...
[{"state": {"type": "ADD", "value": null, "children": [{"type": "MUL", "value": null, "children": [{"type": "NUMBER", "value": "-9", "children": []}, {"type": "MUL", "value": null, "children": [{"type": "POW", "value": null, "children": [{"type": "VARIABLE", "value": "x", "children": []}, {"type": "NUMBER", "value": "1...
2
["SPLIT_POWER", "INTRODUCE_REDUNDANT_ZERO", "SHUFFLE_COMMUTATIVE"]
2
traj_0000036
(2 * x)
{"children": [{"children": [], "type": "NUMBER", "value": "2"}, {"children": [], "type": "VARIABLE", "value": "x"}], "type": "MUL", "value": null}
((((1 * x) + 0) * 1) + (1 * x))
{"children": [{"children": [{"children": [{"children": [{"children": [], "type": "NUMBER", "value": "1"}, {"children": [], "type": "VARIABLE", "value": "x"}], "type": "MUL", "value": null}, {"children": [], "type": "NUMBER", "value": "0"}], "type": "ADD", "value": null}, {"children": [], "type": "NUMBER", "value": "1"}...
[{"state": {"type": "ADD", "value": null, "children": [{"type": "MUL", "value": null, "children": [{"type": "ADD", "value": null, "children": [{"type": "MUL", "value": null, "children": [{"type": "NUMBER", "value": "1", "children": []}, {"type": "VARIABLE", "value": "x", "children": []}]}, {"type": "NUMBER", "value": "...
3
["SPLIT_COEFFICIENT", "SHUFFLE_COMMUTATIVE", "INTRODUCE_REDUNDANT_ZERO", "INTRODUCE_REDUNDANT_ONE"]
3
traj_0000037
((-8 * x) + 5)
{"children": [{"children": [{"children": [], "type": "NUMBER", "value": "-8"}, {"children": [], "type": "VARIABLE", "value": "x"}], "type": "MUL", "value": null}, {"children": [], "type": "NUMBER", "value": "5"}], "type": "ADD", "value": null}
((3 + 2) + (-8 * (1 * x)))
{"children": [{"children": [{"children": [], "type": "NUMBER", "value": "3"}, {"children": [], "type": "NUMBER", "value": "2"}], "type": "ADD", "value": null}, {"children": [{"children": [], "type": "NUMBER", "value": "-8"}, {"children": [{"children": [], "type": "NUMBER", "value": "1"}, {"children": [], "type": "VARIA...
[{"state": {"type": "ADD", "value": null, "children": [{"type": "ADD", "value": null, "children": [{"type": "NUMBER", "value": "3", "children": []}, {"type": "NUMBER", "value": "2", "children": []}]}, {"type": "MUL", "value": null, "children": [{"type": "NUMBER", "value": "-8", "children": []}, {"type": "MUL", "value":...
3
["SHUFFLE_COMMUTATIVE", "UNFOLD_CONST", "INTRODUCE_REDUNDANT_ONE"]
3
traj_0000038
(9 * x)
{"children": [{"children": [], "type": "NUMBER", "value": "9"}, {"children": [], "type": "VARIABLE", "value": "x"}], "type": "MUL", "value": null}
((6 + 3) * x)
{"children": [{"children": [{"children": [], "type": "NUMBER", "value": "6"}, {"children": [], "type": "NUMBER", "value": "3"}], "type": "ADD", "value": null}, {"children": [], "type": "VARIABLE", "value": "x"}], "type": "MUL", "value": null}
[{"state": {"type": "MUL", "value": null, "children": [{"type": "ADD", "value": null, "children": [{"type": "NUMBER", "value": "6", "children": []}, {"type": "NUMBER", "value": "3", "children": []}]}, {"type": "VARIABLE", "value": "x", "children": []}]}, "state_expr": "((6 + 3) * x)", "candidate_actions": [[0, "EXPAND"...
1
["UNFOLD_CONST"]
1
traj_0000039
(-6 * (x)^3)
{"children": [{"children": [], "type": "NUMBER", "value": "-6"}, {"children": [{"children": [], "type": "VARIABLE", "value": "x"}, {"children": [], "type": "NUMBER", "value": "3"}], "type": "POW", "value": null}], "type": "MUL", "value": null}
(-6 * (((1 * x) + 0))^(2 + 1))
{"children": [{"children": [], "type": "NUMBER", "value": "-6"}, {"children": [{"children": [{"children": [{"children": [], "type": "NUMBER", "value": "1"}, {"children": [], "type": "VARIABLE", "value": "x"}], "type": "MUL", "value": null}, {"children": [], "type": "NUMBER", "value": "0"}], "type": "ADD", "value": null...
[{"state": {"type": "MUL", "value": null, "children": [{"type": "NUMBER", "value": "-6", "children": []}, {"type": "POW", "value": null, "children": [{"type": "ADD", "value": null, "children": [{"type": "MUL", "value": null, "children": [{"type": "NUMBER", "value": "1", "children": []}, {"type": "VARIABLE", "value": "x...
3
["UNFOLD_CONST", "SHUFFLE_COMMUTATIVE", "INTRODUCE_REDUNDANT_ZERO", "INTRODUCE_REDUNDANT_ONE"]
3
traj_0000040
((-3 * (x)^3) + (-7 * (x)^2) + (-1 * x) + 8)
{"children": [{"children": [{"children": [], "type": "NUMBER", "value": "-3"}, {"children": [{"children": [], "type": "VARIABLE", "value": "x"}, {"children": [], "type": "NUMBER", "value": "3"}], "type": "POW", "value": null}], "type": "MUL", "value": null}, {"children": [{"children": [], "type": "NUMBER", "value": "-7...
((((-1 * (x)^3) + (-1 * (x)^3)) + (-1 * (x)^3)) + (-7 * (x)^2) + (-1 * x) + 8)
{"children": [{"children": [{"children": [{"children": [{"children": [], "type": "NUMBER", "value": "-1"}, {"children": [{"children": [], "type": "VARIABLE", "value": "x"}, {"children": [], "type": "NUMBER", "value": "3"}], "type": "POW", "value": null}], "type": "MUL", "value": null}, {"children": [{"children": [], "t...
[{"state": {"type": "ADD", "value": null, "children": [{"type": "ADD", "value": null, "children": [{"type": "ADD", "value": null, "children": [{"type": "MUL", "value": null, "children": [{"type": "NUMBER", "value": "-1", "children": []}, {"type": "POW", "value": null, "children": [{"type": "VARIABLE", "value": "x", "ch...
2
["SPLIT_COEFFICIENT", "SPLIT_COEFFICIENT"]
2
traj_0000041
((-7 * (x)^5) + (8 * (x)^3) + (-8 * (x)^2) + 6)
{"children": [{"children": [{"children": [], "type": "NUMBER", "value": "-7"}, {"children": [{"children": [], "type": "VARIABLE", "value": "x"}, {"children": [], "type": "NUMBER", "value": "5"}], "type": "POW", "value": null}], "type": "MUL", "value": null}, {"children": [{"children": [], "type": "NUMBER", "value": "8"...
((-7 * (x)^5) + ((4 + 4) * (x)^3) + (-8 * (((x + 0))^1 * (x)^1)) + 6)
{"children": [{"children": [{"children": [], "type": "NUMBER", "value": "-7"}, {"children": [{"children": [], "type": "VARIABLE", "value": "x"}, {"children": [], "type": "NUMBER", "value": "5"}], "type": "POW", "value": null}], "type": "MUL", "value": null}, {"children": [{"children": [{"children": [], "type": "NUMBER"...
[{"state": {"type": "ADD", "value": null, "children": [{"type": "MUL", "value": null, "children": [{"type": "NUMBER", "value": "-7", "children": []}, {"type": "POW", "value": null, "children": [{"type": "VARIABLE", "value": "x", "children": []}, {"type": "NUMBER", "value": "5", "children": []}]}]}, {"type": "MUL", "val...
3
["SPLIT_POWER", "UNFOLD_CONST", "INTRODUCE_REDUNDANT_ZERO"]
3
traj_0000042
((5 * (x)^4) + (-1 * (x)^3) + (3 * (x)^2) + (-6 * x))
{"children": [{"children": [{"children": [], "type": "NUMBER", "value": "5"}, {"children": [{"children": [], "type": "VARIABLE", "value": "x"}, {"children": [], "type": "NUMBER", "value": "4"}], "type": "POW", "value": null}], "type": "MUL", "value": null}, {"children": [{"children": [], "type": "NUMBER", "value": "-1"...
((5 * (x)^4) + (-1 * (x)^3) + (3 * (x)^2) + (-6 * (x + 0)))
{"children": [{"children": [{"children": [], "type": "NUMBER", "value": "5"}, {"children": [{"children": [], "type": "VARIABLE", "value": "x"}, {"children": [], "type": "NUMBER", "value": "4"}], "type": "POW", "value": null}], "type": "MUL", "value": null}, {"children": [{"children": [], "type": "NUMBER", "value": "-1"...
[{"state": {"type": "ADD", "value": null, "children": [{"type": "MUL", "value": null, "children": [{"type": "NUMBER", "value": "5", "children": []}, {"type": "POW", "value": null, "children": [{"type": "VARIABLE", "value": "x", "children": []}, {"type": "NUMBER", "value": "4", "children": []}]}]}, {"type": "MUL", "valu...
1
["INTRODUCE_REDUNDANT_ZERO"]
1
traj_0000043
((x)^5 + (8 * (x)^3) + (x)^2 + (4 * x) + -4)
{"children": [{"children": [{"children": [], "type": "VARIABLE", "value": "x"}, {"children": [], "type": "NUMBER", "value": "5"}], "type": "POW", "value": null}, {"children": [{"children": [], "type": "NUMBER", "value": "8"}, {"children": [{"children": [], "type": "VARIABLE", "value": "x"}, {"children": [], "type": "NU...
((((1 * (x + 0)))^5 + (8 * (x)^3)) + ((x)^1 * (x)^1) + (x * (1 + 3)) + -4)
{"children": [{"children": [{"children": [{"children": [{"children": [], "type": "NUMBER", "value": "1"}, {"children": [{"children": [], "type": "VARIABLE", "value": "x"}, {"children": [], "type": "NUMBER", "value": "0"}], "type": "ADD", "value": null}], "type": "MUL", "value": null}, {"children": [], "type": "NUMBER",...
[{"state": {"type": "ADD", "value": null, "children": [{"type": "ADD", "value": null, "children": [{"type": "POW", "value": null, "children": [{"type": "MUL", "value": null, "children": [{"type": "NUMBER", "value": "1", "children": []}, {"type": "ADD", "value": null, "children": [{"type": "VARIABLE", "value": "x", "chi...
6
["SPLIT_POWER", "SHUFFLE_COMMUTATIVE", "INTRODUCE_REDUNDANT_ONE", "UNFOLD_CONST", "INTRODUCE_REDUNDANT_ZERO", "UNFLATTEN_ADD"]
6
End of preview. Expand in Data Studio

ISRE v7 BFS Trajectories

This dataset contains BFS-optimal symbolic algebra simplification trajectories for the ISRE research project.

Each row is one trajectory. Nested fields are stored as JSON strings to preserve the original AST and step structure without lossy flattening.

What This Dataset Is

This is not a natural-language instruction dataset. It is a symbolic algebra policy-learning dataset.

Each trajectory starts from a deliberately scrambled algebraic expression and ends at a canonical simplified expression. At each intermediate state, the dataset records:

  • the current expression,
  • all valid candidate rewrite actions,
  • the BFS-optimal gold action,
  • the AST node where that action should be applied.

The intended learning problem is:

Given an algebraic expression state and a set of valid candidate rewrites, choose the next rewrite that stays on a shortest path to the canonical form.

What the Algebra Actions Mean

The action names are symbolic rewrite rules. They are not labels like sentiment classes; they are concrete algebra transformations.

Action Simple example Meaning
FOLD_CONST (3 + 5) -> 8 Evaluate a constant-only subexpression.
REMOVE_ZERO (x + 0) -> x Remove additive identity.
REMOVE_ONE (1 * x) -> x Remove multiplicative identity.
FLATTEN_ADD (x + (y + 2)) -> (x + y + 2) Flatten nested addition.
FLATTEN_MUL (2 * (3 * x)) -> (2 * 3 * x) Flatten nested multiplication.
COMBINE_COEFF ((2 * x) + (3 * x)) -> (5 * x) Combine like terms with coefficients.
COLLECT_TERMS (x + x) -> (2 * x) Collect repeated symbolic terms.
MERGE_POWER ((x)^2 * (x)^3) -> (x)^5 Merge powers with the same base.
EXPAND (2 * (x + 3)) -> ((2 * x) + 6) Distribute multiplication over addition.
SORT_COMMUTATIVE (4 + (8 * x)) -> ((8 * x) + 4) Put commutative children into canonical order.

SORT_COMMUTATIVE is a real trajectory action in this benchmark. It is not just pretty-printing: the policy must sometimes choose it to reach the canonical state.

Example Trajectory

One row can contain a multi-step optimal simplification path. Example:

trajectory_id: traj_0000002
original:      (4 + ((3 + 5) * (1 * (x + 0))))
canonical:     ((8 * x) + 4)

BFS-optimal forward steps:

Step Current state Gold action Why
1 (4 + ((3 + 5) * (1 * (x + 0)))) SORT_COMMUTATIVE Move the non-constant term before the constant.
2 (((3 + 5) * (1 * (x + 0))) + 4) FOLD_CONST Replace (3 + 5) with 8.
3 ((8 * (1 * (x + 0))) + 4) REMOVE_ONE Replace (1 * (...)) with (...).
4 ((8 * (x + 0)) + 4) REMOVE_ZERO Replace (x + 0) with x.

The final expression is ((8 * x) + 4).

In steps_json, each step stores the full AST state plus fields such as:

{
  "state_expr": "((8 * (1 * (x + 0))) + 4)",
  "candidate_actions": [[1, "FLATTEN_MUL"], [3, "EXPAND"], [3, "REMOVE_ONE"], [5, "REMOVE_ZERO"]],
  "gold_action": "REMOVE_ONE",
  "gold_node_id": 3,
  "complexity": 11
}

Generation

  • Source project: ISRE (Interpretable Symbolic Reasoning Engine)
  • Generator: scripts/regen_parallel.py
  • Output mode: BFS-optimal gold trajectories
  • Seed: 43
  • Requested trajectories: 100000
  • Generated trajectories: 98472
  • Drop rate: 1.53%
  • Max degree: 5
  • Max AST depth: 7
  • Max backward trajectory length: 6
  • BFS budget: 50000

Command:

python scripts/regen_parallel.py \
  --out isre/trajectories_v7_bfs \
  --n 100000 \
  --workers 8 \
  --seed 43 \
  --gold-mode bfs \
  --max-degree 5 \
  --max-depth 7 \
  --max-traj 6 \
  --bfs-budget 50000

Summary

  • Trajectories: 98472
  • Training pairs: 293631
  • State cycles: 0

Gold action distribution:

Action Count Percent
MERGE_POWER 49148 16.7%
REMOVE_ZERO 47643 16.2%
FOLD_CONST 46164 15.7%
REMOVE_ONE 44599 15.2%
COMBINE_COEFF 39337 13.4%
FLATTEN_ADD 27771 9.5%
FLATTEN_MUL 16466 5.6%
SORT_COMMUTATIVE 15701 5.3%
COLLECT_TERMS 3415 1.2%
EXPAND 3387 1.2%

Columns

  • trajectory_id: Stable trajectory id.
  • canonical_expr: Canonical target expression.
  • canonical_ast_json: Canonical AST as JSON string.
  • original_expr: Scrambled starting expression.
  • original_ast_json: Scrambled starting AST as JSON string.
  • steps_json: Forward simplification steps as JSON string.
  • difficulty: Number of BFS-optimal forward steps.
  • inverse_sequence_json: Backward scramble operations as JSON string.
  • n_steps: Number of forward steps.

Loading

from datasets import load_dataset
import json

ds = load_dataset("NecroMOnk/bfs-optimal-symbolic-algebra-simplification-trajectories")
row = ds["train"][0]
steps = json.loads(row["steps_json"])

print(row["original_expr"], "=>", row["canonical_expr"])
for step in steps:
    print(step["state_expr"], "=>", step["gold_action"], "at node", step["gold_node_id"])

Notes

This is a research artifact for studying compact neural policies over symbolic AST transformations. It should be treated as an experimental benchmark, not a general-purpose algebra dataset.

Downloads last month
268