SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2311.07387 · 2023

Assessing Logical Puzzle Solving in Large Language Models: Insights from a Minesweeper Case Study

arXiv · PDF · Open in the Atlas

Code that ran

6 of 8 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 0 honoured the contract we drafted, 1 violated it and 0 have no contract verdict; 5 failures of our instrument; 2 no recorded run), measured 2026-11-23; repository links from the Papers with Code archive attributed under CC BY-SA, no affiliation; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2311.07387.json · badge: /api/ran/2311.07387.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
yinghao-li/minesweeper-for-llm canonical (classifier label)
classifier basis: census
6 ran · 2 no recorded run
FunctionStatusWhere it lives
load_gpt_resources Ran
ran; our contract draft was wrong, not the code
yinghao-li/minesweeper-for-llm/src/gpt.py
code served (permissive licence) · get_code("2997f9c1f61511d0")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned str. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import json
import tempfile
import os

# Create a temporary JSON file with GPT resources
temp_dir = tempfile.mkdtemp()
resource_file = os.path.join(temp_dir, 'gpt_resources.json')

resource_data = {
    'engine': 'gpt-3.5-turbo',
    'api_key': 'sk-test-key',
    'organization': 'org-test',
    'api_type': 'openai',
    'api_version': '2023-05-15'
}

with open(resource_file, 'w', encoding='utf-8') as f:
    json.dump(resource_data, f)

ARGS = {
    'path': resource_file
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
openai — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
make_choice_type_function Ran
ran; our contract draft was wrong, not the code
yinghao-li/minesweeper-for-llm/src/argparser.py
code served (permissive licence) · get_code("7be3a366e3d7aa6a")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned function. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import numpy as np
from typing import Any, Callable

torch.manual_seed(0)

# Example 1: Simple list of integers
choices_int = [1, 2, 3, 4, 5]

# Example 2: List of strings
choices_str = ["apple", "banana", "cherry"]

# Example 3: Mixed types list
choices_mixed = [0, "option_a", 3.14, None]

# Example 4: List with custom objects
class Choice:
    def __init__(self, value):
        self.value = value
    
    def __str__(self):
        return f"Choice({self.value})"

choices_custom = [Choice(i) for i in range(3)]

# Example 5: Empty list (edge case)
choices_empty = []

# Example 6: List with boolean values
choices_bool = [True, False]

# Example 7: List with tuples
choices_tuples = [(1, 2), (3, 4), (5, 6)]

# Use the first example as the main test case
ARGS = {
    "choices": choices_int
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type function — a function output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a function output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
parse_action_str Ran
ran; our contract draft was wrong, not the code
yinghao-li/minesweeper-for-llm/assist/analyse_gp.py
code served (permissive licence) · get_code("5f82354c990b2d2d")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned tuple, ndim 1, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import re

def parse_action_str(action_str: str) -> str:
    action_str = action_str.strip()
    match_result = re.search('([LMR]) *\\(( *\\d+) *, *(\\d+) *\\)', action_str)
    try:
        action, row_idx, col_idx = match_result.groups()
    except (AttributeError, TypeError):
        raise ValueError('Invalid response format.')
    return (action, int(row_idx), int(col_idx))


# Setup code
ARGS = {
    'action_str': 'L ( 5 , 10 )'
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple, ndim 1, dtype family float — a tuple output has no array shape of its own; none is stated
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
parse_action_str Ran
ran; our contract draft was wrong, not the code
yinghao-li/minesweeper-for-llm/assist/organize_reasoning.py
code served (permissive licence) · get_code("40cb2089558f37c8")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned tuple, ndim 1, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import re

def parse_action_str(action_str: str) -> tuple[str, int, int]:
    action_str = action_str.strip()
    match_result = re.search('([LMR]) *\\(( *\\d+) *, *(\\d+) *\\)', action_str)
    try:
        action, row_idx, col_idx = match_result.groups()
    except (AttributeError, TypeError):
        raise ValueError('Invalid response format.')
    return (action, int(row_idx), int(col_idx))

# Valid action string that matches the regex pattern
ARGS = {
    'action_str': 'L (5, 3)'
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple, ndim 1, dtype family float — a tuple output has no array shape of its own; none is stated
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
set_log_path Ran
ran; our contract draft was wrong, not the code
yinghao-li/minesweeper-for-llm/src/io.py
code served (permissive licence) · get_code("56bf2824464e300a")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned str. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import os.path as op

class Args:
    def __init__(self):
        self.dataset_name = 'cifar10'
        self.model_name = 'resnet18'
        self.feature_type = 'none'
        self.uncertainty_method = 'mc_dropout'

ARGS = {
    'args': Args(),
    'time': '2024-01-15_10-30-45'
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
string_to_bool Ran
ran, violated the contract we drafted
yinghao-li/minesweeper-for-llm/src/argparser.py
code served (permissive licence) · get_code("55c956dab0a01509")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned bool, ndim 0, dtype family float, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch

def string_to_bool(v):
    if isinstance(v, bool):
        return v
    if v.lower() in ('yes', 'true', 't', 'y', '1'):
        return True
    elif v.lower() in ('no', 'false', 'f', 'n', '0'):
        return False
    else:
        raise ArgumentTypeError(f'Truthy value expected: got {v} but expected one of yes/no, true/false, t/f, y/n, 1/0 (case insensitive).')

# The function takes one parameter: v (the value to convert to boolean)
# It can be:
# 1. A bool already
# 2. A string representation of a boolean value

ARGS = {
    'v': 'true'
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type bool, ndim 0, dtype family float, shape () — shape () as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
logging_args Not yet run
unverified (harvested, no recorded run)
yinghao-li/minesweeper-for-llm/src/io.py
code served (permissive licence) · get_code("060539deafa41b60")
How it ran

no invocation recorded.

set_logging Not yet run
unverified (harvested, no recorded run)
yinghao-li/minesweeper-for-llm/src/io.py
code served (permissive licence) · get_code("ba9f44b7102f7983")
How it ran

no invocation recorded.

Also present in other papers' code

Of 8 samples lifted from this paper's linked repositories, 8 carry a function identity and 0 do not. Of the 8 distinct functions with an identity, 8 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 8 later) and 0 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

FunctionAlso present inEarliest-datedOthers named
make_choice_type_function 2 other papers
2 later
2024.naacl-long.4 (2024 (year only))
Assessing Logical Puzzle Solving in Large Language Models: Insights from a Minesweeper Case Study
2406.01265 (2024-06)
The Dawn of Natural Language to SQL: Are We Fully Ready?
string_to_bool 2 other papers
2 later
2024.naacl-long.4 (2024 (year only))
Assessing Logical Puzzle Solving in Large Language Models: Insights from a Minesweeper Case Study
2406.01265 (2024-06)
The Dawn of Natural Language to SQL: Are We Fully Ready?
load_gpt_resources 1 other paper
1 later
2024.naacl-long.4 (2024 (year only))
Assessing Logical Puzzle Solving in Large Language Models: Insights from a Minesweeper Case Study
logging_args 1 other paper
1 later
2024.naacl-long.4 (2024 (year only))
Assessing Logical Puzzle Solving in Large Language Models: Insights from a Minesweeper Case Study
parse_action_str 1 other paper
1 later
2024.naacl-long.4 (2024 (year only))
Assessing Logical Puzzle Solving in Large Language Models: Insights from a Minesweeper Case Study
parse_action_str 1 other paper
1 later
2024.naacl-long.4 (2024 (year only))
Assessing Logical Puzzle Solving in Large Language Models: Insights from a Minesweeper Case Study
set_log_path 1 other paper
1 later
2024.naacl-long.4 (2024 (year only))
Assessing Logical Puzzle Solving in Large Language Models: Insights from a Minesweeper Case Study
set_logging 1 other paper
1 later
2024.naacl-long.4 (2024 (year only))
Assessing Logical Puzzle Solving in Large Language Models: Insights from a Minesweeper Case Study

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-23.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

Large Language Models (LLMs) have shown remarkable proficiency in language understanding and have been successfully applied to a variety of real-world tasks through task-specific fine-tuning or prompt engineering. Despite these advancements, it remains an open question whether LLMs are fundamentally capable of reasoning and planning, or if they primarily rely on recalling and synthesizing information from their training data. In our research, we introduce a novel task -- Minesweeper -- specifically designed in a format unfamiliar to LLMs and absent from their training datasets. This task challenges LLMs to identify the locations of mines based on numerical clues provided by adjacent opened cells. Successfully completing this task requires an understanding of each cell's state, discerning spatial relationships between the clues and mines, and strategizing actions based on logical deductions drawn from the arrangement of the cells. Our experiments, including trials with the advanced GPT-4 model, indicate that while LLMs possess the foundational abilities required for this task, they struggle to integrate these into a coherent, multi-step logical reasoning process needed to solve Minesweeper. These findings highlight the need for further research to understand the nature of reasoning capabilities in LLMs under similar circumstances, and to explore pathways towards more sophisticated AI reasoning and planning models.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2311.07387")
get_code_for_paper("2311.07387")
have("2311.07387")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2311.07387.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2311.07387.svg)](https://syntology.ai/paper/2311.07387)

Connect an agent — have() is free.