<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>Uncategorized on Wonderings of a SAT geek</title>
    <link>https://www.msoos.org/categories/uncategorized/</link>
    <description>Recent content in Uncategorized on Wonderings of a SAT geek</description>
    <generator>Hugo</generator>
    <language>en-US</language>
    <lastBuildDate>Sun, 09 Feb 2025 14:33:24 +0000</lastBuildDate>
    <atom:link href="https://www.msoos.org/categories/uncategorized/feed.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Computing Tricky Probabilities</title>
      <link>https://www.msoos.org/2025/02/computing-tricky-probabilities/</link>
      <pubDate>Sun, 09 Feb 2025 14:33:24 +0000</pubDate>
       <guid isPermaLink="false">http://www.msoos.org/?p=3563</guid> 
      <description>&lt;p&gt;Probabilities of certain events are really hard to estimate sometimes. Often, it&amp;rsquo;s because we lack information of the underlying causal chains, but sometimes, it&amp;rsquo;s because the causes are so intertwined that even if we know the underlying probabilities of certain events happening along with the causal chains, it&amp;rsquo;s still impossible for us to untangle the web.&lt;/p&gt;
&lt;p&gt;Let&amp;rsquo;s say there&amp;rsquo;s an event X has a probability of 0.4, Y has a probability of 0.6, and Z happens if either X or Y happens, but X and Y can&amp;rsquo;t happen at the same time, with a probability of 0.8. What&amp;rsquo;s the probability of Z happening?&lt;/p&gt;</description>
    </item>
    <item>
      <title>Arjun, our New CNF Model Counting Preprocessor</title>
      <link>https://www.msoos.org/2022/08/arjun-our-new-cnf-model-counting-preprocessor/</link>
      <pubDate>Wed, 24 Aug 2022 19:34:27 +0000</pubDate>
       <guid isPermaLink="false">http://www.msoos.org/?p=3450</guid> 
      <description>&lt;p&gt;After many years of work, I am very happy to present our new CNF model counting preprocessor, &lt;a href=&#34;https://github.com/meelgroup/arjun&#34;&gt;Arjun&lt;/a&gt; [ &lt;a href=&#34;https://www.msoos.org/wordpress/wp-content/uploads/2022/08/arjun.pdf&#34;&gt;PDF&lt;/a&gt;][ &lt;a href=&#34;https://www.msoos.org/largefiles/arjun-43b17ef58-9bf1d82a7-64blinux-static.gz&#34;&gt;static binary&lt;/a&gt;]. It improves upon our approximate model counter ApproxMC [ &lt;a href=&#34;https://www.msoos.org/largefiles/approxmc-9fb4fdd-9bf1d82a7-43b17ef58-64blinux-static.gz&#34;&gt;static binary&lt;/a&gt;], and can be used as a stand-alone binary to preprocess CNFs for (projected) model counting . Usage is simple:&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-fallback&#34; data-lang=&#34;fallback&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;./arjun blasted_case110.cnf
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;c Arjun Version: 43b17ef5899c461b8e947b0f3ca286efcf71464c
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;c CMS SHA revision 9bf1d82a7b9fa5492cf4f0437cf7110b77ad7230
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;[..]
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;c [arjun] original sampling set size: 284
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;c [arjun] final set size:   15 percent of original: 5.2817 %
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Here, Arjun took a CNF that had a projection set of 284 variables, and reduced it to an independent support of only 15 variables. Arjun is now part of ApproxMC by default. Let&amp;rsquo;s solve a problem with ApproxMC without Arjun:&lt;/p&gt;</description>
    </item>
    <item>
      <title>Proof Traces for SAT solvers</title>
      <link>https://www.msoos.org/2022/04/proof-traces-for-sat-solvers/</link>
      <pubDate>Tue, 12 Apr 2022 20:56:11 +0000</pubDate>
       <guid isPermaLink="false">http://www.msoos.org/?p=3391</guid> 
      <description>&lt;p&gt;If you have a look at a modern SAT solver, say &lt;a href=&#34;https://github.com/arminbiere/kissat&#34;&gt;kissat&lt;/a&gt; or &lt;a href=&#34;https://github.com/msoos/cryptominisat&#34;&gt;CryptoMiniSat&lt;/a&gt;, you&amp;rsquo;ll see that they have well over 20k lines of code. Reviewing that for bugs is basically impossible. So how can you trust that the solver is giving a correct result? Well, if the result is that the input formula is satisfiable, it&amp;rsquo;s quite easy &amp;ndash; we can simply substitute the solution (all modern SAT solvers provide a satisfying assignment) to the formula, and it should satisfy each constraint. This is really fast to do, linear in the size of the formula.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Weighted to Unweighted Counting and Sampling</title>
      <link>https://www.msoos.org/2019/12/weighted-to-unweighted-counting-and-sampling/</link>
      <pubDate>Mon, 23 Dec 2019 19:15:20 +0000</pubDate>
       <guid isPermaLink="false">http://www.msoos.org/?p=3343</guid> 
      <description>&lt;p&gt;This blog post is to promote the tool &lt;a href=&#34;https://github.com/meelgroup/weighted-to-unweighted&#34;&gt;here&lt;/a&gt; (paper &lt;a href=&#34;https://www.comp.nus.edu.sg/~meel/Papers/ijcai15.pdf&#34;&gt;here&lt;/a&gt;) that converts weighted counting and sampling to their unweighted counterparts. It turns out that weighted counting and sampling is a thing. It&amp;rsquo;s basically a &lt;a href=&#34;https://en.wikipedia.org/wiki/Conjunctive_normal_form&#34;&gt;conjunctive normal form formula&lt;/a&gt;, a CNF, with weights attached to each variable. One must count the number of solutions to the CNF, where the weight of each solution is not necessarily 1, but weighted according to the polarity of each variable in the solution. One such formula could look like:&lt;/p&gt;</description>
    </item>
    <item>
      <title>CrystalBall: SAT solving, Data Gathering, and Machine Learning</title>
      <link>https://www.msoos.org/2019/06/crystalball-sat-solving-data-gathering-and-machine-learning/</link>
      <pubDate>Fri, 14 Jun 2019 18:34:17 +0000</pubDate>
       <guid isPermaLink="false">http://www.msoos.org/?p=3281</guid> 
      <description>&lt;p&gt;This is going to be a long post, collecting many years of work, some of which was done by my colleagues &lt;a href=&#34;https://www.comp.nus.edu.sg/~meel/&#34;&gt;Kuldeep Meel&lt;/a&gt; and &lt;a href=&#34;https://dblp.uni-trier.de/pers/hd/k/Kulkarni:Raghav&#34;&gt;Raghav Kulkarni&lt;/a&gt;. They have both significantly contributed to this work and I owe a lot to both. The research paper is available &lt;a href=&#34;https://www.msoos.org/wordpress/wp-content/uploads/2019/06/sat19-skm.pdf&#34;&gt;here&lt;/a&gt; (accepted to &lt;a href=&#34;https://10times.com/sat-lisbon&#34;&gt;SAT&#39;2019&lt;/a&gt;) and the code is available &lt;a href=&#34;https://github.com/msoos/cryptominisat/tree/crystalball&#34;&gt;here&lt;/a&gt;. Build instructions are at the bottom of the post. Part 2 will deal with exploring the data in more detail.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Why Most Published Research Findings Are False</title>
      <link>https://www.msoos.org/2017/01/why-most-published-research-false/</link>
      <pubDate>Fri, 27 Jan 2017 00:10:02 +0000</pubDate>
       <guid isPermaLink="false">http://www.msoos.org/?p=3011</guid> 
      <description>&lt;p&gt;I read this paper about &lt;a href=&#34;http://journals.plos.org/plosmedicine/article/file?id=10.1371/journal.pmed.0020124&amp;amp;type=printable&#34;&gt;most research findings being false&lt;/a&gt;. Given that most research papers in SAT take a sample size that is incredibly small (especially considering that it&amp;rsquo;s cheap to have large sample sizes relative to, e.g. medical trials), and the samples are very often hand-picked, it&amp;rsquo;s easy to see why this could be the case. But that article lists a number of other factors, too, and they are interesting to consider as well. Only few true innovations stick around in SAT (&lt;a href=&#34;http://www.ijcai.org/Proceedings/09/Papers/074.pdf&#34;&gt;glues&lt;/a&gt;, &lt;a href=&#34;http://www.princeton.edu/~chaff/publication/DAC2001v56.pdf&#34;&gt;VSIDS, UIP, restarts&lt;/a&gt;, etc). Most are forgotten because, frankly, they didn&amp;rsquo;t show the promise they purported to have. It&amp;rsquo;d be interesting to force authors to e.g. run their systems on much larger sample sizes (e.g. 2-3000 instances from SAT competitions) with much longer timeouts (e.g. 5000s). Then those implementing SAT solvers wouldn&amp;rsquo;t have to wade through piles of articles to get to something worth implementing. One is allowed to dream.&lt;/p&gt;</description>
    </item>
    <item>
      <title>CryptoMiniSat 5.0.1 released -- with MIT license</title>
      <link>https://www.msoos.org/2016/09/cryptominisat-5-0-1-released-with-mit-license/</link>
      <pubDate>Sat, 10 Sep 2016 14:17:29 +0000</pubDate>
       <guid isPermaLink="false">http://www.msoos.org/?p=3008</guid> 
      <description>&lt;p&gt;A new version of CryptoMiniSat, 5.0.1 has been &lt;a href=&#34;https://github.com/msoos/cryptominisat/releases/tag/5.0.1&#34;&gt;released&lt;/a&gt;. It is essentially only a release to mark the move to a much more permissive, MIT license. I am changing the license so that everyone can use the system as they wish, however they wish. I want to give back to the community I have been part of for so long, and so I am making this change. Thank you all for using the solver, it makes me happy that I have been able to help some with my hobby work.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Benchmark randomisation for SAT Comp&#39;16</title>
      <link>https://www.msoos.org/2016/03/benchmark-randomisation-sat-competition2016/</link>
      <pubDate>Mon, 07 Mar 2016 22:00:27 +0000</pubDate>
       <guid isPermaLink="false">http://www.msoos.org/?p=2918</guid> 
      <description>Things are heating up for the &lt;a href=&#34;http://baldur.iti.kit.edu/sat-competition-2016/index.php&#34;&gt;SAT competition 2016&lt;/a&gt;. I will of course compete. However, I would publicly like to ask the organisers to please for the love of whatever you believe in, &lt;em&gt;please&lt;/em&gt; &lt;a href=&#34;http://www.msoos.org/2013/03/on-benchmark-randomization/&#34;&gt;randomise the benchmarks&lt;/a&gt;. Just a tiny, little bit. It&amp;rsquo;s ridiculous that people are tuning their solvers so they can solve some randomly solveable instance like the vmpc* series. It&amp;rsquo;s laughable and it&amp;rsquo;s making the whole community look bad. Really, it&amp;rsquo;s time to stop this madness. I wrote that article with a bunch of ideas in 2013. It&amp;rsquo;s time. Not even the largest of organisations move this slowly, and this is a research group of about 50 people max.</description>
    </item>
    <item>
      <title>STP and CryptoMiniSat in the competitions of 2015</title>
      <link>https://www.msoos.org/2015/09/sat-race15-the-smt-comp15-cryptominisat-stp/</link>
      <pubDate>Sat, 26 Sep 2015 15:11:31 +0000</pubDate>
       <guid isPermaLink="false">http://www.msoos.org/?p=2805</guid> 
      <description>&lt;p&gt;Both the &lt;a href=&#34;http://baldur.iti.kit.edu/sat-race-2015/sr15.pdf&#34;&gt;SAT Race&lt;/a&gt; and the &lt;a href=&#34;http://smtcomp.sourceforge.net/2015/&#34;&gt;SMT competition&lt;/a&gt; of 2015 are now over. The results are in and it&amp;rsquo;s time to draw some conclusions. &lt;a href=&#34;https://github.com/msoos/cryptominisat/releases&#34;&gt;CryptoMiniSat&lt;/a&gt; won the SAT Race&amp;rsquo;s incremental solving track, and the SMT solver that uses (among other solvers) CryptoMiniSat, &lt;a href=&#34;http://cvc4.cs.nyu.edu/web/&#34;&gt;CVC4&lt;/a&gt;, won the SMT competiton. These two wins are not unrelated &amp;ndash; CryptoMiniSat is used in an incremental way by the CVC4 team. What CryptoMiniSat and &lt;a href=&#34;https://github.com/stp/stp/releases&#34;&gt;STP&lt;/a&gt; (the other project I work on) hasn&amp;rsquo;t done is win their respective main competitions. Let me reflect on these quickly.&lt;/p&gt;
&lt;h3 id=&#34;the-smt-competition&#34;&gt;The SMT competition&lt;/h3&gt;
&lt;p&gt;The SMT competition&amp;rsquo;s quantifier free boolean vector &lt;a href=&#34;http://smtcomp.sourceforge.net/2015/results-QF_BV.shtml?v=1443277739&#34;&gt;track&lt;/a&gt; (QF_BV) was won by &lt;a href=&#34;http://smtcomp.sourceforge.net/2015/results-QF_BV.shtml?v=1443277739&#34;&gt;Boolector&lt;/a&gt;.  Boolector is an amazing piece of engineering and so is the SAT solver it uses, &lt;a href=&#34;http://fmv.jku.at/lingeling/&#34;&gt;lingeling&lt;/a&gt;. Second was CVC using CryptoMiniSat and third was STP. The reason for STP being third was because I managed to add a bug into STP and never fuzzed it. So now &lt;a href=&#34;https://github.com/stp/stp/blob/master/scripts/fuzz_test.py&#34;&gt;fuzzing&lt;/a&gt; is part of the continuous integration suite. Without this bug, STP would have come pretty close to Boolector, of which I&amp;rsquo;m proud of.&lt;/p&gt;
&lt;p&gt;In general, STP needs to be greatly overhauled. It&amp;rsquo;s a legacy codebase with global variables, weird dependencies and long list of weirdnesses. It&amp;rsquo;s also performing amazingly well, so one needs to be careful how to approach it. I have been trying to cut it up and slice it any way I can so it makes more sense to read the code and work on it, but it&amp;rsquo;s still quite hard.&lt;/p&gt;
&lt;h3 id=&#34;the-sat-competition&#34;&gt;The SAT competition&lt;/h3&gt;
&lt;p&gt;The SAT competition had its share of surprises. One such surprise was that lingeling didn&amp;rsquo;t win any main prizes. I wonder why it wasn&amp;rsquo;t submitted to the incremental track, for example. Another surprise was the 1st and 2nd places of two solvers by the same author, &lt;a href=&#34;http://dblp.uni-trier.de/pers/hd/c/Chen:Jingchao&#34;&gt;Jingchao Chen&lt;/a&gt;, who unfortunately I have never met or conversed with. I was also a bit disappointed that CryptoMiniSat didn&amp;rsquo;t make it too high on the list. There have been a number of issues I tried to fix, but apparently  that wasn&amp;rsquo;t enough. I will be interested in the sources of the winning solvers, see if I can learn something from them.&lt;/p&gt;
&lt;p&gt;It&amp;rsquo;s really hard to create winning SAT solvers that behave well in all circumstances because it takes massive amount of time to code them up and properly test them. Especially the latter is really complicated and writing good test harnesses takes concentrated effort. My test scripts are easily over a thousand lines of code, mostly python. The continuous integration and build systems (both necessary for timely releases) are another thousand, and my AWS scripts for performance testing is almost a thousand as well. That&amp;rsquo;s more code than some early, well-performing SAT solvers had.&lt;/p&gt;
</description>
    </item>
    <item>
      <title>My Dell Vostro 3560 review</title>
      <link>https://www.msoos.org/2012/08/my-dell-vostro-3560-review/</link>
      <pubDate>Sun, 26 Aug 2012 14:11:21 +0000</pubDate>
       <guid isPermaLink="false">http://www.msoos.org/?p=1331</guid> 
      <description>&lt;p&gt;In this post I would like to share with you a personal review of my new business line laptop from Dell, the Vostro 3560. It&amp;rsquo;s a 15.6&amp;quot; laptop that has Full HD screen using &lt;a href=&#34;http://en.wikipedia.org/wiki/TFT_LCD#Twisted_nematic_.28TN.29&#34;&gt;TN display&lt;/a&gt; technology, a 750GB HDD spinning at 7500rpm, 6GB of DDR3 RAM clocked at 1600MHz, with the highest possible Core i7 processor available for this machine, the &lt;a href=&#34;http://ark.intel.com/products/64901&#34;&gt;i7-3612QM&lt;/a&gt;, that goes to 3.1GHz with all cores still active.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Visualizing SAT solving</title>
      <link>https://www.msoos.org/2012/06/visualizing-sat-solving/</link>
      <pubDate>Sat, 16 Jun 2012 13:02:55 +0000</pubDate>
       <guid isPermaLink="false">http://www.msoos.org/?p=1228</guid> 
      <description>&lt;figure&gt;&lt;a href=&#34;https://www.msoos.org/sat_visualization/&#34;&gt;
    &lt;img loading=&#34;lazy&#34; src=&#34;https://www.msoos.org/wordpress/wp-content/uploads/2012/06/sat_visualization_snapshot_small.png&#34;
         alt=&#34;Visualizing the solving of mizh-md5-47-3.cnf&#34;/&gt; &lt;/a&gt;&lt;figcaption&gt;
            &lt;p&gt;Visualizing the solving of mizh-md5-47-3.cnf&lt;/p&gt;
        &lt;/figcaption&gt;
&lt;/figure&gt;

&lt;p&gt;Visualizing what happens during SAT solving has been a long-term goal of mine, and finally, I have managed to pull together something that I feel confident about. The system is fully explained in the &lt;a href=&#34;https://www.msoos.org/sat_visualization/&#34;&gt;liked&lt;/a&gt; &lt;a href=&#34;https://www.msoos.org/sat_visualization/&#34;&gt;i&lt;/a&gt; mage on the right, including how to read the graphs and why I made them. Here, I would like to talk about the challenges I had to overcome to create the system.&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
