Dataset Viewer
Auto-converted to Parquet Duplicate
data_source
stringclasses
1 value
prompt
listlengths
1
1
ability
stringclasses
1 value
reward_model
dict
extra_info
dict
knights_and_knaves
[ { "role": "user", "content": "A very special island is inhabited only by saints and sinners. Saints always tell the truth, and sinners always lie. You meet 7 inhabitants: Alexander, Mason, James, Matthew, Victoria, Elizabeth, and Harper. Alexander stated, \"if (Matthew is a saint) then Harper is a saint\". ...
logic
{ "style": "rule", "ground_truth": "{\"source_dataset\": \"knights_knaves\", \"source_index\": 310, \"statements\": [[\"->\", [\"not\", [\"lying\", 3]], [\"telling-truth\", 6]], [\"lying\", 3], [\"or\", [\"->\", [\"telling-truth\", 2], [\"telling-truth\", 0]], [\"or\", [\"telling-truth\", 6], [\"telling-truth\", 1]...
{ "split": "train", "index": 0, "n_people": 7, "depth_constraint": 3, "width_constraint": 2, "cell_seed": 7050261007, "source_index": 310 }
knights_and_knaves
[ { "role": "user", "content": "A very special island is inhabited only by angels and devils. Angels always tell the truth, and devils always lie. You meet 12 inhabitants: Zoey, Riley, Emma, Charlotte, Alexander, Abigail, Sebastian, Mia, William, Amelia, Avery, and Samuel. Zoey asserted: \"((it is not the cas...
logic
{ "style": "rule", "ground_truth": "{\"source_dataset\": \"knights_knaves\", \"source_index\": 645, \"statements\": [[\"or\", [\"and\", [\"not\", [\"->\", [\"telling-truth\", 4], [\"telling-truth\", 9]]], [\"or\", [\"->\", [\"telling-truth\", 7], [\"lying\", 5]], [\"->\", [\"lying\", 11], [\"lying\", 5]], [\"<=>\",...
{ "split": "train", "index": 1, "n_people": 12, "depth_constraint": 5, "width_constraint": 4, "cell_seed": 12110261007, "source_index": 645 }
knights_and_knaves
[ { "role": "user", "content": "A very special island is inhabited only by pioneers and laggards. Pioneers always tell the truth, and laggards always lie. You meet 10 inhabitants: Avery, Michael, Ava, Lucas, David, Grace, Daniel, Charlotte, Harper, and James. In a statement by Avery: \"it is not the case that...
logic
{ "style": "rule", "ground_truth": "{\"source_dataset\": \"knights_knaves\", \"source_index\": 18, \"statements\": [[\"not\", [\"or\", [\"telling-truth\", 7], [\"telling-truth\", 9]]], [\"and\", [\"telling-truth\", 7], [\"and\", [\"telling-truth\", 0], [\"lying\", 0]], [\"telling-truth\", 1]], [\"->\", [\"or\", [\"...
{ "split": "train", "index": 2, "n_people": 10, "depth_constraint": 3, "width_constraint": 3, "cell_seed": 10060261007, "source_index": 18 }
knights_and_knaves
[ { "role": "user", "content": "A very special island is inhabited only by pioneers and laggards. Pioneers always tell the truth, and laggards always lie. You meet 12 inhabitants: Noah, Sofia, David, Riley, Henry, Logan, Ella, William, Jacob, James, Chloe, and Owen. In Noah's words: \"Sofia is a laggard and E...
logic
{ "style": "rule", "ground_truth": "{\"source_dataset\": \"knights_knaves\", \"source_index\": 241, \"statements\": [[\"and\", [\"lying\", 1], [\"telling-truth\", 6]], [\"<=>\", [\"lying\", 6], [\"telling-truth\", 7]], [\"->\", [\"telling-truth\", 8], [\"telling-truth\", 0]], [\"and\", [\"telling-truth\", 3], [\"te...
{ "split": "train", "index": 3, "n_people": 12, "depth_constraint": 2, "width_constraint": 2, "cell_seed": 12020261007, "source_index": 241 }
knights_and_knaves
[ { "role": "user", "content": "A very special island is inhabited only by knights and knaves. Knights always tell the truth, and knaves always lie. You meet 8 inhabitants: Elizabeth, William, Emily, Zoey, Benjamin, Joseph, Liam, and David. In Elizabeth's words: \"it is not the case that ((it is not the case ...
logic
{ "style": "rule", "ground_truth": "{\"source_dataset\": \"knights_knaves\", \"source_index\": 876, \"statements\": [[\"not\", [\"and\", [\"not\", [\"<=>\", [\"telling-truth\", 2], [\"lying\", 7]]], [\"or\", [\"not\", [\"lying\", 2]], [\"->\", [\"telling-truth\", 7], [\"telling-truth\", 1]], [\"or\", [\"telling-tru...
{ "split": "train", "index": 4, "n_people": 8, "depth_constraint": 5, "width_constraint": 4, "cell_seed": 8110261007, "source_index": 876 }
knights_and_knaves
[ { "role": "user", "content": "A very special island is inhabited only by knights and knaves. Knights always tell the truth, and knaves always lie. You meet 11 inhabitants: Amelia, William, Jack, Aiden, Samuel, Scarlett, Oliver, Daniel, Grace, Sophia, and Ella. Amelia noted, \"Samuel is a knight\". William w...
logic
{ "style": "rule", "ground_truth": "{\"source_dataset\": \"knights_knaves\", \"source_index\": 527, \"statements\": [[\"telling-truth\", 4], [\"telling-truth\", 7], [\"not\", [\"lying\", 6]], [\"->\", [\"->\", [\"lying\", 6], [\"telling-truth\", 1]], [\"not\", [\"telling-truth\", 6]]], [\"->\", [\"or\", [\"lying\",...
{ "split": "train", "index": 5, "n_people": 11, "depth_constraint": 3, "width_constraint": 2, "cell_seed": 11050261007, "source_index": 527 }
knights_and_knaves
[ { "role": "user", "content": "A very special island is inhabited only by pioneers and laggards. Pioneers always tell the truth, and laggards always lie. You meet 3 inhabitants: Lucas, Logan, and Sofia. In a statement by Lucas: \"Logan is a laggard if and only if Sofia is a pioneer\". According to Logan, \"S...
logic
{ "style": "rule", "ground_truth": "{\"source_dataset\": \"knights_knaves\", \"source_index\": 2627, \"statements\": [[\"<=>\", [\"lying\", 1], [\"telling-truth\", 2]], [\"<=>\", [\"telling-truth\", 2], [\"telling-truth\", 1]], [\"<=>\", [\"lying\", 0], [\"telling-truth\", 2]]], \"solution\": [false, true, true], \...
{ "split": "train", "index": 6, "n_people": 3, "depth_constraint": 2, "width_constraint": 3, "cell_seed": 3020261007, "source_index": 2627 }
knights_and_knaves
[ { "role": "user", "content": "A very special island is inhabited only by saints and sinners. Saints always tell the truth, and sinners always lie. You meet 8 inhabitants: Sebastian, Scarlett, Jackson, Abigail, Owen, Aiden, Aurora, and David. According to Sebastian, \"Sebastian is a saint if and only if Scar...
logic
{ "style": "rule", "ground_truth": "{\"source_dataset\": \"knights_knaves\", \"source_index\": 146, \"statements\": [[\"<=>\", [\"telling-truth\", 0], [\"telling-truth\", 1]], [\"->\", [\"telling-truth\", 0], [\"telling-truth\", 4]], [\"and\", [\"lying\", 5], [\"telling-truth\", 4], [\"telling-truth\", 0]], [\"<=>\...
{ "split": "train", "index": 7, "n_people": 8, "depth_constraint": 2, "width_constraint": 4, "cell_seed": 8040261007, "source_index": 146 }
knights_and_knaves
[ { "role": "user", "content": "A very special island is inhabited only by heros and villains. Heros always tell the truth, and villains always lie. You meet 3 inhabitants: Aurora, Aiden, and Sophia. In Aurora's words: \"Aiden is a villain and Aiden is a hero\". Aiden said, \"if Sophia is a villain then Aiden...
logic
{ "style": "rule", "ground_truth": "{\"source_dataset\": \"knights_knaves\", \"source_index\": 330, \"statements\": [[\"and\", [\"lying\", 1], [\"telling-truth\", 1]], [\"->\", [\"lying\", 2], [\"telling-truth\", 1]], [\"<=>\", [\"lying\", 0], [\"lying\", 1]]], \"solution\": [false, true, false], \"names\": [\"Auro...
{ "split": "train", "index": 8, "n_people": 3, "depth_constraint": 2, "width_constraint": 3, "cell_seed": 3020261007, "source_index": 330 }
knights_and_knaves
[ { "role": "user", "content": "A very special island is inhabited only by knights and knaves. Knights always tell the truth, and knaves always lie. You meet 10 inhabitants: Benjamin, Samuel, Abigail, David, Aria, Chloe, Michael, Avery, Liam, and Daniel. \"Avery is a knave,\" Benjamin claimed. Samuel said, \"...
logic
{ "style": "rule", "ground_truth": "{\"source_dataset\": \"knights_knaves\", \"source_index\": 46, \"statements\": [[\"not\", [\"telling-truth\", 7]], [\"->\", [\"->\", [\"or\", [\"or\", [\"telling-truth\", 6], [\"lying\", 5]], [\"and\", [\"telling-truth\", 9], [\"lying\", 9]], [\"<=>\", [\"telling-truth\", 6], [\"...
{ "split": "train", "index": 9, "n_people": 10, "depth_constraint": 5, "width_constraint": 4, "cell_seed": 10110261007, "source_index": 46 }
knights_and_knaves
[ { "role": "user", "content": "A very special island is inhabited only by altruists and egoists. Altruists always tell the truth, and egoists always lie. You meet 4 inhabitants: Ella, Benjamin, Lucas, and Evelyn. As Ella put it, \"(if Benjamin is an altruist then Lucas is an egoist) if and only if (Benjamin ...
logic
{ "style": "rule", "ground_truth": "{\"source_dataset\": \"knights_knaves\", \"source_index\": 728, \"statements\": [[\"<=>\", [\"->\", [\"telling-truth\", 1], [\"lying\", 2]], [\"or\", [\"lying\", 1], [\"lying\", 3], [\"telling-truth\", 1]]], [\"lying\", 2], [\"and\", [\"->\", [\"telling-truth\", 1], [\"telling-tr...
{ "split": "train", "index": 10, "n_people": 4, "depth_constraint": 3, "width_constraint": 3, "cell_seed": 4040261007, "source_index": 728 }
knights_and_knaves
[ { "role": "user", "content": "A very special island is inhabited only by angels and devils. Angels always tell the truth, and devils always lie. You meet 12 inhabitants: Mia, Chloe, Charlotte, Isabella, Jack, Emily, Zoey, William, Penelope, Owen, Mason, and Emma. Mia said, \"((Emma is an angel or Zoey is a ...
logic
{ "style": "rule", "ground_truth": "{\"source_dataset\": \"knights_knaves\", \"source_index\": 936, \"statements\": [[\"and\", [\"and\", [\"or\", [\"telling-truth\", 11], [\"lying\", 6]], [\"telling-truth\", 10]], [\"and\", [\"->\", [\"telling-truth\", 4], [\"telling-truth\", 9]], [\"or\", [\"telling-truth\", 9], [...
{ "split": "train", "index": 11, "n_people": 12, "depth_constraint": 4, "width_constraint": 2, "cell_seed": 12080261007, "source_index": 936 }
knights_and_knaves
[ { "role": "user", "content": "A very special island is inhabited only by pioneers and laggards. Pioneers always tell the truth, and laggards always lie. You meet 9 inhabitants: Benjamin, Riley, Sofia, Zoey, David, Emily, Olivia, Aiden, and Jackson. \"if Olivia is a pioneer then Emily is a pioneer\" - Benjam...
logic
{ "style": "rule", "ground_truth": "{\"source_dataset\": \"knights_knaves\", \"source_index\": 738, \"statements\": [[\"->\", [\"telling-truth\", 6], [\"telling-truth\", 5]], [\"or\", [\"lying\", 4], [\"lying\", 8]], [\"->\", [\"lying\", 8], [\"lying\", 5]], [\"and\", [\"telling-truth\", 0], [\"lying\", 7]], [\"->\...
{ "split": "train", "index": 12, "n_people": 9, "depth_constraint": 2, "width_constraint": 4, "cell_seed": 9040261007, "source_index": 738 }
knights_and_knaves
[ { "role": "user", "content": "A very special island is inhabited only by sages and fools. Sages always tell the truth, and fools always lie. You meet 5 inhabitants: Lucas, Zoey, Daniel, Lily, and Chloe. According to Lucas, \"Zoey is a fool\". Zoey asserted: \"Chloe is a sage\". Daniel told you that it is no...
logic
{ "style": "rule", "ground_truth": "{\"source_dataset\": \"knights_knaves\", \"source_index\": 1614, \"statements\": [[\"lying\", 1], [\"telling-truth\", 4], [\"not\", [\"and\", [\"telling-truth\", 0], [\"lying\", 3]]], [\"not\", [\"<=>\", [\"lying\", 1], [\"lying\", 0]]], [\"or\", [\"->\", [\"telling-truth\", 1], ...
{ "split": "train", "index": 13, "n_people": 5, "depth_constraint": 3, "width_constraint": 2, "cell_seed": 5030261007, "source_index": 1614 }
knights_and_knaves
[ { "role": "user", "content": "A very special island is inhabited only by pioneers and laggards. Pioneers always tell the truth, and laggards always lie. You meet 3 inhabitants: Jacob, Emily, and Matthew. Jacob said, \"Matthew is a laggard.\" Emily remarked, \"it is not the case that (Matthew is a pioneer if...
logic
{ "style": "rule", "ground_truth": "{\"source_dataset\": \"knights_knaves\", \"source_index\": 1624, \"statements\": [[\"lying\", 2], [\"not\", [\"<=>\", [\"telling-truth\", 2], [\"lying\", 2]]], [\"not\", [\"not\", [\"telling-truth\", 1]]]], \"solution\": [false, true, true], \"names\": [\"Jacob\", \"Emily\", \"Ma...
{ "split": "train", "index": 14, "n_people": 3, "depth_constraint": 3, "width_constraint": 3, "cell_seed": 3040261007, "source_index": 1624 }
knights_and_knaves
[ { "role": "user", "content": "A very special island is inhabited only by angels and devils. Angels always tell the truth, and devils always lie. You meet 9 inhabitants: Aiden, Victoria, David, Daniel, Aria, Michael, Amelia, Logan, and Noah. Aiden said, \"Aria is an angel.\" Victoria was heard saying, \"Dani...
logic
{ "style": "rule", "ground_truth": "{\"source_dataset\": \"knights_knaves\", \"source_index\": 437, \"statements\": [[\"telling-truth\", 4], [\"<=>\", [\"telling-truth\", 3], [\"lying\", 5]], [\"telling-truth\", 7], [\"not\", [\"telling-truth\", 8]], [\"and\", [\"telling-truth\", 4], [\"lying\", 6], [\"lying\", 2]]...
{ "split": "train", "index": 15, "n_people": 9, "depth_constraint": 2, "width_constraint": 4, "cell_seed": 9040261007, "source_index": 437 }
knights_and_knaves
[ { "role": "user", "content": "A very special island is inhabited only by altruists and egoists. Altruists always tell the truth, and egoists always lie. You meet 11 inhabitants: Grace, Daniel, Elizabeth, Mia, Ella, Scarlett, Ava, Harper, Aiden, Luke, and Amelia. According to Grace, \"Ella is an egoist\". Da...
logic
{ "style": "rule", "ground_truth": "{\"source_dataset\": \"knights_knaves\", \"source_index\": 55, \"statements\": [[\"not\", [\"telling-truth\", 4]], [\"not\", [\"telling-truth\", 3]], [\"->\", [\"and\", [\"lying\", 6], [\"lying\", 4]], [\"not\", [\"lying\", 0]]], [\"and\", [\"and\", [\"telling-truth\", 7], [\"tel...
{ "split": "train", "index": 16, "n_people": 11, "depth_constraint": 3, "width_constraint": 4, "cell_seed": 11070261007, "source_index": 55 }
knights_and_knaves
[ { "role": "user", "content": "A very special island is inhabited only by sages and fools. Sages always tell the truth, and fools always lie. You meet 11 inhabitants: Jack, Sebastian, Emily, Avery, Matthew, Isabella, Alexander, Liam, Benjamin, Victoria, and Elizabeth. \"(Matthew is a fool if and only if Vict...
logic
{ "style": "rule", "ground_truth": "{\"source_dataset\": \"knights_knaves\", \"source_index\": 939, \"statements\": [[\"and\", [\"<=>\", [\"lying\", 4], [\"telling-truth\", 9]], [\"not\", [\"lying\", 3]]], [\"->\", [\"not\", [\"telling-truth\", 3]], [\"<=>\", [\"telling-truth\", 5], [\"lying\", 10]]], [\"or\", [\"a...
{ "split": "train", "index": 17, "n_people": 11, "depth_constraint": 3, "width_constraint": 2, "cell_seed": 11050261007, "source_index": 939 }
knights_and_knaves
[ { "role": "user", "content": "A very special island is inhabited only by pioneers and laggards. Pioneers always tell the truth, and laggards always lie. You meet 7 inhabitants: Lily, Alexander, Sofia, Olivia, Michael, Oliver, and Evelyn. \"if (it is not the case that (if (if Sofia is a pioneer then Michael ...
logic
{ "style": "rule", "ground_truth": "{\"source_dataset\": \"knights_knaves\", \"source_index\": 37, \"statements\": [[\"->\", [\"not\", [\"->\", [\"->\", [\"telling-truth\", 2], [\"telling-truth\", 4]], [\"not\", [\"telling-truth\", 2]]]], [\"->\", [\"not\", [\"not\", [\"lying\", 3]]], [\"not\", [\"->\", [\"lying\",...
{ "split": "train", "index": 18, "n_people": 7, "depth_constraint": 5, "width_constraint": 4, "cell_seed": 7110261007, "source_index": 37 }
knights_and_knaves
[ { "role": "user", "content": "A very special island is inhabited only by pioneers and laggards. Pioneers always tell the truth, and laggards always lie. You meet 4 inhabitants: Jackson, James, Lucas, and Amelia. Jackson stated, \"it is not the case that (Amelia is a pioneer)\". James told you that if (Jacks...
logic
{ "style": "rule", "ground_truth": "{\"source_dataset\": \"knights_knaves\", \"source_index\": 1421, \"statements\": [[\"not\", [\"not\", [\"lying\", 3]]], [\"->\", [\"<=>\", [\"lying\", 0], [\"lying\", 2]], [\"<=>\", [\"telling-truth\", 1], [\"lying\", 2]]], [\"and\", [\"or\", [\"lying\", 0], [\"telling-truth\", 3...
{ "split": "train", "index": 19, "n_people": 4, "depth_constraint": 3, "width_constraint": 2, "cell_seed": 4030261007, "source_index": 1421 }
knights_and_knaves
[ { "role": "user", "content": "A very special island is inhabited only by saints and sinners. Saints always tell the truth, and sinners always lie. You meet 5 inhabitants: Chloe, Luke, Sofia, Jackson, and Henry. \"(Jackson is a sinner or Henry is a sinner) if and only if (if Luke is a sinner then Sofia is a ...
logic
{ "style": "rule", "ground_truth": "{\"source_dataset\": \"knights_knaves\", \"source_index\": 394, \"statements\": [[\"<=>\", [\"or\", [\"lying\", 3], [\"lying\", 4]], [\"->\", [\"lying\", 1], [\"telling-truth\", 2]]], [\"or\", [\"or\", [\"lying\", 2], [\"lying\", 3]], [\"and\", [\"telling-truth\", 3], [\"lying\",...
{ "split": "train", "index": 20, "n_people": 5, "depth_constraint": 3, "width_constraint": 2, "cell_seed": 5030261007, "source_index": 394 }
knights_and_knaves
[ { "role": "user", "content": "A very special island is inhabited only by sages and fools. Sages always tell the truth, and fools always lie. You meet 5 inhabitants: Ella, David, Mason, William, and Alexander. \"(Alexander is a fool or David is a sage) or (if Alexander is a sage then David is a sage) or (if ...
logic
{ "style": "rule", "ground_truth": "{\"source_dataset\": \"knights_knaves\", \"source_index\": 940, \"statements\": [[\"or\", [\"or\", [\"lying\", 4], [\"telling-truth\", 1]], [\"->\", [\"telling-truth\", 4], [\"telling-truth\", 1]], [\"->\", [\"telling-truth\", 2], [\"telling-truth\", 4]]], [\"and\", [\"<=>\", [\"...
{ "split": "train", "index": 21, "n_people": 5, "depth_constraint": 3, "width_constraint": 3, "cell_seed": 5040261007, "source_index": 940 }
knights_and_knaves
[ { "role": "user", "content": "A very special island is inhabited only by heros and villains. Heros always tell the truth, and villains always lie. You meet 12 inhabitants: Lucas, Mia, Daniel, Amelia, Matthew, Benjamin, Avery, Isabella, Joseph, Harper, Penelope, and Ava. Lucas was heard saying, \"it is not t...
logic
{ "style": "rule", "ground_truth": "{\"source_dataset\": \"knights_knaves\", \"source_index\": 544, \"statements\": [[\"not\", [\"<=>\", [\"lying\", 7], [\"lying\", 6]]], [\"->\", [\"or\", [\"lying\", 3], [\"telling-truth\", 8], [\"lying\", 4]], [\"->\", [\"telling-truth\", 11], [\"lying\", 0]]], [\"or\", [\"lying\...
{ "split": "train", "index": 22, "n_people": 12, "depth_constraint": 3, "width_constraint": 3, "cell_seed": 12060261007, "source_index": 544 }
knights_and_knaves
[ { "role": "user", "content": "A very special island is inhabited only by sages and fools. Sages always tell the truth, and fools always lie. You meet 9 inhabitants: Sofia, Zoey, Lily, Harper, Chloe, Aria, Jackson, Lucas, and Elizabeth. Sofia remarked, \"Chloe is a sage if and only if Lily is a fool\". Zoey ...
logic
{ "style": "rule", "ground_truth": "{\"source_dataset\": \"knights_knaves\", \"source_index\": 1008, \"statements\": [[\"<=>\", [\"telling-truth\", 4], [\"lying\", 2]], [\"and\", [\"lying\", 7], [\"telling-truth\", 4], [\"telling-truth\", 7]], [\"not\", [\"telling-truth\", 1]], [\"not\", [\"telling-truth\", 2]], [\...
{ "split": "train", "index": 23, "n_people": 9, "depth_constraint": 2, "width_constraint": 3, "cell_seed": 9030261007, "source_index": 1008 }
knights_and_knaves
[ { "role": "user", "content": "A very special island is inhabited only by saints and sinners. Saints always tell the truth, and sinners always lie. You meet 8 inhabitants: William, Joseph, Michael, Evelyn, Lucas, Avery, Samuel, and Aria. William said that Michael is a sinner. Joseph stated, \"Michael is a si...
logic
{ "style": "rule", "ground_truth": "{\"source_dataset\": \"knights_knaves\", \"source_index\": 766, \"statements\": [[\"not\", [\"telling-truth\", 2]], [\"<=>\", [\"lying\", 2], [\"lying\", 7]], [\"<=>\", [\"lying\", 6], [\"lying\", 4]], [\"and\", [\"lying\", 1], [\"lying\", 5]], [\"telling-truth\", 3], [\"or\", [\...
{ "split": "train", "index": 24, "n_people": 8, "depth_constraint": 2, "width_constraint": 2, "cell_seed": 8020261007, "source_index": 766 }
knights_and_knaves
[ { "role": "user", "content": "A very special island is inhabited only by pioneers and laggards. Pioneers always tell the truth, and laggards always lie. You meet 6 inhabitants: Samuel, Ella, Benjamin, Grace, Harper, and Michael. Samuel remarked, \"((Benjamin is a pioneer or Michael is a laggard or Ella is a...
logic
{ "style": "rule", "ground_truth": "{\"source_dataset\": \"knights_knaves\", \"source_index\": 417, \"statements\": [[\"and\", [\"<=>\", [\"or\", [\"telling-truth\", 2], [\"lying\", 5], [\"telling-truth\", 1], [\"lying\", 2]], [\"->\", [\"telling-truth\", 3], [\"lying\", 1]]], [\"lying\", 4], [\"and\", [\"lying\", ...
{ "split": "train", "index": 25, "n_people": 6, "depth_constraint": 4, "width_constraint": 4, "cell_seed": 6100261007, "source_index": 417 }
knights_and_knaves
[ { "role": "user", "content": "A very special island is inhabited only by pioneers and laggards. Pioneers always tell the truth, and laggards always lie. You meet 5 inhabitants: Abigail, Matthew, Grace, Daniel, and Jack. \"Jack is a pioneer\" - Abigail. Matthew noted, \"Abigail is a pioneer\". Grace was hear...
logic
{ "style": "rule", "ground_truth": "{\"source_dataset\": \"knights_knaves\", \"source_index\": 3180, \"statements\": [[\"telling-truth\", 4], [\"not\", [\"lying\", 0]], [\"and\", [\"lying\", 3], [\"lying\", 0], [\"telling-truth\", 1]], [\"and\", [\"telling-truth\", 2], [\"telling-truth\", 0], [\"telling-truth\", 3]...
{ "split": "train", "index": 26, "n_people": 5, "depth_constraint": 2, "width_constraint": 3, "cell_seed": 5020261007, "source_index": 3180 }
knights_and_knaves
[ { "role": "user", "content": "A very special island is inhabited only by pioneers and laggards. Pioneers always tell the truth, and laggards always lie. You meet 3 inhabitants: Lucas, Harper, and Evelyn. Lucas stated, \"(Evelyn is a laggard or Evelyn is a pioneer or Lucas is a pioneer) or (Evelyn is a lagga...
logic
{ "style": "rule", "ground_truth": "{\"source_dataset\": \"knights_knaves\", \"source_index\": 2769, \"statements\": [[\"or\", [\"or\", [\"lying\", 2], [\"telling-truth\", 2], [\"telling-truth\", 0]], [\"<=>\", [\"lying\", 2], [\"lying\", 1]], [\"<=>\", [\"telling-truth\", 0], [\"lying\", 2]]], [\"not\", [\"or\", [...
{ "split": "train", "index": 27, "n_people": 3, "depth_constraint": 3, "width_constraint": 3, "cell_seed": 3040261007, "source_index": 2769 }
knights_and_knaves
[ { "role": "user", "content": "A very special island is inhabited only by angels and devils. Angels always tell the truth, and devils always lie. You meet 7 inhabitants: Lily, Sophia, Abigail, Sebastian, Aria, Sofia, and Elizabeth. Lily remarked, \"if Sofia is an angel then Sophia is an angel\". In a stateme...
logic
{ "style": "rule", "ground_truth": "{\"source_dataset\": \"knights_knaves\", \"source_index\": 788, \"statements\": [[\"->\", [\"telling-truth\", 5], [\"telling-truth\", 1]], [\"not\", [\"telling-truth\", 3]], [\"and\", [\"telling-truth\", 4], [\"lying\", 3]], [\"->\", [\"telling-truth\", 3], [\"lying\", 2]], [\"->...
{ "split": "train", "index": 28, "n_people": 7, "depth_constraint": 2, "width_constraint": 4, "cell_seed": 7040261007, "source_index": 788 }
knights_and_knaves
[ { "role": "user", "content": "A very special island is inhabited only by pioneers and laggards. Pioneers always tell the truth, and laggards always lie. You meet 3 inhabitants: Aiden, Ella, and Owen. Aiden said, \"Aiden is a pioneer and (Owen is a laggard).\" Ella noted, \"(Ella is a laggard) if and only if...
logic
{ "style": "rule", "ground_truth": "{\"source_dataset\": \"knights_knaves\", \"source_index\": 234, \"statements\": [[\"and\", [\"telling-truth\", 0], [\"not\", [\"telling-truth\", 2]]], [\"<=>\", [\"not\", [\"telling-truth\", 1]], [\"<=>\", [\"lying\", 0], [\"telling-truth\", 2]]], [\"or\", [\"<=>\", [\"lying\", 1...
{ "split": "train", "index": 29, "n_people": 3, "depth_constraint": 3, "width_constraint": 2, "cell_seed": 3030261007, "source_index": 234 }
knights_and_knaves
[ { "role": "user", "content": "A very special island is inhabited only by pioneers and laggards. Pioneers always tell the truth, and laggards always lie. You meet 5 inhabitants: Logan, Ella, Aurora, Olivia, and Liam. Logan remarked, \"Aurora is a laggard if and only if Ella is a pioneer\". Ella stated, \"Aur...
logic
{ "style": "rule", "ground_truth": "{\"source_dataset\": \"knights_knaves\", \"source_index\": 3214, \"statements\": [[\"<=>\", [\"lying\", 2], [\"telling-truth\", 1]], [\"or\", [\"telling-truth\", 2], [\"lying\", 4]], [\"or\", [\"telling-truth\", 1], [\"telling-truth\", 2]], [\"<=>\", [\"lying\", 4], [\"telling-tr...
{ "split": "train", "index": 30, "n_people": 5, "depth_constraint": 2, "width_constraint": 3, "cell_seed": 5020261007, "source_index": 3214 }
knights_and_knaves
[ { "role": "user", "content": "A very special island is inhabited only by saints and sinners. Saints always tell the truth, and sinners always lie. You meet 7 inhabitants: Ava, Matthew, Emily, Jackson, Lily, Noah, and Ethan. Ava stated, \"Jackson is a saint\". In a statement by Matthew: \"(Jackson is a saint...
logic
{ "style": "rule", "ground_truth": "{\"source_dataset\": \"knights_knaves\", \"source_index\": 311, \"statements\": [[\"telling-truth\", 3], [\"<=>\", [\"and\", [\"telling-truth\", 3], [\"or\", [\"telling-truth\", 5], [\"telling-truth\", 3]]], [\"<=>\", [\"lying\", 2], [\"<=>\", [\"lying\", 0], [\"lying\", 5]]]], [...
{ "split": "train", "index": 31, "n_people": 7, "depth_constraint": 4, "width_constraint": 2, "cell_seed": 7080261007, "source_index": 311 }
knights_and_knaves
[ { "role": "user", "content": "A very special island is inhabited only by pioneers and laggards. Pioneers always tell the truth, and laggards always lie. You meet 4 inhabitants: Oliver, Aiden, Scarlett, and Charlotte. In Oliver's words: \"Oliver is a pioneer or Aiden is a laggard\". Aiden remarked, \"Charlot...
logic
{ "style": "rule", "ground_truth": "{\"source_dataset\": \"knights_knaves\", \"source_index\": 603, \"statements\": [[\"or\", [\"telling-truth\", 0], [\"lying\", 1]], [\"not\", [\"telling-truth\", 3]], [\"not\", [\"lying\", 3]], [\"or\", [\"lying\", 1], [\"lying\", 0], [\"lying\", 2]]], \"solution\": [true, false, ...
{ "split": "train", "index": 32, "n_people": 4, "depth_constraint": 2, "width_constraint": 3, "cell_seed": 4020261007, "source_index": 603 }
knights_and_knaves
[ { "role": "user", "content": "A very special island is inhabited only by angels and devils. Angels always tell the truth, and devils always lie. You meet 10 inhabitants: Samuel, Aria, William, Zoey, Mia, Olivia, Noah, Amelia, Evelyn, and Ava. Samuel was heard saying, \"Aria is a devil\". In Aria's words: \"...
logic
{ "style": "rule", "ground_truth": "{\"source_dataset\": \"knights_knaves\", \"source_index\": 648, \"statements\": [[\"not\", [\"telling-truth\", 1]], [\"and\", [\"lying\", 2], [\"or\", [\"lying\", 6], [\"telling-truth\", 3]]], [\"not\", [\"telling-truth\", 6]], [\"->\", [\"lying\", 6], [\"telling-truth\", 4]], [\...
{ "split": "train", "index": 33, "n_people": 10, "depth_constraint": 3, "width_constraint": 3, "cell_seed": 10060261007, "source_index": 648 }
knights_and_knaves
[ { "role": "user", "content": "A very special island is inhabited only by pioneers and laggards. Pioneers always tell the truth, and laggards always lie. You meet 6 inhabitants: Grace, Evelyn, Ella, Charlotte, Ethan, and Michael. Grace commented, \"(((Ethan is a laggard if and only if Ethan is a pioneer) and...
logic
{ "style": "rule", "ground_truth": "{\"source_dataset\": \"knights_knaves\", \"source_index\": 448, \"statements\": [[\"or\", [\"<=>\", [\"and\", [\"<=>\", [\"lying\", 4], [\"telling-truth\", 4]], [\"->\", [\"telling-truth\", 0], [\"lying\", 3]], [\"not\", [\"lying\", 1]]], [\"not\", [\"or\", [\"lying\", 5], [\"tel...
{ "split": "train", "index": 34, "n_people": 6, "depth_constraint": 5, "width_constraint": 4, "cell_seed": 6110261007, "source_index": 448 }
knights_and_knaves
[ { "role": "user", "content": "A very special island is inhabited only by pioneers and laggards. Pioneers always tell the truth, and laggards always lie. You meet 9 inhabitants: Joseph, William, Lucas, Aiden, Samuel, Olivia, Lily, Emma, and Ethan. Joseph asserted: \"Emma is a laggard if and only if Olivia is...
logic
{ "style": "rule", "ground_truth": "{\"source_dataset\": \"knights_knaves\", \"source_index\": 934, \"statements\": [[\"<=>\", [\"lying\", 7], [\"lying\", 5]], [\"<=>\", [\"telling-truth\", 1], [\"telling-truth\", 0]], [\"or\", [\"lying\", 3], [\"lying\", 7]], [\"->\", [\"telling-truth\", 1], [\"lying\", 1]], [\"or...
{ "split": "train", "index": 35, "n_people": 9, "depth_constraint": 2, "width_constraint": 2, "cell_seed": 9020261007, "source_index": 934 }
knights_and_knaves
[ { "role": "user", "content": "A very special island is inhabited only by altruists and egoists. Altruists always tell the truth, and egoists always lie. You meet 7 inhabitants: Luke, Sofia, Evelyn, Joseph, Aurora, Ella, and Sophia. \"it is not the case that (Sophia is an egoist),\" Luke claimed. Sofia asser...
logic
{ "style": "rule", "ground_truth": "{\"source_dataset\": \"knights_knaves\", \"source_index\": 426, \"statements\": [[\"not\", [\"not\", [\"telling-truth\", 6]]], [\"and\", [\"and\", [\"telling-truth\", 1], [\"lying\", 4]], [\"->\", [\"lying\", 6], [\"lying\", 2]]], [\"not\", [\"and\", [\"telling-truth\", 0], [\"ly...
{ "split": "train", "index": 36, "n_people": 7, "depth_constraint": 3, "width_constraint": 4, "cell_seed": 7070261007, "source_index": 426 }
knights_and_knaves
[ { "role": "user", "content": "A very special island is inhabited only by heros and villains. Heros always tell the truth, and villains always lie. You meet 6 inhabitants: Victoria, Jacob, Benjamin, Aurora, Riley, and Ava. According to Victoria, \"if (it is not the case that (if Victoria is a hero then Jacob...
logic
{ "style": "rule", "ground_truth": "{\"source_dataset\": \"knights_knaves\", \"source_index\": 665, \"statements\": [[\"->\", [\"not\", [\"->\", [\"telling-truth\", 0], [\"lying\", 1]]], [\"and\", [\"or\", [\"telling-truth\", 2], [\"telling-truth\", 3], [\"telling-truth\", 0]], [\"<=>\", [\"telling-truth\", 1], [\"...
{ "split": "train", "index": 37, "n_people": 6, "depth_constraint": 4, "width_constraint": 4, "cell_seed": 6100261007, "source_index": 665 }
End of preview. Expand in Data Studio

Knights and Knaves, n_people = 3..12

Procedurally generated Knights-and-Knaves logic puzzles for RL with a binary reward, in verl parquet format. Every puzzle has a unique solution.

file split rows n_people
train.parquet train 100,000 3..12, 10,000 each
eval.parquet validation 1,000 3..12, 100 each, stratified over (depth, width) cells
fahim_test_n10.parquet fahim_test_n10 1,000 10 (the test split of ftajwar/knights_and_knaves_fraction_reward, same prompt format)

How it was made

Same procedure as ftajwar/knights_and_knaves_fraction_reward (reverse-engineered from its rows), scaled from 20k to 100k and to n_people 3..12:

  • Generator: reasoning_gym 0.1.19 KnightsKnavesDataset (the K&K sampler of Xie et al., 2024). Item idx of a cell is drawn from Random(cell_seed + idx), and each cell has its own seed.
  • (depth, width) grid: for n ≤ 5, {(2,3), (3,2), (3,3)}. For n ≥ 6, {2,3,4}×{2,3,4} plus (5,4), which gives 10 cells. Train and eval are split evenly across each n's cells.
  • Dedup: within each cell, idx runs 0, 1, 2, …, and any puzzle whose statements equal an earlier one in the same n is skipped. n = 2 is not included because one of its cells has only about 975 distinct puzzles in total.
  • No overlap: no duplicate statements within train or eval. No train puzzle is isomorphic to an eval puzzle or to a fahim_test_n10 puzzle, where isomorphic means equal after relabelling the people and reordering the operands of and / or / <=>. Train/eval prompt-text overlap is 0.

Reproduce with generate_knights_and_knaves_data.py (included here, see its docstring for details):

pip install reasoning-gym==0.1.19 pandas pyarrow
python generate_knights_and_knaves_data.py --out_dir OUT --fahim_dir DIR_WITH_FAHIM_{train,test}.parquet \
    --n_people 3,4,5,6,7,8,9,10,11,12 --train_per_n 10000 --eval_per_n 100 --auto_shift \
    --seed 20261007 --prompt_style math

stats.json records every cell's seed, number of draws, distinct-puzzle count, train/eval counts, and the overlap checks.

Row format

{
  "data_source": "knights_and_knaves"                 # train
               | "knights_and_knaves_eval_nXX"        # eval, one per n (per-difficulty metrics in verl)
               | "knights_and_knaves_fahimtest_n10",
  "prompt": [{"role": "user", "content": question + "\nPlease reason step by step, and put your final answer within \\boxed{{}}."}],
  "ability": "logic",
  "reward_model": {"style": "rule", "ground_truth": "<JSON: statements, solution, names, knight_knave_terms, difficulty, answer, question, ...>"},
  "extra_info": {"split", "index", "n_people", "depth_constraint", "width_constraint", "cell_seed", "source_index"},
}
  • Prompt: the question already contains the answer format, e.g. (Format your answer like: "A is a hero/villain, ..."). The appended instruction is copied verbatim from the maxrl math preprocessing, including its literal \boxed{{}}, so KnK and math runs share one prompt.
  • Reward (binary): take the last \boxed{...} (one extra wrapping {...} layer is tolerated), parse it into a set of (name, role) pairs with reasoning_gym's _normalize_answer, and return 1.0 iff that set equals the set parsed from ground_truth["answer"], else 0.0.
Downloads last month
5