Hacker News new | past | comments | ask | show | jobs | submit login
SAT/SMT by Example [pdf] (yurichev.com)
145 points by dennis714 on Feb 4, 2019 | hide | past | favorite | 10 comments



Excellent and timely - Coursera is currently running a very enjoyable and gentle introductory course on this subject.


Which course have you got in mind, [1] given by Hans Zantema?

[1] Automated Reasoning: satisfiability, https://www.coursera.org/learn/automated-reasoning-sat


Thanks. Later part of the course looks really good on first look.


I like that he has examples that show CNF formulations next to SMT formulations. SMT is really easy to write, but it seems like magic. CNF draws back the curtain a bit.


This is a kick ass book.

It’s worth learning the basic use of some constraint solver, since they are now so fast and powerful. Z3 is free software and is very, very good, and you’d be surprised how many problems it can tackle (see: hundreds of examples in this book) that might actually come up in your work or life. In particular, you can attack scheduling problems with Z3 and people will think you are a wizard.


Can you elaborate on that? I only saw a couple small scheduling examples in the book.


Those are small examples but you can scale them up and Z3 can still handle it.

I have no meaningful experience in OR, don’t know how SAT solvers work or how Z3 reduces things to SAT. Yet I was able to use it to attack a really gnarly scheduling problem with hundreds of variables, weird constraints, preferences, etc.

In addition to finding feasible solutions Z3 has an “Optimize” class that can handle soft constraints and objective functions. This is really useful. (I suspect CPLEX/Gurobi would be better at this but Z3 still works well.)


Well worth reading. This was one of the major sources that helped me learn SMT, and I now have some projects in the area (yet another superoptimizer).

Z3 has been very good as an 'external brain' for all sorts of problems.


I'm slightly annoyed that this only describes the implementation. It would be very helpful for those beginning to study this area to see the formulations of these problems in mathematical notation. (Yes, some of them are trivially identified. Others, however, not so much.) Seeing the translation from S{M|A}T into the implemented formulation (on, in my case, the reverse) was helpful in my understanding of how this whole sub-field works. Otherwise, though, this is a remarkable resource for understanding problems and how to translate them into S{M|A}T


You realize you're saving no characters writing S{M|A}T instead of SAT/SMT? :) It's like abbreviating world wide web to double-u, double-u, double-u.




Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: