It looks to me that many of the different rules can be seen in the following way
(lets look at the column but we can look at the box the same way)
Lets add dummy cell to the column and give it as candidates all the candidates other the uniqueness numbers in the uniqueness cells.
This will influence only the cells that are not in the uniqueness cells and see what are the conclusion's.
for example
+----------------+----------------+----------------+
| | | |
| | | |
| | | |
+----------------+----------------+----------------+
| | | |
| | | |
| | | |
+----------------+----------------+----------------+
| | *25 | *25 |
| | | |
| | *25 | *259 |
+----------------+----------------+----------+-----+
| | 9 |
+--------------------------------------------+-----+
Here the only candidate for the dummy cell is 9 and we can eliminate 9 from all cells in the column
(which make R9C9 = 9)
+----------------+----------------+----------------+
| | | |
| | | |
| | | |
+----------------+----------------+----------------+
| | | |
| | | |
| | | |
+----------------+----------------+----------------+
| | *25 | *259 |
| | | |
| | *25 | *259 |
+----------------+----------------+----------+-----+
| | 9 |
+--------------------------------------------+-----+
Same thing
+----------------+----------------+----------------+
| | | |
| | | |
| | | |
+----------------+----------------+----------------+
| | | |
| | | |
| | | 39 |
+----------------+----------------+----------------+
| | *25 | *253 |
| | | |
| | *25 | *259 |
+----------------+----------------+----------+-----+
| | 39 |
+--------------------------------------------+-----+
Can eliminate 39 from the rest of the cells
The example from the last post
+----------------+----------------+----------------+
| 457 39 39 | 57 2 1 | 6 457 8 |
| 157 8 2 | 57 4 6 | 1579 579 3 |
| 1457 467 16 | 9 3 8 | 1457 2457-257 |
+----------------+----------------+----------------+
| 2 346 136 | 8 9 7 | 45 45 16 |
| 478 4679 69 | 1 5 2 | 789 3 679 |
| 178 79 5 | 4 6 3 | 2 789 179 |
+----------------+----------------+----------------+
| 3 *25 4 | 6 8 9 | 57 1 *257 |
| 9 1 8 | 2 7 5 | 3 6 4 |
| 6 *25 7 | 3 1 4 | 589 2589*259 |
+----------------+----------------+----------+-----+
| | 79 |
+--------------------------------------------+-----+
Here the Dummy and R4C9,R5C9,R6C9 are locked on 1679 and we can eliminate them from the other cells
. . .|. . 1|. . 8
. 8 2|. . .|. . .
. . .|9 3 .|. . .
-----------------
. . .|8 9 7|. . .
. . .|1 . .|. 3 .
. . 5|. . .|2 . .
-----------------
3 . .|6 . .|. 1 .
9 . .|2 . .|. . 4
6 . 7|3 . .|. . .
+----------------+----------------+----------------+
| 457 39 39 | 57 2 1 | 6 457 8 |
| 157 8 2 | 57 4 6 | 1579 579 3 |
| 1457 467 16 | 9 3 8 | 1457 2457 257 |
+----------------+----------------+----------------+
| 2 346 136 | 8 9 7 | 45 45 16 |
| 478 4679 69 | 1 5 2 | 789 3 679 |
| 178 79 5 | 4 6 3 | 2 789 179 |
+----------------+----------------+----------------+
| 3 25 4 | 6 8 9 | 57 1 257 |
| 9 1 8 | 2 7 5 | 3 6 4 |
| 6 25 7 | 3 1 4 | 589 2589 259 |
+----------------+----------------+----------------+
4 -> [r6,c4] One number possible in cell
6 -> [r6,c5] One number possible in cell
3 -> [r6,c6] One number possible in cell
3 -> [r2,c9] Candidate appears once in c9
3 -> [r8,c7] Candidate appears once in c7
6 -> [r2,c6] Candidate appears once in r2
8 -> [r3,c6] Candidate appears once in r3
5 -> [r8,c6] One number possible in cell
2 -> [r5,c6] One number possible in cell
1 -> [r8,c2] One number possible in cell
8 -> [r8,c3] One number possible in cell
7 -> [r8,c5] One number possible in cell
6 -> [r8,c8] One number possible in cell
5 -> [r5,c5] One number possible in cell
4 -> [r7,c3] One number possible in cell
8 -> [r7,c5] One number possible in cell
9 -> [r7,c6] One number possible in cell
4 -> [r9,c6] One number possible in cell
4 -> [r2,c5] One number possible in cell
1 -> [r9,c5] One number possible in cell
2 -> [r1,c5] One number possible in cell
2 -> [r4,c1] Candidate appears once in c1
9 <- [r1,c8] b1 only has 9 in r1
5 <- [r1,c2] b7 only has 5 in c2
5 <- [r3,c2] b7 only has 5 in c2
4 <- [r1,c2] Hidden Pair in r1 {3,9}, in {[r1,c2],[r1,c3]}
7 <- [r1,c2] Hidden Pair in r1 {3,9}, in {[r1,c2],[r1,c3]}
24. Consider the chain r2c7-1-r2c1~1~r6c1-1-r4c3~1~r4c7.
When the cell r4c7 contains the value 1, so does the cell r2c7 - a contradiction.
Therefore, the cell r4c7 cannot contain the value 1.
- The move r4c7:=1 has been eliminated.
The value 1 in Box 3 must lie in Column 7.
- The move r3c9:=1 has been eliminated.
The values 1, 3 and 6 occupy the cells r4c2, r4c3 and r4c9 in some order.
- The moves r4c2:=4 and r4c9:=5 have been eliminated.
The value 4 in Box 6 must lie in Row 4.
- The move r5c7:=4 has been eliminated.
Consider the chain r3c2-6-r3c3-1-r4c3-1-r4c9-6-r5c9-6-r4c9-1-r4c3-3-r1c3-3-r4c3-3-r4c2.
When the cell r4c2 contains the value 6, some other value must occupy the cell r3c2, which means that the value 3 must occupy the cell r4c2 - a contradiction.
Therefore, the cell r4c2 cannot contain the value 6.
- The move r4c2:=6 has been eliminated.
The value 3 is the only candidate for the cell r4c2.
MadOverlord wrote:But this leads to an invalid puzzle! After some thought, I added in the restriction that the hidden set cannot contain any of the other possibilities in the floor squares (ie: in the above example, <127> are excluded, which eliminates both candidate hidden sets)
(R3C7|R3C8)<45>
But with this restriction, whenever there is a hidden set, there is a naked set that permits the same reduction. Are there ever any hidden set reductions that do not have a complementary naked set reduction? Or am I still missing something?
Lummox JR wrote:Just as with regular subset rules, where a naked subset exists, so does a hidden subset. My solver just goes with whichever's smaller.
Lummox JR wrote:Sadly the logic which tells us the roof candidates can be eliminated from one floor cell (even though we don't know yet which cell) does not tell us if they can be eliminated from both.
+-------+-------+-------+
| 1 . . | . . 4 | 9 . . |
| . . . | . . . | . 6 5 |
| 2 3 . | . . . | . 7 . |
+-------+-------+-------+
| 4 . . | . . 7 | . . 9 |
| . 2 3 | . . . | 6 5 8 |
| . . . | . . . | . . . |
+-------+-------+-------+
| . . . | . 2 6 | 4 . . |
| . . . | . . 3 | . . . |
| . . 6 | 9 7 . | . . 3 |
+-------+-------+-------+
+ - - - - - - - +
| . . . |
| . . 1x |
| . . 1y |
+ - - - - - - - +
| . . . |
| 14 149 19 |
| . . . |
+ - - - - - - - +
| . . . |
| 148 148 . |
| . . 18 |
+ - - - - - - - +
DanO wrote:This pattern emerges which allows the 1's in R2C6 and R3C6 to be removed
- Code: Select all
+ - - - - - - - +
| . . . |
| . . 1x |
| . . 1y |
+ - - - - - - - +
| . . . |
| 14 149 19 |
| . . . |
+ - - - - - - - +
| . . . |
| 148 148 . |
| . . 18 |
+ - - - - - - - +
+ - - - - - - - +
| . . . |
| . . 1x |
| . . 1y |
+ - - - - - - - +
| . . . |
| 4 1 9 |
| . . . |
+ - - - - - - - +
| . . . |
| 1 4 . |
| . . 8 |
+ - - - - - - - +
MadOverlord wrote:Lummox JR wrote:Sadly the logic which tells us the roof candidates can be eliminated from one floor cell (even though we don't know yet which cell) does not tell us if they can be eliminated from both.
Exactly. I am wondering if there is some extra thing we can do that will enable us to make that deduction. Just as we need to find a conjugate pair in order to execute a Type-4 reduction, I am wondering if there is a way to leverage our information one step further.
For example, if we have
12|123
12|124
and the only other square in one of the floor pair's groups that contains (say) 345 is a 345, then that forms a hidden set on 345 -- but, of course, we'd have found that hidden set normally.
I am wondering if there is some way to leverage our knowledge about 12 through some logical loop that permits us to eliminate the 12 completely. It would have to be some interaction with the 12 possibilities in the other squares in a floor group and the non-12 possibilities in that same group that feeds back.
Or, going the other way, I checked a bunch of unique rectangle puzzles and have not been able to find an example where one of the floor squares wasn't one of the roof possibilities. Does anyone have such a puzzle?
If such a puzzle does exist, then we may be able to look at it and draw some inferences. If such a puzzle cannot exist, then we may be able to draw different inferences.
For example, if it can be proved that we never have a case where
12|1234
12|1234
reduces to
12|34
12|34
(in other words, one of the roof squares must always have one of the floor square possibilities)
then we might be able to look for locked sets on the floor possibilities (at least, under certain circumstances)