The LLM Proposes. The Logic Decides. Neurosymbolic agents, higher-order logic, and the AI we almost forgot [ukr]

A language model is fluent, and sometimes it is wrong and sure. In a chat that costs one bad answer. In an agent with a memory it costs more: the agent stores the mistake, reasons from it, and repeats it tomorrow. Retrieval cannot tell which of two contradictory notes is right, and a second model asked to judge only predicts a plausible verdict.

The fix is not new. Before deep learning, expert systems such as MYCIN and XCON kept knowledge as rules, applied them the same way every time, and answered "why?" and "how?". They failed at one thing: getting knowledge in, because every rule was typed by hand. LLMs are very good at exactly that. Neurosymbolic AI puts the two halves back together.

The talk follows that reunion through one running example: an assistant whose LLM "remembers" a meeting in Berlin while its calendar has the same person in Lisbon at the same hour. We cover deduction, induction and abduction, and why LLMs are good at the last; reasoning over a knowledge graph with Prolog and Datalog; and why higher-order logic programming (λProlog) fits agents well, with types that reject malformed LLM output, relations as values, scoped what-if assumptions, rules about rules, and proofs that a small kernel can check. We end with a working agent whose LLM writes λProlog behind six guards, and with honest numbers on what the logic layer catches and what it cannot.

For AI and agent engineers who know Python and LLMs. No background in logic or mathematics is assumed.

Volodymyr Pavlyshyn
Senior Staff Engineer at Affinidi
  • Senior Staff Engineer at Affinidi, working with the CTO on the architecture of identity and trust for AI agents
  • Designs memory for AI agents: knowledge graphs, temporal and verifiable data. Founding engineer at Mykin, where he built on-device semantic memory for a personal AI
  • In engineering since 2002; at Zalando he architected and led Transaction Core, the order backend for 40M+ customers
  • Author of 18 books on agent memory, knowledge graphs and logic, including Graph Engineering — The Loop Memory Model (Packt, 2026) and the Neurosymbolic AI series: Logic for Agents and Bulletproof Knowledge.
  • Author of open-source tools for verifiable agent memory: lean-elpi (λProlog inside Lean 4) and Tiramemsu.com, typedgraph.org
  • LinkedIn, X (Twitter), YouTube, Substack, GitHub, Medium, Website
Sign in
Or by mail
Sign in
Or by mail
Register with email
Register with email
Forgot password?