<?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>simplification on Wonderings of a SAT geek</title>
    <link>https://www.msoos.org/tags/simplification/</link>
    <description>Recent content in simplification 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/simplification/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>On benchmark randomization</title>
      <link>https://www.msoos.org/2013/03/on-benchmark-randomization/</link>
      <pubDate>Sun, 10 Mar 2013 14:10:11 +0000</pubDate>
       <guid isPermaLink="false">http://www.msoos.org/?p=1497</guid> 
      <description>&lt;p&gt;As many of you have heard, the SAT Competition for this year has been &lt;a href=&#34;http://satcompetition.org/2013/&#34;&gt;announced&lt;/a&gt;. You can send in your benchmarks between the 12th and the 22nd of April, so get started. I have a &lt;a href=&#34;https://gforge.inria.fr/frs/?group_id=1476&amp;amp;release_id=5351&#34;&gt;bunch of benchmarks&lt;/a&gt; I have already submitted about 2 years ago, still waiting for any reply from those organizers &amp;ndash; but the organizers are different this year, so fingers crossed.&lt;/p&gt;
&lt;p&gt;What I want to talk about today is benchmark randomization. This is a very-very touchy topic. However, I fear that it&amp;rsquo;s touchy for the wrong reasons, and so I think it&amp;rsquo;s important to talk about it in detail.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Note to self: higher level autarkies</title>
      <link>https://www.msoos.org/2011/07/note-to-self-higher-level-autarkies/</link>
      <pubDate>Sat, 16 Jul 2011 11:22:46 +0000</pubDate>
       <guid isPermaLink="false">http://www.msoos.org/?p=937</guid> 
      <description>&lt;p&gt;While reading &lt;a href=&#34;http://www.st.ewi.tudelft.nl/sat/theses/heule_phd.pdf&#34;&gt;this&lt;/a&gt; thesis, I have had a thought about autarkies. Let me first define what an autarky in SAT solving is:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;A partial assignment &lt;code&gt;phi&lt;/code&gt; is called a weak autarky for &lt;code&gt;F&lt;/code&gt; if &amp;quot; &lt;code&gt;phi*F&lt;/code&gt; is a subset of &lt;code&gt;F&lt;/code&gt;&amp;quot; holds, while &lt;code&gt;phi&lt;/code&gt; is an autarky for &lt;code&gt;F&lt;/code&gt; if &lt;code&gt;phi&lt;/code&gt; is a weak autarky for all sub-clause-sets &lt;code&gt;F&#39;&lt;/code&gt; of &lt;code&gt;F&lt;/code&gt;. (Handbook of Satisfiability, p. 355)&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;What does this mean? Well, it means that in the clause-set &lt;code&gt;{x V y, x}&lt;/code&gt; the assignment &lt;code&gt;y=False&lt;/code&gt; is a weak autarky, because assigning &lt;code&gt;y&lt;/code&gt; to &lt;code&gt;False&lt;/code&gt; will lead to a clause that is already in the clause set (the clause &lt;code&gt;x&lt;/code&gt;), while the assignment of &lt;code&gt;x=True&lt;/code&gt; is a (normal) autarky, because it will satisfy all clauses that &lt;code&gt;x&lt;/code&gt; is in. The point of autarkies is that we can remove clauses from the clause set by assigning values to a set of variables, while not changing the (un)satisfiability property of the original problem. In other words, autarkies are a cheap way of reducing the problem size. The only problem is that it seems to be relatively expensive to search for them, so conflict-driven SAT solvers don&amp;rsquo;t normally search for them (but, some lookahead solvers such as &lt;a href=&#34;http://www.cril.univ-artois.fr/SAT11/results/solver.php?idev=46&amp;amp;idsolver=1913&#34;&gt;march&lt;/a&gt; by Marijn Heule do).&lt;/p&gt;</description>
    </item>
    <item>
      <title>On-the-fly self-subsuming resolution</title>
      <link>https://www.msoos.org/2010/08/on-the-fly-self-subsuming-resolution/</link>
      <pubDate>Sun, 15 Aug 2010 22:44:16 +0000</pubDate>
       <guid isPermaLink="false">http://www.msoos.org/wordpress/?p=169</guid> 
      <description>&lt;p&gt;I have recently been trying a new method of shortening learnt clauses. There is a learnt clause minimisation &lt;a href=&#34;http://dx.doi.org/10.1007/978-3-642-02777-2_23&#34;&gt;paper&lt;/a&gt; by Sörensson and Biere, and I have recently been trying to do more. The trick I use, is that many literals can be removed from learnt clauses, if self-subsuming resolution (see my &lt;a href=&#34;https://www.msoos.org/wordpress/?p=5&#34;&gt;older post&lt;/a&gt;) is applied to them.&lt;/p&gt;
&lt;p&gt;During self-subsuming resolution, under normal circumstances, the clauses used to remove literals with are the short clauses: binary and tertiary clauses. The trick I have discovered, is that since CryptoMiniSat keeps binary and tertiary clauses natively inside the watchlists (see my &lt;a href=&#34;https://www.msoos.org/wordpress/?p=7&#34;&gt;previous post&lt;/a&gt;), so doing self-subsuming resolution can be done extremely fast. We simply need to put the literals of the newly learnt clause into a fast-addressable memory, then go through the watchlists of every literal in the clause, and remove the literals that match.&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>
