999_Springs wrote:I'm wondering what would be the easiest way to write this as a msls?
Cenoman wrote:All this, AICs and matrices, is rank 1 logic. I can't see how to write it as MSLS.
 While the pattern is rank1, big part of it (everything but the 5s) is rank0. There is a simple way to prove this hidden rank0 logic.
- Code: Select all
-    +---------+---------+---------+
 | .  .  . | .  .  . | .  .  . |
 | .  .  . | .  .  . | .  .  . |
 | .  .  . | .  .  . | .  .  . |
 +---------+---------+---------+
 | .  5  . | 5  .  . | .  .  . |
 | .  .  5 | .  .  . | .  .  . |
 | .  .  . | .  .  . | .  .  . |
 +---------+---------+---------+
 | .  .  . | .  .  . | .  .  . |
 | .  .  . | .  .  . | .  .  . |
 | .  .  5 | 5  .  . | .  .  . |
 +---------+---------+---------+
Each of the 5s we're trying to cover is part of two houses from this set: r49c34b4. If three of them were true, we'd essentially have six 5s in 5 houses.
We can therefore derive a 2-link (at most 2 true candidates) that covers them:
A = 2L(5r4c1234, 5r56c3, 5r9c34) = 5r49c34b4 / 2
Note that the 2-link can also be proven using a finned X-Wing (5r4c1234, 5r9c34 => -5r56c3).
With this link the pattern reduces to rank0.
We can do the same with other patterns, too. The following (theoretical) Almost MSLS contains an XY-Wing:
- Code: Select all
-    +---------------+---------------+---------------+
 | 12   .    .   | .    234  .   | .    .    .   |
 | .    .    .   | .    .   .    | .    .    .   |
 | .    .    .   | .    .    .   | .    .    .   |
 +---------------+---------------+---------------+
 | .    .    .   | .    .    .   | .    .    .   |
 | 135  .    .   | .    345  .   | .    .    56  |
 | .    .    .   | .    .    .   | .    .    .   |
 +---------------+---------------+---------------+
 | .    .    .   | .    .    .   | .    .    .   |
 | .    .    .   | .    .    .   | .    .    .   |
 | .    .    .   | .    47   .   | .    .    67  |
 +---------------+---------------+---------------+
Only three out of the candidates 12r1c1, 23r1c5, 13r5c1, 3r5c5 can be true.
This can be easily seen as an XY-Wing, the more rigorous proof derives the 3-link as (r1c1, r1c5, r5c1, 1c1, 2r1, 3r5, 3c5) / 2.
With that link we uncover the hidden rank0 logic, allowing the eliminations on 4567 to be made.
Marek