by hegzploit on 3/14/22, 8:30 PM with 8 comments
by YeGoblynQueenne on 3/15/22, 3:56 PM
prove(true).
prove((L,Ls)):-
prove(L)
,prove(Ls).
prove(L):-
clause(L,Body)
,prove(Body).
clause(H:-B,B).
clause((H:-),true).
This is just a straight-forward implementatio of SLDNF Resolution [1]. No
"primitives", no data types, no specialised data structures and no translation
from Prolog to something else before looping back to Prolog.Also, rather fewer LOCs. LISP people are always bragging about their LOCs. I don't know why.
__________
[1] "SLDNF" Resolution is Selective Linear Definite Resolution with Negation as Failure, officially; or, Straight-up Logical Derivations with No Fuckups Resolution, as I prefer to think of it.
by FullyFunctional on 3/14/22, 11:20 PM
(\f. (\x.f(xx)) (\x.f(xx)) (\em.m(\x.x)(\mn.em(en)) (\mv.e(mv)))
[1] https://crypto.stanford.edu/~blynn/lambda/by dang on 3/14/22, 9:55 PM
“Maxwell's equations of software” examined (2008) - https://news.ycombinator.com/item?id=23321955 - May 2020 (47 comments)