<?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>resolution on Wonderings of a SAT geek</title>
    <link>https://www.msoos.org/tags/resolution/</link>
    <description>Recent content in resolution on Wonderings of a SAT geek</description>
    <generator>Hugo</generator>
    <language>en-US</language>
    <lastBuildDate>Wed, 16 Apr 2014 15:39:47 +0000</lastBuildDate>
    <atom:link href="https://www.msoos.org/tags/resolution/feed.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Why it&#39;s hard to eliminate variables</title>
      <link>https://www.msoos.org/2014/04/why-its-hard-to-eliminate-variables/</link>
      <pubDate>Wed, 16 Apr 2014 15:39:47 +0000</pubDate>
       <guid isPermaLink="false">http://www.msoos.org/?p=2434</guid> 
      <description>&lt;p&gt;Let&amp;rsquo;s examine why it&amp;rsquo;s hard to eliminate variables. I remember the code I looked at in &lt;a href=&#34;http://minisat.se/SatELite.html&#34;&gt;SatElite&lt;/a&gt; that did it: it was crazy clean code and looked like it was pretty easy to perform. In this post I&amp;rsquo;ll examine how that simple code became more than a 1&#39;000 lines of code today.&lt;/p&gt;
&lt;h3 id=&#34;what-needs-to-be-done-at-first-sight&#34;&gt;What needs to be done, at first sight&lt;/h3&gt;
&lt;p&gt;At first sight, variable elimination is easy. We just:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Build occurrence lists&lt;/li&gt;
&lt;li&gt;Pick a variable to eliminate&lt;/li&gt;
&lt;li&gt;Resolve every clause having the positive literal of the variable with negative ones.&lt;/li&gt;
&lt;li&gt;Add newly resolved clauses into the system&lt;/li&gt;
&lt;li&gt;Remove original clauses.&lt;/li&gt;
&lt;li&gt;Goto 2.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;These are all pretty simple steps at first sight, and one can imagine that implementing them is maybe 50-100 lines of code, no more. So, let&amp;rsquo;s examine them one-by-one to see how they get complicated.&lt;/p&gt;</description>
    </item>
    <item>
      <title>A note on learnt clauses</title>
      <link>https://www.msoos.org/2013/12/a-note-on-learnt-clauses/</link>
      <pubDate>Fri, 06 Dec 2013 17:29:24 +0000</pubDate>
       <guid isPermaLink="false">http://www.msoos.org/?p=2172</guid> 
      <description>&lt;p&gt;Learnt clauses are clauses derived while searching for a solution with a &lt;a href=&#34;https://en.wikipedia.org/wiki/Boolean_satisfiability_problem&#34;&gt;SAT solver&lt;/a&gt; in a &lt;a href=&#34;https://en.wikipedia.org/wiki/Conjunctive_normal_form&#34;&gt;CNF&lt;/a&gt;. They are at the heart of every modern so-called &amp;ldquo;CDCL&amp;rdquo; or &amp;ldquo;&lt;a href=&#34;https://en.wikipedia.org/wiki/Conflict_Driven_Clause_Learning&#34;&gt;Conflict-Driven Clause-Learning&lt;/a&gt;&amp;rdquo; SAT solver. SAT solver writers make a very important difference between learnt and original clauses. In this blog post I&amp;rsquo;ll talk a little bit about this distinction, why it is important to make it, and why we might want to relax that distinction in the future.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Failed literal probing and UIP</title>
      <link>https://www.msoos.org/2011/08/failed-literal-probing-and-uip/</link>
      <pubDate>Thu, 04 Aug 2011 09:50:02 +0000</pubDate>
       <guid isPermaLink="false">http://www.msoos.org/?p=957</guid> 
      <description>&lt;p&gt;I have just realised that &lt;a href=&#34;https://www.msoos.org/cryptominisat2&#34;&gt;CryptoMiniSat&lt;/a&gt;, having won a number of medals, does one of the most basic things, &lt;a href=&#34;http://citeseerx.ist.psu.edu/viewdoc/download;jsessionid=CF33EFCD2F8DC2595B3CB93AB4B02833?doi=10.1.1.1.1941&amp;amp;rep=rep1&amp;amp;type=pdf&#34;&gt;failed literal probing&lt;/a&gt;, &lt;em&gt;all wrong&lt;/em&gt;. Let me tell you why it&amp;rsquo;s all wrong. In essence, failed literal probing is trivial. We enqueue a fact, such as &lt;code&gt;a&lt;/code&gt;, and then propagate it. If this fails, i.e. if two opposing facts such as &lt;code&gt;g&lt;/code&gt; and &lt;code&gt;-g&lt;/code&gt; are derived, we know that &lt;code&gt;a&lt;/code&gt; cannot be true, so we set &lt;code&gt;-a&lt;/code&gt;. Easy. Or maybe not so easy.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Fun facts about SAT solving (part 1)</title>
      <link>https://www.msoos.org/2011/07/fun-facts-about-sat-solving-part-1/</link>
      <pubDate>Fri, 01 Jul 2011 14:33:49 +0000</pubDate>
       <guid isPermaLink="false">http://www.msoos.org/?p=875</guid> 
      <description>&lt;p&gt;Last time I gave a &lt;a href=&#34;https://www.msoos.org/wordpress/wp-content/uploads/2011/06/soos_summerschool.pdf&#34;&gt;talk&lt;/a&gt;, I got some quite deserved fire about the way I approach SAT solving: in a more practical than scientific way. So, to give some food for thought for those who wish to approach SAT from a more scientific viewpoint, and to demonstrate to what lengths I have gone to give (at least to myself) a scientific viewpoint, let me talk a little bit about a fun fact that I have found. The fun fact, as is quite usual for SAT, seems entirely trivial, even banal, but has somehow (so far) eluded proper explanation for me. Maybe you will be the one to give the right explanation :)&lt;/p&gt;</description>
    </item>
    <item>
      <title>Understanding Implication Graphs</title>
      <link>https://www.msoos.org/2011/05/understanding-implication-graphs/</link>
      <pubDate>Fri, 27 May 2011 22:18:17 +0000</pubDate>
       <guid isPermaLink="false">http://www.msoos.org/?p=738</guid> 
      <description>&lt;p&gt;Having won the &lt;a href=&#34;http://baldur.iti.uka.de/sat-race-2010/results.html&#34;&gt;SAT Race&lt;/a&gt; with CryptoMiniSat, I think I can now confess that I still don&amp;rsquo;t understand conflict generation. So today, I sat down and I tried to understand it. The result is some fun code, a lot of reading, and great pictures. Let me share with you these auto-generated graphs &amp;ndash; the generator will be released with CMSat 3.0.0, so you will be able to generate them, too. These graphs show something called an &amp;lsquo;implication graph&amp;rsquo;, which is nothing more than a graphical way to show how propagations were made by the reasoning engine. For instance, if variable x1 and x2 are both FALSE, then clause &amp;lsquo;x1 V x2 V x3&amp;rsquo; will force x3 to be TRUE to satisfy the clause. Okay, so much for talk, let&amp;rsquo;s see the graphs!&lt;/p&gt;</description>
    </item>
    <item>
      <title>The variable speed of SAT solving</title>
      <link>https://www.msoos.org/2011/01/the-variable-speed-of-sat-solving/</link>
      <pubDate>Sun, 02 Jan 2011 22:37:46 +0000</pubDate>
       <guid isPermaLink="false">http://www.msoos.org/?p=588</guid> 
      <description>&lt;figure&gt;
    &lt;img loading=&#34;lazy&#34; src=&#34;https://www.msoos.org/wordpress/wp-content/uploads/2011/01/Attacking-Bivium-Using-SAT-Solvers.png&#34;
         alt=&#34;Timings from the article &amp;ldquo;Attacking Bivium Using SAT Solvers&amp;rdquo;. The authors didn&amp;rsquo;t seem to have randomised the problems enough: the time to solve should increase exponentially, but instead it goes up and down like a roller coaster&#34;/&gt; &lt;figcaption&gt;
            &lt;p&gt;Timings from the article &amp;ldquo;Attacking Bivium Using SAT Solvers&amp;rdquo;. The authors didn&amp;rsquo;t seem to have randomised the problems enough: the time to solve should increase exponentially, but instead it goes up and down like a roller coaster&lt;/p&gt;
        &lt;/figcaption&gt;
&lt;/figure&gt;</description>
    </item>
    <item>
      <title>Extended resolution is working!</title>
      <link>https://www.msoos.org/2010/12/extended-resolution-is-working/</link>
      <pubDate>Tue, 28 Dec 2010 22:13:08 +0000</pubDate>
       <guid isPermaLink="false">http://www.msoos.org/?p=577</guid> 
      <description>&lt;p&gt;The subtitle of this post should really say: &lt;em&gt;and I was wrong, again&lt;/em&gt;. First, let me explain what I have been wrong about &amp;ndash; wrong assumptions are always the most instructive.&lt;/p&gt;
&lt;p&gt;I have been convinced for the past year that it&amp;rsquo;s best to have two type of restart and corresponding learnt clause usefulness strategies: the glue-based restart&amp;amp;garbage collection of &lt;a href=&#34;http://www.lri.fr/~simon/glucose/downloads/glucose-compet-report.pdf&#34;&gt;Glucose&lt;/a&gt; and a variation of the geometric restart and activity-based garbage collection of &lt;a href=&#34;http://minisat.se&#34;&gt;MiniSat&lt;/a&gt;. The glue-based variation was observed to be very good for industrial instances with many variables, many of which can be fixed easily, and the MiniSat-type variation was observed to be good for cryptography-type instances with typically low number of variables, almost none of which can be fixed. However, I had the chance to talk to &lt;a href=&#34;http://fmv.jku.at/biere/&#34;&gt;Armin Biere&lt;/a&gt; a couple of weeks ago, and while talking with him, I have realised that maybe one of Lingeling&amp;rsquo;s advantages was its very interesting single restart strategy, based on agility (&lt;a href=&#34;http://fmv.jku.at/biere/talks/Biere-SAT08-talk.pdf&#34;&gt;presentation&lt;/a&gt;, &lt;a href=&#34;http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.161.8085&amp;amp;rep=rep1&amp;amp;type=pdf&#34;&gt;PDF&lt;/a&gt;) which seemed to let it use glue-based garbage collection all the time, succeeding to solve both types of instances. So, inspired by the &lt;a href=&#34;http://events.ccc.de/congress/2010/wiki/Welcome&#34;&gt;CCC&lt;/a&gt; crowd, in only 10 minutes I have implemented a simple version of this restart strategy into CryptoMiniSat, and voilá, it seems to work on both type of instances, using only glues!&lt;/p&gt;</description>
    </item>
    <item>
      <title>CCC madness</title>
      <link>https://www.msoos.org/2010/12/ccc-madness/</link>
      <pubDate>Sun, 26 Dec 2010 23:04:47 +0000</pubDate>
       <guid isPermaLink="false">http://www.msoos.org/?p=557</guid> 
      <description>&lt;p&gt;&lt;a href=&#34;https://www.msoos.org/wordpress/wp-content/uploads/2010/12/27c3.jpg&#34;&gt;&lt;img loading=&#34;lazy&#34; src=&#34;https://www.msoos.org/wordpress/wp-content/uploads/2010/12/27c3.jpg&#34;&gt;&lt;/a&gt; The Chaos Computer Club (CCC) is having its yearly &lt;a href=&#34;http://events.ccc.de/category/27c3/&#34;&gt;conference&lt;/a&gt; starting today. It&amp;rsquo;s a madhouse here, which is great for ideas, so I have been having this rush of ideas implemented. First off, it seems that complex problems with few variables are way too difficult to solve even with distributed solving. I have been trying to solve some difficult problems, but no matter how much computer power I throw at them (and I have been throwing &amp;gt;2 years&amp;rsquo; worth, with &amp;gt;300 CPU cores running), not much progress is being made. I have lately been attributing this &amp;ldquo;failure&amp;rdquo; to one prime problem: lack of expressiveness.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Transitive OTF self-subsuming resolution</title>
      <link>https://www.msoos.org/2010/09/transitive-otf-self-subsuming-resolution/</link>
      <pubDate>Tue, 28 Sep 2010 16:26:51 +0000</pubDate>
       <guid isPermaLink="false">http://www.msoos.org/?p=451</guid> 
      <description>&lt;p&gt;The title may be a bit long, but its essence is very simple: we try to shorten learnt clauses. The basic idea was described in &lt;a href=&#34;https://www.msoos.org/on-the-fly-self-subsuming-resolution&#34;&gt;this&lt;/a&gt; post: there is a clause we just derived, e.g.&lt;/p&gt;
&lt;p&gt;&lt;code&gt;d V -e V f V g&lt;/code&gt; (1)&lt;/p&gt;
&lt;p&gt;where &lt;code&gt;d,e,f,g&lt;/code&gt; are binary variables, &lt;code&gt;-&lt;/code&gt; is binary negation, and &lt;code&gt;V&lt;/code&gt; is the binary OR operator. We can remove a literal from this using &lt;a href=&#34;https://www.msoos.org/self-subsuming-resolution&#34;&gt;self-subsuming resolution&lt;/a&gt; with e.g. the 2-long clause:&lt;/p&gt;</description>
    </item>
    <item>
      <title>Self-subsuming resolution</title>
      <link>https://www.msoos.org/2010/08/self-subsuming-resolution/</link>
      <pubDate>Wed, 04 Aug 2010 20:26:00 +0000</pubDate>
       <guid isPermaLink="false">http://www.msoos.org/wordpress/?p=5</guid> 
      <description>&lt;p&gt;&lt;a href=&#34;http://minisat.se/downloads/SatELite_slides.pdf&#34;&gt;Self-subsuming resolution&lt;/a&gt; in SAT uses the &lt;a href=&#34;http://en.wikipedia.org/wiki/Resolution_%28logic%29&#34;&gt;resolution operator&lt;/a&gt; to carry out its magic. Resolution can be used on two clauses if they share a variable, but the sign of the variable is inverted, e.g.&lt;br&gt;
&lt;code&gt;v1 V v2&lt;/code&gt;&lt;br&gt;
&lt;code&gt;-v1 V v3 V v4&lt;/code&gt;&lt;br&gt;
(where &lt;code&gt;v1..v4&lt;/code&gt; are binary variables and &amp;quot; &lt;code&gt;V&lt;/code&gt;&amp;quot; means binary OR) can be resolved on &lt;code&gt;v1&lt;/code&gt;, producing the clause:&lt;br&gt;
&lt;code&gt;v2 V v3 V v4&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;In SAT this is used to simplify problems as follows. Let&amp;rsquo;s assume we have many clauses, among which there are these three:&lt;br&gt;
&lt;code&gt;a V c           (1)&lt;/code&gt;&lt;br&gt;
&lt;code&gt;a V -c V d V f  (2)&lt;/code&gt;&lt;br&gt;
&lt;code&gt;a V -c V g      (3)&lt;/code&gt;&lt;br&gt;
In this case, if we use the resolution operator on (1) and (2), we get:&lt;br&gt;
&lt;code&gt;a V d V f       (4)&lt;/code&gt;&lt;br&gt;
The interesting thing about (4) is that it is a strict subset of (2). In other words, we could simply replace (2) with (4), thus shortening clause (2). If we use the resolution operator on (1) and (3) we get:&lt;br&gt;
&lt;code&gt;a V g           (5)&lt;/code&gt;&lt;br&gt;
whose literals form a strict subset of those of (3), so we can replace (3) with (5), again shortening a clause. We shortened 2 clauses, each with one literal. For completeness, this technique can be applied in a recursive manner on all possible clause-pairs.&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
