Trying to port fCube:
fCube: an efficient prover for Intuitionistic propositional Logic
in Rextester - Joseph Vidal-Rosset, 2022
https://rextester.com/SEOO25214
The porting turns out as a little night mare.
I find in SWI-Prolog:
?- use_module(library(lists)).
true.
?- subtract([c,a,b],[a],X).
X = [c, b].
And in Ciao Prolog, using the new online playground:
?- use_module(library(lists)).
Note: module lists already in executable, just made visible
?- subtract([c,a,b],[a],X).
{ERROR: No handle found for thrown exception
error(existence_error(procedure,'user:subtract'/3),'user:subtract'/3)}
Whats the reason for this discrepancy? Should I use dialect import
in Ciao Prolog? Does Ciao Prolog have dialect import? Is a SWI-Prolog
dialect supported? Or whats the cure for this desease?
Edit 14.08.2022
Its a little annoying, since this here, the union/3, works for example:
?- use_module(library(lists)).
Note: module lists already in executable, just made visible
yes
?- union([1,3],[2,3],X).
X = [1,2,3] ?
yes