31 ms·
Unification + backtracking is really, really, really really cute. Makes you think very abstractly, so much that it made me feel that haskell was verbose (not tr
by agumonkey 10y ago
Unification + backtracking is really, really, really really cute. Makes you think very abstractly, so much that it made me feel that haskell was verbose (not trying to be hyperbolic here).
A nice book I've read recently is Ivan Bratko's https://ailab.si/ivan/novice.php https://ailab.si/ivan/novice.php
Try to grab a 2nd hand one or a library with it on shelves (probably stacking dust). The basics are covered, then graph search, state space, tricks like diff-list (pretty unforeseen use of prolog semantics tbh), a bit of nlp.
Very* cool
- catnaroek 10y agoAnd the scary thing is that one can do even better: https://billwadge.wordpress.com/2016/01/18/extensional-higher-order-prolog/ https://billwadge.wordpress.com/2016/01/18/extensional-highe... https://github.com/acharal/hopes https://github.com/acharal/hopes
- agumonkey 10y agoHa nice, I was looking for recent advances in this branch; most of things went the CPL way.
- nickpsecurity 10y agoNeat tools. Have you seen any attempts to model HOL in FOL for verification in FOL? There's a FOL down to assembly verified prover and stack. It's ACL2-like. I also found a paper doing HOL-to-FOL conversion with that tool modeled and proven in HOL. Doing HOL in FOL or HOL-to-FOL converter in FOL seems like a short-cut to verified, proof stack. If the shortcut is doable at all. The HOL-to-FOL gave me some excitement about this. It just wasn't done entirely in FOL itself.
- tomcam 10y agoI understood none of that FOLdeROL
- nickpsecurity 10y agoIt was for an audience that would. The rest would be unlikely to be helpful. Filtering trick. ;) Anyway, here's the work the result will build on whose description is useful to wider audience: https://www.cs.utexas.edu/users/jared/milawa/Web/ https://www.cs.utexas.edu/users/jared/milawa/Web/ https://cakeml.org/ https://cakeml.org/
- tomcam 10y agoHey, pretty neat--thanks
- catnaroek 10y agoHaven't seen it, but I'll check it out. Thanks for the pointer.
- nickpsecurity 10y agoForgot to add the link so you can see what such a process might look like. Here's slides and a paper on one that merged HOL and ACL2. But it verified that in HOL4, not ACL2. https://www.cs.utexas.edu/~hunt/FMCAD/FMCAD06/presentations/FMCAD-2006-Wednesday/Session2-Hunt.pdf https://www.cs.utexas.edu/~hunt/FMCAD/FMCAD06/presentations/... http://www.ccs.neu.edu/home/pete/acl206/papers/gordon.pdf http://www.ccs.neu.edu/home/pete/acl206/papers/gordon.pdf
- deleted 10y ago[deleted]
- nickpsecurity 10y agoCheck out Mercury programming language if you haven't. It's like a better, faster Prolog. Been around quite a while. https://mercurylang.org/ https://mercurylang.org/
- andy_ppp 10y agoAh the Ivan Bratko book was the textbook at Uni... gosh 13 years ago. I loved doing Prolog and once the penny drops it makes you feel very clever thinking about things differently. I'm not certain it's useful in the real world, but I did write a solitaire solver in it that could work with any number of decks and consequent stacks.
- agumonkey 10y agoI find it extremely refreshing to wander around a new paradigm. After some webdev and even FP fatigue, logic variables really opened some perspectives on things. Actually, it felt like an extension of FP; imperative are memory -> memory, FP would be thought as one path of expression -> env -> expression through an evaluation graph walk; prolog is breadth search of the whole graph. It blends programs with space in an interesting way, it did alter my mind a fair amount.