---
title: "Neurosymbolic reasoning 2026: LLMs plus logic rules, live demo"
canonical: "https://xerj.org/science/neurosymbolic-reasoning"
updated: "2026-11-25"
---

# Neurosymbolic reasoning: how LLMs and logic rules reason together

SHORT ANSWER · UPDATED 2026-11-25
What is neurosymbolic reasoning? A neural model, often an LLM, reads messy input and proposes facts or a formal program. A symbolic engine then applies rules you can read, step by step, and returns each answer with the proof behind it. The model brings language and perception; the engine brings exact, checkable logic.
**Key number:** Logic-LM, which turns a question into logic and runs a symbolic solver, raised accuracy by 39.2% on average over standard prompting and by 18.4% over chain of thought across five datasets (Pan et al., 2023). AlphaGeometry solved 25 of 30 olympiad geometry problems in the IMO-AG-30 set (Nature, 2024).
Figures re-read from the Logic-LM paper (ACL Anthology) and the AlphaGeometry paper (Nature) on 25 Nov 2026.

**TL;DR** Neurosymbolic reasoning splits the work. The neural part turns text, code or images into facts with a confidence. The symbolic part applies rules to those facts until nothing new follows, so every answer comes with the chain of facts that produced it. Change a rule or a fact and the answer changes in a way you can explain.

## Agent prompt

```text
Read https://xerj.org/science/neurosymbolic-reasoning.md. Ask me what my agent needs to reason about, then show me which facts a model should extract, which rules to write, and how to check the answers.
```

## How neurosymbolic reasoning works

Every neurosymbolic reasoner has the same three steps, and the demo above runs all of them in your browser.

- **The model proposes.** A neural network reads unstructured input and writes structured facts, such as `imports(api, auth)`, each with a confidence.
- **The rules compute.** A symbolic engine, here Datalog, applies rules such as if X imports Y and Y depends on Z, then X depends on Z until it reaches a fixpoint.
- **The proof checks.** Each answer carries the facts and rules that produced it, and a confidence taken from its best proof. A claim with no proof is reported as not supported.

The split gives you what each side does best. Models handle language and noise. Rules handle multi step logic exactly, the same way every time, and they stay readable.

## Neurosymbolic reasoning with LLMs

LLMs made the neural side much stronger, and three patterns now show up again and again.

- **Translate, then solve.** The LLM rewrites a question as logic and a solver computes the answer. Logic-LM (Pan et al., Findings of EMNLP 2023) reported gains of 39.2% over standard prompting and 18.4% over chain of thought on average across five logical reasoning datasets.
- **Model guides, engine proves.** AlphaGeometry pairs a language model with a symbolic deduction engine; it solved 25 of 30 problems on the IMO-AG-30 olympiad geometry set (Trinh et al., Nature 2024).
- **Learn through the logic.** Languages such as Scallop attach confidences to facts and carry them through the rules, the max-times scoring used in the demo, so a network can be trained with the reasoning in the loop.

## When to use it

Neurosymbolic reasoning shines when answers must follow rules, chain several facts, or stand up to an audit: code dependencies and impact analysis, access policies, eligibility checks, math and geometry. For open ended writing or summaries, an LLM alone is simpler. Our [neurosymbolic AI vs LLM](https://xerj.org/science/neurosymbolic-ai-vs-llm) page has a picker for that choice.

## Where XERJ fits

XERJ is a new way for AI to search for data: a search engine for AI agents, with a neurosymbolic model inside. Models propose, programs you can read compute, and facts check the answer. XERJ indexes code, docs and files on your machine and returns cited answers over CLI and MCP, so an agent can find the facts first and reason over them second. Read how [XERJ Query-1 compiles prompts to verifiable search queries](https://xerj.org/blog/xerj-query-ai-model).

## Read next

- [Neurosymbolic AI explained](https://xerj.org/science/neurosymbolic-ai)
- [Neurosymbolic AI vs LLM](https://xerj.org/science/neurosymbolic-ai-vs-llm)
- [Neurosymbolic AI examples](https://xerj.org/science/neurosymbolic-ai-examples)
- [Neurosymbolic models](https://xerj.org/science/neurosymbolic-models)
- [Neurosymbolic AI frameworks 2026](https://xerj.org/compare/neurosymbolic-ai-frameworks-2026)
- [Symbolic execution for LLMs](https://xerj.org/science/symbolic-execution)

## FAQ

### What is neurosymbolic reasoning?

It is reasoning where a neural model reads the input and proposes facts or a formal program, and a symbolic engine applies explicit rules to reach the answer, with a proof you can check.

### Is neurosymbolic reasoning the same as chain of thought?

No. Chain of thought is text the model writes about its own steps. In neurosymbolic reasoning a separate program applies the rules, so each step is computed and can be checked.

### Can LLMs do neurosymbolic reasoning?

Yes, as the neural part. A common pattern has the LLM translate a question into logic and a solver compute the answer; Logic-LM reported a 39.2% average gain over standard prompting with this pattern.

### Which tools support neurosymbolic reasoning?

Datalog and Prolog engines, SAT and SMT solvers such as Z3, theorem provers, and neurosymbolic languages such as Scallop. See our comparison of neurosymbolic AI frameworks.

### When should I use neurosymbolic reasoning?

Use it when answers must follow rules, chain several facts together, or be audited later: dependencies, policies, eligibility, math and geometry. For open ended writing, an LLM alone is simpler.

## Evidence

- Pan et al., Logic-LM, Findings of EMNLP 2023: [aclanthology.org/2023.findings-emnlp.248](https://aclanthology.org/2023.findings-emnlp.248/)
- Trinh et al., Solving olympiad geometry without human demonstrations, Nature 2024: [nature.com/articles/s41586-023-06747-5](https://www.nature.com/articles/s41586-023-06747-5)
- Scallop, a language for neurosymbolic programming: [github.com/scallop-lang/scallop](https://github.com/scallop-lang/scallop)
- Hitzler et al., Neuro-symbolic approaches in artificial intelligence, National Science Review 2022: [academic.oup.com/nsr](https://academic.oup.com/nsr/article/9/6/nwac035/6542460)
