Mauriès Robert wrote:I'm only going to clarify what I mean by a chain of contradictions, because obviously we don't have the same definitions and we don't give the same meaning to the terms used.
Obviously. I don't mind you using whatever terms and definitions you choose with your TDP chains, but it would be nice if you accepted our normal definitions when you talk about AICs. In particular, please don't call AICs contradiction chains when they're not (according to our definition). Whenever there's a strong link (=) at both ends, i.e. the normal way of writing them, it can't be a contradiction chain (it's a verity chain). When there's a weak link (-) at either end or both, it's a contradiction chain. Simple.
That said, I don't think your definition (which I think I now understood) makes any sense for your own chains either, but deciding that is up to you. (Or perhaps you can explain to me why it does make sense.)
I say that the following chain (-9r2c8) => 1r2c8->1r6c6->7r2c6 => -9r2c6 is a chain of contradiction because 7r2c6 implies +9r2c8 which is a contradiction with -9r2c8. This contradiction is clearly visible.
No, it's not visible in the written chain at all, so it should not be a property of it either. To me that chain is clearly a verity chain, and it eliminates like a verity chain: an external candidate, using the proven verity (9r2c8 OR 7r2c6) which forbids 9r2c6. It makes zero difference what other unwritten logic could be read from the grid. Only the written chain matters. Thus, if you really want that mentioned extra implication and the resulting contradiction to count for something, you should write them out:
-9r2c8 -> 1r2c8 -> 1r6c6 -> 7r2c6 -> 9r2c8 (contradiction) => --9r2c8 <=> +9r2c8
Now, that's a real contradiction chain, and it eliminates like one: the initial assumption (turning it into a double-negation, i.e. a placement). What do you call that anyway if you already call the previous chain a contradiction chain? I hope you have different names for them because they use completely different logic.
Even that implication chain can actually be seen more logically as a verity chain, because -9r2c8 -> 9r2c8 is the same as (9r2c8 OR 9r2c8), i.e. 9r2c8 must be true. Written in Eureka it's not a contradiction chain at all because it has a strong link at both ends (though they link to the same candidate). Thus it can be seen as both a valid AIC and a Discontinuous Nice Loop Type 2 (starts and ends with a strong link to the same candidate):
(9=1)r2c8 - r6c8 = (1-7)r6c6 = (7-9)r2c6 = (9)r2c8 => +9 r2c8
We just don't normally write AICs like that because they can always be replaced with a shorter elimination chain (which gives the same placement after the elimination).
On the other hand, the chain (-1r6c6) => 1r6c8->9r2c8->7r2c6 => -7r6c6 is not (for me) a chain of contradiction because 7r2c6 does not imply +1r6c6.
I understand the difference but I don't see how it's relevant in any way. Why is this distinction significant to you in the first place? The difference between real contradiction chains and verity chains (using our definitions) is extremely significant, but I don't see how this is.
In the same way, for me Denis Berthier's chains (whip, braid) are chains of contradiction.
For example, whip [3]: c2n3{r1 r5} - c2n8{r5 r3} - r1c3{n8 .} ==> r1c2 ≠ 7 expresses that the placement of 8r1c3 implies a contradiction in the puzzle.
I'm happy to hear that you're familiar with Denis' chains. I'm not but I'd like to learn. I understand the basic bivalue-chains easily (because they're basically AICs), but I don't know anything about whips or braids. I'd be happy if you could help with them (especially whips for now). I tried to ask Denis but he basically told me to look it up. Reading the freely available but extremely theoretical PBCS is not really my cup of tea for the same reasons I found your original TDP documentation tedious. Similar to that, I'm pretty sure the actual concepts (or how they relate to sudoku) are quite simple to understand if only they were explained in terms I already know well. So, I'd be very grateful if someone could help with that
So, you're saying whips are simply contradiction chains? Ok, that should be easy. I still don't understand your example, though. If you place 8r1c3 and it causes a contradiction (where? what?), shouldn't it eliminate 8r1c3 instead of 7r1c2? If I write that chain with Eureka, it doesn't make any sense to me:
- Code: Select all
(3)r1c2 = (3-8)r5c2 = r3c2 - (8)r1c3 => -7 r1c2 ?
So, how should it really be interpreted?
Added 1. I think I might have figured it out (maybe). It should probably rather be something like:
- Code: Select all
(7-3)r1c2 = (3-8)r5c2 = r3c2 - (8=!)r1c3 => -7 r1c2
In other words, it's not the placement of 8r1c3 but 7r1c2 that yields the contradiction (and the '.' represents that, similar to my '!'). Apparently the whip assumes a placement of the target and any global eliminations (not depicted in my chain) it gives before proceeding with the chain that leads to a contradiction. So, I think you're right that it's indeed a contradiction chain which eliminates the initial assumption. It's just not written explicitly as such, which makes it pretty unintuitive to me.
Added 2. Stupid me. There's actually no need to assume anything. Even with Eureka we can simply write:
- Code: Select all
(3)r1c2 = (3-8)r5c2 = r3c2 - (8=!)r1c3 => +3r1c2
That's actually how I would write it too (and have), though I'd probably reverse it (and possibly replace the '!' with 'DP'). It's a rare example of an AIC with strong links at both ends but which is still a sort of contradiction chain because one of the end points is a contradiction (which means the other must be true). The normal AIC logic is valid, i.e. (3r1c2 OR !) => +3r1c2, so it can be seen as a verity chain like any AIC. Yet, because one of the two options is a contradiction forcing the other to be true, it could be seen as an implicit contradiction chain as well. Because of that it's actually an exception to my earlier rule that an AIC with strong links at both ends can't be a contradiction chain -- it can if one of them links to a contradiction.
Anyway, would you agree with that whip interpretation?
--
Edits. Added the new whip interpretation. Amended it with another one.