SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2411.00773 · NeurIPS · 2024

LogiCity: Advancing Neuro-Symbolic AI with Abstract Urban Simulation

Pradeep Ravikumar, Alexander Gray, Simon Stepputtis, Bowen Li, Katia Sycara, Jinqi Luo, Chen Wang, Zhaoyu Li, Xujie Si, Sebastian Scherer, Yaqi Xie, Qiwei Du, and 1 more

arXiv · PDF · Open in the Atlas

Code that ran

2 of 2 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, 0 violated it and 0 have no contract verdict; 2 failures of our instrument; 0 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/2411.00773.json · badge: /api/ran/2411.00773.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
Jaraxxus-Me/LogiCity canonical (classifier label)
classifier basis: census
2 ran · 0 no recorded run
FunctionStatusWhere it lives
check_fol_rule_syntax Ran
ran; our contract draft was wrong, not the code
Jaraxxus-Me/LogiCity/logicity/utils/check.py
code served (permissive licence) · get_code("eba5dcb089e0a3b6")
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 torch
import torch.nn as nn

# Analyze the function:
# - Takes a single parameter 'rule' (a string)
# - Iterates through characters in the rule
# - Checks for matching parentheses
# - Returns a string message

# Valid test cases for check_fol_rule_syntax:
rule_1 = "(P(x) → Q(x))"  # Valid: balanced parentheses
rule_2 = "∀x(P(x) ∧ Q(x))"  # Valid: balanced parentheses
rule_3 = "(P(x) → Q(x)"  # Invalid: unmatched opening parenthesis
rule_4 = "P(x) → Q(x))"  # Invalid: unmatched closing parenthesis
rule_5 = "P(x) ∧ Q(x)"  # Valid: no parentheses (empty stack at end)

# Use a valid rule for the setup
ARGS = {
    "rule": "(P(x) → Q(x))"
}
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 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
collect_trajectories Ran
ran; our contract draft was wrong, not the code
Jaraxxus-Me/LogiCity/logicity/utils/collector.py
code served (permissive licence) · get_code("c47eac6239c86cac")
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. 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 unittest.mock import Mock

torch.manual_seed(0)

# Create a mock environment
env = Mock()

# Mock reset to return initial observation
obs_shape = (4,)
initial_obs = np.random.randn(*obs_shape).astype(np.float32)
env.reset.return_value = initial_obs

# Mock step to return (new_obs, reward, done, infos)
def step_fn(action):
    new_obs = np.random.randn(*obs_shape).astype(np.float32)
    reward = float(np.random.randn())
    done = bool(np.random.choice([True, False]))
    infos = {}
    return new_obs, reward, done, infos

env.step.side_effect = step_fn

# Create a mock model with predict method
model = Mock()

def predict_fn(obs, deterministic=True):
    action = np.array(0)  # scalar action
    value = np.array(0.0)  # dummy value estimate
    return action, value

model.predict.side_effect = predict_fn

# Number of steps to collect
n_steps = 2

ARGS = {
    "env": env,
    "model": model,
    "n_steps": n_steps,
}
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 tuple — a tuple output has no array shape of its own; none is 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

Also present in other papers' code

Of 2 samples lifted from this paper's linked repositories, 2 carry a function identity and 0 do not. Of the 2 distinct functions with an identity, 0 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 0 later) and 2 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.

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

Recent years have witnessed the rapid development of Neuro-Symbolic (NeSy) AI systems, which integrate symbolic reasoning into deep neural networks. However, most of the existing benchmarks for NeSy AI fail to provide long-horizon reasoning tasks with complex multi-agent interactions. Furthermore, they are usually constrained by fixed and simplistic logical rules over limited entities, making them far from real-world complexities. To address these crucial gaps, we introduce LogiCity, the first simulator based on customizable first-order logic (FOL) for an urban-like environment with multiple dynamic agents. LogiCity models diverse urban elements using semantic and spatial concepts, such as IsAmbulance(X) and IsClose(X, Y). These concepts are used to define FOL rules that govern the behavior of various agents. Since the concepts and rules are abstractions, they can be universally applied to cities with any agent compositions, facilitating the instantiation of diverse scenarios. Besides, a key feature of LogiCity is its support for user-configurable abstractions, enabling customizable simulation complexities for logical reasoning. To explore various aspects of NeSy AI, LogiCity introduces two tasks, one features long-horizon sequential decision-making, and the other focuses on one-step visual reasoning, varying in difficulty and agent behaviors. Our extensive evaluation reveals the advantage of NeSy frameworks in abstract reasoning. Moreover, we highlight the significant challenges of handling more complex abstractions in long-horizon multi-agent scenarios or under high-dimensional, imbalanced data. With its flexible design, various features, and newly raised challenges, we believe LogiCity represents a pivotal step forward in advancing the next generation of NeSy AI. All the code and data are open-sourced at our website.

For agents

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

get_harvested_code_for_paper("2411.00773")
get_code_for_paper("2411.00773")
have("2411.00773")

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

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

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

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

Connect an agent — have() is free.