# prolog

Published articles for prolog.

This is one page of public article previews, not the complete archive. Follow Next page to continue. Summaries are not the original full articles.

## ALBI: LLM-Guided Inductive Logic Programming via Iterative Generate-Test-Constrain Refineme

DevFeed: [ALBI: LLM-Guided Inductive Logic Programming via Iterative Generate-Test-Constrain Refineme](<https://devfeed.tech/articles/albi-llm-guided-inductive-logic-programming-via-iterative-generate-test-constrain-refineme-117555.md>)

Original publisher: [Read original article](<https://arxiv.org/abs/2611.05039>)

Author: Aboubaker Seddiq Benterki, J\\"uri Vain, Gert Kanter, Leelo Aino J\\"urgenstein

Published: 2026-11-04T05:00:00Z

Content type: article

Language: en

Sources: [arXiv: Artificial Intelligence](<https://devfeed.tech/sources/arxiv-artificial-intelligence.md>)

Topics: [llm-reasoning](<https://devfeed.tech/topics/llm-reasoning.md>), [Large Language Model](<https://devfeed.tech/topics/llm.md>), [LLM evaluation / benchmarking](<https://devfeed.tech/topics/llm-evaluation-benchmarking.md>)

Tags: [benchmarks](<https://devfeed.tech/tags/benchmarks.md>), [claude-opus](<https://devfeed.tech/tags/claude-opus.md>), [cs-ai](<https://devfeed.tech/tags/cs-ai.md>), [cs-sc](<https://devfeed.tech/tags/cs-sc.md>), [gemini-3-1-pro](<https://devfeed.tech/tags/gemini-3-1-pro.md>), [gpt-5-4](<https://devfeed.tech/tags/gpt-5-4.md>), [induction](<https://devfeed.tech/tags/induction.md>), [llm](<https://devfeed.tech/tags/llm.md>), [metamorphic-testing](<https://devfeed.tech/tags/metamorphic-testing.md>), [prolog](<https://devfeed.tech/tags/prolog.md>), [symbolic-reasoning](<https://devfeed.tech/tags/symbolic-reasoning.md>)

### AI overview

ALBI replaces the ASP-based hypothesis generator in Learning from Failures with an LLM, while keeping SWI-Prolog as a formal verifier. In an iterative loop, the LLM proposes hypotheses from structured prompts, Prolog tests them, and diagnostic feedback guides refinement. On 30 standard ILP benchmarks, three evaluated models achieved 100% success, matching Popper with 1.4-1.7 iterations on average. With semantic anonymization of predicate names, success remained 100%, while iterations increased by a reported factor of 1.36-1.67. These results are evidence of robust induction on the tested benchmarks; the supplied text does not describe broader evaluation.

### Source excerpt

arXiv:2611.05039v1 Announce Type: new Abstract: We introduce ALBI (Agent for Learning By Induction), a neuro-symbolic ILP framework that replaces the ASP-based hypothesis generator in the Learning from Failures (LFF) paradigm with a Large Language Model (LLM), while retaining SWI-Prolog as a formal verifier. ALBI implements an iterative generate-test-constrain loop: the LLM proposes candidate hypotheses from structured prompts; Prolog tests each candidate; and diagnostic feedback drives refinement. We further introduce semantic anonymization, a metamorphic testing methodology, to distinguish structural symbolic induction from surface-level pattern matching on predicate names. Experiments on 30 standard ILP benchmarks show that ALBI achieves 100% success across three frontier LLMs (Gemini 3.1 Pro, GPT 5.4 Pro, Claude Opus 4.6), matching Popper while requiring only 1.4-1.7 iterations on average. Under anonymization, all models maintain 100% success with a moderate iteration increase (1.36-1.67 times), providing evidence of robust symbolic reasoning.

## Nontrailing separators do not spark joy

DevFeed: [Nontrailing separators do not spark joy](<https://devfeed.tech/articles/nontrailing-separators-do-not-spark-joy-25499.md>)

Original publisher: [Read original article](<https://buttondown.com/hillelwayne/archive/nontrailing-separators-do-not-spark-joy/>)

Author: Hillel Wayne

Published: 2026-06-10T12:22:04Z

Content type: opinion

Language: en

Sources: [Newsletter feed for Hillel Wayne's Newsletter](<https://devfeed.tech/sources/newsletter-feed-for-hillel-wayne-s-newsletter.md>)

Topics: [markup](<https://devfeed.tech/topics/markup.md>)

Tags: [alloy](<https://devfeed.tech/tags/alloy.md>), [better](<https://devfeed.tech/tags/better.md>), [change](<https://devfeed.tech/tags/change.md>), [design](<https://devfeed.tech/tags/design.md>), [grammar](<https://devfeed.tech/tags/grammar.md>), [haskell](<https://devfeed.tech/tags/haskell.md>), [json](<https://devfeed.tech/tags/json.md>), [prolog](<https://devfeed.tech/tags/prolog.md>), [tla-plus](<https://devfeed.tech/tags/tla-plus.md>)

### AI overview

The author argues that banning trailing separators makes edits to lists and records uneven: adding or removing a final item requires extra punctuation changes, unlike edits elsewhere. Examples include JSON, Haskell record fields, TLA+ variables, and Prolog, whose clauses also end with a period. The excerpt contrasts these with Python and Go, which allow trailing commas, TLA+ leading conjunctions and disjunctions, and Alloy, which allows both leading and trailing commas as well as empty separators. The author favors flexible separators, while noting that a parsing ambiguity argument against trailing separators will be considered; the excerpt ends before that argument is explained.

### Source excerpt

This is valid JSON: { "a": 1, "b": 2, "c": 3 } This is invalid JSON: { "a": 1, "b": 2, "c": 3, } The difference is the last comma. The JSON grammar specifies that a comma can separate two members of an object but not postcede ("trail") a member. I think this was a design mistake. Say we want to add two new keys to the struct, one before the "a" member and one after the "c" member. Here's what it would look like if trailing commas were permitted: { + "x": 0, "a": 1, "b": 2, "c": 3, + "y": 4, } It's the exact same text transformation regardless of where we add the key. In the current model, we instead have this: { + "x": 0, "a": 1, "b": 2, - "c": 3 + "c": 3, + "y": 4 } Those are different transformations! Similarly if you want to remove an element, you can't just delete the corresponding line1, you have to delete the line and then check that the last line doesn't have a trailing comma. Don't even get me started on all the special cases involved in swapping two lines. JSON isn't the only language with this problem. Haskell writes record types like this: -- from https://play.haskell.org/ data Drone = Drone { xPos :: Int , yPos :: Int , zPos :: Int } This "partial bullet point" style of putting separators at the beginning of rows makes it easier to change the last row but harder to change the first one. TLA+ has this problem too: \* both valid VARIABLES a, b, c vars == <<a, b, c>> \* both invalid VARIABLES a, b, c, vars == <<a, b, c,>> This one's annoying because 1) you're constantly adding new top-level variables while working on a spec and 2) the PlusCal DSL does not have this problem: \* Totally fine! (*--algorithm foo { variables a; b; c; The worst offenders, IMO, are logic languages like Prolog. Not only don't you have trailing separators, you have a special terminating symbol: foo(A, B, C) :- A = 1, % comma B = 2, % comma C = 3. % period! I guess you can sort of think of it as funny-lookin' braces: foo(A, B, C) :- A = 1, B = 2, C = 3 . But this is not standard synt

## Do I Buy My Wife Flowers Tonight or Not

DevFeed: [Do I Buy My Wife Flowers Tonight or Not](<https://devfeed.tech/articles/do-i-buy-my-wife-flowers-tonight-or-not-28297.md>)

Original publisher: [Read original article](<http://fuzzyblog.io/blog/relationships/2019/11/19/do-i-buy-flowers-tonight-or-not.html>)

Author: Fuzzygroup

Published: 2019-11-19T00:00:00Z

Content type: tutorial

Language: en

Sources: [Scott Johnson](<https://devfeed.tech/sources/scott-johnson.md>)

Topics: [Tool](<https://devfeed.tech/topics/tool.md>), [Terminal](<https://devfeed.tech/topics/terminal.md>)

Tags: [birthday](<https://devfeed.tech/tags/birthday.md>), [calendar](<https://devfeed.tech/tags/calendar.md>), [code](<https://devfeed.tech/tags/code.md>), [developers](<https://devfeed.tech/tags/developers.md>), [flowers](<https://devfeed.tech/tags/flowers.md>), [old-school](<https://devfeed.tech/tags/old-school.md>), [prolog](<https://devfeed.tech/tags/prolog.md>), [random](<https://devfeed.tech/tags/random.md>), [relationships](<https://devfeed.tech/tags/relationships.md>), [routine](<https://devfeed.tech/tags/routine.md>), [script](<https://devfeed.tech/tags/script.md>), [shell](<https://devfeed.tech/tags/shell.md>), [software-developers](<https://devfeed.tech/tags/software-developers.md>), [terminal](<https://devfeed.tech/tags/terminal.md>), [unix](<https://devfeed.tech/tags/unix.md>)

### AI overview

The author describes using a quasi-random Ruby script in a shell startup file as a reminder to occasionally buy a partner a small gift. Each run samples from flowers, wine, chocolates, a card, and several nil entries; the author says the probability can be adjusted and the script runs from `~/.zshrc` or `~/.bashrc`. The excerpt also shows an intended birthday check, though its displayed condition and message appear inconsistent with the birthday reminder described. The author emphasizes that the prompt did not dictate behavior, but increased awareness; over time, the habit became internalized.

### Source excerpt

Like a lot of software developers, I can be pretty forgetful at times. If you're in the industry, you know how it goes: You start working on a project and it is February You look up and ... it is May and You don't remember all that much of your life between A good friend of mine refers to this as falling down a code hole (Thank you Mister Mott) and it really is a thing. Some people's code holes are a few days long. Other people's code holes can, in the case of a death march, last for months. A bunch of years ago, I came out of a code hole and realized that I couldn't remember when I had last bought my wife flowers (if your wife doesn't like flowers then substitute chocolates, wine, etc). Any husband worth his salt knows what I mean - that little treat that says to the person you love that you remember their existence and they matter. I regard that for my personal relationships, buying a woman flowers unexpectedly as akin to lubrication on a mechanical device; something that makes the underlying machine work better. Call if "relationship lubrication" if you will. After realizing this, I thought about how I could solve it - in a natural fashion. I didn't want to put it on a calendar; I didn't want it to be regular so I realized that I could tie it to: Something I did regularly Make it quasi random Since I've an old school Unix guy (originally SunOS back in '89 on a Sun 3 running Qunitus Prolog), what I did was tie this to my shell startup routine: For non computer folks, a "shell" is a program you use to interface directly with the machine A startup routine is a script which runs when the shell starts up As a heavy terminal user, I open a shell 10 or 20 times a day so, over time, I adjusted the probabilities to reflect that. What I did was write a "throw of the dice routine" that randomly tells me whether or not to buy flowers. This can be as complex as you want it to be. I made the example below a little complex and tied in a "on her birthday" routine just in case. Her

## Learning Prolog: A Beginner's Introduction to Logic and Relational Programming

DevFeed: [Learning Prolog: A Beginner's Introduction to Logic and Relational Programming](<https://devfeed.tech/articles/probably-the-language-of-god-39028.md>)

Original publisher: [Read original article](<https://vladimirj.dev/probably-the-language-of-god/>)

Author: Vladimir Jovanović

Published: 2017-10-24T09:44:00Z

Content type: tutorial

Language: en

Sources: [Vladimir Jovanović](<https://devfeed.tech/sources/vladimir-jovanovic.md>)

Topics: [Programming](<https://devfeed.tech/topics/programming.md>), [Programming language](<https://devfeed.tech/topics/programming-language.md>), [software-development](<https://devfeed.tech/topics/software-development.md>), [Mathematics](<https://devfeed.tech/topics/mathematics.md>), [Software](<https://devfeed.tech/topics/software.md>)

Tags: [computer-science](<https://devfeed.tech/tags/computer-science.md>), [language](<https://devfeed.tech/tags/language.md>), [math](<https://devfeed.tech/tags/math.md>), [programming](<https://devfeed.tech/tags/programming.md>), [programming-language](<https://devfeed.tech/tags/programming-language.md>), [prolog](<https://devfeed.tech/tags/prolog.md>), [software-development](<https://devfeed.tech/tags/software-development.md>)

### AI overview

A developer revisits Prolog after encountering it at university, explaining its facts, rules, relations, queries, and use in calculating factorial. The article concludes that Prolog is a niche but worthwhile way to explore a different approach to software development.

### Source excerpt

During my university days, while I was studying Mathematics and CS, software development was refreshment of applied science in a sea of theoretical math. But then at my 4th semester I got the Prolog.